Trait polkadot_runtime_common::auctions::pallet::Config
source · pub trait Config: Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type Leaser: Leaser<BlockNumberFor<Self>, AccountId = Self::AccountId, LeasePeriod = BlockNumberFor<Self>>;
type Registrar: Registrar<AccountId = Self::AccountId>;
type EndingPeriod: Get<BlockNumberFor<Self>>;
type SampleLength: Get<BlockNumberFor<Self>>;
type Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>;
type InitiateOrigin: EnsureOrigin<Self::RuntimeOrigin>;
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. The module’s configuration trait.
Required Associated Types§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype Leaser: Leaser<BlockNumberFor<Self>, AccountId = Self::AccountId, LeasePeriod = BlockNumberFor<Self>>
type Leaser: Leaser<BlockNumberFor<Self>, AccountId = Self::AccountId, LeasePeriod = BlockNumberFor<Self>>
The type representing the leasing system.
sourcetype EndingPeriod: Get<BlockNumberFor<Self>>
type EndingPeriod: Get<BlockNumberFor<Self>>
The number of blocks over which an auction may be retroactively ended.
sourcetype SampleLength: Get<BlockNumberFor<Self>>
type SampleLength: Get<BlockNumberFor<Self>>
The length of each sample to take during the ending period.
EndingPeriod
/ SampleLength
= Total # of Samples
sourcetype Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>
type Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>
Something that provides randomness in the runtime.
sourcetype InitiateOrigin: EnsureOrigin<Self::RuntimeOrigin>
type InitiateOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin which may initiate auctions.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight Information for the Extrinsics in the Pallet