-
Notifications
You must be signed in to change notification settings - Fork 2.7k
pallet-staking: Reorg migration, pallet and pallet impls #9410
Conversation
@kianenigma I am thinking for now we can just move the migrations module. And then once the bags PR becomes very stable we can do a bigger re-org. My concern with doing a big re-org now is that transferring those changes to the bags PR would be difficult and may result in us losing some details without realizing. |
I am fine with both. The bags PR has a small footpring in the rest of the pallet, so I think it is possible to do the full move as well. Nonetheless, this is not worth risking anything. We can always do this later. |
frame/staking/src/lib.rs
Outdated
@@ -3415,6 +880,16 @@ where | |||
} | |||
} | |||
|
|||
/// A `Convert` implementation that finds the stash of the given controller account, | |||
/// if any. | |||
pub struct StashOf<T>(sp_std::marker::PhantomData<T>); |
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.
types.rs
?
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.
Yeah I was thinking something like that for a follow up
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.
Add license header and an appropriate //! single line of module doc
to each new file, and I am all fine with this change.
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.
don't really see the need for the pallet
folder, rather than a simple lib.rs
file for that stuff, but okay.
bot merge |
Trying merge. |
closes #9408
The main thing left out of this is moving the storage items and types to their own module (they are left in lib.rs for now). I think that should be easy to do in a follow up PR and leaving it out now will make it slightly easier to merge this change into other open PRs that touch staking.
Note, the visibility on few functions in
impl.rs
was increased from either private orpub(super)
topub(crate)
.cc @kianenigma