Documentation ¶
Index ¶
- type Config
- func (_m *Config) BlockHistoryEstimatorBatchSize() uint32
- func (_m *Config) BlockHistoryEstimatorBlockDelay() uint16
- func (_m *Config) BlockHistoryEstimatorBlockHistorySize() uint16
- func (_m *Config) BlockHistoryEstimatorCheckInclusionBlocks() uint16
- func (_m *Config) BlockHistoryEstimatorCheckInclusionPercentile() 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() *assets.Wei
- func (_m *Config) EvmGasFeeCapDefault() *assets.Wei
- func (_m *Config) EvmGasLimitMax() uint32
- func (_m *Config) EvmGasLimitMultiplier() float32
- func (_m *Config) EvmGasPriceDefault() *assets.Wei
- func (_m *Config) EvmGasTipCapDefault() *assets.Wei
- func (_m *Config) EvmGasTipCapMinimum() *assets.Wei
- func (_m *Config) EvmMaxGasPriceWei() *assets.Wei
- func (_m *Config) EvmMinGasPriceWei() *assets.Wei
- func (_m *Config) GasEstimatorMode() string
- type ETHClient
- type EvmEstimator
- func (_m *EvmEstimator) BumpDynamicFee(ctx context.Context, original gas.DynamicFee, gasLimit uint32, ...) (gas.DynamicFee, uint32, error)
- func (_m *EvmEstimator) BumpLegacyGas(ctx context.Context, originalGasPrice *assets.Wei, gasLimit uint32, ...) (*assets.Wei, uint32, error)
- func (_m *EvmEstimator) Close() error
- func (_m *EvmEstimator) GetDynamicFee(ctx context.Context, gasLimit uint32, maxGasPriceWei *assets.Wei) (gas.DynamicFee, uint32, error)
- func (_m *EvmEstimator) GetLegacyGas(ctx context.Context, calldata []byte, gasLimit uint32, ...) (*assets.Wei, uint32, error)
- func (_m *EvmEstimator) HealthReport() map[string]error
- func (_m *EvmEstimator) Name() string
- func (_m *EvmEstimator) OnNewLongestChain(ctx context.Context, head *evmtypes.Head)
- func (_m *EvmEstimator) Ready() error
- func (_m *EvmEstimator) 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 ¶
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) BlockHistoryEstimatorCheckInclusionBlocks ¶
BlockHistoryEstimatorCheckInclusionBlocks provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorCheckInclusionPercentile ¶
BlockHistoryEstimatorCheckInclusionPercentile 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) EvmGasLimitMax ¶
EvmGasLimitMax 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 ETHClient ¶
ETHClient is an autogenerated mock type for the ethClient type
func NewETHClient ¶
func NewETHClient(t mockConstructorTestingTNewETHClient) *ETHClient
NewETHClient creates a new instance of ETHClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type EvmEstimator ¶
EvmEstimator is an autogenerated mock type for the EvmEstimator type
func NewEvmEstimator ¶
func NewEvmEstimator(t mockConstructorTestingTNewEvmEstimator) *EvmEstimator
NewEvmEstimator creates a new instance of EvmEstimator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EvmEstimator) BumpDynamicFee ¶
func (_m *EvmEstimator) BumpDynamicFee(ctx context.Context, original gas.DynamicFee, gasLimit uint32, maxGasPriceWei *assets.Wei, attempts []gas.EvmPriorAttempt) (gas.DynamicFee, uint32, error)
BumpDynamicFee provides a mock function with given fields: ctx, original, gasLimit, maxGasPriceWei, attempts
func (*EvmEstimator) BumpLegacyGas ¶
func (_m *EvmEstimator) BumpLegacyGas(ctx context.Context, originalGasPrice *assets.Wei, gasLimit uint32, maxGasPriceWei *assets.Wei, attempts []gas.EvmPriorAttempt) (*assets.Wei, uint32, error)
BumpLegacyGas provides a mock function with given fields: ctx, originalGasPrice, gasLimit, maxGasPriceWei, attempts
func (*EvmEstimator) Close ¶
func (_m *EvmEstimator) Close() error
Close provides a mock function with given fields:
func (*EvmEstimator) GetDynamicFee ¶
func (_m *EvmEstimator) GetDynamicFee(ctx context.Context, gasLimit uint32, maxGasPriceWei *assets.Wei) (gas.DynamicFee, uint32, error)
GetDynamicFee provides a mock function with given fields: ctx, gasLimit, maxGasPriceWei
func (*EvmEstimator) GetLegacyGas ¶
func (_m *EvmEstimator) GetLegacyGas(ctx context.Context, calldata []byte, gasLimit uint32, maxGasPriceWei *assets.Wei, opts ...types.Opt) (*assets.Wei, uint32, error)
GetLegacyGas provides a mock function with given fields: ctx, calldata, gasLimit, maxGasPriceWei, opts
func (*EvmEstimator) HealthReport ¶
func (_m *EvmEstimator) HealthReport() map[string]error
HealthReport provides a mock function with given fields:
func (*EvmEstimator) Name ¶
func (_m *EvmEstimator) Name() string
Name provides a mock function with given fields:
func (*EvmEstimator) OnNewLongestChain ¶
func (_m *EvmEstimator) OnNewLongestChain(ctx context.Context, head *evmtypes.Head)
OnNewLongestChain provides a mock function with given fields: ctx, head
func (*EvmEstimator) Ready ¶
func (_m *EvmEstimator) Ready() error
Ready provides a mock function with given fields:
type RPCClient ¶
RPCClient is an autogenerated mock type for the rpcClient type
func NewRPCClient ¶
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.