monitor

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBalanceMonitor

func NewBalanceMonitor(chainID string, cfg Config, lggr logger.Logger, ks core.Keystore, newReader func() (BalanceClient, error)) services.Service

TODO: This chain-specific implementation should be replaced by the chain-agnostic one found at /aptos/relayer/monitor. NewBalanceMonitor returns a balance monitoring services.Service which reports the TRX balance of all ks keys to prometheus.

Types

type BalanceClient

type BalanceClient interface {
	GetAccount(accountAddress address.Address) (*soliditynode.GetAccountResponse, error)
}

type Config

type Config interface {
	BalancePollPeriod() time.Duration
}

Config defines the monitor configuration.

Jump to

Keyboard shortcuts

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