gas

package
v2.0.0-prerelease3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CurrentMaxFeeKey   string = "currentMaxFee"
	ThresholdMaxFeeKey string = "thresholdMaxFee"
	MinCostKey         string = "minCost"
	MaxCostKey         string = "maxCost"
	TotalMinCostKey    string = "totalMinCost"
	TotalMaxCostKey    string = "totalMaxCost"
)

Variables

This section is empty.

Functions

func GetMaxFeeWeiForDaemon

func GetMaxFeeWeiForDaemon(logger *slog.Logger) (*big.Int, error)

Get the suggested max fee for service operations

func PrintAndCheckGasInfo

func PrintAndCheckGasInfo(simResult eth.SimulationResult, checkThreshold bool, gasThresholdGwei float64, logger *slog.Logger, maxFeeWei *big.Int, gasLimit uint64) bool

Print the gas price and cost of a TX

func PrintAndCheckGasInfoForBatch

func PrintAndCheckGasInfoForBatch(submissions []*eth.TransactionSubmission, checkThreshold bool, gasThresholdGwei float64, logger *slog.Logger, maxFeeWei *big.Int) bool

Print the gas price and cost of a TX batch

Types

This section is empty.

Jump to

Keyboard shortcuts

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