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

airdrop-bot

v0.1.5

Published

This is a simple airdrop bot that can be used to interact onchain protocols

Downloads

7

Readme

Airdrop Bot

This is a script for automatic interaction with the onchain protocol by setting up Cronjobs and delay times

Supported protocols

  1. Base AAVE
    • Deposit ETH -> approve -> withdraw
  2. Base Uniswap
    • Swap DAI <-> ETH

Getting started

  1. Install CLI globally
npm install -g airdrop-bot
  1. Check version
airdrop-bot -v
# 0.0.1
  1. Interact protocols (AAVE / Uniswap)

For example, interact aave by 0.01 ETH and setup delay 10 minutes

# set your private key to environment variables
export PK=<your-private-key>

# check private key
echo $PK
# execute AAVE
airdrop-bot aave $PK 0.01 -c "0 */10 * * * *" --delay 10

Notice: cron job expression is from second not minute


If successfully started, the following information should appear.

> [email protected] app
> ts-node ./app.ts

  ____   ___ _____
 | __ ) / _ \_   _|
 |  _ \| | | || |
 | |_) | |_| || |
 |____/ \___/ |_|

Starting app ...
Chain Base
Time 0 */10 * * * * | Delay 10 minutes
Account <Public address from $PK>

Print below information when starting a new round

  • Trigger start / end time (time zone: Asia/Taipei)
  • Random delay seconds (limit base on --delay command option)
  • Each txs hash and status (retry sent tx if status is reverted)
Start new round
Start time: 2024/5/3 下午1:00:00 | Delay 247 seconds
Deposit...
Tx Hash: 0xa887c685952643c819be509ed738d8f49dc519f9b523b3e3741d9af56b484757 - reverted
Reverted !! Retrying...
Tx Hash: 0x463199026a129c43240bc5860a44c811fbd273b0ad9ea2e11ece02436d4d81cd - success
Approving...
Tx Hash: 0xc5dc4df1556dcf4d8f091da1258ff0649dd1e3a252fdf9780764ea06d12e423d - success
Withdraw...
Tx Hash: 0x58fa1b26670aac621c358828b08651ae46d3a253410ef9177038b757fcdef785 - reverted
Reverted !! Retrying...
Tx Hash: 0x708e3d639d60d11d96b2d6d45428b1a4b90ecda9b529a2eee52a0a36b09acfb8 - reverted
Reverted !! Retrying...
Tx Hash: 0x841ad67167fc6478a0f6024493f9c6cdb8df3b877ee167415b3d05d0e1b600e5 - success
Contract address 0x8be473dCfA93132658821E67CbEB684ec8Ea2E74
End time 2024/5/3 下午1:05:24