Trait orml_authority::module::Config

source ·
pub trait Config: Config {
    type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
    type RuntimeOrigin: From<DelayedOrigin<BlockNumberFor<Self>, <Self as Config>::PalletsOrigin>> + IsType<<Self as Config>::RuntimeOrigin> + OriginTrait<PalletsOrigin = Self::PalletsOrigin>;
    type PalletsOrigin: Parameter + Into<<Self as Config>::RuntimeOrigin>;
    type RuntimeCall: Parameter + Dispatchable<RuntimeOrigin = <Self as Config>::RuntimeOrigin, PostInfo = PostDispatchInfo> + GetDispatchInfo;
    type Scheduler: ScheduleNamed<BlockNumberFor<Self>, <Self as Config>::RuntimeCall, Self::PalletsOrigin, Hasher = Self::Hashing>;
    type AsOriginId: Parameter + AsOriginId<<Self as Config>::RuntimeOrigin, Self::PalletsOrigin>;
    type AuthorityConfig: AuthorityConfig<<Self as Config>::RuntimeOrigin, Self::PalletsOrigin, BlockNumberFor<Self>>;
    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.

Required Associated Types§

source

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

The overarching event type.

source

type RuntimeOrigin: From<DelayedOrigin<BlockNumberFor<Self>, <Self as Config>::PalletsOrigin>> + IsType<<Self as Config>::RuntimeOrigin> + OriginTrait<PalletsOrigin = Self::PalletsOrigin>

The outer origin type.

source

type PalletsOrigin: Parameter + Into<<Self as Config>::RuntimeOrigin>

The caller origin, overarching type of all pallets origins.

source

type RuntimeCall: Parameter + Dispatchable<RuntimeOrigin = <Self as Config>::RuntimeOrigin, PostInfo = PostDispatchInfo> + GetDispatchInfo

The aggregated call type.

source

type Scheduler: ScheduleNamed<BlockNumberFor<Self>, <Self as Config>::RuntimeCall, Self::PalletsOrigin, Hasher = Self::Hashing>

The Scheduler.

source

type AsOriginId: Parameter + AsOriginId<<Self as Config>::RuntimeOrigin, Self::PalletsOrigin>

The type represent origin that can be dispatched by other origins.

source

type AuthorityConfig: AuthorityConfig<<Self as Config>::RuntimeOrigin, Self::PalletsOrigin, BlockNumberFor<Self>>

Additional permission config.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this module.

Object Safety§

This trait is not object safe.

Implementors§