-
Clone the repo
-
Install the dependencies
npm install
-
Create a new file
.env
from.env.example
cp .env .env.example
- In
.env
file addINFURA_API_KEY
,PRIVATE_KEY
andETHERSCAN_API_KEY
Note: This project uses Hardhat
- To compile the contracts
npm run compile
- To run the unit tests, use the command.
npm run tests
- To deploy the v1 contract to kovan run :
npm run deploy_v1 kovan
- To upgrade to V2, run :
npm run upgrade_v2 kovan
Note: More networks can be configured in the
hardhat.config.js
file.
To verify the contracts on Etherscan
npx hardhat verify --network kovan <DEPLOYED_CONTRACT_ADDRESS>