mocks

package
v0.10.13 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.10.8

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the Config type

func (*Config) BlockHistoryEstimatorBatchSize added in v0.10.10

func (_m *Config) BlockHistoryEstimatorBatchSize() uint32

BlockHistoryEstimatorBatchSize provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorBlockDelay added in v0.10.10

func (_m *Config) BlockHistoryEstimatorBlockDelay() uint16

BlockHistoryEstimatorBlockDelay provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorBlockHistorySize added in v0.10.10

func (_m *Config) BlockHistoryEstimatorBlockHistorySize() uint16

BlockHistoryEstimatorBlockHistorySize provides a mock function with given fields:

func (*Config) BlockHistoryEstimatorTransactionPercentile added in v0.10.10

func (_m *Config) BlockHistoryEstimatorTransactionPercentile() uint16

BlockHistoryEstimatorTransactionPercentile provides a mock function with given fields:

func (*Config) ChainID added in v0.10.8

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

ChainID provides a mock function with given fields:

func (*Config) EthFinalityDepth added in v0.10.8

func (_m *Config) EthFinalityDepth() uint

EthFinalityDepth provides a mock function with given fields:

func (*Config) EthGasBumpPercent added in v0.10.8

func (_m *Config) EthGasBumpPercent() uint16

EthGasBumpPercent provides a mock function with given fields:

func (*Config) EthGasBumpThreshold added in v0.10.8

func (_m *Config) EthGasBumpThreshold() uint64

EthGasBumpThreshold provides a mock function with given fields:

func (*Config) EthGasBumpTxDepth added in v0.10.8

func (_m *Config) EthGasBumpTxDepth() uint16

EthGasBumpTxDepth provides a mock function with given fields:

func (*Config) EthGasBumpWei added in v0.10.8

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

EthGasBumpWei provides a mock function with given fields:

func (*Config) EthGasLimitDefault added in v0.10.8

func (_m *Config) EthGasLimitDefault() uint64

EthGasLimitDefault provides a mock function with given fields:

func (*Config) EthGasLimitMultiplier added in v0.10.8

func (_m *Config) EthGasLimitMultiplier() float32

EthGasLimitMultiplier provides a mock function with given fields:

func (*Config) EthGasPriceDefault added in v0.10.8

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

EthGasPriceDefault provides a mock function with given fields:

func (*Config) EthMaxGasPriceWei added in v0.10.8

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

EthMaxGasPriceWei provides a mock function with given fields:

func (*Config) EthMaxInFlightTransactions added in v0.10.8

func (_m *Config) EthMaxInFlightTransactions() uint32

EthMaxInFlightTransactions provides a mock function with given fields:

func (*Config) EthMaxQueuedTransactions added in v0.10.8

func (_m *Config) EthMaxQueuedTransactions() uint64

EthMaxQueuedTransactions provides a mock function with given fields:

func (*Config) EthMinGasPriceWei added in v0.10.10

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

EthMinGasPriceWei provides a mock function with given fields:

func (*Config) EthNonceAutoSync added in v0.10.8

func (_m *Config) EthNonceAutoSync() bool

EthNonceAutoSync provides a mock function with given fields:

func (*Config) EthRPCDefaultBatchSize added in v0.10.8

func (_m *Config) EthRPCDefaultBatchSize() uint32

EthRPCDefaultBatchSize provides a mock function with given fields:

func (*Config) EthTxReaperInterval added in v0.10.8

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

EthTxReaperInterval provides a mock function with given fields:

func (*Config) EthTxReaperThreshold added in v0.10.8

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

EthTxReaperThreshold provides a mock function with given fields:

func (*Config) EthTxResendAfterThreshold added in v0.10.8

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

EthTxResendAfterThreshold provides a mock function with given fields:

func (*Config) GasEstimatorMode added in v0.10.10

func (_m *Config) GasEstimatorMode() string

GasEstimatorMode provides a mock function with given fields:

func (*Config) TriggerFallbackDBPollInterval added in v0.10.8

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 added in v0.10.8

type TxManager struct {
	mock.Mock
}

TxManager is an autogenerated mock type for the TxManager type

func (*TxManager) Close added in v0.10.8

func (_m *TxManager) Close() error

Close provides a mock function with given fields:

func (*TxManager) Connect added in v0.10.8

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

Connect provides a mock function with given fields: head

func (*TxManager) CreateEthTransaction added in v0.10.8

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

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

func (*TxManager) GetGasEstimator added in v0.10.10

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

GetGasEstimator provides a mock function with given fields:

func (*TxManager) Healthy added in v0.10.8

func (_m *TxManager) Healthy() error

Healthy provides a mock function with given fields:

func (*TxManager) OnNewLongestChain added in v0.10.8

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

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

func (*TxManager) Ready added in v0.10.8

func (_m *TxManager) Ready() error

Ready provides a mock function with given fields:

func (*TxManager) Start added in v0.10.8

func (_m *TxManager) Start() error

Start provides a mock function with given fields:

func (*TxManager) Trigger added in v0.10.8

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

Trigger provides a mock function with given fields: addr

type TxStrategy added in v0.10.9

type TxStrategy struct {
	mock.Mock
}

TxStrategy is an autogenerated mock type for the TxStrategy type

func (*TxStrategy) PruneQueue added in v0.10.9

func (_m *TxStrategy) PruneQueue(tx *gorm.DB) (int64, error)

PruneQueue provides a mock function with given fields: tx

func (*TxStrategy) Subject added in v0.10.9

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