Crate sp_genesis_builder
source ·Expand description
Substrate genesis config builder
This Runtime API allows to construct GenesisConfig, in particular:
- serialize the runtime default
GenesisConfigstruct into json format, - put the GenesisConfig struct into the storage. Internally this operation calls
GenesisBuild::buildfunction for all runtime pallets, which is typically provided by pallet’s author. - deserialize the
GenesisConfigfrom given json blob and putGenesisConfiginto the state storage. Allows to build customized configuration.
Providing externalities with empty storage and putting GenesisConfig into storage allows to
catch and build the raw storage of GenesisConfig which is the foundation for genesis block.
Traits
- API to interact with GenesisConfig for the runtime
Type Definitions
- The result type alias, used in build methods.
Errcontains formatted error message.