Trait band::pallet::Config

source ·
pub trait Config<I: 'static = ()>: Config {
    type Symbol: Parameter + Ord;
    type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>;
    type WeightInfo: WeightInfo;
    type OnNewSymbolsRelayedHook: OnNewSymbolsRelayed<Self::Symbol>;
    type GetBandRateStalePeriod: Get<<<Self as Config<I>>::Time as Time>::Moment>;
    type GetBandRateStaleBlockPeriod: Get<Self::BlockNumber>;
    type MaxRelaySymbols: Get<u32>;
    type Time: Time;
    type OnSymbolDisabledHook: OnSymbolDisabled<Self::Symbol>;
}
Expand description

Configuration trait of this pallet.

Implement this type for a runtime in order to customize this pallet.

Required Associated Types§

source

type Symbol: Parameter + Ord

Type of the symbol to be relayed.

source

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

Event type of this pallet.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

source

type OnNewSymbolsRelayedHook: OnNewSymbolsRelayed<Self::Symbol>

Hook which is being executed when some new symbols were relayed

source

type GetBandRateStalePeriod: Get<<<Self as Config<I>>::Time as Time>::Moment>

Rate expiration period in seconds.

source

type GetBandRateStaleBlockPeriod: Get<Self::BlockNumber>

Rate expiration period in blocks

source

type MaxRelaySymbols: Get<u32>

Maximum number of symbols that can be relayed within a single call.

source

type Time: Time

Time used for checking if rate expired

source

type OnSymbolDisabledHook: OnSymbolDisabled<Self::Symbol>

Hook which is being executed when some symbol must be disabled

Implementors§