The following prerequisites are required:
Before running any command, make sure to install dependencies:
yarnCompile the smart contracts with Hardhat:
yarn compileRun unit tests:
yarn testRuns integration tests with Nexus Mutual V2 on a Mainnet fork.
Complete FORK_URL in .env file
Run tests
$ yarn test:forkRun unit tests coverage:
yarn coverageRun unit tests with gas report:
yarn gas-reportRun typescript and solidity linters:
yarn lintCreate .env file and complete the variables:
cp .env.example .envDeploy covered vault factory contract:
yarn deploy:factory:mainnetDeploy cover manager contract:
yarn deploy:cover-manager:mainnetDeploy a new covered vault contract:
yarn deploy:covered-vault:mainnetDeploy mock contracts:
yarn deploy:mocks:goerliDeploy covered vault factory contract:
yarn deploy:factory:goerliDeploy cover manager contract:
yarn deploy:cover-manager:goerliDeploy a new covered vault contract:
yarn deploy:covered-vault:goerli