@@ -5,10 +5,9 @@ import (
55
66 sdkclient "github.com/cosmos/cosmos-sdk/client"
77
8+ cflags "pkg.akt.dev/go/cli/flags"
89 "pkg.akt.dev/go/node/deployment/v1"
910 dvbeta "pkg.akt.dev/go/node/deployment/v1beta4"
10-
11- cflags "pkg.akt.dev/go/cli/flags"
1211)
1312
1413// GetQueryDeploymentCmds returns the query commands for the deployment module
@@ -24,6 +23,7 @@ func GetQueryDeploymentCmds() *cobra.Command {
2423 GetQueryDeploymentsCmd (),
2524 GetQueryDeploymentCmd (),
2625 GetQueryDeploymentGroupCmds (),
26+ GetQueryDeploymentParamsCmd (),
2727 )
2828
2929 return cmd
@@ -146,3 +146,28 @@ func GetQueryDeploymentGroupCmd() *cobra.Command {
146146
147147 return cmd
148148}
149+
150+ func GetQueryDeploymentParamsCmd () * cobra.Command {
151+ cmd := & cobra.Command {
152+ Use : "params" ,
153+ Short : "Query the current deployment parameters" ,
154+ PersistentPreRunE : QueryPersistentPreRunE ,
155+ RunE : func (cmd * cobra.Command , _ []string ) error {
156+ ctx := cmd .Context ()
157+ cl := MustLightClientFromContext (ctx )
158+
159+ req := & dvbeta.QueryParamsRequest {}
160+
161+ res , err := cl .Query ().Deployment ().Params (ctx , req )
162+ if err != nil {
163+ return err
164+ }
165+
166+ return cl .ClientContext ().PrintProto (res )
167+ },
168+ }
169+
170+ cflags .AddQueryFlagsToCmd (cmd )
171+
172+ return cmd
173+ }
0 commit comments