Sfoglia il codice sorgente

chore(lazer/publisher-sdk): Add Rejections for Market Closed and Unauthorized (#2930)

* add two more rejection options

* bump publisher sdk version

* rename unpermissioned

* bump protocol for publisher sdk

* bump lazer client protocol verison too
Darun Seethammagari 3 mesi fa
parent
commit
5d7c6af159

+ 1 - 1
Cargo.lock

@@ -5728,7 +5728,7 @@ dependencies = [
 
 [[package]]
 name = "pyth-lazer-publisher-sdk"
-version = "0.4.0"
+version = "0.4.1"
 dependencies = [
  "anyhow",
  "fs-err",

+ 2 - 0
lazer/publisher_sdk/proto/transaction_envelope.proto

@@ -65,4 +65,6 @@ enum RejectReason {
     InvalidFeedId = 3;
     MissingFields = 4;
     InactiveFeedId = 5;
+    MarketClosed = 6;
+    Unauthorized = 7;
 }

+ 2 - 2
lazer/publisher_sdk/rust/Cargo.toml

@@ -1,13 +1,13 @@
 [package]
 name = "pyth-lazer-publisher-sdk"
-version = "0.4.0"
+version = "0.4.1"
 edition = "2021"
 description = "Pyth Lazer Publisher SDK types."
 license = "Apache-2.0"
 repository = "https://github.com/pyth-network/pyth-crosschain"
 
 [dependencies]
-pyth-lazer-protocol = { version = "0.10.1", path = "../../sdk/rust/protocol" }
+pyth-lazer-protocol = { version = "0.10.2", path = "../../sdk/rust/protocol" }
 anyhow = "1.0.98"
 protobuf = "3.7.2"
 serde_json = "1.0.140"

+ 1 - 1
lazer/sdk/rust/client/Cargo.toml

@@ -6,7 +6,7 @@ description = "A Rust client for Pyth Lazer"
 license = "Apache-2.0"
 
 [dependencies]
-pyth-lazer-protocol = { path = "../protocol", version = "0.10.1" }
+pyth-lazer-protocol = { path = "../protocol", version = "0.10.2" }
 tokio = { version = "1", features = ["full"] }
 tokio-tungstenite = { version = "0.20", features = ["native-tls"] }
 futures-util = "0.3"