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 GetCmdQueryCollateralValue() *cobra.Command
- func GetCmdQueryExchangeRate() *cobra.Command
- func GetCmdQueryLendAPY() *cobra.Command
- func GetCmdQueryLiquidationLimit() *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 ¶
GetCmdBorrowAsset returns a CLI command handler to generate or broadcast a transaction with a MsgBorrowAsset message.
func GetCmdLendAsset ¶
GetCmdLendAsset returns a CLI command handler to generate or broadcast a transaction with a MsgLendAsset message.
func GetCmdLiquidate ¶
GetCmdLiquidate returns a CLI command handler to generate or broadcast a transaction with a MsgLiquidate message.
func GetCmdQueryAllRegisteredTokens ¶
GetCmdQueryAllRegisteredTokens returns a CLI command handler to query for all the registered tokens in the x/leverage module.
func GetCmdQueryAvailableBorrow ¶
GetCmdQueryAvailableBorrow returns a CLI command handler to query for the available amount to borrow of a specific denom.
func GetCmdQueryBorrowAPY ¶
GetCmdQueryBorrowAPY returns a CLI command handler to query for the borrow APY of a specific token.
func GetCmdQueryBorrowLimit ¶
GetCmdQueryBorrowLimit returns a CLI command handler to query for the borrow limit of a specific borrower.
func GetCmdQueryBorrowed ¶
GetCmdQueryBorrowed returns a CLI command handler to query for the amount of total borrowed tokens for a given address.
func GetCmdQueryBorrowedValue ¶
GetCmdQueryBorrowedValue returns a CLI command handler to query for the USD value of total borrowed tokens for a given address.
func GetCmdQueryCollateral ¶
GetCmdQueryCollateral returns a CLI command handler to query for the amount of total collateral tokens for a given address.
func GetCmdQueryCollateralSetting ¶
GetCmdQueryCollateralSetting returns a CLI command handler to query for the collateral setting of a specific token denom for an address.
func GetCmdQueryCollateralValue ¶
GetCmdQueryCollateralValue returns a CLI command handler to query for the USD value of total collateral tokens for a given address.
func GetCmdQueryExchangeRate ¶
GetCmdQueryExchangeRate returns a CLI command handler to query for the exchange rate of a specific uToken.
func GetCmdQueryLendAPY ¶
GetCmdQueryLendAPY returns a CLI command handler to query for the lend APY of a specific uToken.
func GetCmdQueryLiquidationLimit ¶
GetCmdQueryLiquidationLimit returns a CLI command handler to query for the liquidation limit of a specific borrower.
func GetCmdQueryLiquidationTargets ¶
GetCmdQueryLiquidationTargets returns a CLI command handler to query for all eligible liquidation targets
func GetCmdQueryLoaned ¶
GetCmdQueryLoaned returns a CLI command handler to query for the amount of tokens loaned by a given address.
func GetCmdQueryLoanedValue ¶
GetCmdQueryLoanedValue returns a CLI command handler to query for the USD value of total tokens loaned by a given address.
func GetCmdQueryMarketSize ¶
GetCmdQueryMarketSize returns a CLI command handler to query for the Market Size of a specific token.
func GetCmdQueryParams ¶
GetCmdQueryParams returns a CLI command handler to query for the x/leverage module parameters.
func GetCmdQueryReserveAmount ¶
GetCmdQueryReserveAmount returns a CLI command handler to query for the reserved amount of a specific token.
func GetCmdQueryTokenMarketSize ¶
GetCmdQueryTokenMarketSize returns a CLI command handler to query for the Market Size of a specific token, in token denomination instead of USD.
func GetCmdRepayAsset ¶
GetCmdRepayAsset returns a CLI command handler to generate or broadcast a transaction with a MsgRepayAsset message.
func GetCmdSetCollateral ¶
GetCmdSetCollateral returns a CLI command handler to generate or broadcast a transaction with a MsgSetCollateral message.
func GetCmdWithdrawAsset ¶
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 ¶
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 ¶
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.