Documentation ¶
Index ¶
- type Config
- func (_m *Config) BlockHistoryEstimatorBatchSize() uint32
- func (_m *Config) BlockHistoryEstimatorBlockDelay() uint16
- func (_m *Config) BlockHistoryEstimatorBlockHistorySize() uint16
- func (_m *Config) BlockHistoryEstimatorCheckInclusionBlocks() uint16
- func (_m *Config) BlockHistoryEstimatorCheckInclusionPercentile() uint16
- func (_m *Config) BlockHistoryEstimatorEIP1559FeeCapBufferBlocks() uint16
- func (_m *Config) BlockHistoryEstimatorTransactionPercentile() uint16
- func (_m *Config) ChainType() config.ChainType
- func (_m *Config) DatabaseDefaultQueryTimeout() time.Duration
- func (_m *Config) EthTxReaperInterval() time.Duration
- func (_m *Config) EthTxReaperThreshold() time.Duration
- func (_m *Config) EthTxResendAfterThreshold() time.Duration
- func (_m *Config) EvmEIP1559DynamicFees() bool
- func (_m *Config) EvmFinalityDepth() uint32
- func (_m *Config) EvmGasBumpPercent() uint16
- func (_m *Config) EvmGasBumpThreshold() uint64
- func (_m *Config) EvmGasBumpTxDepth() uint16
- func (_m *Config) EvmGasBumpWei() *assets.Wei
- func (_m *Config) EvmGasFeeCapDefault() *assets.Wei
- func (_m *Config) EvmGasLimitDefault() uint32
- func (_m *Config) EvmGasLimitMax() uint32
- func (_m *Config) EvmGasLimitMultiplier() float32
- func (_m *Config) EvmGasPriceDefault() *assets.Wei
- func (_m *Config) EvmGasTipCapDefault() *assets.Wei
- func (_m *Config) EvmGasTipCapMinimum() *assets.Wei
- func (_m *Config) EvmMaxGasPriceWei() *assets.Wei
- func (_m *Config) EvmMaxInFlightTransactions() uint32
- func (_m *Config) EvmMaxQueuedTransactions() uint64
- func (_m *Config) EvmMinGasPriceWei() *assets.Wei
- func (_m *Config) EvmNonceAutoSync() bool
- func (_m *Config) EvmRPCDefaultBatchSize() uint32
- func (_m *Config) EvmUseForwarders() bool
- func (_m *Config) GasEstimatorMode() string
- func (_m *Config) KeySpecificMaxGasPriceWei(addr common.Address) *assets.Wei
- func (_m *Config) LogSQL() bool
- func (_m *Config) TriggerFallbackDBPollInterval() time.Duration
- type ORM
- func (_m *ORM) EthTransactions(offset int, limit int) ([]txmgr.EthTx, int, error)
- func (_m *ORM) EthTransactionsWithAttempts(offset int, limit int) ([]txmgr.EthTx, int, error)
- func (_m *ORM) EthTxAttempts(offset int, limit int) ([]txmgr.EthTxAttempt, int, error)
- func (_m *ORM) FindEthTxAttempt(hash common.Hash) (*txmgr.EthTxAttempt, error)
- func (_m *ORM) FindEthTxAttemptsByEthTxIDs(ids []int64) ([]txmgr.EthTxAttempt, error)
- func (_m *ORM) FindEthTxByHash(hash common.Hash) (*txmgr.EthTx, error)
- func (_m *ORM) FindEthTxWithAttempts(etxID int64) (txmgr.EthTx, error)
- func (_m *ORM) InsertEthReceipt(receipt *txmgr.EthReceipt) error
- func (_m *ORM) InsertEthTx(etx *txmgr.EthTx) error
- func (_m *ORM) InsertEthTxAttempt(attempt *txmgr.EthTxAttempt) error
- type ReaperConfig
- type TxManager
- func (_m *TxManager) Close() error
- func (_m *TxManager) CreateEthTransaction(newTx txmgr.NewTx, qopts ...pg.QOpt) (txmgr.EthTx, error)
- func (_m *TxManager) GetForwarderForEOA(eoa common.Address) (common.Address, error)
- func (_m *TxManager) GetGasEstimator() gas.Estimator
- func (_m *TxManager) Healthy() error
- func (_m *TxManager) OnNewLongestChain(ctx context.Context, head *types.Head)
- func (_m *TxManager) Ready() error
- func (_m *TxManager) RegisterResumeCallback(fn txmgr.ResumeCallback)
- func (_m *TxManager) Reset(f func(), addr common.Address, abandon bool) error
- func (_m *TxManager) SendEther(chainID *big.Int, from common.Address, to common.Address, value assets.Eth, ...) (txmgr.EthTx, error)
- func (_m *TxManager) Start(_a0 context.Context) error
- func (_m *TxManager) Trigger(addr common.Address)
- type TxStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
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 ¶
BlockHistoryEstimatorBatchSize provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorBlockDelay ¶
BlockHistoryEstimatorBlockDelay provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorBlockHistorySize ¶
BlockHistoryEstimatorBlockHistorySize provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorCheckInclusionBlocks ¶ added in v1.10.0
BlockHistoryEstimatorCheckInclusionBlocks provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorCheckInclusionPercentile ¶ added in v1.10.0
BlockHistoryEstimatorCheckInclusionPercentile provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorEIP1559FeeCapBufferBlocks ¶
BlockHistoryEstimatorEIP1559FeeCapBufferBlocks provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorTransactionPercentile ¶
BlockHistoryEstimatorTransactionPercentile provides a mock function with given fields:
func (*Config) DatabaseDefaultQueryTimeout ¶ added in v1.10.0
DatabaseDefaultQueryTimeout provides a mock function with given fields:
func (*Config) EthTxReaperInterval ¶
EthTxReaperInterval provides a mock function with given fields:
func (*Config) EthTxReaperThreshold ¶
EthTxReaperThreshold provides a mock function with given fields:
func (*Config) EthTxResendAfterThreshold ¶
EthTxResendAfterThreshold provides a mock function with given fields:
func (*Config) EvmEIP1559DynamicFees ¶
EvmEIP1559DynamicFees provides a mock function with given fields:
func (*Config) EvmFinalityDepth ¶
EvmFinalityDepth provides a mock function with given fields:
func (*Config) EvmGasBumpPercent ¶
EvmGasBumpPercent provides a mock function with given fields:
func (*Config) EvmGasBumpThreshold ¶
EvmGasBumpThreshold provides a mock function with given fields:
func (*Config) EvmGasBumpTxDepth ¶
EvmGasBumpTxDepth provides a mock function with given fields:
func (*Config) EvmGasBumpWei ¶
EvmGasBumpWei provides a mock function with given fields:
func (*Config) EvmGasFeeCapDefault ¶
EvmGasFeeCapDefault provides a mock function with given fields:
func (*Config) EvmGasLimitDefault ¶
EvmGasLimitDefault provides a mock function with given fields:
func (*Config) EvmGasLimitMax ¶ added in v1.8.1
EvmGasLimitMax provides a mock function with given fields:
func (*Config) EvmGasLimitMultiplier ¶
EvmGasLimitMultiplier provides a mock function with given fields:
func (*Config) EvmGasPriceDefault ¶
EvmGasPriceDefault provides a mock function with given fields:
func (*Config) EvmGasTipCapDefault ¶
EvmGasTipCapDefault provides a mock function with given fields:
func (*Config) EvmGasTipCapMinimum ¶
EvmGasTipCapMinimum provides a mock function with given fields:
func (*Config) EvmMaxGasPriceWei ¶
EvmMaxGasPriceWei provides a mock function with given fields:
func (*Config) EvmMaxInFlightTransactions ¶
EvmMaxInFlightTransactions provides a mock function with given fields:
func (*Config) EvmMaxQueuedTransactions ¶
EvmMaxQueuedTransactions provides a mock function with given fields:
func (*Config) EvmMinGasPriceWei ¶
EvmMinGasPriceWei provides a mock function with given fields:
func (*Config) EvmNonceAutoSync ¶
EvmNonceAutoSync provides a mock function with given fields:
func (*Config) EvmRPCDefaultBatchSize ¶
EvmRPCDefaultBatchSize provides a mock function with given fields:
func (*Config) EvmUseForwarders ¶ added in v1.5.0
EvmUseForwarders provides a mock function with given fields:
func (*Config) GasEstimatorMode ¶
GasEstimatorMode provides a mock function with given fields:
func (*Config) KeySpecificMaxGasPriceWei ¶
KeySpecificMaxGasPriceWei provides a mock function with given fields: addr
func (*Config) TriggerFallbackDBPollInterval ¶
TriggerFallbackDBPollInterval provides a mock function with given fields:
type ORM ¶
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 ¶
EthTransactions provides a mock function with given fields: offset, limit
func (*ORM) EthTransactionsWithAttempts ¶
EthTransactionsWithAttempts provides a mock function with given fields: offset, limit
func (*ORM) EthTxAttempts ¶
EthTxAttempts provides a mock function with given fields: offset, limit
func (*ORM) FindEthTxAttempt ¶
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 ¶
FindEthTxByHash provides a mock function with given fields: hash
func (*ORM) FindEthTxWithAttempts ¶
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 ¶
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 ¶
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 ¶
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) CreateEthTransaction ¶
CreateEthTransaction provides a mock function with given fields: newTx, qopts
func (*TxManager) GetForwarderForEOA ¶ added in v1.9.0
GetForwarderForEOA provides a mock function with given fields: eoa
func (*TxManager) GetGasEstimator ¶
GetGasEstimator provides a mock function with given fields:
func (*TxManager) OnNewLongestChain ¶
OnNewLongestChain provides a mock function with given fields: ctx, head
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
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
type TxStrategy ¶
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: