cli

package
v0.15.0-alpha.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ParamPair                   = "pair"
	ParamBaseAssetReserve       = "base-asset-reserve"
	ParamQuoteAssetReserve      = "quote-asset-reserve"
	ParamTradeLimitRatio        = "trade-limit-ratio"
	ParamFluctuationLimitRatio  = "fluctuation-limit-ratio"
	ParamMaxOracleSpreadRatio   = "maxOracle-spread-ratio"
	ParamMaintenanceMarginRatio = "maintenance-margin-ratio"
	ParamMaxLeverage            = "max-leverage"
)
View Source
var (
	CreatePoolProposalHandler = govclient.NewProposalHandler(
		CmdCreatePoolProposal,
		func(context client.Context) govclientrest.ProposalRESTHandler {
			return govclientrest.ProposalRESTHandler{
				SubRoute: "create_pool",
				Handler: func(writer http.ResponseWriter, request *http.Request) {
					_, _ = writer.Write([]byte("deprecated"))
					writer.WriteHeader(http.StatusMethodNotAllowed)
				},
			}
		})
)

Functions

func AddVPoolGenesisCmd added in v0.14.0

func AddVPoolGenesisCmd(defaultNodeHome string) *cobra.Command

AddVPoolGenesisCmd returns add-vpool-genesis

func CmdCreatePoolProposal added in v0.11.0

func CmdCreatePoolProposal() *cobra.Command

CmdCreatePoolProposal implements the client command to submit a governance proposal to whitelist an oracle for specified asset pairs.

func CmdGetBaseAssetPrice added in v0.5.0

func CmdGetBaseAssetPrice() *cobra.Command

func CmdGetVpoolReserveAssets

func CmdGetVpoolReserveAssets() *cobra.Command

func CmdGetVpools added in v0.4.9

func CmdGetVpools() *cobra.Command

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

Types

This section is empty.

Jump to

Keyboard shortcuts

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