txmgr

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spamoor

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

func NewSpamoor

func NewSpamoor(ctx context.Context, logger logrus.FieldLogger, executionPool *execution.Pool) (*Spamoor, error)

func (*Spamoor) GetClient

func (s *Spamoor) GetClient(client *execution.Client) *spamoor.Client

func (*Spamoor) GetClientPool

func (s *Spamoor) GetClientPool() *spamoor.ClientPool

func (*Spamoor) GetReadyClient

func (s *Spamoor) GetReadyClient() *spamoor.Client

func (*Spamoor) GetTxPool

func (s *Spamoor) GetTxPool() *spamoor.TxPool

func (*Spamoor) GetWalletByAddress

func (s *Spamoor) GetWalletByAddress(ctx context.Context, address common.Address) (*spamoor.Wallet, error)

func (*Spamoor) GetWalletByPrivkey

func (s *Spamoor) GetWalletByPrivkey(ctx context.Context, privkey *ecdsa.PrivateKey) (*spamoor.Wallet, error)

func (*Spamoor) GetWalletPoolByPrivkey

func (s *Spamoor) GetWalletPoolByPrivkey(ctx context.Context, logger logrus.FieldLogger, privkey *ecdsa.PrivateKey, config *WalletPoolConfig) (*spamoor.WalletPool, error)

GetWalletPoolByPrivkey creates a wallet pool with child wallets derived from the given private key. This method prepares the wallets immediately after creation.

func (*Spamoor) NewWalletPoolByPrivkey

func (s *Spamoor) NewWalletPoolByPrivkey(ctx context.Context, logger logrus.FieldLogger, privkey *ecdsa.PrivateKey) (*spamoor.WalletPool, error)

NewWalletPoolByPrivkey creates a wallet pool without preparation. Use this when the wallet count and config will be set by a scenario. Call walletPool.PrepareWallets() after configuration is complete.

type WalletPoolConfig

type WalletPoolConfig struct {
	WalletCount   uint64
	WalletSeed    string
	RefillAmount  *uint256.Int
	RefillBalance *uint256.Int
}

WalletPoolConfig holds configuration for creating a wallet pool.

Jump to

Keyboard shortcuts

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