Documentation ¶
Index ¶
- Constants
- func FlagSetCreatePool() *flag.FlagSet
- func FlagSetExitPool() *flag.FlagSet
- func FlagSetJoinPool() *flag.FlagSet
- func FlagSetJoinSwapExternAmount() *flag.FlagSet
- func FlagSetQuerySwapRoutes() *flag.FlagSet
- func FlagSetSwapAmountOutRoutes() *flag.FlagSet
- func GetCmdEstimateSwapExactAmountIn() *cobra.Command
- func GetCmdEstimateSwapExactAmountOut() *cobra.Command
- func GetCmdNumPools() *cobra.Command
- func GetCmdPool() *cobra.Command
- func GetCmdPoolParams() *cobra.Command
- func GetCmdPools() *cobra.Command
- func GetCmdQueryTotalLiquidity() *cobra.Command
- func GetCmdSpotPrice() *cobra.Command
- func GetCmdTotalPoolLiquidity() *cobra.Command
- func GetCmdTotalShares() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewBuildCreateBalancerPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)
- func NewBuildExitPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)
- func NewBuildExitSwapExternAmountOutMsg(clientCtx client.Context, tokenOutStr, shareInMaxAmtStr string, txf tx.Factory, ...) (tx.Factory, sdk.Msg, error)
- func NewBuildExitSwapShareAmountInMsg(clientCtx client.Context, ...) (tx.Factory, sdk.Msg, error)
- func NewBuildJoinPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)
- func NewBuildJoinSwapExternAmountInMsg(clientCtx client.Context, tokenInStr, shareOutMinAmountStr string, ...) (tx.Factory, sdk.Msg, error)
- func NewBuildJoinSwapShareAmountOutMsg(clientCtx client.Context, ...) (tx.Factory, sdk.Msg, error)
- func NewBuildSwapExactAmountInMsg(clientCtx client.Context, tokenInStr, tokenOutMinAmtStr string, txf tx.Factory, ...) (tx.Factory, sdk.Msg, error)
- func NewBuildSwapExactAmountOutMsg(clientCtx client.Context, tokenOutStr, tokenInMaxAmountStr string, ...) (tx.Factory, sdk.Msg, error)
- func NewCreatePoolCmd() *cobra.Command
- func NewExitPoolCmd() *cobra.Command
- func NewExitSwapExternAmountOut() *cobra.Command
- func NewExitSwapShareAmountIn() *cobra.Command
- func NewJoinPoolCmd() *cobra.Command
- func NewJoinSwapExternAmountIn() *cobra.Command
- func NewJoinSwapShareAmountOut() *cobra.Command
- func NewSwapExactAmountInCmd() *cobra.Command
- func NewSwapExactAmountOutCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
- type XCreatePoolInputs
- type XCreatePoolInputsExceptions
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" FlagShareAmountOut = "share-amount-out" // Will be parsed to []sdk.Coin. FlagMaxAmountsIn = "max-amounts-in" 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 FlagSetExitPool ¶
func FlagSetJoinPool ¶
func FlagSetQuerySwapRoutes ¶
func GetCmdEstimateSwapExactAmountIn ¶
GetCmdEstimateSwapExactAmountIn returns estimation of output coin when amount of x token input.
func GetCmdEstimateSwapExactAmountOut ¶
GetCmdEstimateSwapExactAmountOut returns estimation of input coin to get exact amount of x token output.
func GetCmdNumPools ¶
GetCmdNumPools return number of pools available.
func GetCmdQueryTotalLiquidity ¶
GetCmdQueryTotalLiquidity return total liquidity.
func GetCmdTotalPoolLiquidity ¶
GetCmd return total share.
func GetCmdTotalShares ¶
GetCmdTotalShares return total share.
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module.
func NewBuildExitPoolMsg ¶
func NewBuildJoinPoolMsg ¶
func NewCreatePoolCmd ¶
func NewExitPoolCmd ¶
func NewJoinPoolCmd ¶
func NewSwapExactAmountInCmd ¶
Types ¶
type XCreatePoolInputs ¶
type XCreatePoolInputs createPoolInputs
type XCreatePoolInputsExceptions ¶
type XCreatePoolInputsExceptions struct { XCreatePoolInputs Other *string // Other won't raise an error }
Click to show internal directories.
Click to hide internal directories.