From 5bb55a951fe84f87c8d8064c7435d0d551c6aa9f Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 12 Jun 2024 15:27:50 +0100 Subject: [PATCH] Update actors_version_checklist.md Update actors_version_checklist.md to reference Go-State-Types Checklist in Lotus repository --- actors_version_checklist.md | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/actors_version_checklist.md b/actors_version_checklist.md index 25807392..527f6952 100644 --- a/actors_version_checklist.md +++ b/actors_version_checklist.md @@ -1,14 +1,3 @@ ### Actor version integration checklist -- [ ] Copy `go-state-types/builtin/vX` to `go-state-types/builtin/v(X+1)` -- [ ] Change all references to `vX` in the new files to `v(X+1)` -- [ ] Add new network version to `network/version.go` -- [ ] Add new actors version to `actors/version.go`[^1] -- [ ] Add the new version to the `gen` step of the makefile`[^2] -- [ ] run `make gen` - -[^1]: - #### Steps: - 1. **Add a new constant**: Add a new constant in the list of versions. The new constant's name should follow the existing naming convention - i.e., `VersionXX+1 Version = XX+1`, where XX+1 is the new version number. - 2. **Update `VersionForNetwork` function**: In `version.go`, there's a function called `VersionForNetwork` that accepts a network version and returns the corresponding actor version. Add a new case line for the network version that corresponds to the new actor version you're adding - i.e, `network.Version(XX+1): return Version(XX+1), nil` -[^2]: Add `$(GO_BIN) run ./builtin/v(XX+1)/gen/gen.go` +For detailed steps on integrating a new actor version, please refer to the [Go-State-Types Checklist in the Lotus repository](https://github.com/filecoin-project/lotus/blob/master/documentation/misc/Building_a_network_skeleton.md#go-state-types-checklist). \ No newline at end of file