https://github.com/sofianhw/hh-token-sample
Hardhat Token Sample
https://github.com/sofianhw/hh-token-sample
Last synced: 2 months ago
JSON representation
Hardhat Token Sample
- Host: GitHub
- URL: https://github.com/sofianhw/hh-token-sample
- Owner: sofianhw
- License: mit
- Created: 2022-12-29T12:45:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T13:11:17.000Z (over 3 years ago)
- Last Synced: 2025-12-27T03:50:05.487Z (6 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hardhat Token Sample
## Install depedencies
```npm install```
--------------------------------
## Install from Scratch
### install hardhat
```npm install --save-dev hardhat```
### setup project
```npx hardhat```
--------------------------------
### Setup network and account
Go to hardhat.config.js
Change ALCHEMY-KEY and PRIVATE-KEY with your own
### Install openzeppelin contracts
Because in this sample we will create token and using Openzepplin standard.
We need to install
```npm install @openzeppelin/contracts```
### Compile
```npx hardhat compile```
### Artifacts
It will produce two folders, artifacts and cache.
To get ABI and Bytecode, go to artifacts/contracts/Token.json
### Deploy to ganache
You have to setup your ganache
to deploy bytecode into blockchain you can run
```npx hardhat run scripts/deploy.js --network ganache```
if you want to deploy into testnet or mainnet just configure the network and deploy to network name