Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 926 Bytes

README.md

File metadata and controls

38 lines (33 loc) · 926 Bytes

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