github.com/Finschia/finschia-sdk@v0.49.1/proto/lbm/base/ostracon/v1/query.proto (about)

     1  syntax = "proto3";
     2  package lbm.base.ostracon.v1;
     3  
     4  import "google/protobuf/any.proto";
     5  import "google/api/annotations.proto";
     6  import "ostracon/types/block.proto";
     7  import "ostracon/types/types.proto";
     8  import "ostracon/abci/types.proto";
     9  import "cosmos/base/query/v1beta1/pagination.proto";
    10  import "tendermint/p2p/types.proto";
    11  import "tendermint/types/types.proto";
    12  import "tendermint/abci/types.proto";
    13  
    14  option go_package = "github.com/Finschia/finschia-sdk/client/grpc/ocservice";
    15  
    16  // Service defines the gRPC querier service for ostracon queries.
    17  service Service {
    18    // GetNodeInfo queries the current node info.
    19    rpc GetNodeInfo(GetNodeInfoRequest) returns (GetNodeInfoResponse) {
    20      option (google.api.http).get = "/lbm/base/ostracon/v1/node_info";
    21    }
    22    // GetSyncing queries node syncing.
    23    rpc GetSyncing(GetSyncingRequest) returns (GetSyncingResponse) {
    24      option (google.api.http).get = "/lbm/base/ostracon/v1/syncing";
    25    }
    26    // GetLatestBlock returns the latest block.
    27    rpc GetLatestBlock(GetLatestBlockRequest) returns (GetLatestBlockResponse) {
    28      option (google.api.http).get = "/lbm/base/ostracon/v1/blocks/latest";
    29    }
    30    // GetBlockByHeight queries block for given height.
    31    rpc GetBlockByHeight(GetBlockByHeightRequest) returns (GetBlockByHeightResponse) {
    32      option (google.api.http).get = "/lbm/base/ostracon/v1/blocks/{height}";
    33    }
    34    // GetBlockByHash queries block for given hash.
    35    rpc GetBlockByHash(GetBlockByHashRequest) returns (GetBlockByHashResponse) {
    36      option (google.api.http).get = "/lbm/base/ostracon/v1/block/{hash}";
    37    }
    38    // GetBlockResultsByHeight queries block results for given height.
    39    rpc GetBlockResultsByHeight(GetBlockResultsByHeightRequest) returns (GetBlockResultsByHeightResponse) {
    40      option (google.api.http).get = "/lbm/base/ostracon/v1/blockresults/{height}";
    41    }
    42  
    43    // GetLatestValidatorSet queries latest validator-set.
    44    rpc GetLatestValidatorSet(GetLatestValidatorSetRequest) returns (GetLatestValidatorSetResponse) {
    45      option (google.api.http).get = "/lbm/base/ostracon/v1/validatorsets/latest";
    46    }
    47    // GetValidatorSetByHeight queries validator-set at a given height.
    48    rpc GetValidatorSetByHeight(GetValidatorSetByHeightRequest) returns (GetValidatorSetByHeightResponse) {
    49      option (google.api.http).get = "/lbm/base/ostracon/v1/validatorsets/{height}";
    50    }
    51  }
    52  
    53  // GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
    54  message GetValidatorSetByHeightRequest {
    55    int64 height = 1;
    56    // pagination defines an pagination for the request.
    57    cosmos.base.query.v1beta1.PageRequest pagination = 2;
    58  }
    59  
    60  // GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
    61  message GetValidatorSetByHeightResponse {
    62    int64              block_height = 1;
    63    repeated Validator validators   = 2;
    64    // pagination defines an pagination for the response.
    65    cosmos.base.query.v1beta1.PageResponse pagination = 3;
    66  }
    67  
    68  // GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.
    69  message GetLatestValidatorSetRequest {
    70    // pagination defines an pagination for the request.
    71    cosmos.base.query.v1beta1.PageRequest pagination = 1;
    72  }
    73  
    74  // GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.
    75  message GetLatestValidatorSetResponse {
    76    int64              block_height = 1;
    77    repeated Validator validators   = 2;
    78    // pagination defines an pagination for the response.
    79    cosmos.base.query.v1beta1.PageResponse pagination = 3;
    80  }
    81  
    82  // Validator is the type for the validator-set.
    83  message Validator {
    84    string              address           = 1;
    85    google.protobuf.Any pub_key           = 2;
    86    int64               voting_power      = 3;
    87    int64               proposer_priority = 4;
    88  }
    89  
    90  // GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.
    91  message GetBlockByHeightRequest {
    92    int64 height = 1;
    93  }
    94  
    95  // GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.
    96  message GetBlockByHeightResponse {
    97    .tendermint.types.BlockID block_id = 1;
    98    .ostracon.types.Block     block    = 2;
    99  }
   100  
   101  // GetBlockByHashRequest is the request type for the Query/GetBlockByHash RPC method.
   102  message GetBlockByHashRequest {
   103    bytes hash = 1;
   104  }
   105  
   106  // GetBlockByHashResponse is the response type for the Query/GetBlockByHash RPC method.
   107  message GetBlockByHashResponse {
   108    .tendermint.types.BlockID block_id = 1;
   109    .ostracon.types.Block     block    = 2;
   110  }
   111  
   112  // GetBlockResultsByHeightRequest is the request type for the Query/GetBlockResultsByHeight RPC method.
   113  message GetBlockResultsByHeightRequest {
   114    int64 height = 1;
   115  }
   116  
   117  // GetBlockResultsByHeightResponse is the response type for the Query/GetBlockResultsByHeight RPC method.
   118  message GetBlockResultsByHeightResponse {
   119    int64                                       height          = 1;
   120    repeated .tendermint.abci.ResponseDeliverTx txs_results     = 2;
   121    .tendermint.abci.ResponseBeginBlock         res_begin_block = 3;
   122    .tendermint.abci.ResponseEndBlock           res_end_block   = 4;
   123  }
   124  
   125  // GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.
   126  message GetLatestBlockRequest {}
   127  
   128  // GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.
   129  message GetLatestBlockResponse {
   130    .tendermint.types.BlockID block_id = 1;
   131    .ostracon.types.Block     block    = 2;
   132  }
   133  
   134  // GetSyncingRequest is the request type for the Query/GetSyncing RPC method.
   135  message GetSyncingRequest {}
   136  
   137  // GetSyncingResponse is the response type for the Query/GetSyncing RPC method.
   138  message GetSyncingResponse {
   139    bool syncing = 1;
   140  }
   141  
   142  // GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.
   143  message GetNodeInfoRequest {}
   144  
   145  // GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.
   146  message GetNodeInfoResponse {
   147    .tendermint.p2p.DefaultNodeInfo default_node_info   = 1;
   148    VersionInfo                     application_version = 2;
   149  }
   150  
   151  // VersionInfo is the type for the GetNodeInfoResponse message.
   152  message VersionInfo {
   153    string          name       = 1;
   154    string          app_name   = 2;
   155    string          version    = 3;
   156    string          git_commit = 4;
   157    string          build_tags = 5;
   158    string          go_version = 6;
   159    repeated Module build_deps = 7;
   160    // Since: cosmos-sdk 0.43
   161    string lbm_sdk_version = 8;
   162  }
   163  
   164  // Module is the type for VersionInfo
   165  message Module {
   166    // module path
   167    string path = 1;
   168    // module version
   169    string version = 2;
   170    // checksum
   171    string sum = 3;
   172  }