executor

package
v1.66.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName

func GetName() string

GetName 获取执行器别名

func Init

func Init(name string, cfg *types.Chain33Config, sub []byte)

Types

type Resolver

type Resolver struct{}

Resolver defines imports for WebAssembly modules ran in Life.

func (*Resolver) ResolveFunc

func (r *Resolver) ResolveFunc(module, field string) exec.FunctionImport

ResolveFunc defines a set of import functions that may be called within a WebAssembly module.

func (*Resolver) ResolveGlobal

func (r *Resolver) ResolveGlobal(module, field string) int64

ResolveGlobal defines a set of global variables for use within a WebAssembly module.

type Wasm

type Wasm struct {
	drivers.DriverBase

	VMCache map[string]*exec.VirtualMachine
	ENV     map[int]string
	// contains filtered or unexported fields
}

func (*Wasm) ExecDelLocal_Call

func (w *Wasm) ExecDelLocal_Call(payload *types2.WasmCall, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

func (*Wasm) ExecDelLocal_Create

func (w *Wasm) ExecDelLocal_Create(payload *types2.WasmCreate, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

func (*Wasm) ExecDelLocal_Update added in v1.65.3

func (w *Wasm) ExecDelLocal_Update(payload *types2.WasmUpdate, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

func (*Wasm) ExecLocal_Call

func (w *Wasm) ExecLocal_Call(payload *types2.WasmCall, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

func (*Wasm) ExecLocal_Create

func (w *Wasm) ExecLocal_Create(payload *types2.WasmCreate, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

func (*Wasm) ExecLocal_Update added in v1.65.3

func (w *Wasm) ExecLocal_Update(payload *types2.WasmUpdate, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

func (*Wasm) Exec_Call

func (w *Wasm) Exec_Call(payload *types2.WasmCall, tx *types.Transaction, index int) (*types.Receipt, error)

func (*Wasm) Exec_Create

func (w *Wasm) Exec_Create(payload *types2.WasmCreate, tx *types.Transaction, index int) (*types.Receipt, error)

func (*Wasm) Exec_Update added in v1.65.3

func (w *Wasm) Exec_Update(payload *types2.WasmUpdate, tx *types.Transaction, index int) (*types.Receipt, error)

func (*Wasm) ExecutorOrder

func (w *Wasm) ExecutorOrder() int64

func (*Wasm) GetDriverName

func (w *Wasm) GetDriverName() string

func (*Wasm) Query_Check

func (w *Wasm) Query_Check(query *types2.QueryCheckContract) (types.Message, error)

func (*Wasm) Query_QueryLocalDB added in v1.65.3

func (w *Wasm) Query_QueryLocalDB(query *types2.QueryContractDB) (types.Message, error)

func (*Wasm) Query_QueryStateDB added in v1.65.3

func (w *Wasm) Query_QueryStateDB(query *types2.QueryContractDB) (types.Message, error)

Jump to

Keyboard shortcuts

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