Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed Sep 21, 2022
1 parent 624961e commit 12bbdc3
Show file tree
Hide file tree
Showing 139 changed files with 725 additions and 522 deletions.
18 changes: 8 additions & 10 deletions api/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions api/v0api/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions build/builtin_actors_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var EmbeddedBuiltinActorsMetadata []*BuiltinActorsMetadata = []*BuiltinActorsMet
"storagepower": MustParseCid("bafk2bzacebxl4ssugntkckifkq6sydczcas463bmonwi2m5hddurzzcukdzyg"),
"system": MustParseCid("bafk2bzacedtw2ebtl3uccbqfcm6jd7teinlpktcglopuaxa6ev334jhs46hso"),
"verifiedregistry": MustParseCid("bafk2bzaceds62ys6rpbtjjsemohalxnkr3jtqhflifabn3xlhpi45mvi757po"),
"datacap": MustParseCid("todo"),
},
}, {
Network: "calibrationnet",
Expand Down Expand Up @@ -73,6 +74,7 @@ var EmbeddedBuiltinActorsMetadata []*BuiltinActorsMetadata = []*BuiltinActorsMet
"storagepower": MustParseCid("bafk2bzaceassqqdljvblivbcrkv62a36gxjwf7dmkgez6ezq2oydx3dv2b3z2"),
"system": MustParseCid("bafk2bzacebxsecqifqvqxavnmsuwigmnc5rcuxoezspmykeqinkbgrkfukmgs"),
"verifiedregistry": MustParseCid("bafk2bzacedrmxfk5qifi7ujcb7mm73mwoy5e7nbndxhbqauuyol6cunf6popm"),
"datacap": MustParseCid("todo"),
},
}, {
Network: "caterpillarnet",
Expand Down Expand Up @@ -107,6 +109,7 @@ var EmbeddedBuiltinActorsMetadata []*BuiltinActorsMetadata = []*BuiltinActorsMet
"storagepower": MustParseCid("bafk2bzacedbfoblr65vbqwx37cym6v3zhbgrau46vma4c2lbh6toz6q5dyrtc"),
"system": MustParseCid("bafk2bzaced7z2lu5hp4qpsesbmubq3chrad3sl6kgveldafksh4w252ijjaw2"),
"verifiedregistry": MustParseCid("bafk2bzacec6fdlcvlnaiktdptogae3bgofhzo24lhn4hs6rsa2zbnknfpsct6"),
"datacap": MustParseCid("todo"),
},
}, {
Network: "devnet",
Expand Down Expand Up @@ -141,6 +144,7 @@ var EmbeddedBuiltinActorsMetadata []*BuiltinActorsMetadata = []*BuiltinActorsMet
"storagepower": MustParseCid("bafk2bzaced377v52henedhmudi2isuxe73mp2lrv2zyyxfp4r4uppz3sy2ipw"),
"system": MustParseCid("bafk2bzacebb3gdmg2fqexijivo7dkxj6g6gu7ou2jsw6opszr5gfmwt4fvorw"),
"verifiedregistry": MustParseCid("bafk2bzacec5xfb3a56mlclymhvs2br3qzx7sagqda4dvl4xz3fgiymkkbz5tk"),
"datacap": MustParseCid("todo"),
},
}, {
Network: "mainnet",
Expand Down Expand Up @@ -175,6 +179,7 @@ var EmbeddedBuiltinActorsMetadata []*BuiltinActorsMetadata = []*BuiltinActorsMet
"storagepower": MustParseCid("bafk2bzacec3dmcwtizgy6qhxg6fgb4ykc2pamxxh2n5oyeqvebjf3ikzd2sui"),
"system": MustParseCid("bafk2bzacecrm36gf2gusruvhfc6ukf36qflsr5pdbquvfyysprdyudsatoufm"),
"verifiedregistry": MustParseCid("bafk2bzaceah3mwu6tb4jmffohpoz6nyoxpgno2hmxz455rycw4o2hrat3yg3u"),
"datacap": MustParseCid("todo"),
},
}, {
Network: "testing",
Expand Down Expand Up @@ -209,6 +214,7 @@ var EmbeddedBuiltinActorsMetadata []*BuiltinActorsMetadata = []*BuiltinActorsMet
"storagepower": MustParseCid("bafk2bzaceasmr5xc3c7jgihqcb5pdv557kfor72wlmzmh4syvedknelebhsve"),
"system": MustParseCid("bafk2bzaceabj3whuno364pjqn7sphwquiqpl2w5le6aa6quwytgyxshvelcwq"),
"verifiedregistry": MustParseCid("bafk2bzaceamn6gzihkytyqym4dqs7wqmo2fz6kpge4tphumvutsp2ys4bwaha"),
"datacap": MustParseCid("todo"),
},
}, {
Network: "testing-fake-proofs",
Expand Down Expand Up @@ -243,5 +249,6 @@ var EmbeddedBuiltinActorsMetadata []*BuiltinActorsMetadata = []*BuiltinActorsMet
"storagepower": MustParseCid("bafk2bzaceaoteuuvld3bzy3t3kzjp5iabgkvxjc5cxq2ziwankpxqqixkqqjw"),
"system": MustParseCid("bafk2bzaceabj3whuno364pjqn7sphwquiqpl2w5le6aa6quwytgyxshvelcwq"),
"verifiedregistry": MustParseCid("bafk2bzaceamn6gzihkytyqym4dqs7wqmo2fz6kpge4tphumvutsp2ys4bwaha"),
"datacap": MustParseCid("todo"),
},
}}
2 changes: 1 addition & 1 deletion build/builtin_actors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestRegistration(t *testing.T) {
require.True(t, found)
require.True(t, manifestCid.Defined())

for _, key := range actors.GetBuiltinActorsKeys() {
for _, key := range actors.GetBuiltinActorsKeys(actorstypes.Version8) {
actorCid, found := actors.GetActorCodeID(actorstypes.Version8, key)
require.True(t, found)
name, version, found := actors.GetActorMetaByCode(actorCid)
Expand Down
2 changes: 1 addition & 1 deletion chain/actors/actor_cids.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func GetActorCodeIDs(av actorstypes.Version) (map[string]cid.Cid, error) {
return cids, nil
}

actorsKeys := GetBuiltinActorsKeys()
actorsKeys := GetBuiltinActorsKeys(av)
synthCids := make(map[string]cid.Cid)

for _, key := range actorsKeys {
Expand Down
18 changes: 13 additions & 5 deletions chain/actors/builtin/account/account.go
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
package account

import (
actorstypes "github.com/filecoin-project/go-state-types/actors"
"github.com/filecoin-project/lotus/chain/actors"
"golang.org/x/xerrors"

"github.com/filecoin-project/go-address"
actorstypes "github.com/filecoin-project/go-state-types/actors"
builtin9 "github.com/filecoin-project/go-state-types/builtin"
"github.com/filecoin-project/go-state-types/cbor"

"github.com/filecoin-project/lotus/chain/actors/adt"
"github.com/filecoin-project/lotus/chain/types"

builtin0 "github.com/filecoin-project/specs-actors/actors/builtin"

builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"

builtin3 "github.com/filecoin-project/specs-actors/v3/actors/builtin"

builtin4 "github.com/filecoin-project/specs-actors/v4/actors/builtin"

builtin5 "github.com/filecoin-project/specs-actors/v5/actors/builtin"

builtin6 "github.com/filecoin-project/specs-actors/v6/actors/builtin"

builtin7 "github.com/filecoin-project/specs-actors/v7/actors/builtin"

"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/actors/adt"
"github.com/filecoin-project/lotus/chain/types"
builtin9 "github.com/filecoin-project/go-state-types/builtin"
)

var Methods = builtin9.MethodsAccount
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v0.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account0 "github.com/filecoin-project/specs-actors/actors/builtin/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account0 "github.com/filecoin-project/specs-actors/actors/builtin/account"
)

var _ State = (*state0)(nil)
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v2.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account2 "github.com/filecoin-project/specs-actors/v2/actors/builtin/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account2 "github.com/filecoin-project/specs-actors/v2/actors/builtin/account"
)

var _ State = (*state2)(nil)
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v3.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account3 "github.com/filecoin-project/specs-actors/v3/actors/builtin/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account3 "github.com/filecoin-project/specs-actors/v3/actors/builtin/account"
)

var _ State = (*state3)(nil)
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v4.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account4 "github.com/filecoin-project/specs-actors/v4/actors/builtin/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account4 "github.com/filecoin-project/specs-actors/v4/actors/builtin/account"
)

