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) Database() config.Database
- 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() uint32
- 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
- type MockEvmTxManager
- type MockEvmTxStore
- type TxManager
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Close() error
- 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)
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) GetForwarderForEOA(eoa ADDR) (ADDR, error)
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) HealthReport() map[string]error
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Name() string
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) OnNewLongestChain(ctx context.Context, head HEAD)
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Ready() error
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) RegisterResumeCallback(fn txmgr.ResumeCallback)
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Reset(f func(), addr ADDR, abandon bool) error
- 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)
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Start(_a0 context.Context) error
- func (_m *TxManager[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE, ADD]) Trigger(addr ADDR)
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 ¶
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 ¶
BlockHistoryEstimatorCheckInclusionBlocks provides a mock function with given fields:
func (*Config) BlockHistoryEstimatorCheckInclusionPercentile ¶
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 ¶
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 ¶
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 ¶
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
type MockEvmTxManager ¶ added in v2.1.0
type MockEvmTxManager = TxManager[*big.Int, *evmtypes.Head, common.Address, common.Hash, common.Hash, *evmtypes.Receipt, evmtypes.Nonce, gas.EvmFee, txmgr.EvmAccessList]
func NewMockEvmTxManager ¶ added in v2.1.0
func NewMockEvmTxManager(t *testing.T) *MockEvmTxManager
type MockEvmTxStore ¶ added in v2.1.0
type MockEvmTxStore = mocks.TxStore[common.Address, *big.Int, common.Hash, common.Hash, *evmtypes.Receipt, evmtypes.Nonce, gas.EvmFee, txmgr.EvmAccessList]
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 ¶
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 ¶
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 ¶
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