gasprice

package
v0.6.47 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: GPL-3.0 Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterUnderpriced

func FilterUnderpriced() modules.BatchHandlerFunc

FilterUnderpriced returns a BatchHandlerFunc that will filter out all the userOps that are below either the dynamic or legacy GasPrice set in the context.

func SortByGasPrice

func SortByGasPrice() modules.BatchHandlerFunc

SortByGasPrice returns a BatchHandlerFunc that will sort the context batch by highest GasPrice first.

Types

type GetBaseFeeFunc

type GetBaseFeeFunc = func() (*big.Int, error)

GetBaseFeeFunc provides a general interface for retrieving the closest estimate for basefee to allow for timely execution of a transaction.

func GetBaseFeeWithEthClient

func GetBaseFeeWithEthClient(eth *ethclient.Client) GetBaseFeeFunc

GetBaseFeeWithEthClient returns a GetBaseFeeFunc using an eth client.

func NoopGetBaseFeeFunc

func NoopGetBaseFeeFunc() GetBaseFeeFunc

NoopGetBaseFeeFunc returns nil basefee and nil error.

type GetGasTipFunc added in v0.6.6

type GetGasTipFunc = func() (*big.Int, error)

GetGasTipFunc provides a general interface for retrieving the closest estimate for gas tip to allow for timely execution of a transaction.

func GetGasTipWithEthClient added in v0.6.6

func GetGasTipWithEthClient(eth *ethclient.Client) GetGasTipFunc

GetGasTipWithEthClient returns a GetGasTipFunc using an eth client.

func NoopGetGasTipFunc added in v0.6.6

func NoopGetGasTipFunc() GetGasTipFunc

NoopGetGasTipFunc returns nil gas tip and nil error.

type GetLegacyGasPriceFunc

type GetLegacyGasPriceFunc = func() (*big.Int, error)

GetLegacyGasPriceFunc provides a general interface for retrieving the closest estimate for gas price to allow for timely execution of a transaction.

func GetLegacyGasPriceWithEthClient

func GetLegacyGasPriceWithEthClient(eth *ethclient.Client) GetLegacyGasPriceFunc

GetLegacyGasPriceWithEthClient returns a GetLegacyGasPriceFunc using an eth client.

func NoopGetLegacyGasPriceFunc

func NoopGetLegacyGasPriceFunc() GetLegacyGasPriceFunc

NoopGetLegacyGasPriceFunc returns nil gas price and nil error.

Jump to

Keyboard shortcuts

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