0g-chain/proto/kava/earn/v1beta1/query.proto

31 lines
942 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package kava.earn.v1beta1;
option go_package = "github.com/kava-labs/kava/x/earn/types";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "cosmos_proto/cosmos.proto";
import "kava/earn/v1beta1/params.proto";
// Query defines the gRPC querier service for earn module
service Query {
// Params queries all parameters of the earn module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/kava/earn/v1beta1/params";
}
}
// QueryParamsRequest defines the request type for querying x/earn parameters.
message QueryParamsRequest {
option (gogoproto.goproto_getters) = false;
}
// QueryParamsResponse defines the response type for querying x/earn parameters.
message QueryParamsResponse {
option (gogoproto.goproto_getters) = false;
// params represents the earn module parameters
Params params = 1 [(gogoproto.nullable) = false];
}