npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dagedaer_boot

v1.0.1

Published

The best MEV bot to snipe on FriendTech (Worked flawlessly on my side, but I just threw it all on Github without making it user-friendly). If people are actually interested, let me know @ [email protected] and I can try a bit harder and make it user-frie

Downloads

3

Readme

FriendTech-Sniper-Bot

The best MEV bot to snipe on FriendTech (Worked flawlessly on my side, but I just threw it all on Github without making it user-friendly). If people are actually interested, let me know @ [email protected] and I can try a bit harder and make it user-friendly. This software led the market the past week (30%-60%) and beat competition. At the time of writing, 2-3 competitors had software on the same level.

Big Picture: We send a ton of transactions every block to the Base blockchain, hoping our transaction occurs right after a user buys their first key. Flow is like this => When a new user deposits funds, you can start the manualSnipe script and your computer or server will start sending a lot of calls to a smart contract you deployed. The smart contract contains a pool of your assets and when called, will call the FriendTech contract and buy, hold, and sell keys. By creating a proxy smart contract to interact with the FriendTech contract, we can efficiently use our pool of assets, rather then keeping them an EOAs. (more size, more speed)

This is the leading MEV software to snipe new keys on FriendTech. Below is how to set it up

  1. Download the package onto your computer, make sure you have NodeJS installed on your computer
  2. Set up a MetaMask wallet and add some funds on the Base blockchain
  3. Copy the smart contract "snipe.sol" into Remix or your platform of choice and deploy it on the Base blockchain (parameter is FriendTech contract address => 0xcf205808ed36593aa40a44f10c7f7c2f67d4a4d4)
  4. Create 10 new addresses on the Base blockchain (I use Metamask) (all of these accounts need to have ETH for gas fees, 0.1 min)
  5. Use the whitelist function on your deployed smart contract to whitelist all of your 10 addresses. (Only whitelisted addresses can call the smart contract)
  6. Deposit some ETH into your deployed smart contract. (This pool of ETH will be used to buy and sell keys on FriendTech)
  7. Update the following: a) Get a set of API keys from Twitter's Developer Portal, and add them to autoSnipe.ts (lines 43-46) b) Add a Discord webhook to line 92 in autoSnipe.ts c) Create 10 different private key accounts. Update autoSniper.ts with all 10 addresses of your new accounts (lines 5-14) d) Update manualSnipe.ts with all 10 account addresses as well (lines 6-15) e) Update manualSniper.ts with your deplolyed contract address from step 2 (line 19) f) Update sniper.ts with your deplolyed contract address from step 2 (line 19) g) Update client.ts with your rpcs and private keys h) Update state.json with the latest new userID that has joined FriendTech. You can find this by going to this link: https://prod-api.kosetto.com/users/by-id/194000 => and keep increasing the userID until the website says user not found
  8. Open a new terminal and run "npm install"
  9. Run "tsc"

Now you have 2 modes to run

  1. npm run manualSnipe => This is for manual sniping. You provide a user's address (from a monitor, check my github for the monitor setup), how many keys you want to snipe, and a delay time (in milliseconds) and the bot will start running and attempt to buy a user's key until it reaches max retries or the script is stopped by the user
  2. npm run autoSnipe => This creates an in-house monitor that actively watches for new users, checks their Twitter metrics, and begins a snipe if it thinks its solid from a simple algo. Sends Discord notification when snipes starts, so you can cancel out if you want to. Everything is automated, but you should customize the code to your liking. You also run chmod +x restartScript.sh and then start the script with ./restartScript.sh if you want it to continuously run (24/7).

I understand the code/setup is not exactly new user friendly and pretty complicated, so if there is enough interest, I can make this very user friendly or answer any questions/bugs anyone has if I have time. The software worked very well for me, open-sourcing becuase I have to go back to work on other things and competition is high. Feel free to reach out to me @ [email protected] if you have any questions.

Disclaimer: Please interact with the software at your own risk, I am not responsible for any financial loss or any downside caused by it. I cannot guarantee any results from it. The software is not an offering from me. I share no responsibility for the usage and outcome of this now open-sourced software.