safe

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerType = "safe"
	MaxQueueSize   = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address   string   `yaml:"address"`
	Signers   []string `yaml:"signers"`
	Threshold int      `yaml:"threshold"`
}

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 added in v0.1.3

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

func (Metrics) UpdateSignersValid added in v0.1.1

func (m Metrics) UpdateSignersValid(signersValid float64, labels []string)

func (Metrics) UpdateThresholdValid added in v0.1.1

func (m Metrics) UpdateThresholdValid(thresholdValid float64, labels []string)

func (Metrics) UpdateTransactionQueueSize

func (m Metrics) UpdateTransactionQueueSize(transactionQueueSize float64, labels []string)

func (Metrics) UpdateTransactionRecoveryExists

func (m Metrics) UpdateTransactionRecoveryExists(transactionRecoveryExists float64, labels []string)

func (Metrics) UpdateTransactionRecoveryNext

func (m Metrics) UpdateTransactionRecoveryNext(transactionRecoveryNext float64, labels []string)

func (Metrics) UpdateTransactionRecoveryPreSigned

func (m Metrics) UpdateTransactionRecoveryPreSigned(transactionRecoveryPreSigned float64, labels []string)

func (Metrics) UpdateTransactionRecoveryValid

func (m Metrics) UpdateTransactionRecoveryValid(transactionRecoveryValid float64, labels []string)

type Safe

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

func New

func New(ctx context.Context, log logrus.FieldLogger, monitor, name string, config *Config, splitAddress, recoveryAddress, splitsContractAddress string, ethereumPool *ethereum.Pool, safeClient safe.Client, publisher *notifier.Publisher) (*Safe, error)

func (*Safe) Address

func (c *Safe) Address() string

func (*Safe) Name

func (c *Safe) Name() string

func (*Safe) Start

func (c *Safe) Start(ctx context.Context) error

func (*Safe) Stop

func (c *Safe) Stop(ctx context.Context) error

func (*Safe) Type

func (c *Safe) Type() string

type TransactionData added in v0.1.3

type TransactionData struct {
	Transactions          []*safe.QueuedTransactionResult
	RecoveryTxID          string
	InvalidRecoveryError  error
	HasNextRecoveryTx     bool
	CurrentConfirmations  int
	RequiredConfirmations int
}

TransactionData holds information about queued transactions

type TransactionParams added in v0.1.3

type TransactionParams struct {
	SplitAddress   string
	Accounts       []string
	Allocations    []uint32
	DistributorFee uint32
}

TransactionParams contains parsed transaction parameters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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