blockcounter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumBlockCounter

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

func CreateBlockCounter

func CreateBlockCounter(client *ethclient.Client) (*EthereumBlockCounter, error)

func (*EthereumBlockCounter) BlockHeightWaiter

func (ebc *EthereumBlockCounter) BlockHeightWaiter(
	blockNumber uint64,
) (<-chan uint64, error)

func (*EthereumBlockCounter) CurrentBlock

func (ebc *EthereumBlockCounter) CurrentBlock() (uint64, error)

func (*EthereumBlockCounter) WaitForBlockHeight

func (ebc *EthereumBlockCounter) WaitForBlockHeight(blockNumber uint64) error

func (*EthereumBlockCounter) WatchBlocks

func (ebc *EthereumBlockCounter) WatchBlocks(ctx context.Context) <-chan uint64

Jump to

Keyboard shortcuts

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