event

package
v1.0.3-rc Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: LGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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