vm

package
v0.26.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: LGPL-3.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnexpectedTx = errors.New("unexpected tx type")
)

Functions

This section is empty.

Types

type VM

type VM interface {
	Run(tx *types.Transaction, gasLimit int64) *types.TxReceipt
	Read(contractAddr common.Address, method string, args ...[]byte) ([]byte, error)
}

func NewVmImpl

func NewVmImpl(appState *appstate.AppState, block *types.Header, store *secstore.SecStore, statsCollector collector.StatsCollector, cfg *config.Config) VM

type VmCreator added in v0.25.0

type VmCreator = func(appState *appstate.AppState, block *types.Header, store *secstore.SecStore, statsCollector collector.StatsCollector, cfg *config.Config) VM

type VmImpl

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

func (*VmImpl) Read

func (vm *VmImpl) Read(contractAddr common.Address, method string, args ...[]byte) ([]byte, error)

func (*VmImpl) Run

func (vm *VmImpl) Run(tx *types.Transaction, gasLimit int64) *types.TxReceipt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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