Skip to content

Commit

Permalink
removed unneeded ssi params query rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabghose997 committed Sep 1, 2022
1 parent 0556fd3 commit 2e6eae3
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 611 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Following are the prerequisites that needs to be installed:
```sh
git clone https://github.com/hypersign-protocol/hid-node.git
cd hid-node
make build
make install
```

- Move the build to GOPATH:
Expand Down
46 changes: 0 additions & 46 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20816,42 +20816,6 @@ paths:
type: string
tags:
- Query
/hypersignprotocol/hidnode/ssi/params:
get:
summary: Parameters queries the parameters of the module.
operationId: HypersignprotocolHidnodeSsiParams
responses:
'200':
description: A successful response.
schema:
type: object
properties:
params:
description: params holds all the parameters of this module.
type: object
description: >-
QueryParamsResponse is response type for the Query/Params RPC
method.
default:
description: An unexpected error response.
schema:
type: object
properties:
code:
type: integer
format: int32
message:
type: string
details:
type: array
items:
type: object
properties:
'@type':
type: string
additionalProperties: {}
tags:
- Query
/ibc/apps/transfer/v1/denom_traces:
get:
summary: DenomTraces queries all denomination traces.
Expand Down Expand Up @@ -47629,9 +47593,6 @@ definitions:
properties:
updateId:
type: string
hypersignprotocol.hidnode.ssi.Params:
type: object
description: Params defines the parameters for the module.
hypersignprotocol.hidnode.ssi.QueryCredentialResponse:
type: object
properties:
Expand Down Expand Up @@ -47846,13 +47807,6 @@ definitions:
type: string
proofValue:
type: string
hypersignprotocol.hidnode.ssi.QueryParamsResponse:
type: object
properties:
params:
description: params holds all the parameters of this module.
type: object
description: QueryParamsResponse is response type for the Query/Params RPC method.
hypersignprotocol.hidnode.ssi.QuerySchemaParamResponse:
type: object
properties:
Expand Down
1 change: 0 additions & 1 deletion proto/ssi/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ syntax = "proto3";
package hypersignprotocol.hidnode.ssi;

import "gogoproto/gogo.proto";
import "ssi/v1/params.proto";
// this line is used by starport scaffolding # genesis/proto/import

option go_package = "github.com/hypersign-protocol/hid-node/x/ssi/types";
Expand Down
12 changes: 0 additions & 12 deletions proto/ssi/v1/params.proto

This file was deleted.

15 changes: 0 additions & 15 deletions proto/ssi/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ package hypersignprotocol.hidnode.ssi;
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos/base/query/v1beta1/pagination.proto";
import "ssi/v1/params.proto";
import "ssi/v1/schema.proto";
import "ssi/v1/did.proto";
import "ssi/v1/tx.proto";
Expand All @@ -16,11 +15,6 @@ option go_package = "github.com/hypersign-protocol/hid-node/x/ssi/types";

// Query defines the gRPC querier service.
service Query {
// Parameters queries the parameters of the module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/hypersignprotocol/hidnode/ssi/params";
}

// Get the Schema for a specified Schema Id
rpc GetSchema(QueryGetSchemaRequest) returns (QueryGetSchemaResponse) {
option (google.api.http).get = "/hypersign-protocol/hidnode/ssi/schema/{schemaId}";
Expand Down Expand Up @@ -62,15 +56,6 @@ message QueryCredentialResponse {
Credential credStatus = 1;
}

// QueryParamsRequest is request type for the Query/Params RPC method.
message QueryParamsRequest {}

// QueryParamsResponse is response type for the Query/Params RPC method.
message QueryParamsResponse {
// params holds all the parameters of this module.
Params params = 1 [(gogoproto.nullable) = false];
}

message QueryGetSchemaRequest {
string schemaId = 1;
}
Expand Down
1 change: 0 additions & 1 deletion x/ssi/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func GetQueryCmd(queryRoute string) *cobra.Command {
RunE: client.ValidateCmd,
}

cmd.AddCommand(CmdQueryParams())
cmd.AddCommand(CmdGetSchema())
cmd.AddCommand(CmdResolveDID())
cmd.AddCommand(CmdGetCredentialStatus())
Expand Down
34 changes: 0 additions & 34 deletions x/ssi/client/cli/query_params.go

This file was deleted.

3 changes: 1 addition & 2 deletions x/ssi/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"fmt"

"github.com/cosmos/cosmos-sdk/client"
"github.com/spf13/cobra"
// "github.com/cosmos/cosmos-sdk/client/flags"
"github.com/hypersign-protocol/hid-node/x/ssi/types"
"github.com/spf13/cobra"
)

// GetTxCmd returns the transaction commands for this module
Expand Down
19 changes: 0 additions & 19 deletions x/ssi/keeper/grpc_query_params.go

This file was deleted.

21 changes: 10 additions & 11 deletions x/ssi/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e6eae3

Please sign in to comment.