forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Deprecation] Remove the deprecated Store trait (paritytech#3532)
# Description *Removes the deprecated `trait Store` feature from the code base* Fixes paritytech#222 --------- Co-authored-by: Dónal Murray <donalm@seadanda.dev>
- Loading branch information
Showing
15 changed files
with
20 additions
and
276 deletions.
There are no files selected for viewing
This file contains 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,15 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Remove deprecated `trait Store` | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
The deprecated `trait Store` feature has been removed from the codebase. Please remove usages of `generate_store` | ||
macro from your pallets and access the storage through generics. For example, | ||
`<Self as Store>::StoredRange::mutate` will need to be updated to `StoredRange::<T>::mutate`. | ||
|
||
crates: | ||
- name: frame-support | ||
- name: frame |
This file contains 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 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
67 changes: 0 additions & 67 deletions
67
substrate/frame/support/procedural/src/pallet/expand/store_trait.rs
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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
28 changes: 0 additions & 28 deletions
28
substrate/frame/support/test/tests/pallet_ui/deprecated_store_attr.rs
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
substrate/frame/support/test/tests/pallet_ui/deprecated_store_attr.stderr
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
substrate/frame/support/test/tests/pallet_ui/duplicate_store_attr.rs
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
substrate/frame/support/test/tests/pallet_ui/duplicate_store_attr.stderr
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
substrate/frame/support/test/tests/pallet_ui/pallet_struct_invalid_attr.stderr
This file contains 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
Oops, something went wrong.