Documentation ¶
Index ¶
- type FeeEstimator
- func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) BumpFee(ctx context.Context, originalFee FEE, feeLimit uint32, maxFeePrice MAXPRICE, ...) (FEE, uint32, error)
- func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) Close() error
- func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) GetFee(ctx context.Context, calldata []byte, feeLimit uint32, maxFeePrice MAXPRICE, ...) (FEE, uint32, error)
- func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) HealthReport() map[string]error
- func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) Name() string
- func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) OnNewLongestChain(ctx context.Context, head H)
- func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) Ready() error
- func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) Start(_a0 context.Context) error
- type Head
- type HeadTrackable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeeEstimator ¶
type FeeEstimator[H types.Head, FEE interface{}, MAXPRICE interface{}, HASH interface{}] struct { mock.Mock }
FeeEstimator is an autogenerated mock type for the FeeEstimator type
func NewFeeEstimator ¶
func NewFeeEstimator[H types.Head, FEE interface{}, MAXPRICE interface{}, HASH interface{}](t mockConstructorTestingTNewFeeEstimator) *FeeEstimator[H, FEE, 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, FEE, MAXPRICE, HASH]) BumpFee ¶
func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) BumpFee(ctx context.Context, originalFee FEE, feeLimit uint32, maxFeePrice MAXPRICE, attempts []types.PriorAttempt[FEE, HASH]) (FEE, uint32, error)
BumpFee provides a mock function with given fields: ctx, originalFee, feeLimit, maxFeePrice, attempts
func (*FeeEstimator[H, FEE, MAXPRICE, HASH]) Close ¶
func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) Close() error
Close provides a mock function with given fields:
func (*FeeEstimator[H, FEE, MAXPRICE, HASH]) GetFee ¶
func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) GetFee(ctx context.Context, calldata []byte, feeLimit uint32, maxFeePrice MAXPRICE, opts ...types.Opt) (FEE, uint32, error)
GetFee provides a mock function with given fields: ctx, calldata, feeLimit, maxFeePrice, opts
func (*FeeEstimator[H, FEE, MAXPRICE, HASH]) HealthReport ¶
func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) HealthReport() map[string]error
HealthReport provides a mock function with given fields:
func (*FeeEstimator[H, FEE, MAXPRICE, HASH]) Name ¶
func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) Name() string
Name provides a mock function with given fields:
func (*FeeEstimator[H, FEE, MAXPRICE, HASH]) OnNewLongestChain ¶
func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) OnNewLongestChain(ctx context.Context, head H)
OnNewLongestChain provides a mock function with given fields: ctx, head
func (*FeeEstimator[H, FEE, MAXPRICE, HASH]) Ready ¶
func (_m *FeeEstimator[H, FEE, 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