gasprice_minimum

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FallbackGasPriceMinimum *big.Int = big.NewInt(0) // gas price minimum to return if unable to fetch from contract
)

Functions

func GetGasPriceMinimum

func GetGasPriceMinimum(vmRunner vm.EVMRunner, currency *common.Address) (*big.Int, error)

func GetGasPriceMinimumFloor added in v1.4.2

func GetGasPriceMinimumFloor(vmRunner vm.EVMRunner) (*big.Int, error)

func GetRealGasPriceMinimum added in v1.7.1

func GetRealGasPriceMinimum(vmRunner vm.EVMRunner, currency *common.Address) (*big.Int, error)

GetRealGasPriceMinimum is similar to GetRealGasPriceMinimum but if there is a problem retrieving the gas price minimum it will return the error and a nil gas price minimum.

func GetUpdatedGasPriceMinimum added in v1.8.0

func GetUpdatedGasPriceMinimum(vmRunner vm.EVMRunner, lastUsedGas, gasLimit uint64) (*big.Int, error)

func UpdateGasPriceMinimum

func UpdateGasPriceMinimum(vmRunner vm.EVMRunner, lastUsedGas uint64) (*big.Int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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