lotus/chain/vm/vmi.go
Aayush Rajasekaran 2a669b95fb :Hook up the FVM
2022-02-04 12:46:15 -08:00

15 lines
336 B
Go

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)
}