Documentation ¶
Index ¶
- func ApproximateFloat64(e *assets.Eth) (float64, error)
- type BalanceMonitor
- type NullBalanceMonitor
- func (*NullBalanceMonitor) Close() error
- func (*NullBalanceMonitor) GetEthBalance(gethCommon.Address) *assets.Eth
- func (*NullBalanceMonitor) Healthy() error
- func (*NullBalanceMonitor) OnNewLongestChain(ctx context.Context, head *evmtypes.Head)
- func (*NullBalanceMonitor) Ready() error
- func (*NullBalanceMonitor) Start(context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BalanceMonitor ¶
type BalanceMonitor interface { httypes.HeadTrackable GetEthBalance(gethCommon.Address) *assets.Eth services.ServiceCtx }
BalanceMonitor checks the balance for each key on every new head
func NewBalanceMonitor ¶
func NewBalanceMonitor(ethClient evmclient.Client, ethKeyStore keystore.Eth, logger logger.Logger) BalanceMonitor
NewBalanceMonitor returns a new balanceMonitor
type NullBalanceMonitor ¶
type NullBalanceMonitor struct{}
func (*NullBalanceMonitor) Close ¶
func (*NullBalanceMonitor) Close() error
func (*NullBalanceMonitor) GetEthBalance ¶
func (*NullBalanceMonitor) GetEthBalance(gethCommon.Address) *assets.Eth
func (*NullBalanceMonitor) Healthy ¶
func (*NullBalanceMonitor) Healthy() error
func (*NullBalanceMonitor) OnNewLongestChain ¶
func (*NullBalanceMonitor) OnNewLongestChain(ctx context.Context, head *evmtypes.Head)
func (*NullBalanceMonitor) Ready ¶
func (*NullBalanceMonitor) Ready() error
Click to show internal directories.
Click to hide internal directories.