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 aiOps 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 ¶
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 ¶
GetGasTipFunc provides a general interface for retrieving the closest estimate for gas tip to allow for timely execution of a transaction.
func GetGasTipWithEthClient ¶
func GetGasTipWithEthClient(eth *ethclient.Client) GetGasTipFunc
GetGasTipWithEthClient returns a GetGasTipFunc using an eth client.
func NoopGetGasTipFunc ¶
func NoopGetGasTipFunc() GetGasTipFunc
NoopGetGasTipFunc returns nil gas tip and nil error.
type GetLegacyGasPriceFunc ¶
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.