pub trait Config: Config + Config + Config + Config {
type RuntimeEvent: From<Event<Self>> + IsType<Self::RuntimeEvent>;
type DemeterAssetId: Get<Self::AssetId>;
type WeightInfo: WeightInfo;
const BLOCKS_PER_HOUR_AND_A_HALF: <Self as Config>::BlockNumber;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
type RuntimeEvent: From<Event<Self>> + IsType<Self::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<Self::RuntimeEvent>
Because this pallet emits events, it depends on the runtime’s definition of an event.
type DemeterAssetId: Get<Self::AssetId>
type DemeterAssetId: Get<Self::AssetId>
Demeter asset id
type WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
Required Associated Constants§
const BLOCKS_PER_HOUR_AND_A_HALF: <Self as Config>::BlockNumber
const BLOCKS_PER_HOUR_AND_A_HALF: <Self as Config>::BlockNumber
One hour represented in block number