cp .env.github .env
nano .env
- DEV_PRIVATE_KEY: should be set to deploy on devnet
- PROD_PRIVATE_KEY: should be set to deploy on production (KEEP IT SECRET!!!)
- OWNER_ADDRESS: must be set to initial owner of the contract
Run
yarn
yarn compile
yarn deploy:localhost
yarn deploy:goerli
yarn deploy:ethereum
Enter directory ./app
and run the NFT Web UI
yarn
# get web3.min.js
mkdir -p node_modules/web3/dist/
wget -O node_modules/web3/dist/web3.min.js "https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"
# run
yarn dev
Now browse to http://localhost:1234/.
put Etherscan apikey in .env
file.
Then run:
yarn hardhat verify --network $NETWORK "$CONTRACT_ADDRESS" "$NAME" "$SYMBOL" "$OWNER_ADDRESS" "$INITIAL_SUPPLY" $DECIMALS
Network can be either:
- goerli
- ethereum
ERC20 template is licensed under the MIT license.
See the full license HERE