Perennial V2 Oracle
npm install @perennial/oracleOracle systems for the Perennial V2 Protocol
Before running any command, make sure to install dependencies. Run this in the root workspace as well to capture package patches:
``sh`
$ yarn
Compile the smart contracts with Hardhat:
`sh`
$ yarn compile
This also generates the Typechain types
Example invocation:
`sh`
npx hardhat get-vaa --price-feed 0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace --timestamp 1711425600
Run the Mocha tests:
`sh`
$ yarn test
To run tests against a Mainnet fork, set your MAINNET_NODE_URL in the root .env and run
`sh`
$ yarn test:integration
To get a gas report based on unit test calls:
`sh`
$ yarn gasReport
``
npx hardhat run --network rinkeby ./scripts/deploy.ts
```
npx hardhat verify --network
- Gas reporter hardhat-gas-reporter
- Etherscan hardhat-etherscan