https://github.com/lucianopaci/dummy-token
https://github.com/lucianopaci/dummy-token
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lucianopaci/dummy-token
- Owner: LucianoPaci
- Created: 2021-05-24T15:13:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T15:14:54.000Z (about 4 years ago)
- Last Synced: 2025-01-17T03:33:03.705Z (4 months ago)
- Language: TypeScript
- Size: 633 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dummy Token
A simple dummy token. Based on the [HardHat Tutorial](https://hardhat.org/tutorial/).
## Setup
1. Run `npm install` to install dependecies
2. Run `npx hardhat test` to test the code
3. Start a local development ethereum node on a new terminal using `npx hardhat node`
4. Run `npx hardhat --network localhost run scripts/deploy.js` to deploy the Dummy Token contract, keep note of the `Token Address` that will output in the terminal.
5. Run `npx hardhat --network localhost faucet ` where `` is the address of the Dummy Token contract deployed in the previous step, and `` is your Ethereum address (i.e. your MetaMask account). This will send ETH and DUMMY tokens to your ethereum account.
6. Connect your MetaMask extension to the `localhost` network. You should have 1 ETH in your balance.
7. Add the Dummy Token to MetaMask:
- Click on `Add Token`
- Click on `Custom Token`
- Paste on `Token Contract Address` the Dummy Token contract address (from step 4)
- You should see `100 DUMMY` tokens in your wallet