Module forest_filecoin::state_migration::common
source Β· Expand description
Common code thatβs shared across all migration code. Each network upgrade / state migration code lives in their own module.
Modules§
- macros π
- migration_job π
- migrators π
- state_migration π
- verifier π
Structs§
- ActorMigrationInput π
- ActorMigrationOutput πOutput of actor migration job.
- MigrationCache πCache of existing CID to CID migrations for an actor.
- TypeMigrator πType that implements
TypeMigration
for different type pairs. Prefer using a singlestruct
so that the compiler could catch duplicate implementations
Traits§
- ActorMigration πTrait that defines the interface for actor migration job.
- PostMigrationCheck πTrait defining the interface for actor migration verifier.
- PostMigrator πTrait that defines the interface for actor migration job to be executed after the state migration.
- TypeMigration πTrait that migrates from one data structure to another, similar to
std::convert::TryInto
trait but taking an extra block store parameter
Type Aliases§
- Migrator π
- Sized wrapper of
PostMigrationCheck
. - PostMigratorArc πSized wrapper of
PostMigrator
.