Documentation
¶
Index ¶
Constants ¶
View Source
const SuiDecimals = 9
View Source
const SuiDecimalsDenominator = 1_000_000_000
Variables ¶
This section is empty.
Functions ¶
func NewBalanceMonitor ¶
func NewBalanceMonitor(opts BalanceMonitorOpts) (services.Service, error)
NewBalanceMonitor returns a balance monitoring services.Service which reports balance of all Keystore accounts.
Types ¶
type BalanceMonitorOpts ¶
type BalanceMonitorOpts struct {
ChainInfo aptosBalanceMonitor.ChainInfo
Config aptosBalanceMonitor.GenericBalanceConfig
Logger logger.Logger
Keystore core.Keystore
NewClient func() (client.SuiPTBClient, error)
}
BalanceMonitorOpts contains the options for creating a new Sui account balance monitor.
type GaugeAccBalance ¶
type GaugeAccBalance struct {
// contains filtered or unexported fields
}
Define a new gauge metric for account balance
func NewGaugeAccBalance ¶
func NewGaugeAccBalance(unitStr string) (*GaugeAccBalance, error)
func (*GaugeAccBalance) GetAttributes ¶
Click to show internal directories.
Click to hide internal directories.