c7b9633160
Introduce nv21 skeleton for local testing: - Use local go-state-types with actor_version_checklist changes: https://github.com/filecoin-project/go-state-types/blob/master/actors_version_checklist.md - Imports mock v12-actors bundle - Define upgrade heights - Generate adapters - Add upgrade schedule and migration - Add actorstype to the NewActorRegistry in /chain/consensus/computestate.go - Add upgrade field to api/types.go/ForkUpgradeParams - Add upgrade to node/impl/full/state.go - Add network version to chain/state/statetree.go - make jen - make docsgen-cli
37 lines
661 B
Go
37 lines
661 B
Go
package actors
|
|
|
|
type Version int
|
|
|
|
/* inline-gen template
|
|
|
|
var LatestVersion = {{.latestActorsVersion}}
|
|
|
|
var Versions = []int{ {{range .actorVersions}} {{.}}, {{end}} }
|
|
|
|
const ({{range .actorVersions}}
|
|
Version{{.}} Version = {{.}}{{end}}
|
|
)
|
|
|
|
/* inline-gen start */
|
|
|
|
var LatestVersion = 12
|
|
|
|
var Versions = []int{0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
|
|
|
|
const (
|
|
Version0 Version = 0
|
|
Version2 Version = 2
|
|
Version3 Version = 3
|
|
Version4 Version = 4
|
|
Version5 Version = 5
|
|
Version6 Version = 6
|
|
Version7 Version = 7
|
|
Version8 Version = 8
|
|
Version9 Version = 9
|
|
Version10 Version = 10
|
|
Version11 Version = 11
|
|
Version12 Version = 12
|
|
)
|
|
|
|
/* inline-gen end */
|