mocks

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

View Source
const (
	USDTBaseDenom    = "ibc/223420B0E8CF9CC47BCAB816AB3A20AE162EED27C1177F4B2BC270C83E11AD8D"
	USDTSymbolDenom  = "USDT"
	USDCBaseDenom    = "ibc/49788C29CD84E08D25CA7BE960BC1F61E88FEFC6333F58557D236D693398466A"
	USDCSymbolDenom  = "USDC"
	ISTBaseDenom     = "ibc/BA460328D9ABA27E643A924071FDB3836E4CE8084C6D2380F25EFAB85CF8EB11"
	ISTSymbolDenom   = "IST"
	WBTCBaseDenom    = "ibc/153B97FE395140EAAA2D7CAC537AF1804AEC5F0595CBC5F1603094018D158C0C"
	WBTCSymbolDenom  = "WBTC"
	ETHBaseDenom     = "ibc/04CE51E6E02243E565AE676DD60336E48D455F8AAD0611FA0299A22FDAC448D6"
	ETHSymbolDenom   = "ETH"
	CMSTBaseDenom    = "ibc/31FA0BA043524F2EFBC9AB0539C43708B8FC549E4800E02D103DDCECAC5FF40C"
	CMSTSymbolDenom  = "CMST"
	MeUSDDenom       = "me/USD"
	MeNonStableDenom = "me/NonStable"
	TestDenom1       = "testDenom1"
	BondDenom        = "uumee"
	MeBondDenom      = "me/" + BondDenom
)

Variables

View Source
var (
	USDTPrice = sdk.MustNewDecFromStr("0.998")
	USDCPrice = sdk.MustNewDecFromStr("1.0")
	ISTPrice  = sdk.MustNewDecFromStr("1.02")
	CMSTPrice = sdk.MustNewDecFromStr("0.998")
	WBTCPrice = sdk.MustNewDecFromStr("27268.938478585498709550")
	ETHPrice  = sdk.MustNewDecFromStr("1851.789229542837161069")
)

Functions

func BondBalance

func BondBalance() metoken.IndexBalances

func BondIndex

func BondIndex() metoken.Index

func EmptyNonStableIndexBalances

func EmptyNonStableIndexBalances(denom string) metoken.IndexBalances

func EmptyUSDIndexBalances

func EmptyUSDIndexBalances(denom string) metoken.IndexBalances

func NonStableIndex

func NonStableIndex(denom string) metoken.Index

func StableIndex

func StableIndex(denom string) metoken.Index

func ValidFee

func ValidFee() metoken.Fee

func ValidPrices

func ValidPrices() otypes.Prices

ValidPrices return 24 medians, each one with different prices

func ValidPricesFunc

func ValidPricesFunc() func(ctx sdk.Context) otypes.Prices

ValidPricesFunc return mock func for x/oracle

func ValidToken

func ValidToken(baseDenom, symbolDenom string, exponent uint32) ltypes.Token

func ValidUSDIndexBalances

func ValidUSDIndexBalances(denom string) metoken.IndexBalances

Types

type MockBankKeeper

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

MockBankKeeper is a mock of BankKeeper interface.

func NewMockBankKeeper

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance.

func (*MockBankKeeper) BurnCoins

func (m *MockBankKeeper) BurnCoins(ctx types.Context, moduleName string, amounts types.Coins) error

BurnCoins mocks base method.

func (*MockBankKeeper) EXPECT

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

func (*MockBankKeeper) MintCoins

func (m *MockBankKeeper) MintCoins(ctx types.Context, moduleName string, amounts types.Coins) error

MintCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule

func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error

SendCoinsFromModuleToAccount mocks base method.

type MockBankKeeperMockRecorder

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

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) BurnCoins

func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, moduleName, amounts interface{}) *gomock.Call

BurnCoins indicates an expected call of BurnCoins.

func (*MockBankKeeperMockRecorder) MintCoins

func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amounts interface{}) *gomock.Call

MintCoins indicates an expected call of MintCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

type MockLeverageKeeper

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

MockLeverageKeeper is a mock of LeverageKeeper interface.

func NewMockLeverageKeeper

func NewMockLeverageKeeper(ctrl *gomock.Controller) *MockLeverageKeeper

NewMockLeverageKeeper creates a new mock instance.

func (*MockLeverageKeeper) EXPECT

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

func (*MockLeverageKeeper) GetAllSupplied

func (m *MockLeverageKeeper) GetAllSupplied(ctx types.Context, supplierAddr types.AccAddress) (types.Coins, error)

GetAllSupplied mocks base method.

func (*MockLeverageKeeper) GetTokenSettings

func (m *MockLeverageKeeper) GetTokenSettings(ctx types.Context, denom string) (types0.Token, error)

GetTokenSettings mocks base method.

func (*MockLeverageKeeper) GetTotalSupply

func (m *MockLeverageKeeper) GetTotalSupply(ctx types.Context, denom string) (types.Coin, error)

