Documentation
¶
Index ¶
- type BlockListener
- func (_m *BlockListener) AddConsumer(ctx context.Context, c *ethblocklistener.BlockUpdateConsumer)
- func (_m *BlockListener) FetchBlockReceiptsAsync(blockNumber uint64, blockHash ethtypes.HexBytes0xPrefix, ...)
- func (_m *BlockListener) GetBlockGasLimit() *ethtypes.HexInteger
- func (_m *BlockListener) GetBlockInfoByHash(ctx context.Context, hash0xString string) (*ethrpc.BlockInfoJSONRPC, error)
- func (_m *BlockListener) GetBlockInfoByNumber(ctx context.Context, blockNumber uint64, allowCache bool, ...) (*ethrpc.BlockInfoJSONRPC, error)
- func (_m *BlockListener) GetEVMBlockWithTransactionsByHash(ctx context.Context, hash0xString string) (*ethrpc.EVMBlockWithTransactionsJSONRPC, error)
- func (_m *BlockListener) GetEVMBlockWithTransactionsByNumber(ctx context.Context, numberLookup string) (*ethrpc.EVMBlockWithTransactionsJSONRPC, error)
- func (_m *BlockListener) GetEVMBlockWithTxHashesByHash(ctx context.Context, hash0xString string) (*ethrpc.EVMBlockWithTxHashesJSONRPC, error)
- func (_m *BlockListener) GetEVMBlockWithTxHashesByNumber(ctx context.Context, numberLookup string) (*ethrpc.EVMBlockWithTxHashesJSONRPC, error)
- func (_m *BlockListener) GetHighestBlock(ctx context.Context) (uint64, bool)
- func (_m *BlockListener) GetHighestBlockInfo(ctx context.Context) (*ethrpc.BlockInfoJSONRPC, bool)
- func (_m *BlockListener) GetMonitoredHeadLength() int
- func (_m *BlockListener) IncLightModeDriftViolation()
- func (_m *BlockListener) IncLightModeRangeAhead()
- func (_m *BlockListener) InitMetrics(ctx context.Context, registry metric.MetricsRegistry) error
- func (_m *BlockListener) ReconcileConfirmationsForTransaction(ctx context.Context, txHash string, ...) (*ethblocklistener.ConfirmationUpdateResult, *ethrpc.TxReceiptJSONRPC, error)
- func (_m *BlockListener) RemoveConsumer(ctx context.Context, id *fftypes.UUID)
- func (_m *BlockListener) SnapshotMonitoredHeadChain() []*ethrpc.BlockInfoJSONRPC
- func (_m *BlockListener) WaitClosed()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockListener ¶
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 ¶
func (_m *BlockListener) AddConsumer(ctx context.Context, c *ethblocklistener.BlockUpdateConsumer)
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) GetBlockGasLimit ¶
func (_m *BlockListener) GetBlockGasLimit() *ethtypes.HexInteger
GetBlockGasLimit 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) GetHighestBlockInfo ¶ added in v1.5.2
func (_m *BlockListener) GetHighestBlockInfo(ctx context.Context) (*ethrpc.BlockInfoJSONRPC, bool)
GetHighestBlockInfo 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) IncLightModeDriftViolation ¶ added in v1.5.3
func (_m *BlockListener) IncLightModeDriftViolation()
IncLightModeDriftViolation provides a mock function with no fields
func (*BlockListener) IncLightModeRangeAhead ¶ added in v1.5.3
func (_m *BlockListener) IncLightModeRangeAhead()
IncLightModeRangeAhead provides a mock function with no fields
func (*BlockListener) InitMetrics ¶ added in v1.5.2
func (_m *BlockListener) InitMetrics(ctx context.Context, registry metric.MetricsRegistry) error
InitMetrics provides a mock function with given fields: ctx, registry
func (*BlockListener) ReconcileConfirmationsForTransaction ¶
func (_m *BlockListener) ReconcileConfirmationsForTransaction(ctx context.Context, txHash string, existingConfirmations []*ethrpc.MinimalBlockInfo, targetConfirmationCount uint64) (*ethblocklistener.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) WaitClosed ¶
func (_m *BlockListener) WaitClosed()
WaitClosed provides a mock function with no fields