1.2.0 • Published 1 year ago

@equilibria/perennial-oracle v1.2.0

Weekly downloads
-
License
APACHE-2.0
Repository
-
Last release
1 year ago

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:

$ 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>