This repo includes a few simple deploy, transfer tests for a vanilla ERC20 OpenZeppelin style token (1B total supply, capped). On deploy, it auto verifies the code on etherscan for convenience.
Install hardhat
cd guild-token
yarn installRefer to our env example file in project root.
- nvm use
- yarn run node
- Open new terminal
- nvm use
- yarn run testChange the apiKey in hardhat config to ETHERSCAN_API_KEY if etherscan and BSCSCAN_API_KEY if bscscan.
npm/yarn run test: for running test scripts using hardhatnpm/yarn run node: deploys all contracts in a local node (hardhat node or ganache node). current local node is pointed to 8545 (hardhat)npm/yarn run deploy:guild: deploys guild token to local node. The deploy script will auto verify on etherscan upon deploy (be sure to put an etherscan api key in your.env)npm/yarn run deploy:guild --network <any network obj from hardhat.config.ts>: deploys guild token to network specified in hardhat config. The deploy script will auto verify on etherscan upon deploy (be sure to put an etherscan api key in your.env)