listener

package
v0.0.0-...-c9321c3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GoerliPostageStampContractAddress = common.HexToAddress("0x9b2A60d9263D1b2FE9Fe8C160ab14BcbdeFd5dcC")
	GoerliStartBlock                  = uint64(0)
)

Functions

func DiscoverAddresses

func DiscoverAddresses(chainID int64) (postageStamp common.Address, startBlock uint64, found bool)

DiscoverAddresses returns the canonical contracts for this chainID

func New

func New(
	logger logging.Logger,
	ev BlockHeightContractFilterer,
	postageStampAddress common.Address,
	blockTime uint64,
	shutdowner Shutdowner,
) postage.Listener

Types

type BlockHeightContractFilterer

type BlockHeightContractFilterer interface {
	bind.ContractFilterer
	BlockNumber(context.Context) (uint64, error)
}

type Shutdowner

type Shutdowner interface {
	Shutdown(context.Context) error
}

Shutdowner interface is passed to the listener to shutdown the node if we hit error while listening for blockchain events.

Jump to

Keyboard shortcuts

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