# Functions
DefaultGenesisState returns a default genesis state.
DefaultParams returns default params for hard module.
DepositTypeIteratorKey returns an interator prefix for interating over deposits by deposit denom.
GetTotalVestingPeriodLength returns the summed length of all vesting periods.
NewBorrow returns a new Borrow instance.
NewBorrowInterestFactor returns a new BorrowInterestFactor instance.
NewBorrowInterestFactorResponse returns a new BorrowInterestFactorResponse instance.
NewBorrowLimit returns a new BorrowLimit.
NewBorrowResponse returns a new BorrowResponse instance.
NewDeposit returns a new deposit.
NewDepositResponse returns a new DepositResponse.
NewGenesisAccumulationTime returns a new GenesisAccumulationTime.
NewGenesisState returns a new genesis state.
NewInterestFactor returns a new instance of InterestFactor.
NewInterestRateModel returns a new InterestRateModel.
NewMoneyMarket returns a new MoneyMarket.
NewMoneyMarketInterestRate returns a new instance of MoneyMarketInterestRate.
NewMsgBorrow returns a new MsgBorrow.
No description provided by the author
NewMsgDeposit returns a new MsgDeposit.
NewMsgLiquidate returns a new MsgLiquidate.
NewMsgRepay returns a new MsgRepay.
NewMsgWithdraw returns a new MsgWithdraw.
NewMultiHARDHooks returns a new MultiHARDHooks.
NewParams returns a new params object.
NewPeriod returns a new vesting period.
NewQueryAccountParams returns QueryAccountParams.
NewQueryBorrowsParams creates a new QueryBorrowsParams.
No description provided by the author
NewQueryDepositsParams creates a new QueryDepositsParams.
NewQueryInterestFactorsParams creates a new QueryInterestFactorsParams.
NewQueryInterestRateParams creates a new QueryInterestRateParams.
NewQueryReservesParams creates a new QueryReservesParams.
NewQueryTotalBorrowedParams creates a new QueryTotalBorrowedParams.
NewQueryTotalDepositedParams creates a new QueryTotalDepositedParams.
NewQueryUnsyncedBorrowsParams creates a new QueryUnsyncedBorrowsParams.
NewQueryUnsyncedDepositsParams creates a new QueryUnsyncedDepositsParams.
NewSupplyInterestFactor returns a new SupplyInterestFactor instance.
NewSupplyInterestFactorResponse returns a new SupplyInterestFactorResponse instance.
NewValuationMap returns a new instance of ValuationMap.
ParamKeyTable Key declaration for parameters.
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
# Constants
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
DefaultParamspace default name for parameter store.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
Event types for hard module.
ModuleAccountName name of module account used to hold deposits.
ModuleName name that will be used throughout the module.
QuerierRoute Top level query string.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
Querier routes for the hard module.
RouterKey Top level router key.
StoreKey Top level store key where all module items will be stored.
# Variables
No description provided by the author
denom -> sdk.Dec.
No description provided by the author
Parameter keys and default values.
Parameter keys and default values.
Parameter keys and default values.
$10 USD minimum borrow value.
Parameter keys and default values.
Parameter keys and default values.
Parameter keys and default values.
Parameter keys and default values.
denom -> sdk.Dec.
No description provided by the author
ErrAccountNotFound error for accounts that are not found in state.
ErrBelowMinimumBorrowValue error for when a proposed borrow position is less than the minimum USD value.
ErrBorrowedCoinsNotFound error for when the total amount of borrowed coins cannot be found.
ErrBorrowEmptyCoins error for when you cannot borrow empty coins.
ErrBorrowExceedsAvailableBalance for when a requested borrow exceeds available module acc balances.
ErrBorrowNotFound error for when a user's borrow is not found in the store.
ErrBorrowNotLiquidatable error for when a borrow is within valid LTV and cannot be liquidated.
ErrDepositNotFound error for deposit not found.
ErrDepositsNotFound error for no deposits found.
ErrExceedsProtocolBorrowableBalance for when a requested borrow exceeds the module account's borrowable balance.
ErrGreaterThanAssetBorrowLimit error for when a proposed borrow would increase borrowed amount over the asset's global borrow limit.
ErrInsufficientBalanceForBorrow error for when the requested borrow exceeds user's balance.
ErrInsufficientBalanceForRepay error for when requested repay exceeds user's balance.
ErrInsufficientCoins error for when there are not enough coins for the operation.
ErrInsufficientLoanToValue error for when an attempted borrow exceeds maximum loan-to-value.
ErrInsufficientModAccountBalance error for module account with innsufficient balance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidAccountType error for unsupported accounts.
ErrInvalidDepositDenom error for invalid deposit denoms.
ErrInvalidIndexFactorDenom error for when index factor denom cannot be 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
ErrInvalidReceiver error for when sending and receiving accounts don't match.
ErrInvalidRepaymentDenom error for when user attempts to repay a non-borrowed coin type.
ErrInvalidWithdrawAmount error for invalid withdrawal amount.
ErrInvalidWithdrawDenom error for when user attempts to withdraw a non-supplied coin type.
ErrMarketNotFound error for when a market for the input denom is not found.
ErrMoneyMarketNotFound error for money market param not found.
ErrNegativeBorrowedCoins error for when substracting coins from the total borrowed balance results in a negative amount.
ErrNegativeSuppliedCoins error for when substracting coins from the total supplied balance results in a negative amount.
ErrPreviousAccrualTimeNotFound error for no previous accrual time found in store.
ErrPriceNotFound error for when a price for the input market is not found.
ErrReservesExceedCash for when the protocol is insolvent because available reserves exceeds available cash.
ErrSuppliedCoinsNotFound error for when the total amount of supplied coins cannot be 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 and default values.
Parameter keys and default values.
No description provided by the author
No description provided by the author
denom -> time.
No description provided by the author
denom -> sdk.Dec.
denom -> sdk.Coin.
# Structs
Borrow defines an amount of coins borrowed from a hard module account.
BorrowInterestFactor defines an individual borrow interest factor.
BorrowInterestFactorResponse defines an individual borrow interest factor.
BorrowLimit enforces restrictions on a money market.
BorrowResponse defines an amount of coins borrowed from a hard module account.
CoinsProto defines a Protobuf wrapper around a Coins slice.
Deposit defines an amount of coins deposited into a hard module account.
DepositResponse defines an amount of coins deposited into a hard module account.
GenesisAccumulationTime stores the previous distribution time and its corresponding denom.
GenesisState defines the hard module's genesis state.
InterestFactor is a unique type returned by interest factor queries.
InterestRateModel contains information about an asset's interest rate.
ModAccountWithCoins includes the module account with its coins.
MoneyMarket is a money market for an individual asset.
MoneyMarketInterestRate is a unique type returned by interest rate queries.
MsgBorrow defines the Msg/Borrow request type.
MsgBorrowResponse defines the Msg/Borrow response type.
MsgDeposit defines the Msg/Deposit request type.
MsgDepositResponse defines the Msg/Deposit response type.
MsgLiquidate defines the Msg/Liquidate request type.
MsgLiquidateResponse defines the Msg/Liquidate response type.
MsgRepay defines the Msg/Repay request type.
MsgRepayResponse defines the Msg/Repay response type.
MsgWithdraw defines the Msg/Withdraw request type.
MsgWithdrawResponse defines the Msg/Withdraw response type.
Params defines the parameters for the hard module.
QueryAccountParams is the params for a filtered module account query.
QueryAccountsRequest is the request type for the Query/Accounts RPC method.
QueryAccountsResponse is the response type for the Query/Accounts RPC method.
QueryBorrowsParams is the params for a filtered borrows query.
QueryBorrowsRequest is the request type for the Query/Borrows RPC method.
QueryBorrowsResponse is the response type for the Query/Borrows RPC method.
QueryDepositsParams is the params for a filtered deposit query.
QueryDepositsRequest is the request type for the Query/Deposits RPC method.
QueryDepositsResponse is the response type for the Query/Deposits RPC method.
QueryInterestFactorsParams is the params for a filtered interest factors query.
QueryInterestFactorsRequest is the request type for the Query/InterestFactors RPC method.
QueryInterestFactorsResponse is the response type for the Query/InterestFactors RPC method.
QueryInterestRateParams is the params for a filtered interest rate query.
QueryInterestRateRequest is the request type for the Query/InterestRate RPC method.
QueryInterestRateResponse is the response type for the Query/InterestRate RPC method.
QueryParamsRequest is the request type for the Query/Params RPC method.
QueryParamsResponse is the response type for the Query/Params RPC method.
QueryReservesParams is the params for a filtered reserves query.
QueryReservesRequest is the request type for the Query/Reserves RPC method.
QueryReservesResponse is the response type for the Query/Reserves RPC method.
QueryTotalBorrowedParams is the params for a filtered total borrowed coins query.
QueryTotalBorrowedRequest is the request type for the Query/TotalBorrowed RPC method.
QueryTotalBorrowedResponse is the response type for the Query/TotalBorrowed RPC method.
QueryTotalDepositedParams is the params for a filtered total deposited coins query.
QueryTotalDepositedRequest is the request type for the Query/TotalDeposited RPC method.
QueryTotalDepositedResponse is the response type for the Query/TotalDeposited RPC method.
QueryUnsyncedBorrowsParams is the params for a filtered unsynced borrows query.
QueryUnsyncedBorrowsRequest is the request type for the Query/UnsyncedBorrows RPC method.
QueryUnsyncedBorrowsResponse is the response type for the Query/UnsyncedBorrows RPC method.
QueryUnsyncedDepositsParams is the params for a filtered unsynced deposit query.
QueryUnsyncedDepositsRequest is the request type for the Query/UnsyncedDeposits RPC method.
QueryUnsyncedDepositsResponse is the response type for the Query/UnsyncedDeposits RPC method.
SupplyInterestFactor defines an individual borrow interest factor.
SupplyInterestFactorResponse defines an individual borrow interest factor.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
ValuationMap holds the USD value of various coin types.
# Interfaces
AccountKeeper defines the expected keeper interface for interacting with account.
AuctionKeeper expected interface for the auction keeper (noalias).
BankKeeper defines the expected bank keeper.
HARDHooks event hooks for other keepers to run code in response to HARD 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.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
StakingKeeper defines the expected keeper interface for the staking keeper.
# Type aliases
BorrowInterestFactorResponses is a slice of BorrowInterestFactorResponse.
BorrowInterestFactors is a slice of BorrowInterestFactor, because Amino won't marshal maps.
BorrowResponses is a slice of BorrowResponse.
Borrows is a slice of Borrow.
DepositResponses is a slice of DepositResponse.
Deposits is a slice of Deposit.
GenesisAccumulationTimes slice of GenesisAccumulationTime.
InterestFactors is a slice of InterestFactor.
InterestRateModels slice of InterestRateModel.
MoneyMarketInterestRates is a slice of MoneyMarketInterestRate.
MoneyMarkets slice of MoneyMarket.
MultiHARDHooks combine multiple HARD hooks, all hook functions are run in array sequence.
SupplyInterestFactorResponses is a slice of SupplyInterestFactorResponse.
SupplyInterestFactors is a slice of SupplyInterestFactor, because Amino won't marshal maps.