cosmos-sdk/proto/cosmos/mint/query.proto

44 lines
1.6 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package cosmos.mint;
import "gogoproto/gogo.proto";
import "cosmos/mint/mint.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/mint/types";
// Query provides defines the gRPC querier service
service Query {
// Params returns the total set of minting parameters.
rpc Params (QueryParamsRequest) returns (QueryParamsResponse) {}
// Inflation returns the current minting inflation value.
rpc Inflation (QueryInflationRequest) returns (QueryInflationResponse) {}
// AnnualProvisions current minting annual provisions value.
rpc AnnualProvisions (QueryAnnualProvisionsRequest) returns (QueryAnnualProvisionsResponse) {}
}
// QueryParamsRequest is the request type for the Query/Params RPC method
message QueryParamsRequest { }
// QueryParamsResponse is the response type for the Query/Params RPC method
message QueryParamsResponse {
Params params = 1 [(gogoproto.nullable) = false];
}
// QueryInflationRequest is the request type for the Query/Inflation RPC method
message QueryInflationRequest { }
// QueryInflationResponse is the response type for the Query/Inflation RPC method
message QueryInflationResponse {
bytes inflation = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
}
// QueryAnnualProvisionsRequest is the request type for the Query/AnnualProvisions RPC method
message QueryAnnualProvisionsRequest { }
// QueryAnnualProvisionsResponse is the response type for the Query/AnnualProvisions RPC method
message QueryAnnualProvisionsResponse {
bytes annual_provisions = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false];
}