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 = []
19
19
idl-build = [" anchor-lang/idl-build" ]
20
20
21
21
[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 " }
23
23
24
24
anchor-lang = " 0.30.1"
25
25
bytemuck = " 1.20.0"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ license = "Apache-2.0"
7
7
repository = " https://github.com/pyth-network/pyth-crosschain"
8
8
9
9
[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" }
11
11
anyhow = " 1.0.98"
12
12
protobuf = " 3.7.2"
13
13
serde-value = " 0.7.0"
Original file line number Diff line number Diff line change @@ -188,13 +188,13 @@ impl From<UpdateParams> for Update {
188
188
best_ask_price,
189
189
} => Update :: PriceUpdate ( PriceUpdate {
190
190
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 ( ) ) ,
193
193
special_fields : Default :: default ( ) ,
194
194
} ) ,
195
195
UpdateParams :: FundingRateUpdate { price, rate } => {
196
196
Update :: FundingRateUpdate ( FundingRateUpdate {
197
- price : Some ( price. 0 . into ( ) ) ,
197
+ price : price. map ( |p| p . 0 . into ( ) ) ,
198
198
rate : Some ( rate. 0 ) ,
199
199
special_fields : Default :: default ( ) ,
200
200
} )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ description = "A Rust client for Pyth Lazer"
6
6
license = " Apache-2.0"
7
7
8
8
[dependencies ]
9
- pyth-lazer-protocol = { path = " ../protocol" , version = " 0.7.2 " }
9
+ pyth-lazer-protocol = { path = " ../protocol" , version = " 0.8.0 " }
10
10
tokio = { version = " 1" , features = [" full" ] }
11
11
tokio-tungstenite = { version = " 0.20" , features = [" native-tls" ] }
12
12
futures-util = " 0.3"
You can’t perform that action at this time.
0 commit comments