Documentation ¶
Index ¶
- type LogPoller
- func (_m *LogPoller) Close() error
- func (_m *LogPoller) DeleteLogsAndBlocksAfter(ctx context.Context, start int64) error
- func (_m *LogPoller) FilteredLogs(ctx context.Context, filter query.KeyFilter, limitAndSort query.LimitAndSort, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) FindLCA(ctx context.Context) (*logpoller.LogPollerBlock, error)
- func (_m *LogPoller) GetBlocksRange(ctx context.Context, numbers []uint64) ([]logpoller.LogPollerBlock, error)
- func (_m *LogPoller) GetFilters() map[string]logpoller.Filter
- func (_m *LogPoller) HasFilter(name string) bool
- func (_m *LogPoller) HealthReport() map[string]error
- func (_m *LogPoller) Healthy() error
- func (_m *LogPoller) IndexedLogs(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) IndexedLogsByBlockRange(ctx context.Context, start int64, end int64, eventSig common.Hash, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) IndexedLogsByTxHash(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) IndexedLogsCreatedAfter(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) IndexedLogsTopicGreaterThan(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) IndexedLogsTopicRange(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) IndexedLogsWithSigsExcluding(ctx context.Context, address common.Address, eventSigA common.Hash, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LatestBlock(ctx context.Context) (logpoller.LogPollerBlock, error)
- func (_m *LogPoller) LatestBlockByEventSigsAddrsWithConfs(ctx context.Context, fromBlock int64, eventSigs []common.Hash, ...) (int64, error)
- func (_m *LogPoller) LatestLogByEventSigWithConfs(ctx context.Context, eventSig common.Hash, address common.Address, ...) (*logpoller.Log, error)
- func (_m *LogPoller) LatestLogEventSigsAddrsWithConfs(ctx context.Context, fromBlock int64, eventSigs []common.Hash, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) Logs(ctx context.Context, start int64, end int64, eventSig common.Hash, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LogsCreatedAfter(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LogsDataWordBetween(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LogsDataWordGreaterThan(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LogsDataWordRange(ctx context.Context, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LogsWithSigs(ctx context.Context, start int64, end int64, eventSigs []common.Hash, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) Name() string
- func (_m *LogPoller) Ready() error
- func (_m *LogPoller) RegisterFilter(ctx context.Context, filter logpoller.Filter) error
- func (_m *LogPoller) Replay(ctx context.Context, fromBlock int64) error
- func (_m *LogPoller) ReplayAsync(fromBlock int64)
- func (_m *LogPoller) Start(_a0 context.Context) error
- func (_m *LogPoller) UnregisterFilter(ctx context.Context, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogPoller ¶
LogPoller is an autogenerated mock type for the LogPoller type
func NewLogPoller ¶
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) DeleteLogsAndBlocksAfter ¶ added in v2.12.0
DeleteLogsAndBlocksAfter provides a mock function with given fields: ctx, start
func (*LogPoller) FilteredLogs ¶ added in v2.13.0
func (_m *LogPoller) FilteredLogs(ctx context.Context, filter query.KeyFilter, limitAndSort query.LimitAndSort, queryName string) ([]logpoller.Log, error)
FilteredLogs provides a mock function with given fields: ctx, filter, limitAndSort, queryName
func (*LogPoller) FindLCA ¶ added in v2.12.0
FindLCA provides a mock function with given fields: ctx
func (*LogPoller) GetBlocksRange ¶
func (_m *LogPoller) GetBlocksRange(ctx context.Context, numbers []uint64) ([]logpoller.LogPollerBlock, error)
GetBlocksRange provides a mock function with given fields: ctx, numbers
func (*LogPoller) GetFilters ¶ added in v2.11.0
GetFilters provides a mock function with given fields:
func (*LogPoller) HasFilter ¶ added in v2.6.0
HasFilter provides a mock function with given fields: name
func (*LogPoller) HealthReport ¶
HealthReport provides a mock function with given fields:
func (*LogPoller) IndexedLogs ¶
func (_m *LogPoller) IndexedLogs(ctx context.Context, eventSig common.Hash, address common.Address, topicIndex int, topicValues []common.Hash, confs types.Confirmations) ([]logpoller.Log, error)
IndexedLogs provides a mock function with given fields: ctx, eventSig, address, topicIndex, topicValues, confs
func (*LogPoller) IndexedLogsByBlockRange ¶
func (_m *LogPoller) IndexedLogsByBlockRange(ctx context.Context, start int64, end int64, eventSig common.Hash, address common.Address, topicIndex int, topicValues []common.Hash) ([]logpoller.Log, error)
IndexedLogsByBlockRange provides a mock function with given fields: ctx, start, end, eventSig, address, topicIndex, topicValues
func (*LogPoller) IndexedLogsByTxHash ¶ added in v2.6.0
func (_m *LogPoller) IndexedLogsByTxHash(ctx context.Context, eventSig common.Hash, address common.Address, txHash common.Hash) ([]logpoller.Log, error)
IndexedLogsByTxHash provides a mock function with given fields: ctx, eventSig, address, txHash
func (*LogPoller) IndexedLogsCreatedAfter ¶ added in v2.3.0
func (_m *LogPoller) IndexedLogsCreatedAfter(ctx context.Context, eventSig common.Hash, address common.Address, topicIndex int, topicValues []common.Hash, after time.Time, confs types.Confirmations) ([]logpoller.Log, error)
IndexedLogsCreatedAfter provides a mock function with given fields: ctx, eventSig, address, topicIndex, topicValues, after, confs
func (*LogPoller) IndexedLogsTopicGreaterThan ¶
func (_m *LogPoller) IndexedLogsTopicGreaterThan(ctx context.Context, eventSig common.Hash, address common.Address, topicIndex int, topicValueMin common.Hash, confs types.Confirmations) ([]logpoller.Log, error)
IndexedLogsTopicGreaterThan provides a mock function with given fields: ctx, eventSig, address, topicIndex, topicValueMin, confs
func (*LogPoller) IndexedLogsTopicRange ¶
func (_m *LogPoller) IndexedLogsTopicRange(ctx context.Context, eventSig common.Hash, address common.Address, topicIndex int, topicValueMin common.Hash, topicValueMax common.Hash, confs types.Confirmations) ([]logpoller.Log, error)
IndexedLogsTopicRange provides a mock function with given fields: ctx, eventSig, address, topicIndex, topicValueMin, topicValueMax, confs
func (*LogPoller) IndexedLogsWithSigsExcluding ¶ added in v2.1.0
func (_m *LogPoller) IndexedLogsWithSigsExcluding(ctx context.Context, address common.Address, eventSigA common.Hash, eventSigB common.Hash, topicIndex int, fromBlock int64, toBlock int64, confs types.Confirmations) ([]logpoller.Log, error)
IndexedLogsWithSigsExcluding provides a mock function with given fields: ctx, address, eventSigA, eventSigB, topicIndex, fromBlock, toBlock, confs
func (*LogPoller) LatestBlock ¶
LatestBlock provides a mock function with given fields: ctx
func (*LogPoller) LatestBlockByEventSigsAddrsWithConfs ¶ added in v2.4.0
func (_m *LogPoller) LatestBlockByEventSigsAddrsWithConfs(ctx context.Context, fromBlock int64, eventSigs []common.Hash, addresses []common.Address, confs types.Confirmations) (int64, error)
LatestBlockByEventSigsAddrsWithConfs provides a mock function with given fields: ctx, fromBlock, eventSigs, addresses, confs
func (*LogPoller) LatestLogByEventSigWithConfs ¶
func (_m *LogPoller) LatestLogByEventSigWithConfs(ctx context.Context, eventSig common.Hash, address common.Address, confs types.Confirmations) (*logpoller.Log, error)
LatestLogByEventSigWithConfs provides a mock function with given fields: ctx, eventSig, address, confs
func (*LogPoller) LatestLogEventSigsAddrsWithConfs ¶
func (_m *LogPoller) LatestLogEventSigsAddrsWithConfs(ctx context.Context, fromBlock int64, eventSigs []common.Hash, addresses []common.Address, confs types.Confirmations) ([]logpoller.Log, error)
LatestLogEventSigsAddrsWithConfs provides a mock function with given fields: ctx, fromBlock, eventSigs, addresses, confs
func (*LogPoller) Logs ¶
func (_m *LogPoller) Logs(ctx context.Context, start int64, end int64, eventSig common.Hash, address common.Address) ([]logpoller.Log, error)
Logs provides a mock function with given fields: ctx, start, end, eventSig, address
func (*LogPoller) LogsCreatedAfter ¶ added in v2.3.0
func (_m *LogPoller) LogsCreatedAfter(ctx context.Context, eventSig common.Hash, address common.Address, _a3 time.Time, confs types.Confirmations) ([]logpoller.Log, error)
LogsCreatedAfter provides a mock function with given fields: ctx, eventSig, address, _a3, confs
func (*LogPoller) LogsDataWordBetween ¶ added in v2.8.0
func (_m *LogPoller) LogsDataWordBetween(ctx context.Context, eventSig common.Hash, address common.Address, wordIndexMin int, wordIndexMax int, wordValue common.Hash, confs types.Confirmations) ([]logpoller.Log, error)
LogsDataWordBetween provides a mock function with given fields: ctx, eventSig, address, wordIndexMin, wordIndexMax, wordValue, confs
func (*LogPoller) LogsDataWordGreaterThan ¶
func (_m *LogPoller) LogsDataWordGreaterThan(ctx context.Context, eventSig common.Hash, address common.Address, wordIndex int, wordValueMin common.Hash, confs types.Confirmations) ([]logpoller.Log, error)
LogsDataWordGreaterThan provides a mock function with given fields: ctx, eventSig, address, wordIndex, wordValueMin, confs
func (*LogPoller) LogsDataWordRange ¶
func (_m *LogPoller) LogsDataWordRange(ctx context.Context, eventSig common.Hash, address common.Address, wordIndex int, wordValueMin common.Hash, wordValueMax common.Hash, confs types.Confirmations) ([]logpoller.Log, error)
LogsDataWordRange provides a mock function with given fields: ctx, eventSig, address, wordIndex, wordValueMin, wordValueMax, confs
func (*LogPoller) LogsWithSigs ¶
func (_m *LogPoller) LogsWithSigs(ctx context.Context, start int64, end int64, eventSigs []common.Hash, address common.Address) ([]logpoller.Log, error)
LogsWithSigs provides a mock function with given fields: ctx, start, end, eventSigs, address
func (*LogPoller) RegisterFilter ¶
RegisterFilter provides a mock function with given fields: ctx, filter
func (*LogPoller) ReplayAsync ¶ added in v2.1.0
ReplayAsync provides a mock function with given fields: fromBlock