referrerpolicy=no-referrer-when-downgrade

Trait pallet_collective_content::pallet::Config

source ·
pub trait Config<I: 'static = ()>: Config {
    type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>;
    type AnnouncementLifetime: Get<BlockNumberFor<Self>>;
    type AnnouncementOrigin: EnsureOrigin<Self::RuntimeOrigin>;
    type MaxAnnouncements: Get<u32>;
    type CharterOrigin: EnsureOrigin<Self::RuntimeOrigin>;
    type WeightInfo: WeightInfo;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait. The module configuration trait.

Required Associated Types§

source

type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>

The overarching event type.

source

type AnnouncementLifetime: Get<BlockNumberFor<Self>>

Default lifetime for an announcement before it expires.

source

type AnnouncementOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin to control the collective announcements.

source

type MaxAnnouncements: Get<u32>

Maximum number of announcements in the storage.

source

type CharterOrigin: EnsureOrigin<Self::RuntimeOrigin>

The origin to control the collective charter.

source

type WeightInfo: WeightInfo

Weight information needed for the pallet.

Object Safety§

This trait is not object safe.

Implementors§