cli

package
v13.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

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

	// 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"
	// FlagScalingFactors represents the flag name for the scaling factors.
	FlagScalingFactors = "scaling-factors"
)

Variables

This section is empty.

Functions

func FlagSetAdjustScalingFactors

func FlagSetAdjustScalingFactors() *flag.FlagSet

func FlagSetCreatePool

func FlagSetCreatePool() *flag.FlagSet

func FlagSetExitPool

func FlagSetExitPool() *flag.FlagSet

func FlagSetJoinPool

func FlagSetJoinPool() *flag.FlagSet

func FlagSetJustPoolId added in v13.1.1

func FlagSetJustPoolId() *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

func GetCmdPool

func GetCmdPool() *cobra.Command

func GetCmdPoolParams

func GetCmdPoolParams() *cobra.Command

GetCmdPoolParams return pool params.

func GetCmdPoolType

func GetCmdPoolType() *cobra.Command

GetCmdPoolType returns pool type given pool id.

func GetCmdPools

func GetCmdPools() *cobra.Command

func GetCmdQueryPoolsWithFilter

func GetCmdQueryPoolsWithFilter() *cobra.Command

GetCmdQueryPoolsWithFilter returns pool with filter

func GetCmdQueryTotalLiquidity

func GetCmdQueryTotalLiquidity() *cobra.Command

func GetCmdSpotPrice

func GetCmdSpotPrice() *cobra.Command

func GetCmdTotalPoolLiquidity

func GetCmdTotalPoolLiquidity() *cobra.Command

func GetCmdTotalShares

func GetCmdTotalShares() *cobra.Command

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module.

func NewBuildCreateBalancerPoolMsg

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

func NewBuildCreateStableswapPoolMsg

func NewBuildCreateStableswapPoolMsg(clientCtx client.Context, fs *flag.FlagSet) (sdk.Msg, error)

Apologies to whoever has to touch this next, this code is horrendous

func NewBuildSwapExactAmountOutMsg

func NewBuildSwapExactAmountOutMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (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 NewStableSwapAdjustScalingFactorsCmd

func NewStableSwapAdjustScalingFactorsCmd() *cobra.Command

TODO: Change these flags to args. Required flags don't make that much sense.

func NewStableSwapAdjustScalingFactorsMsg

func NewStableSwapAdjustScalingFactorsMsg(clientCtx client.Context, _args []string, fs *flag.FlagSet) (sdk.Msg, error)

func NewSwapExactAmountInCmd

func NewSwapExactAmountInCmd() *cobra.Command

func NewSwapExactAmountOutCmd

func NewSwapExactAmountOutCmd() *cobra.Command

func NewTxCmd

func NewTxCmd() *cobra.Command

func ParseCoinsNoSort

func ParseCoinsNoSort(coinsStr string) (sdk.Coins, error)

ParseCoinsNoSort parses coins from coinsStr but does not sort them. Returns error if parsing fails.

Types

type XCreatePoolInputs

type XCreatePoolInputs createBalancerPoolInputs

TODO: move these to exported types within an internal package

type XCreatePoolInputsExceptions

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

type XCreateStableswapPoolInputs

type XCreateStableswapPoolInputs createStableswapPoolInputs

type XCreateStableswapPoolInputsExceptions

type XCreateStableswapPoolInputsExceptions struct {
	XCreateStableswapPoolInputs
	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