Install dependencies via Yarn:
yarn installSetup Husky to format code on commit:
yarn prepareCompile contracts via Hardhat:
yarn run hardhat compileConfigurations are defined for mainnet and rinkeby networks. Network forking is also available, and can be utilized by setting the FORK_MODE environment variable to true and FORK_NETWORK to either mainnet or rinkeby.
Test contracts via Hardhat:
yarn run hardhat testActivate gas usage reporting by setting the REPORT_GAS environment variable to "true":
REPORT_GAS=true yarn run hardhat testGenerate a code coverage report using solidity-coverage:
yarn run hardhat coverageA documentation site is output on contract compilation to the docgen directory. It can also be generated manually:
yarn run hardhat docgen