cli

package
v3.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagDenom = "denom"
)

Flag constants

Variables

This section is empty.

Functions

func GetCmdBorrow

func GetCmdBorrow() *cobra.Command

GetCmdBorrow creates a Cobra command to generate or broadcast a transaction with a MsgBorrow message.

func GetCmdCollateralize

func GetCmdCollateralize() *cobra.Command

GetCmdCollateralize creates a Cobra command to generate or broadcast a transaction with a MsgCollateralize message.

func GetCmdDecollateralize

func GetCmdDecollateralize() *cobra.Command

GetCmdDecollateralize returns a CLI command handler to generate or broadcast a transaction with a MsgDecollateralize message.

func GetCmdLiquidate

func GetCmdLiquidate() *cobra.Command

GetCmdLiquidate creates a Cobra command to generate or broadcast a transaction with a MsgLiquidate message.

func GetCmdMaxWithdraw added in v3.3.0

func GetCmdMaxWithdraw() *cobra.Command

GetCmdMaxWithdraw creates a Cobra command to generate or broadcast a transaction with a MsgMaxWithdraw message.

func GetCmdQueryAccountBalances

func GetCmdQueryAccountBalances() *cobra.Command

GetCmdQueryAccountBalances creates a Cobra command to query for the supply, collateral, and borrow positions of an account.

func GetCmdQueryAccountSummary

func GetCmdQueryAccountSummary() *cobra.Command

GetCmdQueryAccountSummary creates a Cobra command to query for USD values representing an account's positions and borrowing limits.

func GetCmdQueryBadDebts added in v3.3.0

func GetCmdQueryBadDebts() *cobra.Command

GetCmdQueryBadDebts creates a Cobra command to query for all bad debts.

func GetCmdQueryLiquidationTargets

func GetCmdQueryLiquidationTargets() *cobra.Command

GetCmdQueryLiquidationTargets creates a Cobra command to query for all eligible liquidation targets.

func GetCmdQueryMarketSummary

func GetCmdQueryMarketSummary() *cobra.Command

GetCmdQueryMarketSummary creates a Cobra command to query for the Market Summary of a specific token.

func GetCmdQueryMaxWithdraw added in v3.3.0

func GetCmdQueryMaxWithdraw() *cobra.Command

GetCmdQueryMaxWithdraw creates a Cobra command to query for the maximum amount of a given token an address can withdraw.

func GetCmdQueryParams

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams creates a Cobra command to query for the x/leverage module parameters.

func GetCmdQueryRegisteredTokens

func GetCmdQueryRegisteredTokens() *cobra.Command

GetCmdQueryRegisteredTokens creates a Cobra command to query for all the registered tokens in the x/leverage module.

func GetCmdRepay

func GetCmdRepay() *cobra.Command

GetCmdRepay creates a Cobra command to generate or broadcast a transaction with a MsgRepay message.

func GetCmdSupply

func GetCmdSupply() *cobra.Command

GetCmdSupply creates a Cobra command to generate or broadcast a transaction with a MsgSupply message.

func GetCmdSupplyCollateral added in v3.1.0

func GetCmdSupplyCollateral() *cobra.Command

GetCmdSupplyCollateral creates a Cobra command to generate or broadcast a transaction with a MsgSupply message.

func GetCmdWithdraw

func GetCmdWithdraw() *cobra.Command

GetCmdWithdraw creates a Cobra command to generate or broadcast a transaction with a MsgWithdraw message.

func GetQueryCmd

func GetQueryCmd(queryRoute string) *cobra.Command

GetQueryCmd returns the CLI query commands for the x/leverage module.

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns the CLI transaction commands for the x/leverage module.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL