Categorygithub.com/0xPolygon/eth-event-tracker
modulepackage
0.0.0-20230518075824-867a7460a4f9
Repository: https://github.com/0xpolygon/eth-event-tracker.git
Documentation: pkg.go.dev

# README

Eth-event-tracker

Usage

TODO

CLI

Query the Ethereum 2.0 deposit contract:

go run cli/event-tracker/main.go --endpoint https://mainnet.infura.io/v3/... --start-block 11052984 --target 0x00000000219ab540356cbb839cbe05303d7705fa --storage my.db

# Packages

No description provided by the author
No description provided by the author

# Functions

DefaultConfig returns the default tracker config.
NewInmemStore returns a new in-memory store.
NewTracker creates a new tracker.
TestStore tests a tracker store.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

EventAdd happens when a new event is included in the chain.
EventDel may happen when there is a reorg and a past event is deleted.

# Structs

BlockEvent is an event emitted when a new block is included.
Config is the configuration of the tracker.
Event is an event emitted when a new log is included.
FilterConfig is a tracker filter configuration.
Tracker is a contract event tracker.

# Interfaces

Entry
Entry is a filter entry in the store.
Provider are the eth1x methods required by the tracker.

# Type aliases

No description provided by the author
EventType is the type of the event (TODO: REMOVE).
SetupDB is a function that creates a backend.