Skip to content

Commit 7bf41c4

Browse files
authored
[solana-receiver-cli] Add logic to receive VAAs with the new Wormhole receiver (#1184)
* Checkpoint * Checkpoint * Cleanup * More cleanup * Cleanup * Should work * Rename * New receiver post-vaa * Rename legacy * Checkpoint * ADd compute units * Revert htis file * Rename * Comments
1 parent f78301d commit 7bf41c4

File tree

4 files changed

+192
-211
lines changed

4 files changed

+192
-211
lines changed

target_chains/solana/Cargo.lock

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

target_chains/solana/cli/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2021"
55

66
[features]
77
default = ["mainnet"]
8-
mainnet = ["wormhole-anchor-sdk/mainnet", "pyth-solana-receiver/mainnet"]
9-
devnet = ["wormhole-anchor-sdk/solana-devnet", "pyth-solana-receiver/devnet"]
8+
mainnet = ["pyth-solana-receiver/mainnet"]
9+
devnet = ["pyth-solana-receiver/devnet"]
1010

1111

1212
[dependencies]
@@ -25,6 +25,7 @@ byteorder = "1.4.3"
2525
serde = "1.0.152"
2626
wormhole-sdk = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" }
2727
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1"}
28-
wormhole-anchor-sdk = { version = "0.1.0-alpha.2" , default-features = false }
2928
cfg-if = "1.0.0"
3029
hex = "0.4.3"
30+
borsh = "0.9.3" # Old version of borsh needed for wormhole-solana
31+
wormhole-core-bridge-solana = {git = "https://github.com/guibescos/wormhole", branch = "variable-sigs"}

target_chains/solana/cli/src/cli.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ pub struct Cli {
3535

3636
#[derive(Subcommand, Debug)]
3737
pub enum Action {
38-
#[clap(about = "Verify, post and receive the price VAA on solana")]
39-
PostAndReceiveVAA {
40-
#[clap(short = 'v', long, help = "Price VAA from Pythnet")]
41-
vaa: String,
38+
#[clap(about = "Post a price update from Hermes to Solana")]
39+
PostPriceUpdate {
40+
#[clap(short = 'p', long, help = "Payload from Hermes")]
41+
payload: String,
4242
},
4343
#[clap(
4444
about = "Initialize a wormhole receiver contract by sequentially replaying the guardian set updates"

0 commit comments

Comments
 (0)