@equilibria/perennial
v1.2.0
Published
Perennial Protocol Core
Downloads
11
Readme
Perennial Protocol
Smart contracts for the core perennial protocol.
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>