cli

package
v12.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Will be parsed to string.
	FlagPoolFile = "pool-file"

	// Names of fields in pool json file.
	PoolFileWeights        = "weights"
	PoolFileInitialDeposit = "initial-deposit"
	PoolFileSwapFee        = "swap-fee"
	PoolFileExitFee        = "exit-fee"
	PoolFileFutureGovernor = "future-governor"

	PoolFileSmoothWeightChangeParams = "lbp-params"
	PoolFileStartTime                = "start-time"
	PoolFileDuration                 = "duration"
	PoolFileTargetPoolWeights        = "target-pool-weights"

	FlagPoolId = "pool-id"
	// Will be parsed to sdk.Int.
	FlagShareAmountOut = "share-amount-out"
	// Will be parsed to []sdk.Coin.
	FlagMaxAmountsIn = "max-amounts-in"

	// Will be parsed to sdk.Int.
	FlagShareAmountIn = "share-amount-in"
	// Will be parsed to []sdk.Coin.
	FlagMinAmountsOut = "min-amounts-out"

	// Will be parsed to uint64.
	FlagSwapRoutePoolIds = "swap-route-pool-ids"
	// Will be parsed to []sdk.Coin.
	FlagSwapRouteAmounts = "swap-route-amounts"
	// Will be parsed to []string.
	FlagSwapRouteDenoms = "swap-route-denoms"
)

Variables

This section is empty.

Functions

func FlagSetCreatePool

func FlagSetCreatePool() *flag.FlagSet

func FlagSetExitPool

func FlagSetExitPool() *flag.FlagSet

func FlagSetJoinPool

func FlagSetJoinPool() *flag.FlagSet

func FlagSetJoinSwapExternAmount

func FlagSetJoinSwapExternAmount() *flag.FlagSet

func FlagSetQuerySwapRoutes

func FlagSetQuerySwapRoutes() *flag.FlagSet

func FlagSetSwapAmountOutRoutes

func FlagSetSwapAmountOutRoutes() *flag.FlagSet

func GetCmdEstimateSwapExactAmountIn

func GetCmdEstimateSwapExactAmountIn() *cobra.Command

GetCmdEstimateSwapExactAmountIn returns estimation of output coin when amount of x token input.

func GetCmdEstimateSwapExactAmountOut

func GetCmdEstimateSwapExactAmountOut() *cobra.Command

GetCmdEstimateSwapExactAmountOut returns estimation of input coin to get exact amount of x token output.

func GetCmdNumPools

func GetCmdNumPools() *cobra.Command

GetCmdNumPools return number of pools available.

func GetCmdPool

func GetCmdPool() *cobra.Command

GetCmdPool returns pool.

func GetCmdPoolParams

func GetCmdPoolParams() *cobra.Command

GetCmdPoolParams return pool params.

func GetCmdPools

func GetCmdPools() *cobra.Command

GetCmdPools return pools.

func GetCmdQueryTotalLiquidity

func GetCmdQueryTotalLiquidity() *cobra.Command

GetCmdQueryTotalLiquidity return total liquidity.

func GetCmdSpotPrice

func GetCmdSpotPrice() *cobra.Command

GetCmdSpotPrice returns spot price

func GetCmdTotalPoolLiquidity

func GetCmdTotalPoolLiquidity() *cobra.Command

GetCmd return total share.

func GetCmdTotalShares

func GetCmdTotalShares() *cobra.Command

GetCmdTotalShares return total share.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module.

func NewBuildCreateBalancerPoolMsg

func NewBuildCreateBalancerPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewBuildExitPoolMsg

func NewBuildExitPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewBuildExitSwapExternAmountOutMsg

func NewBuildExitSwapExternAmountOutMsg(clientCtx client.Context, tokenOutStr, shareInMaxAmtStr string, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewBuildExitSwapShareAmountInMsg

func NewBuildExitSwapShareAmountInMsg(clientCtx client.Context, tokenOutDenom, shareInAmtStr, tokenOutMinAmountStr string, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewBuildJoinPoolMsg

func NewBuildJoinPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewBuildJoinSwapExternAmountInMsg

func NewBuildJoinSwapExternAmountInMsg(clientCtx client.Context, tokenInStr, shareOutMinAmountStr string, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewBuildJoinSwapShareAmountOutMsg

func NewBuildJoinSwapShareAmountOutMsg(clientCtx client.Context, tokenInDenom, tokenInMaxAmtStr, shareOutAmtStr string, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewBuildSwapExactAmountInMsg

func NewBuildSwapExactAmountInMsg(clientCtx client.Context, tokenInStr, tokenOutMinAmtStr string, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewBuildSwapExactAmountOutMsg

func NewBuildSwapExactAmountOutMsg(clientCtx client.Context, tokenOutStr, tokenInMaxAmountStr string, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)

func NewCreatePoolCmd

func NewCreatePoolCmd() *cobra.Command

func NewExitPoolCmd

func NewExitPoolCmd() *cobra.Command

func NewExitSwapExternAmountOut

func NewExitSwapExternAmountOut() *cobra.Command

func NewExitSwapShareAmountIn

func NewExitSwapShareAmountIn() *cobra.Command

func NewJoinPoolCmd

func NewJoinPoolCmd() *cobra.Command

func NewJoinSwapExternAmountIn

func NewJoinSwapExternAmountIn() *cobra.Command

func NewJoinSwapShareAmountOut

func NewJoinSwapShareAmountOut() *cobra.Command

func NewSwapExactAmountInCmd

func NewSwapExactAmountInCmd() *cobra.Command

func NewSwapExactAmountOutCmd

func NewSwapExactAmountOutCmd() *cobra.Command

func NewTxCmd

func NewTxCmd() *cobra.Command

Types

type XCreatePoolInputs

type XCreatePoolInputs createPoolInputs

type XCreatePoolInputsExceptions

type XCreatePoolInputsExceptions struct {
	XCreatePoolInputs
	Other *string // Other won't raise an error
}

Jump to

Keyboard shortcuts

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