Trait kilt_support::traits::VersionMigratorTrait
source · 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.