-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[AHM] Poke deposits: Indices pallet #7587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
UtkarshBhardwaj007
merged 31 commits into
paritytech:master
from
UtkarshBhardwaj007:poke-deposits
Feb 20, 2025
Merged
Changes from 6 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
cea198b
add reconsider deposit extrinsic for pallet-indices
UtkarshBhardwaj007 0ebd596
Merge branch 'paritytech:master' into poke-deposits
UtkarshBhardwaj007 9675694
Merge branch 'paritytech:master' into poke-deposits
UtkarshBhardwaj007 045dd00
add benchmark
UtkarshBhardwaj007 99e4644
Update from UtkarshBhardwaj007 running command 'prdoc'
github-actions[bot] 2e5cd44
add prdoc
UtkarshBhardwaj007 9334502
exit early in reconsider if deposit is unchanged
UtkarshBhardwaj007 ce8ac6f
Merge branch 'paritytech:master' into poke-deposits
UtkarshBhardwaj007 2db6c3a
fix reconsider benchmark
UtkarshBhardwaj007 6a6c013
Merge branch 'paritytech:master' into poke-deposits
UtkarshBhardwaj007 b7f2345
add dummy weights to allow benchmarking to run in CI
UtkarshBhardwaj007 3aa10dd
add dummy weights to allow benchmarking to run in CI
UtkarshBhardwaj007 0495c20
Update from UtkarshBhardwaj007 running command 'bench --pallet pallet…
github-actions[bot] 634b981
revert benching xcm pallets
UtkarshBhardwaj007 a3f95b4
Update from UtkarshBhardwaj007 running command 'fmt'
github-actions[bot] b81f6a8
Revert changes in pallet_xcm_benchmarks_generic.rs
UtkarshBhardwaj007 8b059d2
delete prdoc to allow CI cmd bot to create new prdoc
UtkarshBhardwaj007 b7de8d2
Update from UtkarshBhardwaj007 running command 'prdoc'
github-actions[bot] 0975fe7
update prdoc
UtkarshBhardwaj007 b07bd14
address comments
UtkarshBhardwaj007 423cdf2
Update from UtkarshBhardwaj007 running command 'fmt'
github-actions[bot] b8f22a0
Update from UtkarshBhardwaj007 running command 'bench --pallet pallet…
github-actions[bot] 4e5a611
minor fixes
UtkarshBhardwaj007 b4e52f9
add defensive logging
UtkarshBhardwaj007 acc67ef
change extrinsic name to poke_deposit
UtkarshBhardwaj007 65d2291
Update from UtkarshBhardwaj007 running command 'fmt'
github-actions[bot] 9a890f6
Merge branch 'paritytech:master' into poke-deposits
UtkarshBhardwaj007 d9e94a9
minor: fix defensive logging
UtkarshBhardwaj007 325bc14
Update from UtkarshBhardwaj007 running command 'fmt'
github-actions[bot] d07362f
reserve additional funds in poke_deposit benchmark
UtkarshBhardwaj007 7abe8c8
Update from UtkarshBhardwaj007 running command 'bench --pallet pallet…
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| title: Poke deposits | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| # Description | ||
|
|
||
| * This PR adds a new extrinsic `reconsider` to `pallet-indices`. This extrinsic will be used to re-adjust the deposits made in the pallet. | ||
| * Part of #5591 | ||
|
|
||
| ## Review Notes | ||
|
|
||
| * Added a new extrinsic `reconsider` in `pallet-indices`. | ||
| * Added a new event `DepositReconsidered` 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. | ||
| * Added tests to test all scenarios. | ||
| * Added a benchmark to test the "worst case" (maximum compute) flow of the extrinsic which is when the deposit amount is updated to a new value. | ||
| crates: | ||
| - name: pallet-indices | ||
| bump: major | ||
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.