Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeHexPublicKey ¶
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.
Click to show internal directories.
Click to hide internal directories.