var _ State = (*state4)(nil)
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v5.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account5 "github.com/filecoin-project/specs-actors/v5/actors/builtin/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account5 "github.com/filecoin-project/specs-actors/v5/actors/builtin/account"
)

var _ State = (*state5)(nil)
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v6.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/account"
)

var _ State = (*state6)(nil)
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v7.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account7 "github.com/filecoin-project/specs-actors/v7/actors/builtin/account"
)

var _ State = (*state7)(nil)
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v8.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account8 "github.com/filecoin-project/go-state-types/builtin/v8/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account8 "github.com/filecoin-project/go-state-types/builtin/v8/account"
)

var _ State = (*state8)(nil)
Expand Down
6 changes: 3 additions & 3 deletions chain/actors/builtin/account/v9.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package account

import (
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
account9 "github.com/filecoin-project/go-state-types/builtin/v9/account"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/lotus/chain/actors/adt"

account9 "github.com/filecoin-project/go-state-types/builtin/v9/account"
)

var _ State = (*state9)(nil)
Expand Down
20 changes: 14 additions & 6 deletions chain/actors/builtin/builtin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,31 @@ package builtin
import (
"fmt"

"github.com/filecoin-project/go-address"
"github.com/ipfs/go-cid"

"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/builtin"
smoothingtypes "github.com/filecoin-project/go-state-types/builtin/v8/util/smoothing"
minertypes "github.com/filecoin-project/go-state-types/builtin/v9/miner"
"github.com/filecoin-project/go-state-types/proof"
builtin0 "github.com/filecoin-project/specs-actors/actors/builtin"

builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"

builtin3 "github.com/filecoin-project/specs-actors/v3/actors/builtin"

builtin4 "github.com/filecoin-project/specs-actors/v4/actors/builtin"

builtin5 "github.com/filecoin-project/specs-actors/v5/actors/builtin"

builtin6 "github.com/filecoin-project/specs-actors/v6/actors/builtin"

builtin7 "github.com/filecoin-project/specs-actors/v7/actors/builtin"

"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/builtin"
"github.com/filecoin-project/go-state-types/proof"

"github.com/filecoin-project/lotus/chain/actors"

smoothingtypes "github.com/filecoin-project/go-state-types/builtin/v8/util/smoothing"
minertypes "github.com/filecoin-project/go-state-types/builtin/v9/miner"
)

