https://github.com/veeso-dev/erc20-template
A template for ERC20 Smart contracts projects Resources
https://github.com/veeso-dev/erc20-template
Last synced: 10 months ago
JSON representation
A template for ERC20 Smart contracts projects Resources
- Host: GitHub
- URL: https://github.com/veeso-dev/erc20-template
- Owner: veeso-dev
- License: mit
- Created: 2024-01-12T12:53:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T16:27:56.000Z (over 2 years ago)
- Last Synced: 2025-02-14T16:41:43.757Z (over 1 year ago)
- Language: TypeScript
- Size: 210 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ERC20
[](https://opensource.org/license/mit/)
[](https://github.com/veeso-dev/erc20-template/actions/workflows/build-test.yml)
[](https://conventionalcommits.org)
## Get started
### Setup env
```sh
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
```sh
yarn
yarn compile
```
### Deploy
```sh
yarn deploy:localhost
yarn deploy:goerli
yarn deploy:ethereum
```
### Transfer and administrate the token
Enter directory `./app`
and run the NFT Web UI
```sh
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 .
## How to setup code from template
## Verify source code
put Etherscan apikey in `.env` file.
Then run:
```sh
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](./LICENSE)