mock

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DexPool

func DexPool(poolId uint64, assets sdk.Coins, shares int64) types.Pool

helper function to create dummy test pools

Types

type MockAccountKeeper added in v0.1.0

type MockAccountKeeper struct {
	// contains filtered or unexported fields
}

MockAccountKeeper is a mock of AccountKeeper interface.

func NewMockAccountKeeper added in v0.1.0

func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper

NewMockAccountKeeper creates a new mock instance.

func (*MockAccountKeeper) EXPECT added in v0.1.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountKeeper) GetAccount added in v0.1.0

func (m *MockAccountKeeper) GetAccount(arg0 types2.Context, arg1 types2.AccAddress) types3.AccountI

GetAccount mocks base method.

func (*MockAccountKeeper) GetModuleAccount added in v0.1.0

func (m *MockAccountKeeper) GetModuleAccount(arg0 types2.Context, arg1 string) types3.ModuleAccountI

GetModuleAccount mocks base method.

func (*MockAccountKeeper) GetModuleAddress added in v0.1.0

func (m *MockAccountKeeper) GetModuleAddress(arg0 string) types2.AccAddress

GetModuleAddress mocks base method.

type MockAccountKeeperMockRecorder added in v0.1.0

type MockAccountKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.

func (*MockAccountKeeperMockRecorder) GetAccount added in v0.1.0

func (mr *MockAccountKeeperMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAccount added in v0.1.0

func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(arg0, arg1 interface{}) *gomock.Call

GetModuleAccount indicates an expected call of GetModuleAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAddress added in v0.1.0

func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(arg0 interface{}) *gomock.Call

GetModuleAddress indicates an expected call of GetModuleAddress.

type MockBankKeeper added in v0.1.0

type MockBankKeeper struct {
	// contains filtered or unexported fields
}

MockBankKeeper is a mock of BankKeeper interface.

func NewMockBankKeeper added in v0.1.0

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance.

func (*MockBankKeeper) BurnCoins added in v0.1.0

func (m *MockBankKeeper) BurnCoins(arg0 types2.Context, arg1 string, arg2 types2.Coins) error

BurnCoins mocks base method.

func (*MockBankKeeper) EXPECT added in v0.1.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBankKeeper) GetAllBalances added in v0.5.0

func (m *MockBankKeeper) GetAllBalances(arg0 types2.Context, arg1 types2.AccAddress) types2.Coins

GetAllBalances mocks base method.

func (*MockBankKeeper) GetBalance added in v0.1.0

func (m *MockBankKeeper) GetBalance(arg0 types2.Context, arg1 types2.AccAddress, arg2 string) types2.Coin

GetBalance mocks base method.

func (*MockBankKeeper) MintCoins added in v0.1.0

func (m *MockBankKeeper) MintCoins(arg0 types2.Context, arg1 string, arg2 types2.Coins) error

MintCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule added in v0.1.0

func (m *MockBankKeeper) SendCoinsFromAccountToModule(arg0 types2.Context, arg1 types2.AccAddress, arg2 string, arg3 types2.Coins) error

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount added in v0.1.0

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(arg0 types2.Context, arg1 string, arg2 types2.AccAddress, arg3 types2.Coins) error

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule added in v0.1.0

func (m *MockBankKeeper) SendCoinsFromModuleToModule(arg0 types2.Context, arg1, arg2 string, arg3 types2.Coins) error

SendCoinsFromModuleToModule mocks base method.

func (*MockBankKeeper) SpendableCoins added in v0.1.0

func (m *MockBankKeeper) SpendableCoins(arg0 types2.Context, arg1 types2.AccAddress) types2.Coins

SpendableCoins mocks base method.

type MockBankKeeperMockRecorder added in v0.1.0

type MockBankKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) BurnCoins added in v0.1.0

func (mr *MockBankKeeperMockRecorder) BurnCoins(arg0, arg1, arg2 interface{}) *gomock.Call

BurnCoins indicates an expected call of BurnCoins.

func (*MockBankKeeperMockRecorder) GetAllBalances added in v0.5.0

func (mr *MockBankKeeperMockRecorder) GetAllBalances(arg0, arg1 interface{}) *gomock.Call

GetAllBalances indicates an expected call of GetAllBalances.

func (*MockBankKeeperMockRecorder) GetBalance added in v0.1.0

