Skip to content

Commit 8979a0d

Browse files
feat(pyth-lazer-agent): handle push_updates jrpc method (#3064)
1 parent 4fd32c3 commit 8979a0d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

apps/pyth-lazer-agent/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "pyth-lazer-agent"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
edition = "2024"
55
description = "Pyth Lazer Agent"
66
license = "Apache-2.0"
77
repository = "https://github.com/pyth-network/pyth-crosschain"
88

99
[dependencies]
10-
pyth-lazer-publisher-sdk = "0.10.0"
11-
pyth-lazer-protocol = "0.14.0"
10+
pyth-lazer-publisher-sdk = "0.12.1"
11+
pyth-lazer-protocol = "0.15.1"
1212

1313
anyhow = "1.0.98"
1414
backoff = "0.4.0"

apps/pyth-lazer-agent/src/jrpc_handle.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ async fn handle_jrpc_inner<T: AsyncRead + AsyncWrite + Unpin>(
105105
JrpcCall::PushUpdate(request_params) => {
106106
handle_push_update(sender, lazer_publisher, request_params, jrpc_request.id).await
107107
}
108+
JrpcCall::PushUpdates(request_params) => {
109+
for feed in request_params {
110+
handle_push_update(sender, lazer_publisher, feed, jrpc_request.id).await?;
111+
}
112+
Ok(())
113+
}
108114
JrpcCall::GetMetadata(request_params) => {
109115
if let Some(request_id) = jrpc_request.id {
110116
handle_get_metadata(sender, config, request_params, request_id).await

0 commit comments

Comments
 (0)