Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- Constants
- Variables
- func BondBalance() metoken.IndexBalances
- func BondIndex() metoken.Index
- func EmptyNonStableIndexBalances(denom string) metoken.IndexBalances
- func EmptyUSDIndexBalances(denom string) metoken.IndexBalances
- func NonStableIndex(denom string) metoken.Index
- func StableIndex(denom string) metoken.Index
- func ValidFee() metoken.Fee
- func ValidPrices() otypes.Prices
- func ValidPricesFunc() func(ctx sdk.Context) otypes.Prices
- func ValidToken(baseDenom, symbolDenom string, exponent uint32) ltypes.Token
- func ValidUSDIndexBalances(denom string) metoken.IndexBalances
- type MockBankKeeper
- func (m *MockBankKeeper) BurnCoins(ctx types.Context, moduleName string, amounts types.Coins) error
- func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
- func (m *MockBankKeeper) MintCoins(ctx types.Context, moduleName string, amounts types.Coins) error
- func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, ...) error
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, ...) error
- type MockBankKeeperMockRecorder
- func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, moduleName, amounts interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amounts interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
- type MockLeverageKeeper
- func (m *MockLeverageKeeper) EXPECT() *MockLeverageKeeperMockRecorder
- func (m *MockLeverageKeeper) GetAllSupplied(ctx types.Context, supplierAddr types.AccAddress) (types.Coins, error)
- func (m *MockLeverageKeeper) GetTokenSettings(ctx types.Context, denom string) (types0.Token, error)
- func (m *MockLeverageKeeper) GetTotalSupply(ctx types.Context, denom string) (types.Coin, error)
- func (m *MockLeverageKeeper) ModuleMaxWithdraw(ctx types.Context, spendableUTokens types.Coin) (math.Int, error)
- func (m *MockLeverageKeeper) SupplyFromModule(ctx types.Context, fromModule string, coin types.Coin) (types.Coin, bool, error)
- func (m *MockLeverageKeeper) ToToken(ctx types.Context, uToken types.Coin) (types.Coin, error)
- func (m *MockLeverageKeeper) ToUToken(ctx types.Context, token types.Coin) (types.Coin, error)
- func (m *MockLeverageKeeper) WithdrawToModule(ctx types.Context, toModule string, uToken types.Coin) (types.Coin, bool, error)
- type MockLeverageKeeperMockRecorder
- func (mr *MockLeverageKeeperMockRecorder) GetAllSupplied(ctx, supplierAddr interface{}) *gomock.Call
- func (mr *MockLeverageKeeperMockRecorder) GetTokenSettings(ctx, denom interface{}) *gomock.Call
- func (mr *MockLeverageKeeperMockRecorder) GetTotalSupply(ctx, denom interface{}) *gomock.Call
- func (mr *MockLeverageKeeperMockRecorder) ModuleMaxWithdraw(ctx, spendableUTokens interface{}) *gomock.Call
- func (mr *MockLeverageKeeperMockRecorder) SupplyFromModule(ctx, fromModule, coin interface{}) *gomock.Call
- func (mr *MockLeverageKeeperMockRecorder) ToToken(ctx, uToken interface{}) *gomock.Call
- func (mr *MockLeverageKeeperMockRecorder) ToUToken(ctx, token interface{}) *gomock.Call
- func (mr *MockLeverageKeeperMockRecorder) WithdrawToModule(ctx, toModule, uToken interface{}) *gomock.Call
- type MockOracleKeeper
- type MockOracleKeeperMockRecorder
Constants ¶
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 ¶
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 EmptyNonStableIndexBalances ¶
func EmptyNonStableIndexBalances(denom string) metoken.IndexBalances
func EmptyUSDIndexBalances ¶
func EmptyUSDIndexBalances(denom string) metoken.IndexBalances
func NonStableIndex ¶
func StableIndex ¶
func ValidPrices ¶
ValidPrices return 24 medians, each one with different prices
func ValidPricesFunc ¶
ValidPricesFunc return mock func for x/oracle
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) EXPECT ¶
func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
func (m *MockLeverageKeeper) EXPECT() *MockLeverageKeeperMockRecorder
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 ¶
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.
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 ¶
func (m *MockOracleKeeper) EXPECT() *MockOracleKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOracleKeeper) SetExchangeRate ¶ added in v6.2.0
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.