Template based on Aura finance' contracts open sourced repo production environment.
$ yarn install
Compile the smart contracts with Hardhat:
$ yarn compile
Compile the smart contracts and generate TypeChain artifacts:
$ yarn typechain
Lint the Solidity code:
$ yarn lint:sol
Lint the TypeScript code:
$ yarn lint:ts
Run the Mocha tests:
$ yarn test
Run fork tests
$ yarn test:fork:all
Running 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 coverage
Delete the smart contract artifacts, the coverage reports and the Hardhat cache:
$ yarn clean