1.2.0 • Published 3 years ago
@equilibria/perennial-oracle v1.2.0
Perennial Oracle
Oracle normalization contracts for the 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:
$ yarnCompile
Compile the smart contracts with Hardhat and Typechain:
$ yarn compileTest
Run the Mocha tests:
$ yarn testTo run integration tests against a Mainnet fork, set your MAINNET_NODE_URL in .env and run
$ yarn test:integrationGas Report
To get a gas report based on integration test calls:
$ yarn gasReportDeploy 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>