-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #279 from comdex-official/refactor-code
refactor token mint module
- Loading branch information
Showing
14 changed files
with
64 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1 @@ | ||
package cli | ||
|
||
// import ( | ||
// "context" | ||
|
||
// "github.com/cosmos/cosmos-sdk/client" | ||
// "github.com/cosmos/cosmos-sdk/client/flags" | ||
// "github.com/spf13/cobra" | ||
// "github.com/comdex-official/comdex/x/tokenmint/types" | ||
// ) | ||
|
||
// func CmdQueryParams() *cobra.Command { | ||
// cmd := &cobra.Command{ | ||
// Use: "params", | ||
// Short: "shows the parameters of the module", | ||
// Args: cobra.NoArgs, | ||
// RunE: func(cmd *cobra.Command, args []string) error { | ||
// clientCtx := client.GetClientContextFromCmd(cmd) | ||
|
||
// queryClient := types.NewQueryServiceClient(clientCtx) | ||
|
||
// res, err := queryClient.Params(context.Background(), &types.QueryParamsRequest{}) | ||
// if err != nil { | ||
// return err | ||
// } | ||
|
||
// return clientCtx.PrintProto(res) | ||
// }, | ||
// } | ||
|
||
// flags.AddQueryFlagsToCmd(cmd) | ||
|
||
// return cmd | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1 @@ | ||
package keeper | ||
|
||
// import ( | ||
// "context" | ||
|
||
// sdk "github.com/cosmos/cosmos-sdk/types" | ||
// "github.com/comdex-official/comdex/x/tokenmint/types" | ||
// "google.golang.org/grpc/codes" | ||
// "google.golang.org/grpc/status" | ||
// ) | ||
|
||
// func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error) { | ||
// if req == nil { | ||
// return nil, status.Error(codes.InvalidArgument, "invalid request") | ||
// } | ||
// ctx := sdk.UnwrapSDKContext(c) | ||
|
||
// return &types.QueryParamsResponse{Params: k.GetParams(ctx)}, nil | ||
// } |
Oops, something went wrong.