[pallet-broker] add extrinsic to remove a lease (#7026)
# Description #6929 requests more extrinsics for "managing the network's coretime allocations without needing to dabble with migration+runtime upgrade or set/kill storage patterns" This pull request implements the remove_lease() extrinsic. ## Integration Downstream projects need to benchmark the weight for the remove_lease() extrinsic. ## Review Notes Mentorship is requested to ensure this is implemented correctly. The lease is removed from state using the TaskId as a key. Is this sufficient. Does the extrinsic need to do anything else? --------- Co-authored-by:Jonathan Brown <jbrown@acuity.network> Co-authored-by:
Bastian Köcher <git@kchr.de> Co-authored-by: command-bot <> Co-authored-by:
Dónal Murray <donalm@seadanda.dev> Co-authored-by:
cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by:
Dónal Murray <donal.murray@parity.io>
parent
ecca5826
Showing
- cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/pallet_broker.rs 158 additions, 194 deletions...mes/coretime/coretime-rococo/src/weights/pallet_broker.rs
- cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_broker.rs 152 additions, 178 deletions...es/coretime/coretime-westend/src/weights/pallet_broker.rs
- prdoc/pr_7026.prdoc 17 additions, 0 deletionsprdoc/pr_7026.prdoc
- substrate/frame/broker/src/benchmarking.rs 25 additions, 0 deletionssubstrate/frame/broker/src/benchmarking.rs
- substrate/frame/broker/src/dispatchable_impls.rs 9 additions, 0 deletionssubstrate/frame/broker/src/dispatchable_impls.rs
- substrate/frame/broker/src/lib.rs 17 additions, 0 deletionssubstrate/frame/broker/src/lib.rs
- substrate/frame/broker/src/tests.rs 12 additions, 0 deletionssubstrate/frame/broker/src/tests.rs
- substrate/frame/broker/src/weights.rs 247 additions, 210 deletionssubstrate/frame/broker/src/weights.rs
Please register or sign in to comment