monitor

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeHexPublicKey

func DecodeHexPublicKey(hexPubKey string) (ed25519.PublicKey, error)

DecodeHexPublicKey decodes a hex-encoded ed25519 public key and validates its size.

func NewBalanceClient

func NewBalanceClient(client ton.APIClientWrapped) balance.GenericBalanceClient

NewBalanceClient creates a balance client for testing purposes.

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 balance.ChainInfo

	Config    balance.GenericBalanceConfig
	Logger    logger.Logger
	Keystore  core.Keystore
	NewClient func(context.Context) (ton.APIClientWrapped, error)
}

BalanceMonitorOpts contains the options for creating a new TON account balance monitor.

Jump to

Keyboard shortcuts

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