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() config.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 uint32, maxGasPriceWei *big.Int) (gas.DynamicFee, uint32, error)
- func (_m *Estimator) BumpLegacyGas(originalGasPrice *big.Int, gasLimit uint32, maxGasPriceWei *big.Int) (*big.Int, uint32, error)
- func (_m *Estimator) Close() error
- func (_m *Estimator) GetDynamicFee(gasLimit uint32, maxGasPriceWei *big.Int) (gas.DynamicFee, uint32, error)
- func (_m *Estimator) GetLegacyGas(calldata []byte, gasLimit uint32, maxGasPriceWei *big.Int, opts ...gas.Opt) (*big.Int, uint32, error)
- func (_m *Estimator) OnNewLongestChain(_a0 context.Context, _a1 *types.Head)
- func (_m *Estimator) Start(_a0 context.Context) error
- type RPCClient
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 NewConfig ¶ added in v1.5.0
func NewConfig(t mockConstructorTestingTNewConfig) *Config
NewConfig creates a new instance of Config. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
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 ¶
BlockHistoryEstimatorEIP1559FeeCapBufferBlocks provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorTransactionPercentile ¶
BlockHistoryEstimatorTransactionPercentile provides a mock function with given fields:
func (*Config) EvmEIP1559DynamicFees ¶
EvmEIP1559DynamicFees provides a mock function with given fields:
func (*Config) EvmFinalityDepth ¶
EvmFinalityDepth provides a mock function with given fields:
func (*Config) EvmGasBumpPercent ¶
EvmGasBumpPercent provides a mock function with given fields:
func (*Config) EvmGasBumpThreshold ¶
EvmGasBumpThreshold provides a mock function with given fields:
func (*Config) EvmGasBumpWei ¶
EvmGasBumpWei provides a mock function with given fields:
func (*Config) EvmGasFeeCapDefault ¶
EvmGasFeeCapDefault provides a mock function with given fields:
func (*Config) EvmGasLimitMultiplier ¶
EvmGasLimitMultiplier provides a mock function with given fields:
func (*Config) EvmGasPriceDefault ¶
EvmGasPriceDefault provides a mock function with given fields:
func (*Config) EvmGasTipCapDefault ¶
EvmGasTipCapDefault provides a mock function with given fields:
func (*Config) EvmGasTipCapMinimum ¶
EvmGasTipCapMinimum provides a mock function with given fields:
func (*Config) EvmMaxGasPriceWei ¶
EvmMaxGasPriceWei provides a mock function with given fields:
func (*Config) EvmMinGasPriceWei ¶
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 NewEstimator ¶ added in v1.5.0
func NewEstimator(t mockConstructorTestingTNewEstimator) *Estimator
NewEstimator creates a new instance of Estimator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Estimator) BumpDynamicFee ¶
func (_m *Estimator) BumpDynamicFee(original gas.DynamicFee, gasLimit uint32, maxGasPriceWei *big.Int) (gas.DynamicFee, uint32, error)
BumpDynamicFee provides a mock function with given fields: original, gasLimit, maxGasPriceWei
func (*Estimator) BumpLegacyGas ¶
func (_m *Estimator) BumpLegacyGas(originalGasPrice *big.Int, gasLimit uint32, maxGasPriceWei *big.Int) (*big.Int, uint32, error)
BumpLegacyGas provides a mock function with given fields: originalGasPrice, gasLimit, maxGasPriceWei
func (*Estimator) GetDynamicFee ¶
func (_m *Estimator) GetDynamicFee(gasLimit uint32, maxGasPriceWei *big.Int) (gas.DynamicFee, uint32, error)
GetDynamicFee provides a mock function with given fields: gasLimit, maxGasPriceWei
func (*Estimator) GetLegacyGas ¶
func (_m *Estimator) GetLegacyGas(calldata []byte, gasLimit uint32, maxGasPriceWei *big.Int, opts ...gas.Opt) (*big.Int, uint32, error)
GetLegacyGas provides a mock function with given fields: calldata, gasLimit, maxGasPriceWei, opts
func (*Estimator) OnNewLongestChain ¶
OnNewLongestChain provides a mock function with given fields: _a0, _a1
type RPCClient ¶ added in v1.6.0
RPCClient is an autogenerated mock type for the rpcClient type
func NewRPCClient ¶ added in v1.6.0
func NewRPCClient(t mockConstructorTestingTNewRPCClient) *RPCClient
NewRPCClient creates a new instance of RPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.