vm

package
v1.3.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0, MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultActors = register.DefaultActors

DefaultActors is a code loader with the built-in actors that come with the system.

Functions

This section is empty.

Types

type ActorCodeLoader

type ActorCodeLoader = dispatch.CodeLoader

ActorCodeLoader allows yo to load an actor's code based on its id an epoch.

type ActorMethodSignature

type ActorMethodSignature = dispatch.MethodSignature

ActorMethodSignature wraps a specific method and allows you to encode/decodes input/output bytes into concrete types.

type ChainRandomness added in v1.1.0

type ChainRandomness = vmcontext.HeadChainRandomness

type ExecCallBack

type ExecCallBack = vmcontext.ExecCallBack

type FVM

type FVM struct {
	// contains filtered or unexported fields
}

func NewFVM

func NewFVM(ctx context.Context, opts *VmOption) (*FVM, error)

func (*FVM) ApplyImplicitMessage

func (fvm *FVM) ApplyImplicitMessage(ctx context.Context, cmsg types.ChainMsg) (*Ret, error)

func (*FVM) ApplyMessage

func (fvm *FVM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*Ret, error)

func (*FVM) Flush

func (fvm *FVM) Flush(ctx context.Context) (cid.Cid, error)

type FakeSyscalls

type FakeSyscalls = vmcontext.FakeSyscalls

type FvmExtern

type FvmExtern struct {
	Rand
	blockstoreutil.Blockstore
	// contains filtered or unexported fields
}

func (*FvmExtern) VerifyBlockSig

func (x *FvmExtern) VerifyBlockSig(ctx context.Context, blk *types.BlockHeader) (int64, error)

func (*FvmExtern) VerifyConsensusFault

func (x *FvmExtern) VerifyConsensusFault(ctx context.Context, a, b, extra []byte) (*ffi_cgo.ConsensusFault, int64)

VerifyConsensusFault is similar to the one in syscalls.go used by the LegacyVM, except it never errors Errors are logged and "no fault" is returned, which is functionally what go-actors does anyway

type ILookBack added in v1.1.2

type ILookBack = vmcontext.ILookBack

type Interface added in v1.6.0

type Interface = vmcontext.Interface // nolint

func NewVM

func NewVM(ctx context.Context, option VmOption) (Interface, error)

type Interpreter

type Interpreter = vmcontext.VMInterpreter

Interpreter is the LegacyVM.

func NewLegacyVM added in v1.6.0

func NewLegacyVM(ctx context.Context, option VmOption) (Interpreter, error)

NewLegacyVM creates a new LegacyVM interpreter.

type LookbackStateGetter added in v1.1.2

type LookbackStateGetter = vmcontext.LookbackStateGetter

type Rand

type Rand interface {
	GetChainRandomness(ctx context.Context, pers acrypto.DomainSeparationTag, round abi.ChainEpoch, entropy []byte) ([]byte, error)
	GetBeaconRandomness(ctx context.Context, pers acrypto.DomainSeparationTag, round abi.ChainEpoch, entropy []byte) ([]byte, error)
}

type Ret

type Ret = vmcontext.Ret

type SyscallsImpl

type SyscallsImpl = vmcontext.SyscallsImpl

type SyscallsStateView

type SyscallsStateView = vmcontext.SyscallsStateView

type VmMessage

type VmMessage = vmcontext.VmMessage //nolint

type VmOption

type VmOption = vmcontext.VmOption //nolint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL