github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/evidence/v1beta1/query.proto (about) 1 syntax = "proto3"; 2 package cosmos.evidence.v1beta1; 3 4 import "cosmos/base/query/v1beta1/pagination.proto"; 5 import "gogoproto/gogo.proto"; 6 import "google/protobuf/any.proto"; 7 import "google/api/annotations.proto"; 8 9 option go_package = "github.com/Finschia/finschia-sdk/x/evidence/types"; 10 11 // Query defines the gRPC querier service. 12 service Query { 13 // Evidence queries evidence based on evidence hash. 14 rpc Evidence(QueryEvidenceRequest) returns (QueryEvidenceResponse) { 15 option (google.api.http).get = "/cosmos/evidence/v1beta1/evidence/{evidence_hash}"; 16 } 17 18 // AllEvidence queries all evidence. 19 rpc AllEvidence(QueryAllEvidenceRequest) returns (QueryAllEvidenceResponse) { 20 option (google.api.http).get = "/cosmos/evidence/v1beta1/evidence"; 21 } 22 } 23 24 // QueryEvidenceRequest is the request type for the Query/Evidence RPC method. 25 message QueryEvidenceRequest { 26 // evidence_hash defines the hash of the requested evidence. 27 bytes evidence_hash = 1 [(gogoproto.casttype) = "github.com/Finschia/ostracon/libs/bytes.HexBytes"]; 28 } 29 30 // QueryEvidenceResponse is the response type for the Query/Evidence RPC method. 31 message QueryEvidenceResponse { 32 // evidence returns the requested evidence. 33 google.protobuf.Any evidence = 1; 34 } 35 36 // QueryEvidenceRequest is the request type for the Query/AllEvidence RPC 37 // method. 38 message QueryAllEvidenceRequest { 39 // pagination defines an optional pagination for the request. 40 cosmos.base.query.v1beta1.PageRequest pagination = 1; 41 } 42 43 // QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC 44 // method. 45 message QueryAllEvidenceResponse { 46 // evidence returns all evidences. 47 repeated google.protobuf.Any evidence = 1; 48 49 // pagination defines the pagination in the response. 50 cosmos.base.query.v1beta1.PageResponse pagination = 2; 51 }