event

package
v0.0.0-...-54ab005 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EVENT_LOG    = "Log"
	EVENT_NOTIFY = "Notify"
)
View Source
const (
	CONTRACT_STATE_FAIL    byte = 0
	CONTRACT_STATE_SUCCESS byte = 1
)

Variables

This section is empty.

Functions

func PushSmartCodeEvent

func PushSmartCodeEvent(txHash common.Uint256, errcode int64, action string, result interface{})

PushSmartCodeEvent push event content to socket.io

Types

type ExecuteNotify

type ExecuteNotify struct {
	TxHash      common.Uint256
	State       byte
	GasConsumed uint64
	Notify      []*NotifyEventInfo
}

type LogEventArgs

type LogEventArgs struct {
	TxHash          common.Uint256
	ContractAddress common.Address
	Message         string
}

LogEventArgs describe smart contract event log struct

type NotifyEventInfo

type NotifyEventInfo struct {
	ContractAddress common.Address
	States          interface{}
}

NotifyEventInfo describe smart contract event notify info struct

Jump to

Keyboard shortcuts

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