Template based on Aura finance' contracts open sourced repo production environment.
$ yarn installCompile the smart contracts with Hardhat:
$ yarn compileCompile the smart contracts and generate TypeChain artifacts:
$ yarn typechainLint the Solidity code:
$ yarn lint:solLint the TypeScript code:
$ yarn lint:tsRun the Mocha tests:
$ yarn testRun fork tests
$ yarn test:fork:allRunning in fork mode
$ NODE_URL=<FORK_URL> yarn task:fork <TASK_NAME>Running task normally
$ NODE_URL=<NODE_URL> yarn task --network <NETWORK> <TASK_NAME>
Generate the code coverage report:
$ yarn coverageDelete the smart contract artifacts, the coverage reports and the Hardhat cache:
$ yarn clean