Documentation ¶
Index ¶
- Constants
- func GetCmdBorrow() *cobra.Command
- func GetCmdCollateralize() *cobra.Command
- func GetCmdDecollateralize() *cobra.Command
- func GetCmdLiquidate() *cobra.Command
- func GetCmdQueryAccountBalances() *cobra.Command
- func GetCmdQueryAccountSummary() *cobra.Command
- func GetCmdQueryLiquidationTargets() *cobra.Command
- func GetCmdQueryMarketSummary() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdQueryRegisteredTokens() *cobra.Command
- func GetCmdRepay() *cobra.Command
- func GetCmdSupply() *cobra.Command
- func GetCmdWithdraw() *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 GetCmdBorrow ¶
GetCmdBorrow creates a Cobra command to generate or broadcast a transaction with a MsgBorrow message.
func GetCmdCollateralize ¶
GetCmdCollateralize creates a Cobra command to generate or broadcast a transaction with a MsgCollateralize message.
func GetCmdDecollateralize ¶
GetCmdDecollateralize returns a CLI command handler to generate or broadcast a transaction with a MsgDecollateralize message.
func GetCmdLiquidate ¶
GetCmdLiquidate creates a Cobra command to generate or broadcast a transaction with a MsgLiquidate message.
func GetCmdQueryAccountBalances ¶
GetCmdQueryAccountBalances creates a Cobra command to query for the supply, collateral, and borrow positions of an account.
func GetCmdQueryAccountSummary ¶
GetCmdQueryAccountSummary creates a Cobra command to query for USD values representing an account's positions and borrowing limits.
func GetCmdQueryLiquidationTargets ¶
GetCmdQueryLiquidationTargets creates a Cobra command to query for all eligible liquidation targets.
func GetCmdQueryMarketSummary ¶
GetCmdQueryMarketSummary creates a Cobra command to query for the Market Summary of a specific token.
func GetCmdQueryParams ¶
GetCmdQueryParams creates a Cobra command to query for the x/leverage module parameters.
func GetCmdQueryRegisteredTokens ¶
GetCmdQueryRegisteredTokens creates a Cobra command to query for all the registered tokens in the x/leverage module.
func GetCmdRepay ¶
GetCmdRepay creates a Cobra command to generate or broadcast a transaction with a MsgRepay message.
func GetCmdSupply ¶
GetCmdSupply creates a Cobra command to generate or broadcast a transaction with a MsgSupply message.
func GetCmdWithdraw ¶
GetCmdWithdraw creates a Cobra command to generate or broadcast a transaction with a MsgWithdraw message.
func GetQueryCmd ¶
GetQueryCmd returns the CLI query commands for the x/leverage module.
func NewCmdSubmitUpdateRegistryProposal ¶
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.