GetTotalSupply mocks base method.

func (*MockLeverageKeeper) ModuleMaxWithdraw

func (m *MockLeverageKeeper) ModuleMaxWithdraw(ctx types.Context, spendableUTokens types.Coin) (math.Int, error)

ModuleMaxWithdraw mocks base method.

func (*MockLeverageKeeper) SupplyFromModule

func (m *MockLeverageKeeper) SupplyFromModule(ctx types.Context, fromModule string, coin types.Coin) (types.Coin, bool, error)

SupplyFromModule mocks base method.

func (*MockLeverageKeeper) ToToken

func (m *MockLeverageKeeper) ToToken(ctx types.Context, uToken types.Coin) (types.Coin, error)

ToToken mocks base method.

func (*MockLeverageKeeper) ToUToken

func (m *MockLeverageKeeper) ToUToken(ctx types.Context, token types.Coin) (types.Coin, error)

ToUToken mocks base method.

func (*MockLeverageKeeper) WithdrawToModule

func (m *MockLeverageKeeper) WithdrawToModule(ctx types.Context, toModule string, uToken types.Coin) (types.Coin, bool, error)

WithdrawToModule mocks base method.

type MockLeverageKeeperMockRecorder

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

MockLeverageKeeperMockRecorder is the mock recorder for MockLeverageKeeper.

func (*MockLeverageKeeperMockRecorder) GetAllSupplied

func (mr *MockLeverageKeeperMockRecorder) GetAllSupplied(ctx, supplierAddr interface{}) *gomock.Call

GetAllSupplied indicates an expected call of GetAllSupplied.

func (*MockLeverageKeeperMockRecorder) GetTokenSettings

func (mr *MockLeverageKeeperMockRecorder) GetTokenSettings(ctx, denom interface{}) *gomock.Call

GetTokenSettings indicates an expected call of GetTokenSettings.

func (*MockLeverageKeeperMockRecorder) GetTotalSupply

func (mr *MockLeverageKeeperMockRecorder) GetTotalSupply(ctx, denom interface{}) *gomock.Call

GetTotalSupply indicates an expected call of GetTotalSupply.

func (*MockLeverageKeeperMockRecorder) ModuleMaxWithdraw

func (mr *MockLeverageKeeperMockRecorder) ModuleMaxWithdraw(ctx, spendableUTokens interface{}) *gomock.Call

ModuleMaxWithdraw indicates an expected call of ModuleMaxWithdraw.

func (*MockLeverageKeeperMockRecorder) SupplyFromModule

func (mr *MockLeverageKeeperMockRecorder) SupplyFromModule(ctx, fromModule, coin interface{}) *gomock.Call

SupplyFromModule indicates an expected call of SupplyFromModule.

func (*MockLeverageKeeperMockRecorder) ToToken

func (mr *MockLeverageKeeperMockRecorder) ToToken(ctx, uToken interface{}) *gomock.Call

ToToken indicates an expected call of ToToken.

func (*MockLeverageKeeperMockRecorder) ToUToken

func (mr *MockLeverageKeeperMockRecorder) ToUToken(ctx, token interface{}) *gomock.Call

ToUToken indicates an expected call of ToUToken.

func (*MockLeverageKeeperMockRecorder) WithdrawToModule

func (mr *MockLeverageKeeperMockRecorder) WithdrawToModule(ctx, toModule, uToken interface{}) *gomock.Call

WithdrawToModule indicates an expected call of WithdrawToModule.

type MockOracleKeeper

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

MockOracleKeeper is a mock of OracleKeeper interface.

func NewMockOracleKeeper

func NewMockOracleKeeper(ctrl *gomock.Controller) *MockOracleKeeper

NewMockOracleKeeper creates a new mock instance.

func (*MockOracleKeeper) AllMedianPrices

func (m *MockOracleKeeper) AllMedianPrices(ctx types.Context) types1.Prices

AllMedianPrices mocks base method.

func (*MockOracleKeeper) EXPECT

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

func (*MockOracleKeeper) SetExchangeRate added in v6.2.0

func (m *MockOracleKeeper) SetExchangeRate(ctx types.Context, denom string, rate types.Dec)

SetExchangeRate mocks base method.

type MockOracleKeeperMockRecorder

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

MockOracleKeeperMockRecorder is the mock recorder for MockOracleKeeper.

func (*MockOracleKeeperMockRecorder) AllMedianPrices

func (mr *MockOracleKeeperMockRecorder) AllMedianPrices(ctx interface{}) *gomock.Call

AllMedianPrices indicates an expected call of AllMedianPrices.

func (*MockOracleKeeperMockRecorder) SetExchangeRate added in v6.2.0

func (mr *MockOracleKeeperMockRecorder) SetExchangeRate(ctx, denom, rate interface{}) *gomock.Call

SetExchangeRate indicates an expected call of SetExchangeRate.

Jump to

Keyboard shortcuts

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