Documentation ¶
Index ¶
- Constants
- func EstimateSwapExactAmountInParseArgs(args []string, fs *flag.FlagSet) (proto.Message, error)
- func EstimateSwapExactAmountOutParseArgs(args []string, fs *flag.FlagSet) (proto.Message, error)
- func FlagSetCreatePool() *flag.FlagSet
- func FlagSetMultihopSwapRoutes() *flag.FlagSet
- func FlagSetQuerySwapRoutes() *flag.FlagSet
- func FlagSetSwapAmountOutRoutes() *flag.FlagSet
- func GetCmdEstimateSwapExactAmountIn() (*osmocli.QueryDescriptor, *queryproto.EstimateSwapExactAmountInRequest)
- func GetCmdEstimateSwapExactAmountOut() (*osmocli.QueryDescriptor, *queryproto.EstimateSwapExactAmountOutRequest)
- func GetCmdNumPools() (*osmocli.QueryDescriptor, *queryproto.NumPoolsRequest)
- func GetQueryCmd() *cobra.Command
- func NewBuildCreateBalancerPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)
- func NewBuildCreateStableswapPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (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, args []string, fs *flag.FlagSet) (sdk.Msg, error)
- func NewCreatePoolCmd() *cobra.Command
- func NewSwapExactAmountInCmd() (*osmocli.TxCliDesc, *types.MsgSwapExactAmountIn)
- func NewSwapExactAmountOutCmd() (*osmocli.TxCliDesc, *types.MsgSwapExactAmountOut)
- func NewTxCmd() *cobra.Command
- func ParseCoinsNoSort(coinsStr string) (sdk.Coins, error)
- type XCreatePoolInputs
- type XCreatePoolInputsExceptions
- type XCreateStableswapPoolInputs
- type XCreateStableswapPoolInputsExceptions
Constants ¶
View Source
const ( // 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" // Will be parsed to string. FlagPoolFile = "pool-file" // Will be parsed to uint64. FlagSwapRoutePoolIds = "swap-route-pool-ids" // Will be parsed to []string. FlagSwapRouteDenoms = "swap-route-denoms" )
Variables ¶
This section is empty.
Functions ¶
func FlagSetCreatePool ¶
func FlagSetQuerySwapRoutes ¶
func GetCmdEstimateSwapExactAmountIn ¶
func GetCmdEstimateSwapExactAmountIn() (*osmocli.QueryDescriptor, *queryproto.EstimateSwapExactAmountInRequest)
GetCmdEstimateSwapExactAmountIn returns estimation of output coin when amount of x token input.
func GetCmdEstimateSwapExactAmountOut ¶
func GetCmdEstimateSwapExactAmountOut() (*osmocli.QueryDescriptor, *queryproto.EstimateSwapExactAmountOutRequest)
GetCmdEstimateSwapExactAmountOut returns estimation of input coin to get exact amount of x token output.
func GetCmdNumPools ¶
func GetCmdNumPools() (*osmocli.QueryDescriptor, *queryproto.NumPoolsRequest)
GetCmdNumPools return number of pools available.
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module.
func NewBuildCreateStableswapPoolMsg ¶
func NewBuildCreateStableswapPoolMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)
Apologies to whoever has to touch this next, this code is horrendous
func NewCreatePoolCmd ¶
func NewSwapExactAmountInCmd ¶
func NewSwapExactAmountInCmd() (*osmocli.TxCliDesc, *types.MsgSwapExactAmountIn)
func NewSwapExactAmountOutCmd ¶
func NewSwapExactAmountOutCmd() (*osmocli.TxCliDesc, *types.MsgSwapExactAmountOut)
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 }
Click to show internal directories.
Click to hide internal directories.