Trait pallet_robonomics_rws::pallet::Config  
source · 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§
sourcetype Call: Parameter + UnfilteredDispatchable<RuntimeOrigin = Self::RuntimeOrigin> + GetDispatchInfo
 
type Call: Parameter + UnfilteredDispatchable<RuntimeOrigin = Self::RuntimeOrigin> + GetDispatchInfo
Call subscription method.
sourcetype Moment: Parameter + AtLeast32Bit + Into<u64>
 
type Moment: Parameter + AtLeast32Bit + Into<u64>
Time should be aligned to weights for TPS calculations.
sourcetype AuctionIndex: Parameter + AtLeast32Bit + Default
 
type AuctionIndex: Parameter + AtLeast32Bit + Default
The auction index value.
sourcetype AuctionCurrency: ReservableCurrency<Self::AccountId>
 
type AuctionCurrency: ReservableCurrency<Self::AccountId>
The auction bid currency.
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 ReferenceCallWeight: Get<u64>
 
type ReferenceCallWeight: Get<u64>
Reference call weight, general transaction consumes this weight.
sourcetype AuctionDuration: Get<BlockNumberFor<Self>>
 
type AuctionDuration: Get<BlockNumberFor<Self>>
Subscription auction duration in blocks.
sourcetype AuctionCost: Get<<<Self as Config>::AuctionCurrency as Currency<<Self as Config>::AccountId>>::Balance>
 
type AuctionCost: Get<<<Self as Config>::AuctionCurrency as Currency<<Self as Config>::AccountId>>::Balance>
How much token should be bonded to launch new auction.
sourcetype MinimalBid: 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>
Minimal auction bid.