Add compile-time checks that actors interfaces are correctly implemented

This commit is contained in:
Aayush Rajasekaran 2020-09-21 02:19:32 -04:00
parent a95e34f742
commit b355eb75eb
9 changed files with 18 additions and 0 deletions

View File

@ -6,6 +6,8 @@ import (
"github.com/filecoin-project/specs-actors/actors/builtin/account"
)
var _ State = (*state0)(nil)
type state0 struct {
account.State
store adt.Store

View File

@ -13,6 +13,8 @@ import (
adt0 "github.com/filecoin-project/specs-actors/actors/util/adt"
)
var _ State = (*state0)(nil)
type state0 struct {
init_.State
store adt.Store

View File

@ -12,6 +12,8 @@ import (
cbg "github.com/whyrusleeping/cbor-gen"
)
var _ State = (*state0)(nil)
type state0 struct {
market.State
store adt.Store

View File

@ -17,6 +17,8 @@ import (
miner0 "github.com/filecoin-project/specs-actors/actors/builtin/miner"
)
var _ State = (*state0)(nil)
type state0 struct {
miner0.State
store adt.Store

View File

@ -6,6 +6,8 @@ import (
"github.com/filecoin-project/specs-actors/actors/builtin/multisig"
)
var _ State = (*state0)(nil)
type state0 struct {
multisig.State
store adt.Store

View File

@ -9,6 +9,8 @@ import (
adt0 "github.com/filecoin-project/specs-actors/actors/util/adt"
)
var _ State = (*state0)(nil)
type state0 struct {
paych.State
store adt.Store

View File

@ -8,6 +8,8 @@ import (
"github.com/filecoin-project/specs-actors/actors/util/adt"
)
var _ State = (*state0)(nil)
type state0 struct {
power0.State
store adt.Store

View File

@ -9,6 +9,8 @@ import (
"github.com/filecoin-project/specs-actors/actors/util/smoothing"
)
var _ State = (*state0)(nil)
type state0 struct {
reward.State
store adt.Store

View File

@ -11,6 +11,8 @@ import (
"github.com/filecoin-project/lotus/chain/actors/adt"
)
var _ State = (*state0)(nil)
type state0 struct {
verifreg0.State
store adt.Store