Documentation ¶
Index ¶
- Constants
- func GetCmdBorrowAsset() *cobra.Command
- func GetCmdLendAsset() *cobra.Command
- func GetCmdLiquidate() *cobra.Command
- func GetCmdQueryAllRegisteredTokens() *cobra.Command
- func GetCmdQueryAvailableBorrow() *cobra.Command
- func GetCmdQueryBorrowAPY() *cobra.Command
- func GetCmdQueryBorrowLimit() *cobra.Command
- func GetCmdQueryBorrowed() *cobra.Command
- func GetCmdQueryBorrowedValue() *cobra.Command
- func GetCmdQueryCollateral() *cobra.Command
- func GetCmdQueryCollateralSetting() *cobra.Command
- func GetCmdQueryExchangeRate() *cobra.Command
- func GetCmdQueryLendAPY() *cobra.Command
- func GetCmdQueryLiquidationTargets() *cobra.Command
- func GetCmdQueryLoaned() *cobra.Command
- func GetCmdQueryLoanedValue() *cobra.Command
- func GetCmdQueryMarketSize() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdQueryReserveAmount() *cobra.Command
- func GetCmdQueryTokenMarketSize() *cobra.Command
- func GetCmdRepayAsset() *cobra.Command
- func GetCmdSetCollateral() *cobra.Command
- func GetCmdWithdrawAsset() *cobra.Command
- func GetQueryCmd(queryRoute string) *cobra.Command
- func GetTxCmd() *cobra.Command
- func NewCmdSubmitUpdateRegistryProposal() *cobra.Command
- func ParseUpdateRegistryProposal(cdc codec.JSONCodec, proposalFile string) (types.UpdateRegistryProposal, error)
Constants ¶
const (
FlagDenom = "denom"
)
Flag constants
Variables ¶
This section is empty.
Functions ¶
func GetCmdBorrowAsset ¶ added in v0.7.0
GetCmdBorrowAsset returns a CLI command handler to generate or broadcast a transaction with a MsgBorrowAsset message.
func GetCmdLendAsset ¶ added in v0.7.0
GetCmdLendAsset returns a CLI command handler to generate or broadcast a transaction with a MsgLendAsset message.
func GetCmdLiquidate ¶ added in v0.7.0
GetCmdLiquidate returns a CLI command handler to generate or broadcast a transaction with a MsgLiquidate message.
func GetCmdQueryAllRegisteredTokens ¶ added in v0.7.0
GetCmdQueryAllRegisteredTokens returns a CLI command handler to query for all the registered tokens in the x/leverage module.
func GetCmdQueryAvailableBorrow ¶ added in v0.7.0
GetCmdQueryAvailableBorrow returns a CLI command handler to query for the available amount to borrow of a specific denom.
func GetCmdQueryBorrowAPY ¶ added in v0.7.0
GetCmdQueryBorrowAPY returns a CLI command handler to query for the borrow APY of a specific token.
func GetCmdQueryBorrowLimit ¶ added in v0.7.0
GetCmdQueryBorrowLimit returns a CLI command handler to query for the borrow limit of a specific borrower.
func GetCmdQueryBorrowed ¶ added in v0.7.0
GetCmdQueryBorrowed returns a CLI command handler to query for the amount of total borrowed tokens for a given address.
func GetCmdQueryBorrowedValue ¶ added in v0.8.4
GetCmdQueryBorrowedValue returns a CLI command handler to query for the USD value of total borrowed tokens for a given address.
func GetCmdQueryCollateral ¶ added in v0.7.0
GetCmdQueryCollateral returns a CLI command handler to query for the amount of total collateral tokens for a given address.
func GetCmdQueryCollateralSetting ¶ added in v0.7.0
GetCmdQueryCollateralSetting returns a CLI command handler to query for the collateral setting of a specific token denom for an address.
func GetCmdQueryExchangeRate ¶ added in v0.7.0
GetCmdQueryExchangeRate returns a CLI command handler to query for the exchange rate of a specific uToken.
func GetCmdQueryLendAPY ¶ added in v0.7.0
GetCmdQueryLendAPY returns a CLI command handler to query for the lend APY of a specific uToken.
func GetCmdQueryLiquidationTargets ¶ added in v0.7.0
GetCmdQueryLiquidationTargets returns a CLI command handler to query for all eligible liquidation targets
func GetCmdQueryLoaned ¶ added in v0.8.4
GetCmdQueryLoaned returns a CLI command handler to query for the amount of tokens loaned by a given address.
func GetCmdQueryLoanedValue ¶ added in v0.8.4
GetCmdQueryLoanedValue returns a CLI command handler to query for the USD value of total tokens loaned by a given address.
func GetCmdQueryMarketSize ¶ added in v0.7.0
GetCmdQueryMarketSize returns a CLI command handler to query for the Market Size of a specific token.
func GetCmdQueryParams ¶ added in v0.7.0
GetCmdQueryParams returns a CLI command handler to query for the x/leverage module parameters.
func GetCmdQueryReserveAmount ¶ added in v0.7.0
GetCmdQueryReserveAmount returns a CLI command handler to query for the reserved amount of a specific token.
func GetCmdQueryTokenMarketSize ¶ added in v0.8.4
GetCmdQueryTokenMarketSize returns a CLI command handler to query for the Market Size of a specific token, in token denomination instead of USD.
func GetCmdRepayAsset ¶ added in v0.7.0
GetCmdRepayAsset returns a CLI command handler to generate or broadcast a transaction with a MsgRepayAsset message.
func GetCmdSetCollateral ¶ added in v0.7.0
GetCmdSetCollateral returns a CLI command handler to generate or broadcast a transaction with a MsgSetCollateral message.
func GetCmdWithdrawAsset ¶ added in v0.7.0
GetCmdWithdrawAsset returns a CLI command handler to generate or broadcast a transaction with a MsgWithdrawAsset message.
func GetQueryCmd ¶
GetQueryCmd returns the CLI query commands for the x/leverage module.
func NewCmdSubmitUpdateRegistryProposal ¶ added in v0.7.0
NewCmdSubmitUpdateRegistryProposal returns a CLI command handler to generate or broadcast a transaction with a governance proposal message containing a UpdateRegistryProposal.
NOTE: The "registry" provided in the proposal replaces the entire existing registry.
func ParseUpdateRegistryProposal ¶ added in v0.7.0
func ParseUpdateRegistryProposal(cdc codec.JSONCodec, proposalFile string) (types.UpdateRegistryProposal, error)
ParseUpdateRegistryProposal attempts to parse a UpdateRegistryProposal from a JSON file.
Types ¶
This section is empty.