26 lines
706 B
Protocol Buffer
26 lines
706 B
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.params;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "cosmos/params/params.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/params/types/proposal";
|
|
|
|
// Query creates service with Parameters as rpc
|
|
service Query{
|
|
// Params queries all parameters of the params module
|
|
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {}
|
|
}
|
|
|
|
// QueryParamsRequest is request type for the Query/Params RPC method
|
|
message QueryParamsRequest{
|
|
string subspace = 1;
|
|
|
|
string key = 2;
|
|
}
|
|
|
|
// QueryParamsResponse is response type for the Query/Params RPC method
|
|
message QueryParamsResponse{
|
|
cosmos.params.ParamChange params = 1 [(gogoproto.nullable) = false];
|
|
}
|