17 releases (11 breaking)
new 0.11.0 | Apr 8, 2024 |
---|---|
0.10.0 | Mar 18, 2024 |
0.9.0 | Feb 26, 2024 |
0.6.0 | Dec 12, 2023 |
0.1.0-dev.2 | Jul 27, 2023 |
#240 in Magic Beans
12,149 downloads per month
Used in 350 crates
(32 directly)
310KB
6K
SLoC
Substrate genesis builder.
Refer to the module doc for more details.
License: Apache-2.0
lib.rs
:
Substrate genesis config builder
This Runtime API allows to construct RuntimeGenesisConfig
, in particular:
- serialize the runtime default
RuntimeGenesisConfig
struct into json format, - put the RuntimeGenesisConfig struct into the storage. Internally this operation calls
GenesisBuild::build
function for all runtime pallets, which is typically provided by pallet's author. - deserialize the
RuntimeGenesisConfig
from given json blob and putRuntimeGenesisConfig
into the state storage. Allows to build customized configuration.
Providing externalities with empty storage and putting RuntimeGenesisConfig
into storage
allows to catch and build the raw storage of RuntimeGenesisConfig
which is the foundation for
genesis block.
Dependencies
~15–28MB
~443K SLoC