mocks

package
v2.2.0-mercury-20230614 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 9 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

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) BlockHistoryEstimatorCheckInclusionBlocks

func (_m *Config) BlockHistoryEstimatorCheckInclusionBlocks() uint16

BlockHistoryEstimatorCheckInclusionBlocks provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorCheckInclusionPercentile

func (_m *Config) BlockHistoryEstimatorCheckInclusionPercentile() uint16

BlockHistoryEstimatorCheckInclusionPercentile 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() *assets.Wei

EvmGasBumpWei provides a mock function with given fields:

func (*Config) EvmGasFeeCapDefault

func (_m *Config) EvmGasFeeCapDefault() *assets.Wei

EvmGasFeeCapDefault provides a mock function with given fields:

func (*Config) EvmGasLimitMax

func (_m *Config) EvmGasLimitMax() uint32

EvmGasLimitMax 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() *assets.Wei

EvmGasPriceDefault provides a mock function with given fields:

func (*Config) EvmGasTipCapDefault

func (_m *Config) EvmGasTipCapDefault() *assets.Wei

EvmGasTipCapDefault provides a mock function with given fields:

func (*Config) EvmGasTipCapMinimum

func (_m *Config) EvmGasTipCapMinimum() *assets.Wei

EvmGasTipCapMinimum provides a mock function with given fields:

func (*Config) EvmMaxGasPriceWei

func (_m *Config) EvmMaxGasPriceWei() *assets.Wei

EvmMaxGasPriceWei provides a mock function with given fields:

func (*Config) EvmMinGasPriceWei

func (_m *Config) EvmMinGasPriceWei() *assets.Wei

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 ETHClient

type ETHClient struct {
	mock.Mock
}

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.

func (*ETHClient) CallContract

func (_m *ETHClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, msg, blockNumber

type EvmEstimator

type EvmEstimator struct {
	mock.Mock
}

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:

func (*EvmEstimator) Start

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

Start provides a mock function with given fields: _a0

type EvmFeeEstimator added in v2.3.0

type EvmFeeEstimator struct {
	mock.Mock
}

EvmFeeEstimator is an autogenerated mock type for the EvmFeeEstimator type

func NewEvmFeeEstimator added in v2.3.0

func NewEvmFeeEstimator(t mockConstructorTestingTNewEvmFeeEstimator) *EvmFeeEstimator

NewEvmFeeEstimator creates a new instance of EvmFeeEstimator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EvmFeeEstimator) BumpFee added in v2.3.0

func (_m *EvmFeeEstimator) BumpFee(ctx context.Context, originalFee gas.EvmFee, feeLimit uint32, maxFeePrice *assets.Wei, attempts []gas.EvmPriorAttempt) (gas.EvmFee, uint32, error)

BumpFee provides a mock function with given fields: ctx, originalFee, feeLimit, maxFeePrice, attempts

func (*EvmFeeEstimator) Close added in v2.3.0

func (_m *EvmFeeEstimator) Close() error

Close provides a mock function with given fields:

func (*EvmFeeEstimator) GetFee added in v2.3.0

func (_m *EvmFeeEstimator) GetFee(ctx context.Context, calldata []byte, feeLimit uint32, maxFeePrice *assets.Wei, opts ...types.Opt) (gas.EvmFee, uint32, error)

GetFee provides a mock function with given fields: ctx, calldata, feeLimit, maxFeePrice, opts

func (*EvmFeeEstimator) HealthReport added in v2.3.0

func (_m *EvmFeeEstimator) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*EvmFeeEstimator) Name added in v2.3.0

func (_m *EvmFeeEstimator) Name() string

Name provides a mock function with given fields:

func (*EvmFeeEstimator) OnNewLongestChain added in v2.3.0

func (_m *EvmFeeEstimator) OnNewLongestChain(ctx context.Context, head *evmtypes.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

func (*EvmFeeEstimator) Ready added in v2.3.0

func (_m *EvmFeeEstimator) Ready() error

Ready provides a mock function with given fields:

func (*EvmFeeEstimator) Start added in v2.3.0

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

Start provides a mock function with given fields: _a0

type RPCClient

type RPCClient struct {
	mock.Mock
}

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.

func (*RPCClient) CallContext

func (_m *RPCClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error

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

Jump to

Keyboard shortcuts

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