-
Notifications
You must be signed in to change notification settings - Fork 584
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
Remove deprecated treasury pallet calls #3820
Remove deprecated treasury pallet calls #3820
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we also need to remove storage items and update treasury pallet setups for the runtimes within this repo. for those runtimes we need to include storage migration to clean up the data for those removed storage items. there is probably some general migration type that allows to remove the whole storage item, I need to check this.
but if we do not have it, I can create an issue for it and we can work on it.
migration type for storage removal #3828 |
@chungquantin I think what is left
also please make sure we do not break anything for dependant from this pallet the bounties and child bounties. |
@muharem For |
missed that. we can do it, but that is not what we want to achieve with this PR. lets just focus on deprecation. so we keep those storage items. |
Update
|
@chungquantin we should not change anything for child_bounties and bounties pallet. but only ensure that changes we introduce for treasury pallet do no break anything for those pallet. The I've seen #3890, we should basically have those changes in this PR, otherwise you never get CIs green. Same for bounties pallets. |
@chungquantin are you still willing to finish this? |
@muharem Yes I am working on it. Let me ship the code around tomorrow |
The CI pipeline was cancelled due to failure one of the required jobs. |
@muharem Thank you. I have managed to fix the code. I checked the CI tests and seems like the failed tests are not relevant to this PR. Could you help me to double check if this PR is good to go? Thanks. |
- Remove deprecated parameter types: ProposalBond, ProposalBondMaximum, ProposalBondMinimum | ||
|
||
crates: | ||
- name: pallet-treasury |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need all altered crates here listed with bump
attribute. check more info here - https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/prdoc.md#record-semver-changes
check this comment - #3820 (comment) |
@chungquantin any updates? |
@muharem It is good to go now. Could you please check? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost there
40677b6
Introduce migration type to remove data associated with a specific storage of a pallet. Based on existing `RemovePallet` migration type. Required for #3820 --------- Co-authored-by: Liam Aharon <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
ISSUE
Deliverables
treasury/README.md
and add up-to-date dispatchable functions documentation (d579b67)Adjust all treasury pallet instances within polkadot-sdk
pallet_bounty
,tip
,child_bounties
: Update deprecated treasury pallet code in thebounty
,tip
andchild_bounties
openguild-labs/polkadot-sdk#3collective-westend
,collective-rococo
Add migration for westend and rococo to clean the data from removed storage items
Test Outcomes
Successful tests by running
cargo test --features runtime-benchmarks
polkadot address: 19nSqFQorfF2HxD3oBzWM3oCh4SaCRKWt1yvmgaPYGCo71J