Usage
Pre Requisites
Before running any command, make sure to install dependencies:
$ yarn install
env variable configuation
$ copy .env.example .env
change MNEMONIC
and INFURA_API_KEY
with yours
Compile
Compile the smart contracts with Hardhat:
$ yarn compile
Test
Run the Mocha tests:
$ yarn test
Deploy contract to netowrk (requires Mnemonic and infura API key)
npx hardhat run --network rinkeby ./scripts/deploy.ts
Validate a contract with etherscan (requires API ke)
npx hardhat verify --network <network> <DEPLOYED_CONTRACT_ADDRESS> "Constructor argument 1"