This project demonstrates how to use Hardhat.
git clone https://github.com/gzliudan/hardhat-project
cd hardhat-project
yarn
yarn clean
cp sample.env .env
# set DEPLOYER_PRIVATE_KEY in .env
vi .env
yarn compile
yarn testExecute test tasks according to your network:
# for local net
yarn test:local
# for XDC devnet
yarn test:xdcdev
# for XDC testnet
yarn test:apothem
# for XDC mainet
test:xinfinDeploy all contracts according to your network:
# for local devnet
yarn deploy:local
# for XDC devnet
yarn deploy:xdcdev
# for XDC testnet
yarn deploy:apothem
# for XDC mainet
yarn deploy:xinfinVerify all contracts according to your network:
# for XDC devnet
yarn verify:xdcdev
# for XDC testnet
yarn verify:apothem
# for XDC mainet
yarn verify:xinfin