cli

package
v0.0.0-...-7868e01 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 17 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 GetCmdPool

func GetCmdPool() *cobra.Command

GetCmdPool returns pool

func GetCmdPoolAssets

func GetCmdPoolAssets() *cobra.Command

GetCmdPoolAssets return pool-assets for a pool

func GetCmdPoolParams

func GetCmdPoolParams() *cobra.Command

GetCmdPoolParams return pool params

func GetCmdPools

func GetCmdPools() *cobra.Command

GetCmdPools return pools

func GetCmdSpotPrice

func GetCmdSpotPrice() *cobra.Command

GetCmdSpotPrice returns spot price

func GetCmdTotalShare

func GetCmdTotalShare() *cobra.Command

GetCmdTotalShare return total share

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

func NewBuildCreatePoolMsg

func NewBuildCreatePoolMsg(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

This section is empty.

Jump to

Keyboard shortcuts

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