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 GreenfieldExecutor #141

Merged
merged 13 commits into from
Mar 26, 2024

Conversation

pythonberg1997
Copy link
Contributor

@pythonberg1997 pythonberg1997 commented Mar 18, 2024

Description

This pr is to add a new system contract GreenfieldExecutor which is used to send greenfield msgs from BSC to greenfield.

For more information, please refer to BEP363.

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add new cross chain channel GNFD_EXECUTOR_CHANNEL and corresponding contract GreenfieldExecutor

@pythonberg1997 pythonberg1997 merged commit 9f0b809 into bnb-chain:multi-message Mar 26, 2024
1 check passed
github-merge-queue bot pushed a commit that referenced this pull request Apr 7, 2024
… in a transaction (#140)

* feat: add MultiMessage

* feat: add MultiMessage and modify BucketHub

* feat: add multi message handler in CrossChain

* fix: lint

* feat: add interface

* feat: rename encodeCreateBucket to prepareBucket

* feat: add prepare delete bucket

* chores: lint code

* feat: add sequence check for ack package from multi-message

* fix: add relayer refund for ack packages split multi-message

* chores: lint

* fix: prepare for GroupHub

* fix: add prepare function for update group

* fix: add prepare delete group

* fix: use sender instead of msg.sender

* feat: modify handle ack package from multi message

* fix: add interface in GroupHub

* fix: add interface for BucketHub

* fix: add channel id check and object interface

* feat: support TokenHub to multi-message

* feat: add `GreenfieldExecutor` (#141)

* feat: add `GreenfieldExecutor`

* update `execute` function

* fix review comments

* update supported messages

* fix build error

* update deploy script

* fix review comments

* fix typo

* update hardhat config

* add unit test

* add annotation

* feat: add multi-message support for permissionHub

* fix: add channel id check before assign

* fix: deploy check

* fix: msg value check for multi message

* fix: multi message contract issues, add interface and scripts

* fix: add size limit for tokenHub transferOut from multi-message

* fix: test

* fix: limit transferOut amount to 0.1 BNB from multi-message

* fix: add refund amount check from multi-message

* fix: unit test

* chores: lint code

* feat: add events for multi message

---------

Co-authored-by: Roshan <[email protected]>
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.

2 participants