-
Notifications
You must be signed in to change notification settings - Fork 690
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 wormhole middleware to wormchain #3234
Add wormhole middleware to wormchain #3234
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Couple of nits and one question. One more thing - could we rename wormhole-mw
to something like ibc-composability-mw
? There may be more custom middlewares we implement on Gateway, so I'd like to keep the name specific.
…dleware governance vaas
middleware memo field.
GatewayTransfer/GatewayTransferWithPayload
WORMCHAIN_WASM_INSTANTIATE_ALLOWLIST_ACTION_ADD and IBC_UPDATE_CHANNEL_CHAIN_MODULE_RECEIVER.
// It is the hex representation of "IbcReceiver" left padded with zeroes. | ||
var IbcReceiverModule = [32]byte{ | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
0x00, 0x00, 0x00, 0x00, 0x00, 0x49, 0x62, 0x63, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, | ||
} | ||
var IbcReceiverModuleStr = string(IbcReceiverModule[:]) | ||
|
||
// IbcTranslatorModule is the identifier of the Wormchain ibc_receiver contract module (which is used for governance messages) | ||
// It is the hex representation of "IbcReceiver" left padded with zeroes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment should say "IbcTranslator"
This PR is a stacked PR and includes #3232 and #3233. Comments regarding x/ibc-hooks should be in #3232. Comments regarding PFM should be in #3233.
Comments regarding wormhole-mw, app.go integration, and wormhole module/VAA changes belong here.