mocks

package
v1.13.0-healthchecks1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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:

func (*FeeEstimator[H, FEE, MAXPRICE, HASH]) Start

func (_m *FeeEstimator[H, FEE, MAXPRICE, HASH]) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type Head struct {
	mock.Mock
}

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) BlockHash

func (_m *Head) BlockHash() common.Hash

BlockHash provides a mock function with given fields:

func (*Head) BlockNumber

func (_m *Head) BlockNumber() int64

BlockNumber provides a mock function with given fields:

func (*Head) ChainLength

func (_m *Head) ChainLength() uint32

ChainLength provides a mock function with given fields:

func (*Head) EarliestHeadInChain

func (_m *Head) EarliestHeadInChain() types.Head

EarliestHeadInChain provides a mock function with given fields:

func (*Head) GetParent

func (_m *Head) GetParent() types.Head

GetParent provides a mock function with given fields:

func (*Head) HashAtHeight

func (_m *Head) HashAtHeight(blockNum int64) common.Hash

HashAtHeight provides a mock function with given fields: blockNum

type HeadTrackable

type HeadTrackable[H types.Head] struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL