wasm

package
v0.0.0-...-640f24c Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: LGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WasmStateMachine

type WasmStateMachine struct {
	*WasmStateReader

	CloneCache *storage.CloneCache
	// contains filtered or unexported fields
}

func NewWasmStateMachine

func NewWasmStateMachine(ldgerStore store.LedgerStore, dbCache scommon.StateStore, trigger vmtypes.TriggerType, time uint32) *WasmStateMachine

func (*WasmStateMachine) GetContractCodeFromAddress

func (s *WasmStateMachine) GetContractCodeFromAddress(address common.Address) ([]byte, error)

type WasmStateReader

type WasmStateReader struct {
	Notifications []*event.NotifyEventInfo
	// contains filtered or unexported fields
}

func NewWasmStateReader

func NewWasmStateReader(ldgerStore store.LedgerStore, trigger trigger.TriggerType) *WasmStateReader

func (*WasmStateReader) Exists

func (i *WasmStateReader) Exists(name string) bool

func (*WasmStateReader) GetServiceMap

func (i *WasmStateReader) GetServiceMap() map[string]func(*exec.ExecutionEngine) (bool, error)

func (*WasmStateReader) Getblockheight

func (i *WasmStateReader) Getblockheight(engine *exec.ExecutionEngine) (bool, error)

func (*WasmStateReader) Invoke

func (i *WasmStateReader) Invoke(methodName string, engine *exec.ExecutionEngine) (bool, error)

func (*WasmStateReader) MergeMap

func (i *WasmStateReader) MergeMap(mMap map[string]func(*exec.ExecutionEngine) (bool, error)) bool

func (*WasmStateReader) Register

func (i *WasmStateReader) Register(name string, handler func(*exec.ExecutionEngine) (bool, error)) bool

func (*WasmStateReader) RuntimeNotify

func (i *WasmStateReader) RuntimeNotify(engine *exec.ExecutionEngine) (bool, error)

Jump to

Keyboard shortcuts

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