migration(democracy): unreserve deposits and clear locks (#14226)
* unlock and unreserve all migration * log total amount to unlock * clippy * clippy * simplify balance types * add tests * fix comment * fix std features * remove redundant dev-dep * address comments * remove redundant std * estimate weights * fix comments * fix tests * clippy * track democracy bugged deposits * improve pre_migration logs * oliver comments from tips pr * run pre and post hooks in tests * flexible dbweight type * Update frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs Co-authored-by:Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * docs * Update frame/democracy/src/lib.rs Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * add log target * fix visibility * lint * use log target --------- Co-authored-by:
Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by:
Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Showing
- substrate/frame/democracy/src/lib.rs 1 addition, 1 deletionsubstrate/frame/democracy/src/lib.rs
- substrate/frame/democracy/src/migrations/mod.rs 22 additions, 0 deletionssubstrate/frame/democracy/src/migrations/mod.rs
- substrate/frame/democracy/src/migrations/unlock_and_unreserve_all_funds.rs 351 additions, 0 deletions...emocracy/src/migrations/unlock_and_unreserve_all_funds.rs
- substrate/frame/democracy/src/migrations/v1.rs 1 addition, 1 deletionsubstrate/frame/democracy/src/migrations/v1.rs
Please register or sign in to comment