This project demonstrates a basic Hardhat use case.
Download and initialize this repository:
git clone https://github.com/gzliudan/erc20-hardhat.git
cd erc20-hardhat
yarn
Compile and test contracts:
yarn make
or
yarn clean
yarn compile
yarn test
Create and edit file .env
, set variable DEPLOYER_PRIVATE_KEY
, also set variable POLYGONSCAN_API_KEY
if mumbai and polygon network are used.
cp env.sample .env
vi .env
Deploy and verify contracts according to your network:
yarn deploy:mumbai
yarn verify:mumbai
yarn deploy:polygon
yarn verify:polygon
yarn deploy:apothem
yarn verify:apothem
yarn deploy:xinfin
yarn verify:xinfin