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

feat: add multi message support for greenfield crosschain app #417

Merged
merged 5 commits into from
Apr 7, 2024

Conversation

cosinlink
Copy link
Contributor

Description

add multi message support for greenfield crosschain app

Rationale

support multi messages in a crosschain package from BSC

Changes

Notable changes:

  • add multi-message channel and handler

crash, result := executeClaim(cacheCtx, crossChainApp, srcChainId, sequence, pack.Payload, &packageHeader)

if pack.ChannelId == types.MultiMessageChannelId {
crash, result = k.handleMultiMessagePackage(cacheCtx, pack, &packageHeader, srcChainId)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is a hardfork, isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, will add upgrade for it

Address, _ = abi.NewType("address", "", nil)

MessageTypeArgs = abi.Arguments{
{Name: "ChannelId", Type: Uint8},
Copy link
Contributor

@pythonberg1997 pythonberg1997 Mar 28, 2024

Choose a reason for hiding this comment

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

I think we could use {Name: "ChannelId", Type: "uint8"} directly. No need to define a new type Uint8. So do other primary types.

@pythonberg1997
Copy link
Contributor

Rebase develop branch and add hardfork logic

@cosinlink cosinlink added this pull request to the merge queue Apr 7, 2024
Merged via the queue into develop with commit 308bb78 Apr 7, 2024
15 checks passed
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