referrerpolicy=no-referrer-when-downgrade

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§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

source

type Leaser: Leaser<BlockNumberFor<Self>, AccountId = Self::AccountId, LeasePeriod = BlockNumberFor<Self>>

The type representing the leasing system.

source

type Registrar: Registrar<AccountId = Self::AccountId>

The parachain registrar type.

source

type EndingPeriod: Get<BlockNumberFor<Self>>

The number of blocks over which an auction may be retroactively ended.

source

type SampleLength: Get<BlockNumberFor<Self>>

The length of each sample to take during the ending period.

EndingPeriod / SampleLength = Total # of Samples

source

type Randomness: Randomness<Self::Hash, BlockNumberFor<Self>>

Something that provides randomness in the runtime.

source

type InitiateOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin which may initiate auctions.

source

type WeightInfo: WeightInfo

Weight Information for the Extrinsics in the Pallet

Object Safety§

This trait is not object safe.

Implementors§