-
Notifications
You must be signed in to change notification settings - Fork 0
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
🟦 EPIC: IBC
and IBC Receiver
contracts should have tests
#42
Comments
RE governance vaa learnings: list of available modules https://github.com/wormhole-foundation/wormhole/blob/main/sdk/vaa/payloads.go#L15 for this task we need |
IBC
and IBC Reciever
contractsIBC
and IBC Receiver
contracts should have tests
blocked on #58 |
Q: "Is there a repo of sample VAAs that I can look at?" It's complaining about bech32. @nik-suri sez there's a special way to encode. @kakucodes will post the command to slack and @nik-suri will help direct him from there |
nikhil explained today that for all governance vaas manual/adhoc relaying is used so that is what i'll implement for this set of tests https://strangeloveventures.slack.com/archives/C057DTCM76G/p1722606186283359 |
WIP diagramming as i've been debugging through the gov vaa encoding/decoding flow ---
title: Governance VAA Lifecycle
---
flowchart TD
subgraph Encode
WormchainStoreContract --> ContractCodeId["Contract Code Id"]
ContractCodeId .-> |"uint64 -> little endian byte order [32]byte"|CodeIdByteArray["[32]byte Representation of Code Id"]
CodeIdByteArray --> SubmitContractUpgradeGovernanceVAA["helpers.SubmitContractUpgradeGovernanceVAA"]
SubmitContractUpgradeGovernanceVAA .-> |"template into vaa.BodyContractUpgrade\n\nvaa.Serialize()\n\ngenerateGovernanceVaa\n\nmarshal vaa\n\nhex.EncodeToString"|WormchaindEncode["node.ExecTx/Wormchaind"]
end
subgraph Decode
Wormchaind["wormchaind wormhole execute-governance-vaa [vaa]"] -->
CmdExecuteGovernanceVAA
CmdExecuteGovernanceVAA .-> |"hex.DecodeString\n\ntypes.NewMsgExecuteGovernanceVaa"|ExecuteGovernanceVAA
ExecuteGovernanceVAA .-> |"ParseVAA - unmarshalling"|WormholeKeeper["keeper.VerifyGovernanceVaa"]
WormholeKeeper .-> |"keeper.verifyVAA\n\naction = v.Payload[32]"|End[" "]
end
WormchaindEncode --> Decode
|
had a breakthrough in progress with evan redirecting me with how the gov vaas for core upgrades and ibc receiver update channel chains should be handled. the tldr is that coreupgrade is meant to be triggered not explicitly as a gov vaa but instead using more can be read here |
@nik-suri sez "maybe share the mermaid in |
IBC
and IBC Receiver
contracts should have testsIBC
and IBC Receiver
contracts should have tests
description of the use of the ibc and ibc receiver contracts here: https://github.com/wormhole-foundation/wormhole/blob/dc3a6cf804137525239dbdb69cd56687322f8d50/whitepapers/0012_ibc_generic_messaging.md
Tasks
wormchaind tx wormhole migrate
to do core contract upgrades and create the appropriate vaa strings #71IbcReceiverUpdateChainConnection
#73The text was updated successfully, but these errors were encountered: