lindy-labs / opus_contracts

Opus Source Code
https://opus.money
Other
0 stars 0 forks source link

script: add oracles for devnet deployment #579

Closed tserg closed 6 months ago

tserg commented 7 months ago

This PR adds a missing step of setting the oracles priority in devnet deployment, setting the yang pair IDs in the oracle adapters (for both devnet and sepolia), and setting the initial prices in the mock oracles (for both devnet and sepolia).

Additionally, since there are some constants that are re-used in the test suite and deployment, I have consolidated them in a new top-level src/constants.cairo file.

tserg commented 6 months ago

I checked with Pragma and STRK/USD TWAP is not available on Sepolia yet. I have added the state change on Sepolia for adding ETH/USD to Pragma only, and updated the Sepolia script accordingly.

tserg commented 6 months ago

STRK/USD TWAP feed is now on Sepolia. I have updated the deploy script and state file.