getlogs

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithChainDB

func WithChainDB(chainDB chaindb.Service) Parameter

WithChainDB sets the chain database service for this module.

func WithConnectionURL

func WithConnectionURL(url string) Parameter

WithConnectionURL sets the Ethereum 1 connection URL service for this module.

func WithETH1Confirmations

func WithETH1Confirmations(confirmations uint64) Parameter

WithETH1Confirmations sets the number of confirmations we wait for before processing.

func WithETH1DepositsSetter

func WithETH1DepositsSetter(setter chaindb.ETH1DepositsSetter) Parameter

WithETH1DepositsSetter sets the Ethereum 1 deposits setter for this module.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithMonitor

func WithMonitor(monitor metrics.Service) Parameter

WithMonitor sets the monitor for the module.

func WithStartBlock

func WithStartBlock(block string) Parameter

WithStartBlock sets the start block for this module.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is an Ethereum 1 deposits service that fetches deposits through fetching logs.

func New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new Ethereum 1 deposit service.

Jump to

Keyboard shortcuts

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