Browse Source

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
Darun Seethammagari 10 months ago
parent
commit
89f424d192
3 changed files with 4 additions and 4 deletions
  1. 1 1
      lazer/Cargo.lock
  2. 1 1
      lazer/sdk/rust/protocol/Cargo.toml
  3. 2 2
      lazer/sdk/rust/protocol/src/api.rs

+ 1 - 1
lazer/Cargo.lock

@@ -3190,7 +3190,7 @@ dependencies = [
 
 [[package]]
 name = "pyth-lazer-protocol"
-version = "0.2.3"
+version = "0.2.4"
 dependencies = [
  "anyhow",
  "bincode",

+ 1 - 1
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"

+ 2 - 2
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,
 }