mocks

package
v2.8.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogPoller

type LogPoller struct {
	mock.Mock
}

LogPoller is an autogenerated mock type for the LogPoller type

func NewLogPoller

func NewLogPoller(t interface {
	mock.TestingT
	Cleanup(func())
}) *LogPoller

NewLogPoller creates a new instance of LogPoller. 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 (*LogPoller) Close

func (_m *LogPoller) Close() error

Close provides a mock function with given fields:

func (*LogPoller) GetBlocksRange

func (_m *LogPoller) GetBlocksRange(ctx context.Context, numbers []uint64, qopts ...pg.QOpt) ([]logpoller.LogPollerBlock, error)

GetBlocksRange provides a mock function with given fields: ctx, numbers, qopts

func (*LogPoller) HasFilter added in v2.6.0

func (_m *LogPoller) HasFilter(name string) bool

HasFilter provides a mock function with given fields: name

func (*LogPoller) HealthReport

func (_m *LogPoller) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*LogPoller) IndexedLogs

func (_m *LogPoller) IndexedLogs(eventSig common.Hash, address common.Address, topicIndex int, topicValues []common.Hash, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

IndexedLogs provides a mock function with given fields: eventSig, address, topicIndex, topicValues, confs, qopts

func (*LogPoller) IndexedLogsByBlockRange

func (_m *LogPoller) IndexedLogsByBlockRange(start int64, end int64, eventSig common.Hash, address common.Address, topicIndex int, topicValues []common.Hash, qopts ...pg.QOpt) ([]logpoller.Log, error)

IndexedLogsByBlockRange provides a mock function with given fields: start, end, eventSig, address, topicIndex, topicValues, qopts

func (*LogPoller) IndexedLogsByTxHash added in v2.6.0

func (_m *LogPoller) IndexedLogsByTxHash(eventSig common.Hash, address common.Address, txHash common.Hash, qopts ...pg.QOpt) ([]logpoller.Log, error)

IndexedLogsByTxHash provides a mock function with given fields: eventSig, address, txHash, qopts

func (*LogPoller) IndexedLogsCreatedAfter added in v2.3.0

func (_m *LogPoller) IndexedLogsCreatedAfter(eventSig common.Hash, address common.Address, topicIndex int, topicValues []common.Hash, after time.Time, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

IndexedLogsCreatedAfter provides a mock function with given fields: eventSig, address, topicIndex, topicValues, after, confs, qopts

func (*LogPoller) IndexedLogsTopicGreaterThan

func (_m *LogPoller) IndexedLogsTopicGreaterThan(eventSig common.Hash, address common.Address, topicIndex int, topicValueMin common.Hash, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

IndexedLogsTopicGreaterThan provides a mock function with given fields: eventSig, address, topicIndex, topicValueMin, confs, qopts

func (*LogPoller) IndexedLogsTopicRange

func (_m *LogPoller) IndexedLogsTopicRange(eventSig common.Hash, address common.Address, topicIndex int, topicValueMin common.Hash, topicValueMax common.Hash, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

IndexedLogsTopicRange provides a mock function with given fields: eventSig, address, topicIndex, topicValueMin, topicValueMax, confs, qopts

func (*LogPoller) IndexedLogsWithSigsExcluding added in v2.1.0

func (_m *LogPoller) IndexedLogsWithSigsExcluding(address common.Address, eventSigA common.Hash, eventSigB common.Hash, topicIndex int, fromBlock int64, toBlock int64, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

IndexedLogsWithSigsExcluding provides a mock function with given fields: address, eventSigA, eventSigB, topicIndex, fromBlock, toBlock, confs, qopts

func (*LogPoller) LatestBlock

func (_m *LogPoller) LatestBlock(qopts ...pg.QOpt) (logpoller.LogPollerBlock, error)

LatestBlock provides a mock function with given fields: qopts

func (*LogPoller) LatestBlockByEventSigsAddrsWithConfs added in v2.4.0

func (_m *LogPoller) LatestBlockByEventSigsAddrsWithConfs(fromBlock int64, eventSigs []common.Hash, addresses []common.Address, confs logpoller.Confirmations, qopts ...pg.QOpt) (int64, error)

LatestBlockByEventSigsAddrsWithConfs provides a mock function with given fields: fromBlock, eventSigs, addresses, confs, qopts

func (*LogPoller) LatestLogByEventSigWithConfs

func (_m *LogPoller) LatestLogByEventSigWithConfs(eventSig common.Hash, address common.Address, confs logpoller.Confirmations, qopts ...pg.QOpt) (*logpoller.Log, error)

LatestLogByEventSigWithConfs provides a mock function with given fields: eventSig, address, confs, qopts

func (*LogPoller) LatestLogEventSigsAddrsWithConfs

func (_m *LogPoller) LatestLogEventSigsAddrsWithConfs(fromBlock int64, eventSigs []common.Hash, addresses []common.Address, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

LatestLogEventSigsAddrsWithConfs provides a mock function with given fields: fromBlock, eventSigs, addresses, confs, qopts

func (*LogPoller) Logs

func (_m *LogPoller) Logs(start int64, end int64, eventSig common.Hash, address common.Address, qopts ...pg.QOpt) ([]logpoller.Log, error)

Logs provides a mock function with given fields: start, end, eventSig, address, qopts

func (*LogPoller) LogsCreatedAfter added in v2.3.0

func (_m *LogPoller) LogsCreatedAfter(eventSig common.Hash, address common.Address, _a2 time.Time, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

LogsCreatedAfter provides a mock function with given fields: eventSig, address, _a2, confs, qopts

func (*LogPoller) LogsDataWordBetween added in v2.8.0

func (_m *LogPoller) LogsDataWordBetween(eventSig common.Hash, address common.Address, wordIndexMin int, wordIndexMax int, wordValue common.Hash, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

LogsDataWordBetween provides a mock function with given fields: eventSig, address, wordIndexMin, wordIndexMax, wordValue, confs, qopts

func (*LogPoller) LogsDataWordGreaterThan

func (_m *LogPoller) LogsDataWordGreaterThan(eventSig common.Hash, address common.Address, wordIndex int, wordValueMin common.Hash, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

LogsDataWordGreaterThan provides a mock function with given fields: eventSig, address, wordIndex, wordValueMin, confs, qopts

func (*LogPoller) LogsDataWordRange

func (_m *LogPoller) LogsDataWordRange(eventSig common.Hash, address common.Address, wordIndex int, wordValueMin common.Hash, wordValueMax common.Hash, confs logpoller.Confirmations, qopts ...pg.QOpt) ([]logpoller.Log, error)

LogsDataWordRange provides a mock function with given fields: eventSig, address, wordIndex, wordValueMin, wordValueMax, confs, qopts

func (*LogPoller) LogsWithSigs

func (_m *LogPoller) LogsWithSigs(start int64, end int64, eventSigs []common.Hash, address common.Address, qopts ...pg.QOpt) ([]logpoller.Log, error)

LogsWithSigs provides a mock function with given fields: start, end, eventSigs, address, qopts

func (*LogPoller) Name

func (_m *LogPoller) Name() string

Name provides a mock function with given fields:

func (*LogPoller) Ready

func (_m *LogPoller) Ready() error

Ready provides a mock function with given fields:

func (*LogPoller) RegisterFilter

func (_m *LogPoller) RegisterFilter(filter logpoller.Filter, qopts ...pg.QOpt) error

RegisterFilter provides a mock function with given fields: filter, qopts

func (*LogPoller) Replay

func (_m *LogPoller) Replay(ctx context.Context, fromBlock int64) error

Replay provides a mock function with given fields: ctx, fromBlock

func (*LogPoller) ReplayAsync added in v2.1.0

func (_m *LogPoller) ReplayAsync(fromBlock int64)

ReplayAsync provides a mock function with given fields: fromBlock

func (*LogPoller) Start

func (_m *LogPoller) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*LogPoller) UnregisterFilter

func (_m *LogPoller) UnregisterFilter(name string, qopts ...pg.QOpt) error

UnregisterFilter provides a mock function with given fields: name, qopts

Jump to

Keyboard shortcuts

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