cli

package
v25.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 27 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 osmomath.Int.
	FlagShareAmountOut = "share-amount-out"
	// Will be parsed to []sdk.Coin.
	FlagMaxAmountsIn = "max-amounts-in"

	// Will be parsed to osmomath.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"
	FlagScalingFactorControllerAddress = "scaling-factor-controller-address"

	FlagMigrationRecords = "migration-records"

	FlagPoolRecords = "pool-records"
)

Variables

This section is empty.

Functions

func BuildCreatePoolCmd

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

func EstimateSwapExactAmountInParseArgs

func EstimateSwapExactAmountInParseArgs(args []string, fs *flag.FlagSet) (proto.Message, error)

nolint: staticcheck

func EstimateSwapExactAmountOutParseArgs

func EstimateSwapExactAmountOutParseArgs(args []string, fs *flag.FlagSet) (proto.Message, error)

nolint: staticcheck

func FlagSetAdjustScalingFactors

func FlagSetAdjustScalingFactors() *flag.FlagSet

func FlagSetCreatePoolFile

func FlagSetCreatePoolFile() *flag.FlagSet

func FlagSetCreatePoolType

func FlagSetCreatePoolType() *flag.FlagSet

func FlagSetExitPool

func FlagSetExitPool() *flag.FlagSet

func FlagSetJoinPool

func FlagSetJoinPool() *flag.FlagSet

func FlagSetJustPoolId

func FlagSetJustPoolId() *flag.FlagSet

func FlagSetMigratePosition

func FlagSetMigratePosition() *flag.FlagSet

func FlagSetMultihopSwapRoutes

func FlagSetMultihopSwapRoutes() *flag.FlagSet

func GetCFMMConcentratedPoolLinksRequest

func GetCFMMConcentratedPoolLinksRequest() (*osmocli.QueryDescriptor, *types.QueryCFMMConcentratedPoolLinksRequest)

GetConcentratedPoolIdLinkFromCFMMRequest returns all concentrated pool id to cfmm pool id links.

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 GetCmdNumPools

func GetCmdNumPools() *cobra.Command

nolint: staticcheck

func GetCmdPool deprecated

Deprecated: use x/poolmanager's Pool query. nolint: staticcheck

func GetCmdPoolParams

func GetCmdPoolParams() *cobra.Command

GetCmdPoolParams return pool params.

func GetCmdPoolType

func GetCmdPoolType() *cobra.Command

GetCmdPoolType returns pool type given pool id.

func GetCmdQueryPoolsWithFilter

func GetCmdQueryPoolsWithFilter() *cobra.Command

GetCmdQueryPoolsWithFilter returns pool with filter

func GetCmdQueryTotalLiquidity

func GetCmdQueryTotalLiquidity() *cobra.Command

func GetCmdSpotPrice deprecated

func GetCmdSpotPrice() (*osmocli.QueryDescriptor, *types.QuerySpotPriceRequest)

Deprecated: use alternate in x/poolmanager.

func GetCmdTotalPoolLiquidity

func GetCmdTotalPoolLiquidity() *cobra.Command

GetCmdTotalPoolLiquidity returns total liquidity in pool. Deprecated: please use the alternative in x/poolmanager nolint: staticcheck

func GetCmdTotalShares

func GetCmdTotalShares() *cobra.Command

func GetConcentratedPoolIdLinkFromCFMMRequest

func GetConcentratedPoolIdLinkFromCFMMRequest() (*osmocli.QueryDescriptor, *types.QueryConcentratedPoolIdLinkFromCFMMRequest)

GetConcentratedPoolIdLinkFromCFMMRequest returns concentrated pool id that is linked to the given cfmm pool id.

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 NewCmdSubmitCreateCLPoolAndLinkToCFMMProposal

func NewCmdSubmitCreateCLPoolAndLinkToCFMMProposal() *cobra.Command

NewCmdSubmitUpdateMigrationRecordsProposal implements a command handler for update migration records proposal

func NewCmdSubmitReplaceMigrationRecordsProposal

func NewCmdSubmitReplaceMigrationRecordsProposal() *cobra.Command

NewCmdSubmitReplaceMigrationRecordsProposal implements a command handler for replace migration records proposal

func NewCmdSubmitSetScalingFactorControllerProposal

func NewCmdSubmitSetScalingFactorControllerProposal() *cobra.Command

NewCmdSubmitSetScalingFactorControllerProposal implements a command handler for the set scaling factor controller proposal

func NewCmdSubmitUpdateMigrationRecordsProposal

func NewCmdSubmitUpdateMigrationRecordsProposal() *cobra.Command

NewCmdSubmitUpdateMigrationRecordsProposal implements a command handler for update migration records proposal

func NewCreatePoolCmd

func NewCreatePoolCmd() *osmocli.TxCliDesc

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

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() (*osmocli.TxCliDesc, *types.MsgSwapExactAmountIn)

func NewSwapExactAmountOutCmd

func NewSwapExactAmountOutCmd() (*osmocli.TxCliDesc, *types.MsgSwapExactAmountOut)

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