cli

package
v3.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 12 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 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 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 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 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.

func NewCmdSubmitUpdateRegistryProposal

func NewCmdSubmitUpdateRegistryProposal() *cobra.Command

NewCmdSubmitUpdateRegistryProposal creates a Cobra command to generate or broadcast a transaction with a governance proposal message containing a UpdateRegistryProposal.

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.

Jump to

Keyboard shortcuts

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