-
Notifications
You must be signed in to change notification settings - Fork 40
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: implement BEP-333(BNB Chain Fusion) #1003
Conversation
* feat: disable msgs * fix: update dep * fix: check unlock timelock error * feat: implement airdrop approval msg * fix: sign data of AirDropApproval * fix: enforce the eth address to hex format * refactor * fix: remove tokenIndex for airdrop approval * fix comments * fix: reuse codes * fix: enforce recipient address to lower case when signing data to be compatible with the contract * fix: rename airdrop to token-recover * fix: update cosmos-sdk * fix: incorrect behavior for refund swap * fix: comments * fix: lint error * fix: swapIterator
* feat: add Sunset hardfork config * fix: nil pointer when doing ibc method in endblock
* fix: format refound logs and skip skip the processed swap * chore: update cosmos-sdk * chore: update cosmos-sdk * chore: update cosmos-sdk * fix: SetLatestProcessedRefundSwapKey out of loop * chore: update cosmos-sdk * chore: update cosmos-sdk * revert: skip processed swap * chore: update cosmos-sdk * chore: update cosmos-sdk
* feat: add `MsgSideChainStakeMigration` and `StakeMigrationApp` * fix review comments * go mod tidy * update fee param for `MsgSideChainStakeMigration` * update go.mod
* chore: update cosmos-sdk to fix refundStake issue * chore: update cosmos-sdk * chore: update cosmos-sdk
11 |
* feat: implement sign-validator-ownership cmd * fix: add 0x prefix to the sig output
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #1003 +/- ##
===========================================
- Coverage 49.08% 47.87% -1.22%
===========================================
Files 127 127
Lines 12703 12822 +119
===========================================
- Hits 6235 6138 -97
- Misses 6044 6249 +205
- Partials 424 435 +11 ☔ View full report in Codecov by Sentry. |
* chore: update cosmos-sdk * chore: fix testcase * fix: remove bep159 ut
feat: implement BEP-333(BNB Chain Fusion) (#1003)
Description
Implement the functions for the
BC-Fusion
plan.The Beacon Chain in the
BC-Fusion
plan consists of four stages:FirstSunsetFork - Disable Certain Message Types:
In this stage, the system will disable specific message types to prevent users from creating additional assets on the Beacon Chain. The following
Msgs
will be disabled:MsgSideChainStakeMigration
will be enabled to allow users to redelegate tokens to BSC.MsgSideChainSubmitProposal
will be disabled after the SideChain Total Voting Power falls below 5M BNB.SecondSunsetFork - Token Refunding:
During this stage, the system will process token refunds for users who have assets locked on the Beacon Chain. Refunds will be initiated for TimeLock, AtomicSwap, and
Delegation
on the side chain.MsgSideChainUndelegate
on the Beacon Chain will be disabled to prevent undelegation and ensure system efficiency.FinalSunsetFork - Closure of Cross-Chain Channels:
This marks the final stage of
BC-Fusion
. The system will close all cross-chain channels. After theFinalSunsetFork
, the system will no longer support cross-chain transactions.Token Migration:
After the
FinalSunsetFork
, users may still have assets on the Beacon Chain. The system will support token migration, allowing users to move their assets to BSC. For detailed instructions, please refer to BEP-299.Rationale
For the reasoning behind this plan, refer to BEP-333.
Example
n/a
Notable Changes