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§

source

type StringLimit: Get<u32>

String limit

source

type OptionsLimit: Get<u32>

Options limit

source

type TitleLimit: Get<u32>

Title limit

source

type DescriptionLimit: Get<u32>

Description limit

source

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.

source

type HermesAssetId: Get<Self::AssetId>

Hermes asset id

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this pallet.

Required Associated Constants§

source

const MIN_DURATION_OF_POLL: Self::Moment

Minimum duration of poll represented in milliseconds

source

const MAX_DURATION_OF_POLL: Self::Moment

Maximum duration of poll represented in milliseconds

Implementors§