-
Notifications
You must be signed in to change notification settings - Fork 225
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
feat(lazer/sdk/rust): add rust client for Lazer #2310
feat(lazer/sdk/rust): add rust client for Lazer #2310
Conversation
Co-Authored-By: Tejas Badadare <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
Co-Authored-By: Tejas Badadare <[email protected]>
Co-Authored-By: Tejas Badadare <[email protected]>
Co-Authored-By: Tejas Badadare <[email protected]>
Co-Authored-By: Tejas Badadare <[email protected]>
…cribe example Co-Authored-By: Tejas Badadare <[email protected]>
…scribe handling Co-Authored-By: Tejas Badadare <[email protected]>
Co-Authored-By: Tejas Badadare <[email protected]>
Co-Authored-By: Tejas Badadare <[email protected]>
…, source token from env for easier testing
…b64 encode. add parse and verify to the example.
Ok(()) | ||
} | ||
|
||
fn parse_and_verify_solana_message(solana_message: &SolanaMessage) -> anyhow::Result<PayloadData> { |
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.
added parse_and_verify functions to the example to make it end-to-end. kept it as example code to match protocol/examples/parse_and_verify.rs
, but i'm open to adding it as a library function. i think this is fine since this is simple signature verification using common crates.
Thanks all for the helpful insights on the binary protocol, round 2 is up |
Link to Devin run: https://app.devin.ai/sessions/554f91bb56fb4e7a89a56f1eb8b04c6b
Summary
This PR adds a Rust client for Pyth Lazer, providing a simple WebSocket client to subscribe to price feed updates. Will be used by Pyth Native to subscribe to Lazer feeds.
The implementation:
pyth-lazer-client
inlazer/sdk/rust/client
start
,subscribe
, andunsubscribe
methodspyth-lazer-protocol
Manually tested against prod Lazer. Usage example in
examples/
Up next