Documentation ¶
Index ¶
- type LogPoller
- func (_m *LogPoller) Close() error
- func (_m *LogPoller) GetBlocks(numbers []uint64, qopts ...pg.QOpt) ([]logpoller.LogPollerBlock, error)
- func (_m *LogPoller) Healthy() error
- func (_m *LogPoller) IndexedLogs(eventSig common.Hash, address common.Address, topicIndex int, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) IndexedLogsTopicGreaterThan(eventSig common.Hash, address common.Address, topicIndex int, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) IndexedLogsTopicRange(eventSig common.Hash, address common.Address, topicIndex int, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LatestBlock(qopts ...pg.QOpt) (int64, error)
- func (_m *LogPoller) LatestLogByEventSigWithConfs(eventSig common.Hash, address common.Address, confs int, qopts ...pg.QOpt) (*logpoller.Log, error)
- func (_m *LogPoller) LatestLogEventSigsAddrs(fromBlock int64, eventSigs []common.Hash, addresses []common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) Logs(start int64, end int64, eventSig common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LogsDataWordGreaterThan(eventSig common.Hash, address common.Address, wordIndex int, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LogsDataWordRange(eventSig common.Hash, address common.Address, wordIndex int, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) LogsWithSigs(start int64, end int64, eventSigs []common.Hash, address common.Address, ...) ([]logpoller.Log, error)
- func (_m *LogPoller) MergeFilter(eventSigs []common.Hash, addresses []common.Address)
- func (_m *LogPoller) Ready() error
- func (_m *LogPoller) Replay(ctx context.Context, fromBlock int64) error
- func (_m *LogPoller) Start(_a0 context.Context) 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 ¶
func NewLogPoller(t mockConstructorTestingTNewLogPoller) *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.
func (*LogPoller) GetBlocks ¶ added in v1.7.0
func (_m *LogPoller) GetBlocks(numbers []uint64, qopts ...pg.QOpt) ([]logpoller.LogPollerBlock, error)
GetBlocks provides a mock function with given fields: numbers, qopts
func (*LogPoller) IndexedLogs ¶
func (_m *LogPoller) IndexedLogs(eventSig common.Hash, address common.Address, topicIndex int, topicValues []common.Hash, confs int, qopts ...pg.QOpt) ([]logpoller.Log, error)
IndexedLogs provides a mock function with given fields: eventSig, address, topicIndex, topicValues, confs, qopts
func (*LogPoller) IndexedLogsTopicGreaterThan ¶
func (_m *LogPoller) IndexedLogsTopicGreaterThan(eventSig common.Hash, address common.Address, topicIndex int, topicValueMin common.Hash, confs int, 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 int, qopts ...pg.QOpt) ([]logpoller.Log, error)
IndexedLogsTopicRange provides a mock function with given fields: eventSig, address, topicIndex, topicValueMin, topicValueMax, confs, qopts
func (*LogPoller) LatestBlock ¶
LatestBlock provides a mock function with given fields: qopts
func (*LogPoller) LatestLogByEventSigWithConfs ¶
func (_m *LogPoller) LatestLogByEventSigWithConfs(eventSig common.Hash, address common.Address, confs int, qopts ...pg.QOpt) (*logpoller.Log, error)
LatestLogByEventSigWithConfs provides a mock function with given fields: eventSig, address, confs, qopts
func (*LogPoller) LatestLogEventSigsAddrs ¶
func (_m *LogPoller) LatestLogEventSigsAddrs(fromBlock int64, eventSigs []common.Hash, addresses []common.Address, qopts ...pg.QOpt) ([]logpoller.Log, error)
LatestLogEventSigsAddrs provides a mock function with given fields: fromBlock, eventSigs, addresses, 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) LogsDataWordGreaterThan ¶
func (_m *LogPoller) LogsDataWordGreaterThan(eventSig common.Hash, address common.Address, wordIndex int, wordValueMin common.Hash, confs int, 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 int, qopts ...pg.QOpt) ([]logpoller.Log, error)
LogsDataWordRange provides a mock function with given fields: eventSig, address, wordIndex, wordValueMin, wordValueMax, confs, qopts
func (*LogPoller) LogsWithSigs ¶ added in v1.7.0
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) MergeFilter ¶
MergeFilter provides a mock function with given fields: eventSigs, addresses