This project creates an ERC20 token without using a third-party implementation.
This implementation based on the EIP-20: Token Standard with additional ownership functions.
- git
- node.js
- yarn
git clone [email protected]:nvtrinh2001/bkai-erc20.git
cd bkai-erc20
yarn
yarn hardhat deploy
Set up the environment variables as in the .env.example
file.
Then, run:
yarn hardhat deploy --network rinkeby
Get the etherscan API key and put it in the .env
file. The token will be automatically verified by running the deployment scripts.
To test the smart contract, run:
yarn hardhat test
The gas price report will be automatically generated and saved in gas-report.txt
.
This will show how many codes have been covered by the tests. Run:
yarn hardhat coverage