func (mr *MockBankKeeperMockRecorder) GetBalance(arg0, arg1, arg2 interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance.

func (*MockBankKeeperMockRecorder) MintCoins added in v0.1.0

func (mr *MockBankKeeperMockRecorder) MintCoins(arg0, arg1, arg2 interface{}) *gomock.Call

MintCoins indicates an expected call of MintCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule added in v0.1.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount added in v0.1.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule added in v0.1.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.

func (*MockBankKeeperMockRecorder) SpendableCoins added in v0.1.0

func (mr *MockBankKeeperMockRecorder) SpendableCoins(arg0, arg1 interface{}) *gomock.Call

SpendableCoins indicates an expected call of SpendableCoins.

type MockEpochKeeper added in v0.5.1

type MockEpochKeeper struct {
	// contains filtered or unexported fields
}

MockEpochKeeper is a mock of EpochKeeper interface.

func NewMockEpochKeeper added in v0.5.1

func NewMockEpochKeeper(ctrl *gomock.Controller) *MockEpochKeeper

NewMockEpochKeeper creates a new mock instance.

func (*MockEpochKeeper) EXPECT added in v0.5.1

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEpochKeeper) GetEpochInfo added in v0.5.1

func (m *MockEpochKeeper) GetEpochInfo(arg0 types2.Context, arg1 string) types.EpochInfo

GetEpochInfo mocks base method.

type MockEpochKeeperMockRecorder added in v0.5.1

type MockEpochKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockEpochKeeperMockRecorder is the mock recorder for MockEpochKeeper.

func (*MockEpochKeeperMockRecorder) GetEpochInfo added in v0.5.1

func (mr *MockEpochKeeperMockRecorder) GetEpochInfo(arg0, arg1 interface{}) *gomock.Call

GetEpochInfo indicates an expected call of GetEpochInfo.

type MockPricefeedKeeper added in v0.2.9

type MockPricefeedKeeper struct {
	// contains filtered or unexported fields
}

MockPricefeedKeeper is a mock of PricefeedKeeper interface.

func NewMockPricefeedKeeper added in v0.2.9

func NewMockPricefeedKeeper(ctrl *gomock.Controller) *MockPricefeedKeeper

NewMockPricefeedKeeper creates a new mock instance.

func (*MockPricefeedKeeper) EXPECT added in v0.2.9

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPricefeedKeeper) GetCurrentPrice added in v0.2.9

func (m *MockPricefeedKeeper) GetCurrentPrice(arg0 types2.Context, arg1, arg2 string) (types0.CurrentPrice, error)

GetCurrentPrice mocks base method.

func (*MockPricefeedKeeper) GetCurrentPrices added in v0.2.9

func (m *MockPricefeedKeeper) GetCurrentPrices(arg0 types2.Context) types0.CurrentPrices

GetCurrentPrices mocks base method.

func (*MockPricefeedKeeper) GetCurrentTWAPPrice added in v0.5.1

func (m *MockPricefeedKeeper) GetCurrentTWAPPrice(arg0 types2.Context, arg1, arg2 string) (types0.CurrentTWAP, error)

GetCurrentTWAPPrice mocks base method.

func (*MockPricefeedKeeper) GetOraclesForPair added in v0.5.2

func (m *MockPricefeedKeeper) GetOraclesForPair(arg0 types2.Context, arg1 string) []types2.AccAddress

GetOraclesForPair mocks base method.

func (*MockPricefeedKeeper) GetPairs added in v0.2.9

GetPairs mocks base method.

func (*MockPricefeedKeeper) GetRawPrices added in v0.2.9

func (m *MockPricefeedKeeper) GetRawPrices(arg0 types2.Context, arg1 string) types0.PostedPrices

GetRawPrices mocks base method.

func (*MockPricefeedKeeper) IsActivePair added in v0.5.2

func (m *MockPricefeedKeeper) IsActivePair(arg0 types2.Context, arg1 string) bool

IsActivePair mocks base method.

func (*MockPricefeedKeeper) IsWhitelistedOracle added in v0.5.2

func (m *MockPricefeedKeeper) IsWhitelistedOracle(arg0 types2.Context, arg1 string, arg2 types2.AccAddress) bool

IsWhitelistedOracle mocks base method.

func (*MockPricefeedKeeper) SetCurrentPrices added in v0.2.9

func (m *MockPricefeedKeeper) SetCurrentPrices(arg0 types2.Context, arg1, arg2 string) error

SetCurrentPrices mocks base method.

type MockPricefeedKeeperMockRecorder added in v0.2.9

type MockPricefeedKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockPricefeedKeeperMockRecorder is the mock recorder for MockPricefeedKeeper.

func (*MockPricefeedKeeperMockRecorder) GetCurrentPrice added in v0.2.9

func (mr *MockPricefeedKeeperMockRecorder) GetCurrentPrice(arg0, arg1, arg2 interface{}) *gomock.Call

GetCurrentPrice indicates an expected call of GetCurrentPrice.

func (*MockPricefeedKeeperMockRecorder) GetCurrentPrices added in v0.2.9

