Trait frame_support::traits::GenesisBuild[][src]

pub trait GenesisBuild<T, I = ()>: Default + MaybeSerializeDeserialize {
    fn build(&self);

    fn build_storage(&self) -> Result<Storage, String> { ... }
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String> { ... } }

A trait to define the build function of a genesis config, T and I are placeholder for pallet trait and pallet instance.

Required methods

fn build(&self)[src]

The build function is called within an externalities allowing storage APIs. Thus one can write to storage using regular pallet storages.

Loading content...

Provided methods

fn build_storage(&self) -> Result<Storage, String>[src]

Build the storage using build inside default storage.

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>[src]

Assimilate the storage for this module into pre-existing overlays.

Loading content...

Implementors

Loading content...