pub trait ValidatorRewardsHandler {
type AccountId;
// Required methods
fn validator_totals(era: EraIndex) -> Vec<(Self::AccountId, u128)>;
fn add_rewards(rewards: impl IntoIterator<Item = (Self::AccountId, u32)>);
}
Required Associated Types§
Required Methods§
sourcefn validator_totals(era: EraIndex) -> Vec<(Self::AccountId, u128)>
fn validator_totals(era: EraIndex) -> Vec<(Self::AccountId, u128)>
Returns total exposure of validators for the era
sourcefn add_rewards(rewards: impl IntoIterator<Item = (Self::AccountId, u32)>)
fn add_rewards(rewards: impl IntoIterator<Item = (Self::AccountId, u32)>)
Add reward for validators
Object Safety§
This trait is not object safe.