Trait ceres_staking::pallet::Config
source · pub trait Config: Config + Config + Config {
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type CeresPerDay: Get<Balance>;
type CeresAssetId: Get<AssetId32<PredefinedAssetId>>;
type MaximumCeresInStakingPool: Get<Balance>;
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§
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
sourcetype CeresPerDay: Get<Balance>
type CeresPerDay: Get<Balance>
Number of Ceres distributed per day
sourcetype CeresAssetId: Get<AssetId32<PredefinedAssetId>>
type CeresAssetId: Get<AssetId32<PredefinedAssetId>>
Ceres asset id
sourcetype MaximumCeresInStakingPool: Get<Balance>
type MaximumCeresInStakingPool: Get<Balance>
Maximum Ceres in staking pool
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