Documentation
¶
Index ¶
Constants ¶
View Source
const LogQueryLimit = 1000
Variables ¶
This section is empty.
Functions ¶
func ExactMatch ¶ added in v0.23.1
func ExactMatch(log *gethTypes.Log, criteria filters.FilterCriteria) bool
ExactMatch checks the topic and address values of the log match the filter exactly.
func ValidCriteriaLimits ¶ added in v1.3.6
func ValidCriteriaLimits(criteria filters.FilterCriteria) bool
Types ¶
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( criteria filters.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 filters.FilterCriteria, receipts storage.ReceiptIndexer, ) (*RangeFilter, error)
Click to show internal directories.
Click to hide internal directories.