ctypes

package
v0.0.0-...-24e5678 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTagTxMsg       = EventType(0x00)
	EventTagReward      = EventType(0x01)
	EventTagCallHistory = EventType(0x02)
	EventTagTxFee       = EventType(0x03)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Index  uint16
	Type   EventType
	Result []byte
}

func NewEvent

func NewEvent(Index uint16, Type EventType, result []byte) *Event

func (*Event) ReadFrom

func (s *Event) ReadFrom(r io.Reader) (int64, error)

func (*Event) WriteTo

func (s *Event) WriteTo(w io.Writer) (int64, error)

type EventType

type EventType uint8

func (EventType) String

func (e EventType) String() string

type MethodCallEvent

type MethodCallEvent struct {
	From   common.Address
	To     common.Address
	Method string
	Args   []interface{}
	Result []interface{}
	Error  string
}

func (*MethodCallEvent) ReadFrom

func (s *MethodCallEvent) ReadFrom(r io.Reader) (int64, error)

func (*MethodCallEvent) WriteTo

func (s *MethodCallEvent) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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