github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/base/tendermint/v1beta1/query.proto (about)

     1  syntax = "proto3";
     2  package cosmos.base.tendermint.v1beta1;
     3  
     4  import "gogoproto/gogo.proto";
     5  import "google/protobuf/any.proto";
     6  import "google/api/annotations.proto";
     7  import "tendermint/p2p/types.proto";
     8  import "tendermint/types/block.proto";
     9  import "tendermint/types/types.proto";
    10  import "cosmos/base/query/v1beta1/pagination.proto";
    11  
    12  option go_package = "github.com/Finschia/finschia-sdk/client/grpc/tmservice";
    13  
    14  // Service defines the gRPC querier service for tendermint queries.
    15  //
    16  // WARNING: For compatibility with cosmos-sdk API, the result converted from Ostracon block type
    17  // to tendermint block type without `entropy` is returned.
    18  // Therefore, verification fails with the tendermint block validation method.
    19  // For original information, please check `lbm/base/ostracon/v1/query.proto`.
    20  service Service {
    21    // GetNodeInfo queries the current node info.
    22    rpc GetNodeInfo(GetNodeInfoRequest) returns (GetNodeInfoResponse) {
    23      option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/node_info";
    24    }
    25    // GetSyncing queries node syncing.
    26    rpc GetSyncing(GetSyncingRequest) returns (GetSyncingResponse) {
    27      option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/syncing";
    28    }
    29    // GetLatestBlock returns the latest block.
    30    rpc GetLatestBlock(GetLatestBlockRequest) returns (GetLatestBlockResponse) {
    31      option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/blocks/latest";
    32    }
    33    // GetBlockByHeight queries block for given height.
    34    rpc GetBlockByHeight(GetBlockByHeightRequest) returns (GetBlockByHeightResponse) {
    35      option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/blocks/{height}";
    36    }
    37  
    38    // GetLatestValidatorSet queries latest validator-set.
    39    rpc GetLatestValidatorSet(GetLatestValidatorSetRequest) returns (GetLatestValidatorSetResponse) {
    40      option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validatorsets/latest";
    41    }
    42    // GetValidatorSetByHeight queries validator-set at a given height.
    43    rpc GetValidatorSetByHeight(GetValidatorSetByHeightRequest) returns (GetValidatorSetByHeightResponse) {
    44      option (google.api.http).get = "/cosmos/base/tendermint/v1beta1/validatorsets/{height}";
    45    }
    46  }
    47  
    48  // GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
    49  message GetValidatorSetByHeightRequest {
    50    int64 height = 1;
    51    // pagination defines an pagination for the request.
    52    cosmos.base.query.v1beta1.PageRequest pagination = 2;
    53  }
    54  
    55  // GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
    56  message GetValidatorSetByHeightResponse {
    57    int64              block_height = 1;
    58    repeated Validator validators   = 2;
    59    // pagination defines an pagination for the response.
    60    cosmos.base.query.v1beta1.PageResponse pagination = 3;
    61  }
    62  
    63  // GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
    64  message GetLatestValidatorSetRequest {
    65    // pagination defines an pagination for the request.
    66    cosmos.base.query.v1beta1.PageRequest pagination = 1;
    67  }
    68  
    69  // GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
    70  message GetLatestValidatorSetResponse {
    71    int64              block_height = 1;
    72    repeated Validator validators   = 2;
    73    // pagination defines an pagination for the response.
    74    cosmos.base.query.v1beta1.PageResponse pagination = 3;
    75  }
    76  
    77  // Validator is the type for the validator-set.
    78  message Validator {
    79    string              address           = 1;
    80    google.protobuf.Any pub_key           = 2;
    81    int64               voting_power      = 3;
    82    int64               proposer_priority = 4;
    83  }
    84  
    85  // GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
    86  message GetBlockByHeightRequest {
    87    int64 height = 1;
    88  }
    89  
    90  // GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
    91  message GetBlockByHeightResponse {
    92    .tendermint.types.BlockID block_id = 1;
    93    .tendermint.types.Block   block    = 2;
    94  }
    95  
    96  // GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
    97  message GetLatestBlockRequest {}
    98  
    99  // GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
   100  message GetLatestBlockResponse {
   101    .tendermint.types.BlockID block_id = 1;
   102    .tendermint.types.Block   block    = 2;
   103  }
   104  
   105  // GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
   106  message GetSyncingRequest {}
   107  
   108  // GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
   109  message GetSyncingResponse {
   110    bool syncing = 1;
   111  }
   112  
   113  // GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
   114  message GetNodeInfoRequest {}
   115  
   116  // GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.
   117  message GetNodeInfoResponse {
   118    .tendermint.p2p.DefaultNodeInfo default_node_info   = 1;
   119    VersionInfo                     application_version = 2;
   120  }
   121  
   122  // VersionInfo is the type for the GetNodeInfoResponse message.
   123  message VersionInfo {
   124    string          name       = 1;
   125    string          app_name   = 2;
   126    string          version    = 3;
   127    string          git_commit = 4;
   128    string          build_tags = 5;
   129    string          go_version = 6;
   130    repeated Module build_deps = 7;
   131    // Since: cosmos-sdk 0.43
   132    string cosmos_sdk_version = 8;
   133  }
   134  
   135  // Module is the type for VersionInfo
   136  message Module {
   137    // module path
   138    string path = 1;
   139    // module version
   140    string version = 2;
   141    // checksum
   142    string sum = 3;
   143  }