Trait parachain_staking::pallet::Config
source · pub trait Config: Config + StakingBenchmarkConfig {
Show 27 associated items
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type StakingReservesProvider: StakingReservesProviderTrait<Self::AccountId, BalanceOf<Self>, CurrencyIdOf<Self>>;
type Currency: MultiTokenCurrency<Self::AccountId> + MultiTokenReservableCurrency<Self::AccountId> + MultiTokenCurrencyExtended<Self::AccountId>;
type MonetaryGovernanceOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type BlocksPerRound: Get<u32>;
type LeaveCandidatesDelay: Get<u32>;
type CandidateBondDelay: Get<u32>;
type LeaveDelegatorsDelay: Get<u32>;
type RevokeDelegationDelay: Get<u32>;
type DelegationBondDelay: Get<u32>;
type RewardPaymentDelay: Get<u32>;
type MinSelectedCandidates: Get<u32>;
type MaxCollatorCandidates: Get<u32>;
type MaxTotalDelegatorsPerCandidate: Get<u32>;
type MaxDelegatorsPerCandidate: Get<u32>;
type DefaultPayoutLimit: Get<u32>;
type MaxDelegationsPerDelegator: Get<u32>;
type DefaultCollatorCommission: Get<Perbill>;
type MinCollatorStk: Get<BalanceOf<Self>>;
type MinCandidateStk: Get<BalanceOf<Self>>;
type MinDelegation: Get<BalanceOf<Self>>;
type NativeTokenId: Get<CurrencyIdOf<Self>>;
type StakingLiquidityTokenValuator: Valuate<BalanceOf<Self>, CurrencyIdOf<Self>>;
type Issuance: ComputeIssuance + GetIssuance<BalanceOf<Self>>;
type StakingIssuanceVault: Get<Self::AccountId>;
type FallbackProvider: GetMembers<Self::AccountId>;
type WeightInfo: WeightInfo;
}
Expand description
Configuration trait of this pallet.
The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.
Consequently, a runtime that wants to include this pallet must implement this trait. Configuration trait of this pallet.
Required Associated Types§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Overarching event type
sourcetype StakingReservesProvider: StakingReservesProviderTrait<Self::AccountId, BalanceOf<Self>, CurrencyIdOf<Self>>
type StakingReservesProvider: StakingReservesProviderTrait<Self::AccountId, BalanceOf<Self>, CurrencyIdOf<Self>>
Multipurpose-liquidity
sourcetype Currency: MultiTokenCurrency<Self::AccountId> + MultiTokenReservableCurrency<Self::AccountId> + MultiTokenCurrencyExtended<Self::AccountId>
type Currency: MultiTokenCurrency<Self::AccountId> + MultiTokenReservableCurrency<Self::AccountId> + MultiTokenCurrencyExtended<Self::AccountId>
The currency type
sourcetype MonetaryGovernanceOrigin: EnsureOrigin<Self::RuntimeOrigin>
type MonetaryGovernanceOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin for monetary governance
sourcetype BlocksPerRound: Get<u32>
type BlocksPerRound: Get<u32>
Default number of blocks per round at genesis
sourcetype LeaveCandidatesDelay: Get<u32>
type LeaveCandidatesDelay: Get<u32>
Number of rounds that candidates remain bonded before exit request is executable
sourcetype CandidateBondDelay: Get<u32>
type CandidateBondDelay: Get<u32>
Number of rounds that candidate requests to adjust self-bond must wait to be executable
sourcetype LeaveDelegatorsDelay: Get<u32>
type LeaveDelegatorsDelay: Get<u32>
Number of rounds that delegators remain bonded before exit request is executable
sourcetype RevokeDelegationDelay: Get<u32>
type RevokeDelegationDelay: Get<u32>
Number of rounds that delegations remain bonded before revocation request is executable
sourcetype DelegationBondDelay: Get<u32>
type DelegationBondDelay: Get<u32>
Number of rounds that delegation {more, less} requests must wait before executable
sourcetype RewardPaymentDelay: Get<u32>
type RewardPaymentDelay: Get<u32>
Number of rounds after which block authors are rewarded
sourcetype MinSelectedCandidates: Get<u32>
type MinSelectedCandidates: Get<u32>
Minimum number of selected candidates every round
sourcetype MaxCollatorCandidates: Get<u32>
type MaxCollatorCandidates: Get<u32>
Maximum collator candidates allowed
sourcetype MaxTotalDelegatorsPerCandidate: Get<u32>
type MaxTotalDelegatorsPerCandidate: Get<u32>
Maximum delegators allowed per candidate
sourcetype MaxDelegatorsPerCandidate: Get<u32>
type MaxDelegatorsPerCandidate: Get<u32>
Maximum delegators counted per candidate
type DefaultPayoutLimit: Get<u32>
sourcetype MaxDelegationsPerDelegator: Get<u32>
type MaxDelegationsPerDelegator: Get<u32>
Maximum delegations per delegator
sourcetype DefaultCollatorCommission: Get<Perbill>
type DefaultCollatorCommission: Get<Perbill>
Default commission due to collators, is CollatorCommission
storage value in genesis
sourcetype MinCollatorStk: Get<BalanceOf<Self>>
type MinCollatorStk: Get<BalanceOf<Self>>
Minimum stake required for any candidate to be in SelectedCandidates
for the round
sourcetype MinCandidateStk: Get<BalanceOf<Self>>
type MinCandidateStk: Get<BalanceOf<Self>>
Minimum stake required for any account to be a collator candidate
sourcetype MinDelegation: Get<BalanceOf<Self>>
type MinDelegation: Get<BalanceOf<Self>>
Minimum stake for any registered on-chain account to delegate
sourcetype NativeTokenId: Get<CurrencyIdOf<Self>>
type NativeTokenId: Get<CurrencyIdOf<Self>>
The native token used for payouts
sourcetype StakingLiquidityTokenValuator: Valuate<BalanceOf<Self>, CurrencyIdOf<Self>>
type StakingLiquidityTokenValuator: Valuate<BalanceOf<Self>, CurrencyIdOf<Self>>
The valuator for our staking liquidity tokens, i.e., XYK This should never return (_, Zero::zero())
sourcetype Issuance: ComputeIssuance + GetIssuance<BalanceOf<Self>>
type Issuance: ComputeIssuance + GetIssuance<BalanceOf<Self>>
The module used for computing and getting issuance
sourcetype StakingIssuanceVault: Get<Self::AccountId>
type StakingIssuanceVault: Get<Self::AccountId>
The account id that holds the liquidity mining issuance
sourcetype FallbackProvider: GetMembers<Self::AccountId>
type FallbackProvider: GetMembers<Self::AccountId>
The module that provides the set of fallback accounts
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.