The following prerequisites are required:
Before running any command, make sure to install dependencies:
yarn
Compile the smart contracts with Hardhat:
yarn compile
Run unit tests:
yarn test
Runs integration tests with Nexus Mutual V2 on a Mainnet fork.
Complete FORK_URL
in .env
file
Run tests
$ yarn test:fork
Run unit tests coverage:
yarn coverage
Run unit tests with gas report:
yarn gas-report
Run typescript and solidity linters:
yarn lint
Create .env
file and complete the variables:
cp .env.example .env
Deploy covered vault factory contract:
yarn deploy:factory:mainnet
Deploy cover manager contract:
yarn deploy:cover-manager:mainnet
Deploy a new covered vault contract:
yarn deploy:covered-vault:mainnet
Deploy mock contracts:
yarn deploy:mocks:goerli
Deploy covered vault factory contract:
yarn deploy:factory:goerli
Deploy cover manager contract:
yarn deploy:cover-manager:goerli
Deploy a new covered vault contract:
yarn deploy:covered-vault:goerli