import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; import { Any } from "../../../../google/protobuf/any"; import { Height, IdentifiedClientState } from "../../client/v1/client"; import { ConnectionEnd, IdentifiedConnection, Params } from "./connection"; export declare const protobufPackage = "ibc.core.connection.v1"; /** * QueryConnectionRequest is the request type for the Query/Connection RPC * method */ export interface QueryConnectionRequest { /** connection unique identifier */ connectionId: string; } /** * QueryConnectionResponse is the response type for the Query/Connection RPC * method. Besides the connection end, it includes a proof and the height from * which the proof was retrieved. */ export interface QueryConnectionResponse { /** connection associated with the request identifier */ connection: ConnectionEnd | undefined; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ proofHeight: Height | undefined; } /** * QueryConnectionsRequest is the request type for the Query/Connections RPC * method */ export interface QueryConnectionsRequest { pagination: PageRequest | undefined; } /** * QueryConnectionsResponse is the response type for the Query/Connections RPC * method. */ export interface QueryConnectionsResponse { /** list of stored connections of the chain. */ connections: IdentifiedConnection[]; /** pagination response */ pagination: PageResponse | undefined; /** query block height */ height: Height | undefined; } /** * QueryClientConnectionsRequest is the request type for the * Query/ClientConnections RPC method */ export interface QueryClientConnectionsRequest { /** client identifier associated with a connection */ clientId: string; } /** * QueryClientConnectionsResponse is the response type for the * Query/ClientConnections RPC method */ export interface QueryClientConnectionsResponse { /** slice of all the connection paths associated with a client. */ connectionPaths: string[]; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was generated */ proofHeight: Height | undefined; } /** * QueryConnectionClientStateRequest is the request type for the * Query/ConnectionClientState RPC method */ export interface QueryConnectionClientStateRequest { /** connection identifier */ connectionId: string; } /** * QueryConnectionClientStateResponse is the response type for the * Query/ConnectionClientState RPC method */ export interface QueryConnectionClientStateResponse { /** client state associated with the channel */ identifiedClientState: IdentifiedClientState | undefined; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ proofHeight: Height | undefined; } /** * QueryConnectionConsensusStateRequest is the request type for the * Query/ConnectionConsensusState RPC method */ export interface QueryConnectionConsensusStateRequest { /** connection identifier */ connectionId: string; revisionNumber: Long; revisionHeight: Long; } /** * QueryConnectionConsensusStateResponse is the response type for the * Query/ConnectionConsensusState RPC method */ export interface QueryConnectionConsensusStateResponse { /** consensus state associated with the channel */ consensusState: Any | undefined; /** client ID associated with the consensus state */ clientId: string; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ proofHeight: Height | undefined; } /** QueryConnectionParamsRequest is the request type for the Query/ConnectionParams RPC method. */ export interface QueryConnectionParamsRequest { } /** QueryConnectionParamsResponse is the response type for the Query/ConnectionParams RPC method. */ export interface QueryConnectionParamsResponse { /** params defines the parameters of the module. */ params: Params | undefined; } export declare const QueryConnectionRequest: { encode(message: QueryConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionRequest; fromJSON(object: any): QueryConnectionRequest; toJSON(message: QueryConnectionRequest): unknown; create(base?: DeepPartial): QueryConnectionRequest; fromPartial(object: DeepPartial): QueryConnectionRequest; }; export declare const QueryConnectionResponse: { encode(message: QueryConnectionResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionResponse; fromJSON(object: any): QueryConnectionResponse; toJSON(message: QueryConnectionResponse): unknown; create(base?: DeepPartial): QueryConnectionResponse; fromPartial(object: DeepPartial): QueryConnectionResponse; }; export declare const QueryConnectionsRequest: { encode(message: QueryConnectionsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionsRequest; fromJSON(object: any): QueryConnectionsRequest; toJSON(message: QueryConnectionsRequest): unknown; create(base?: DeepPartial): QueryConnectionsRequest; fromPartial(object: DeepPartial): QueryConnectionsRequest; }; export declare const QueryConnectionsResponse: { encode(message: QueryConnectionsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionsResponse; fromJSON(object: any): QueryConnectionsResponse; toJSON(message: QueryConnectionsResponse): unknown; create(base?: DeepPartial): QueryConnectionsResponse; fromPartial(object: DeepPartial): QueryConnectionsResponse; }; export declare const QueryClientConnectionsRequest: { encode(message: QueryClientConnectionsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientConnectionsRequest; fromJSON(object: any): QueryClientConnectionsRequest; toJSON(message: QueryClientConnectionsRequest): unknown; create(base?: DeepPartial): QueryClientConnectionsRequest; fromPartial(object: DeepPartial): QueryClientConnectionsRequest; }; export declare const QueryClientConnectionsResponse: { encode(message: QueryClientConnectionsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientConnectionsResponse; fromJSON(object: any): QueryClientConnectionsResponse; toJSON(message: QueryClientConnectionsResponse): unknown; create(base?: DeepPartial): QueryClientConnectionsResponse; fromPartial(object: DeepPartial): QueryClientConnectionsResponse; }; export declare const QueryConnectionClientStateRequest: { encode(message: QueryConnectionClientStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionClientStateRequest; fromJSON(object: any): QueryConnectionClientStateRequest; toJSON(message: QueryConnectionClientStateRequest): unknown; create(base?: DeepPartial): QueryConnectionClientStateRequest; fromPartial(object: DeepPartial): QueryConnectionClientStateRequest; }; export declare const QueryConnectionClientStateResponse: { encode(message: QueryConnectionClientStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionClientStateResponse; fromJSON(object: any): QueryConnectionClientStateResponse; toJSON(message: QueryConnectionClientStateResponse): unknown; create(base?: DeepPartial): QueryConnectionClientStateResponse; fromPartial(object: DeepPartial): QueryConnectionClientStateResponse; }; export declare const QueryConnectionConsensusStateRequest: { encode(message: QueryConnectionConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionConsensusStateRequest; fromJSON(object: any): QueryConnectionConsensusStateRequest; toJSON(message: QueryConnectionConsensusStateRequest): unknown; create(base?: DeepPartial): QueryConnectionConsensusStateRequest; fromPartial(object: DeepPartial): QueryConnectionConsensusStateRequest; }; export declare const QueryConnectionConsensusStateResponse: { encode(message: QueryConnectionConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionConsensusStateResponse; fromJSON(object: any): QueryConnectionConsensusStateResponse; toJSON(message: QueryConnectionConsensusStateResponse): unknown; create(base?: DeepPartial): QueryConnectionConsensusStateResponse; fromPartial(object: DeepPartial): QueryConnectionConsensusStateResponse; }; export declare const QueryConnectionParamsRequest: { encode(_: QueryConnectionParamsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionParamsRequest; fromJSON(_: any): QueryConnectionParamsRequest; toJSON(_: QueryConnectionParamsRequest): unknown; create(base?: DeepPartial): QueryConnectionParamsRequest; fromPartial(_: DeepPartial): QueryConnectionParamsRequest; }; export declare const QueryConnectionParamsResponse: { encode(message: QueryConnectionParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConnectionParamsResponse; fromJSON(object: any): QueryConnectionParamsResponse; toJSON(message: QueryConnectionParamsResponse): unknown; create(base?: DeepPartial): QueryConnectionParamsResponse; fromPartial(object: DeepPartial): QueryConnectionParamsResponse; }; /** Query provides defines the gRPC querier service */ export interface Query { /** Connection queries an IBC connection end. */ Connection(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Connections queries all the IBC connections of a chain. */ Connections(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * ClientConnections queries the connection paths associated with a client * state. */ ClientConnections(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * ConnectionClientState queries the client state associated with the * connection. */ ConnectionClientState(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * ConnectionConsensusState queries the consensus state associated with the * connection. */ ConnectionConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** ConnectionParams queries all parameters of the ibc connection submodule. */ ConnectionParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); Connection(request: DeepPartial, metadata?: grpc.Metadata): Promise; Connections(request: DeepPartial, metadata?: grpc.Metadata): Promise; ClientConnections(request: DeepPartial, metadata?: grpc.Metadata): Promise; ConnectionClientState(request: DeepPartial, metadata?: grpc.Metadata): Promise; ConnectionConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; ConnectionParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const QueryDesc: { serviceName: string; }; export declare const QueryConnectionDesc: UnaryMethodDefinitionish; export declare const QueryConnectionsDesc: UnaryMethodDefinitionish; export declare const QueryClientConnectionsDesc: UnaryMethodDefinitionish; export declare const QueryConnectionClientStateDesc: UnaryMethodDefinitionish; export declare const QueryConnectionConsensusStateDesc: UnaryMethodDefinitionish; export declare const QueryConnectionParamsDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};