pub trait Config: Config + SendTransactionTypes<Call<Self>> {
Show 26 associated items type Event: From<Event<Self>> + IsType<<Self as Config>::Event>; type PalletId: Get<PalletId>; type UnixTime: UnixTime; type ElectionProvider: ElectionProvider<AccountId = Self::AccountId, BlockNumber = Self::BlockNumber, DataProvider = Pallet<Self>>; type GenesisElectionProvider: ElectionProvider<AccountId = Self::AccountId, BlockNumber = Self::BlockNumber, DataProvider = Pallet<Self>>; type SessionsPerEra: Get<SessionIndex>; type SessionInterface: SessionInterface<Self::AccountId>; type NextNewSession: EstimateNextNewSession<Self::BlockNumber>; type SlashDeferDuration: Get<EraIndex>; type SlashCancelOrigin: EnsureOrigin<Self::Origin>; type MaxNominatorRewardedPerValidator: Get<u32>; type OffendingValidatorsThreshold: Get<Perbill>; type SortedListProvider: SortedListProvider<Self::AccountId>; type BondingDurationInEra: Get<EraIndex>; type BondingDurationInBlockNumber: Get<Self::BlockNumber>; type RingCurrency: LockableCurrency<Self::AccountId>; type RingRewardRemainder: OnUnbalanced<RingNegativeImbalance<Self>>; type RingSlash: OnUnbalanced<RingNegativeImbalance<Self>>; type RingReward: OnUnbalanced<RingPositiveImbalance<Self>>; type KtonCurrency: LockableCurrency<Self::AccountId>; type KtonSlash: OnUnbalanced<KtonNegativeImbalance<Self>>; type KtonReward: OnUnbalanced<KtonPositiveImbalance<Self>>; type Cap: Get<RingBalance<Self>>; type TotalPower: Get<Power>; type WeightInfo: WeightInfo; const MAX_NOMINATIONS: u32;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types

The overarching event type.

Time used for computing era duration.

It is guaranteed to start being called from the first on_finalize. Thus value at genesis is not used.

Something that provides the election functionality.

Something that provides the election functionality at genesis.

Number of sessions per era.

Interface for interacting with a session pallet.

Something that can estimate the next session change, accurately or as a best effort guess.

Number of eras that slashes are deferred by, after computation.

This should be less than the bonding duration. Set to 0 if slashes should be applied immediately, without opportunity for intervention.

The origin which can cancel a deferred slash. Root can always do this.

The maximum number of nominators rewarded for each validator.

For each validator only the $MaxNominatorRewardedPerValidator biggest stakers can claim their reward. This used to limit the i/o cost for the nominator payout.

The fraction of the validator set that is safe to be offending. After the threshold is reached a new era will be forced.

Something that can provide a sorted list of voters in a somewhat sorted way. The original use case for this was designed with [pallet_bags_list::Pallet] in mind. If the bags-list is not desired, [impls::UseNominatorsMap] is likely the desired option.

Number of eras that staked funds must remain bonded for.

Number of eras that staked funds must remain bonded for.

The RING currency.

Tokens have been minted and are unused for validator-reward. See Era payout.

Handler for the unbalanced RING reduction when slashing a staker.

Handler for the unbalanced RING increment when rewarding a staker.

The KTON currency.

Handler for the unbalanced KTON reduction when slashing a staker.

Handler for the unbalanced KTON increment when rewarding a staker.

Darwinia’s hard cap default 10_000_000_000 * 10^9

Darwinia’s staking vote default 1_000_000_000

Weight information for extrinsics in this pallet.

Required Associated Constants

Maximum number of nominations per nominator.

Implementors