@equilibria/perennial-vaults
v1.0.0
Published
Perennial vaults contracts
Downloads
2
Readme
Perennial Vaults
Example contracts for vaults that can be built on top of Perennial.
Usage
Pre Requisites
This repo works best with Node.js v16.x.x, this is preconfigured for users of asdf.
Before running any command, make sure to install dependencies:
$ yarn
Compile
Compile the smart contracts with Hardhat and Typechain:
$ yarn compile
Test
Run the Mocha tests:
$ yarn test
To run integration tests against a Mainnet fork, set your MAINNET_NODE_URL
in .env
and run
$ yarn test:integration
Gas Report
To get a gas report based on integration test calls:
$ yarn gasReport
Deploy contract to netowrk (requires Mnemonic and infura API key)
$ yarn deploy --network <network>
Validate a contract with etherscan (requires API ke)
$ yarn verify --network <network>