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. |
Click to show internal directories.
Click to hide internal directories.