Documentation ¶
Index ¶
- type WasmStateMachine
- type WasmStateReader
- func (i *WasmStateReader) Exists(name string) bool
- func (i *WasmStateReader) GetServiceMap() map[string]func(*exec.ExecutionEngine) (bool, error)
- func (i *WasmStateReader) Getblockheight(engine *exec.ExecutionEngine) (bool, error)
- func (i *WasmStateReader) Invoke(methodName string, engine *exec.ExecutionEngine) (bool, error)
- func (i *WasmStateReader) MergeMap(mMap map[string]func(*exec.ExecutionEngine) (bool, error)) bool
- func (i *WasmStateReader) Register(name string, handler func(*exec.ExecutionEngine) (bool, error)) bool
- func (i *WasmStateReader) RuntimeNotify(engine *exec.ExecutionEngine) (bool, error)
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)
Click to show internal directories.
Click to hide internal directories.