Skip to content

With help of this project users can send Coin (like: ETH, AVAX, ROSE) or ERC20 tokens to multiple addresses, which to save time of users to send coins and also is more gas fee effective.

License

Notifications You must be signed in to change notification settings

mranoncoder/CoinDisperser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Disperser

With help of this contract you can distribute Coin or tokens to multiple addresses.

This project use Hardhat.

To deploy the contracts use the following commands:

npm install
npx hardhat compile
npx hardhat run scripts/deploy.js

Deploying to remote networks

To deploy to a remote network such as mainnet or any testnet, you need to add a network entry to your `hardhat.config.js file. We’ll use Ropsten for this example, but you can add any network similarly:

module.exports = {
  solidity: "0.8.4",
  networks: {
    emeraldTestnet: {
      url: 'https://testnet.emerald.oasis.dev',
      accounts: [
        `${ROPSTEN_PRIVATE_KEY}`,
      ],
    }
  }
};

Finally, run:

npx hardhat run scripts/deploy.js --network emeraldTestnet

Running Tests

To test the smart contracts run:

npx hardhat test test/sample-test.js

About

With help of this project users can send Coin (like: ETH, AVAX, ROSE) or ERC20 tokens to multiple addresses, which to save time of users to send coins and also is more gas fee effective.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published