github.com/okex/exchain@v1.8.0/libs/ibc-go/proto/ibc/core/connection/v1/query.proto (about)

     1  syntax = "proto3";
     2  
     3  package ibc.core.connection.v1;
     4  
     5  option go_package = "github.com/cosmos/ibc-go/v2/modules/core/03-connection/types";
     6  
     7  import "gogoproto/gogo.proto";
     8  import "cosmos/base/query/v1beta1/pagination.proto";
     9  import "ibc/core/client/v1/client.proto";
    10  import "ibc/core/connection/v1/connection.proto";
    11  import "google/api/annotations.proto";
    12  import "google/protobuf/any.proto";
    13  
    14  // Query provides defines the gRPC querier service
    15  service Query {
    16    // Connection queries an IBC connection end.
    17    rpc Connection(QueryConnectionRequest) returns (QueryConnectionResponse) {
    18      option (google.api.http).get = "/ibc/core/connection/v1/connections/{connection_id}";
    19    }
    20  
    21    // Connections queries all the IBC connections of a chain.
    22    rpc Connections(QueryConnectionsRequest) returns (QueryConnectionsResponse) {
    23      option (google.api.http).get = "/ibc/core/connection/v1/connections";
    24    }
    25  
    26    // ClientConnections queries the connection paths associated with a client
    27    // state.
    28    rpc ClientConnections(QueryClientConnectionsRequest) returns (QueryClientConnectionsResponse) {
    29      option (google.api.http).get = "/ibc/core/connection/v1/client_connections/{client_id}";
    30    }
    31  
    32    // ConnectionClientState queries the client state associated with the
    33    // connection.
    34    rpc ConnectionClientState(QueryConnectionClientStateRequest) returns (QueryConnectionClientStateResponse) {
    35      option (google.api.http).get = "/ibc/core/connection/v1/connections/{connection_id}/client_state";
    36    }
    37  
    38    // ConnectionConsensusState queries the consensus state associated with the
    39    // connection.
    40    rpc ConnectionConsensusState(QueryConnectionConsensusStateRequest) returns (QueryConnectionConsensusStateResponse) {
    41      option (google.api.http).get = "/ibc/core/connection/v1/connections/{connection_id}/consensus_state/"
    42                                     "revision/{revision_number}/height/{revision_height}";
    43    }
    44  }
    45  
    46  // QueryConnectionRequest is the request type for the Query/Connection RPC
    47  // method
    48  message QueryConnectionRequest {
    49    // connection unique identifier
    50    string connection_id = 1;
    51  }
    52  
    53  // QueryConnectionResponse is the response type for the Query/Connection RPC
    54  // method. Besides the connection end, it includes a proof and the height from
    55  // which the proof was retrieved.
    56  message QueryConnectionResponse {
    57    // connection associated with the request identifier
    58    ibc.core.connection.v1.ConnectionEnd connection = 1;
    59    // merkle proof of existence
    60    bytes proof = 2;
    61    // height at which the proof was retrieved
    62    ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false];
    63  }
    64  
    65  // QueryConnectionsRequest is the request type for the Query/Connections RPC
    66  // method
    67  message QueryConnectionsRequest {
    68    cosmos.base.query.v1beta1.PageRequest pagination = 1;
    69  }
    70  
    71  // QueryConnectionsResponse is the response type for the Query/Connections RPC
    72  // method.
    73  message QueryConnectionsResponse {
    74    // list of stored connections of the chain.
    75    repeated ibc.core.connection.v1.IdentifiedConnection connections = 1;
    76    // pagination response
    77    cosmos.base.query.v1beta1.PageResponse pagination = 2;
    78    // query block height
    79    ibc.core.client.v1.Height height = 3 [(gogoproto.nullable) = false];
    80  }
    81  
    82  // QueryClientConnectionsRequest is the request type for the
    83  // Query/ClientConnections RPC method
    84  message QueryClientConnectionsRequest {
    85    // client identifier associated with a connection
    86    string client_id = 1;
    87  }
    88  
    89  // QueryClientConnectionsResponse is the response type for the
    90  // Query/ClientConnections RPC method
    91  message QueryClientConnectionsResponse {
    92    // slice of all the connection paths associated with a client.
    93    repeated string connection_paths = 1;
    94    // merkle proof of existence
    95    bytes proof = 2;
    96    // height at which the proof was generated
    97    ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false];
    98  }
    99  
   100  // QueryConnectionClientStateRequest is the request type for the
   101  // Query/ConnectionClientState RPC method
   102  message QueryConnectionClientStateRequest {
   103    // connection identifier
   104    string connection_id = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""];
   105  }
   106  
   107  // QueryConnectionClientStateResponse is the response type for the
   108  // Query/ConnectionClientState RPC method
   109  message QueryConnectionClientStateResponse {
   110    // client state associated with the channel
   111    ibc.core.client.v1.IdentifiedClientState identified_client_state = 1;
   112    // merkle proof of existence
   113    bytes proof = 2;
   114    // height at which the proof was retrieved
   115    ibc.core.client.v1.Height proof_height = 3 [(gogoproto.nullable) = false];
   116  }
   117  
   118  // QueryConnectionConsensusStateRequest is the request type for the
   119  // Query/ConnectionConsensusState RPC method
   120  message QueryConnectionConsensusStateRequest {
   121    // connection identifier
   122    string connection_id   = 1 [(gogoproto.moretags) = "yaml:\"connection_id\""];
   123    uint64 revision_number = 2;
   124    uint64 revision_height = 3;
   125  }
   126  
   127  // QueryConnectionConsensusStateResponse is the response type for the
   128  // Query/ConnectionConsensusState RPC method
   129  message QueryConnectionConsensusStateResponse {
   130    // consensus state associated with the channel
   131    google.protobuf.Any consensus_state = 1;
   132    // client ID associated with the consensus state
   133    string client_id = 2;
   134    // merkle proof of existence
   135    bytes proof = 3;
   136    // height at which the proof was retrieved
   137    ibc.core.client.v1.Height proof_height = 4 [(gogoproto.nullable) = false];
   138  }