Trait hermes_governance_platform::pallet::Config
source · pub trait Config: Config + Config + Config + Config {
type StringLimit: Get<u32>;
type OptionsLimit: Get<u32>;
type TitleLimit: Get<u32>;
type DescriptionLimit: Get<u32>;
type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
type HermesAssetId: Get<Self::AssetId>;
type WeightInfo: WeightInfo;
const MIN_DURATION_OF_POLL: Self::Moment;
const MAX_DURATION_OF_POLL: Self::Moment;
}
Expand description
Configuration trait of this pallet.
Implement this type for a runtime in order to customize this pallet.
Required Associated Types§
sourcetype StringLimit: Get<u32>
type StringLimit: Get<u32>
String limit
sourcetype OptionsLimit: Get<u32>
type OptionsLimit: Get<u32>
Options limit
sourcetype TitleLimit: Get<u32>
type TitleLimit: Get<u32>
Title limit
sourcetype DescriptionLimit: Get<u32>
type DescriptionLimit: Get<u32>
Description limit
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 HermesAssetId: Get<Self::AssetId>
type HermesAssetId: Get<Self::AssetId>
Hermes asset id
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this pallet.
Required Associated Constants§
sourceconst MIN_DURATION_OF_POLL: Self::Moment
const MIN_DURATION_OF_POLL: Self::Moment
Minimum duration of poll represented in milliseconds
sourceconst MAX_DURATION_OF_POLL: Self::Moment
const MAX_DURATION_OF_POLL: Self::Moment
Maximum duration of poll represented in milliseconds