transactions

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAndWait

func SendAndWait(
	auth *bind.TransactOpts,
	client *ethclient.Client,
	getTxsByStatus func(ctx context.Context, status pool.TxStatus, limit uint64) ([]pool.Transaction, error),
	nTxs uint64,
	erc20SC *ERC20.ERC20,
	uniswapDeployments *pkg.Deployments,
	txSenderFunc func(l2Client *ethclient.Client, gasPrice *big.Int, auth *bind.TransactOpts, erc20SC *ERC20.ERC20, uniswapDeployments *pkg.Deployments) ([]*types.Transaction, error),
) ([]*types.Transaction, error)

SendAndWait sends a number of transactions and waits for them to be marked as pending in the pool

func ShouldRetryError added in v0.0.990

func ShouldRetryError(err error) bool

func WaitStatusSelected

func WaitStatusSelected(countByStatusFunc func(ctx context.Context, status ...pool.TxStatus) (uint64, error), initialCount uint64, nTxs uint64) error

WaitStatusSelected waits for a number of transactions to be marked as selected in the pool

Types

This section is empty.

Jump to

Keyboard shortcuts

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