Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[solana-receiver-cli] Add logic to receive VAAs with the new Wormhole receiver #1184

Merged
merged 14 commits into from
Dec 15, 2023
Merged
51 changes: 49 additions & 2 deletions target_chains/solana/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions target_chains/solana/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"

[features]
default = ["mainnet"]
mainnet = ["wormhole-anchor-sdk/mainnet", "pyth-solana-receiver/mainnet"]
devnet = ["wormhole-anchor-sdk/solana-devnet", "pyth-solana-receiver/devnet"]
mainnet = ["pyth-solana-receiver/mainnet"]
devnet = ["pyth-solana-receiver/devnet"]


[dependencies]
Expand All @@ -25,6 +25,7 @@ byteorder = "1.4.3"
serde = "1.0.152"
wormhole-sdk = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" }
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1"}
wormhole-anchor-sdk = { version = "0.1.0-alpha.2" , default-features = false }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of this dependency

cfg-if = "1.0.0"
hex = "0.4.3"
borsh = "0.9.3" # Old version of borsh needed for wormhole-solana
wormhole-core-bridge-solana = {git = "https://github.com/guibescos/wormhole", branch = "variable-sigs"}
8 changes: 4 additions & 4 deletions target_chains/solana/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ pub struct Cli {

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