Documentation ¶
Index ¶
- type Config
- func (_m *Config) BlockHistoryEstimatorBatchSize() uint32
- func (_m *Config) BlockHistoryEstimatorBlockDelay() uint16
- func (_m *Config) BlockHistoryEstimatorBlockHistorySize() uint16
- func (_m *Config) BlockHistoryEstimatorEIP1559FeeCapBufferBlocks() uint16
- func (_m *Config) BlockHistoryEstimatorTransactionPercentile() uint16
- func (_m *Config) ChainType() chains.ChainType
- func (_m *Config) EvmEIP1559DynamicFees() bool
- func (_m *Config) EvmFinalityDepth() uint32
- func (_m *Config) EvmGasBumpPercent() uint16
- func (_m *Config) EvmGasBumpThreshold() uint64
- func (_m *Config) EvmGasBumpWei() *big.Int
- func (_m *Config) EvmGasFeeCapDefault() *big.Int
- func (_m *Config) EvmGasLimitMultiplier() float32
- func (_m *Config) EvmGasPriceDefault() *big.Int
- func (_m *Config) EvmGasTipCapDefault() *big.Int
- func (_m *Config) EvmGasTipCapMinimum() *big.Int
- func (_m *Config) EvmMaxGasPriceWei() *big.Int
- func (_m *Config) EvmMinGasPriceWei() *big.Int
- func (_m *Config) GasEstimatorMode() string
- type Estimator
- func (_m *Estimator) BumpDynamicFee(original gas.DynamicFee, gasLimit uint64) (gas.DynamicFee, uint64, error)
- func (_m *Estimator) BumpLegacyGas(originalGasPrice *big.Int, gasLimit uint64) (*big.Int, uint64, error)
- func (_m *Estimator) Close() error
- func (_m *Estimator) GetDynamicFee(gasLimit uint64) (gas.DynamicFee, uint64, error)
- func (_m *Estimator) GetLegacyGas(calldata []byte, gasLimit uint64, opts ...gas.Opt) (*big.Int, uint64, error)
- func (_m *Estimator) OnNewLongestChain(_a0 context.Context, _a1 *eth.Head)
- func (_m *Estimator) Start() error
- type OptimismRPCClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is an autogenerated mock type for the Config type
func (*Config) BlockHistoryEstimatorBatchSize ¶
BlockHistoryEstimatorBatchSize provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorBlockDelay ¶
BlockHistoryEstimatorBlockDelay provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorBlockHistorySize ¶
BlockHistoryEstimatorBlockHistorySize provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorEIP1559FeeCapBufferBlocks ¶ added in v1.1.1
BlockHistoryEstimatorEIP1559FeeCapBufferBlocks provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorTransactionPercentile ¶
BlockHistoryEstimatorTransactionPercentile provides a mock function with given fields:
func (*Config) EvmEIP1559DynamicFees ¶ added in v1.1.0
EvmEIP1559DynamicFees provides a mock function with given fields:
func (*Config) EvmFinalityDepth ¶ added in v1.0.0
EvmFinalityDepth provides a mock function with given fields:
func (*Config) EvmGasBumpPercent ¶ added in v1.0.0
EvmGasBumpPercent provides a mock function with given fields:
func (*Config) EvmGasBumpThreshold ¶ added in v1.1.1
EvmGasBumpThreshold provides a mock function with given fields:
func (*Config) EvmGasBumpWei ¶ added in v1.0.0
EvmGasBumpWei provides a mock function with given fields:
func (*Config) EvmGasFeeCapDefault ¶ added in v1.1.1
EvmGasFeeCapDefault provides a mock function with given fields:
func (*Config) EvmGasLimitMultiplier ¶ added in v1.0.0
EvmGasLimitMultiplier provides a mock function with given fields:
func (*Config) EvmGasPriceDefault ¶ added in v1.0.0
EvmGasPriceDefault provides a mock function with given fields:
func (*Config) EvmGasTipCapDefault ¶ added in v1.1.0
EvmGasTipCapDefault provides a mock function with given fields:
func (*Config) EvmGasTipCapMinimum ¶ added in v1.1.0
EvmGasTipCapMinimum provides a mock function with given fields:
func (*Config) EvmMaxGasPriceWei ¶ added in v1.0.0
EvmMaxGasPriceWei provides a mock function with given fields:
func (*Config) EvmMinGasPriceWei ¶ added in v1.0.0
EvmMinGasPriceWei provides a mock function with given fields:
func (*Config) GasEstimatorMode ¶
GasEstimatorMode provides a mock function with given fields:
type Estimator ¶
Estimator is an autogenerated mock type for the Estimator type
func (*Estimator) BumpDynamicFee ¶ added in v1.1.0
func (_m *Estimator) BumpDynamicFee(original gas.DynamicFee, gasLimit uint64) (gas.DynamicFee, uint64, error)
BumpDynamicFee provides a mock function with given fields: original, gasLimit
func (*Estimator) BumpLegacyGas ¶ added in v1.1.0
func (_m *Estimator) BumpLegacyGas(originalGasPrice *big.Int, gasLimit uint64) (*big.Int, uint64, error)
BumpLegacyGas provides a mock function with given fields: originalGasPrice, gasLimit
func (*Estimator) GetDynamicFee ¶ added in v1.1.0
GetDynamicFee provides a mock function with given fields: gasLimit
func (*Estimator) GetLegacyGas ¶ added in v1.1.0
func (_m *Estimator) GetLegacyGas(calldata []byte, gasLimit uint64, opts ...gas.Opt) (*big.Int, uint64, error)
GetLegacyGas provides a mock function with given fields: calldata, gasLimit, opts
func (*Estimator) OnNewLongestChain ¶
OnNewLongestChain provides a mock function with given fields: _a0, _a1
type OptimismRPCClient ¶
OptimismRPCClient is an autogenerated mock type for the optimismRPCClient type
func (*OptimismRPCClient) Call ¶
func (_m *OptimismRPCClient) Call(result interface{}, method string, args ...interface{}) error
Call provides a mock function with given fields: result, method, args