logs

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

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)

func (*IDFilter) Match

func (i *IDFilter) Match() ([]*gethTypes.Log, 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)

func (*RangeFilter) Match

func (r *RangeFilter) Match() ([]*gethTypes.Log, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL