mocks

package
v1.11.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 12 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.6.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) BlockHistoryEstimatorCheckInclusionBlocks added in v1.10.0

func (_m *Config) BlockHistoryEstimatorCheckInclusionBlocks() uint16

BlockHistoryEstimatorCheckInclusionBlocks provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorCheckInclusionPercentile added in v1.10.0

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) DatabaseDefaultQueryTimeout added in v1.10.0

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() uint16

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 added in v1.8.1

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 added in v1.5.0

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:

func (*Config) TriggerFallbackDBPollInterval

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

TriggerFallbackDBPollInterval provides a mock function with given fields:

type ORM

type ORM struct {
	mock.Mock
}

ORM is an autogenerated mock type for the ORM type

func NewORM added in v1.6.0

func NewORM(t mockConstructorTestingTNewORM) *ORM

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

func (*ORM) EthTransactions

func (_m *ORM) EthTransactions(offset int, limit int) ([]txmgr.EthTx, int, error)

EthTransactions provides a mock function with given fields: offset, limit

func (*ORM) EthTransactionsWithAttempts

func (_m *ORM) EthTransactionsWithAttempts(offset int, limit int) ([]txmgr.EthTx, int, error)

EthTransactionsWithAttempts provides a mock function with given fields: offset, limit

func (*ORM) EthTxAttempts

func (_m *ORM) EthTxAttempts(offset int, limit int) ([]txmgr.EthTxAttempt, int, error)

EthTxAttempts provides a mock function with given fields: offset, limit

func (*ORM) FindEthTxAttempt

func (_m *ORM) FindEthTxAttempt(hash common.Hash) (*txmgr.EthTxAttempt, error)

FindEthTxAttempt provides a mock function with given fields: hash

func (*ORM) FindEthTxAttemptsByEthTxIDs

func (_m *ORM) FindEthTxAttemptsByEthTxIDs(ids []int64) ([]txmgr.EthTxAttempt, error)

FindEthTxAttemptsByEthTxIDs provides a mock function with given fields: ids

func (*ORM) FindEthTxByHash

func (_m *ORM) FindEthTxByHash(hash common.Hash) (*txmgr.EthTx, error)

FindEthTxByHash provides a mock function with given fields: hash

func (*ORM) FindEthTxWithAttempts

func (_m *ORM) FindEthTxWithAttempts(etxID int64) (txmgr.EthTx, error)

FindEthTxWithAttempts provides a mock function with given fields: etxID

func (*ORM) InsertEthReceipt

func (_m *ORM) InsertEthReceipt(receipt *txmgr.EthReceipt) error

InsertEthReceipt provides a mock function with given fields: receipt

func (*ORM) InsertEthTx

func (_m *ORM) InsertEthTx(etx *txmgr.EthTx) error

InsertEthTx provides a mock function with given fields: etx

func (*ORM) InsertEthTxAttempt

func (_m *ORM) InsertEthTxAttempt(attempt *txmgr.EthTxAttempt) error

InsertEthTxAttempt provides a mock function with given fields: attempt

type ReaperConfig

type ReaperConfig struct {
	mock.Mock
}

ReaperConfig is an autogenerated mock type for the ReaperConfig type

func NewReaperConfig added in v1.6.0

func NewReaperConfig(t mockConstructorTestingTNewReaperConfig) *ReaperConfig

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

func (*ReaperConfig) EthTxReaperInterval

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

EthTxReaperInterval provides a mock function with given fields:

func (*ReaperConfig) EthTxReaperThreshold

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

EthTxReaperThreshold provides a mock function with given fields:

func (*ReaperConfig) EvmFinalityDepth

func (_m *ReaperConfig) EvmFinalityDepth() uint32

EvmFinalityDepth provides a mock function with given fields:

type TxManager

type TxManager struct {
	mock.Mock
}

TxManager is an autogenerated mock type for the TxManager type

func NewTxManager added in v1.6.0

func NewTxManager(t mockConstructorTestingTNewTxManager) *TxManager

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

func (_m *TxManager) Close() error

Close provides a mock function with given fields:

func (*TxManager) CreateEthTransaction

func (_m *TxManager) CreateEthTransaction(newTx txmgr.NewTx, qopts ...pg.QOpt) (txmgr.EthTx, error)

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

func (*TxManager) GetForwarderForEOA added in v1.9.0

func (_m *TxManager) GetForwarderForEOA(eoa common.Address) (common.Address, error)

GetForwarderForEOA provides a mock function with given fields: eoa

func (*TxManager) GetGasEstimator

func (_m *TxManager) GetGasEstimator() gas.Estimator

GetGasEstimator provides a mock function with given fields:

func (*TxManager) Healthy

func (_m *TxManager) Healthy() error

Healthy provides a mock function with given fields:

func (*TxManager) OnNewLongestChain

func (_m *TxManager) OnNewLongestChain(ctx context.Context, head *types.Head)

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

func (*TxManager) Ready

func (_m *TxManager) Ready() error

Ready provides a mock function with given fields:

func (*TxManager) RegisterResumeCallback

func (_m *TxManager) RegisterResumeCallback(fn txmgr.ResumeCallback)

RegisterResumeCallback provides a mock function with given fields: fn

func (*TxManager) Reset added in v1.9.0

func (_m *TxManager) Reset(f func(), addr common.Address, abandon bool) error

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

func (*TxManager) SendEther

func (_m *TxManager) SendEther(chainID *big.Int, from common.Address, to common.Address, value assets.Eth, gasLimit uint32) (txmgr.EthTx, error)

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

func (*TxManager) Start

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

Start provides a mock function with given fields: _a0

func (*TxManager) Trigger

func (_m *TxManager) Trigger(addr common.Address)

Trigger provides a mock function with given fields: addr

type TxStrategy

type TxStrategy struct {
	mock.Mock
}

TxStrategy is an autogenerated mock type for the TxStrategy type

func NewTxStrategy added in v1.6.0

func NewTxStrategy(t mockConstructorTestingTNewTxStrategy) *TxStrategy

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

func (*TxStrategy) PruneQueue

func (_m *TxStrategy) PruneQueue(q pg.Queryer) (int64, error)

PruneQueue provides a mock function with given fields: q

func (*TxStrategy) Subject

func (_m *TxStrategy) Subject() uuid.NullUUID

Subject provides a mock function with given fields:

Jump to

Keyboard shortcuts

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