From 5b0d3dc805e9196e9d1522c8b7cea1d307463b33 Mon Sep 17 00:00:00 2001 From: jelysn Date: Wed, 13 Sep 2023 20:23:08 +0800 Subject: [PATCH] add changes on config.yml while testing price-feeder --- config.yml | 1 + x/amm/client/cli/query_pool.go | 5 +++-- x/amm/client/cli/tx_create_pool.go | 7 ++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config.yml b/config.yml index a7e4a4de6..84ec8b659 100644 --- a/config.yml +++ b/config.yml @@ -4,6 +4,7 @@ accounts: coins: - 9000000000000000uelys - 100000000ueden + mnemonic: olympic slide park figure frost benefit deer reform fly pull price airport submit monitor silk insect uphold convince pupil project ignore roof warfare slight - name: seed coins: - 9000000000000000uelys diff --git a/x/amm/client/cli/query_pool.go b/x/amm/client/cli/query_pool.go index f947468ff..65bf04d88 100644 --- a/x/amm/client/cli/query_pool.go +++ b/x/amm/client/cli/query_pool.go @@ -12,8 +12,9 @@ import ( func CmdListPool() *cobra.Command { cmd := &cobra.Command{ - Use: "list-pool", - Short: "list all pool", + Use: "list-pool", + Short: "list all pool", + Example: "elysd query amm list-pool", RunE: func(cmd *cobra.Command, args []string) error { clientCtx := client.GetClientContextFromCmd(cmd) diff --git a/x/amm/client/cli/tx_create_pool.go b/x/amm/client/cli/tx_create_pool.go index a9fa8380f..8348b4df3 100644 --- a/x/amm/client/cli/tx_create_pool.go +++ b/x/amm/client/cli/tx_create_pool.go @@ -16,9 +16,10 @@ var _ = strconv.Itoa(0) func CmdCreatePool() *cobra.Command { cmd := &cobra.Command{ - Use: "create-pool [weights] [initial-deposit] [swap-fee] [exit-fee]", - Short: "create a new pool and provide the liquidity to it", - Args: cobra.ExactArgs(6), + Use: "create-pool [weights] [initial-deposit] [swap-fee] [exit-fee]", + Short: "create a new pool and provide the liquidity to it", + Example: `elysd tx amm create-pool 100ueden,100uelys 1000000ueden,1000000uelys 0.00 0.00 --from=treasury --keyring-backend=test --chain-id=elystestnet-1 --yes --gas=1000000`, + Args: cobra.ExactArgs(4), RunE: func(cmd *cobra.Command, args []string) (err error) { argWeights, err := sdk.ParseCoinsNormalized(args[0]) if err != nil {