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§
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 RuntimeOrigin: From<DelayedOrigin<BlockNumberFor<Self>, <Self as Config>::PalletsOrigin>> + IsType<<Self as Config>::RuntimeOrigin> + OriginTrait<PalletsOrigin = Self::PalletsOrigin>
type RuntimeOrigin: From<DelayedOrigin<BlockNumberFor<Self>, <Self as Config>::PalletsOrigin>> + IsType<<Self as Config>::RuntimeOrigin> + OriginTrait<PalletsOrigin = Self::PalletsOrigin>
The outer origin type.
sourcetype PalletsOrigin: Parameter + Into<<Self as Config>::RuntimeOrigin>
type PalletsOrigin: Parameter + Into<<Self as Config>::RuntimeOrigin>
The caller origin, overarching type of all pallets origins.
sourcetype RuntimeCall: Parameter + Dispatchable<RuntimeOrigin = <Self as Config>::RuntimeOrigin, PostInfo = PostDispatchInfo> + GetDispatchInfo
type RuntimeCall: Parameter + Dispatchable<RuntimeOrigin = <Self as Config>::RuntimeOrigin, PostInfo = PostDispatchInfo> + GetDispatchInfo
The aggregated call type.
sourcetype Scheduler: ScheduleNamed<BlockNumberFor<Self>, <Self as Config>::RuntimeCall, Self::PalletsOrigin, Hasher = Self::Hashing>
type Scheduler: ScheduleNamed<BlockNumberFor<Self>, <Self as Config>::RuntimeCall, Self::PalletsOrigin, Hasher = Self::Hashing>
The Scheduler.
sourcetype AsOriginId: Parameter + AsOriginId<<Self as Config>::RuntimeOrigin, Self::PalletsOrigin>
type AsOriginId: Parameter + AsOriginId<<Self as Config>::RuntimeOrigin, Self::PalletsOrigin>
The type represent origin that can be dispatched by other origins.
sourcetype AuthorityConfig: AuthorityConfig<<Self as Config>::RuntimeOrigin, Self::PalletsOrigin, BlockNumberFor<Self>>
type AuthorityConfig: AuthorityConfig<<Self as Config>::RuntimeOrigin, Self::PalletsOrigin, BlockNumberFor<Self>>
Additional permission config.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this module.
Object Safety§
This trait is not object safe.