referrerpolicy=no-referrer-when-downgrade

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§

source

type EpochLength: Get<u32>

Amount of slots that each epoch should last.

source

type MaxAuthorities: Get<u32>

Max number of authorities allowed.

source

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.

source

type WeightInfo: WeightInfo

Weight information for all calls of this pallet.

Object Safety§

This trait is not object safe.

Implementors§