mocks

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 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) 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, blockHash common.Hash, chainID uint32) error

ConfirmLogsForBlockHash provides a mock function with given fields: ctx, blockHash, chainID

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, blockHash common.Hash, chainID uint32) error

ConfirmReceiptsForBlockHash provides a mock function with given fields: ctx, blockHash, chainID

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, blockHash common.Hash, chainID uint32) error

DeleteReceiptsForBlockHash provides a mock function with given fields: ctx, blockHash, 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) ([]types.Transaction, 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) ([]types.Transaction, error)

RetrieveEthTxsWithFilter provides a mock function with given fields: ctx, ethTxFilter, page

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) (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, page int) ([]*types.Log, error)

RetrieveLogsInRange 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) 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) StoreEthTx

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

StoreEthTx provides a mock function with given fields: ctx, tx, chainID, blockHash, blockNumber

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

func (*EventDB) StoreLog

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

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

func (*EventDB) StoreReceipt

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

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

Jump to

Keyboard shortcuts

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