From 89f424d19244c0382421b5abcbc939aa70fb1ea0 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Wed, 8 Jan 2025 11:01:03 -0800 Subject: [PATCH] fix(lazer-protocol): Latest Price Inner Fields Public (#2231) * Make inner fields public * Bump version for hopefully the last time * Bump lock file version too --- lazer/Cargo.lock | 2 +- lazer/sdk/rust/protocol/Cargo.toml | 2 +- lazer/sdk/rust/protocol/src/api.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lazer/Cargo.lock b/lazer/Cargo.lock index a1145372c..b8cee5ad4 100644 --- a/lazer/Cargo.lock +++ b/lazer/Cargo.lock @@ -3190,7 +3190,7 @@ dependencies = [ [[package]] name = "pyth-lazer-protocol" -version = "0.2.3" +version = "0.2.4" dependencies = [ "anyhow", "bincode", diff --git a/lazer/sdk/rust/protocol/Cargo.toml b/lazer/sdk/rust/protocol/Cargo.toml index cbf4110a9..a787291a4 100644 --- a/lazer/sdk/rust/protocol/Cargo.toml +++ b/lazer/sdk/rust/protocol/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyth-lazer-protocol" -version = "0.2.3" +version = "0.2.4" edition = "2021" description = "Pyth Lazer SDK - protocol types." license = "Apache-2.0" diff --git a/lazer/sdk/rust/protocol/src/api.rs b/lazer/sdk/rust/protocol/src/api.rs index f13fb3c16..c1488b387 100644 --- a/lazer/sdk/rust/protocol/src/api.rs +++ b/lazer/sdk/rust/protocol/src/api.rs @@ -25,6 +25,6 @@ pub struct LatestPriceResponse { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct LatestPrice { - id: PriceFeedId, - prices: AggregatedPriceFeedData, + pub id: PriceFeedId, + pub prices: AggregatedPriceFeedData, }