github.com/Finschia/finschia-sdk@v0.48.1/proto/cosmos/upgrade/v1beta1/query.proto (about)

     1  syntax = "proto3";
     2  package cosmos.upgrade.v1beta1;
     3  
     4  import "google/protobuf/any.proto";
     5  import "google/api/annotations.proto";
     6  import "cosmos/upgrade/v1beta1/upgrade.proto";
     7  
     8  option go_package = "github.com/Finschia/finschia-sdk/x/upgrade/types";
     9  
    10  // Query defines the gRPC upgrade querier service.
    11  service Query {
    12    // CurrentPlan queries the current upgrade plan.
    13    rpc CurrentPlan(QueryCurrentPlanRequest) returns (QueryCurrentPlanResponse) {
    14      option (google.api.http).get = "/cosmos/upgrade/v1beta1/current_plan";
    15    }
    16  
    17    // AppliedPlan queries a previously applied upgrade plan by its name.
    18    rpc AppliedPlan(QueryAppliedPlanRequest) returns (QueryAppliedPlanResponse) {
    19      option (google.api.http).get = "/cosmos/upgrade/v1beta1/applied_plan/{name}";
    20    }
    21  
    22    // UpgradedConsensusState queries the consensus state that will serve
    23    // as a trusted kernel for the next version of this chain. It will only be
    24    // stored at the last height of this chain.
    25    // UpgradedConsensusState RPC not supported with legacy querier
    26    // This rpc is deprecated now that IBC has its own replacement
    27    // (https://github.com/cosmos/ibc-go/blob/2c880a22e9f9cc75f62b527ca94aa75ce1106001/proto/ibc/core/client/v1/query.proto#L54)
    28    rpc UpgradedConsensusState(QueryUpgradedConsensusStateRequest) returns (QueryUpgradedConsensusStateResponse) {
    29      option deprecated            = true;
    30      option (google.api.http).get = "/cosmos/upgrade/v1beta1/upgraded_consensus_state/{last_height}";
    31    }
    32  
    33    // ModuleVersions queries the list of module versions from state.
    34    //
    35    // Since: cosmos-sdk 0.43
    36    rpc ModuleVersions(QueryModuleVersionsRequest) returns (QueryModuleVersionsResponse) {
    37      option (google.api.http).get = "/cosmos/upgrade/v1beta1/module_versions";
    38    }
    39  }
    40  
    41  // QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC
    42  // method.
    43  message QueryCurrentPlanRequest {}
    44  
    45  // QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC
    46  // method.
    47  message QueryCurrentPlanResponse {
    48    // plan is the current upgrade plan.
    49    Plan plan = 1;
    50  }
    51  
    52  // QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC
    53  // method.
    54  message QueryAppliedPlanRequest {
    55    // name is the name of the applied plan to query for.
    56    string name = 1;
    57  }
    58  
    59  // QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC
    60  // method.
    61  message QueryAppliedPlanResponse {
    62    // height is the block height at which the plan was applied.
    63    int64 height = 1;
    64  }
    65  
    66  // QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState
    67  // RPC method.
    68  message QueryUpgradedConsensusStateRequest {
    69    option deprecated = true;
    70  
    71    // last height of the current chain must be sent in request
    72    // as this is the height under which next consensus state is stored
    73    int64 last_height = 1;
    74  }
    75  
    76  // QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState
    77  // RPC method.
    78  message QueryUpgradedConsensusStateResponse {
    79    option deprecated = true;
    80    reserved 1;
    81  
    82    // Since: cosmos-sdk 0.43
    83    bytes upgraded_consensus_state = 2;
    84  }
    85  
    86  // QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
    87  // RPC method.
    88  //
    89  // Since: cosmos-sdk 0.43
    90  message QueryModuleVersionsRequest {
    91    // module_name is a field to query a specific module
    92    // consensus version from state. Leaving this empty will
    93    // fetch the full list of module versions from state
    94    string module_name = 1;
    95  }
    96  
    97  // QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
    98  // RPC method.
    99  //
   100  // Since: cosmos-sdk 0.43
   101  message QueryModuleVersionsResponse {
   102    // module_versions is a list of module names with their consensus versions.
   103    repeated ModuleVersion module_versions = 1;
   104  }