lotus/chain/vm/vmi.go

15 lines
336 B
Go
Raw Normal View History

2021-12-17 03:38:13 +00:00
package vm
import (
"context"
"github.com/filecoin-project/lotus/chain/types"
"github.com/ipfs/go-cid"
)
type VMI interface {
ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet, error)
ApplyImplicitMessage(ctx context.Context, msg *types.Message) (*ApplyRet, error)
Flush(ctx context.Context) (cid.Cid, error)
}