mocks

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 6 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) GetAddressChainRanking added in v0.0.107

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

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

func (*ConsumerDB) GetAddressDailyData added in v0.0.107

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

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

func (*ConsumerDB) GetAddressData added in v0.0.107

func (_m *ConsumerDB) GetAddressData(ctx context.Context, query string) (float64, float64, int, error)

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

func (*ConsumerDB) GetAddressRanking added in v0.0.15

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

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

func (*ConsumerDB) GetAllBridgeEvents added in v0.0.43

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

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

func (*ConsumerDB) GetAllMessageBusEvents added in v0.0.81

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

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

func (*ConsumerDB) GetBlockHeights added in v0.0.180

func (_m *ConsumerDB) GetBlockHeights(ctx context.Context, query string, contractTypeMap map[string]model.ContractType) ([]*model.BlockHeight, error)

GetBlockHeights provides a mock function with given fields: ctx, query, contractTypeMap

func (*ConsumerDB) GetBridgeEvent added in v0.0.15

func (_m *ConsumerDB) GetBridgeEvent(ctx context.Context, query string) (*sql.BridgeEvent, error)

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

func (*ConsumerDB) GetBridgeEvents added in v0.0.25

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

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

func (*ConsumerDB) GetDailyTotals added in v0.0.81

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

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

func (*ConsumerDB) GetDateResults added in v0.0.15

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

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

func (*ConsumerDB) GetFloat64 added in v0.0.15

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

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

func (*ConsumerDB) GetLastStoredBlock added in v0.0.108

func (_m *ConsumerDB) GetLastStoredBlock(ctx context.Context, chainID uint32, contractAddress string) (uint64, error)

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

func (*ConsumerDB) GetLeaderboard added in v0.0.107

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

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

func (*ConsumerDB) GetMVBridgeEvent added in v0.0.176

func (_m *ConsumerDB) GetMVBridgeEvent(ctx context.Context, query string) (*sql.HybridBridgeEvent, error)

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

func (*ConsumerDB) GetPendingByChain added in v0.0.152

func (_m *ConsumerDB) GetPendingByChain(ctx context.Context) (*immutable.Map[int, int], error)

GetPendingByChain provides a mock function with given fields: ctx

func (*ConsumerDB) GetRankedChainsByVolume added in v0.0.81

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

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

func (*ConsumerDB) GetString added in v0.0.176

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

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

func (*ConsumerDB) GetStringArray added in v0.0.15

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

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

func (*ConsumerDB) GetTokenCounts added in v0.0.25

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

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

func (*ConsumerDB) GetTxCounts added in v0.0.25

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

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

func (*ConsumerDB) GetUint64 added in v0.0.15

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

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

func (*ConsumerDB) StoreEvent

func (_m *ConsumerDB) StoreEvent(ctx context.Context, event interface{}) error

StoreEvent provides a mock function with given fields: ctx, event

func (*ConsumerDB) StoreEvents added in v0.0.31

func (_m *ConsumerDB) StoreEvents(ctx context.Context, events []interface{}) error

StoreEvents provides a mock function with given fields: ctx, events

func (*ConsumerDB) StoreLastBlock added in v0.0.11

func (_m *ConsumerDB) StoreLastBlock(ctx context.Context, chainID uint32, blockNumber uint64, contractAddress string) error

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

func (*ConsumerDB) StoreSwapFee added in v0.0.81

func (_m *ConsumerDB) StoreSwapFee(ctx context.Context, chainID uint32, timestamp uint64, contractAddress string, fee uint64, feeType string) error

StoreSwapFee provides a mock function with given fields: ctx, chainID, timestamp, contractAddress, fee, feeType

func (*ConsumerDB) StoreTokenIndex added in v0.0.43

func (_m *ConsumerDB) StoreTokenIndex(ctx context.Context, chainID uint32, tokenIndex uint8, tokenAddress string, contractAddress string) error

StoreTokenIndex provides a mock function with given fields: ctx, chainID, tokenIndex, tokenAddress, contractAddress

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