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

token-airdrop-contract

v1.0.0

Published

I have been across many DAPPs to Airdrop Tokens. I found that DAPPs are charging way more to just privide airdrop services. This smart contract and airdrop.js code will help you to deploy your BSC/Ethereum Tokens without costing you extra money.

Downloads

5

Readme

Auto Airdrop Smart Contract for binance smart chain and Ethereum

I have been across many DAPPs to Airdrop Tokens. I found that DAPPs are charging way more to just privide airdrop services. This smart contract and airdrop.js code will help you to deploy your BSC/Ethereum Tokens without costing you extra money.

Micro Documentation

we are using truffle framework for smart contract development and deployment. For auto airdrop we are using node.js script with web3.js for smart contract interation.

Files and usage

contracts/Airdrop.sol

This is our Main Contract file which you need to deploy. You can customize contract as per your requirement.

migrations/1_initial_migration.js

Our Smart contract takes 1 constructor parameter, You need to pass Token Contract Address which you want to Airdrop. That you can specify in this file.

src/airdrop.csv

List of Addresses you want to airdrop tokens to. (Sample file included, you can also download list from bscscan,etherscan)

src/airdrop.js

This is a node script to interect with deployed airdrop smart contract. it reads list of airdrop beneficiaries and airdrops token in batch size you have specified. in init3 function you need to specify deployed smart contract address.

.env

File which contains 12 secret mnemonic phrases of your hd wallet in SEED_PHRASE variable.

Commands to deploy and airdrop

Deploy smart contact
  • npm install
  • Copiling smart contract truffle compile
  • Deploying smart contract - truffle migrate --network=testnet Choose network from truffle-config.js file.
  • Verify smart contract on bscscan/etherscan (API Keys are needed)- truffle run verify Airdrop@{ContractAddress} --network testnet
  • Once smart contract is deployed and verified, you can interect it from bscscan/etherscan
Allowance
  • Set Allowance in your Token Contract, so Airdrop contract can transfer tokens.
Token Airdrop
  • Goto src directory
  • Update Contract Address in .env file.
  • Update BATCH_SIZE (how many accounts at a time you want to do airdrop) in .env
  • Run node airdrop.js
  • Done Script will start airdroping tokens. Dont forget to set gas price you want and maintain balance into your wallet.

Authors

  • Hiren Kavad

License

This bundle is dual-licensed under MIT and GPL licenses.

Use it, change it, fork it, sell it. Do what you will, but please leave the author attribution.