Documentation ¶
Index ¶
- type EventDB
- func (_m *EventDB) ConfirmEthTxsForBlockHash(ctx context.Context, blockHash common.Hash, chainID uint32) error
- func (_m *EventDB) ConfirmEthTxsInRange(ctx context.Context, startBlock uint64, endBlock uint64, chainID uint32) error
- func (_m *EventDB) ConfirmLogsForBlockHash(ctx context.Context, chainID uint32, blockHash common.Hash) error
- func (_m *EventDB) ConfirmLogsInRange(ctx context.Context, startBlock uint64, endBlock uint64, chainID uint32) error
- func (_m *EventDB) ConfirmReceiptsForBlockHash(ctx context.Context, chainID uint32, blockHash common.Hash) error
- func (_m *EventDB) ConfirmReceiptsInRange(ctx context.Context, startBlock uint64, endBlock uint64, chainID uint32) error
- func (_m *EventDB) DeleteEthTxsForBlockHash(ctx context.Context, blockHash common.Hash, chainID uint32) error
- func (_m *EventDB) DeleteLogsForBlockHash(ctx context.Context, blockHash common.Hash, chainID uint32) error
- func (_m *EventDB) DeleteReceiptsForBlockHash(ctx context.Context, chainID uint32, blockHash common.Hash) error
- func (_m *EventDB) RetrieveBlockTime(ctx context.Context, chainID uint32, blockNumber uint64) (uint64, error)
- func (_m *EventDB) RetrieveBlockTimesCountForChain(ctx context.Context, chainID uint32) (int64, error)
- func (_m *EventDB) RetrieveEthTxsInRange(ctx context.Context, ethTxFilter db.EthTxFilter, startBlock uint64, ...) ([]db.TxWithBlockNumber, error)
- func (_m *EventDB) RetrieveEthTxsWithFilter(ctx context.Context, ethTxFilter db.EthTxFilter, page int) ([]db.TxWithBlockNumber, error)
- func (_m *EventDB) RetrieveFirstBlockStored(ctx context.Context, chainID uint32) (uint64, error)
- func (_m *EventDB) RetrieveLastBlockStored(ctx context.Context, chainID uint32) (uint64, error)
- func (_m *EventDB) RetrieveLastConfirmedBlock(ctx context.Context, chainID uint32) (uint64, error)
- func (_m *EventDB) RetrieveLastIndexed(ctx context.Context, contractAddress common.Address, chainID uint32) (uint64, error)
- func (_m *EventDB) RetrieveLogCountForContract(ctx context.Context, contractAddress common.Address, chainID uint32) (int64, error)
- func (_m *EventDB) RetrieveLogsInRange(ctx context.Context, logFilter db.LogFilter, startBlock uint64, ...) ([]*types.Log, error)
- func (_m *EventDB) RetrieveLogsInRangeAsc(ctx context.Context, logFilter db.LogFilter, startBlock uint64, ...) ([]*types.Log, error)
- func (_m *EventDB) RetrieveLogsWithFilter(ctx context.Context, logFilter db.LogFilter, page int) ([]*types.Log, error)
- func (_m *EventDB) RetrieveReceiptCountForChain(ctx context.Context, chainID uint32) (int64, 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, page int) ([]types.Receipt, error)
- func (_m *EventDB) StoreBlockTime(ctx context.Context, chainID uint32, blockNumber uint64, timestamp uint64) error
- func (_m *EventDB) StoreEthTx(ctx context.Context, tx *types.Transaction, chainID uint32, ...) error
- func (_m *EventDB) StoreLastConfirmedBlock(ctx context.Context, chainID uint32, blockNumber uint64) error
- func (_m *EventDB) StoreLastIndexed(ctx context.Context, contractAddress common.Address, chainID uint32, ...) error
- func (_m *EventDB) StoreLogs(ctx context.Context, chainID uint32, log ...types.Log) error
- func (_m *EventDB) StoreReceipt(ctx context.Context, chainID uint32, receipt types.Receipt) 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) ConfirmEthTxsForBlockHash ¶ added in v0.0.16
func (_m *EventDB) ConfirmEthTxsForBlockHash(ctx context.Context, blockHash common.Hash, chainID uint32) error
ConfirmEthTxsForBlockHash provides a mock function with given fields: ctx, blockHash, chainID
func (*EventDB) ConfirmEthTxsInRange ¶ added in v0.0.16
func (_m *EventDB) ConfirmEthTxsInRange(ctx context.Context, startBlock uint64, endBlock uint64, chainID uint32) error
ConfirmEthTxsInRange provides a mock function with given fields: ctx, startBlock, endBlock, chainID
func (*EventDB) ConfirmLogsForBlockHash ¶ added in v0.0.16
func (_m *EventDB) ConfirmLogsForBlockHash(ctx context.Context, chainID uint32, blockHash common.Hash) error
ConfirmLogsForBlockHash provides a mock function with given fields: ctx, chainID, blockHash
func (*EventDB) ConfirmLogsInRange ¶ added in v0.0.16
func (_m *EventDB) ConfirmLogsInRange(ctx context.Context, startBlock uint64, endBlock uint64, chainID uint32) error
ConfirmLogsInRange provides a mock function with given fields: ctx, startBlock, endBlock, chainID
func (*EventDB) ConfirmReceiptsForBlockHash ¶ added in v0.0.16
func (_m *EventDB) ConfirmReceiptsForBlockHash(ctx context.Context, chainID uint32, blockHash common.Hash) error
ConfirmReceiptsForBlockHash provides a mock function with given fields: ctx, chainID, blockHash
func (*EventDB) ConfirmReceiptsInRange ¶ added in v0.0.16
func (_m *EventDB) ConfirmReceiptsInRange(ctx context.Context, startBlock uint64, endBlock uint64, chainID uint32) error
ConfirmReceiptsInRange provides a mock function with given fields: ctx, startBlock, endBlock, chainID
func (*EventDB) DeleteEthTxsForBlockHash ¶ added in v0.0.16
func (_m *EventDB) DeleteEthTxsForBlockHash(ctx context.Context, blockHash common.Hash, chainID uint32) error
DeleteEthTxsForBlockHash provides a mock function with given fields: ctx, blockHash, chainID
func (*EventDB) DeleteLogsForBlockHash ¶ added in v0.0.16
func (_m *EventDB) DeleteLogsForBlockHash(ctx context.Context, blockHash common.Hash, chainID uint32) error
DeleteLogsForBlockHash provides a mock function with given fields: ctx, blockHash, chainID
func (*EventDB) DeleteReceiptsForBlockHash ¶ added in v0.0.16
func (_m *EventDB) DeleteReceiptsForBlockHash(ctx context.Context, chainID uint32, blockHash common.Hash) error
DeleteReceiptsForBlockHash provides a mock function with given fields: ctx, chainID, blockHash
func (*EventDB) RetrieveBlockTime ¶ added in v0.0.27
func (_m *EventDB) RetrieveBlockTime(ctx context.Context, chainID uint32, blockNumber uint64) (uint64, error)
RetrieveBlockTime provides a mock function with given fields: ctx, chainID, blockNumber
func (*EventDB) RetrieveBlockTimesCountForChain ¶ added in v0.0.42
func (_m *EventDB) RetrieveBlockTimesCountForChain(ctx context.Context, chainID uint32) (int64, error)
RetrieveBlockTimesCountForChain provides a mock function with given fields: ctx, chainID
func (*EventDB) RetrieveEthTxsInRange ¶ added in v0.0.9
func (_m *EventDB) RetrieveEthTxsInRange(ctx context.Context, ethTxFilter db.EthTxFilter, startBlock uint64, endBlock uint64, page int) ([]db.TxWithBlockNumber, error)
RetrieveEthTxsInRange provides a mock function with given fields: ctx, ethTxFilter, startBlock, endBlock, page
func (*EventDB) RetrieveEthTxsWithFilter ¶ added in v0.0.9
func (_m *EventDB) RetrieveEthTxsWithFilter(ctx context.Context, ethTxFilter db.EthTxFilter, page int) ([]db.TxWithBlockNumber, error)
RetrieveEthTxsWithFilter provides a mock function with given fields: ctx, ethTxFilter, page
func (*EventDB) RetrieveFirstBlockStored ¶ added in v0.0.35
RetrieveFirstBlockStored provides a mock function with given fields: ctx, chainID
func (*EventDB) RetrieveLastBlockStored ¶ added in v0.0.35
RetrieveLastBlockStored provides a mock function with given fields: ctx, chainID
func (*EventDB) RetrieveLastConfirmedBlock ¶ added in v0.0.16
RetrieveLastConfirmedBlock provides a mock function with given fields: ctx, chainID
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) RetrieveLogCountForContract ¶ added in v0.0.40
func (_m *EventDB) RetrieveLogCountForContract(ctx context.Context, contractAddress common.Address, chainID uint32) (int64, error)
RetrieveLogCountForContract 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, page int) ([]*types.Log, error)
RetrieveLogsInRange provides a mock function with given fields: ctx, logFilter, startBlock, endBlock, page
func (*EventDB) RetrieveLogsInRangeAsc ¶ added in v0.0.61
func (_m *EventDB) RetrieveLogsInRangeAsc(ctx context.Context, logFilter db.LogFilter, startBlock uint64, endBlock uint64, page int) ([]*types.Log, error)
RetrieveLogsInRangeAsc provides a mock function with given fields: ctx, logFilter, startBlock, endBlock, page
func (*EventDB) RetrieveLogsWithFilter ¶ added in v0.0.9
func (_m *EventDB) RetrieveLogsWithFilter(ctx context.Context, logFilter db.LogFilter, page int) ([]*types.Log, error)
RetrieveLogsWithFilter provides a mock function with given fields: ctx, logFilter, page
func (*EventDB) RetrieveReceiptCountForChain ¶ added in v0.0.93
RetrieveReceiptCountForChain provides a mock function with given fields: ctx, chainID
func (*EventDB) RetrieveReceiptsInRange ¶ added in v0.0.9
func (_m *EventDB) RetrieveReceiptsInRange(ctx context.Context, receiptFilter db.ReceiptFilter, startBlock uint64, endBlock uint64, page int) ([]types.Receipt, error)
RetrieveReceiptsInRange provides a mock function with given fields: ctx, receiptFilter, startBlock, endBlock, page
func (*EventDB) RetrieveReceiptsWithFilter ¶ added in v0.0.9
func (_m *EventDB) RetrieveReceiptsWithFilter(ctx context.Context, receiptFilter db.ReceiptFilter, page int) ([]types.Receipt, error)
RetrieveReceiptsWithFilter provides a mock function with given fields: ctx, receiptFilter, page
func (*EventDB) StoreBlockTime ¶ added in v0.0.27
func (_m *EventDB) StoreBlockTime(ctx context.Context, chainID uint32, blockNumber uint64, timestamp uint64) error
StoreBlockTime provides a mock function with given fields: ctx, chainID, blockNumber, timestamp
func (*EventDB) StoreEthTx ¶
func (_m *EventDB) StoreEthTx(ctx context.Context, tx *types.Transaction, chainID uint32, blockHash common.Hash, blockNumber uint64, transactionIndex uint64) error
StoreEthTx provides a mock function with given fields: ctx, tx, chainID, blockHash, blockNumber, transactionIndex
func (*EventDB) StoreLastConfirmedBlock ¶ added in v0.0.16
func (_m *EventDB) StoreLastConfirmedBlock(ctx context.Context, chainID uint32, blockNumber uint64) error
StoreLastConfirmedBlock provides a mock function with given fields: ctx, 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