account

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

func NewAccount

func NewAccount(log logrus.FieldLogger, monitor, name, address string, allocation uint32, shouldGatherMetrics bool, ethereumPool *ethereum.Pool) *Account

func (*Account) Address

func (a *Account) Address() string

func (*Account) Allocation

func (a *Account) Allocation() uint32

func (*Account) SetClient

func (a *Account) SetClient(client *spl.Client)

func (*Account) SetContract

func (a *Account) SetContract(contract *ethcoder.ABI)

func (*Account) Start

func (a *Account) Start(ctx context.Context) error

func (*Account) Stop

func (a *Account) Stop(ctx context.Context) error

type Config

type Config struct {
	Name       string `yaml:"name"`
	Address    string `yaml:"address"`
	Allocation uint32 `yaml:"allocation"`
	Monitor    bool   `yaml:"monitor" default:"false"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func GetMetricsInstance

func GetMetricsInstance(namespace, monitor string) *Metrics

func (Metrics) UpdateBalance

func (m Metrics) UpdateBalance(balance float64, labels []string)

func (Metrics) UpdateSplitBalance

func (m Metrics) UpdateSplitBalance(splitBalance float64, labels []string)

Jump to

Keyboard shortcuts

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