-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/admin module sdk47 NTRN-70 #2
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
Changes from 24 commits
ac547ce
b3d470c
db2b3e8
fd58663
77591ac
9a074f6
97237f8
c46b4db
26ae10e
2057689
0015986
5c3c1b7
b02d1ad
97f3b41
bdbc7f4
5a197dc
3fa54fa
333a782
1540be1
53e6d9f
a441f84
cc97b55
8a8443b
252c643
9ccb75c
66d9c1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,10 @@ | ||
| package cli | ||
|
|
||
| import ( | ||
| "github.com/spf13/cobra" | ||
| "strconv" | ||
|
|
||
| "github.com/spf13/cobra" | ||
|
|
||
| "github.com/cosmos/admin-module/x/adminmodule/types" | ||
| "github.com/cosmos/cosmos-sdk/client" | ||
| "github.com/cosmos/cosmos-sdk/client/flags" | ||
|
|
@@ -40,3 +41,33 @@ func CmdArchivedProposals() *cobra.Command { | |
|
|
||
| return cmd | ||
| } | ||
|
|
||
| func CmdArchivedProposalsLegacy() *cobra.Command { | ||
| cmd := &cobra.Command{ | ||
| Use: "archivedproposalslegacy", | ||
| Short: "Query archived proposals legacy", | ||
| Args: cobra.ExactArgs(0), | ||
| RunE: func(cmd *cobra.Command, args []string) error { | ||
|
|
||
| clientCtx, err := client.GetClientTxContext(cmd) | ||
| if err != nil { | ||
| return err | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add more info to the errors pls
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Literally any There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. let's do our best to not increase this chaos. I'd like our code to be well-written. I don't ask you to rewrite all |
||
| } | ||
|
|
||
| queryClient := types.NewQueryClient(clientCtx) | ||
|
|
||
| params := &types.QueryArchivedProposalsLegacyRequest{} | ||
|
|
||
| res, err := queryClient.ArchivedProposalsLegacy(cmd.Context(), params) | ||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
| return clientCtx.PrintProto(res) | ||
| }, | ||
| } | ||
|
|
||
| flags.AddQueryFlagsToCmd(cmd) | ||
|
|
||
| return cmd | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.