pub trait Config: Config<RuntimeEvent: From<Event<Self>>> + Config<RuntimeEvent: From<Event<Self>>> {
type Source: Parameter + MaxEncodedLen + Ord + Copy + MaybeSerializeDeserialize;
type ReportOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Self::Source>;
type PointsOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type RewardPoints: RewardPoints<Self::AccountId>;
type MaxPointsPerService: Get<u32>;
type MaxBlocksPerEntry: Get<u32>;
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 Source: Parameter + MaxEncodedLen + Ord + Copy + MaybeSerializeDeserialize
type Source: Parameter + MaxEncodedLen + Ord + Copy + MaybeSerializeDeserialize
Identifies a chain whose blocks earn era points.
Sourcetype ReportOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Self::Source>
type ReportOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = Self::Source>
Origin of a chain allowed to report the blocks authored on it. Returns that chain.
Sourcetype PointsOrigin: EnsureOrigin<Self::RuntimeOrigin>
type PointsOrigin: EnsureOrigin<Self::RuntimeOrigin>
Origin allowed to set the points per service of a source.
Sourcetype RewardPoints: RewardPoints<Self::AccountId>
type RewardPoints: RewardPoints<Self::AccountId>
Credits era points to the validators.
Sourcetype MaxPointsPerService: Get<u32>
type MaxPointsPerService: Get<u32>
Largest points per service Pallet::set_points_per_service and the genesis config
accept, for every service.
Crediting also bounds a stored value by it.
Sourcetype MaxBlocksPerEntry: Get<u32>
type MaxBlocksPerEntry: Get<u32>
Largest count of blocks credited for one entry of a report. A larger count is credited as this many blocks.
Sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for this pallet.
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.