Type Alias polymesh_api_tester::StakingEvent

source ·
pub type StakingEvent = StakingEvent<u128, AccountId>;

Aliased Type§

enum StakingEvent {
Show 17 variants EraPayout(u32, u128, u128), Reward(IdentityId, AccountId, u128), Slash(AccountId, u128), OldSlashingReportDiscarded(u32), StakingElection(ElectionCompute), SolutionStored(ElectionCompute), Bonded(IdentityId, AccountId, u128), Unbonded(IdentityId, AccountId, u128), Nominated(IdentityId, AccountId, Vec<AccountId>), Withdrawn(AccountId, u128), PermissionedIdentityAdded(IdentityId, IdentityId), PermissionedIdentityRemoved(IdentityId, IdentityId), InvalidatedNominators(IdentityId, AccountId, Vec<AccountId>), CommissionCapUpdated(IdentityId, Perbill, Perbill), MinimumBondThresholdUpdated(Option<IdentityId>, u128), RewardPaymentSchedulingInterrupted(AccountId, u32, DispatchError), SlashingAllowedForChanged(SlashingSwitch),
}

Variants§

§

EraPayout(u32, u128, u128)

The era payout has been set; the first balance is the validator-payout; the second is the remainder from the maximum amount of reward. [era_index, validator_payout, remainder]

§

Reward(IdentityId, AccountId, u128)

The staker has been rewarded by this amount. [stash_identity, stash, amount]

§

Slash(AccountId, u128)

One validator (and its nominators) has been slashed by the given amount. [validator, amount]

§

OldSlashingReportDiscarded(u32)

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

§

StakingElection(ElectionCompute)

A new set of stakers was elected with the given [compute].

§

SolutionStored(ElectionCompute)

A new solution for the upcoming election has been stored. [compute]

§

Bonded(IdentityId, AccountId, u128)

An account has bonded this amount. [did, 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(IdentityId, AccountId, u128)

An account has unbonded this amount. [did, stash, amount]

§

Nominated(IdentityId, AccountId, Vec<AccountId>)

User has updated their nominations

§

Withdrawn(AccountId, u128)

An account has called withdraw_unbonded and removed unbonding chunks worth Balance from the unlocking queue. [stash, amount]

§

PermissionedIdentityAdded(IdentityId, IdentityId)

An DID has issued a candidacy. See the transaction for who. GC identity , Validator’s identity.

§

PermissionedIdentityRemoved(IdentityId, IdentityId)

The given member was removed. See the transaction for who. GC identity , Validator’s identity.

§

InvalidatedNominators(IdentityId, AccountId, Vec<AccountId>)

Remove the nominators from the valid nominators when there CDD expired. Caller, Stash accountId of nominators

§

CommissionCapUpdated(IdentityId, Perbill, Perbill)

When commission cap get updated. (old value, new value)

§

MinimumBondThresholdUpdated(Option<IdentityId>, u128)

Min bond threshold was updated (new value).

§

RewardPaymentSchedulingInterrupted(AccountId, u32, DispatchError)

When scheduling of reward payments get interrupted.

§

SlashingAllowedForChanged(SlashingSwitch)

Update for whom balance get slashed.