pub trait VersionMigratorTrait<T>: Sized {
    // Required methods
    fn pre_migrate(&self) -> Result<(), &'static str>;
    fn migrate(&self) -> Weight;
    fn post_migrate(&self) -> Result<(), &'static str>;
}
Expand description

A trait that allows version migrators to access the underlying pallet’s context, e.g., its Config trait.

In this way, the migrator can access the pallet’s storage and the pallet’s types directly.

Required Methods§

source

fn pre_migrate(&self) -> Result<(), &'static str>

source

fn migrate(&self) -> Weight

source

fn post_migrate(&self) -> Result<(), &'static str>

Implementors§