Skip to main content

Module migration

Module migration 

Source
Expand description

Layout migration helpers.

Structs§

MigrationEdge
One step in a layout’s migration chain.

Traits§

LayoutMigration
Layouts opt into in-place migration by providing a MIGRATIONS constant. The default (empty slice) means “no migrations declared” and any mismatch between header and AccountLayout::SCHEMA_EPOCH is a hard failure.

Functions§

apply_pending_migrations
Apply all pending migrations needed to bring the account at current_epoch up to AccountLayout::SCHEMA_EPOCH.