add poke_deposit extrinsic to pallet-bounties#8382
Merged
UtkarshBhardwaj007 merged 11 commits intoparitytech:masterfrom May 26, 2025
Merged
add poke_deposit extrinsic to pallet-bounties#8382UtkarshBhardwaj007 merged 11 commits intoparitytech:masterfrom
UtkarshBhardwaj007 merged 11 commits intoparitytech:masterfrom
Conversation
Member
Author
|
/cmd fmt |
Member
Author
|
/cmd prdoc |
Member
Author
|
/cmd bench --pallet pallet_bounties |
Contributor
|
Command "bench --pallet pallet_bounties" has started 🚀 See logs here |
6 tasks
Contributor
|
Command "bench --pallet pallet_bounties" has finished ✅ See logs here DetailsSubweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
kianenigma
reviewed
May 1, 2025
Member
Author
|
/cmd fmt |
ggwpez
reviewed
May 20, 2025
re-gius
approved these changes
May 21, 2025
Contributor
re-gius
left a comment
There was a problem hiding this comment.
LGTM, just a couple of notes:
- safe math for computing deposits
- make testing code shorter
You can address my comments and resolve the comments before merging.
| assert_eq!(pallet_bounties::BountyDescriptions::<Test>::get(0).unwrap(), description); | ||
| assert_eq!(pallet_bounties::BountyCount::<Test>::get(), 1); | ||
|
|
||
| // Change status to approved |
Contributor
There was a problem hiding this comment.
I think it's better to put all the status checks here in a for loop - it's more compact
Member
Author
There was a problem hiding this comment.
I'm not sure I understand. What are we looping on?
Member
Author
|
/cmd fmt |
ordian
added a commit
that referenced
this pull request
May 27, 2025
* master: (99 commits) Snowbridge: Remove asset location check for compatibility (#8473) add poke_deposit extrinsic to pallet-bounties (#8382) litep2p/peerset: Reject non-reserved peers in the reserved-only mode (#8650) Charge deposit based on key length (#8648) [pallet-revive] make subscription task panic on error (#8587) tx/metrics: Add metrics for the RPC v2 `transactionWatch_v1_submitAndWatch` (#8345) Bridges: Fix - Improve try-state for pallet-xcm-bridge-hub (#8615) Introduce CreateBare, deprecated CreateInherent (#7597) Use hashbrown hashmap/hashset in validation context (#8606) ci: rm gitlab config (#8622) 🔪 flaky and Zombienet tests (#8600) cumulus: adjust unincluded segment size metric buckets (#8617) Benchmark storage access on block validation (#8069) Revert 7934 es/remove tj changes (#8611) collator-protocol: add more collation observability (#8230) `fatxpool`: add fallback for ready at light (#8533) txpool: fix tx removal from unlocks set (#8500) XCMP weight metering: account for the MQ page position (#8344) fix epmb solution duplicate issue + add remote mining apparatus to epm (#8585) Fix generated address returned by Substrate RPC runtime call (#8504) ...
pgherveou
pushed a commit
that referenced
this pull request
Jun 11, 2025
# Description * This PR adds a new extrinsic `poke_deposit` to `pallet-bounties`. This extrinsic will be used to re-adjust the deposits made in the pallet to create a new bounty. * Part of #5591 ## Review Notes * Added a new extrinsic `poke_deposit` in `pallet-bounties`. * This extrinsic checks and adjusts the deposits made for creating a bounty. * 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 and `paid` otherwise (when no deposit is changed). * Added tests to test all scenarios. * Added benchmarks ## TO-DOs * [x] Run CI cmd bot to benchmark --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
21 tasks
fellowship-merge-bot bot
pushed a commit
to polkadot-fellows/runtimes
that referenced
this pull request
Aug 7, 2025
This brings in `stable2506` Polkadot SDK, and integrates many new features. Integrated breaking changes to be verified by the original authors: - [x] ~paritytech/polkadot-sdk#8127 @kianenigma @Ank4n~ This will come in with AHM, and not before. - [x] paritytech/polkadot-sdk#7597 @gui1117 - [x] paritytech/polkadot-sdk#8254 @bkchr - [x] paritytech/polkadot-sdk#7592 @bkontur - [x] paritytech/polkadot-sdk#8382 @UtkarshBhardwaj007 - [x] paritytech/polkadot-sdk#8021 @serban300 - [x] paritytech/polkadot-sdk#8344 @serban300 - [x] paritytech/polkadot-sdk#8262 @athei - [x] paritytech/polkadot-sdk#8584 @athei - [x] paritytech/polkadot-sdk#8299 @skunert - [x] paritytech/polkadot-sdk#8652 @pgherveou - [x] paritytech/polkadot-sdk#8554 @pgherveou - [x] paritytech/polkadot-sdk#8281 @mrshiposha - [x] paritytech/polkadot-sdk#7730 @franciscoaguirre - [x] paritytech/polkadot-sdk#8599 @yrong @claravanstaden - [x] paritytech/polkadot-sdk#8531 @bkontur - [x] paritytech/polkadot-sdk#8409 @kianenigma - [x] paritytech/polkadot-sdk#9137 @franciscoaguirre - [x] paritytech/polkadot-sdk#7944 @bkontur - [x] paritytech/polkadot-sdk#8179 @bkontur - [x] paritytech/polkadot-sdk#8037 @yrong --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: claravanstaden <claravanstaden64@gmail.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: Alain Brenzikofer <alain@integritee.network> Co-authored-by: kianenigma <kian@parity.io> Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com> Co-authored-by: ron <yrong1997@gmail.com> Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Overkillus <maciej.zyszkiewicz@parity.io>
alvicsam
pushed a commit
that referenced
this pull request
Oct 17, 2025
# Description * This PR adds a new extrinsic `poke_deposit` to `pallet-bounties`. This extrinsic will be used to re-adjust the deposits made in the pallet to create a new bounty. * Part of #5591 ## Review Notes * Added a new extrinsic `poke_deposit` in `pallet-bounties`. * This extrinsic checks and adjusts the deposits made for creating a bounty. * 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 and `paid` otherwise (when no deposit is changed). * Added tests to test all scenarios. * Added benchmarks ## TO-DOs * [x] Run CI cmd bot to benchmark --------- Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
poke_deposittopallet-bounties. This extrinsic will be used to re-adjust the deposits made in the pallet to create a new bounty.pokefor Deposits #5591Review Notes
poke_depositinpallet-bounties.DepositPokedto be emitted upon a successful call of the extrinsic.freeif an actual adjustment is made to the deposit andpaidotherwise (when no deposit is changed).TO-DOs