# Functions
CdpKeySuffix key of a specific cdp in the store.
CollateralRatioBytes returns the liquidation ratio as sortable bytes.
CollateralRatioIterKey returns the key for iterating over cdps by denom and liquidation ratio.
CollateralRatioKey returns the key for querying a cdp by its liquidation ratio.
DefaultGenesis returns the default Capability genesis state.
DefaultParams returns default params for cdp module.
DenomIterKey returns the key for iterating over cdps of a certain denom in the store.
DepositIterKey returns the prefix key for iterating over deposits to a cdp.
DepositKeySuffix key of a specific deposit in the store.
GetCdpIDBytes returns the byte representation of the cdpID.
GetCdpIDFromBytes returns cdpID in uint64 format from a byte array.
No description provided by the author
NewAugmentedCdp creates a new AugmentedCdp object.
NewCdp creates a new Cdp object.
NewCdpWithFees creates a new Cdp object, for use during migration.
NewCollateralParam returns a new CollateralParam.
No description provided by the author
No description provided by the author
NewDebtParam returns a new DebtParam.
NewDeposit creates a new Deposit object.
NewGenesisAccumulationTime returns a new GenesisAccumulationTime.
No description provided by the author
NewGenesisTotalPrincipal returns a new GenesisTotalPrincipal.
No description provided by the author
NewMsgCreateCdp returns a new MsgPlaceBid.
NewMsgDeposit returns a new MsgDeposit.
NewMsgDrawDebt returns a new MsgDrawDebt.
NewMsgLiquidate returns a new MsgLiquidate.
NewMsgRepayDebt returns a new MsgRepayDebt.
NewMsgWithdraw returns a new MsgDeposit.
NewMultiCdpHooks returns a new MultiCdpHooks.
NewParams returns a new params object.
No description provided by the author
ParamKeyTable Key declaration for parameters.
ParseDecBytes parses a []byte encoded using SortableDecBytes back to sdk.Dec.
No description provided by the author
No description provided by the author
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
RelativePow raises x to the power of n, where x (and the result, z) are scaled by factor b.
SortableDecBytes returns a byte slice representation of a Dec that can be sorted.
SplitCdpKey returns the component parts of a cdp key.
SplitCollateralRatioIterKey split the collateral ratio key and return the denom, cdp id, and collateral:debt ratio.
SplitCollateralRatioKey split the collateral ratio key and return the denom, cdp id, and collateral:debt ratio.
SplitDenomIterKey returns the component part of a key for iterating over cdps by denom.
SplitDepositIterKey returns the component parts of a key for iterating over deposits on a cdp.
SplitDepositKey returns the component parts of a deposit key.
ValidSortableDec sdk.Dec can't have precision of less than 10^-18.
# Constants
Event types for cdp module.
Event types for cdp module.
Event types for cdp module.
Event types for cdp module.
No description provided by the author
CdpCountKey = "Cdp-count-".
No description provided by the author
No description provided by the author
No description provided by the author
DefaultIndex is the default capability global index.
No description provided by the author
Event types for cdp module.
Event types for cdp module.
Event types for cdp module.
Event types for cdp module.
Event types for cdp module.
Event types for cdp module.
Event types for cdp module.
Event types for cdp module.
No description provided by the author
No description provided by the author
LiquidatorMacc module account for liquidator.
MemStoreKey defines the in-memory store key.
ModuleName defines the module name.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QuerierRoute defines the module's query routing key.
RouterKey is the message route for slashing.
StoreKey defines the primary module store key.
# Variables
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
ErrAccountNotFound error for when no account is found for an input address.
ErrBelowDebtFloor error for creating a cdp with debt below the minimum.
ErrCdpAlreadyExists error for duplicate cdps.
ErrCdpNotAvailable error for depositing to a Cdp in liquidation.
ErrCdpNotFound error cdp not found.
ErrCollateralNotSupported error for unsupported collateral.
ErrDebtNotSupported error for unsupported debt.
ErrDenomPrefixNotFound error for denom prefix not found.
ErrDepositNotAvailable error for withdrawing deposits in liquidation.
ErrDepositNotFound error for deposit not found.
ErrExceedsDebtLimit error for attempted draws that exceed debt limit.
ErrInsufficientBalance error for when an account does not have enough funds.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidCollateral error for when the input collateral denom does not match the expected collateral denom.
ErrInvalidCollateralLength error for invalid collateral input length.
ErrInvalidCollateralRatio error for attempted draws that are below liquidation ratio.
ErrInvalidDebtRequest error for invalid principal input length.
ErrInvalidDeposit error for invalid deposit.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidPayment error for invalid payment.
ErrInvalidWithdrawAmount error for invalid withdrawal amount.
ErrLoadingAugmentedCdp error loading augmented cdp.
ErrNotLiquidatable error for when an cdp is not liquidatable.
ErrPricefeedDown error for when a price for the input denom is not found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
Parameter keys.
MaxSortableDec largest sortable sdk.Dec.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenesisState defines the cdp module's genesis state.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
this line is used by starport scaffolding # 3.
No description provided by the author
No description provided by the author
No description provided by the author
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
# Interfaces
AccountKeeper expected interface for the account keeper (noalias).
AuctionKeeper expected interface for the auction keeper (noalias).
No description provided by the author
CdpHooks event hooks for other keepers to run code in response to Cdp modifications.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
PricefeedKeeper defines the expected interface for the pricefeed (noalias).
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
# Type aliases
AugmentedCdps a collection of AugmentedCdp objects.
Cdps a collection of Cdp objects.
CollateralParams array of CollateralParam.
No description provided by the author
DebtParams array of DebtParam.
Deposits a collection of Deposit objects.
GenesisAccumulationTimes slice of GenesisAccumulationTime.
GenesisTotalPrincipals slice of GenesisTotalPrincipal.
MultiCdpHooks combine multiple cdp hooks, all hook functions are run in array sequence.