pub enum Event<T: Config> {
Show 25 variants
EraPaid {
era_index: EraIndex,
validator_payout: BalanceOf<T>,
remainder: BalanceOf<T>,
},
Rewarded {
stash: T::AccountId,
dest: RewardDestination<T::AccountId>,
amount: BalanceOf<T>,
},
Slashed {
staker: T::AccountId,
amount: BalanceOf<T>,
},
OldSlashingReportDiscarded {
session_index: SessionIndex,
},
Bonded {
stash: T::AccountId,
amount: BalanceOf<T>,
},
Unbonded {
stash: T::AccountId,
amount: BalanceOf<T>,
},
Withdrawn {
stash: T::AccountId,
amount: BalanceOf<T>,
},
StakerRemoved {
stash: T::AccountId,
},
Kicked {
nominator: T::AccountId,
stash: T::AccountId,
},
Chilled {
stash: T::AccountId,
},
PayoutStarted {
era_index: EraIndex,
validator_stash: T::AccountId,
page: Page,
next: Option<Page>,
},
ValidatorPrefsSet {
stash: T::AccountId,
prefs: ValidatorPrefs,
},
SnapshotVotersSizeExceeded {
size: u32,
},
SnapshotTargetsSizeExceeded {
size: u32,
},
ForceEra {
mode: Forcing,
},
ControllerBatchDeprecated {
failures: u32,
},
CurrencyMigrated {
stash: T::AccountId,
force_withdraw: BalanceOf<T>,
},
PagedElectionProceeded {
page: PageIndex,
result: Result<u32, u32>,
},
OffenceReported {
offence_era: EraIndex,
validator: T::AccountId,
fraction: Perbill,
},
SlashComputed {
offence_era: EraIndex,
slash_era: EraIndex,
offender: T::AccountId,
page: u32,
},
SlashCancelled {
slash_era: EraIndex,
validator: T::AccountId,
},
SessionRotated {
starting_session: SessionIndex,
active_era: EraIndex,
planned_era: EraIndex,
},
Unexpected(UnexpectedKind),
OffenceTooOld {
offence_era: EraIndex,
validator: T::AccountId,
fraction: Perbill,
},
EraPruned {
index: EraIndex,
},
// some variants omitted
}Expand description
The Event enum of this pallet
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 to this destination.
Slashed
A staker (validator or nominator) has been slashed by the given amount.
OldSlashingReportDiscarded
An old slashing report from a prior era was discarded because it could not be processed.
Fields
session_index: SessionIndexBonded
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.
StakerRemoved
A subsequent event of Withdrawn, indicating that stash was fully removed from the
system.
Kicked
A nominator has been kicked from a validator.
Chilled
An account has stopped participating as either a validator or nominator.
PayoutStarted
A Page of stakers rewards are getting paid. next is None if all pages are claimed.
ValidatorPrefsSet
A validator has set their preferences.
SnapshotVotersSizeExceeded
Voters size limit reached.
SnapshotTargetsSizeExceeded
Targets size limit reached.
ForceEra
ControllerBatchDeprecated
Report of a controller batch deprecation.
CurrencyMigrated
Staking balance migrated from locks to holds, with any balance that could not be held is force withdrawn.
PagedElectionProceeded
A page from a multi-page election was fetched. A number of these are followed by
StakersElected.
Ok(count) indicates the give number of stashes were added.
Err(index) indicates that the stashes after index were dropped.
Err(0) indicates that an error happened but no stashes were dropped nor added.
The error indicates that a number of validators were dropped due to excess size, but the overall election will continue.
OffenceReported
An offence for the given validator, for the given percentage of their stake, at the given era as been reported.
SlashComputed
An offence has been processed and the corresponding slash has been computed.
SlashCancelled
An unapplied slash has been cancelled.
SessionRotated
Session change has been triggered.
If planned_era is one era ahead of active_era, it implies new era is being planned and election is ongoing.
Unexpected(UnexpectedKind)
Something occurred that should never happen under normal operation. Logged as an event for fail-safe observability.
OffenceTooOld
An offence was reported that was too old to be processed, and thus was dropped.
EraPruned
An old era with the given index was pruned.
Trait Implementations§
Source§impl<T: Config> Decode for Event<T>
impl<T: Config> Decode for Event<T>
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Source§impl<T: Config> Encode for Event<T>
impl<T: Config> Encode for Event<T>
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Source§impl<T> TypeInfo for Event<T>where
BalanceOf<T>: TypeInfo + 'static,
T::AccountId: TypeInfo + 'static,
RewardDestination<T::AccountId>: TypeInfo + 'static,
PhantomData<T>: TypeInfo + 'static,
T: Config + 'static,
impl<T> TypeInfo for Event<T>where
BalanceOf<T>: TypeInfo + 'static,
T::AccountId: TypeInfo + 'static,
RewardDestination<T::AccountId>: TypeInfo + 'static,
PhantomData<T>: TypeInfo + 'static,
T: Config + 'static,
impl<T: Config> DecodeWithMemTracking for Event<T>where
BalanceOf<T>: DecodeWithMemTracking,
T::AccountId: DecodeWithMemTracking,
RewardDestination<T::AccountId>: DecodeWithMemTracking,
impl<T: Config> EncodeLike for Event<T>
impl<T: Config> Eq for Event<T>
Auto Trait Implementations§
impl<T> Freeze for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<T as Config>::CurrencyBalance: Freeze,
<T as Config>::AccountId: Freeze,
impl<T> RefUnwindSafe for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<T as Config>::CurrencyBalance: RefUnwindSafe,
<T as Config>::AccountId: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Event<T>
impl<T> Sync for Event<T>
impl<T> Unpin for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<T as Config>::CurrencyBalance: Unpin,
<T as Config>::AccountId: Unpin,
T: Unpin,
impl<T> UnwindSafe for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<T as Config>::CurrencyBalance: UnwindSafe,
<T as Config>::AccountId: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
Source§impl<T> DecodeWithMemLimit for Twhere
T: DecodeWithMemTracking,
impl<T> DecodeWithMemLimit for Twhere
T: DecodeWithMemTracking,
Source§impl<T, U> DefensiveTruncateInto<U> for Twhere
U: DefensiveTruncateFrom<T>,
impl<T, U> DefensiveTruncateInto<U> for Twhere
U: DefensiveTruncateFrom<T>,
Source§fn defensive_truncate_into(self) -> U
fn defensive_truncate_into(self) -> U
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T. Read moreSource§impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
impl<T, U> TryIntoKey<U> for Twhere
U: TryFromKey<T>,
type Error = <U as TryFromKey<T>>::Error
fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.