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

add lightweight message to replace Deposit #50

Open
a5-pickle opened this issue Apr 1, 2024 · 1 comment
Open

add lightweight message to replace Deposit #50

a5-pickle opened this issue Apr 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@a5-pickle
Copy link
Contributor

The Deposit message comes from the [Wormhole Circle Integration], but it has more fields than we need.

Introduce a lightweight message (maybe called CctpMessage?) that only has the following fields:

  • source CCTP domain
  • destination CCTP domain
  • CCTP nonce

Source CCTP domain may not be needed because the emitter chain in the VAA should determine the source network.

This will save 128 bytes, which results in 6960 * 128 = 890880 lamports for the posted VAA account per order settlement.

Notes

We may want to introduce this change to the Wormhole CCTP Library introduced in this PR and a corresponding change to the WIP Solana lib.

@a5-pickle a5-pickle added the enhancement New feature or request label Apr 1, 2024
@a5-pickle
Copy link
Contributor Author

Also consider increasing the payload length from u16 to u32, which would reduce the cost savings to 126 bytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant