event

package
v1.6.0-rc Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: LGPL-3.0 Imports: 5 Imported by: 100

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 NotifyEventArgs

type NotifyEventArgs struct {
	ContractAddress common.Address
	States          types.StackItems
}

NotifyEventArgs describe smart contract event notify arguments 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