nv7

package
v2.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: Apache-2.0, MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateStateTree

func MigrateStateTree(ctx context.Context, store cbor.IpldStore, stateRootIn cid.Cid, priorEpoch abi.ChainEpoch, _ Config) (cid.Cid, error)

Migrates the filecoin state tree starting from the global state tree and upgrading all actor state.

Types

type Config

type Config struct{}

Config parameterizes a state tree migration

func DefaultConfig

func DefaultConfig() Config

type MigrationInfo

type MigrationInfo struct {
	// contains filtered or unexported fields
}

type PowerMigrator

type PowerMigrator struct{}

func (PowerMigrator) ComputeClaimsStats

func (a PowerMigrator) ComputeClaimsStats(ctx context.Context, store cbor.IpldStore, claimsRoot cid.Cid) (*claimsSummary, error)

func (PowerMigrator) MigrateState

func (m PowerMigrator) MigrateState(ctx context.Context, store cbor.IpldStore, head cid.Cid, info MigrationInfo) (*StateMigrationResult, error)

type StateMigration

type StateMigration interface {
	// Loads an actor's state from an input store and writes new state to an output store.
	// Returns the new state head CID.
	MigrateState(ctx context.Context, store cbor.IpldStore, head cid.Cid, info MigrationInfo) (result *StateMigrationResult, err error)
}

type StateMigrationResult

type StateMigrationResult struct {
	NewHead  cid.Cid
	Transfer abi.TokenAmount
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL