Type Alias StakingEvent

Source
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.

Fields

§era_index: u32
§validator_payout: u128
§remainder: u128
§

Rewarded

The nominator has been rewarded by this amount.

Fields

§identity: IdentityId
§amount: u128
§

Slashed

A staker (validator or nominator) has been slashed by the given amount.

Fields

§staker: AccountId
§amount: u128
§

SlashReported

A slash for the given validator, for the given percentage of their stake, at the given era as been reported.

Fields

§validator: AccountId
§fraction: Perbill
§slash_era: u32
§

OldSlashingReportDiscarded

An old slashing report from a prior era was discarded because it could not be processed.

Fields

§session_index: u32
§

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.

Fields

§identity: IdentityId
§amount: u128
§

Unbonded

An account has unbonded this amount.

Fields

§identity: IdentityId
§amount: u128
§

Withdrawn

An account has called withdraw_unbonded and removed unbonding chunks worth Balance from the unlocking queue.

Fields

§amount: u128
§

Kicked

A nominator has been kicked from a validator.

Fields

§nominator: AccountId
§

StakingElectionFailed

The election failed. No new era is planned.

§

Chilled

An account has stopped participating as either a validator or nominator.

Fields

§

PayoutStarted

The stakers’ rewards are getting paid.

Fields

§era_index: u32
§validator_stash: AccountId
§

ValidatorPrefsSet

A validator has set their preferences.

Fields

§

ForceEra

A new force era mode was set.

Fields

§mode: Forcing
§

Nominated

User has updated their nominations.

Fields

§nominator_identity: IdentityId
§targets: Vec<AccountId>
§

PermissionedIdentityAdded

An identity has issued a candidacy for becoming a validator.

Fields

§governance_councill_did: IdentityId
§validators_identity: IdentityId
§

PermissionedIdentityRemoved

An identity has been removed from the permissioned identities pool.

Fields

§governance_councill_did: IdentityId
§validators_identity: IdentityId
§

InvalidatedNominators

Remove the nominators from the valid nominators when there CDD expired.

Fields

§governance_councill_did: IdentityId
§governance_councill_account: IdentityId
§expired_nominators: Vec<AccountId>
§

SlashingAllowedForChanged

Slashing allowed has been updated.

Fields

§slashing_switch: SlashingSwitch
§

RewardPaymentSchedulingInterrupted

Reward scheduling interrupted.

Fields

§account_id: AccountId
§era: u32
§

CommissionCapUpdated

Commission cap has been updated.

Fields

§governance_councill_did: IdentityId
§old_commission_cap: Perbill
§new_commission_cap: Perbill