Attribute Macro frame_support::pallet_macros::config

source ·
Expand description

The mandatory attribute #[pallet::config] defines the configurable options for the pallet.

Item must be defined as:

pub trait Config: frame_system::Config + $optionally_some_other_supertraits

I.e. a regular trait definition named Config, with the supertrait frame_system::pallet::Config, and optionally other supertraits and a where clause. (Specifying other supertraits here is known as tight coupling)

The associated type RuntimeEvent is reserved. If defined, it must have the bounds From<Event> and IsType<<Self as frame_system::Config>::RuntimeEvent>.

pallet::event must be present if RuntimeEvent exists as a config item in your #[pallet::config].