Jürgen Eckel 41b5bf545f
Eckelj/distributions query (#491)
* added distributions query
* added test cases

---------

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
Co-authored-by: Julian Strobl <jmastr@mailbox.org>
2024-11-28 17:15:16 +01:00

42 lines
954 B
Go

package cli
import (
"fmt"
"github.com/spf13/cobra"
"github.com/cosmos/cosmos-sdk/client"
"github.com/planetmint/planetmint-go/x/dao/types"
)
// GetQueryCmd returns the cli query commands for this module
func GetQueryCmd(_ string) *cobra.Command {
// Group dao queries under a subcommand
cmd := &cobra.Command{
Use: types.ModuleName,
Short: fmt.Sprintf("Querying commands for the %s module", types.ModuleName),
DisableFlagParsing: true,
SuggestionsMinimumDistance: 2,
RunE: client.ValidateCmd,
}
cmd.AddCommand(
GetCmdChallenge(),
GetCmdChallenges(),
GetCmdDistribution(),
GetCmdDistributions(),
GetCmdListRedeemClaim(),
GetCmdMintRequests(),
GetCmdQueryParams(),
GetCmdRedeemClaimByLiquidTxHash(),
GetCmdReissuance(),
GetCmdReissuances(),
GetCmdShowRedeemClaim(),
)
// this line is used by starport scaffolding # 1
return cmd
}