Module v2

Source
Expand description

Migration module for migrating from V2 to V3

Structs§

ChildCursor
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
FinalizeV2Migration
Finalize the migration by updating the pallet storage version.
MigrateItemizedV1ToV2
The step function 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.
MigratePaginatedV1ToV2
The step function 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§

ItemizedKeyLength
The length of an ItemizedKey (twox_128, u16)
PaginatedKeyLength
The length of a PaginatedKey (twox_128, twox_128, u16, u16)