mocks

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 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 ConsumerDB

type ConsumerDB struct {
	mock.Mock
}

ConsumerDB is an autogenerated mock type for the ConsumerDB type

func NewConsumerDB

func NewConsumerDB(t mockConstructorTestingTNewConsumerDB) *ConsumerDB

NewConsumerDB creates a new instance of ConsumerDB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConsumerDB) BridgeEventCount added in v0.0.9

func (_m *ConsumerDB) BridgeEventCount(ctx context.Context, query string) (uint64, error)

BridgeEventCount provides a mock function with given fields: ctx, query

func (*ConsumerDB) GetAllChainIDs added in v0.0.9

func (_m *ConsumerDB) GetAllChainIDs(ctx context.Context) ([]uint32, error)

GetAllChainIDs provides a mock function with given fields: ctx

func (*ConsumerDB) GetBridgeStatistic added in v0.0.9

func (_m *ConsumerDB) GetBridgeStatistic(ctx context.Context, subQuery string) (*string, error)

GetBridgeStatistic provides a mock function with given fields: ctx, subQuery

func (*ConsumerDB) GetHistoricalData added in v0.0.9

func (_m *ConsumerDB) GetHistoricalData(ctx context.Context, subQuery string, typeArg *model.HistoricalResultType, filter string) (*model.HistoricalResult, error)

GetHistoricalData provides a mock function with given fields: ctx, subQuery, typeArg, filter

func (*ConsumerDB) GetKappaFromTxHash added in v0.0.9

func (_m *ConsumerDB) GetKappaFromTxHash(ctx context.Context, query string) (*string, error)

GetKappaFromTxHash provides a mock function with given fields: ctx, query

func (*ConsumerDB) GetSwapSuccess added in v0.0.9

func (_m *ConsumerDB) GetSwapSuccess(ctx context.Context, kappa string, chainID uint32) (*bool, error)

GetSwapSuccess provides a mock function with given fields: ctx, kappa, chainID

func (*ConsumerDB) GetTokenAddressesByChainID added in v0.0.9

func (_m *ConsumerDB) GetTokenAddressesByChainID(ctx context.Context, query string) ([]string, error)

GetTokenAddressesByChainID provides a mock function with given fields: ctx, query

func (*ConsumerDB) GetTransactionCountForEveryAddress added in v0.0.9

func (_m *ConsumerDB) GetTransactionCountForEveryAddress(ctx context.Context, subQuery string) ([]*model.AddressRanking, error)

GetTransactionCountForEveryAddress provides a mock function with given fields: ctx, subQuery

func (*ConsumerDB) GetTxHashFromKappa added in v0.0.9

func (_m *ConsumerDB) GetTxHashFromKappa(ctx context.Context, kappa string) (*string, error)

GetTxHashFromKappa provides a mock function with given fields: ctx, kappa

func (*ConsumerDB) PartialInfosFromIdentifiers added in v0.0.9

func (_m *ConsumerDB) PartialInfosFromIdentifiers(ctx context.Context, query string) ([]*model.PartialInfo, error)

PartialInfosFromIdentifiers provides a mock function with given fields: ctx, query

func (*ConsumerDB) ReadBlockNumberByChainID

func (_m *ConsumerDB) ReadBlockNumberByChainID(ctx context.Context, eventType int8, chainID uint32) (*uint64, error)

ReadBlockNumberByChainID provides a mock function with given fields: ctx, eventType, chainID

func (*ConsumerDB) StoreEvent

func (_m *ConsumerDB) StoreEvent(ctx context.Context, bridgeEvent *sql.BridgeEvent, swapEvent *sql.SwapEvent) error

StoreEvent provides a mock function with given fields: ctx, bridgeEvent, swapEvent

func (*ConsumerDB) UNSAFE_DB added in v0.0.9

func (_m *ConsumerDB) UNSAFE_DB() *gorm.DB

UNSAFE_DB provides a mock function with given fields:

Jump to

Keyboard shortcuts

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