Trait pallet_example::pallet::Config [−][src]
pub trait Config: Config + Config { type MagicNumber: Get<Self::Balance>; type Event: From<Event<Self>> + IsType<<Self as Config>::Event>; type WeightInfo: WeightInfo; }
Expand description
Our pallet’s configuration trait. All our types and constants go in here. If the pallet is dependent on specific other pallets, then their configuration traits should be added to our implied traits list.
frame_system::Config
should always be included.
Associated Types
type MagicNumber: Get<Self::Balance>
type WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Type representing the weight of this pallet