Versions in this module Expand all Collapse all v0 v0.3.2 Jul 7, 2023 v0.3.1 Jul 6, 2023 v0.2.1 Jul 6, 2023 Changes in this version + const AttributeKeyCdpID + const AttributeKeyDeposit + const AttributeKeyError + const AttributeValueCategory + const DefaultParamspace + const EventTypeBeginBlockerFatal + const EventTypeCdpClose + const EventTypeCdpDeposit + const EventTypeCdpDraw + const EventTypeCdpLiquidation + const EventTypeCdpRepay + const EventTypeCdpWithdrawal + const EventTypeCreateCdp + const LiquidatorMacc + const ModuleName + const QuerierRoute + const QueryGetAccounts + const QueryGetCdp + const QueryGetCdpDeposits + const QueryGetCdps + const QueryGetCdpsByCollateralType + const QueryGetCdpsByCollateralization + const QueryGetParams + const QueryGetTotalCollateral + const QueryGetTotalPrincipal + const RestCollateralType + const RestOwner + const RestRatio + const RouterKey + const StoreKey + var CdpIDKey = []byte + var CdpIDKeyPrefix = []byte + var CdpKeyPrefix = []byte + var CollateralRatioIndexPrefix = []byte + var DebtDenomKey = []byte + var DefaultCdpStartingID = uint64(1) + var DefaultCircuitBreaker = false + var DefaultCollateralParams = CollateralParams + var DefaultDebtDenom = "debt" + var DefaultDebtLot = sdkmath.NewInt(10000000000) + var DefaultDebtParam = DebtParam + var DefaultDebtThreshold = sdkmath.NewInt(100000000000) + var DefaultGlobalDebt = sdk.NewCoin(DefaultStableDenom, sdk.ZeroInt()) + var DefaultGovDenom = "ufury" + var DefaultStableDenom = "usdf" + var DefaultSurplusLot = sdkmath.NewInt(10000000000) + var DefaultSurplusThreshold = sdkmath.NewInt(500000000000) + var DepositKeyPrefix = []byte + var ErrAccountNotFound = errorsmod.Register(ModuleName, 21, "account not found") + var ErrBelowDebtFloor = errorsmod.Register(ModuleName, 15, "proposed cdp debt is below minimum") + var ErrCdpAlreadyExists = errorsmod.Register(ModuleName, 2, "cdp already exists") + var ErrCdpNotAvailable = errorsmod.Register(ModuleName, 14, "cannot modify cdp in liquidation") + var ErrCdpNotFound = errorsmod.Register(ModuleName, 8, "cdp not found") + var ErrCollateralNotSupported = errorsmod.Register(ModuleName, 4, "collateral not supported") + var ErrDebtNotSupported = errorsmod.Register(ModuleName, 5, "debt not supported") + var ErrDenomPrefixNotFound = errorsmod.Register(ModuleName, 18, "denom prefix not found") + var ErrDepositNotAvailable = errorsmod.Register(ModuleName, 12, "deposit in liquidation") + var ErrDepositNotFound = errorsmod.Register(ModuleName, 9, "deposit not found") + var ErrExceedsDebtLimit = errorsmod.Register(ModuleName, 6, "proposed debt increase would exceed debt limit") + var ErrInsufficientBalance = errorsmod.Register(ModuleName, 22, "insufficient balance") + var ErrIntOverflowCdp = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidCollateral = errorsmod.Register(ModuleName, 20, "invalid collateral for input collateral type") + var ErrInvalidCollateralLength = errorsmod.Register(ModuleName, 3, "only one collateral type per cdp") + var ErrInvalidCollateralRatio = errorsmod.Register(ModuleName, 7, "proposed collateral ratio is below liquidation ratio") + var ErrInvalidDebtRequest = errorsmod.Register(ModuleName, 17, "only one principal type per cdp") + var ErrInvalidDeposit = errorsmod.Register(ModuleName, 10, "invalid deposit") + var ErrInvalidLengthCdp = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidPayment = errorsmod.Register(ModuleName, 11, "invalid payment") + var ErrInvalidWithdrawAmount = errorsmod.Register(ModuleName, 13, "withdrawal amount exceeds deposit") + var ErrLoadingAugmentedCDP = errorsmod.Register(ModuleName, 16, "augmented cdp could not be loaded from cdp") + var ErrNotLiquidatable = errorsmod.Register(ModuleName, 23, "cdp collateral ratio not below liquidation ratio") + var ErrPricefeedDown = errorsmod.Register(ModuleName, 19, "no price found for collateral") + var ErrUnexpectedEndOfGroupCdp = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var GovDenomKey = []byte + var InterestFactorPrefix = []byte + var KeyCircuitBreaker = []byte("CircuitBreaker") + var KeyCollateralParams = []byte("CollateralParams") + var KeyDebtLot = []byte("DebtLot") + var KeyDebtParam = []byte("DebtParam") + var KeyDebtThreshold = []byte("DebtThreshold") + var KeyGlobalDebtLimit = []byte("GlobalDebtLimit") + var KeySurplusLot = []byte("SurplusLot") + var KeySurplusThreshold = []byte("SurplusThreshold") + var MaxSortableDec = sdk.OneDec().Quo(sdk.SmallestDec()) + var ModuleCdc = codec.NewAminoCodec(amino) + var PreviousAccrualTimePrefix = []byte + var PricefeedStatusKeyPrefix = []byte + var PrincipalKeyPrefix = []byte + func CdpKey(collateralType string, cdpID uint64) []byte + func CollateralRatioBytes(ratio sdk.Dec) []byte + func CollateralRatioIterKey(collateralType string, ratio sdk.Dec) []byte + func CollateralRatioKey(collateralType string, cdpID uint64, ratio sdk.Dec) []byte + func DenomIterKey(collateralType string) []byte + func DepositIterKey(cdpID uint64) []byte + func DepositKey(cdpID uint64, depositor sdk.AccAddress) []byte + func GetCdpIDBytes(cdpID uint64) (cdpIDBz []byte) + func GetCdpIDFromBytes(bz []byte) (cdpID uint64) + func ParamKeyTable() paramtypes.KeyTable + func ParseDecBytes(db []byte) (sdk.Dec, error) + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error + func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + func RelativePow(x sdkmath.Int, n sdkmath.Int, b sdkmath.Int) (z sdkmath.Int) + func SortableDecBytes(dec sdk.Dec) []byte + func SplitCdpKey(key []byte) (string, uint64) + func SplitCollateralRatioIterKey(key []byte) (string, sdk.Dec) + func SplitCollateralRatioKey(key []byte) (string, uint64, sdk.Dec) + func SplitDenomIterKey(key []byte) string + func SplitDepositIterKey(key []byte) (cdpID uint64) + func SplitDepositKey(key []byte) (uint64, sdk.AccAddress) + func ValidSortableDec(dec sdk.Dec) bool + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + GetModuleAccount func(ctx sdk.Context, name string) authtypes.ModuleAccountI + GetModuleAddress func(name string) sdk.AccAddress + IterateAccounts func(ctx sdk.Context, cb func(account authtypes.AccountI) (stop bool)) + SetModuleAccount func(sdk.Context, authtypes.ModuleAccountI) + type AuctionKeeper interface + StartCollateralAuction func(ctx sdk.Context, seller string, lot sdk.Coin, maxBid sdk.Coin, ...) (uint64, error) + StartDebtAuction func(ctx sdk.Context, buyer string, bid sdk.Coin, initialLot sdk.Coin, ...) (uint64, error) + StartSurplusAuction func(ctx sdk.Context, seller string, lot sdk.Coin, bidDenom string) (uint64, error) + type AugmentedCDP struct + CollateralValue sdk.Coin + CollateralizationRatio sdk.Dec + func NewAugmentedCDP(cdp CDP, collateralValue sdk.Coin, collateralizationRatio sdk.Dec) AugmentedCDP + func (augCDP AugmentedCDP) String() string + type AugmentedCDPs []AugmentedCDP + func (augcdps AugmentedCDPs) String() string + type BankKeeper interface + BurnCoins func(ctx sdk.Context, moduleName string, amt sdk.Coins) error + GetAllBalances func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + GetBalance func(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin + GetSupply func(ctx sdk.Context, denom string) sdk.Coin + MintCoins func(ctx sdk.Context, moduleName string, amt sdk.Coins) error + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + SendCoinsFromModuleToAccount func(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error + SendCoinsFromModuleToModule func(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error + SpendableCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + type CDP struct + AccumulatedFees types.Coin + Collateral types.Coin + FeesUpdated time.Time + ID uint64 + InterestFactor github_com_cosmos_cosmos_sdk_types.Dec + Owner github_com_cosmos_cosmos_sdk_types.AccAddress + Principal types.Coin + Type string + func NewCDP(id uint64, owner sdk.AccAddress, collateral sdk.Coin, collateralType string, ...) CDP + func NewCDPWithFees(id uint64, owner sdk.AccAddress, collateral sdk.Coin, collateralType string, ...) CDP + func (*CDP) Descriptor() ([]byte, []int) + func (*CDP) ProtoMessage() + func (cdp CDP) GetNormalizedPrincipal() (sdk.Dec, error) + func (cdp CDP) GetTotalPrincipal() sdk.Coin + func (cdp CDP) Validate() error + func (m *CDP) Marshal() (dAtA []byte, err error) + func (m *CDP) MarshalTo(dAtA []byte) (int, error) + func (m *CDP) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CDP) Reset() + func (m *CDP) Size() (n int) + func (m *CDP) String() string + func (m *CDP) Unmarshal(dAtA []byte) error + func (m *CDP) XXX_DiscardUnknown() + func (m *CDP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CDP) XXX_Merge(src proto.Message) + func (m *CDP) XXX_Size() int + func (m *CDP) XXX_Unmarshal(b []byte) error + type CDPHooks interface + AfterCDPCreated func(ctx sdk.Context, cdp CDP) + BeforeCDPModified func(ctx sdk.Context, cdp CDP) + type CDPResponse struct + AccumulatedFees types1.Coin + Collateral types1.Coin + CollateralValue types1.Coin + CollateralizationRatio string + FeesUpdated time.Time + ID uint64 + InterestFactor string + Owner string + Principal types1.Coin + Type string + func NewCDPResponse(cdp CDP, collateralValue sdk.Coin, collateralizationRatio sdk.Dec) CDPResponse + func (*CDPResponse) Descriptor() ([]byte, []int) + func (*CDPResponse) ProtoMessage() + func (m *CDPResponse) GetAccumulatedFees() types1.Coin + func (m *CDPResponse) GetCollateral() types1.Coin + func (m *CDPResponse) GetCollateralValue() types1.Coin + func (m *CDPResponse) GetCollateralizationRatio() string + func (m *CDPResponse) GetFeesUpdated() time.Time + func (m *CDPResponse) GetID() uint64 + func (m *CDPResponse) GetInterestFactor() string + func (m *CDPResponse) GetOwner() string + func (m *CDPResponse) GetPrincipal() types1.Coin + func (m *CDPResponse) GetType() string + func (m *CDPResponse) Marshal() (dAtA []byte, err error) + func (m *CDPResponse) MarshalTo(dAtA []byte) (int, error) + func (m *CDPResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CDPResponse) Reset() + func (m *CDPResponse) Size() (n int) + func (m *CDPResponse) String() string + func (m *CDPResponse) Unmarshal(dAtA []byte) error + func (m *CDPResponse) XXX_DiscardUnknown() + func (m *CDPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CDPResponse) XXX_Merge(src proto.Message) + func (m *CDPResponse) XXX_Size() int + func (m *CDPResponse) XXX_Unmarshal(b []byte) error + type CDPResponses []CDPResponse + type CDPs []CDP + func (cdps CDPs) Validate() error + type CollateralParam struct + AuctionSize github_com_cosmos_cosmos_sdk_types.Int + CheckCollateralizationIndexCount github_com_cosmos_cosmos_sdk_types.Int + ConversionFactor github_com_cosmos_cosmos_sdk_types.Int + DebtLimit types.Coin + Denom string + KeeperRewardPercentage github_com_cosmos_cosmos_sdk_types.Dec + LiquidationMarketID string + LiquidationPenalty github_com_cosmos_cosmos_sdk_types.Dec + LiquidationRatio github_com_cosmos_cosmos_sdk_types.Dec + SpotMarketID string + StabilityFee github_com_cosmos_cosmos_sdk_types.Dec + Type string + func NewCollateralParam(denom, ctype string, liqRatio sdk.Dec, debtLimit sdk.Coin, ...) CollateralParam + func (*CollateralParam) Descriptor() ([]byte, []int) + func (*CollateralParam) ProtoMessage() + func (m *CollateralParam) GetDebtLimit() types.Coin + func (m *CollateralParam) GetDenom() string + func (m *CollateralParam) GetLiquidationMarketID() string + func (m *CollateralParam) GetSpotMarketID() string + func (m *CollateralParam) GetType() string + func (m *CollateralParam) Marshal() (dAtA []byte, err error) + func (m *CollateralParam) MarshalTo(dAtA []byte) (int, error) + func (m *CollateralParam) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CollateralParam) Reset() + func (m *CollateralParam) Size() (n int) + func (m *CollateralParam) String() string + func (m *CollateralParam) Unmarshal(dAtA []byte) error + func (m *CollateralParam) XXX_DiscardUnknown() + func (m *CollateralParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CollateralParam) XXX_Merge(src proto.Message) + func (m *CollateralParam) XXX_Size() int + func (m *CollateralParam) XXX_Unmarshal(b []byte) error + type CollateralParams []CollateralParam + type DebtParam struct + ConversionFactor github_com_cosmos_cosmos_sdk_types.Int + DebtFloor github_com_cosmos_cosmos_sdk_types.Int + Denom string + ReferenceAsset string + func NewDebtParam(denom, refAsset string, conversionFactor, debtFloor sdkmath.Int) DebtParam + func (*DebtParam) Descriptor() ([]byte, []int) + func (*DebtParam) ProtoMessage() + func (m *DebtParam) GetDenom() string + func (m *DebtParam) GetReferenceAsset() string + func (m *DebtParam) Marshal() (dAtA []byte, err error) + func (m *DebtParam) MarshalTo(dAtA []byte) (int, error) + func (m *DebtParam) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *DebtParam) Reset() + func (m *DebtParam) Size() (n int) + func (m *DebtParam) String() string + func (m *DebtParam) Unmarshal(dAtA []byte) error + func (m *DebtParam) XXX_DiscardUnknown() + func (m *DebtParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DebtParam) XXX_Merge(src proto.Message) + func (m *DebtParam) XXX_Size() int + func (m *DebtParam) XXX_Unmarshal(b []byte) error + type DebtParams []DebtParam + type Deposit struct + Amount types.Coin + CdpID uint64 + Depositor github_com_cosmos_cosmos_sdk_types.AccAddress + func NewDeposit(cdpID uint64, depositor sdk.AccAddress, amount sdk.Coin) Deposit + func (*Deposit) Descriptor() ([]byte, []int) + func (*Deposit) ProtoMessage() + func (d Deposit) Empty() bool + func (d Deposit) Equals(comp Deposit) bool + func (d Deposit) Validate() error + func (m *Deposit) Marshal() (dAtA []byte, err error) + func (m *Deposit) MarshalTo(dAtA []byte) (int, error) + func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Deposit) Reset() + func (m *Deposit) Size() (n int) + func (m *Deposit) String() string + func (m *Deposit) Unmarshal(dAtA []byte) error + func (m *Deposit) XXX_DiscardUnknown() + func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Deposit) XXX_Merge(src proto.Message) + func (m *Deposit) XXX_Size() int + func (m *Deposit) XXX_Unmarshal(b []byte) error + type Deposits []Deposit + func (ds Deposits) SumCollateral() (sum sdkmath.Int) + func (ds Deposits) Validate() error + type GenesisAccumulationTime struct + CollateralType string + InterestFactor github_com_cosmos_cosmos_sdk_types.Dec + PreviousAccumulationTime time.Time + func NewGenesisAccumulationTime(ctype string, prevTime time.Time, factor sdk.Dec) GenesisAccumulationTime + func (*GenesisAccumulationTime) Descriptor() ([]byte, []int) + func (*GenesisAccumulationTime) ProtoMessage() + func (gat GenesisAccumulationTime) Validate() error + func (m *GenesisAccumulationTime) GetCollateralType() string + func (m *GenesisAccumulationTime) GetPreviousAccumulationTime() time.Time + func (m *GenesisAccumulationTime) Marshal() (dAtA []byte, err error) + func (m *GenesisAccumulationTime) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisAccumulationTime) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisAccumulationTime) Reset() + func (m *GenesisAccumulationTime) Size() (n int) + func (m *GenesisAccumulationTime) String() string + func (m *GenesisAccumulationTime) Unmarshal(dAtA []byte) error + func (m *GenesisAccumulationTime) XXX_DiscardUnknown() + func (m *GenesisAccumulationTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisAccumulationTime) XXX_Merge(src proto.Message) + func (m *GenesisAccumulationTime) XXX_Size() int + func (m *GenesisAccumulationTime) XXX_Unmarshal(b []byte) error + type GenesisAccumulationTimes []GenesisAccumulationTime + func (gats GenesisAccumulationTimes) Validate() error + type GenesisState struct + CDPs CDPs + DebtDenom string + Deposits Deposits + GovDenom string + Params Params + PreviousAccumulationTimes GenesisAccumulationTimes + StartingCdpID uint64 + TotalPrincipals GenesisTotalPrincipals + func DefaultGenesisState() GenesisState + func NewGenesisState(params Params, cdps CDPs, deposits Deposits, startingCdpID uint64, ...) GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetCDPs() CDPs + func (m *GenesisState) GetDebtDenom() string + func (m *GenesisState) GetDeposits() Deposits + func (m *GenesisState) GetGovDenom() string + func (m *GenesisState) GetParams() Params + func (m *GenesisState) GetPreviousAccumulationTimes() GenesisAccumulationTimes + func (m *GenesisState) GetStartingCdpID() uint64 + func (m *GenesisState) GetTotalPrincipals() GenesisTotalPrincipals + func (m *GenesisState) Marshal() (dAtA []byte, err error) + func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) error + func (m *GenesisState) XXX_DiscardUnknown() + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisState) XXX_Merge(src proto.Message) + func (m *GenesisState) XXX_Size() int + func (m *GenesisState) XXX_Unmarshal(b []byte) error + type GenesisTotalPrincipal struct + CollateralType string + TotalPrincipal github_com_cosmos_cosmos_sdk_types.Int + func NewGenesisTotalPrincipal(ctype string, principal sdkmath.Int) GenesisTotalPrincipal + func (*GenesisTotalPrincipal) Descriptor() ([]byte, []int) + func (*GenesisTotalPrincipal) ProtoMessage() + func (gtp GenesisTotalPrincipal) Validate() error + func (m *GenesisTotalPrincipal) GetCollateralType() string + func (m *GenesisTotalPrincipal) Marshal() (dAtA []byte, err error) + func (m *GenesisTotalPrincipal) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisTotalPrincipal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisTotalPrincipal) Reset() + func (m *GenesisTotalPrincipal) Size() (n int) + func (m *GenesisTotalPrincipal) String() string + func (m *GenesisTotalPrincipal) Unmarshal(dAtA []byte) error + func (m *GenesisTotalPrincipal) XXX_DiscardUnknown() + func (m *GenesisTotalPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisTotalPrincipal) XXX_Merge(src proto.Message) + func (m *GenesisTotalPrincipal) XXX_Size() int + func (m *GenesisTotalPrincipal) XXX_Unmarshal(b []byte) error + type GenesisTotalPrincipals []GenesisTotalPrincipal + func (gtps GenesisTotalPrincipals) Validate() error + type MsgClient interface + CreateCDP func(ctx context.Context, in *MsgCreateCDP, opts ...grpc.CallOption) (*MsgCreateCDPResponse, error) + Deposit func(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) + DrawDebt func(ctx context.Context, in *MsgDrawDebt, opts ...grpc.CallOption) (*MsgDrawDebtResponse, error) + Liquidate func(ctx context.Context, in *MsgLiquidate, opts ...grpc.CallOption) (*MsgLiquidateResponse, error) + RepayDebt func(ctx context.Context, in *MsgRepayDebt, opts ...grpc.CallOption) (*MsgRepayDebtResponse, error) + Withdraw func(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgCreateCDP struct + Collateral types.Coin + CollateralType string + Principal types.Coin + Sender string + func NewMsgCreateCDP(sender sdk.AccAddress, collateral sdk.Coin, principal sdk.Coin, ...) MsgCreateCDP + func (*MsgCreateCDP) Descriptor() ([]byte, []int) + func (*MsgCreateCDP) ProtoMessage() + func (m *MsgCreateCDP) GetCollateral() types.Coin + func (m *MsgCreateCDP) GetCollateralType() string + func (m *MsgCreateCDP) GetPrincipal() types.Coin + func (m *MsgCreateCDP) GetSender() string + func (m *MsgCreateCDP) Marshal() (dAtA []byte, err error) + func (m *MsgCreateCDP) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateCDP) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateCDP) Reset() + func (m *MsgCreateCDP) Size() (n int) + func (m *MsgCreateCDP) String() string + func (m *MsgCreateCDP) Unmarshal(dAtA []byte) error + func (m *MsgCreateCDP) XXX_DiscardUnknown() + func (m *MsgCreateCDP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateCDP) XXX_Merge(src proto.Message) + func (m *MsgCreateCDP) XXX_Size() int + func (m *MsgCreateCDP) XXX_Unmarshal(b []byte) error + func (msg MsgCreateCDP) GetSignBytes() []byte + func (msg MsgCreateCDP) GetSigners() []sdk.AccAddress + func (msg MsgCreateCDP) Route() string + func (msg MsgCreateCDP) Type() string + func (msg MsgCreateCDP) ValidateBasic() error + type MsgCreateCDPResponse struct + CdpID uint64 + func (*MsgCreateCDPResponse) Descriptor() ([]byte, []int) + func (*MsgCreateCDPResponse) ProtoMessage() + func (m *MsgCreateCDPResponse) GetCdpID() uint64 + func (m *MsgCreateCDPResponse) Marshal() (dAtA []byte, err error) + func (m *MsgCreateCDPResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateCDPResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateCDPResponse) Reset() + func (m *MsgCreateCDPResponse) Size() (n int) + func (m *MsgCreateCDPResponse) String() string + func (m *MsgCreateCDPResponse) Unmarshal(dAtA []byte) error + func (m *MsgCreateCDPResponse) XXX_DiscardUnknown() + func (m *MsgCreateCDPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateCDPResponse) XXX_Merge(src proto.Message) + func (m *MsgCreateCDPResponse) XXX_Size() int + func (m *MsgCreateCDPResponse) XXX_Unmarshal(b []byte) error + type MsgDeposit struct + Collateral types.Coin + CollateralType string + Depositor string + Owner string + func NewMsgDeposit(owner sdk.AccAddress, depositor sdk.AccAddress, collateral sdk.Coin, ...) MsgDeposit + func (*MsgDeposit) Descriptor() ([]byte, []int) + func (*MsgDeposit) ProtoMessage() + func (m *MsgDeposit) GetCollateral() types.Coin + func (m *MsgDeposit) GetCollateralType() string + func (m *MsgDeposit) GetDepositor() string + func (m *MsgDeposit) GetOwner() string + func (m *MsgDeposit) Marshal() (dAtA []byte, err error) + func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDeposit) Reset() + func (m *MsgDeposit) Size() (n int) + func (m *MsgDeposit) String() string + func (m *MsgDeposit) Unmarshal(dAtA []byte) error + func (m *MsgDeposit) XXX_DiscardUnknown() + func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDeposit) XXX_Merge(src proto.Message) + func (m *MsgDeposit) XXX_Size() int + func (m *MsgDeposit) XXX_Unmarshal(b []byte) error + func (msg MsgDeposit) GetSignBytes() []byte + func (msg MsgDeposit) GetSigners() []sdk.AccAddress + func (msg MsgDeposit) Route() string + func (msg MsgDeposit) Type() string + func (msg MsgDeposit) ValidateBasic() error + type MsgDepositResponse struct + func (*MsgDepositResponse) Descriptor() ([]byte, []int) + func (*MsgDepositResponse) ProtoMessage() + func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error) + func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDepositResponse) Reset() + func (m *MsgDepositResponse) Size() (n int) + func (m *MsgDepositResponse) String() string + func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error + func (m *MsgDepositResponse) XXX_DiscardUnknown() + func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDepositResponse) XXX_Merge(src proto.Message) + func (m *MsgDepositResponse) XXX_Size() int + func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error + type MsgDrawDebt struct + CollateralType string + Principal types.Coin + Sender string + func NewMsgDrawDebt(sender sdk.AccAddress, collateralType string, principal sdk.Coin) MsgDrawDebt + func (*MsgDrawDebt) Descriptor() ([]byte, []int) + func (*MsgDrawDebt) ProtoMessage() + func (m *MsgDrawDebt) GetCollateralType() string + func (m *MsgDrawDebt) GetPrincipal() types.Coin + func (m *MsgDrawDebt) GetSender() string + func (m *MsgDrawDebt) Marshal() (dAtA []byte, err error) + func (m *MsgDrawDebt) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDrawDebt) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDrawDebt) Reset() + func (m *MsgDrawDebt) Size() (n int) + func (m *MsgDrawDebt) String() string + func (m *MsgDrawDebt) Unmarshal(dAtA []byte) error + func (m *MsgDrawDebt) XXX_DiscardUnknown() + func (m *MsgDrawDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDrawDebt) XXX_Merge(src proto.Message) + func (m *MsgDrawDebt) XXX_Size() int + func (m *MsgDrawDebt) XXX_Unmarshal(b []byte) error + func (msg MsgDrawDebt) GetSignBytes() []byte + func (msg MsgDrawDebt) GetSigners() []sdk.AccAddress + func (msg MsgDrawDebt) Route() string + func (msg MsgDrawDebt) Type() string + func (msg MsgDrawDebt) ValidateBasic() error + type MsgDrawDebtResponse struct + func (*MsgDrawDebtResponse) Descriptor() ([]byte, []int) + func (*MsgDrawDebtResponse) ProtoMessage() + func (m *MsgDrawDebtResponse) Marshal() (dAtA []byte, err error) + func (m *MsgDrawDebtResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgDrawDebtResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgDrawDebtResponse) Reset() + func (m *MsgDrawDebtResponse) Size() (n int) + func (m *MsgDrawDebtResponse) String() string + func (m *MsgDrawDebtResponse) Unmarshal(dAtA []byte) error + func (m *MsgDrawDebtResponse) XXX_DiscardUnknown() + func (m *MsgDrawDebtResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgDrawDebtResponse) XXX_Merge(src proto.Message) + func (m *MsgDrawDebtResponse) XXX_Size() int + func (m *MsgDrawDebtResponse) XXX_Unmarshal(b []byte) error + type MsgLiquidate struct + Borrower string + CollateralType string + Keeper string + func NewMsgLiquidate(keeper, borrower sdk.AccAddress, ctype string) MsgLiquidate + func (*MsgLiquidate) Descriptor() ([]byte, []int) + func (*MsgLiquidate) ProtoMessage() + func (m *MsgLiquidate) GetBorrower() string + func (m *MsgLiquidate) GetCollateralType() string + func (m *MsgLiquidate) GetKeeper() string + func (m *MsgLiquidate) Marshal() (dAtA []byte, err error) + func (m *MsgLiquidate) MarshalTo(dAtA []byte) (int, error) + func (m *MsgLiquidate) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgLiquidate) Reset() + func (m *MsgLiquidate) Size() (n int) + func (m *MsgLiquidate) String() string + func (m *MsgLiquidate) Unmarshal(dAtA []byte) error + func (m *MsgLiquidate) XXX_DiscardUnknown() + func (m *MsgLiquidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgLiquidate) XXX_Merge(src proto.Message) + func (m *MsgLiquidate) XXX_Size() int + func (m *MsgLiquidate) XXX_Unmarshal(b []byte) error + func (msg MsgLiquidate) GetSignBytes() []byte + func (msg MsgLiquidate) GetSigners() []sdk.AccAddress + func (msg MsgLiquidate) Route() string + func (msg MsgLiquidate) Type() string + func (msg MsgLiquidate) ValidateBasic() error + type MsgLiquidateResponse struct + func (*MsgLiquidateResponse) Descriptor() ([]byte, []int) + func (*MsgLiquidateResponse) ProtoMessage() + func (m *MsgLiquidateResponse) Marshal() (dAtA []byte, err error) + func (m *MsgLiquidateResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgLiquidateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgLiquidateResponse) Reset() + func (m *MsgLiquidateResponse) Size() (n int) + func (m *MsgLiquidateResponse) String() string + func (m *MsgLiquidateResponse) Unmarshal(dAtA []byte) error + func (m *MsgLiquidateResponse) XXX_DiscardUnknown() + func (m *MsgLiquidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgLiquidateResponse) XXX_Merge(src proto.Message) + func (m *MsgLiquidateResponse) XXX_Size() int + func (m *MsgLiquidateResponse) XXX_Unmarshal(b []byte) error + type MsgRepayDebt struct + CollateralType string + Payment types.Coin + Sender string + func NewMsgRepayDebt(sender sdk.AccAddress, collateralType string, payment sdk.Coin) MsgRepayDebt + func (*MsgRepayDebt) Descriptor() ([]byte, []int) + func (*MsgRepayDebt) ProtoMessage() + func (m *MsgRepayDebt) GetCollateralType() string + func (m *MsgRepayDebt) GetPayment() types.Coin + func (m *MsgRepayDebt) GetSender() string + func (m *MsgRepayDebt) Marshal() (dAtA []byte, err error) + func (m *MsgRepayDebt) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRepayDebt) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRepayDebt) Reset() + func (m *MsgRepayDebt) Size() (n int) + func (m *MsgRepayDebt) String() string + func (m *MsgRepayDebt) Unmarshal(dAtA []byte) error + func (m *MsgRepayDebt) XXX_DiscardUnknown() + func (m *MsgRepayDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRepayDebt) XXX_Merge(src proto.Message) + func (m *MsgRepayDebt) XXX_Size() int + func (m *MsgRepayDebt) XXX_Unmarshal(b []byte) error + func (msg MsgRepayDebt) GetSignBytes() []byte + func (msg MsgRepayDebt) GetSigners() []sdk.AccAddress + func (msg MsgRepayDebt) Route() string + func (msg MsgRepayDebt) Type() string + func (msg MsgRepayDebt) ValidateBasic() error + type MsgRepayDebtResponse struct + func (*MsgRepayDebtResponse) Descriptor() ([]byte, []int) + func (*MsgRepayDebtResponse) ProtoMessage() + func (m *MsgRepayDebtResponse) Marshal() (dAtA []byte, err error) + func (m *MsgRepayDebtResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgRepayDebtResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgRepayDebtResponse) Reset() + func (m *MsgRepayDebtResponse) Size() (n int) + func (m *MsgRepayDebtResponse) String() string + func (m *MsgRepayDebtResponse) Unmarshal(dAtA []byte) error + func (m *MsgRepayDebtResponse) XXX_DiscardUnknown() + func (m *MsgRepayDebtResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgRepayDebtResponse) XXX_Merge(src proto.Message) + func (m *MsgRepayDebtResponse) XXX_Size() int + func (m *MsgRepayDebtResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + CreateCDP func(context.Context, *MsgCreateCDP) (*MsgCreateCDPResponse, error) + Deposit func(context.Context, *MsgDeposit) (*MsgDepositResponse, error) + DrawDebt func(context.Context, *MsgDrawDebt) (*MsgDrawDebtResponse, error) + Liquidate func(context.Context, *MsgLiquidate) (*MsgLiquidateResponse, error) + RepayDebt func(context.Context, *MsgRepayDebt) (*MsgRepayDebtResponse, error) + Withdraw func(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error) + type MsgWithdraw struct + Collateral types.Coin + CollateralType string + Depositor string + Owner string + func NewMsgWithdraw(owner sdk.AccAddress, depositor sdk.AccAddress, collateral sdk.Coin, ...) MsgWithdraw + func (*MsgWithdraw) Descriptor() ([]byte, []int) + func (*MsgWithdraw) ProtoMessage() + func (m *MsgWithdraw) GetCollateral() types.Coin + func (m *MsgWithdraw) GetCollateralType() string + func (m *MsgWithdraw) GetDepositor() string + func (m *MsgWithdraw) GetOwner() string + func (m *MsgWithdraw) Marshal() (dAtA []byte, err error) + func (m *MsgWithdraw) MarshalTo(dAtA []byte) (int, error) + func (m *MsgWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgWithdraw) Reset() + func (m *MsgWithdraw) Size() (n int) + func (m *MsgWithdraw) String() string + func (m *MsgWithdraw) Unmarshal(dAtA []byte) error + func (m *MsgWithdraw) XXX_DiscardUnknown() + func (m *MsgWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgWithdraw) XXX_Merge(src proto.Message) + func (m *MsgWithdraw) XXX_Size() int + func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error + func (msg MsgWithdraw) GetSignBytes() []byte + func (msg MsgWithdraw) GetSigners() []sdk.AccAddress + func (msg MsgWithdraw) Route() string + func (msg MsgWithdraw) Type() string + func (msg MsgWithdraw) ValidateBasic() error + type MsgWithdrawResponse struct + func (*MsgWithdrawResponse) Descriptor() ([]byte, []int) + func (*MsgWithdrawResponse) ProtoMessage() + func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error) + func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgWithdrawResponse) Reset() + func (m *MsgWithdrawResponse) Size() (n int) + func (m *MsgWithdrawResponse) String() string + func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error + func (m *MsgWithdrawResponse) XXX_DiscardUnknown() + func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message) + func (m *MsgWithdrawResponse) XXX_Size() int + func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error + type MultiCDPHooks []CDPHooks + func NewMultiCDPHooks(hooks ...CDPHooks) MultiCDPHooks + func (h MultiCDPHooks) AfterCDPCreated(ctx sdk.Context, cdp CDP) + func (h MultiCDPHooks) BeforeCDPModified(ctx sdk.Context, cdp CDP) + type OwnerCDPIndex struct + CdpIDs []uint64 + func (*OwnerCDPIndex) Descriptor() ([]byte, []int) + func (*OwnerCDPIndex) ProtoMessage() + func (m *OwnerCDPIndex) Marshal() (dAtA []byte, err error) + func (m *OwnerCDPIndex) MarshalTo(dAtA []byte) (int, error) + func (m *OwnerCDPIndex) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *OwnerCDPIndex) Reset() + func (m *OwnerCDPIndex) Size() (n int) + func (m *OwnerCDPIndex) String() string + func (m *OwnerCDPIndex) Unmarshal(dAtA []byte) error + func (m *OwnerCDPIndex) XXX_DiscardUnknown() + func (m *OwnerCDPIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *OwnerCDPIndex) XXX_Merge(src proto.Message) + func (m *OwnerCDPIndex) XXX_Size() int + func (m *OwnerCDPIndex) XXX_Unmarshal(b []byte) error + type Params struct + CircuitBreaker bool + CollateralParams CollateralParams + DebtAuctionLot github_com_cosmos_cosmos_sdk_types.Int + DebtAuctionThreshold github_com_cosmos_cosmos_sdk_types.Int + DebtParam DebtParam + GlobalDebtLimit types.Coin + SurplusAuctionLot github_com_cosmos_cosmos_sdk_types.Int + SurplusAuctionThreshold github_com_cosmos_cosmos_sdk_types.Int + func DefaultParams() Params + func NewParams(debtLimit sdk.Coin, collateralParams CollateralParams, debtParam DebtParam, ...) Params + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + func (m *Params) GetCircuitBreaker() bool + func (m *Params) GetCollateralParams() CollateralParams + func (m *Params) GetDebtParam() DebtParam + func (m *Params) GetGlobalDebtLimit() types.Coin + func (m *Params) Marshal() (dAtA []byte, err error) + func (m *Params) MarshalTo(dAtA []byte) (int, error) + func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Params) Reset() + func (m *Params) Size() (n int) + func (m *Params) String() string + func (m *Params) Unmarshal(dAtA []byte) error + func (m *Params) XXX_DiscardUnknown() + func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Params) XXX_Merge(src proto.Message) + func (m *Params) XXX_Size() int + func (m *Params) XXX_Unmarshal(b []byte) error + func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs + func (p Params) Validate() error + type PricefeedKeeper interface + GetCurrentPrice func(sdk.Context, string) (pftypes.CurrentPrice, error) + GetParams func(sdk.Context) pftypes.Params + SetCurrentPrices func(sdk.Context, string) error + SetParams func(sdk.Context, pftypes.Params) + SetPrice func(sdk.Context, sdk.AccAddress, string, sdk.Dec, time.Time) (pftypes.PostedPrice, error) + type QueryAccountsRequest struct + func (*QueryAccountsRequest) Descriptor() ([]byte, []int) + func (*QueryAccountsRequest) ProtoMessage() + func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAccountsRequest) Reset() + func (m *QueryAccountsRequest) Size() (n int) + func (m *QueryAccountsRequest) String() string + func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error + func (m *QueryAccountsRequest) XXX_DiscardUnknown() + func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAccountsRequest) XXX_Merge(src proto.Message) + func (m *QueryAccountsRequest) XXX_Size() int + func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error + type QueryAccountsResponse struct + Accounts []types.ModuleAccount + func (*QueryAccountsResponse) Descriptor() ([]byte, []int) + func (*QueryAccountsResponse) ProtoMessage() + func (m *QueryAccountsResponse) GetAccounts() []types.ModuleAccount + func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAccountsResponse) Reset() + func (m *QueryAccountsResponse) Size() (n int) + func (m *QueryAccountsResponse) String() string + func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error + func (m *QueryAccountsResponse) XXX_DiscardUnknown() + func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAccountsResponse) XXX_Merge(src proto.Message) + func (m *QueryAccountsResponse) XXX_Size() int + func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error + type QueryCdpDeposits struct + CollateralType string + Owner sdk.AccAddress + func NewQueryCdpDeposits(owner sdk.AccAddress, collateralType string) QueryCdpDeposits + type QueryCdpParams struct + CollateralType string + Owner sdk.AccAddress + func NewQueryCdpParams(owner sdk.AccAddress, collateralType string) QueryCdpParams + type QueryCdpRequest struct + CollateralType string + Owner string + func (*QueryCdpRequest) Descriptor() ([]byte, []int) + func (*QueryCdpRequest) ProtoMessage() + func (m *QueryCdpRequest) GetCollateralType() string + func (m *QueryCdpRequest) GetOwner() string + func (m *QueryCdpRequest) Marshal() (dAtA []byte, err error) + func (m *QueryCdpRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryCdpRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryCdpRequest) Reset() + func (m *QueryCdpRequest) Size() (n int) + func (m *QueryCdpRequest) String() string + func (m *QueryCdpRequest) Unmarshal(dAtA []byte) error + func (m *QueryCdpRequest) XXX_DiscardUnknown() + func (m *QueryCdpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryCdpRequest) XXX_Merge(src proto.Message) + func (m *QueryCdpRequest) XXX_Size() int + func (m *QueryCdpRequest) XXX_Unmarshal(b []byte) error + type QueryCdpResponse struct + Cdp CDPResponse + func (*QueryCdpResponse) Descriptor() ([]byte, []int) + func (*QueryCdpResponse) ProtoMessage() + func (m *QueryCdpResponse) GetCdp() CDPResponse + func (m *QueryCdpResponse) Marshal() (dAtA []byte, err error) + func (m *QueryCdpResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryCdpResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryCdpResponse) Reset() + func (m *QueryCdpResponse) Size() (n int) + func (m *QueryCdpResponse) String() string + func (m *QueryCdpResponse) Unmarshal(dAtA []byte) error + func (m *QueryCdpResponse) XXX_DiscardUnknown() + func (m *QueryCdpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryCdpResponse) XXX_Merge(src proto.Message) + func (m *QueryCdpResponse) XXX_Size() int + func (m *QueryCdpResponse) XXX_Unmarshal(b []byte) error + type QueryCdpsByCollateralTypeParams struct + CollateralType string + func NewQueryCdpsByCollateralTypeParams(collateralType string) QueryCdpsByCollateralTypeParams + type QueryCdpsByRatioParams struct + CollateralType string + Ratio sdk.Dec + func NewQueryCdpsByRatioParams(collateralType string, ratio sdk.Dec) QueryCdpsByRatioParams + type QueryCdpsParams struct + CollateralType string + ID uint64 + Limit int + Owner sdk.AccAddress + Page int + Ratio sdk.Dec + func NewQueryCdpsParams(page, limit int, collateralType string, owner sdk.AccAddress, id uint64, ...) QueryCdpsParams + type QueryCdpsRequest struct + CollateralType string + ID uint64 + Owner string + Pagination *query.PageRequest + Ratio string + func (*QueryCdpsRequest) Descriptor() ([]byte, []int) + func (*QueryCdpsRequest) ProtoMessage() + func (m *QueryCdpsRequest) GetCollateralType() string + func (m *QueryCdpsRequest) GetID() uint64 + func (m *QueryCdpsRequest) GetOwner() string + func (m *QueryCdpsRequest) GetPagination() *query.PageRequest + func (m *QueryCdpsRequest) GetRatio() string + func (m *QueryCdpsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryCdpsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryCdpsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryCdpsRequest) Reset() + func (m *QueryCdpsRequest) Size() (n int) + func (m *QueryCdpsRequest) String() string + func (m *QueryCdpsRequest) Unmarshal(dAtA []byte) error + func (m *QueryCdpsRequest) XXX_DiscardUnknown() + func (m *QueryCdpsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryCdpsRequest) XXX_Merge(src proto.Message) + func (m *QueryCdpsRequest) XXX_Size() int + func (m *QueryCdpsRequest) XXX_Unmarshal(b []byte) error + type QueryCdpsResponse struct + Cdps CDPResponses + Pagination *query.PageResponse + func (*QueryCdpsResponse) Descriptor() ([]byte, []int) + func (*QueryCdpsResponse) ProtoMessage() + func (m *QueryCdpsResponse) GetCdps() CDPResponses + func (m *QueryCdpsResponse) GetPagination() *query.PageResponse + func (m *QueryCdpsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryCdpsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryCdpsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryCdpsResponse) Reset() + func (m *QueryCdpsResponse) Size() (n int) + func (m *QueryCdpsResponse) String() string + func (m *QueryCdpsResponse) Unmarshal(dAtA []byte) error + func (m *QueryCdpsResponse) XXX_DiscardUnknown() + func (m *QueryCdpsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryCdpsResponse) XXX_Merge(src proto.Message) + func (m *QueryCdpsResponse) XXX_Size() int + func (m *QueryCdpsResponse) XXX_Unmarshal(b []byte) error + type QueryClient interface + Accounts func(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error) + Cdp func(ctx context.Context, in *QueryCdpRequest, opts ...grpc.CallOption) (*QueryCdpResponse, error) + Cdps func(ctx context.Context, in *QueryCdpsRequest, opts ...grpc.CallOption) (*QueryCdpsResponse, error) + Deposits func(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + TotalCollateral func(ctx context.Context, in *QueryTotalCollateralRequest, opts ...grpc.CallOption) (*QueryTotalCollateralResponse, error) + TotalPrincipal func(ctx context.Context, in *QueryTotalPrincipalRequest, opts ...grpc.CallOption) (*QueryTotalPrincipalResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryDepositsRequest struct + CollateralType string + Owner string + func (*QueryDepositsRequest) Descriptor() ([]byte, []int) + func (*QueryDepositsRequest) ProtoMessage() + func (m *QueryDepositsRequest) GetCollateralType() string + func (m *QueryDepositsRequest) GetOwner() string + func (m *QueryDepositsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryDepositsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositsRequest) Reset() + func (m *QueryDepositsRequest) Size() (n int) + func (m *QueryDepositsRequest) String() string + func (m *QueryDepositsRequest) Unmarshal(dAtA []byte) error + func (m *QueryDepositsRequest) XXX_DiscardUnknown() + func (m *QueryDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositsRequest) XXX_Merge(src proto.Message) + func (m *QueryDepositsRequest) XXX_Size() int + func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error + type QueryDepositsResponse struct + Deposits Deposits + func (*QueryDepositsResponse) Descriptor() ([]byte, []int) + func (*QueryDepositsResponse) ProtoMessage() + func (m *QueryDepositsResponse) GetDeposits() Deposits + func (m *QueryDepositsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryDepositsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryDepositsResponse) Reset() + func (m *QueryDepositsResponse) Size() (n int) + func (m *QueryDepositsResponse) String() string + func (m *QueryDepositsResponse) Unmarshal(dAtA []byte) error + func (m *QueryDepositsResponse) XXX_DiscardUnknown() + func (m *QueryDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryDepositsResponse) XXX_Merge(src proto.Message) + func (m *QueryDepositsResponse) XXX_Size() int + func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error + type QueryGetTotalCollateralParams struct + CollateralType string + func NewQueryGetTotalCollateralParams(collateralType string) QueryGetTotalCollateralParams + type QueryGetTotalPrincipalParams struct + CollateralType string + func NewQueryGetTotalPrincipalParams(collateralType string) QueryGetTotalPrincipalParams + type QueryParamsRequest struct + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) + func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsRequest) Reset() + func (m *QueryParamsRequest) Size() (n int) + func (m *QueryParamsRequest) String() string + func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error + func (m *QueryParamsRequest) XXX_DiscardUnknown() + func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsRequest) XXX_Merge(src proto.Message) + func (m *QueryParamsRequest) XXX_Size() int + func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error + type QueryParamsResponse struct + Params Params + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) + func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryParamsResponse) Reset() + func (m *QueryParamsResponse) Size() (n int) + func (m *QueryParamsResponse) String() string + func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error + func (m *QueryParamsResponse) XXX_DiscardUnknown() + func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryParamsResponse) XXX_Merge(src proto.Message) + func (m *QueryParamsResponse) XXX_Size() int + func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + Accounts func(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error) + Cdp func(context.Context, *QueryCdpRequest) (*QueryCdpResponse, error) + Cdps func(context.Context, *QueryCdpsRequest) (*QueryCdpsResponse, error) + Deposits func(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + TotalCollateral func(context.Context, *QueryTotalCollateralRequest) (*QueryTotalCollateralResponse, error) + TotalPrincipal func(context.Context, *QueryTotalPrincipalRequest) (*QueryTotalPrincipalResponse, error) + type QueryTotalCollateralRequest struct + CollateralType string + func (*QueryTotalCollateralRequest) Descriptor() ([]byte, []int) + func (*QueryTotalCollateralRequest) ProtoMessage() + func (m *QueryTotalCollateralRequest) GetCollateralType() string + func (m *QueryTotalCollateralRequest) Marshal() (dAtA []byte, err error) + func (m *QueryTotalCollateralRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTotalCollateralRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTotalCollateralRequest) Reset() + func (m *QueryTotalCollateralRequest) Size() (n int) + func (m *QueryTotalCollateralRequest) String() string + func (m *QueryTotalCollateralRequest) Unmarshal(dAtA []byte) error + func (m *QueryTotalCollateralRequest) XXX_DiscardUnknown() + func (m *QueryTotalCollateralRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTotalCollateralRequest) XXX_Merge(src proto.Message) + func (m *QueryTotalCollateralRequest) XXX_Size() int + func (m *QueryTotalCollateralRequest) XXX_Unmarshal(b []byte) error + type QueryTotalCollateralResponse struct + TotalCollateral TotalCollaterals + func (*QueryTotalCollateralResponse) Descriptor() ([]byte, []int) + func (*QueryTotalCollateralResponse) ProtoMessage() + func (m *QueryTotalCollateralResponse) GetTotalCollateral() TotalCollaterals + func (m *QueryTotalCollateralResponse) Marshal() (dAtA []byte, err error) + func (m *QueryTotalCollateralResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTotalCollateralResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTotalCollateralResponse) Reset() + func (m *QueryTotalCollateralResponse) Size() (n int) + func (m *QueryTotalCollateralResponse) String() string + func (m *QueryTotalCollateralResponse) Unmarshal(dAtA []byte) error + func (m *QueryTotalCollateralResponse) XXX_DiscardUnknown() + func (m *QueryTotalCollateralResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTotalCollateralResponse) XXX_Merge(src proto.Message) + func (m *QueryTotalCollateralResponse) XXX_Size() int + func (m *QueryTotalCollateralResponse) XXX_Unmarshal(b []byte) error + type QueryTotalPrincipalRequest struct + CollateralType string + func (*QueryTotalPrincipalRequest) Descriptor() ([]byte, []int) + func (*QueryTotalPrincipalRequest) ProtoMessage() + func (m *QueryTotalPrincipalRequest) GetCollateralType() string + func (m *QueryTotalPrincipalRequest) Marshal() (dAtA []byte, err error) + func (m *QueryTotalPrincipalRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTotalPrincipalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTotalPrincipalRequest) Reset() + func (m *QueryTotalPrincipalRequest) Size() (n int) + func (m *QueryTotalPrincipalRequest) String() string + func (m *QueryTotalPrincipalRequest) Unmarshal(dAtA []byte) error + func (m *QueryTotalPrincipalRequest) XXX_DiscardUnknown() + func (m *QueryTotalPrincipalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTotalPrincipalRequest) XXX_Merge(src proto.Message) + func (m *QueryTotalPrincipalRequest) XXX_Size() int + func (m *QueryTotalPrincipalRequest) XXX_Unmarshal(b []byte) error + type QueryTotalPrincipalResponse struct + TotalPrincipal TotalPrincipals + func (*QueryTotalPrincipalResponse) Descriptor() ([]byte, []int) + func (*QueryTotalPrincipalResponse) ProtoMessage() + func (m *QueryTotalPrincipalResponse) GetTotalPrincipal() TotalPrincipals + func (m *QueryTotalPrincipalResponse) Marshal() (dAtA []byte, err error) + func (m *QueryTotalPrincipalResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryTotalPrincipalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryTotalPrincipalResponse) Reset() + func (m *QueryTotalPrincipalResponse) Size() (n int) + func (m *QueryTotalPrincipalResponse) String() string + func (m *QueryTotalPrincipalResponse) Unmarshal(dAtA []byte) error + func (m *QueryTotalPrincipalResponse) XXX_DiscardUnknown() + func (m *QueryTotalPrincipalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryTotalPrincipalResponse) XXX_Merge(src proto.Message) + func (m *QueryTotalPrincipalResponse) XXX_Size() int + func (m *QueryTotalPrincipalResponse) XXX_Unmarshal(b []byte) error + type TotalCollateral struct + Amount types.Coin + CollateralType string + func NewTotalCollateral(collateralType string, amount sdk.Coin) TotalCollateral + func (*TotalCollateral) Descriptor() ([]byte, []int) + func (*TotalCollateral) ProtoMessage() + func (m *TotalCollateral) Marshal() (dAtA []byte, err error) + func (m *TotalCollateral) MarshalTo(dAtA []byte) (int, error) + func (m *TotalCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TotalCollateral) Reset() + func (m *TotalCollateral) Size() (n int) + func (m *TotalCollateral) String() string + func (m *TotalCollateral) Unmarshal(dAtA []byte) error + func (m *TotalCollateral) XXX_DiscardUnknown() + func (m *TotalCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TotalCollateral) XXX_Merge(src proto.Message) + func (m *TotalCollateral) XXX_Size() int + func (m *TotalCollateral) XXX_Unmarshal(b []byte) error + type TotalCollaterals []TotalCollateral + type TotalPrincipal struct + Amount types.Coin + CollateralType string + func NewTotalPrincipal(collateralType string, amount sdk.Coin) TotalPrincipal + func (*TotalPrincipal) Descriptor() ([]byte, []int) + func (*TotalPrincipal) ProtoMessage() + func (m *TotalPrincipal) Marshal() (dAtA []byte, err error) + func (m *TotalPrincipal) MarshalTo(dAtA []byte) (int, error) + func (m *TotalPrincipal) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TotalPrincipal) Reset() + func (m *TotalPrincipal) Size() (n int) + func (m *TotalPrincipal) String() string + func (m *TotalPrincipal) Unmarshal(dAtA []byte) error + func (m *TotalPrincipal) XXX_DiscardUnknown() + func (m *TotalPrincipal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TotalPrincipal) XXX_Merge(src proto.Message) + func (m *TotalPrincipal) XXX_Size() int + func (m *TotalPrincipal) XXX_Unmarshal(b []byte) error + type TotalPrincipals []TotalPrincipal + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) CreateCDP(ctx context.Context, req *MsgCreateCDP) (*MsgCreateCDPResponse, error) + func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error) + func (*UnimplementedMsgServer) DrawDebt(ctx context.Context, req *MsgDrawDebt) (*MsgDrawDebtResponse, error) + func (*UnimplementedMsgServer) Liquidate(ctx context.Context, req *MsgLiquidate) (*MsgLiquidateResponse, error) + func (*UnimplementedMsgServer) RepayDebt(ctx context.Context, req *MsgRepayDebt) (*MsgRepayDebtResponse, error) + func (*UnimplementedMsgServer) Withdraw(ctx context.Context, req *MsgWithdraw) (*MsgWithdrawResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Accounts(ctx context.Context, req *QueryAccountsRequest) (*QueryAccountsResponse, error) + func (*UnimplementedQueryServer) Cdp(ctx context.Context, req *QueryCdpRequest) (*QueryCdpResponse, error) + func (*UnimplementedQueryServer) Cdps(ctx context.Context, req *QueryCdpsRequest) (*QueryCdpsResponse, error) + func (*UnimplementedQueryServer) Deposits(ctx context.Context, req *QueryDepositsRequest) (*QueryDepositsResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) + func (*UnimplementedQueryServer) TotalCollateral(ctx context.Context, req *QueryTotalCollateralRequest) (*QueryTotalCollateralResponse, error) + func (*UnimplementedQueryServer) TotalPrincipal(ctx context.Context, req *QueryTotalPrincipalRequest) (*QueryTotalPrincipalResponse, error)