2019-11-25 19:46:02 +00:00
|
|
|
// nolint
|
|
|
|
// autogenerated code using github.com/rigelrozanski/multitool
|
|
|
|
// aliases generated for the following subdirectories:
|
|
|
|
// ALIASGEN: github.com/kava-labs/kava/x/cdp/types/
|
|
|
|
// ALIASGEN: github.com/kava-labs/kava/x/cdp/keeper/
|
|
|
|
package cdp
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/kava-labs/kava/x/cdp/keeper"
|
|
|
|
"github.com/kava-labs/kava/x/cdp/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2020-01-12 15:35:34 +00:00
|
|
|
StatusNil = types.StatusNil
|
|
|
|
StatusLiquidated = types.StatusLiquidated
|
|
|
|
DefaultCodespace = types.DefaultCodespace
|
|
|
|
CodeCdpAlreadyExists = types.CodeCdpAlreadyExists
|
|
|
|
CodeCollateralLengthInvalid = types.CodeCollateralLengthInvalid
|
|
|
|
CodeCollateralNotSupported = types.CodeCollateralNotSupported
|
|
|
|
CodeDebtNotSupported = types.CodeDebtNotSupported
|
|
|
|
CodeExceedsDebtLimit = types.CodeExceedsDebtLimit
|
|
|
|
CodeInvalidCollateralRatio = types.CodeInvalidCollateralRatio
|
|
|
|
CodeCdpNotFound = types.CodeCdpNotFound
|
|
|
|
CodeDepositNotFound = types.CodeDepositNotFound
|
|
|
|
CodeInvalidDepositDenom = types.CodeInvalidDepositDenom
|
|
|
|
CodeInvalidPaymentDenom = types.CodeInvalidPaymentDenom
|
|
|
|
CodeDepositNotAvailable = types.CodeDepositNotAvailable
|
|
|
|
CodeInvalidCollateralDenom = types.CodeInvalidCollateralDenom
|
|
|
|
CodeInvalidWithdrawAmount = types.CodeInvalidWithdrawAmount
|
|
|
|
CodeCdpNotAvailable = types.CodeCdpNotAvailable
|
|
|
|
CodeBelowDebtFloor = types.CodeBelowDebtFloor
|
|
|
|
EventTypeCreateCdp = types.EventTypeCreateCdp
|
|
|
|
EventTypeCdpDeposit = types.EventTypeCdpDeposit
|
|
|
|
EventTypeCdpDraw = types.EventTypeCdpDraw
|
|
|
|
EventTypeCdpRepay = types.EventTypeCdpRepay
|
|
|
|
EventTypeCdpClose = types.EventTypeCdpClose
|
|
|
|
EventTypeCdpWithdrawal = types.EventTypeCdpWithdrawal
|
|
|
|
EventTypeCdpLiquidation = types.EventTypeCdpLiquidation
|
|
|
|
AttributeKeyCdpID = types.AttributeKeyCdpID
|
|
|
|
AttributeKeyDepositor = types.AttributeKeyDepositor
|
|
|
|
AttributeValueCategory = types.AttributeValueCategory
|
|
|
|
LiquidatorMacc = types.LiquidatorMacc
|
|
|
|
ModuleName = types.ModuleName
|
|
|
|
StoreKey = types.StoreKey
|
|
|
|
RouterKey = types.RouterKey
|
|
|
|
QuerierRoute = types.QuerierRoute
|
|
|
|
DefaultParamspace = types.DefaultParamspace
|
|
|
|
QueryGetCdp = types.QueryGetCdp
|
|
|
|
QueryGetCdps = types.QueryGetCdps
|
|
|
|
QueryGetCdpsByCollateralization = types.QueryGetCdpsByCollateralization
|
|
|
|
QueryGetParams = types.QueryGetParams
|
|
|
|
RestOwner = types.RestOwner
|
|
|
|
RestCollateralDenom = types.RestCollateralDenom
|
|
|
|
RestRatio = types.RestRatio
|
2019-11-25 19:46:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// functions aliases
|
2020-01-12 15:35:34 +00:00
|
|
|
NewCDP = types.NewCDP
|
|
|
|
RegisterCodec = types.RegisterCodec
|
|
|
|
StatusFromByte = types.StatusFromByte
|
|
|
|
NewDeposit = types.NewDeposit
|
|
|
|
ErrCdpAlreadyExists = types.ErrCdpAlreadyExists
|
|
|
|
ErrInvalidCollateralLength = types.ErrInvalidCollateralLength
|
|
|
|
ErrCollateralNotSupported = types.ErrCollateralNotSupported
|
|
|
|
ErrDebtNotSupported = types.ErrDebtNotSupported
|
|
|
|
ErrExceedsDebtLimit = types.ErrExceedsDebtLimit
|
|
|
|
ErrInvalidCollateralRatio = types.ErrInvalidCollateralRatio
|
|
|
|
ErrCdpNotFound = types.ErrCdpNotFound
|
|
|
|
ErrDepositNotFound = types.ErrDepositNotFound
|
|
|
|
ErrInvalidDepositDenom = types.ErrInvalidDepositDenom
|
|
|
|
ErrInvalidPaymentDenom = types.ErrInvalidPaymentDenom
|
|
|
|
ErrDepositNotAvailable = types.ErrDepositNotAvailable
|
|
|
|
ErrInvalidCollateralDenom = types.ErrInvalidCollateralDenom
|
|
|
|
ErrInvalidWithdrawAmount = types.ErrInvalidWithdrawAmount
|
|
|
|
ErrCdpNotAvailable = types.ErrCdpNotAvailable
|
|
|
|
ErrBelowDebtFloor = types.ErrBelowDebtFloor
|
|
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
|
|
GetCdpIDBytes = types.GetCdpIDBytes
|
|
|
|
GetCdpIDFromBytes = types.GetCdpIDFromBytes
|
|
|
|
CdpKey = types.CdpKey
|
|
|
|
SplitCdpKey = types.SplitCdpKey
|
|
|
|
DenomIterKey = types.DenomIterKey
|
|
|
|
SplitDenomIterKey = types.SplitDenomIterKey
|
|
|
|
DepositKey = types.DepositKey
|
|
|
|
SplitDepositKey = types.SplitDepositKey
|
|
|
|
DepositIterKey = types.DepositIterKey
|
|
|
|
SplitDepositIterKey = types.SplitDepositIterKey
|
|
|
|
CollateralRatioBytes = types.CollateralRatioBytes
|
|
|
|
CollateralRatioKey = types.CollateralRatioKey
|
|
|
|
SplitCollateralRatioKey = types.SplitCollateralRatioKey
|
|
|
|
CollateralRatioIterKey = types.CollateralRatioIterKey
|
|
|
|
SplitCollateralRatioIterKey = types.SplitCollateralRatioIterKey
|
|
|
|
NewMsgCreateCDP = types.NewMsgCreateCDP
|
|
|
|
NewMsgDeposit = types.NewMsgDeposit
|
|
|
|
NewMsgWithdraw = types.NewMsgWithdraw
|
|
|
|
NewMsgDrawDebt = types.NewMsgDrawDebt
|
|
|
|
NewMsgRepayDebt = types.NewMsgRepayDebt
|
|
|
|
NewParams = types.NewParams
|
|
|
|
DefaultParams = types.DefaultParams
|
|
|
|
ParamKeyTable = types.ParamKeyTable
|
|
|
|
NewQueryCdpsParams = types.NewQueryCdpsParams
|
|
|
|
NewQueryCdpParams = types.NewQueryCdpParams
|
|
|
|
NewQueryCdpsByRatioParams = types.NewQueryCdpsByRatioParams
|
|
|
|
ValidSortableDec = types.ValidSortableDec
|
|
|
|
SortableDecBytes = types.SortableDecBytes
|
|
|
|
ParseDecBytes = types.ParseDecBytes
|
|
|
|
RelativePow = types.RelativePow
|
|
|
|
NewKeeper = keeper.NewKeeper
|
|
|
|
NewQuerier = keeper.NewQuerier
|
2019-11-25 19:46:02 +00:00
|
|
|
|
|
|
|
// variable aliases
|
2020-01-12 15:35:34 +00:00
|
|
|
ModuleCdc = types.ModuleCdc
|
|
|
|
CdpIDKeyPrefix = types.CdpIDKeyPrefix
|
|
|
|
CdpKeyPrefix = types.CdpKeyPrefix
|
|
|
|
CollateralRatioIndexPrefix = types.CollateralRatioIndexPrefix
|
|
|
|
CdpIDKey = types.CdpIDKey
|
|
|
|
DebtDenomKey = types.DebtDenomKey
|
|
|
|
DepositKeyPrefix = types.DepositKeyPrefix
|
|
|
|
PrincipalKeyPrefix = types.PrincipalKeyPrefix
|
|
|
|
AccumulatorKeyPrefix = types.AccumulatorKeyPrefix
|
|
|
|
PreviousBlockTimeKey = types.PreviousBlockTimeKey
|
|
|
|
KeyGlobalDebtLimit = types.KeyGlobalDebtLimit
|
|
|
|
KeyCollateralParams = types.KeyCollateralParams
|
|
|
|
KeyDebtParams = types.KeyDebtParams
|
|
|
|
KeyCircuitBreaker = types.KeyCircuitBreaker
|
|
|
|
DefaultGlobalDebt = types.DefaultGlobalDebt
|
|
|
|
DefaultCircuitBreaker = types.DefaultCircuitBreaker
|
|
|
|
DefaultCollateralParams = types.DefaultCollateralParams
|
|
|
|
DefaultDebtParams = types.DefaultDebtParams
|
|
|
|
DefaultCdpStartingID = types.DefaultCdpStartingID
|
|
|
|
DefaultDebtDenom = types.DefaultDebtDenom
|
|
|
|
DefaultPreviousBlockTime = types.DefaultPreviousBlockTime
|
|
|
|
MaxSortableDec = types.MaxSortableDec
|
2019-11-25 19:46:02 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type (
|
2020-01-12 15:35:34 +00:00
|
|
|
CDP = types.CDP
|
|
|
|
CDPs = types.CDPs
|
|
|
|
Deposit = types.Deposit
|
|
|
|
DepositStatus = types.DepositStatus
|
|
|
|
Deposits = types.Deposits
|
|
|
|
SupplyKeeper = types.SupplyKeeper
|
|
|
|
PricefeedKeeper = types.PricefeedKeeper
|
|
|
|
GenesisState = types.GenesisState
|
|
|
|
MsgCreateCDP = types.MsgCreateCDP
|
|
|
|
MsgDeposit = types.MsgDeposit
|
|
|
|
MsgWithdraw = types.MsgWithdraw
|
|
|
|
MsgDrawDebt = types.MsgDrawDebt
|
|
|
|
MsgRepayDebt = types.MsgRepayDebt
|
|
|
|
MsgTransferCDP = types.MsgTransferCDP
|
|
|
|
Params = types.Params
|
|
|
|
CollateralParam = types.CollateralParam
|
|
|
|
CollateralParams = types.CollateralParams
|
|
|
|
DebtParam = types.DebtParam
|
|
|
|
DebtParams = types.DebtParams
|
|
|
|
QueryCdpsParams = types.QueryCdpsParams
|
|
|
|
QueryCdpParams = types.QueryCdpParams
|
|
|
|
QueryCdpsByRatioParams = types.QueryCdpsByRatioParams
|
|
|
|
Keeper = keeper.Keeper
|
2019-11-25 19:46:02 +00:00
|
|
|
)
|