Expand description
Migration module for migrating from V2 to V3
Structs§
- Child
Cursor - Type to encapsulate a child key of a certain size, or no key.
Necessary because we need MaxEncodedLen, which
Vec<u8>doesn’t give us. Cursor struct for tracking migration progress - Finalize
V2Migration - Finalize the migration by updating the pallet storage version.
- Migrate
Itemized V1To V2 - The
stepfunction will be called once per block. It is very important that this function never panics and never uses more weight than it got in its meter. The migrations should also try to make maximal progress per step, so that the total time it takes to migrate stays low. - Migrate
Paginated V1To V2 - The
stepfunction will be called once per block. It is very important that this function never panics and never uses more weight than it got in its meter. The migrations should also try to make maximal progress per step, so that the total time it takes to migrate stays low.
Functions§
- process_
itemized_ page - Migrates a single ItemizedPage
- process_
paginated_ page - Migrates a single PaginatedPage
Type Aliases§
- Itemized
KeyLength - The length of an ItemizedKey (twox_128, u16)
- Paginated
KeyLength - The length of a PaginatedKey (twox_128, twox_128, u16, u16)