pub trait Config: Config + Config {
type KeyOwnerProof: Parameter + GetSessionNumber + GetValidatorCount;
type KeyOwnerIdentification: Parameter;
type KeyOwnerProofSystem: KeyOwnerProofSystem<(KeyTypeId, ValidatorId), Proof = Self::KeyOwnerProof, IdentificationTuple = Self::KeyOwnerIdentification>;
type HandleReports: HandleReports<Self>;
type WeightInfo: WeightInfo;
type BenchmarkingConfig: BenchmarkingConfiguration;
}
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 Types§
sourcetype KeyOwnerProof: Parameter + GetSessionNumber + GetValidatorCount
type KeyOwnerProof: Parameter + GetSessionNumber + GetValidatorCount
The proof of key ownership, used for validating slashing reports. The proof must include the session index and validator count of the session at which the offence occurred.
sourcetype KeyOwnerIdentification: Parameter
type KeyOwnerIdentification: Parameter
The identification of a key owner, used when reporting slashes.
sourcetype KeyOwnerProofSystem: KeyOwnerProofSystem<(KeyTypeId, ValidatorId), Proof = Self::KeyOwnerProof, IdentificationTuple = Self::KeyOwnerIdentification>
type KeyOwnerProofSystem: KeyOwnerProofSystem<(KeyTypeId, ValidatorId), Proof = Self::KeyOwnerProof, IdentificationTuple = Self::KeyOwnerIdentification>
A system for proving ownership of keys, i.e. that a given key was part of a validator set, needed for validating slashing reports.
sourcetype HandleReports: HandleReports<Self>
type HandleReports: HandleReports<Self>
The slashing report handling subsystem, defines methods to report an
offence (after the slashing report has been validated) and for
submitting a transaction to report a slash (from an offchain
context). NOTE: when enabling slashing report handling (i.e. this
type isn’t set to ()
) you must use this pallet’s
ValidateUnsigned
in the runtime definition.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
sourcetype BenchmarkingConfig: BenchmarkingConfiguration
type BenchmarkingConfig: BenchmarkingConfiguration
Benchmarking configuration.