Documentation ¶
Index ¶
- Constants
- func FilterContractEvents(events []types.Event, eventName, eventValue string) ([]types.Event, error)
- func GetContractEventsFromResultTx(contractAddr common.Address, result *ctypes.ResultTx) ([]types.Event, error)
- func MakeEntryBytes(name, value string) ([]byte, error)
- func MakeEventSearchQuery(contractAddr common.Address, eventName, eventValue string) (string, error)
- func MakeTMEvent(contractAddr common.Address, es []*Entry) (*types.Event, error)
- func MakeTMEvents(evs []*Event) (types.Events, error)
- type Entry
- type Event
Constants ¶
View Source
const ( EventKey = "event" EventDataKey = EventKey + ".data" EventNameKey = EventKey + ".name" AddressKey = "address" ContractKey = "contract" ContractAddressKey = ContractKey + "." + AddressKey ContractEventDataKey = ContractKey + "." + EventDataKey ContractEventNameKey = ContractKey + "." + EventNameKey )
Variables ¶
This section is empty.
Functions ¶
func FilterContractEvents ¶
func FilterContractEvents(events []types.Event, eventName, eventValue string) ([]types.Event, error)
FilterContractEvents returns events that includes a given event name and value. (value is optional)
func GetContractEventsFromResultTx ¶
func GetContractEventsFromResultTx(contractAddr common.Address, result *ctypes.ResultTx) ([]types.Event, error)
GetContractEventsFromResultTx returns events that matches a given contract address from ResultTx.
func MakeEntryBytes ¶
func MakeEventSearchQuery ¶
func MakeEventSearchQuery(contractAddr common.Address, eventName, eventValue string) (string, error)
MakeEventSearchQuery returns a query for searching events on transaction contractAddr: target contract address eventName: event name eventValue: value corresponding to event name. NOTE: if value has a prefix "0x", value will be decoded into []byte
Types ¶
type Entry ¶
func ParseEntry ¶
Click to show internal directories.
Click to hide internal directories.