transactions

package
v0.0.3-RC21 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAndWait

func SendAndWait(
	ctx context.Context,
	auth *bind.TransactOpts,
	client *ethclient.Client,
	countByStatusFunc func(ctx context.Context, status pool.TxStatus) (uint64, error),
	nTxs int,
	erc20SC *ERC20.ERC20,
	txSenderFunc func(l2Client *ethclient.Client, gasPrice *big.Int, nonce uint64, auth *bind.TransactOpts, erc20SC *ERC20.ERC20) error,
) error

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

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