You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the latest updates to the polkadot-sdk, running a Gosemble-based runtime with a substrate-based host now requires the runtime to implement two additional exported functions:
GenesisBuilder_create_default_config
GenesisBuilder_build_config
/// API to interact with GenesisConfig for the runtimepubtraitGenesisBuilder{/// Creates the default `GenesisConfig` and returns it as a JSON blob.////// This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON/// blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.fncreate_default_config() -> sp_std::vec::Vec<u8>;/// Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.////// This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage./// If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned./// It is recommended to log any errors encountered during the process.////// Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.fnbuild_config(json: sp_std::vec::Vec<u8>) -> Result;}
These are invoked in the polkadot-sdk/substrate/client/client-spec/src/genesis_config_builder.rs file
No description provided.
The text was updated successfully, but these errors were encountered: