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

Download history 1116/week @ 2023-12-18 638/week @ 2023-12-25 858/week @ 2024-01-01 1556/week @ 2024-01-08 1608/week @ 2024-01-15 2270/week @ 2024-01-22 1504/week @ 2024-01-29 1469/week @ 2024-02-05 3124/week @ 2024-02-12 2885/week @ 2024-02-19 3660/week @ 2024-02-26 2476/week @ 2024-03-04 2159/week @ 2024-03-11 3463/week @ 2024-03-18 3099/week @ 2024-03-25 3265/week @ 2024-04-01

12,149 downloads per month
Used in 350 crates (32 directly)

Apache-2.0

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 put RuntimeGenesisConfig 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