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

https://github.com/planetarium/staking_contract_wncg_eth

Staking Contract - WNCG on ETH
https://github.com/planetarium/staking_contract_wncg_eth

Last synced: about 2 months ago
JSON representation

Staking Contract - WNCG on ETH

Awesome Lists containing this project

README

        

[![codecov](https://codecov.io/gh/planetarium/staking_contract_wncg_eth/graph/badge.svg?token=pSH0JsXt3w)](https://codecov.io/gh/planetarium/staking_contract_wncg_eth)

# WNCG Staking Rewards

How to setup dev environment

```
$ node --version
v16.15.0
```

1. Create `.env` file with these keys
```shell
INFURA_API_KEY= # infura api key
ETHERSCAN_API_KEY= # ether scan api key
PRI_KEY= # private key of your metamask
```

2. Install npm packages
```shell
# Install npm packages
npm i
```

3. Compile contracts
```shell
# Compile
npx hardhat compile
```

4. run unit test and coverage report
```shell
npx hardhat test
npx hardhat coverage
```