referrerpolicy=no-referrer-when-downgrade

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§

source

type RuntimeEvent

The overarching event type.

source

type RuntimeParameters

The overarching KV type of the parameters.

Usually created by [frame_support::dynamic_params] or equivalent.

source

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.

source

type WeightInfo: WeightInfo

Weight information for extrinsics in this module.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DefaultConfig for TestDefaultConfig

§

type RuntimeEvent = ()

§

type RuntimeParameters = ()

§

type AdminOrigin = AsEnsureOriginWithArg<EnsureRoot<<TestDefaultConfig as DefaultConfig>::AccountId>>

§

type WeightInfo = ()