Bounty Pallet: add `approve_bounty_with_curator` call to `bounties` pallet (#5961)
Resolves issue https://github.com/paritytech/polkadot-sdk/issues/5928 Adds `approve_bounty_with_curator` call to the `bounties` pallet to combine functions of `approve_bounty` and `propose_curator` into one call. Also adds a new status `ApprovedWithCurator` required to distinguish if bounty was approved with curator when skipping through `Funded` status and moving to `CuratorProposed` status. If `unassign_curator` is called after `approve_bounty_with_curator` the process will fall back to the old flow of calling `propose_curator` separately. --------- Co-authored-by:DavidK <davidk@parity.io> Co-authored-by: command-bot <> Co-authored-by:
Ankan <10196091+Ank4n@users.noreply.github.com>
Showing
- polkadot/runtime/rococo/src/weights/pallet_bounties.rs 47 additions, 35 deletionspolkadot/runtime/rococo/src/weights/pallet_bounties.rs
- prdoc/pr_5961.prdoc 15 additions, 0 deletionsprdoc/pr_5961.prdoc
- substrate/frame/bounties/src/benchmarking.rs 15 additions, 0 deletionssubstrate/frame/bounties/src/benchmarking.rs
- substrate/frame/bounties/src/lib.rs 70 additions, 2 deletionssubstrate/frame/bounties/src/lib.rs
- substrate/frame/bounties/src/tests.rs 227 additions, 6 deletionssubstrate/frame/bounties/src/tests.rs
- substrate/frame/bounties/src/weights.rs 108 additions, 83 deletionssubstrate/frame/bounties/src/weights.rs
Please register or sign in to comment