mocks

package
v2.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 7 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, 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:

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

func (_m *FeeEstimator[H, F, 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

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:

func (*TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Start

func (_m *TxAttemptBuilder[HEAD, FEE, ADDR, TXHASH, TX, TXATTEMPT]) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type TxStrategy

type TxStrategy struct {
	mock.Mock
}

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:

Jump to

Keyboard shortcuts

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