ethblocklistenermocks

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockListener

type BlockListener struct {
	mock.Mock
}

BlockListener is an autogenerated mock type for the BlockListener type

func NewBlockListener

func NewBlockListener(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockListener

NewBlockListener creates a new instance of BlockListener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BlockListener) AddConsumer

AddConsumer provides a mock function with given fields: ctx, c

func (*BlockListener) FetchBlockReceiptsAsync

func (_m *BlockListener) FetchBlockReceiptsAsync(blockNumber uint64, blockHash ethtypes.HexBytes0xPrefix, cb func([]*ethrpc.TxReceiptJSONRPC, error))

FetchBlockReceiptsAsync provides a mock function with given fields: blockNumber, blockHash, cb

func (*BlockListener) GetBackend

func (_m *BlockListener) GetBackend() rpcbackend.RPC

GetBackend provides a mock function with no fields

func (*BlockListener) GetBlockInfoByHash

func (_m *BlockListener) GetBlockInfoByHash(ctx context.Context, hash0xString string) (*ethrpc.BlockInfoJSONRPC, error)

GetBlockInfoByHash provides a mock function with given fields: ctx, hash0xString

func (*BlockListener) GetBlockInfoByNumber

func (_m *BlockListener) GetBlockInfoByNumber(ctx context.Context, blockNumber uint64, allowCache bool, expectedParentHashStr string, expectedBlockHashStr string) (*ethrpc.BlockInfoJSONRPC, error)

GetBlockInfoByNumber provides a mock function with given fields: ctx, blockNumber, allowCache, expectedParentHashStr, expectedBlockHashStr

func (*BlockListener) GetEVMBlockWithTransactionsByHash

func (_m *BlockListener) GetEVMBlockWithTransactionsByHash(ctx context.Context, hash0xString string) (*ethrpc.EVMBlockWithTransactionsJSONRPC, error)

GetEVMBlockWithTransactionsByHash provides a mock function with given fields: ctx, hash0xString

func (*BlockListener) GetEVMBlockWithTransactionsByNumber

func (_m *BlockListener) GetEVMBlockWithTransactionsByNumber(ctx context.Context, numberLookup string) (*ethrpc.EVMBlockWithTransactionsJSONRPC, error)

GetEVMBlockWithTransactionsByNumber provides a mock function with given fields: ctx, numberLookup

func (*BlockListener) GetEVMBlockWithTxHashesByHash

func (_m *BlockListener) GetEVMBlockWithTxHashesByHash(ctx context.Context, hash0xString string) (*ethrpc.EVMBlockWithTxHashesJSONRPC, error)

GetEVMBlockWithTxHashesByHash provides a mock function with given fields: ctx, hash0xString

func (*BlockListener) GetEVMBlockWithTxHashesByNumber

func (_m *BlockListener) GetEVMBlockWithTxHashesByNumber(ctx context.Context, numberLookup string) (*ethrpc.EVMBlockWithTxHashesJSONRPC, error)

GetEVMBlockWithTxHashesByNumber provides a mock function with given fields: ctx, numberLookup

func (*BlockListener) GetHighestBlock

func (_m *BlockListener) GetHighestBlock(ctx context.Context) (uint64, bool)

GetHighestBlock provides a mock function with given fields: ctx

func (*BlockListener) GetMonitoredHeadLength

func (_m *BlockListener) GetMonitoredHeadLength() int

GetMonitoredHeadLength provides a mock function with no fields

func (*BlockListener) ReconcileConfirmationsForTransaction

func (_m *BlockListener) ReconcileConfirmationsForTransaction(ctx context.Context, txHash string, existingConfirmations []*ffcapi.MinimalBlockInfo, targetConfirmationCount uint64) (*ffcapi.ConfirmationUpdateResult, *ethrpc.TxReceiptJSONRPC, error)

ReconcileConfirmationsForTransaction provides a mock function with given fields: ctx, txHash, existingConfirmations, targetConfirmationCount

func (*BlockListener) RemoveConsumer

func (_m *BlockListener) RemoveConsumer(ctx context.Context, id *fftypes.UUID)

RemoveConsumer provides a mock function with given fields: ctx, id

func (*BlockListener) SnapshotMonitoredHeadChain

func (_m *BlockListener) SnapshotMonitoredHeadChain() []*ethrpc.BlockInfoJSONRPC

SnapshotMonitoredHeadChain provides a mock function with no fields

func (*BlockListener) UTSetBackend

func (_m *BlockListener) UTSetBackend(_a0 rpcbackend.RPC)

UTSetBackend provides a mock function with given fields: _a0

func (*BlockListener) WaitClosed

func (_m *BlockListener) WaitClosed()

WaitClosed provides a mock function with no fields

Jump to

Keyboard shortcuts

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