event

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: LGPL-3.0 Imports: 8 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 NotifyEventInfoToEvmLog added in v1.14.1

func NotifyEventInfoToEvmLog(info *NotifyEventInfo) (*types.StorageLog, error)

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 // in GWei
	Notify      []*NotifyEventInfo

	GasStepUsed     uint64
	TxIndex         uint32
	CreatedContract common.Address
}

func ExecuteNotifyFromEthReceipt added in v1.14.1

func ExecuteNotifyFromEthReceipt(receipt *types.Receipt) *ExecuteNotify

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{}

	IsEvm bool
}

NotifyEventInfo describe smart contract event notify info struct

func NotifyEventInfoFromEvmLog added in v1.14.1

func NotifyEventInfoFromEvmLog(log *types.StorageLog) *NotifyEventInfo

Jump to

Keyboard shortcuts

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