cli

package
v6.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagDenom = "denom"
)

Flag constants

Variables

This section is empty.

Functions

func Borrow

func Borrow() *cobra.Command

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

func Collateralize

func Collateralize() *cobra.Command

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

func Decollateralize

func Decollateralize() *cobra.Command

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

func GetQueryCmd

func GetQueryCmd() *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.

func LeveragedLiquidate

func LeveragedLiquidate() *cobra.Command

LeveragedLiquidate creates a Cobra command to generate or broadcast a transaction with a MsgLeveragedLiquidate message.

func Liquidate

func Liquidate() *cobra.Command

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

func MaxBorrow

func MaxBorrow() *cobra.Command

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

func MaxWithdraw

func MaxWithdraw() *cobra.Command

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

func QueryAccountBalances

func QueryAccountBalances() *cobra.Command

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

func QueryAccountSummary

func QueryAccountSummary() *cobra.Command

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

func QueryBadDebts

func QueryBadDebts() *cobra.Command

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

func QueryInspect

func QueryInspect() *cobra.Command

QueryInspect creates a Cobra command to query for the inspector command.

func QueryInspectAccount added in v6.1.0

func QueryInspectAccount() *cobra.Command

QueryInspectAccount creates a Cobra command to inspect a single account.

func QueryLiquidationTargets

func QueryLiquidationTargets() *cobra.Command

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

func QueryMarketSummary

func QueryMarketSummary() *cobra.Command

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

func QueryMaxBorrow

func QueryMaxBorrow() *cobra.Command

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

func QueryMaxWithdraw

func QueryMaxWithdraw() *cobra.Command

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

func QueryParams

func QueryParams() *cobra.Command

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

func QueryRegisteredTokens

func QueryRegisteredTokens() *cobra.Command

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

func QuerySpecialAssets

func QuerySpecialAssets() *cobra.Command

QuerySpecialAssets creates a Cobra command to query for all the special asset pairs in the x/leverage module.

func Repay

func Repay() *cobra.Command

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

func Supply

func Supply() *cobra.Command

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

func SupplyCollateral

func SupplyCollateral() *cobra.Command

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

func Withdraw

func Withdraw() *cobra.Command

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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