handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_BLOCK_RANGE int64 = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFetcher

type EventFetcher interface {
	FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, startBlock *big.Int, endBlock *big.Int) ([]types.Log, error)
}

type HashiDomainCollector

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

func NewHashiDomainCollector

func NewHashiDomainCollector(
	domainID uint8,
	yahoAddress common.Address,
	eventFetcher EventFetcher,
	domains []uint8,
) *HashiDomainCollector

func (*HashiDomainCollector) CollectDomains

func (h *HashiDomainCollector) CollectDomains(startBlock *big.Int, endBlock *big.Int) ([]uint8, error)

Jump to

Keyboard shortcuts

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