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§
sourcetype RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
type RuntimeEvent: From<Event<Self, I>> + IsType<<Self as Config>::RuntimeEvent>
The overarching event type.
sourcetype AnnouncementLifetime: Get<BlockNumberFor<Self>>
type AnnouncementLifetime: Get<BlockNumberFor<Self>>
Default lifetime for an announcement before it expires.
sourcetype AnnouncementOrigin: EnsureOrigin<Self::RuntimeOrigin>
type AnnouncementOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin to control the collective announcements.
sourcetype MaxAnnouncements: Get<u32>
type MaxAnnouncements: Get<u32>
Maximum number of announcements in the storage.
sourcetype CharterOrigin: EnsureOrigin<Self::RuntimeOrigin>
type CharterOrigin: EnsureOrigin<Self::RuntimeOrigin>
The origin to control the collective charter.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information needed for the pallet.
Object Safety§
This trait is not object safe.