cosmos-sdk/proto/cosmos/upgrade/query.proto

37 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package cosmos.upgrade;
import "cosmos/upgrade/upgrade.proto";
option go_package = "github.com/cosmos/cosmos-sdk/x/upgrade/types";
// Query defines the gRPC upgrade querier service.
service Query {
// CurrentPlan queries the current upgrade plan.
rpc CurrentPlan(QueryCurrentPlanRequest) returns (QueryCurrentPlanResponse) {}
// AppliedPlan queries a previously applied upgrade plan by its name.
rpc AppliedPlan(QueryAppliedPlanRequest) returns (QueryAppliedPlanResponse) {}
}
// QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC method.
message QueryCurrentPlanRequest {}
// QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC method.
message QueryCurrentPlanResponse {
// plan is the current upgrade plan.
Plan plan = 1;
}
// QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC method.
message QueryAppliedPlanRequest {
// name is the name of the applied plan to query for.
string name = 1;
}
// QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC method.
message QueryAppliedPlanResponse {
// height is the block height at which the plan was applied.
int64 height = 1;
}