Documentation ¶
Index ¶
- Constants
- func BuildCreatePoolCmd(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)
- func EstimateSwapExactAmountInParseArgs(args []string, fs *flag.FlagSet) (proto.Message, error)
- func EstimateSwapExactAmountOutParseArgs(args []string, fs *flag.FlagSet) (proto.Message, error)
- func FlagSetAdjustScalingFactors() *flag.FlagSet
- func FlagSetCreatePoolFile() *flag.FlagSet
- func FlagSetCreatePoolType() *flag.FlagSet
- func FlagSetExitPool() *flag.FlagSet
- func FlagSetJoinPool() *flag.FlagSet
- func FlagSetJustPoolId() *flag.FlagSet
- func FlagSetMigratePosition() *flag.FlagSet
- func FlagSetMultihopSwapRoutes() *flag.FlagSet
- func GetCmdEstimateSwapExactAmountIn() (*osmocli.QueryDescriptor, *types.QuerySwapExactAmountInRequest)deprecated
- func GetCmdEstimateSwapExactAmountOut() (*osmocli.QueryDescriptor, *types.QuerySwapExactAmountOutRequest)deprecated
- func GetCmdNumPools() *cobra.Command
- func GetCmdPool() (*osmocli.QueryDescriptor, *types.QueryPoolRequest)deprecated
- func GetCmdPoolParams() *cobra.Command
- func GetCmdPoolType() *cobra.Command
- func GetCmdPools() (*osmocli.QueryDescriptor, *types.QueryPoolsRequest)
- func GetCmdQueryPoolsWithFilter() *cobra.Command
- func GetCmdQueryTotalLiquidity() *cobra.Command
- func GetCmdSpotPrice() (*osmocli.QueryDescriptor, *types.QuerySpotPriceRequest)deprecated
- func GetCmdTotalPoolLiquidity() *cobra.Command
- func GetCmdTotalShares() *cobra.Command
- func GetConcentratedPoolIdLinkFromCFMMRequest() (*osmocli.QueryDescriptor, *types.QueryConcentratedPoolIdLinkFromCFMMRequest)
- func GetQueryCmd() *cobra.Command
- func NewBuildCreateBalancerPoolMsg(clientCtx client.Context, fs *flag.FlagSet) (sdk.Msg, error)
- func NewBuildCreateStableswapPoolMsg(clientCtx client.Context, fs *flag.FlagSet) (sdk.Msg, error)
- func NewBuildSwapExactAmountOutMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)
- func NewCmdSubmitReplaceMigrationRecordsProposal() *cobra.Command
- func NewCmdSubmitUpdateMigrationRecordsProposal() *cobra.Command
- func NewCreatePoolCmd() *osmocli.TxCliDesc
- func NewExitPoolCmd() (*osmocli.TxCliDesc, *types.MsgExitPool)
- func NewExitSwapExternAmountOut() (*osmocli.TxCliDesc, *types.MsgExitSwapExternAmountOut)
- func NewExitSwapShareAmountIn() (*osmocli.TxCliDesc, *types.MsgExitSwapShareAmountIn)
- func NewJoinPoolCmd() (*osmocli.TxCliDesc, *types.MsgJoinPool)
- func NewJoinSwapExternAmountIn() (*osmocli.TxCliDesc, *types.MsgJoinSwapExternAmountIn)
- func NewJoinSwapShareAmountOut() (*osmocli.TxCliDesc, *types.MsgJoinSwapShareAmountOut)
- func NewStableSwapAdjustScalingFactorsCmd() *cobra.Command
- func NewStableSwapAdjustScalingFactorsMsg(clientCtx client.Context, _args []string, fs *flag.FlagSet) (sdk.Msg, error)
- 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 ¶
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" 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" // FlagScalingFactors represents the flag name for the scaling factors. FlagScalingFactors = "scaling-factors" FlagMigrationRecords = "migration-records" )
Variables ¶
This section is empty.
Functions ¶
func BuildCreatePoolCmd ¶
func EstimateSwapExactAmountInParseArgs ¶
nolint: staticcheck
func EstimateSwapExactAmountOutParseArgs ¶
nolint: staticcheck
func FlagSetCreatePoolFile ¶
func FlagSetCreatePoolType ¶
func FlagSetExitPool ¶
func FlagSetJoinPool ¶
func FlagSetJustPoolId ¶
func FlagSetMigratePosition ¶
func GetCmdEstimateSwapExactAmountIn
deprecated
func GetCmdEstimateSwapExactAmountIn() (*osmocli.QueryDescriptor, *types.QuerySwapExactAmountInRequest)
Deprecated: use alternate in x/poolmanager.
func GetCmdEstimateSwapExactAmountOut
deprecated
func GetCmdEstimateSwapExactAmountOut() (*osmocli.QueryDescriptor, *types.QuerySwapExactAmountOutRequest)
Deprecated: use alternate in x/poolmanager.
func GetCmdPool
deprecated
func GetCmdPool() (*osmocli.QueryDescriptor, *types.QueryPoolRequest)
Deprecated: use x/poolmanager's Pool query. nolint: staticcheck
func GetCmdPoolType ¶
GetCmdPoolType returns pool type given pool id.
func GetCmdPools ¶
func GetCmdPools() (*osmocli.QueryDescriptor, *types.QueryPoolsRequest)
func GetCmdQueryPoolsWithFilter ¶
GetCmdQueryPoolsWithFilter returns pool with filter
func GetCmdSpotPrice
deprecated
func GetCmdSpotPrice() (*osmocli.QueryDescriptor, *types.QuerySpotPriceRequest)
Deprecated: use alternate in x/poolmanager.
func GetCmdTotalPoolLiquidity ¶
GetCmdTotalPoolLiquidity returns total liquidity in pool. Deprecated: please use the alternative in x/poolmanager nolint: staticcheck
func GetCmdTotalShares ¶
func GetConcentratedPoolIdLinkFromCFMMRequest ¶
func GetConcentratedPoolIdLinkFromCFMMRequest() (*osmocli.QueryDescriptor, *types.QueryConcentratedPoolIdLinkFromCFMMRequest)
GetConcentratedPoolIdLinkFromCFMMRequest returns concentrated pool id that is linked to the given cfmm pool id.
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module.
func NewBuildCreateStableswapPoolMsg ¶
Apologies to whoever has to touch this next, this code is horrendous
func NewCmdSubmitReplaceMigrationRecordsProposal ¶
NewCmdSubmitReplaceMigrationRecordsProposal implements a command handler for replace migration records proposal
func NewCmdSubmitUpdateMigrationRecordsProposal ¶
NewCmdSubmitUpdateMigrationRecordsProposal implements a command handler for update migration records proposal
func NewCreatePoolCmd ¶
func NewExitPoolCmd ¶
func NewExitPoolCmd() (*osmocli.TxCliDesc, *types.MsgExitPool)
func NewExitSwapExternAmountOut ¶
func NewExitSwapExternAmountOut() (*osmocli.TxCliDesc, *types.MsgExitSwapExternAmountOut)
func NewExitSwapShareAmountIn ¶
func NewExitSwapShareAmountIn() (*osmocli.TxCliDesc, *types.MsgExitSwapShareAmountIn)
func NewJoinPoolCmd ¶
func NewJoinPoolCmd() (*osmocli.TxCliDesc, *types.MsgJoinPool)
func NewJoinSwapExternAmountIn ¶
func NewJoinSwapExternAmountIn() (*osmocli.TxCliDesc, *types.MsgJoinSwapExternAmountIn)
func NewJoinSwapShareAmountOut ¶
func NewJoinSwapShareAmountOut() (*osmocli.TxCliDesc, *types.MsgJoinSwapShareAmountOut)
func NewStableSwapAdjustScalingFactorsCmd ¶
TODO: Change these flags to args. Required flags don't make that much sense.
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 }