-
Notifications
You must be signed in to change notification settings - Fork 768
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 pallet::getter from pallet-staking #6184
Merged
Merged
Changes from 5 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
309fe75
remove pallet::getter from pallet-staking
Zebedeusz b1ec868
prdoc
Zebedeusz b90b6c2
fmt
Zebedeusz df447c0
clippy
Zebedeusz 43ecdf5
fmt again
Zebedeusz be661fc
Getters calls replaced with storage calls
Zebedeusz 6b2d4f7
arguments to getters as codec encoded
Zebedeusz bc3a923
replaced usage of pallet staking getters with storage getters - acros…
Zebedeusz 381b8f3
un-comment and prdoc update
Zebedeusz 2f1d7f2
prdoc cleanup
Zebedeusz 35461ca
expanded.rs removed
Zebedeusz 299967f
macros removed from slashing and tests fixed
Zebedeusz cfc4566
prdoc fix and fmt
Zebedeusz 061616f
Unused import removed
Zebedeusz 88450f6
fmt
Zebedeusz e10f55a
Renamed Encoded types to EncodeLike
Zebedeusz e66cfde
Renamed EncodeLikeEra to EncodeLikeEraIndex
Zebedeusz 5feeb3e
Merge branch 'master' into zebedeusz/remove_getter_pallet_staking
seadanda 4d24228
Update substrate/frame/staking/src/pallet/impls.rs
Zebedeusz 688b607
Merge branch 'master' into zebedeusz/remove_getter_pallet_staking
Zebedeusz 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 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,10 @@ | ||
title: Remove pallet::getter from pallet-staking | ||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
This PR removes all pallet::getter occurrences from pallet-staking and replaces them with explicit implementations. | ||
It also adds tests to verify that retrieval of affected entities works as expected so via storage::getter. | ||
|
||
crates: | ||
- name: pallet-staking | ||
bump: patch |
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
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.
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.
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.
Part of the aim here is to replace any usage of
Self::storage()
withStorage::<T>::get()
in the sdk codebaseThere 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.
Now it's done. I replaced these usages everywhere I was able to spot them.