Skip to content
/ erc20-template Public template

A template for ERC20 Smart contracts projects Resources

License

Notifications You must be signed in to change notification settings

veeso-dev/erc20-template

Repository files navigation

ERC20

license-mit build-test Conventional Commits

Get started

Setup env

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

Compile

Run

yarn
yarn compile

Deploy

yarn deploy:localhost
yarn deploy:goerli
yarn deploy:ethereum

Transfer and administrate the token

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/.

How to setup code from template

Verify source code

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

License

ERC20 template is licensed under the MIT license.

See the full license HERE

About

A template for ERC20 Smart contracts projects Resources

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published