import Long from "long"; import { grpc } from "@improbable-eng/grpc-web"; import _m0 from "protobufjs/minimal"; import { Any } from "../../../../google/protobuf/any"; import { Height, Params, IdentifiedClientState, ConsensusStateWithHeight } from "../../../../ibc/core/client/v1/client"; import { PageRequest, PageResponse } from "../../../../cosmos/base/query/v1beta1/pagination"; export declare const protobufPackage = "ibc.core.client.v1"; /** * QueryClientStateRequest is the request type for the Query/ClientState RPC * method */ export interface QueryClientStateRequest { /** client state unique identifier */ clientId: string; } /** * QueryClientStateResponse is the response type for the Query/ClientState RPC * method. Besides the client state, it includes a proof and the height from * which the proof was retrieved. */ export interface QueryClientStateResponse { /** client state associated with the request identifier */ clientState?: Any; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ proofHeight?: Height; } /** * QueryClientStatesRequest is the request type for the Query/ClientStates RPC * method */ export interface QueryClientStatesRequest { /** pagination request */ pagination?: PageRequest; } /** * QueryClientStatesResponse is the response type for the Query/ClientStates RPC * method. */ export interface QueryClientStatesResponse { /** list of stored ClientStates of the chain. */ clientStates: IdentifiedClientState[]; /** pagination response */ pagination?: PageResponse; } /** * QueryConsensusStateRequest is the request type for the Query/ConsensusState * RPC method. Besides the consensus state, it includes a proof and the height * from which the proof was retrieved. */ export interface QueryConsensusStateRequest { /** client identifier */ clientId: string; /** consensus state revision number */ revisionNumber: Long; /** consensus state revision height */ revisionHeight: Long; /** * latest_height overrrides the height field and queries the latest stored * ConsensusState */ latestHeight: boolean; } /** * QueryConsensusStateResponse is the response type for the Query/ConsensusState * RPC method */ export interface QueryConsensusStateResponse { /** consensus state associated with the client identifier at the given height */ consensusState?: Any; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ proofHeight?: Height; } /** * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates * RPC method. */ export interface QueryConsensusStatesRequest { /** client identifier */ clientId: string; /** pagination request */ pagination?: PageRequest; } /** * QueryConsensusStatesResponse is the response type for the * Query/ConsensusStates RPC method */ export interface QueryConsensusStatesResponse { /** consensus states associated with the identifier */ consensusStates: ConsensusStateWithHeight[]; /** pagination response */ pagination?: PageResponse; } /** * QueryClientStatusRequest is the request type for the Query/ClientStatus RPC * method */ export interface QueryClientStatusRequest { /** client unique identifier */ clientId: string; } /** * QueryClientStatusResponse is the response type for the Query/ClientStatus RPC * method. It returns the current status of the IBC client. */ export interface QueryClientStatusResponse { status: string; } /** * QueryClientParamsRequest is the request type for the Query/ClientParams RPC * method. */ export interface QueryClientParamsRequest { } /** * QueryClientParamsResponse is the response type for the Query/ClientParams RPC * method. */ export interface QueryClientParamsResponse { /** params defines the parameters of the module. */ params?: Params; } /** * QueryUpgradedClientStateRequest is the request type for the * Query/UpgradedClientState RPC method */ export interface QueryUpgradedClientStateRequest { } /** * QueryUpgradedClientStateResponse is the response type for the * Query/UpgradedClientState RPC method. */ export interface QueryUpgradedClientStateResponse { /** client state associated with the request identifier */ upgradedClientState?: Any; } /** * QueryUpgradedConsensusStateRequest is the request type for the * Query/UpgradedConsensusState RPC method */ export interface QueryUpgradedConsensusStateRequest { } /** * QueryUpgradedConsensusStateResponse is the response type for the * Query/UpgradedConsensusState RPC method. */ export interface QueryUpgradedConsensusStateResponse { /** Consensus state associated with the request identifier */ upgradedConsensusState?: Any; } export declare const QueryClientStateRequest: { encode(message: QueryClientStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientStateRequest; fromJSON(object: any): QueryClientStateRequest; toJSON(message: QueryClientStateRequest): unknown; fromPartial(object: DeepPartial): QueryClientStateRequest; }; export declare const QueryClientStateResponse: { encode(message: QueryClientStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientStateResponse; fromJSON(object: any): QueryClientStateResponse; toJSON(message: QueryClientStateResponse): unknown; fromPartial(object: DeepPartial): QueryClientStateResponse; }; export declare const QueryClientStatesRequest: { encode(message: QueryClientStatesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientStatesRequest; fromJSON(object: any): QueryClientStatesRequest; toJSON(message: QueryClientStatesRequest): unknown; fromPartial(object: DeepPartial): QueryClientStatesRequest; }; export declare const QueryClientStatesResponse: { encode(message: QueryClientStatesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientStatesResponse; fromJSON(object: any): QueryClientStatesResponse; toJSON(message: QueryClientStatesResponse): unknown; fromPartial(object: DeepPartial): QueryClientStatesResponse; }; export declare const QueryConsensusStateRequest: { encode(message: QueryConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryConsensusStateRequest; fromJSON(object: any): QueryConsensusStateRequest; toJSON(message: QueryConsensusStateRequest): unknown; fromPartial(object: DeepPartial): QueryConsensusStateRequest; }; export declare const QueryConsensusStateResponse: { encode(message: QueryConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryConsensusStateResponse; fromJSON(object: any): QueryConsensusStateResponse; toJSON(message: QueryConsensusStateResponse): unknown; fromPartial(object: DeepPartial): QueryConsensusStateResponse; }; export declare const QueryConsensusStatesRequest: { encode(message: QueryConsensusStatesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryConsensusStatesRequest; fromJSON(object: any): QueryConsensusStatesRequest; toJSON(message: QueryConsensusStatesRequest): unknown; fromPartial(object: DeepPartial): QueryConsensusStatesRequest; }; export declare const QueryConsensusStatesResponse: { encode(message: QueryConsensusStatesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryConsensusStatesResponse; fromJSON(object: any): QueryConsensusStatesResponse; toJSON(message: QueryConsensusStatesResponse): unknown; fromPartial(object: DeepPartial): QueryConsensusStatesResponse; }; export declare const QueryClientStatusRequest: { encode(message: QueryClientStatusRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientStatusRequest; fromJSON(object: any): QueryClientStatusRequest; toJSON(message: QueryClientStatusRequest): unknown; fromPartial(object: DeepPartial): QueryClientStatusRequest; }; export declare const QueryClientStatusResponse: { encode(message: QueryClientStatusResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientStatusResponse; fromJSON(object: any): QueryClientStatusResponse; toJSON(message: QueryClientStatusResponse): unknown; fromPartial(object: DeepPartial): QueryClientStatusResponse; }; export declare const QueryClientParamsRequest: { encode(_: QueryClientParamsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientParamsRequest; fromJSON(_: any): QueryClientParamsRequest; toJSON(_: QueryClientParamsRequest): unknown; fromPartial(_: DeepPartial): QueryClientParamsRequest; }; export declare const QueryClientParamsResponse: { encode(message: QueryClientParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryClientParamsResponse; fromJSON(object: any): QueryClientParamsResponse; toJSON(message: QueryClientParamsResponse): unknown; fromPartial(object: DeepPartial): QueryClientParamsResponse; }; export declare const QueryUpgradedClientStateRequest: { encode(_: QueryUpgradedClientStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryUpgradedClientStateRequest; fromJSON(_: any): QueryUpgradedClientStateRequest; toJSON(_: QueryUpgradedClientStateRequest): unknown; fromPartial(_: DeepPartial): QueryUpgradedClientStateRequest; }; export declare const QueryUpgradedClientStateResponse: { encode(message: QueryUpgradedClientStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryUpgradedClientStateResponse; fromJSON(object: any): QueryUpgradedClientStateResponse; toJSON(message: QueryUpgradedClientStateResponse): unknown; fromPartial(object: DeepPartial): QueryUpgradedClientStateResponse; }; export declare const QueryUpgradedConsensusStateRequest: { encode(_: QueryUpgradedConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryUpgradedConsensusStateRequest; fromJSON(_: any): QueryUpgradedConsensusStateRequest; toJSON(_: QueryUpgradedConsensusStateRequest): unknown; fromPartial(_: DeepPartial): QueryUpgradedConsensusStateRequest; }; export declare const QueryUpgradedConsensusStateResponse: { encode(message: QueryUpgradedConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): QueryUpgradedConsensusStateResponse; fromJSON(object: any): QueryUpgradedConsensusStateResponse; toJSON(message: QueryUpgradedConsensusStateResponse): unknown; fromPartial(object: DeepPartial): QueryUpgradedConsensusStateResponse; }; /** Query provides defines the gRPC querier service */ export interface Query { /** ClientState queries an IBC light client. */ ClientState(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** ClientStates queries all the IBC light clients of a chain. */ ClientStates(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * ConsensusState queries a consensus state associated with a client state at * a given height. */ ConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * ConsensusStates queries all the consensus state associated with a given * client. */ ConsensusStates(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Status queries the status of an IBC client. */ ClientStatus(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** ClientParams queries all parameters of the ibc client. */ ClientParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** UpgradedClientState queries an Upgraded IBC light client. */ UpgradedClientState(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** UpgradedConsensusState queries an Upgraded IBC consensus state. */ UpgradedConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class QueryClientImpl implements Query { private readonly rpc; constructor(rpc: Rpc); ClientState(request: DeepPartial, metadata?: grpc.Metadata): Promise; ClientStates(request: DeepPartial, metadata?: grpc.Metadata): Promise; ConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; ConsensusStates(request: DeepPartial, metadata?: grpc.Metadata): Promise; ClientStatus(request: DeepPartial, metadata?: grpc.Metadata): Promise; ClientParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpgradedClientState(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpgradedConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const QueryDesc: { serviceName: string; }; export declare const QueryClientStateDesc: UnaryMethodDefinitionish; export declare const QueryClientStatesDesc: UnaryMethodDefinitionish; export declare const QueryConsensusStateDesc: UnaryMethodDefinitionish; export declare const QueryConsensusStatesDesc: UnaryMethodDefinitionish; export declare const QueryClientStatusDesc: UnaryMethodDefinitionish; export declare const QueryClientParamsDesc: UnaryMethodDefinitionish; export declare const QueryUpgradedClientStateDesc: UnaryMethodDefinitionish; export declare const QueryUpgradedConsensusStateDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } declare 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; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined | Long; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};