cli

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 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 GetCmdBorrowAsset added in v0.7.0

func GetCmdBorrowAsset() *cobra.Command

GetCmdBorrowAsset returns a CLI command handler to generate or broadcast a transaction with a MsgBorrowAsset message.

func GetCmdLendAsset added in v0.7.0

func GetCmdLendAsset() *cobra.Command

GetCmdLendAsset returns a CLI command handler to generate or broadcast a transaction with a MsgLendAsset message.

func GetCmdLiquidate added in v0.7.0

func GetCmdLiquidate() *cobra.Command

GetCmdLiquidate returns a CLI command handler to generate or broadcast a transaction with a MsgLiquidate message.

func GetCmdQueryAllRegisteredTokens added in v0.7.0

func GetCmdQueryAllRegisteredTokens() *cobra.Command

GetCmdQueryAllRegisteredTokens returns a CLI command handler to query for all the registered tokens in the x/leverage module.

func GetCmdQueryAvailableBorrow added in v0.7.0

func GetCmdQueryAvailableBorrow() *cobra.Command

GetCmdQueryAvailableBorrow returns a CLI command handler to query for the available amount to borrow of a specific denom.

func GetCmdQueryBorrowAPY added in v0.7.0

func GetCmdQueryBorrowAPY() *cobra.Command

GetCmdQueryBorrowAPY returns a CLI command handler to query for the borrow APY of a specific token.

func GetCmdQueryBorrowLimit added in v0.7.0

func GetCmdQueryBorrowLimit() *cobra.Command

GetCmdQueryBorrowLimit returns a CLI command handler to query for the borrow limit of a specific borrower.

func GetCmdQueryBorrowed added in v0.7.0

func GetCmdQueryBorrowed() *cobra.Command

GetCmdQueryBorrowed returns a CLI command handler to query for the amount of total borrowed tokens for a given address.

func GetCmdQueryCollateral added in v0.7.0

func GetCmdQueryCollateral() *cobra.Command

GetCmdQueryCollateral returns a CLI command handler to query for the amount of total collateral tokens for a given address.

func GetCmdQueryCollateralSetting added in v0.7.0

func GetCmdQueryCollateralSetting() *cobra.Command

GetCmdQueryCollateralSetting returns a CLI command handler to query for the collateral setting of a specific token denom for an address.

func GetCmdQueryExchangeRate added in v0.7.0

func GetCmdQueryExchangeRate() *cobra.Command

GetCmdQueryExchangeRate returns a CLI command handler to query for the exchange rate of a specific uToken.

func GetCmdQueryLendAPY added in v0.7.0

func GetCmdQueryLendAPY() *cobra.Command

GetCmdQueryLendAPY returns a CLI command handler to query for the lend APY of a specific uToken.

func GetCmdQueryLiquidationTargets added in v0.7.0

func GetCmdQueryLiquidationTargets() *cobra.Command

GetCmdQueryLiquidationTargets returns a CLI command handler to query for all eligible liquidation targets

func GetCmdQueryMarketSize added in v0.7.0

func GetCmdQueryMarketSize() *cobra.Command

GetCmdQueryMarketSize returns a CLI command handler to query for the Market Size of a specific token.

func GetCmdQueryParams added in v0.7.0

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams returns a CLI command handler to query for the x/leverage module parameters.

func GetCmdQueryReserveAmount added in v0.7.0

func GetCmdQueryReserveAmount() *cobra.Command

GetCmdQueryReserveAmount returns a CLI command handler to query for the reserved amount of a specific token.

func GetCmdRepayAsset added in v0.7.0

func GetCmdRepayAsset() *cobra.Command

GetCmdRepayAsset returns a CLI command handler to generate or broadcast a transaction with a MsgRepayAsset message.

func GetCmdSetCollateral added in v0.7.0

func GetCmdSetCollateral() *cobra.Command

GetCmdSetCollateral returns a CLI command handler to generate or broadcast a transaction with a MsgSetCollateral message.

func GetCmdWithdrawAsset added in v0.7.0

func GetCmdWithdrawAsset() *cobra.Command

GetCmdWithdrawAsset returns a CLI command handler to generate or broadcast a transaction with a MsgWithdrawAsset 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 added in v0.7.0

func NewCmdSubmitUpdateRegistryProposal() *cobra.Command

NewCmdSubmitUpdateRegistryProposal returns a CLI command handler to generate or broadcast a transaction with a governance proposal message containing a UpdateRegistryProposal.

NOTE: The "registry" provided in the proposal replaces the entire existing registry.

func ParseUpdateRegistryProposal added in v0.7.0

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