func (mr *MockPricefeedKeeperMockRecorder) GetCurrentPrices(arg0 interface{}) *gomock.Call

GetCurrentPrices indicates an expected call of GetCurrentPrices.

func (*MockPricefeedKeeperMockRecorder) GetCurrentTWAPPrice added in v0.5.1

func (mr *MockPricefeedKeeperMockRecorder) GetCurrentTWAPPrice(arg0, arg1, arg2 interface{}) *gomock.Call

GetCurrentTWAPPrice indicates an expected call of GetCurrentTWAPPrice.

func (*MockPricefeedKeeperMockRecorder) GetOraclesForPair added in v0.5.2

func (mr *MockPricefeedKeeperMockRecorder) GetOraclesForPair(arg0, arg1 interface{}) *gomock.Call

GetOraclesForPair indicates an expected call of GetOraclesForPair.

func (*MockPricefeedKeeperMockRecorder) GetPairs added in v0.2.9

func (mr *MockPricefeedKeeperMockRecorder) GetPairs(arg0 interface{}) *gomock.Call

GetPairs indicates an expected call of GetPairs.

func (*MockPricefeedKeeperMockRecorder) GetRawPrices added in v0.2.9

func (mr *MockPricefeedKeeperMockRecorder) GetRawPrices(arg0, arg1 interface{}) *gomock.Call

GetRawPrices indicates an expected call of GetRawPrices.

func (*MockPricefeedKeeperMockRecorder) IsActivePair added in v0.5.2

func (mr *MockPricefeedKeeperMockRecorder) IsActivePair(arg0, arg1 interface{}) *gomock.Call

IsActivePair indicates an expected call of IsActivePair.

func (*MockPricefeedKeeperMockRecorder) IsWhitelistedOracle added in v0.5.2

func (mr *MockPricefeedKeeperMockRecorder) IsWhitelistedOracle(arg0, arg1, arg2 interface{}) *gomock.Call

IsWhitelistedOracle indicates an expected call of IsWhitelistedOracle.

func (*MockPricefeedKeeperMockRecorder) SetCurrentPrices added in v0.2.9

func (mr *MockPricefeedKeeperMockRecorder) SetCurrentPrices(arg0, arg1, arg2 interface{}) *gomock.Call

SetCurrentPrices indicates an expected call of SetCurrentPrices.

type MockVpoolKeeper added in v0.1.0

type MockVpoolKeeper struct {
	// contains filtered or unexported fields
}

MockVpoolKeeper is a mock of VpoolKeeper interface.

func NewMockVpoolKeeper added in v0.1.0

func NewMockVpoolKeeper(ctrl *gomock.Controller) *MockVpoolKeeper

NewMockVpoolKeeper creates a new mock instance.

func (*MockVpoolKeeper) EXPECT added in v0.1.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVpoolKeeper) ExistsPool added in v0.1.0

func (m *MockVpoolKeeper) ExistsPool(arg0 types2.Context, arg1 common.AssetPair) bool

ExistsPool mocks base method.

func (*MockVpoolKeeper) GetBaseAssetPrice added in v0.1.0

func (m *MockVpoolKeeper) GetBaseAssetPrice(arg0 types2.Context, arg1 common.AssetPair, arg2 types1.Direction, arg3 types2.Dec) (types2.Dec, error)

GetBaseAssetPrice mocks base method.

func (*MockVpoolKeeper) GetBaseAssetTWAP added in v0.1.0

func (m *MockVpoolKeeper) GetBaseAssetTWAP(arg0 types2.Context, arg1 common.AssetPair, arg2 types1.Direction, arg3 types2.Dec, arg4 time.Duration) (types2.Dec, error)

GetBaseAssetTWAP mocks base method.

func (*MockVpoolKeeper) GetCurrentTWAPPrice added in v0.5.1

func (m *MockVpoolKeeper) GetCurrentTWAPPrice(arg0 types2.Context, arg1 common.AssetPair) (types1.CurrentTWAP, error)

GetCurrentTWAPPrice mocks base method.

func (*MockVpoolKeeper) GetQuoteAssetPrice added in v0.1.0

func (m *MockVpoolKeeper) GetQuoteAssetPrice(arg0 types2.Context, arg1 common.AssetPair, arg2 types1.Direction, arg3 types2.Dec) (types2.Dec, error)

GetQuoteAssetPrice mocks base method.

func (*MockVpoolKeeper) GetQuoteAssetTWAP added in v0.1.0

func (m *MockVpoolKeeper) GetQuoteAssetTWAP(arg0 types2.Context, arg1 common.AssetPair, arg2 types1.Direction, arg3 types2.Dec, arg4 time.Duration) (types2.Dec, error)

GetQuoteAssetTWAP mocks base method.

