Skip to content

Commit 065fba2

Browse files
committed
feat: correct wire format definitions
1 parent a1dff0f commit 065fba2

File tree

8 files changed

+89
-1545
lines changed

8 files changed

+89
-1545
lines changed

hermes/Cargo.lock

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hermes/src/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use {
3232
moka::future::Cache,
3333
pyth_oracle::Message,
3434
pyth_sdk::PriceIdentifier,
35-
pythnet_sdk::payload::v1::{
35+
pythnet_sdk::wire::v1::{
3636
WormholeMerkleRoot,
3737
WormholeMessage,
3838
WormholePayload,

hermes/src/store/proof/wormhole_merkle.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ use {
1717
Accumulator,
1818
},
1919
hashers::keccak256_160::Keccak160,
20-
payload::v1::{
21-
AccumulatorUpdateData,
22-
MerklePriceUpdate,
23-
Proof,
24-
WormholeMerkleRoot,
20+
wire::{
21+
to_vec,
22+
v1::{
23+
AccumulatorUpdateData,
24+
MerklePriceUpdate,
25+
Proof,
26+
WormholeMerkleRoot,
27+
},
2528
},
26-
ser::to_vec,
2729
},
2830
};
2931

pythnet/pythnet_sdk/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ byteorder = "1.4.3"
1818
fast-math = "0.1"
1919
hex = { version = "0.4.3", features = ["serde"] }
2020
serde = { version = "1.0.144", features = ["derive"] }
21-
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1"}
2221
sha3 = "0.10.4"
2322
slow_primes = "0.1.14"
2423
thiserror = "1.0.40"
25-
wormhole-sdk = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" }
2624

2725
[dev-dependencies]
2826
base64 = "0.21.0"
@@ -37,6 +35,3 @@ targets = ["x86_64-unknown-linux-gnu"]
3735

3836
[build-dependencies]
3937
rustc_version = "0.4"
40-
41-
[patch.crates-io]
42-
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" }

0 commit comments

Comments
 (0)