gasprice

package
v0.0.0-...-7be72bc Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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

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

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

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

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