var SystemActorAddr = builtin.SystemActorAddr
Expand Down
16 changes: 11 additions & 5 deletions chain/actors/builtin/cron/cron.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
package cron

import (
actorstypes "github.com/filecoin-project/go-state-types/actors"
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/actors/adt"
"github.com/filecoin-project/lotus/chain/types"
"golang.org/x/xerrors"

actorstypes "github.com/filecoin-project/go-state-types/actors"
builtin9 "github.com/filecoin-project/go-state-types/builtin"
builtin0 "github.com/filecoin-project/specs-actors/actors/builtin"

builtin2 "github.com/filecoin-project/specs-actors/v2/actors/builtin"

builtin3 "github.com/filecoin-project/specs-actors/v3/actors/builtin"

builtin4 "github.com/filecoin-project/specs-actors/v4/actors/builtin"

builtin5 "github.com/filecoin-project/specs-actors/v5/actors/builtin"

builtin6 "github.com/filecoin-project/specs-actors/v6/actors/builtin"

builtin7 "github.com/filecoin-project/specs-actors/v7/actors/builtin"

"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/actors/adt"
"github.com/filecoin-project/lotus/chain/types"
builtin9 "github.com/filecoin-project/go-state-types/builtin"
)

func Load(store adt.Store, act *types.Actor) (State, error) {
Expand Down
Loading

0 comments on commit 12bbdc3

Please sign in to comment.