discoverer

package
v0.0.0-...-0ff5682 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

type Discoverer interface {
	ShouldDiscover(tx state.Tx, startingBlock, lastBlock uint64) (bool, error)
	GetContracts(tx state.Tx) ([]string, error)
	DiscoverContracts(ctx context.Context, tx state.Tx, startingBlock, lastBlock uint64) (map[common.Address]uint64, error)
}

func New

func New(
	client blockchain.EthClient,
	contracts []string,
	scanner scan.Scanner,
	validator uValidator.Validator,
) Discoverer

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.
mock
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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