wxvm

package module
v2.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstancesManager

type InstancesManager struct {
}

func (*InstancesManager) AfterSchedule added in v2.3.0

func (*InstancesManager) AfterSchedule(blockFingerprint string, blockHeight uint64)

func (*InstancesManager) BeforeSchedule added in v2.3.0

func (*InstancesManager) BeforeSchedule(blockFingerprint string, blockHeight uint64)

func (*InstancesManager) NewRuntimeInstance

func (*InstancesManager) NewRuntimeInstance(txSimContext protocol.TxSimContext, chainId, method, codePath string,
	contract *commonPb.Contract, byteCode []byte, log protocol.Logger) (protocol.RuntimeInstance, error)

func (*InstancesManager) StartVM added in v2.1.1

func (*InstancesManager) StartVM() error

func (*InstancesManager) StopVM added in v2.1.1

func (*InstancesManager) StopVM() error

type RuntimeInstance

type RuntimeInstance struct {
	ChainId     string
	CodeManager *xvm.CodeManager
	CtxService  *xvm.ContextService
	Log         protocol.Logger
}

func (*RuntimeInstance) Invoke

func (r *RuntimeInstance) Invoke(contract *commonPb.Contract, method string, byteCode []byte,
	parameters map[string][]byte, txContext protocol.TxSimContext, gasUsed uint64) (
	contractResult *commonPb.ContractResult, specialTxType protocol.ExecOrderTxType)

Invoke contract by call vm, implement protocol.RuntimeInstance

Directories

Path Synopsis
xvm
exec
Package pointer exchange pointer between cgo and go
Package pointer exchange pointer between cgo and go

Jump to

Keyboard shortcuts

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