txnprovider

package
v1.9.7-0...-c81b736 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProvideOption

type ProvideOption func(opt *ProvideOptions)

func WithAmount

func WithAmount(amount int) ProvideOption

func WithBlobGasTarget

func WithBlobGasTarget(blobGasTarget uint64) ProvideOption

func WithGasTarget

func WithGasTarget(gasTarget uint64) ProvideOption

func WithParentBlockNum

func WithParentBlockNum(blockNum uint64) ProvideOption

func WithTxnIdsFilter

func WithTxnIdsFilter(txnIdsFilter mapset.Set[[32]byte]) ProvideOption

type ProvideOptions

type ProvideOptions struct {
	ParentBlockNum uint64
	Amount         int
	GasTarget      uint64
	BlobGasTarget  uint64
	TxnIdsFilter   mapset.Set[[32]byte]
}

func ApplyProvideOptions

func ApplyProvideOptions(opts ...ProvideOption) ProvideOptions

type TxnProvider

type TxnProvider interface {
	// ProvideTxns provides transactions ready to be included in a block for block building. Available request options:
	//   - WithParentBlockNum
	//   - WithAmount
	//   - WithGasTarget
	//   - WithBlobGasTarget
	//   - WithTxnIdsFilter
	ProvideTxns(ctx context.Context, opts ...ProvideOption) ([]types.Transaction, error)
}

Directories

Path Synopsis
internal/testhelpers
Package testhelpers is a generated GoMock package.
Package testhelpers is a generated GoMock package.
Package txpool is a generated GoMock package.
Package txpool is a generated GoMock package.

Jump to

Keyboard shortcuts

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