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<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>;
type Registrar: Registrar<AccountId = Self::AccountId>;
type EndingPeriod: Get<Self::BlockNumber>;
type SampleLength: Get<Self::BlockNumber>;
type Randomness: Randomness<Self::Hash, Self::BlockNumber>;
type InitiateOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type WeightInfo: WeightInfo;
}
Expand description
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<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>
type Leaser: Leaser<Self::BlockNumber, AccountId = Self::AccountId, LeasePeriod = Self::BlockNumber>
The type representing the leasing system.
sourcetype EndingPeriod: Get<Self::BlockNumber>
type EndingPeriod: Get<Self::BlockNumber>
The number of blocks over which an auction may be retroactively ended.
sourcetype SampleLength: Get<Self::BlockNumber>
type SampleLength: Get<Self::BlockNumber>
The length of each sample to take during the ending period.
EndingPeriod
/ SampleLength
= Total # of Samples
sourcetype Randomness: Randomness<Self::Hash, Self::BlockNumber>
type Randomness: Randomness<Self::Hash, Self::BlockNumber>
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