mocks

package
v2.2.0-mercury-20230601 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 15 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) Database

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

Database provides a mock function with given fields:

func (*Config) DatabaseDefaultQueryTimeout

func (_m *Config) DatabaseDefaultQueryTimeout() time.Duration

DatabaseDefaultQueryTimeout provides a mock function with given fields:

func (*Config) EthTxReaperInterval

func (_m *Config) EthTxReaperInterval() time.Duration

EthTxReaperInterval provides a mock function with given fields:

func (*Config) EthTxReaperThreshold

func (_m *Config) EthTxReaperThreshold() time.Duration

EthTxReaperThreshold provides a mock function with given fields:

func (*Config) EthTxResendAfterThreshold

func (_m *Config) EthTxResendAfterThreshold() time.Duration

EthTxResendAfterThreshold 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) EvmGasBumpTxDepth

func (_m *Config) EvmGasBumpTxDepth() uint32

EvmGasBumpTxDepth 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) EvmGasLimitDefault

func (_m *Config) EvmGasLimitDefault() uint32

EvmGasLimitDefault 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) EvmMaxInFlightTransactions

func (_m *Config) EvmMaxInFlightTransactions() uint32

EvmMaxInFlightTransactions provides a mock function with given fields:

func (*Config) EvmMaxQueuedTransactions

func (_m *Config) EvmMaxQueuedTransactions() uint64

EvmMaxQueuedTransactions 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) EvmNonceAutoSync

func (_m *Config) EvmNonceAutoSync() bool

EvmNonceAutoSync provides a mock function with given fields:

func (*Config) EvmRPCDefaultBatchSize

func (_m *Config) EvmRPCDefaultBatchSize() uint32

EvmRPCDefaultBatchSize provides a mock function with given fields:

func (*Config) EvmUseForwarders

func (_m *Config) EvmUseForwarders() bool

EvmUseForwarders provides a mock function with given fields:

func (*Config) GasEstimatorMode

func (_m *Config) GasEstimatorMode() string

GasEstimatorMode provides a mock function with given fields:

func (*Config) KeySpecificMaxGasPriceWei

func (_m *Config) KeySpecificMaxGasPriceWei(addr common.Address) *assets.Wei

KeySpecificMaxGasPriceWei provides a mock function with given fields: addr

func (*Config) LogSQL

func (_m *Config) LogSQL() bool

LogSQL provides a mock function with given fields:

type MockEvmTxManager added in v2.1.0

func NewMockEvmTxManager added in v2.1.0

func NewMockEvmTxManager(t *testing.T) *MockEvmTxManager

type MockEvmTxStore added in v2.1.0

func NewMockEvmTxStore added in v2.1.0

func NewMockEvmTxStore(t *testing.T) *MockEvmTxStore

type TxManager

type TxManager[CHAIN_ID types.ID, HEAD commontypes.Head[BLOCK_HASH], ADDR commontypes.Hashable, TX_HASH commontypes.Hashable, BLOCK_HASH commontypes.Hashable, R types.ChainReceipt[TX_HASH, BLOCK_HASH], SEQ types.Sequence, FEE types.Fee, ADD interface{}] struct {
	mock.Mock
}

TxManager is an autogenerated mock type for the TxManager type

func NewTxManager

func NewTxManager[CHAIN_ID types.ID, HEAD commontypes.Head[BLOCK_HASH], ADDR commontypes.Hashable, TX_HASH commontypes.Hashable, BLOCK_HASH commontypes.Hashable, R types.ChainReceipt[TX_HASH, BLOCK_HASH], SEQ types.Sequence, FEE types.Fee, ADD interface{}](t mockConstructorTestingTNewTxManager) *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]

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

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Close

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Close() error

Close provides a mock function with given fields:

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) CreateTransaction

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) CreateTransaction(newTx types.NewTx[ADDR, TX_HASH], qopts ...pg.QOpt) (types.Tx[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD], error)

CreateTransaction provides a mock function with given fields: newTx, qopts

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) GetForwarderForEOA

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) GetForwarderForEOA(eoa ADDR) (ADDR, error)

GetForwarderForEOA provides a mock function with given fields: eoa

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) HealthReport

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Name

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Name() string

Name provides a mock function with given fields:

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) OnNewLongestChain

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) OnNewLongestChain(ctx context.Context, head HEAD)

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

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Ready

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Ready() error

Ready provides a mock function with given fields:

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) RegisterResumeCallback

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) RegisterResumeCallback(fn txmgr.ResumeCallback)

RegisterResumeCallback provides a mock function with given fields: fn

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Reset

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Reset(f func(), addr ADDR, abandon bool) error

Reset provides a mock function with given fields: f, addr, abandon

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) SendNativeToken

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) SendNativeToken(chainID CHAIN_ID, from ADDR, to ADDR, value big.Int, gasLimit uint32) (types.Tx[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD], error)

SendNativeToken provides a mock function with given fields: chainID, from, to, value, gasLimit

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Start

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Trigger

func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Trigger(addr ADDR)

Trigger provides a mock function with given fields: addr

Jump to

Keyboard shortcuts

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