gaslimit

package
v1.20.8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: GPL-3.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Limits

type Limits struct {
	Estimated uint64 `json:"estimated"`
	Safe      uint64 `json:"safe"`
}

Response for gas limits from network and from user request

func (Limits) Add

func (l Limits) Add(other Limits) Limits

func (Limits) Check

func (l Limits) Check(checkThreshold bool, gasThresholdGwei float64, logger *log.ColorLogger, maxFeeWei *big.Int, gasLimit uint64) bool

func (Limits) IsBlank

func (l Limits) IsBlank() bool

func (Limits) Print

func (l Limits) Print(logger *log.ColorLogger, maxFeeWei *big.Int, gasLimit uint64)

func (Limits) PrintAndCheck

func (l Limits) PrintAndCheck(checkThreshold bool, gasThresholdGwei float64, logger *log.ColorLogger, maxFeeWei *big.Int, gasLimit uint64) bool

Jump to

Keyboard shortcuts

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