Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module name changed in tx and query #596

Merged
merged 2 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/comdex_local_setup/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def CreateLiquidityPair(appID, baseCoinDenom, quoteCoinDenom):
print(f"New Liquidity Pair ({baseCoinDenom}, {quoteCoinDenom}) Proposal Submitted ✔️")

def CreateLiquidityPool(appID, pairID, depositCoins):
command = f"comdex tx liquidityV1 create-pool {appID} {pairID} {depositCoins} --from {GENESIS_ACCOUNT_NAME} --chain-id {CHAIN_ID} --gas 5000000 --keyring-backend test -y"
command = f"comdex tx liquidity create-pool {appID} {pairID} {depositCoins} --from {GENESIS_ACCOUNT_NAME} --chain-id {CHAIN_ID} --gas 5000000 --keyring-backend test -y"
output = subprocess.getstatusoutput(command)[1]
output = json.loads(output)
if int(output["code"]) != 0:
Expand Down
9 changes: 4 additions & 5 deletions x/bandoracle/client/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ import (

"github.com/cosmos/cosmos-sdk/client"

"github.com/comdex-official/comdex/x/bandoracle/types"
)

// GetQueryCmd returns the cli query commands for this module.
func GetQueryCmd(queryRoute string) *cobra.Command {
// Group bandoracle queries under a subcommand.
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
Use: "bandoracle",
Short: fmt.Sprintf("Querying commands for the %s module", "bandoracle"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand All @@ -32,8 +31,8 @@ func GetQueryCmd(queryRoute string) *cobra.Command {
// GetTxCmd returns the transaction commands for this module.
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
Use: "bandoracle",
Short: fmt.Sprintf("%s transactions subcommands", "bandoracle"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
2 changes: 1 addition & 1 deletion x/collector/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// GetTxCmd returns the transaction commands for this module.
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Use: "collector",
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
Expand Down
4 changes: 2 additions & 2 deletions x/esm/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
func GetQueryCmd(queryRoute string) *cobra.Command {
// Group esm queries under a subcommand
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
Use: "esm",
Short: fmt.Sprintf("Querying commands for the %s module", "esm"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/esm/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
Use: "esm",
Short: fmt.Sprintf("%s transactions subcommands", "esm"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/liquidity/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
// GetQueryCmd returns the cli query commands for this module.
func GetQueryCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
Use: "liquidity",
Short: fmt.Sprintf("Querying commands for the %s module", "liquidity"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/liquidity/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
// GetTxCmd returns the transaction commands for the module.
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
Use: "liquidity",
Short: fmt.Sprintf("%s transactions subcommands", "liquidity"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
9 changes: 4 additions & 5 deletions x/locker/client/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ import (

"github.com/cosmos/cosmos-sdk/client"

"github.com/comdex-official/comdex/x/locker/types"
)

// GetQueryCmd returns the cli query commands for this module.
func GetQueryCmd() *cobra.Command {
// Group locker queries under a subcommand
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
Use: "locker",
Short: fmt.Sprintf("Querying commands for the %s module", "locker"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down Expand Up @@ -48,8 +47,8 @@ func GetQueryCmd() *cobra.Command {
// GetTxCmd returns the transaction commands for this module.
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
Use: "locker",
Short: fmt.Sprintf("%s transactions subcommands", "locker"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/rewards/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
func GetQueryCmd() *cobra.Command {
// Group rewards queries under a subcommand
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
Use: "rewards",
Short: fmt.Sprintf("Querying commands for the %s module", "rewards"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/rewards/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
// GetTxCmd returns the transaction commands for this module .
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
Use: "rewards",
Short: fmt.Sprintf("%s transactions subcommands", "rewards"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/tokenmint/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
func GetQueryCmd() *cobra.Command {
// Group tokenmint queries under a subcommand
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
Use: "tokenmint",
Short: fmt.Sprintf("Querying commands for the %s module", "tokenmint"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/tokenmint/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
// GetTxCmd returns the transaction commands for this module.
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
Use: "tokenmint",
Short: fmt.Sprintf("%s transactions subcommands", "tokenmint"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/vault/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

func GetQueryCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
Use: "vault",
Short: fmt.Sprintf("Querying commands for the %s module", "vault"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down
4 changes: 2 additions & 2 deletions x/vault/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
// GetTxCmd returns the transaction commands for this module .
func GetTxCmd() *cobra.Command {
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("%s transactions subcommands", types.ModuleName),
Use: "vault",
Short: fmt.Sprintf("%s transactions subcommands", "vault"),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
Expand Down