-
Notifications
You must be signed in to change notification settings - Fork 267
feat(stylus) - Set up pyth receiver contract for stylus #2792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Replace incorrect .try_read().ok_or() with proper .get() method calls - Add zero-value check for publish_time to determine if price data exists - Contract now compiles successfully without StorageGuard errors Co-Authored-By: ayush.suresh@dourolabs.xyz <byteSlayer31037@gmail.com>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…parsed information actually makes sense
…pdate all price feeds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry i'm confused. what's the difference between this and #2793? i think that one might have been on top of this?
} | ||
|
||
// PriceInfo struct storing price information | ||
pub type PriceInfoReturn = (U64, I32, I64, U64, I64, U64); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot why we couldn't make this a type. it makes it very difficult to understand the response.
Summary
Built on the wormhole stylus contract, this PR establishes the framework for the Pyth contract and implements the get prices functions.
Rationale
These are the first steps to building out the Pyth stylus receiver contract.
How has this been tested?
Formal tests of the getter function will depend on further implementation. This will be added on in future PRs. the existing program builds at the moment.