add poke_deposit extrinsic to pallet-recovery#7882
Conversation
|
/cmd fmt |
|
/cmd prdoc |
|
/cmd bench --pallet pallet_recovery |
|
Command "bench --pallet pallet_recovery" has started 🚀 See logs here |
|
Command "bench --pallet pallet_recovery" has finished ✅ See logs here DetailsSubweight results:
Command output:❌ Failed benchmarks of runtimes/pallets: |
|
/cmd bench --pallet pallet_recovery |
|
Command "bench --pallet pallet_recovery" has started 🚀 See logs here |
|
Command "bench --pallet pallet_recovery" has finished ✅ See logs here DetailsSubweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
|
/cmd --help |
|
/cmd fmt |
Command help: |
|
/cmd fmt |
|
/cmd fmt |
|
/cmd bench --pallet pallet_recovery |
|
Command "bench --pallet pallet_recovery" has started 🚀 See logs here |
|
Command "bench --pallet pallet_recovery" has finished ✅ See logs here DetailsSubweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
* master: (120 commits) [CI] Improve GH build status checking (#8331) [CI/CD] Use original PR name in prdoc check for the backport PR's to the stable branches (#8329) Add new host APIs set_storage_or_clear and get_storage_or_zero (#7857) push to dockerhub (#8322) Snowbridge - V1 - Adds 2 hop transfer to Rococo (#7956) [AHM] Prepare `election-provider-multi-block` for full lazy data deletion (#8304) Check umbrella version (#8250) [AHM] Fully bound staking async (#8303) migrate parachain-templates tests to `gha` (#8226) staking-async: add missing new_session_genesis (#8310) New NFT traits: granular and abstract interface (#5620) Extract create_pool_with_native_on macro to common crate (#8289) XCMP: use batching when enqueuing inbound messages (#8021) Snowbridge - Tests refactor (#8014) Allow configuration of worst case buy execution weight (#7944) Fix faulty pre-upgrade migration check in pallet-session (#8294) [pallet-revive] add get_storage_var_key for variable-sized keys (#8274) add poke_deposit extrinsic to pallet-recovery (#7882) `txpool`: use tracing for structured logging (#8001) [revive] eth-rpc refactoring (#8148) ...
# Description * This PR adds a new extrinsic `poke_deposit` to `pallet-recovery`. This extrinsic will be used to re-adjust the deposits made in the pallet after AHM. * Part of #5591 ## Review Notes * Added a new extrinsic `poke_deposit` in `pallet-recovery`. * Added a new event `DepositPoked` to be emitted upon a successful call of the extrinsic. * Added a new enum `DepositKind` to differentiate between the 2 kinds of deposits in the pallet. * Although the immediate use of the extrinsic will be to give back some of the deposit after the AH-migration, the extrinsic is written such that it can work if the deposit decreases or increases (both). * The call to the extrinsic would be `free` if an actual adjustment is made to the deposit and `paid` otherwise. * Added tests to test all scenarios. * Added benchmark * **Fixed bug** in benchmark helper function `insert_recovery_config` where funds were being reserved from the wrong account. * Minor refactoring to avoid code duplication. * Had to re-organise imports to make the code more readable and modular. In the process, I removed unnecessary dependencies and imported everything from the frame umbrella crate. So this PR also solves: #6504 for `pallet-recovery` ## TO-DOs * [x] Run CI cmd bot to benchmark --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Description
poke_deposittopallet-recovery. This extrinsic will be used to re-adjust the deposits made in the pallet after AHM.pokefor Deposits #5591Review Notes
poke_depositinpallet-recovery.DepositPokedto be emitted upon a successful call of the extrinsic.DepositKindto differentiate between the 2 kinds of deposits in the pallet.freeif an actual adjustment is made to the deposit andpaidotherwise.insert_recovery_configwhere funds were being reserved from the wrong account.pallet-recoveryTO-DOs