Trait ceres_liquidity_locker::pallet::Config
source · pub trait Config: Config + Config + Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type XYKPool: PoolXykPallet<Self::AccountId, Self::AssetId>;
type DemeterFarmingPlatform: DemeterFarmingPallet<Self::AccountId, Self::AssetId>;
type CeresAssetId: Get<Self::AssetId>;
type WeightInfo: WeightInfo;
const BLOCKS_PER_ONE_DAY: BlockNumberFor<Self>;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Because this pallet emits events, it depends on the runtime’s definition of an event.
sourcetype DemeterFarmingPlatform: DemeterFarmingPallet<Self::AccountId, Self::AssetId>
type DemeterFarmingPlatform: DemeterFarmingPallet<Self::AccountId, Self::AssetId>
Reference to demeter_farming_platform pallet
sourcetype CeresAssetId: Get<Self::AssetId>
type CeresAssetId: Get<Self::AssetId>
Ceres asset id
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
Required Associated Constants§
sourceconst BLOCKS_PER_ONE_DAY: BlockNumberFor<Self>
const BLOCKS_PER_ONE_DAY: BlockNumberFor<Self>
One day represented in block number