mocks

package
v1.6.0-debug-vrfv1-rin... Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	mock.Mock
}

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

func (_m *Config) BlockHistoryEstimatorBatchSize() uint32

BlockHistoryEstimatorBatchSize provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorBlockDelay

func (_m *Config) BlockHistoryEstimatorBlockDelay() uint16

BlockHistoryEstimatorBlockDelay provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorBlockHistorySize

func (_m *Config) BlockHistoryEstimatorBlockHistorySize() uint16

BlockHistoryEstimatorBlockHistorySize provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorEIP1559FeeCapBufferBlocks

func (_m *Config) BlockHistoryEstimatorEIP1559FeeCapBufferBlocks() uint16

BlockHistoryEstimatorEIP1559FeeCapBufferBlocks provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorTransactionPercentile

func (_m *Config) BlockHistoryEstimatorTransactionPercentile() uint16

BlockHistoryEstimatorTransactionPercentile provides a mock function with given fields:

func (*Config) ChainType

func (_m *Config) ChainType() config.ChainType

ChainType provides a mock function with given fields:

func (*Config) EvmEIP1559DynamicFees

func (_m *Config) EvmEIP1559DynamicFees() bool

EvmEIP1559DynamicFees provides a mock function with given fields:

func (*Config) EvmFinalityDepth

func (_m *Config) EvmFinalityDepth() uint32

EvmFinalityDepth provides a mock function with given fields:

func (*Config) EvmGasBumpPercent

func (_m *Config) EvmGasBumpPercent() uint16

EvmGasBumpPercent provides a mock function with given fields:

func (*Config) EvmGasBumpThreshold

func (_m *Config) EvmGasBumpThreshold() uint64

EvmGasBumpThreshold provides a mock function with given fields:

func (*Config) EvmGasBumpWei

func (_m *Config) EvmGasBumpWei() *big.Int

EvmGasBumpWei provides a mock function with given fields:

func (*Config) EvmGasFeeCapDefault

func (_m *Config) EvmGasFeeCapDefault() *big.Int

EvmGasFeeCapDefault provides a mock function with given fields:

func (*Config) EvmGasLimitMultiplier

func (_m *Config) EvmGasLimitMultiplier() float32

EvmGasLimitMultiplier provides a mock function with given fields:

func (*Config) EvmGasPriceDefault

func (_m *Config) EvmGasPriceDefault() *big.Int

EvmGasPriceDefault provides a mock function with given fields:

func (*Config) EvmGasTipCapDefault

func (_m *Config) EvmGasTipCapDefault() *big.Int

EvmGasTipCapDefault provides a mock function with given fields:

func (*Config) EvmGasTipCapMinimum

func (_m *Config) EvmGasTipCapMinimum() *big.Int

EvmGasTipCapMinimum provides a mock function with given fields:

func (*Config) EvmMaxGasPriceWei

func (_m *Config) EvmMaxGasPriceWei() *big.Int

EvmMaxGasPriceWei provides a mock function with given fields:

func (*Config) EvmMinGasPriceWei

func (_m *Config) EvmMinGasPriceWei() *big.Int

EvmMinGasPriceWei provides a mock function with given fields:

func (*Config) GasEstimatorMode

func (_m *Config) GasEstimatorMode() string

GasEstimatorMode provides a mock function with given fields:

type Estimator

type Estimator struct {
	mock.Mock
}

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 uint64, maxGasPriceWei *big.Int) (gas.DynamicFee, uint64, error)

BumpDynamicFee provides a mock function with given fields: original, gasLimit, maxGasPriceWei

func (*Estimator) BumpLegacyGas

func (_m *Estimator) BumpLegacyGas(originalGasPrice *big.Int, gasLimit uint64, maxGasPriceWei *big.Int) (*big.Int, uint64, error)

BumpLegacyGas provides a mock function with given fields: originalGasPrice, gasLimit, maxGasPriceWei

func (*Estimator) Close

func (_m *Estimator) Close() error

Close provides a mock function with given fields:

func (*Estimator) GetDynamicFee

func (_m *Estimator) GetDynamicFee(gasLimit uint64, maxGasPriceWei *big.Int) (gas.DynamicFee, uint64, error)

GetDynamicFee provides a mock function with given fields: gasLimit, maxGasPriceWei

func (*Estimator) GetLegacyGas

func (_m *Estimator) GetLegacyGas(calldata []byte, gasLimit uint64, maxGasPriceWei *big.Int, opts ...gas.Opt) (*big.Int, uint64, error)

GetLegacyGas provides a mock function with given fields: calldata, gasLimit, maxGasPriceWei, opts

func (*Estimator) OnNewLongestChain

func (_m *Estimator) OnNewLongestChain(_a0 context.Context, _a1 *types.Head)

OnNewLongestChain provides a mock function with given fields: _a0, _a1

func (*Estimator) Start

func (_m *Estimator) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type RPCClient added in v1.6.0

type RPCClient struct {
	mock.Mock
}

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.

func (*RPCClient) Call added in v1.6.0

func (_m *RPCClient) Call(result interface{}, method string, args ...interface{}) error

Call provides a mock function with given fields: result, method, args

Jump to

Keyboard shortcuts

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