Skip to content

feat(pyth-lazer) Implement JRPC endpoint for the lazer agent #2837

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

Merged
merged 24 commits into from
Jul 9, 2025

Conversation

bplatak
Copy link
Contributor

@bplatak bplatak commented Jul 7, 2025

Summary

Implement the JRPC endpoint in the lazer agent.

Rationale

Adding the implementation to cover the recently added schema in #2836 as per customer requests

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

Copy link

vercel bot commented Jul 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 6:37pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 6:37pm
developer-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 6:37pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 6:37pm
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 6:37pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 6:37pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 6:37pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 6:37pm

Comment on lines 220 to 228
let receive = async { ws_receiver.receive(&mut receive_buf).await };
pin!(receive);
loop {
select! {
_result = &mut receive => {
break
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen you use this idiom elsewhere, could you elaborate on the issue here? Want to make sure I don't make a mistake with this in the future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants