mocks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 7 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 (*Config) ChainID

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

ChainID provides a mock function with given fields:

func (*Config) EthFinalityDepth

func (_m *Config) EthFinalityDepth() uint

EthFinalityDepth provides a mock function with given fields:

func (*Config) EthGasBumpPercent

func (_m *Config) EthGasBumpPercent() uint16

EthGasBumpPercent provides a mock function with given fields:

func (*Config) EthGasBumpThreshold

func (_m *Config) EthGasBumpThreshold() uint64

EthGasBumpThreshold provides a mock function with given fields:

func (*Config) EthGasBumpTxDepth

func (_m *Config) EthGasBumpTxDepth() uint16

EthGasBumpTxDepth provides a mock function with given fields:

func (*Config) EthGasBumpWei

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

EthGasBumpWei provides a mock function with given fields:

func (*Config) EthGasLimitDefault

func (_m *Config) EthGasLimitDefault() uint64

EthGasLimitDefault provides a mock function with given fields:

func (*Config) EthGasLimitMultiplier

func (_m *Config) EthGasLimitMultiplier() float32

EthGasLimitMultiplier provides a mock function with given fields:

func (*Config) EthGasPriceDefault

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

EthGasPriceDefault provides a mock function with given fields:

func (*Config) EthMaxGasPriceWei

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

EthMaxGasPriceWei provides a mock function with given fields:

func (*Config) EthMaxInFlightTransactions

func (_m *Config) EthMaxInFlightTransactions() uint32

EthMaxInFlightTransactions provides a mock function with given fields:

func (*Config) EthMaxQueuedTransactions

func (_m *Config) EthMaxQueuedTransactions() uint64

EthMaxQueuedTransactions provides a mock function with given fields:

func (*Config) EthNonceAutoSync

func (_m *Config) EthNonceAutoSync() bool

EthNonceAutoSync provides a mock function with given fields:

func (*Config) EthRPCDefaultBatchSize

func (_m *Config) EthRPCDefaultBatchSize() uint32

EthRPCDefaultBatchSize 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) OptimismGasFees

func (_m *Config) OptimismGasFees() bool

OptimismGasFees 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 ReaperConfig

type ReaperConfig struct {
	mock.Mock
}

ReaperConfig is an autogenerated mock type for the ReaperConfig type

func (*ReaperConfig) EthFinalityDepth

func (_m *ReaperConfig) EthFinalityDepth() uint

EthFinalityDepth provides a mock function with given fields:

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:

type TxManager

type TxManager struct {
	mock.Mock
}

TxManager is an autogenerated mock type for the TxManager type

func (*TxManager) Close

func (_m *TxManager) Close() error

Close provides a mock function with given fields:

func (*TxManager) Connect

func (_m *TxManager) Connect(head *models.Head) error

Connect provides a mock function with given fields: head

func (*TxManager) CreateEthTransaction

func (_m *TxManager) CreateEthTransaction(db *gorm.DB, fromAddress common.Address, toAddress common.Address, payload []byte, gasLimit uint64, meta interface{}) (models.EthTx, error)

CreateEthTransaction provides a mock function with given fields: db, fromAddress, toAddress, payload, gasLimit, meta

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 models.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) Start

func (_m *TxManager) Start() error

Start provides a mock function with given fields:

func (*TxManager) Trigger

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

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