mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventDB

type EventDB struct {
	mock.Mock
}

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) 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) 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) FlushFromHeadTables added in v0.0.207

func (_m *EventDB) FlushFromHeadTables(ctx context.Context, time int64) error

FlushFromHeadTables provides a mock function with given fields: ctx, time

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

func (_m *EventDB) RetrieveFirstBlockStored(ctx context.Context, chainID uint32) (uint64, error)

RetrieveFirstBlockStored provides a mock function with given fields: ctx, chainID

func (*EventDB) RetrieveLastBlockStored added in v0.0.35

func (_m *EventDB) RetrieveLastBlockStored(ctx context.Context, chainID uint32) (uint64, error)

RetrieveLastBlockStored provides a mock function with given fields: ctx, chainID

func (*EventDB) RetrieveLastConfirmedBlock added in v0.0.16

func (_m *EventDB) RetrieveLastConfirmedBlock(ctx context.Context, chainID uint32) (uint64, error)

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, livefillAtHead bool) (uint64, error)

RetrieveLastIndexed provides a mock function with given fields: ctx, contractAddress, chainID, livefillAtHead

func (*EventDB) RetrieveLastIndexedMultiple added in v0.0.207

func (_m *EventDB) RetrieveLastIndexedMultiple(ctx context.Context, contractAddresses []common.Address, chainID uint32) (map[common.Address]uint64, error)

RetrieveLastIndexedMultiple provides a mock function with given fields: ctx, contractAddresses, 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) RetrieveLogsFromHeadRangeQuery added in v0.0.207

func (_m *EventDB) RetrieveLogsFromHeadRangeQuery(ctx context.Context, logFilter db.LogFilter, startBlock uint64, endBlock uint64, page int) ([]*types.Log, error)

RetrieveLogsFromHeadRangeQuery provides a mock function with given fields: ctx, logFilter, startBlock, endBlock, page

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

func (_m *EventDB) RetrieveReceiptCountForChain(ctx context.Context, chainID uint32) (int64, error)

RetrieveReceiptCountForChain provides a mock function with given fields: ctx, chainID

func (*EventDB) RetrieveReceiptsFromHeadRangeQuery added in v0.0.207

func (_m *EventDB) RetrieveReceiptsFromHeadRangeQuery(ctx context.Context, receiptFilter db.ReceiptFilter, startBlock uint64, endBlock uint64, page int) ([]types.Receipt, error)

RetrieveReceiptsFromHeadRangeQuery provides a mock function with given fields: ctx, receiptFilter, startBlock, endBlock, page

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) RetrieveReceiptsWithStaleBlockHash added in v0.0.194

func (_m *EventDB) RetrieveReceiptsWithStaleBlockHash(ctx context.Context, chainID uint32, blockHashes []string, startBlock uint64, endBlock uint64) ([]types.Receipt, error)

RetrieveReceiptsWithStaleBlockHash provides a mock function with given fields: ctx, chainID, blockHashes, startBlock, endBlock

func (*EventDB) RetrieveUnconfirmedEthTxsFromHeadRangeQuery added in v0.0.207

func (_m *EventDB) RetrieveUnconfirmedEthTxsFromHeadRangeQuery(ctx context.Context, receiptFilter db.EthTxFilter, startBlock uint64, endBlock uint64, lastIndexed uint64, page int) ([]db.TxWithBlockNumber, error)

RetrieveUnconfirmedEthTxsFromHeadRangeQuery provides a mock function with given fields: ctx, receiptFilter, startBlock, endBlock, lastIndexed, 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) StoreEthTxAtHead added in v0.0.207

func (_m *EventDB) StoreEthTxAtHead(ctx context.Context, tx *types.Transaction, chainID uint32, blockHash common.Hash, blockNumber uint64, transactionIndex uint64) error

StoreEthTxAtHead 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, livefillAtHead bool) error

StoreLastIndexed provides a mock function with given fields: ctx, contractAddress, chainID, blockNumber, livefillAtHead

func (*EventDB) StoreLastIndexedMultiple added in v0.0.207

func (_m *EventDB) StoreLastIndexedMultiple(ctx context.Context, contractAddresses []common.Address, chainID uint32, blockNumber uint64) error

StoreLastIndexedMultiple provides a mock function with given fields: ctx, contractAddresses, chainID, blockNumber

func (*EventDB) StoreLogs added in v0.0.102

func (_m *EventDB) StoreLogs(ctx context.Context, chainID uint32, log ...types.Log) error

StoreLogs provides a mock function with given fields: ctx, chainID, log

func (*EventDB) StoreLogsAtHead added in v0.0.207

func (_m *EventDB) StoreLogsAtHead(ctx context.Context, chainID uint32, log ...types.Log) error

StoreLogsAtHead provides a mock function with given fields: ctx, chainID, log

func (*EventDB) StoreReceipt

func (_m *EventDB) StoreReceipt(ctx context.Context, chainID uint32, receipt types.Receipt) error

StoreReceipt provides a mock function with given fields: ctx, chainID, receipt

func (*EventDB) StoreReceiptAtHead added in v0.0.207

func (_m *EventDB) StoreReceiptAtHead(ctx context.Context, chainID uint32, receipt types.Receipt) error

StoreReceiptAtHead provides a mock function with given fields: ctx, chainID, receipt

Jump to

Keyboard shortcuts

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