Documentation ¶
Index ¶
- Constants
- func GetCmdBorrowAsset() *cobra.Command
- func GetCmdLendAsset() *cobra.Command
- func GetCmdQueryAllRegisteredTokens() *cobra.Command
- func GetCmdQueryBorrowed() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdQueryReserveAmount() *cobra.Command
- func GetCmdRepayAsset() *cobra.Command
- func GetCmdSetCollateral() *cobra.Command
- func GetCmdWithdrawAsset() *cobra.Command
- func GetQueryCmd(queryRoute string) *cobra.Command
- func GetTxCmd() *cobra.Command
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 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 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 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 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.
Types ¶
This section is empty.