Documentation ¶
Index ¶
- type FeeEstimator
- func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) BumpFee(ctx context.Context, originalFee F, feeLimit uint32, maxFeePrice MAXPRICE, ...) (F, uint32, error)
- func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) Close() error
- func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) GetFee(ctx context.Context, calldata []byte, feeLimit uint32, maxFeePrice MAXPRICE, ...) (F, uint32, error)
- func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) HealthReport() map[string]error
- func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) Name() string
- func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) OnNewLongestChain(ctx context.Context, head H)
- func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) Ready() error
- func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) Start(_a0 context.Context) error
- type Head
- type HeadTrackable
- type TxAttemptBuilder
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Close() error
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) HealthReport() map[string]error
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Name() string
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewBumpTxAttempt(ctx context.Context, tx TX, previousAttempt TXATTEMPT, ...) (TXATTEMPT, FEE, uint32, bool, error)
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewCustomTxAttempt(tx TX, fee FEE, gasLimit uint32, txType int, lggr logger.Logger) (TXATTEMPT, bool, error)
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewEmptyTxAttempt(nonce uint64, feeLimit uint32, fee FEE, fromAddress ADDR) (TXATTEMPT, error)
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewTxAttempt(ctx context.Context, tx TX, lggr logger.Logger, opts ...types.Opt) (TXATTEMPT, FEE, uint32, bool, error)
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewTxAttemptWithType(ctx context.Context, tx TX, lggr logger.Logger, txType int, opts ...types.Opt) (TXATTEMPT, FEE, uint32, bool, error)
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) OnNewLongestChain(ctx context.Context, head HEAD)
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Ready() error
- func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Start(_a0 context.Context) error
- type TxStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeeEstimator ¶
type FeeEstimator[H types.Head, F types.Fee, MAXPRICE interface{}, HASH interface{}] struct { mock.Mock }
FeeEstimator is an autogenerated mock type for the FeeEstimator type
func NewFeeEstimator ¶
func NewFeeEstimator[H types.Head, F types.Fee, MAXPRICE interface{}, HASH interface{}](t mockConstructorTestingTNewFeeEstimator) *FeeEstimator[H, F, MAXPRICE, HASH]
NewFeeEstimator creates a new instance of FeeEstimator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FeeEstimator[H, F, MAXPRICE, HASH]) BumpFee ¶
func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) BumpFee(ctx context.Context, originalFee F, feeLimit uint32, maxFeePrice MAXPRICE, attempts []types.PriorAttempt[F, HASH]) (F, uint32, error)
BumpFee provides a mock function with given fields: ctx, originalFee, feeLimit, maxFeePrice, attempts
func (*FeeEstimator[H, F, MAXPRICE, HASH]) Close ¶
func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) Close() error
Close provides a mock function with given fields:
func (*FeeEstimator[H, F, MAXPRICE, HASH]) GetFee ¶
func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) GetFee(ctx context.Context, calldata []byte, feeLimit uint32, maxFeePrice MAXPRICE, opts ...types.Opt) (F, uint32, error)
GetFee provides a mock function with given fields: ctx, calldata, feeLimit, maxFeePrice, opts
func (*FeeEstimator[H, F, MAXPRICE, HASH]) HealthReport ¶
func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) HealthReport() map[string]error
HealthReport provides a mock function with given fields:
func (*FeeEstimator[H, F, MAXPRICE, HASH]) Name ¶
func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) Name() string
Name provides a mock function with given fields:
func (*FeeEstimator[H, F, MAXPRICE, HASH]) OnNewLongestChain ¶
func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) OnNewLongestChain(ctx context.Context, head H)
OnNewLongestChain provides a mock function with given fields: ctx, head
func (*FeeEstimator[H, F, MAXPRICE, HASH]) Ready ¶
func (_m *FeeEstimator[H, F, MAXPRICE, HASH]) Ready() error
Ready provides a mock function with given fields:
type Head ¶
Head is an autogenerated mock type for the Head type
func NewHead ¶
func NewHead(t mockConstructorTestingTNewHead) *Head
NewHead creates a new instance of Head. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Head) BlockNumber ¶
BlockNumber provides a mock function with given fields:
func (*Head) ChainLength ¶
ChainLength provides a mock function with given fields:
func (*Head) EarliestHeadInChain ¶
EarliestHeadInChain provides a mock function with given fields:
type HeadTrackable ¶
HeadTrackable is an autogenerated mock type for the HeadTrackable type
func NewHeadTrackable ¶
func NewHeadTrackable[H types.Head](t mockConstructorTestingTNewHeadTrackable) *HeadTrackable[H]
NewHeadTrackable creates a new instance of HeadTrackable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*HeadTrackable[H]) OnNewLongestChain ¶
func (_m *HeadTrackable[H]) OnNewLongestChain(ctx context.Context, head H)
OnNewLongestChain provides a mock function with given fields: ctx, head
type TxAttemptBuilder ¶
type TxAttemptBuilder[HEAD types.Head, FEE types.Fee, ADDR interface{}, TXHASH interface{}, TX interface{}, TXATTEMPT interface{}] struct { mock.Mock }
TxAttemptBuilder is an autogenerated mock type for the TxAttemptBuilder type
func NewTxAttemptBuilder ¶
func NewTxAttemptBuilder[HEAD types.Head, FEE types.Fee, ADDR interface{}, TXHASH interface{}, TX interface{}, TXATTEMPT interface{}](t mockConstructorTestingTNewTxAttemptBuilder) *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]
NewTxAttemptBuilder creates a new instance of TxAttemptBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Close ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Close() error
Close provides a mock function with given fields:
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) HealthReport ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) HealthReport() map[string]error
HealthReport provides a mock function with given fields:
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Name ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Name() string
Name provides a mock function with given fields:
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewBumpTxAttempt ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewBumpTxAttempt(ctx context.Context, tx TX, previousAttempt TXATTEMPT, priorAttempts []types.PriorAttempt[FEE, TXHASH], lggr logger.Logger) (TXATTEMPT, FEE, uint32, bool, error)
NewBumpTxAttempt provides a mock function with given fields: ctx, tx, previousAttempt, priorAttempts, lggr
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewCustomTxAttempt ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewCustomTxAttempt(tx TX, fee FEE, gasLimit uint32, txType int, lggr logger.Logger) (TXATTEMPT, bool, error)
NewCustomTxAttempt provides a mock function with given fields: tx, fee, gasLimit, txType, lggr
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewEmptyTxAttempt ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewEmptyTxAttempt(nonce uint64, feeLimit uint32, fee FEE, fromAddress ADDR) (TXATTEMPT, error)
NewEmptyTxAttempt provides a mock function with given fields: nonce, feeLimit, fee, fromAddress
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewTxAttempt ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewTxAttempt(ctx context.Context, tx TX, lggr logger.Logger, opts ...types.Opt) (TXATTEMPT, FEE, uint32, bool, error)
NewTxAttempt provides a mock function with given fields: ctx, tx, lggr, opts
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewTxAttemptWithType ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) NewTxAttemptWithType(ctx context.Context, tx TX, lggr logger.Logger, txType int, opts ...types.Opt) (TXATTEMPT, FEE, uint32, bool, error)
NewTxAttemptWithType provides a mock function with given fields: ctx, tx, lggr, txType, opts
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) OnNewLongestChain ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) OnNewLongestChain(ctx context.Context, head HEAD)
OnNewLongestChain provides a mock function with given fields: ctx, head
func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Ready ¶
func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Ready() error
Ready provides a mock function with given fields:
type TxStrategy ¶
TxStrategy is an autogenerated mock type for the TxStrategy type
func NewTxStrategy ¶
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(pruneService types.UnstartedTxQueuePruner, qopt pg.QOpt) (int64, error)
PruneQueue provides a mock function with given fields: pruneService, qopt
func (*TxStrategy) Subject ¶
func (_m *TxStrategy) Subject() uuid.NullUUID
Subject provides a mock function with given fields: