An open API service indexing awesome lists of open source software.

https://github.com/itinance/upgradable-token-test


https://github.com/itinance/upgradable-token-test

Last synced: about 1 year ago
JSON representation

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'));
```