Trait pallet_sassafras::pallet::Config
source · pub trait Config: Config + CreateInherent<Call<Self>> {
type EpochLength: Get<u32>;
type MaxAuthorities: Get<u32>;
type EpochChangeTrigger: EpochChangeTrigger;
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 parameters.
Required Associated Types§
sourcetype EpochLength: Get<u32>
type EpochLength: Get<u32>
Amount of slots that each epoch should last.
sourcetype MaxAuthorities: Get<u32>
type MaxAuthorities: Get<u32>
Max number of authorities allowed.
sourcetype EpochChangeTrigger: EpochChangeTrigger
type EpochChangeTrigger: EpochChangeTrigger
Epoch change trigger.
Logic to be triggered on every block to query for whether an epoch has ended and to perform the transition to the next epoch.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for all calls of this pallet.
Object Safety§
This trait is not object safe.