Documentation
¶
Index ¶
- type EthereumBlockCounter
- func (ebc *EthereumBlockCounter) BlockHeightWaiter(blockNumber uint64) (<-chan uint64, error)
- func (ebc *EthereumBlockCounter) CurrentBlock() (uint64, error)
- func (ebc *EthereumBlockCounter) WaitForBlockHeight(blockNumber uint64) error
- func (ebc *EthereumBlockCounter) WatchBlocks(ctx context.Context) <-chan uint64
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
Click to show internal directories.
Click to hide internal directories.