pub type StakingEvent = StakingEvent;
Aliased Type§
pub enum StakingEvent {
Show 22 variants
EraPaid {
era_index: u32,
validator_payout: u128,
remainder: u128,
},
Rewarded {
identity: IdentityId,
stash: AccountId,
amount: u128,
},
Slashed {
staker: AccountId,
amount: u128,
},
SlashReported {
validator: AccountId,
fraction: Perbill,
slash_era: u32,
},
OldSlashingReportDiscarded {
session_index: u32,
},
StakersElected,
Bonded {
identity: IdentityId,
stash: AccountId,
amount: u128,
},
Unbonded {
identity: IdentityId,
stash: AccountId,
amount: u128,
},
Withdrawn {
stash: AccountId,
amount: u128,
},
Kicked {
nominator: AccountId,
stash: AccountId,
},
StakingElectionFailed,
Chilled {
stash: AccountId,
},
PayoutStarted {
era_index: u32,
validator_stash: AccountId,
},
ValidatorPrefsSet {
stash: AccountId,
prefs: ValidatorPrefs,
},
ForceEra {
mode: Forcing,
},
Nominated {
nominator_identity: IdentityId,
stash: AccountId,
targets: Vec<AccountId>,
},
PermissionedIdentityAdded {
governance_councill_did: IdentityId,
validators_identity: IdentityId,
},
PermissionedIdentityRemoved {
governance_councill_did: IdentityId,
validators_identity: IdentityId,
},
InvalidatedNominators {
governance_councill_did: IdentityId,
governance_councill_account: IdentityId,
expired_nominators: Vec<AccountId>,
},
SlashingAllowedForChanged {
slashing_switch: SlashingSwitch,
},
RewardPaymentSchedulingInterrupted {
account_id: AccountId,
era: u32,
error: DispatchError,
},
CommissionCapUpdated {
governance_councill_did: IdentityId,
old_commission_cap: Perbill,
new_commission_cap: Perbill,
},
}
Variants§
EraPaid
The era payout has been set; the first balance is the validator-payout; the second is the remainder from the maximum amount of reward.
Rewarded
The nominator has been rewarded by this amount.
Slashed
A staker (validator or nominator) has been slashed by the given amount.
SlashReported
A slash for the given validator, for the given percentage of their stake, at the given era as been reported.
OldSlashingReportDiscarded
An old slashing report from a prior era was discarded because it could not be processed.
StakersElected
A new set of stakers was elected.
Bonded
An account has bonded this amount. [stash, amount]
NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably, it will not be emitted for staking rewards when they are added to stake.
Unbonded
An account has unbonded this amount.
Withdrawn
An account has called withdraw_unbonded
and removed unbonding chunks worth Balance
from the unlocking queue.
Kicked
A nominator has been kicked from a validator.
StakingElectionFailed
The election failed. No new era is planned.
Chilled
An account has stopped participating as either a validator or nominator.
PayoutStarted
The stakers’ rewards are getting paid.
ValidatorPrefsSet
A validator has set their preferences.
ForceEra
A new force era mode was set.
Nominated
User has updated their nominations.
PermissionedIdentityAdded
An identity has issued a candidacy for becoming a validator.
PermissionedIdentityRemoved
An identity has been removed from the permissioned identities pool.
InvalidatedNominators
Remove the nominators from the valid nominators when there CDD expired.
SlashingAllowedForChanged
Slashing allowed has been updated.
Fields
slashing_switch: SlashingSwitch
RewardPaymentSchedulingInterrupted
Reward scheduling interrupted.
CommissionCapUpdated
Commission cap has been updated.