mocks

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 4 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 (*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) RetrieveLogs

func (_m *EventDB) RetrieveLogs(ctx context.Context, txHash common.Hash, chainID uint32) ([]*types.Log, error)

RetrieveLogs provides a mock function with given fields: ctx, txHash, chainID

func (*EventDB) RetrieveReceipt

func (_m *EventDB) RetrieveReceipt(ctx context.Context, txHash common.Hash, chainID uint32) (types.Receipt, error)

RetrieveReceipt provides a mock function with given fields: ctx, txHash, chainID

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

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

func (*EventDB) UnsafeRetrieveAllLogs

func (_m *EventDB) UnsafeRetrieveAllLogs(ctx context.Context, specific bool, chainID uint32, address common.Address) ([]*types.Log, error)

UnsafeRetrieveAllLogs provides a mock function with given fields: ctx, specific, chainID, address

func (*EventDB) UnsafeRetrieveAllReceipts

func (_m *EventDB) UnsafeRetrieveAllReceipts(ctx context.Context, specific bool, chainID uint32) ([]*types.Receipt, error)

UnsafeRetrieveAllReceipts provides a mock function with given fields: ctx, specific, chainID

Jump to

Keyboard shortcuts

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