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 wormhole middleware to wormchain #3234

Conversation

misko9
Copy link
Contributor

@misko9 misko9 commented Jul 24, 2023

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.

@misko9 misko9 requested a review from evan-gray as a code owner July 25, 2023 17:05
Copy link
Contributor

@nik-suri nik-suri left a 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.

sdk/vaa/payloads.go Outdated Show resolved Hide resolved
wormchain/x/wormhole/types/message_middleware_contract.go Outdated Show resolved Hide resolved
wormchain/app/app.go Outdated Show resolved Hide resolved
// 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.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comment should say "IbcTranslator"

@nik-suri nik-suri deleted the branch wormhole-foundation:instantiate-allowlist August 7, 2023 18:18
@nik-suri nik-suri closed this Aug 7, 2023
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.

3 participants