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
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
To test the smart contracts run:
npx hardhat test test/sample-test.js