github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/slashing/v1beta1/query.proto (about) 1 syntax = "proto3"; 2 package cosmos.slashing.v1beta1; 3 4 import "cosmos/base/query/v1beta1/pagination.proto"; 5 import "gogoproto/gogo.proto"; 6 import "google/api/annotations.proto"; 7 import "cosmos/slashing/v1beta1/slashing.proto"; 8 9 option go_package = "github.com/Finschia/finschia-sdk/x/slashing/types"; 10 11 // Query provides defines the gRPC querier service 12 service Query { 13 // Params queries the parameters of slashing module 14 rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { 15 option (google.api.http).get = "/cosmos/slashing/v1beta1/params"; 16 } 17 18 // SigningInfo queries the signing info of given cons address 19 rpc SigningInfo(QuerySigningInfoRequest) returns (QuerySigningInfoResponse) { 20 option (google.api.http).get = "/cosmos/slashing/v1beta1/signing_infos/{cons_address}"; 21 } 22 23 // SigningInfos queries signing info of all validators 24 rpc SigningInfos(QuerySigningInfosRequest) returns (QuerySigningInfosResponse) { 25 option (google.api.http).get = "/cosmos/slashing/v1beta1/signing_infos"; 26 } 27 } 28 29 // QueryParamsRequest is the request type for the Query/Params RPC method 30 message QueryParamsRequest {} 31 32 // QueryParamsResponse is the response type for the Query/Params RPC method 33 message QueryParamsResponse { 34 Params params = 1 [(gogoproto.nullable) = false]; 35 } 36 37 // QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC 38 // method 39 message QuerySigningInfoRequest { 40 // cons_address is the address to query signing info of 41 string cons_address = 1; 42 } 43 44 // QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC 45 // method 46 message QuerySigningInfoResponse { 47 // val_signing_info is the signing info of requested val cons address 48 ValidatorSigningInfo val_signing_info = 1 [(gogoproto.nullable) = false]; 49 } 50 51 // QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC 52 // method 53 message QuerySigningInfosRequest { 54 cosmos.base.query.v1beta1.PageRequest pagination = 1; 55 } 56 57 // QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC 58 // method 59 message QuerySigningInfosResponse { 60 // info is the signing info of all validators 61 repeated cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1 [(gogoproto.nullable) = false]; 62 cosmos.base.query.v1beta1.PageResponse pagination = 2; 63 }