File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
contracts/solana/programs/pyth-lazer-solana-contract Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ no-log-ix-name = []
1919idl-build = [" anchor-lang/idl-build" ]
2020
2121[dependencies ]
22- pyth-lazer-protocol = { path = " ../../../../sdk/rust/protocol" , version = " 0.7.2 " }
22+ pyth-lazer-protocol = { path = " ../../../../sdk/rust/protocol" , version = " 0.8.0 " }
2323
2424anchor-lang = " 0.30.1"
2525bytemuck = " 1.20.0"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ license = "Apache-2.0"
77repository = " https://github.com/pyth-network/pyth-crosschain"
88
99[dependencies ]
10- pyth-lazer-protocol = { version = " 0.7.2 " , path = " ../../sdk/rust/protocol" }
10+ pyth-lazer-protocol = { version = " 0.8.0 " , path = " ../../sdk/rust/protocol" }
1111anyhow = " 1.0.98"
1212protobuf = " 3.7.2"
1313serde-value = " 0.7.0"
Original file line number Diff line number Diff line change @@ -188,13 +188,13 @@ impl From<UpdateParams> for Update {
188188 best_ask_price,
189189 } => Update :: PriceUpdate ( PriceUpdate {
190190 price : Some ( price. 0 . into ( ) ) ,
191- best_bid_price : Some ( best_bid_price. 0 . into ( ) ) ,
192- best_ask_price : Some ( best_ask_price. 0 . into ( ) ) ,
191+ best_bid_price : best_bid_price. map ( |p| p . 0 . into ( ) ) ,
192+ best_ask_price : best_ask_price. map ( |p| p . 0 . into ( ) ) ,
193193 special_fields : Default :: default ( ) ,
194194 } ) ,
195195 UpdateParams :: FundingRateUpdate { price, rate } => {
196196 Update :: FundingRateUpdate ( FundingRateUpdate {
197- price : Some ( price. 0 . into ( ) ) ,
197+ price : price. map ( |p| p . 0 . into ( ) ) ,
198198 rate : Some ( rate. 0 ) ,
199199 special_fields : Default :: default ( ) ,
200200 } )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ description = "A Rust client for Pyth Lazer"
66license = " Apache-2.0"
77
88[dependencies ]
9- pyth-lazer-protocol = { path = " ../protocol" , version = " 0.7.2 " }
9+ pyth-lazer-protocol = { path = " ../protocol" , version = " 0.8.0 " }
1010tokio = { version = " 1" , features = [" full" ] }
1111tokio-tungstenite = { version = " 0.20" , features = [" native-tls" ] }
1212futures-util = " 0.3"
You can’t perform that action at this time.
0 commit comments