mocks

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 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) 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) 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) 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) 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