-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pallet-dapp-staking): Add V8 to V9 migration with new staking in…
…fo structure - Introduced a migration for `pallet-dapp-staking` to transition from version 8 to version 9. - Updated `StakerInfo` storage to use the new `NewSingularStakingInfo` structure with a `BonusStatus` field. - Implemented the `VersionMigrateV8ToV9` migration logic, translating `OldSingularStakingInfo` to `NewSingularStakingInfo`. - Modified runtime definitions (`astar`, `local`, `shibuya`, `shiden`) to include the V8 to V9 migration in the `Unreleased` migration type. - Incremented `STORAGE_VERSION` to 9 in `pallet-dapp-staking`. - Updated benchmarking for `move_stake` to improve setup and maintain consistency. - Cleaned up extraneous spacing and formatting in benchmarking code. This commit prepares for a storage migration and introduces enhancements to staking functionalities, enabling support for bonus status tracking.
- Loading branch information
1 parent
ef3ed20
commit bb84e54
Showing
7 changed files
with
102 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters