pub trait Config: Config {
type WeightInfo: WeightInfo;
type Moment: Parameter + Default + MaxEncodedLen + PartialOrd;
type BlockParticipationProvider: BlockParticipationProvider<Self::Moment, Self::BlockAuthor>;
type BlockAuthor: Member + Parameter + MaxEncodedLen;
type DelegatorId: Member + Parameter + MaxEncodedLen;
const TARGET_INHERENT_ID: InherentIdentifier;
}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.
Required Associated Constants§
Sourceconst TARGET_INHERENT_ID: InherentIdentifier
const TARGET_INHERENT_ID: InherentIdentifier
Inherent ID under which block participation data should be provided. It should be set to the ID used by the pallet that will process participation data for paying out block rewards or other purposes.
Required Associated Types§
Sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight info for this pallet’s extrinsics
Sourcetype Moment: Parameter + Default + MaxEncodedLen + PartialOrd
type Moment: Parameter + Default + MaxEncodedLen + PartialOrd
Moment in time at which the participation data should be processed
This type should be convertible to a timestamp value. If it represents a time range, a representative timestamp, such as the start of the range should be computable from it.
Sourcetype BlockParticipationProvider: BlockParticipationProvider<Self::Moment, Self::BlockAuthor>
type BlockParticipationProvider: BlockParticipationProvider<Self::Moment, Self::BlockAuthor>
Source of block participation data
The default implementation provided by the Partner Chains toolit is the block production
log pallet implemented by the pallet_block_production_log crate.
Sourcetype BlockAuthor: Member + Parameter + MaxEncodedLen
type BlockAuthor: Member + Parameter + MaxEncodedLen
Type identifying the producer of a block on the Partner Chain
Sourcetype DelegatorId: Member + Parameter + MaxEncodedLen
type DelegatorId: Member + Parameter + MaxEncodedLen
Type identifying indirect block production participants on the Partner Chain This can be native stakers on Partner Chain, stakers on the main chain or other.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.