pub trait Config: Config {
    type Call: Parameter + UnfilteredDispatchable<RuntimeOrigin = Self::RuntimeOrigin> + GetDispatchInfo;
    type Time: Time<Moment = Self::Moment>;
    type Moment: Parameter + AtLeast32Bit + Into<u64>;
    type AuctionIndex: Parameter + AtLeast32Bit + Default;
    type AuctionCurrency: ReservableCurrency<Self::AccountId>;
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type ReferenceCallWeight: Get<u64>;
    type AuctionDuration: Get<BlockNumberFor<Self>>;
    type AuctionCost: Get<<<Self as Config>::AuctionCurrency as Currency<<Self as Config>::AccountId>>::Balance>;
    type MinimalBid: Get<<<Self as Config>::AuctionCurrency as Currency<<Self as Config>::AccountId>>::Balance>;
}
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§

source

type Call: Parameter + UnfilteredDispatchable<RuntimeOrigin = Self::RuntimeOrigin> + GetDispatchInfo

Call subscription method.

source

type Time: Time<Moment = Self::Moment>

Current time source.

source

type Moment: Parameter + AtLeast32Bit + Into<u64>

Time should be aligned to weights for TPS calculations.

source

type AuctionIndex: Parameter + AtLeast32Bit + Default

The auction index value.

source

type AuctionCurrency: ReservableCurrency<Self::AccountId>

The auction bid currency.

source

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

The overarching event type.

source

type ReferenceCallWeight: Get<u64>

Reference call weight, general transaction consumes this weight.

source

type AuctionDuration: Get<BlockNumberFor<Self>>

Subscription auction duration in blocks.

source

type AuctionCost: Get<<<Self as Config>::AuctionCurrency as Currency<<Self as Config>::AccountId>>::Balance>

How much token should be bonded to launch new auction.

source

type MinimalBid: Get<<<Self as Config>::AuctionCurrency as Currency<<Self as Config>::AccountId>>::Balance>

Minimal auction bid.

Implementors§