/erc20-hardhat

This is an ERC20 contract which is developed by hardhat and used only for testing.

Primary LanguageJavaScriptMIT LicenseMIT

About this project

This project demonstrates a basic Hardhat use case.

Initialize project

Download and initialize this repository:

git clone https://github.com/gzliudan/erc20-hardhat.git
cd erc20-hardhat
yarn

Compile contracts

Compile and test contracts:

yarn make

or

yarn clean
yarn compile
yarn test

Setup secrets

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 contracts

Deploy and verify contracts according to your network:

1. Mumbai network

yarn deploy:mumbai
yarn verify:mumbai

2. Polygon network

yarn deploy:polygon
yarn verify:polygon

3. Apothem netowrk

yarn deploy:apothem
yarn verify:apothem

4. Xinfin netowrk

yarn deploy:xinfin
yarn verify:xinfin