2020-07-06 14:54:25 -07:00
|
|
|
syntax = "proto3";
|
2020-08-11 04:49:45 -07:00
|
|
|
package cosmos.slashing.v1beta1;
|
2020-07-06 14:54:25 -07:00
|
|
|
|
2020-08-11 04:49:45 -07:00
|
|
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
2020-07-06 14:54:25 -07:00
|
|
|
import "gogoproto/gogo.proto";
|
2020-08-14 03:05:35 -07:00
|
|
|
import "google/api/annotations.proto";
|
2020-08-11 04:49:45 -07:00
|
|
|
import "cosmos/slashing/v1beta1/slashing.proto";
|
2020-07-06 14:54:25 -07:00
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/slashing/types";
|
|
|
|
|
|
|
|
// Query provides defines the gRPC querier service
|
|
|
|
service Query {
|
|
|
|
// Params queries the parameters of slashing module
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc Params (QueryParamsRequest) returns (QueryParamsResponse){
|
|
|
|
option (google.api.http).get = "/cosmos/slashing/v1beta1/params";
|
|
|
|
}
|
2020-07-06 14:54:25 -07:00
|
|
|
|
|
|
|
// SigningInfo queries the signing info of given cons address
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc SigningInfo (QuerySigningInfoRequest) returns (QuerySigningInfoResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/slashing/v1beta1/signing_infos/{cons_address}";
|
|
|
|
}
|
2020-07-06 14:54:25 -07:00
|
|
|
|
|
|
|
// SigningInfos queries signing info of all validators
|
2020-08-14 03:05:35 -07:00
|
|
|
rpc SigningInfos (QuerySigningInfosRequest) returns (QuerySigningInfosResponse) {
|
|
|
|
option (google.api.http).get = "/cosmos/slashing/v1beta1/signing_infos";
|
|
|
|
}
|
2020-07-06 14:54:25 -07:00
|
|
|
}
|
|
|
|
|
2020-07-21 07:04:51 -07:00
|
|
|
// QueryParamsRequest is the request type for the Query/Params RPC method
|
2020-07-06 14:54:25 -07:00
|
|
|
message QueryParamsRequest{}
|
|
|
|
|
2020-07-21 07:04:51 -07:00
|
|
|
// QueryParamsResponse is the response type for the Query/Params RPC method
|
2020-07-06 14:54:25 -07:00
|
|
|
message QueryParamsResponse{
|
2020-08-11 04:49:45 -07:00
|
|
|
Params params = 1[(gogoproto.nullable) = false];
|
2020-07-06 14:54:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC method
|
|
|
|
message QuerySigningInfoRequest{
|
|
|
|
// cons_address is the address to query signing info of
|
|
|
|
bytes cons_address = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"];
|
|
|
|
}
|
|
|
|
|
|
|
|
// QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC method
|
|
|
|
message QuerySigningInfoResponse{
|
|
|
|
// val_signing_info is the signing info of requested val cons address
|
2020-08-11 04:49:45 -07:00
|
|
|
ValidatorSigningInfo val_signing_info = 1[(gogoproto.nullable)= false];
|
2020-07-06 14:54:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC method
|
|
|
|
message QuerySigningInfosRequest{
|
2020-08-11 04:49:45 -07:00
|
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 1;
|
2020-07-06 14:54:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC method
|
|
|
|
message QuerySigningInfosResponse{
|
|
|
|
// info is the signing info of all validators
|
2020-08-11 04:49:45 -07:00
|
|
|
repeated cosmos.slashing.v1beta1.ValidatorSigningInfo info = 1[(gogoproto.nullable)= false];
|
|
|
|
cosmos.base.query.v1beta1.PageResponse pagination =2;
|
2020-07-06 14:54:25 -07:00
|
|
|
}
|