This project requires developing a simple smart contract that distributes tokens to multiple addresses as part of an “interaction” that occurs off-chain.
$ yarn install
$ yarn compile
$ npx hardhat compile
$ yarn test
$ npx hardhat Test
$ yarn deploy [NETWORK_NAME]
$ npx hardhat run scripts/deploy.ts --network [NETWORK_NAME]
In this project, I deployed contract on BSC testnet.
Please check this url: https://testnet.bscscan.com/address/0x21F672dA9aef56b9B35f527a689960795bB6DDb3
$ yarn verify [NETWORK_NAME] [CONTRACT_ADDRESS] [...CONSTRUCTOR_PARAMS]
$ npx hardhat verify --network [NETWORK_NAME] [CONTRACT_ADDRESS] [...CONSTRUCTOR_PARAMS]
Create a .env
using .env.example
file.
INFURA_API_KEY = "INFURA_API_KEY"
PRIVATE_KEY = "YOUR_PRIVATE_KEY"
MNEMONIC = "YOUR MNEMONIC"
REPORT_GAS = true/false