diff --git a/src/frame/staking.rs b/src/frame/staking.rs index b08d5940e0..5a48d9d9f1 100644 --- a/src/frame/staking.rs +++ b/src/frame/staking.rs @@ -167,37 +167,6 @@ pub struct EraRewardPoints { pub individual: BTreeMap, } -/// Clipped Exposure of validator at era. -/// -/// This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the -/// `T::MaxNominatorRewardedPerValidator` biggest stakers. -/// (Note: the field `total` and `own` of the exposure remains unchanged). -/// This is used to limit the i/o cost for the nominator payout. -/// -/// This is keyed fist by the era index to allow bulk deletion and then the stash account. -/// -/// It is removed after `HISTORY_DEPTH` eras. -/// If stakers hasn't been set or has been removed then empty exposure is returned. -#[derive(Encode, Copy, Clone, Debug, Store)] -pub struct ErasStakersClippedStore { - #[store(returns = Exposure)] - /// Era index - pub era: EraIndex, - /// Stash account of the validator - pub validator_stash: T::AccountId, -} - -/// The active era information, holds index and start. -/// -/// The active era is the era currently rewarded. -/// Validator set of this era must be equal to `SessionInterface::validators`. -#[derive(Encode, Copy, Clone, Debug, Hash, PartialEq, Eq, Ord, PartialOrd, Store)] -pub struct ActiveEraStore { - #[store(returns = Option)] - /// Marker for the runtime - pub _runtime: PhantomData, -} - /// Declare no desire to either validate or nominate. /// /// Effective at the beginning of the next era. @@ -251,12 +220,3 @@ pub struct NominateCall { /// The targets that are being nominated pub targets: Vec, } - -/// Claim a payout for a validator’s stakers -#[derive(PartialEq, Eq, Clone, Call, Encode, Decode, Debug)] -pub struct PayoutStakersCall<'a, T: Staking> { - /// Stash account of the validator - pub validator_stash: &'a T::AccountId, - /// Era index - pub era: EraIndex, -}