Skip to content

Commit 112db1d

Browse files
authored
[Solana] Elevate wormhole core bridge dependency to workspace, stop using my branch (#1228)
* Do it * Do it
1 parent d3ed683 commit 112db1d

File tree

5 files changed

+12
-23
lines changed

5 files changed

+12
-23
lines changed

target_chains/solana/Cargo.lock

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

target_chains/solana/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ codegen-units = 1
1515

1616
[patch.crates-io]
1717
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" }
18+
19+
[workspace.dependencies]
20+
wormhole-core-bridge-solana = {git = "https://github.com/wormhole-foundation/wormhole", branch = "wen/solana-rewrite"}

target_chains/solana/cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ wormhole-sdk = { git = "https://github.com/wormhole-foundation/wormhole", tag =
1818
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1"} # Used to deserialize VAAs
1919
hex = "0.4.3"
2020
borsh = "0.9.3" # Old version of borsh needed for wormhole-solana
21-
wormhole-core-bridge-solana = {git = "https://github.com/guibescos/wormhole", branch = "variable-sigs"} # Used to post VAAs to the wormhole receiver
21+
wormhole-core-bridge-solana = {workspace = true}

target_chains/solana/cli/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ use {
4343
system_instruction,
4444
transaction::Transaction,
4545
},
46-
wormhole_core_bridge_solana::{
47-
processor::WriteEncodedVaaArgs,
48-
state::EncodedVaa,
46+
wormhole_core_bridge_solana::sdk::{
47+
WriteEncodedVaaArgs,
48+
VAA_START,
4949
},
5050
wormhole_sdk::{
5151
vaa::{
@@ -385,7 +385,7 @@ pub fn process_write_encoded_vaa_and_post_price_update(
385385
merkle_price_update: &MerklePriceUpdate,
386386
) -> Result<Pubkey> {
387387
let encoded_vaa_keypair = Keypair::new();
388-
let encoded_vaa_size: usize = vaa.len() + EncodedVaa::VAA_START;
388+
let encoded_vaa_size: usize = vaa.len() + VAA_START;
389389

390390
let create_encoded_vaa = system_instruction::create_account(
391391
&payer.pubkey(),

target_chains/solana/programs/pyth-solana-receiver/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ anchor-lang = "0.28.0"
2020
pythnet-sdk = { path = "../../../../pythnet/pythnet_sdk", version = "2.0.0" }
2121
solana-program = "1.16.20"
2222
byteorder = "1.4.3"
23-
wormhole-core-bridge-solana = {git = "https://github.com/wormhole-foundation/wormhole", branch = "wen/solana-rewrite", features = ["cpi"]}
23+
wormhole-core-bridge-solana = {workspace = true}
2424
wormhole-raw-vaas = {version = "0.0.1-alpha.1", features = ["ruint", "on-chain"], default-features = false }
2525

2626
[dev-dependencies]

0 commit comments

Comments
 (0)