https://github.com/ashetm/sample-erc20
Sample for a custom ERC20 token
https://github.com/ashetm/sample-erc20
angular smart-contract solidity web3
Last synced: about 2 months ago
JSON representation
Sample for a custom ERC20 token
- Host: GitHub
- URL: https://github.com/ashetm/sample-erc20
- Owner: AsheTM
- Created: 2022-11-18T18:59:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-14T10:14:58.000Z (about 3 years ago)
- Last Synced: 2025-07-06T15:01:53.975Z (12 months ago)
- Topics: angular, smart-contract, solidity, web3
- Language: TypeScript
- Homepage: https://ashetm-sample-erc20.netlify.app
- Size: 2.19 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample ERC20
## Setup
Install dependencies:
```bash
#!/bin/bash
npm install
```
And provide the following keys in ```.env``` file:
* MNEMONIC - MNEMONIC of your wallet
* PROJECT_ID - Infura API Key
* TOKEN_DECIMALS - Number of decimals (Range: [0, 18])
* TOKEN_NAME - Name of the token
* TOKEN_SYMBOL - Symbol of the token
* TOKEN_TOTAL_SUPPLY - Max Total Supply of the token
* ADDRESS_INDEX (Optional) Index of the address wallet with the same MNEMONIC
## Projects
### __Smart Contract__
Sample of how to create a ERC20 token.
#### Deployment
```bash
#!/bin/bash
npm run migrate:goerli
```
#### Tests
To run tests, execute the following:
```bash
#!/bin/bash
npm run test
```
### __Front End__
Sample UI to interact with smart contract concerning erc20 custom token.
#### Start
Before serving the front end, provide the following keys in ```.env``` file:
* NG_APP_CONTRACT_ADDRESS - Address of the deployed contract (You can get it from logs of the deployed smart contract in [Deployment Smart Contract setion](https://github.com/AsheTM/sample-erc20#deployment))
And then launch the front end part with:
```bash
#!/bin/bash
npm run start
```