Trait pallet_asset_rate::pallet::Config
source · pub trait Config: Config {
type WeightInfo: WeightInfo;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type CreateOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type RemoveOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type UpdateOrigin: EnsureOrigin<Self::RuntimeOrigin>;
type Currency: Inspect<Self::AccountId>;
type AssetKind: Parameter + MaxEncodedLen;
type BenchmarkHelper: AssetKindFactory<Self::AssetKind>;
}
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 WeightInfo: WeightInfo
type WeightInfo: WeightInfo
The Weight information for extrinsics in this pallet.
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
The runtime event type.
sourcetype CreateOrigin: EnsureOrigin<Self::RuntimeOrigin>
type CreateOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin permissioned to create a conversion rate for an asset.
sourcetype RemoveOrigin: EnsureOrigin<Self::RuntimeOrigin>
type RemoveOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin permissioned to remove an existing conversion rate for an asset.
sourcetype UpdateOrigin: EnsureOrigin<Self::RuntimeOrigin>
type UpdateOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin permissioned to update an existing conversion rate for an asset.
sourcetype AssetKind: Parameter + MaxEncodedLen
type AssetKind: Parameter + MaxEncodedLen
The type for asset kinds for which the conversion rate to native balance is set.
sourcetype BenchmarkHelper: AssetKindFactory<Self::AssetKind>
type BenchmarkHelper: AssetKindFactory<Self::AssetKind>
Helper type for benchmarks.