Documentation ¶
Index ¶
- type EventDB
- func (_m *EventDB) RetrieveEthTxsInRange(ctx context.Context, ethTxFilter db.EthTxFilter, startBlock uint64, ...) ([]types.Transaction, error)
- func (_m *EventDB) RetrieveEthTxsWithFilter(ctx context.Context, ethTxFilter db.EthTxFilter) ([]types.Transaction, error)
- func (_m *EventDB) RetrieveLastIndexed(ctx context.Context, contractAddress common.Address, chainID uint32) (uint64, error)
- func (_m *EventDB) RetrieveLogsInRange(ctx context.Context, logFilter db.LogFilter, startBlock uint64, ...) ([]*types.Log, error)
- func (_m *EventDB) RetrieveLogsWithFilter(ctx context.Context, logFilter db.LogFilter) ([]*types.Log, error)
- func (_m *EventDB) RetrieveReceiptsInRange(ctx context.Context, receiptFilter db.ReceiptFilter, startBlock uint64, ...) ([]types.Receipt, error)
- func (_m *EventDB) RetrieveReceiptsWithFilter(ctx context.Context, receiptFilter db.ReceiptFilter) ([]types.Receipt, error)
- func (_m *EventDB) StoreEthTx(ctx context.Context, tx *types.Transaction, chainID uint32, blockNumber uint64) error
- func (_m *EventDB) StoreLastIndexed(ctx context.Context, contractAddress common.Address, chainID uint32, ...) error
- func (_m *EventDB) StoreLog(ctx context.Context, log types.Log, chainID uint32) error
- func (_m *EventDB) StoreReceipt(ctx context.Context, receipt types.Receipt, chainID uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventDB ¶
EventDB is an autogenerated mock type for the EventDB type
func NewEventDB ¶ added in v0.0.9
func NewEventDB(t mockConstructorTestingTNewEventDB) *EventDB
NewEventDB creates a new instance of EventDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EventDB) RetrieveEthTxsInRange ¶ added in v0.0.9
func (_m *EventDB) RetrieveEthTxsInRange(ctx context.Context, ethTxFilter db.EthTxFilter, startBlock uint64, endBlock uint64) ([]types.Transaction, error)
RetrieveEthTxsInRange provides a mock function with given fields: ctx, ethTxFilter, startBlock, endBlock
func (*EventDB) RetrieveEthTxsWithFilter ¶ added in v0.0.9
func (_m *EventDB) RetrieveEthTxsWithFilter(ctx context.Context, ethTxFilter db.EthTxFilter) ([]types.Transaction, error)
RetrieveEthTxsWithFilter provides a mock function with given fields: ctx, ethTxFilter
func (*EventDB) RetrieveLastIndexed ¶
func (_m *EventDB) RetrieveLastIndexed(ctx context.Context, contractAddress common.Address, chainID uint32) (uint64, error)
RetrieveLastIndexed provides a mock function with given fields: ctx, contractAddress, chainID
func (*EventDB) RetrieveLogsInRange ¶ added in v0.0.9
func (_m *EventDB) RetrieveLogsInRange(ctx context.Context, logFilter db.LogFilter, startBlock uint64, endBlock uint64) ([]*types.Log, error)
RetrieveLogsInRange provides a mock function with given fields: ctx, logFilter, startBlock, endBlock
func (*EventDB) RetrieveLogsWithFilter ¶ added in v0.0.9
func (_m *EventDB) RetrieveLogsWithFilter(ctx context.Context, logFilter db.LogFilter) ([]*types.Log, error)
RetrieveLogsWithFilter provides a mock function with given fields: ctx, logFilter
func (*EventDB) RetrieveReceiptsInRange ¶ added in v0.0.9
func (_m *EventDB) RetrieveReceiptsInRange(ctx context.Context, receiptFilter db.ReceiptFilter, startBlock uint64, endBlock uint64) ([]types.Receipt, error)
RetrieveReceiptsInRange provides a mock function with given fields: ctx, receiptFilter, startBlock, endBlock
func (*EventDB) RetrieveReceiptsWithFilter ¶ added in v0.0.9
func (_m *EventDB) RetrieveReceiptsWithFilter(ctx context.Context, receiptFilter db.ReceiptFilter) ([]types.Receipt, error)
RetrieveReceiptsWithFilter provides a mock function with given fields: ctx, receiptFilter
func (*EventDB) StoreEthTx ¶
func (_m *EventDB) StoreEthTx(ctx context.Context, tx *types.Transaction, chainID uint32, blockNumber uint64) error
StoreEthTx provides a mock function with given fields: ctx, tx, chainID, blockNumber
func (*EventDB) StoreLastIndexed ¶
func (_m *EventDB) StoreLastIndexed(ctx context.Context, contractAddress common.Address, chainID uint32, blockNumber uint64) error
StoreLastIndexed provides a mock function with given fields: ctx, contractAddress, chainID, blockNumber