monitor

package
v2.8.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproximateFloat64

func ApproximateFloat64(e *assets.Eth) (float64, error)

func NewBalanceMonitor

func NewBalanceMonitor(ethClient evmclient.Client, ethKeyStore keystore.Eth, lggr logger.Logger) *balanceMonitor

NewBalanceMonitor returns a new balanceMonitor

Types

type BalanceMonitor

type BalanceMonitor interface {
	httypes.HeadTrackable
	GetEthBalance(gethCommon.Address) *assets.Eth
	services.Service
}

BalanceMonitor checks the balance for each key on every new head

type NullBalanceMonitor

type NullBalanceMonitor struct{}

func (*NullBalanceMonitor) Close

func (*NullBalanceMonitor) Close() error

func (*NullBalanceMonitor) GetEthBalance

func (*NullBalanceMonitor) GetEthBalance(gethCommon.Address) *assets.Eth

func (*NullBalanceMonitor) OnNewLongestChain

func (*NullBalanceMonitor) OnNewLongestChain(ctx context.Context, head *evmtypes.Head)

func (*NullBalanceMonitor) Ready

func (*NullBalanceMonitor) Ready() error

func (*NullBalanceMonitor) Start

Start does noop for NullBalanceMonitor.

Jump to

Keyboard shortcuts

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