Documentation
¶
Index ¶
Constants ¶
View Source
const ( CallTypeCall = CallType(0x00) CallTypeCode = CallType(0x01) CallTypeDelegate = CallType(0x02) CallTypeStatic = CallType(0x03) CallTypeSNative = CallType(0x04) )
View Source
const LogNKeyPrefix = "Log"
View Source
const (
TransferTypeCall = TransferType(0x00)
)
Variables ¶
View Source
var TransferTypeFromName = make(map[string]TransferType)
Functions ¶
func LogNTextKey ¶
Types ¶
type CallData ¶
type CallEvent ¶
type CallEvent struct { CallType CallType `json:"CallType,omitempty"` CallData *CallData `json:"CallData,omitempty"` Origin crypto2.Address `json:"Origin"` StackDepth uint64 `json:"StackDepth,omitempty"` Return binary.HexBytes `json:"Return"` }
func (*CallEvent) GetCallData ¶
func (*CallEvent) GetCallType ¶
func (*CallEvent) GetStackDepth ¶
type CallType ¶
type CallType uint32
func CallTypeFromString ¶
func (CallType) MarshalText ¶
func (*CallType) UnmarshalText ¶
type EventType ¶
type EventType uint32
const ( TypeUnknown EventType = iota TypeCall TypeLog TypeAccountInput TypeAccountOutput TypeTxExecution TypeBlockExecution TypeGovernAccount TypeBeginBlock TypeBeginTx TypeEnvelope TypeEndTx TypeEndBlock )
Execution event types
func EventTypeFromString ¶
func (EventType) MarshalText ¶
func (*EventType) UnmarshalText ¶
type LogEvent ¶
type TaggedEvents ¶
type TaggedEvents []*TaggedEvent
func (TaggedEvents) Filter ¶
func (tes TaggedEvents) Filter(qry query.Query) TaggedEvents
type TransferData ¶
type TransferData struct { Token crypto2.Address `json:"token"` // Token types.Address From crypto2.Address `json:"from"` // Account address of Sender To crypto2.Address `json:"to"` // Account address of Receiver Value bn.Number `json:"value"` // Transfer value Note string `json:"note,omitempty"` // Transfer note }
func (*TransferData) GetNote ¶
func (m *TransferData) GetNote() string
func (*TransferData) GetValue ¶
func (m *TransferData) GetValue() bn.Number
func (*TransferData) String ¶
func (m *TransferData) String() string
type TransferEvent ¶
type TransferEvent struct {
TransferData *TransferData `json:"TransferData,omitempty"`
}
func (*TransferEvent) GetTransferData ¶
func (m *TransferEvent) GetTransferData() *TransferData
func (*TransferEvent) String ¶
func (m *TransferEvent) String() string
type TransferType ¶
type TransferType uint32
func TransferTypeFromString ¶
func TransferTypeFromString(name string) TransferType
func (TransferType) MarshalText ¶
func (tt TransferType) MarshalText() ([]byte, error)
func (TransferType) String ¶
func (tt TransferType) String() string
func (*TransferType) UnmarshalText ¶
func (tt *TransferType) UnmarshalText(data []byte) error
Click to show internal directories.
Click to hide internal directories.