pub enum Event<T: Config> {
Show 23 variants
Created {
depositor: T::AccountId,
pool_id: PoolId,
},
Bonded {
member: T::AccountId,
pool_id: PoolId,
bonded: BalanceOf<T>,
joined: bool,
},
PaidOut {
member: T::AccountId,
pool_id: PoolId,
payout: BalanceOf<T>,
},
Unbonded {
member: T::AccountId,
pool_id: PoolId,
balance: BalanceOf<T>,
points: BalanceOf<T>,
era: EraIndex,
},
Withdrawn {
member: T::AccountId,
pool_id: PoolId,
balance: BalanceOf<T>,
points: BalanceOf<T>,
},
Destroyed {
pool_id: PoolId,
},
StateChanged {
pool_id: PoolId,
new_state: PoolState,
},
MemberRemoved {
pool_id: PoolId,
member: T::AccountId,
released_balance: BalanceOf<T>,
},
RolesUpdated {
root: Option<T::AccountId>,
bouncer: Option<T::AccountId>,
nominator: Option<T::AccountId>,
},
PoolSlashed {
pool_id: PoolId,
balance: BalanceOf<T>,
},
UnbondingPoolSlashed {
pool_id: PoolId,
era: EraIndex,
balance: BalanceOf<T>,
},
PoolCommissionUpdated {
pool_id: PoolId,
current: Option<(Perbill, T::AccountId)>,
},
PoolMaxCommissionUpdated {
pool_id: PoolId,
max_commission: Perbill,
},
PoolCommissionChangeRateUpdated {
pool_id: PoolId,
change_rate: CommissionChangeRate<BlockNumberFor<T>>,
},
PoolCommissionClaimPermissionUpdated {
pool_id: PoolId,
permission: Option<CommissionClaimPermission<T::AccountId>>,
},
PoolCommissionClaimed {
pool_id: PoolId,
commission: BalanceOf<T>,
},
MinBalanceDeficitAdjusted {
pool_id: PoolId,
amount: BalanceOf<T>,
},
MinBalanceExcessAdjusted {
pool_id: PoolId,
amount: BalanceOf<T>,
},
MemberClaimPermissionUpdated {
member: T::AccountId,
permission: ClaimPermission,
},
MetadataUpdated {
pool_id: PoolId,
caller: T::AccountId,
},
PoolNominationMade {
pool_id: PoolId,
caller: T::AccountId,
},
PoolNominatorChilled {
pool_id: PoolId,
caller: T::AccountId,
},
GlobalParamsUpdated {
min_join_bond: BalanceOf<T>,
min_create_bond: BalanceOf<T>,
max_pools: Option<u32>,
max_members: Option<u32>,
max_members_per_pool: Option<u32>,
global_max_commission: Option<Perbill>,
},
// some variants omitted
}Expand description
Events of this pallet.
Variants§
Created
A pool has been created.
Bonded
A member has became bonded in a pool.
PaidOut
A payout has been made to a member.
Unbonded
A member has unbonded from their pool.
balanceis the corresponding balance of the number of points that has been requested to be unbonded (the argument of theunbondtransaction) from the bonded pool.pointsis the number of points that are issued as a result ofbalancebeing dissolved into the corresponding unbonding pool.erais the era in which the balance will be unbonded. In the absence of slashing, these values will match. In the presence of slashing, the number of points that are issued in the unbonding pool will be less than the amount requested to be unbonded.
Fields
Withdrawn
A member has withdrawn from their pool.
The given number of points have been dissolved in return of balance.
Similar to Unbonded event, in the absence of slashing, the ratio of point to balance
will be 1.
Destroyed
A pool has been destroyed.
StateChanged
The state of a pool has changed
MemberRemoved
A member has been removed from a pool.
The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
Any funds that are still delegated (i.e. dangling delegation) are released and are
represented by released_balance.
RolesUpdated
The roles of a pool have been updated to the given new roles. Note that the depositor can never change.
PoolSlashed
The active balance of pool pool_id has been slashed to balance.
UnbondingPoolSlashed
The unbond pool at era of pool pool_id has been slashed to balance.
PoolCommissionUpdated
A pool’s commission setting has been changed.
PoolMaxCommissionUpdated
A pool’s maximum commission setting has been changed.
PoolCommissionChangeRateUpdated
A pool’s commission change_rate has been changed.
PoolCommissionClaimPermissionUpdated
Pool commission claim permission has been updated.
PoolCommissionClaimed
Pool commission has been claimed.
MinBalanceDeficitAdjusted
Topped up deficit in frozen ED of the reward pool.
MinBalanceExcessAdjusted
Claimed excess frozen ED of af the reward pool.
MemberClaimPermissionUpdated
A pool member’s claim permission has been updated.
MetadataUpdated
A pool’s metadata was updated.
PoolNominationMade
A pool’s nominating account (or the pool’s root account) has nominated a validator set on behalf of the pool.
PoolNominatorChilled
The pool is chilled i.e. no longer nominating.
GlobalParamsUpdated
Global parameters regulating nomination pools have been updated.
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
T::AccountId: TypeInfo + 'static,
BalanceOf<T>: TypeInfo + 'static,
Option<T::AccountId>: TypeInfo + 'static,
Option<(Perbill, T::AccountId)>: TypeInfo + 'static,
CommissionChangeRate<BlockNumberFor<T>>: TypeInfo + 'static,
Option<CommissionClaimPermission<T::AccountId>>: TypeInfo + 'static,
PhantomData<T>: TypeInfo + 'static,
T: Config + 'static,
impl<T> TypeInfo for Event<T>where
T::AccountId: TypeInfo + 'static,
BalanceOf<T>: TypeInfo + 'static,
Option<T::AccountId>: TypeInfo + 'static,
Option<(Perbill, T::AccountId)>: TypeInfo + 'static,
CommissionChangeRate<BlockNumberFor<T>>: TypeInfo + 'static,
Option<CommissionClaimPermission<T::AccountId>>: TypeInfo + 'static,
PhantomData<T>: TypeInfo + 'static,
T: Config + 'static,
impl<T: Config> DecodeWithMemTracking for Event<T>where
T::AccountId: DecodeWithMemTracking,
BalanceOf<T>: DecodeWithMemTracking,
Option<T::AccountId>: DecodeWithMemTracking,
Option<(Perbill, T::AccountId)>: DecodeWithMemTracking,
CommissionChangeRate<BlockNumberFor<T>>: DecodeWithMemTracking,
Option<CommissionClaimPermission<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>::AccountId: Freeze,
<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: Freeze,
<<T as Config>::BlockNumberProvider as BlockNumberProvider>::BlockNumber: Freeze,
impl<T> RefUnwindSafe for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<T as Config>::AccountId: RefUnwindSafe,
<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: RefUnwindSafe,
<<T as Config>::BlockNumberProvider as BlockNumberProvider>::BlockNumber: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<<T as Config>::BlockNumberProvider as BlockNumberProvider>::BlockNumber: Send,
T: Send,
impl<T> Sync for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<<T as Config>::BlockNumberProvider as BlockNumberProvider>::BlockNumber: Sync,
T: Sync,
impl<T> Unpin for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<T as Config>::AccountId: Unpin,
<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: Unpin,
<<T as Config>::BlockNumberProvider as BlockNumberProvider>::BlockNumber: Unpin,
T: Unpin,
impl<T> UnwindSafe for Event<T>where
<T as Config>::RuntimeEvent: Sized,
<T as Config>::AccountId: UnwindSafe,
<<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance: UnwindSafe,
<<T as Config>::BlockNumberProvider as BlockNumberProvider>::BlockNumber: 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.