https://github.com/itinance/upgradable-token-test
https://github.com/itinance/upgradable-token-test
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/itinance/upgradable-token-test
- Owner: itinance
- Created: 2021-07-14T18:57:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-14T18:58:18.000Z (almost 5 years ago)
- Last Synced: 2025-02-09T06:16:05.655Z (over 1 year ago)
- Language: TypeScript
- Size: 235 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Upgradable Token Contract (Test)
## Installation / Setup
Installation requires a working node-environment including npm.
### Install Prerequisites:
```
npm install
```
or
```
yarn install
```
### Build eveything:
```
npm run build
```
or
```
yarn run build
```
### Run unit tests:
```
npm run test
```
or
```
yarn run test
```
## Deployment
### Testnet (Rinkeby)
Deployment:
```
npx hardhat run scripts/deploy.js --network rinkeby
```
Verification:
```
```
```
npx hardhat verify --network rinkeby DEPLOYED_CONTRACT_ADDRESS 0x0000...
```
## Work with smart contract
### hardhat console
```
npx hardhat console --network rinkeby
```
Mint token:
```
await token.mint('0xC1....', new hardhat.ethers.BigNumber.from('123456789000000000000000'));
```