Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExactMatch ¶ added in v0.23.1
func ExactMatch(log *gethTypes.Log, criteria *FilterCriteria) bool
ExactMatch checks the topic and address values of the log match the filter exactly.
Types ¶
type FilterCriteria ¶
FilterCriteria for log filtering. Address of the contract emitting the log. Topics that match the log topics, following the format: [] “anything” [A] “A in first position (and anything after)” [null, B] “anything in first position AND B in second position (and anything after)” [A, B] “A in first position AND B in second position (and anything after)” [[A, B], [A, B]] “(A OR B) in first position AND (A OR B) in second position (and anything after)”
func NewFilterCriteria ¶ added in v0.11.0
type IDFilter ¶
type IDFilter struct {
// contains filtered or unexported fields
}
IDFilter matches all logs against the criteria found in a single block identified by the provided block ID.
func NewIDFilter ¶
func NewIDFilter( id common.Hash, criteria FilterCriteria, blocks storage.BlockIndexer, receipts storage.ReceiptIndexer, ) (*IDFilter, error)
type RangeFilter ¶
type RangeFilter struct {
// contains filtered or unexported fields
}
RangeFilter matches all the indexed logs within the range defined as start and end block height. The start must be strictly smaller or equal than end value.
func NewRangeFilter ¶
func NewRangeFilter( start, end uint64, criteria FilterCriteria, receipts storage.ReceiptIndexer, ) (*RangeFilter, error)