Expand description

Some instance placeholder to be used in frame_support::pallet attribute macro.

frame_support::pallet attribute macro does only requires the instance generic I to be static (contrary to decl_* macro which requires instance generic to implement frame_support::traits::Instance).

Thus support provides some instance types to be used, This allow some instantiable pallet to depend on specific instance of another:

pub trait Config<I: 'static = ()>: another_pallet::Config<I> {}

NOTE: frame_support::pallet will reexport them inside the module, in order to make them accessible to frame_support::construct_runtime.

Structs

  • Instance1 to be used for instantiable palllets defined with the #[pallet] macro. Instances 2-16 are also available but are hidden from docs.