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

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Dec 13, 2023

This PR essentially adds process_write_encoded_vaa to the CLI. This is the way to post a vaa in the more efficient Wormhole rewrite for Solana.

Copy link

vercel bot commented Dec 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Visit Preview Dec 14, 2023 7:41pm
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Dec 14, 2023 7:41pm

@guibescos guibescos changed the base branch from main to deploy-solana-wormhole-receiver December 13, 2023 15:54
Base automatically changed from deploy-solana-wormhole-receiver to main December 14, 2023 19:21
@@ -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

// because the wormhole_solana crate does uses an older versions of the dependencies.
// This can be removed once the GuardianSet is added to the wormhole_anchor_sdk
#[derive(Default, AnchorSerialize, AnchorDeserialize, Clone, PartialEq, Eq)]
pub struct GuardianSet {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cleanup this duplicated struct

let guardian_set = GuardianSet::key(&wormhole, header.guardian_set_index);

let request_compute_units_instruction: Instruction =
ComputeBudgetInstruction::set_compute_unit_limit(400_000);
Copy link
Contributor Author

@guibescos guibescos Dec 14, 2023

Choose a reason for hiding this comment

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

The compute units here is quite a bummer and increases the size of the payload, but needed with 13 signatures

@guibescos guibescos changed the title New receiver post vaa [solana-receiver-cli] Add logic to receive VAAs with the new Wormhole receiver Dec 14, 2023
@guibescos guibescos marked this pull request as ready for review December 14, 2023 19:44
@guibescos guibescos merged commit 7bf41c4 into main Dec 15, 2023
4 checks passed
@guibescos guibescos deleted the new-receiver-post-vaa branch December 15, 2023 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants