2020-12-21 17:18:55 +00:00
|
|
|
package hard
|
2020-09-21 21:08:43 +00:00
|
|
|
|
|
|
|
// DO NOT EDIT - generated by aliasgen tool (github.com/rhuairahrighairidh/aliasgen)
|
|
|
|
|
|
|
|
import (
|
2020-12-21 17:18:55 +00:00
|
|
|
"github.com/kava-labs/kava/x/hard/keeper"
|
|
|
|
"github.com/kava-labs/kava/x/hard/types"
|
2020-09-21 21:08:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2020-12-21 17:18:55 +00:00
|
|
|
AttributeKeyBlockHeight = types.AttributeKeyBlockHeight
|
2021-01-23 05:17:40 +00:00
|
|
|
AttributeKeyBorrow = types.AttributeKeyBorrow
|
|
|
|
AttributeKeyBorrowCoins = types.AttributeKeyBorrowCoins
|
|
|
|
AttributeKeyBorrower = types.AttributeKeyBorrower
|
2020-12-21 17:18:55 +00:00
|
|
|
AttributeKeyDeposit = types.AttributeKeyDeposit
|
2021-01-23 05:17:40 +00:00
|
|
|
AttributeKeyDepositCoins = types.AttributeKeyDepositCoins
|
2020-12-21 17:18:55 +00:00
|
|
|
AttributeKeyDepositDenom = types.AttributeKeyDepositDenom
|
|
|
|
AttributeKeyDepositor = types.AttributeKeyDepositor
|
2021-01-23 05:17:40 +00:00
|
|
|
AttributeKeyRepayCoins = types.AttributeKeyRepayCoins
|
2020-12-21 17:18:55 +00:00
|
|
|
AttributeKeyRewardsDistribution = types.AttributeKeyRewardsDistribution
|
2021-01-23 05:17:40 +00:00
|
|
|
AttributeKeySender = types.AttributeKeySender
|
2020-12-21 17:18:55 +00:00
|
|
|
AttributeValueCategory = types.AttributeValueCategory
|
|
|
|
DefaultParamspace = types.DefaultParamspace
|
|
|
|
EventTypeDeleteHardDeposit = types.EventTypeDeleteHardDeposit
|
2021-02-03 22:23:17 +00:00
|
|
|
EventTypeHardLiquidation = types.EventTypeHardLiquidation
|
2021-01-23 05:17:40 +00:00
|
|
|
EventTypeHardBorrow = types.EventTypeHardBorrow
|
2020-12-21 17:18:55 +00:00
|
|
|
EventTypeHardDelegatorDistribution = types.EventTypeHardDelegatorDistribution
|
|
|
|
EventTypeHardDeposit = types.EventTypeHardDeposit
|
|
|
|
EventTypeHardLPDistribution = types.EventTypeHardLPDistribution
|
2021-01-23 05:17:40 +00:00
|
|
|
EventTypeHardRepay = types.EventTypeHardRepay
|
2020-12-21 17:18:55 +00:00
|
|
|
EventTypeHardWithdrawal = types.EventTypeHardWithdrawal
|
|
|
|
ModuleAccountName = types.ModuleAccountName
|
|
|
|
ModuleName = types.ModuleName
|
|
|
|
QuerierRoute = types.QuerierRoute
|
2021-01-23 05:17:40 +00:00
|
|
|
QueryGetBorrows = types.QueryGetBorrows
|
2020-12-21 17:18:55 +00:00
|
|
|
QueryGetDeposits = types.QueryGetDeposits
|
|
|
|
QueryGetModuleAccounts = types.QueryGetModuleAccounts
|
|
|
|
QueryGetParams = types.QueryGetParams
|
2021-01-23 05:17:40 +00:00
|
|
|
QueryGetTotalBorrowed = types.QueryGetTotalBorrowed
|
|
|
|
QueryGetTotalDeposited = types.QueryGetTotalDeposited
|
2020-12-21 17:18:55 +00:00
|
|
|
RouterKey = types.RouterKey
|
|
|
|
StoreKey = types.StoreKey
|
2020-09-21 21:08:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// function aliases
|
2021-01-23 05:17:40 +00:00
|
|
|
APYToSPY = keeper.APYToSPY
|
2021-02-10 17:53:53 +00:00
|
|
|
SPYToEstimatedAPY = keeper.SPYToEstimatedAPY
|
2021-01-21 13:52:09 +00:00
|
|
|
CalculateBorrowInterestFactor = keeper.CalculateBorrowInterestFactor
|
2021-01-23 05:17:40 +00:00
|
|
|
CalculateBorrowRate = keeper.CalculateBorrowRate
|
2021-01-21 13:52:09 +00:00
|
|
|
CalculateSupplyInterestFactor = keeper.CalculateSupplyInterestFactor
|
2021-01-23 05:17:40 +00:00
|
|
|
CalculateUtilizationRatio = keeper.CalculateUtilizationRatio
|
|
|
|
NewKeeper = keeper.NewKeeper
|
|
|
|
NewQuerier = keeper.NewQuerier
|
2021-01-21 13:52:09 +00:00
|
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
|
|
DefaultParams = types.DefaultParams
|
|
|
|
DepositTypeIteratorKey = types.DepositTypeIteratorKey
|
|
|
|
GetTotalVestingPeriodLength = types.GetTotalVestingPeriodLength
|
2021-01-23 05:17:40 +00:00
|
|
|
NewBorrow = types.NewBorrow
|
|
|
|
NewBorrowInterestFactor = types.NewBorrowInterestFactor
|
2021-01-21 13:52:09 +00:00
|
|
|
NewBorrowLimit = types.NewBorrowLimit
|
|
|
|
NewDeposit = types.NewDeposit
|
2021-01-23 05:17:40 +00:00
|
|
|
NewGenesisAccumulationTime = types.NewGenesisAccumulationTime
|
2021-01-21 13:52:09 +00:00
|
|
|
NewGenesisState = types.NewGenesisState
|
2021-01-23 05:17:40 +00:00
|
|
|
NewInterestRateModel = types.NewInterestRateModel
|
|
|
|
NewMoneyMarket = types.NewMoneyMarket
|
|
|
|
NewMsgBorrow = types.NewMsgBorrow
|
2021-01-21 13:52:09 +00:00
|
|
|
NewMsgDeposit = types.NewMsgDeposit
|
2021-01-23 05:17:40 +00:00
|
|
|
NewMsgLiquidate = types.NewMsgLiquidate
|
|
|
|
NewMsgRepay = types.NewMsgRepay
|
2021-01-21 13:52:09 +00:00
|
|
|
NewMsgWithdraw = types.NewMsgWithdraw
|
|
|
|
NewMultiHARDHooks = types.NewMultiHARDHooks
|
|
|
|
NewParams = types.NewParams
|
|
|
|
NewPeriod = types.NewPeriod
|
|
|
|
NewQueryAccountParams = types.NewQueryAccountParams
|
2021-01-23 05:17:40 +00:00
|
|
|
NewQueryBorrowsParams = types.NewQueryBorrowsParams
|
|
|
|
NewQueryDepositsParams = types.NewQueryDepositsParams
|
|
|
|
NewQueryTotalBorrowedParams = types.NewQueryTotalBorrowedParams
|
|
|
|
NewQueryTotalDepositedParams = types.NewQueryTotalDepositedParams
|
|
|
|
NewSupplyInterestFactor = types.NewSupplyInterestFactor
|
|
|
|
NewValuationMap = types.NewValuationMap
|
2021-01-21 13:52:09 +00:00
|
|
|
ParamKeyTable = types.ParamKeyTable
|
|
|
|
RegisterCodec = types.RegisterCodec
|
2020-09-21 21:08:43 +00:00
|
|
|
|
|
|
|
// variable aliases
|
2021-02-16 14:45:57 +00:00
|
|
|
BorrowInterestFactorPrefix = types.BorrowInterestFactorPrefix
|
|
|
|
BorrowedCoinsPrefix = types.BorrowedCoinsPrefix
|
|
|
|
BorrowsKeyPrefix = types.BorrowsKeyPrefix
|
|
|
|
DefaultAccumulationTimes = types.DefaultAccumulationTimes
|
|
|
|
DefaultBorrows = types.DefaultBorrows
|
|
|
|
DefaultDeposits = types.DefaultDeposits
|
|
|
|
DefaultMoneyMarkets = types.DefaultMoneyMarkets
|
|
|
|
DefaultTotalBorrowed = types.DefaultTotalBorrowed
|
|
|
|
DefaultTotalReserves = types.DefaultTotalReserves
|
|
|
|
DefaultTotalSupplied = types.DefaultTotalSupplied
|
|
|
|
DepositsKeyPrefix = types.DepositsKeyPrefix
|
|
|
|
ErrAccountNotFound = types.ErrAccountNotFound
|
|
|
|
ErrBorrowEmptyCoins = types.ErrBorrowEmptyCoins
|
|
|
|
ErrBorrowExceedsAvailableBalance = types.ErrBorrowExceedsAvailableBalance
|
|
|
|
ErrExceedsProtocolBorrowableBalance = types.ErrExceedsProtocolBorrowableBalance
|
|
|
|
ErrBorrowNotFound = types.ErrBorrowNotFound
|
|
|
|
ErrBorrowNotLiquidatable = types.ErrBorrowNotLiquidatable
|
|
|
|
ErrBorrowedCoinsNotFound = types.ErrBorrowedCoinsNotFound
|
|
|
|
ErrDepositNotFound = types.ErrDepositNotFound
|
|
|
|
ErrDepositsNotFound = types.ErrDepositsNotFound
|
|
|
|
ErrGreaterThanAssetBorrowLimit = types.ErrGreaterThanAssetBorrowLimit
|
|
|
|
ErrInsufficientBalanceForBorrow = types.ErrInsufficientBalanceForBorrow
|
|
|
|
ErrInsufficientBalanceForRepay = types.ErrInsufficientBalanceForRepay
|
|
|
|
ErrInsufficientCoins = types.ErrInsufficientCoins
|
|
|
|
ErrInsufficientLoanToValue = types.ErrInsufficientLoanToValue
|
|
|
|
ErrInsufficientModAccountBalance = types.ErrInsufficientModAccountBalance
|
|
|
|
ErrInvalidAccountType = types.ErrInvalidAccountType
|
|
|
|
ErrInvalidDepositDenom = types.ErrInvalidDepositDenom
|
|
|
|
ErrInvalidReceiver = types.ErrInvalidReceiver
|
|
|
|
ErrInvalidRepaymentDenom = types.ErrInvalidRepaymentDenom
|
|
|
|
ErrInvalidWithdrawAmount = types.ErrInvalidWithdrawAmount
|
|
|
|
ErrInvalidWithdrawDenom = types.ErrInvalidWithdrawDenom
|
|
|
|
ErrMarketNotFound = types.ErrMarketNotFound
|
|
|
|
ErrMoneyMarketNotFound = types.ErrMoneyMarketNotFound
|
|
|
|
ErrNegativeBorrowedCoins = types.ErrNegativeBorrowedCoins
|
|
|
|
ErrNegativeSuppliedCoins = types.ErrNegativeSuppliedCoins
|
|
|
|
ErrPreviousAccrualTimeNotFound = types.ErrPreviousAccrualTimeNotFound
|
|
|
|
ErrPriceNotFound = types.ErrPriceNotFound
|
|
|
|
ErrSuppliedCoinsNotFound = types.ErrSuppliedCoinsNotFound
|
|
|
|
ErrReservesExceedCash = types.ErrReservesExceedCash
|
|
|
|
GovDenom = types.GovDenom
|
|
|
|
KeyMoneyMarkets = types.KeyMoneyMarkets
|
|
|
|
ModuleCdc = types.ModuleCdc
|
|
|
|
MoneyMarketsPrefix = types.MoneyMarketsPrefix
|
|
|
|
PreviousAccrualTimePrefix = types.PreviousAccrualTimePrefix
|
|
|
|
SuppliedCoinsPrefix = types.SuppliedCoinsPrefix
|
|
|
|
SupplyInterestFactorPrefix = types.SupplyInterestFactorPrefix
|
|
|
|
TotalReservesPrefix = types.TotalReservesPrefix
|
2020-09-21 21:08:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type (
|
2021-01-23 05:17:40 +00:00
|
|
|
Keeper = keeper.Keeper
|
|
|
|
LiqData = keeper.LiqData
|
|
|
|
AccountKeeper = types.AccountKeeper
|
|
|
|
AuctionKeeper = types.AuctionKeeper
|
|
|
|
Borrow = types.Borrow
|
|
|
|
BorrowInterestFactor = types.BorrowInterestFactor
|
|
|
|
BorrowInterestFactors = types.BorrowInterestFactors
|
|
|
|
BorrowLimit = types.BorrowLimit
|
|
|
|
Borrows = types.Borrows
|
|
|
|
Deposit = types.Deposit
|
|
|
|
Deposits = types.Deposits
|
|
|
|
GenesisAccumulationTime = types.GenesisAccumulationTime
|
|
|
|
GenesisAccumulationTimes = types.GenesisAccumulationTimes
|
|
|
|
GenesisState = types.GenesisState
|
|
|
|
HARDHooks = types.HARDHooks
|
|
|
|
InterestRateModel = types.InterestRateModel
|
|
|
|
InterestRateModels = types.InterestRateModels
|
|
|
|
MoneyMarket = types.MoneyMarket
|
|
|
|
MoneyMarkets = types.MoneyMarkets
|
|
|
|
MsgBorrow = types.MsgBorrow
|
|
|
|
MsgDeposit = types.MsgDeposit
|
|
|
|
MsgLiquidate = types.MsgLiquidate
|
|
|
|
MsgRepay = types.MsgRepay
|
|
|
|
MsgWithdraw = types.MsgWithdraw
|
|
|
|
MultiHARDHooks = types.MultiHARDHooks
|
|
|
|
Params = types.Params
|
|
|
|
PricefeedKeeper = types.PricefeedKeeper
|
|
|
|
QueryAccountParams = types.QueryAccountParams
|
|
|
|
QueryBorrowsParams = types.QueryBorrowsParams
|
|
|
|
QueryDepositsParams = types.QueryDepositsParams
|
|
|
|
QueryTotalBorrowedParams = types.QueryTotalBorrowedParams
|
|
|
|
QueryTotalDepositedParams = types.QueryTotalDepositedParams
|
|
|
|
StakingKeeper = types.StakingKeeper
|
|
|
|
SupplyInterestFactor = types.SupplyInterestFactor
|
|
|
|
SupplyInterestFactors = types.SupplyInterestFactors
|
|
|
|
SupplyKeeper = types.SupplyKeeper
|
|
|
|
ValuationMap = types.ValuationMap
|
2020-09-21 21:08:43 +00:00
|
|
|
)
|