add poke_deposit extrinsic to pallet-proxy (#7801)
# Description * This PR adds a new extrinsic `poke_deposit` to `pallet-proxy`. This extrinsic will be used to re-adjust the deposits made in the pallet to create a proxy or to create an announcement. * Part of #5591 ## Review Notes * Added a new extrinsic `poke_deposit` in `pallet-proxy`. * This extrinsic checks and adjusts the deposits made for either creating a proxy or creating an announcement or both. * Added a new event `DepositPoked` to be emitted upon a successful call of the extrinsic. * 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 for creating a proxy or to the deposit for creating an announcement or both and `paid` otherwise (when no deposit is changed). * Added a new enum `DepositKind` to differen...
Showing
- cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/pallet_proxy.rs 66 additions, 50 deletions...times/assets/asset-hub-rococo/src/weights/pallet_proxy.rs
- cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_proxy.rs 66 additions, 50 deletions...imes/assets/asset-hub-westend/src/weights/pallet_proxy.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/src/weights/pallet_proxy.rs 66 additions, 50 deletions...llectives/collectives-westend/src/weights/pallet_proxy.rs
- cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/pallet_proxy.rs 66 additions, 50 deletions...imes/coretime/coretime-rococo/src/weights/pallet_proxy.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_proxy.rs 66 additions, 50 deletions...mes/coretime/coretime-westend/src/weights/pallet_proxy.rs
- cumulus/parachains/runtimes/people/people-rococo/src/weights/pallet_proxy.rs 66 additions, 50 deletions...runtimes/people/people-rococo/src/weights/pallet_proxy.rs
- cumulus/parachains/runtimes/people/people-westend/src/weights/pallet_proxy.rs 66 additions, 50 deletions...untimes/people/people-westend/src/weights/pallet_proxy.rs
- polkadot/runtime/rococo/src/weights/pallet_proxy.rs 66 additions, 50 deletionspolkadot/runtime/rococo/src/weights/pallet_proxy.rs
- polkadot/runtime/westend/src/weights/pallet_proxy.rs 65 additions, 49 deletionspolkadot/runtime/westend/src/weights/pallet_proxy.rs
- prdoc/pr_7801.prdoc 25 additions, 0 deletionsprdoc/pr_7801.prdoc
- substrate/frame/proxy/src/benchmarking.rs 116 additions, 0 deletionssubstrate/frame/proxy/src/benchmarking.rs
- substrate/frame/proxy/src/lib.rs 135 additions, 2 deletionssubstrate/frame/proxy/src/lib.rs
- substrate/frame/proxy/src/tests.rs 242 additions, 5 deletionssubstrate/frame/proxy/src/tests.rs
- substrate/frame/proxy/src/weights.rs 149 additions, 119 deletionssubstrate/frame/proxy/src/weights.rs
Please register or sign in to comment