Trait pallet_parameters::pallet::DefaultConfig
source · pub trait DefaultConfig: DefaultConfig {
type RuntimeEvent;
type RuntimeParameters;
type AdminOrigin;
type WeightInfo: WeightInfo;
}
Expand description
Based on Config
. Auto-generated by
#[pallet::config(with_default)]
.
Can be used in tandem with
#[register_default_config]
and
#[derive_impl]
to derive test config traits
based on existing pallet config traits in a safe and developer-friendly way.
See here for more information and caveats about
the auto-generated DefaultConfig
trait and how it is generated.
Required Associated Types§
sourcetype RuntimeEvent
type RuntimeEvent
The overarching event type.
sourcetype RuntimeParameters
type RuntimeParameters
The overarching KV type of the parameters.
Usually created by [frame_support::dynamic_params
] or equivalent.
sourcetype AdminOrigin
type AdminOrigin
The origin which may update a parameter.
The key of the parameter is passed in as second argument to allow for fine grained control.
sourcetype WeightInfo: WeightInfo
type WeightInfo: WeightInfo
Weight information for extrinsics in this module.
Object Safety§
This trait is not object safe.