package
0.5.0
Repository: https://github.com/goplugin/pluginv2.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

BumpDynamicFeeOnly bumps the tip cap and max gas price if necessary.
BumpLegacyGasPriceOnly will increase the price and apply multiplier to the gas limit.
HexToInt64 performs the inverse of Int64ToHex Returns 0 on invalid input.
Int64ToHex converts an int64 into go-ethereum's hex representation.
No description provided by the author
No description provided by the author
NewBlockHistoryEstimator returns a new BlockHistoryEstimator that listens for new heads and updates the base gas price dynamically based on the configured percentile of gas prices in that block.
NewEstimator returns the estimator for a given config.
NewFixedPriceEstimator returns a new "FixedPrice" estimator which will always use the config default values for gas prices and limits.
NewL2SuggestedPriceEstimator returns a new Estimator which uses the L2 suggested gas price.

# Constants

ArbGasInfo_getPricesInArbGas is the a hex encoded call to: `function getPricesInArbGas() external view returns (uint256, uint256, uint256);`.
ArbGasInfoAddress is the address of the "Precompiled contract that exists in every Arbitrum chain." https://github.com/OffchainLabs/nitro/blob/f7645453cfc77bf3e3644ea1ac031eff629df325/contracts/src/precompiles/ArbGasInfo.sol.
No description provided by the author
OptForceRefetch forces the estimator to bust a cache if necessary.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxStartTime is the maximum amount of time we are allowed to spend trying to fill initial data on start.

# Structs

go:generate mockery --quiet --name Config --output ./mocks/ --case=underscore.
DynamicFee encompasses both FeeCap and TipCap for EIP1559 transactions.

# Interfaces

No description provided by the author
Config defines an interface for configuration in the gas package go:generate mockery --quiet --name Config --output ./mocks/ --case=underscore.
Estimator provides an interface for estimating gas price and limit go:generate mockery --quiet --name Estimator --output ./mocks/ --case=underscore.
No description provided by the author

# Type aliases

Opt is an option for a gas estimator.