#[genesis_config]
Expand description

The #[pallet::genesis_config] attribute allows you to define the genesis configuration for the pallet.

Item is defined as either an enum or a struct. It needs to be public and implement the trait GenesisBuild with #[pallet::genesis_build]. The type generics are constrained to be either none, or T or T: Config.

E.g:

#[pallet::genesis_config]
pub struct GenesisConfig<T: Config> {
	_myfield: BalanceOf<T>,
}