func (*MockVpoolKeeper) GetSettlementPrice added in v0.1.0

func (m *MockVpoolKeeper) GetSettlementPrice(arg0 types2.Context, arg1 common.AssetPair) (types2.Dec, error)

GetSettlementPrice mocks base method.

func (*MockVpoolKeeper) GetSpotPrice added in v0.1.0

func (m *MockVpoolKeeper) GetSpotPrice(arg0 types2.Context, arg1 common.AssetPair) (types2.Dec, error)

GetSpotPrice mocks base method.

func (*MockVpoolKeeper) GetUnderlyingPrice added in v0.1.0

func (m *MockVpoolKeeper) GetUnderlyingPrice(arg0 types2.Context, arg1 common.AssetPair) (types2.Dec, error)

GetUnderlyingPrice mocks base method.

func (*MockVpoolKeeper) IsOverSpreadLimit added in v0.1.0

func (m *MockVpoolKeeper) IsOverSpreadLimit(arg0 types2.Context, arg1 common.AssetPair) bool

IsOverSpreadLimit mocks base method.

func (*MockVpoolKeeper) SwapBaseForQuote added in v0.1.0

func (m *MockVpoolKeeper) SwapBaseForQuote(arg0 types2.Context, arg1 common.AssetPair, arg2 types1.Direction, arg3, arg4 types2.Dec) (types2.Dec, error)

SwapBaseForQuote mocks base method.

func (*MockVpoolKeeper) SwapQuoteForBase added in v0.1.0

func (m *MockVpoolKeeper) SwapQuoteForBase(arg0 types2.Context, arg1 common.AssetPair, arg2 types1.Direction, arg3, arg4 types2.Dec) (types2.Dec, error)

SwapQuoteForBase mocks base method.

type MockVpoolKeeperMockRecorder added in v0.1.0

type MockVpoolKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockVpoolKeeperMockRecorder is the mock recorder for MockVpoolKeeper.

func (*MockVpoolKeeperMockRecorder) ExistsPool added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) ExistsPool(arg0, arg1 interface{}) *gomock.Call

ExistsPool indicates an expected call of ExistsPool.

func (*MockVpoolKeeperMockRecorder) GetBaseAssetPrice added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) GetBaseAssetPrice(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetBaseAssetPrice indicates an expected call of GetBaseAssetPrice.

func (*MockVpoolKeeperMockRecorder) GetBaseAssetTWAP added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) GetBaseAssetTWAP(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetBaseAssetTWAP indicates an expected call of GetBaseAssetTWAP.

func (*MockVpoolKeeperMockRecorder) GetCurrentTWAPPrice added in v0.5.1

func (mr *MockVpoolKeeperMockRecorder) GetCurrentTWAPPrice(arg0, arg1 interface{}) *gomock.Call

GetCurrentTWAPPrice indicates an expected call of GetCurrentTWAPPrice.

func (*MockVpoolKeeperMockRecorder) GetQuoteAssetPrice added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) GetQuoteAssetPrice(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetQuoteAssetPrice indicates an expected call of GetQuoteAssetPrice.

func (*MockVpoolKeeperMockRecorder) GetQuoteAssetTWAP added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) GetQuoteAssetTWAP(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GetQuoteAssetTWAP indicates an expected call of GetQuoteAssetTWAP.

func (*MockVpoolKeeperMockRecorder) GetSettlementPrice added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) GetSettlementPrice(arg0, arg1 interface{}) *gomock.Call

GetSettlementPrice indicates an expected call of GetSettlementPrice.

func (*MockVpoolKeeperMockRecorder) GetSpotPrice added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) GetSpotPrice(arg0, arg1 interface{}) *gomock.Call

GetSpotPrice indicates an expected call of GetSpotPrice.

func (*MockVpoolKeeperMockRecorder) GetUnderlyingPrice added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) GetUnderlyingPrice(arg0, arg1 interface{}) *gomock.Call

GetUnderlyingPrice indicates an expected call of GetUnderlyingPrice.

func (*MockVpoolKeeperMockRecorder) IsOverSpreadLimit added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) IsOverSpreadLimit(arg0, arg1 interface{}) *gomock.Call

IsOverSpreadLimit indicates an expected call of IsOverSpreadLimit.

func (*MockVpoolKeeperMockRecorder) SwapBaseForQuote added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) SwapBaseForQuote(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

SwapBaseForQuote indicates an expected call of SwapBaseForQuote.

func (*MockVpoolKeeperMockRecorder) SwapQuoteForBase added in v0.1.0

func (mr *MockVpoolKeeperMockRecorder) SwapQuoteForBase(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

SwapQuoteForBase indicates an expected call of SwapQuoteForBase.

Jump to

Keyboard shortcuts

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