pub trait DefaultConfig: DefaultConfig {
    type Moment;
    type OnTimestampSet: OnTimestampSet<Self::Moment>;
    type MinimumPeriod: Get<Self::Moment>;
    type WeightInfo: WeightInfo;
}
Expand description

Based on Config. Auto-generated by #[pallet::config(with_default)]. Can be used in tandem with #[register_default_config] and #[derive_impl] to derive test config traits based on existing pallet config traits in a safe and developer-friendly way.

See here for more information and caveats about the auto-generated DefaultConfig trait and how it is generated.

Required Associated Types§

source

type Moment

Type used for expressing a timestamp.

source

type OnTimestampSet: OnTimestampSet<Self::Moment>

Something which can be notified (e.g. another pallet) when the timestamp is set.

This can be set to () if it is not needed.

source

type MinimumPeriod: Get<Self::Moment>

The minimum period between blocks.

Be aware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. For example, in the Aura pallet it will be double this period on default settings.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Object Safety§

This trait is not object safe.

Implementors§