Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { Address string // Address of the contract Network string // Network on which the contract is deployed; default empty "" is Ethereum mainnet StartingBlock int64 // Starting block of the contract Abi string // Abi string ParsedAbi abi.ABI // Parsed abi Events map[string]types.Event // List of events to watch FilterArgs map[string]bool // User-input list of values to filter event logs for }
Contract object to hold our contract data
func (*Contract) PassesEventFilter ¶
PassesEventFilter returns true if any mapping value matches filtered for address or if no filter exists Used to check if an event log name-value mapping should be filtered or not
func (*Contract) WantedEventArg ¶
WantedEventArg returns true if address is in list of arguments to filter events for or if no filtering is specified
Click to show internal directories.
Click to hide internal directories.