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 { MerklePath } from "../../commitment/v2/commitment"; import { ConsensusStateWithHeight, Height, IdentifiedClientState, Params } from "./client"; 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 | undefined; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ proofHeight: Height | undefined; } /** * QueryClientStatesRequest is the request type for the Query/ClientStates RPC * method */ export interface QueryClientStatesRequest { /** pagination request */ pagination: PageRequest | undefined; } /** * 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 | undefined; } /** * 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 overrides 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 | undefined; /** merkle proof of existence */ proof: Uint8Array; /** height at which the proof was retrieved */ proofHeight: Height | undefined; } /** * QueryConsensusStatesRequest is the request type for the Query/ConsensusStates * RPC method. */ export interface QueryConsensusStatesRequest { /** client identifier */ clientId: string; /** pagination request */ pagination: PageRequest | undefined; } /** * 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 | undefined; } /** * QueryConsensusStateHeightsRequest is the request type for Query/ConsensusStateHeights * RPC method. */ export interface QueryConsensusStateHeightsRequest { /** client identifier */ clientId: string; /** pagination request */ pagination: PageRequest | undefined; } /** * QueryConsensusStateHeightsResponse is the response type for the * Query/ConsensusStateHeights RPC method */ export interface QueryConsensusStateHeightsResponse { /** consensus state heights */ consensusStateHeights: Height[]; /** pagination response */ pagination: PageResponse | undefined; } /** * 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 | undefined; } /** * QueryClientCreatorRequest is the request type for the Query/ClientCreator RPC * method. */ export interface QueryClientCreatorRequest { /** client unique identifier */ clientId: string; } /** * QueryClientCreatorResponse is the response type for the Query/ClientCreator RPC * method. */ export interface QueryClientCreatorResponse { /** creator of the client */ creator: string; } /** * 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 | undefined; } /** * 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 | undefined; } /** QueryVerifyMembershipRequest is the request type for the Query/VerifyMembership RPC method */ export interface QueryVerifyMembershipRequest { /** client unique identifier. */ clientId: string; /** the proof to be verified by the client. */ proof: Uint8Array; /** the height of the commitment root at which the proof is verified. */ proofHeight: Height | undefined; /** the value which is proven. */ value: Uint8Array; /** optional time delay */ timeDelay: Long; /** optional block delay */ blockDelay: Long; /** the commitment key path. */ merklePath: MerklePath | undefined; } /** QueryVerifyMembershipResponse is the response type for the Query/VerifyMembership RPC method */ export interface QueryVerifyMembershipResponse { /** boolean indicating success or failure of proof verification. */ success: boolean; } export declare const QueryClientStateRequest: { encode(message: QueryClientStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStateRequest; fromJSON(object: any): QueryClientStateRequest; toJSON(message: QueryClientStateRequest): unknown; create(base?: DeepPartial): QueryClientStateRequest; fromPartial(object: DeepPartial): QueryClientStateRequest; }; export declare const QueryClientStateResponse: { encode(message: QueryClientStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStateResponse; fromJSON(object: any): QueryClientStateResponse; toJSON(message: QueryClientStateResponse): unknown; create(base?: DeepPartial): QueryClientStateResponse; fromPartial(object: DeepPartial): QueryClientStateResponse; }; export declare const QueryClientStatesRequest: { encode(message: QueryClientStatesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatesRequest; fromJSON(object: any): QueryClientStatesRequest; toJSON(message: QueryClientStatesRequest): unknown; create(base?: DeepPartial): QueryClientStatesRequest; fromPartial(object: DeepPartial): QueryClientStatesRequest; }; export declare const QueryClientStatesResponse: { encode(message: QueryClientStatesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatesResponse; fromJSON(object: any): QueryClientStatesResponse; toJSON(message: QueryClientStatesResponse): unknown; create(base?: DeepPartial): QueryClientStatesResponse; fromPartial(object: DeepPartial): QueryClientStatesResponse; }; export declare const QueryConsensusStateRequest: { encode(message: QueryConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateRequest; fromJSON(object: any): QueryConsensusStateRequest; toJSON(message: QueryConsensusStateRequest): unknown; create(base?: DeepPartial): QueryConsensusStateRequest; fromPartial(object: DeepPartial): QueryConsensusStateRequest; }; export declare const QueryConsensusStateResponse: { encode(message: QueryConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateResponse; fromJSON(object: any): QueryConsensusStateResponse; toJSON(message: QueryConsensusStateResponse): unknown; create(base?: DeepPartial): QueryConsensusStateResponse; fromPartial(object: DeepPartial): QueryConsensusStateResponse; }; export declare const QueryConsensusStatesRequest: { encode(message: QueryConsensusStatesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStatesRequest; fromJSON(object: any): QueryConsensusStatesRequest; toJSON(message: QueryConsensusStatesRequest): unknown; create(base?: DeepPartial): QueryConsensusStatesRequest; fromPartial(object: DeepPartial): QueryConsensusStatesRequest; }; export declare const QueryConsensusStatesResponse: { encode(message: QueryConsensusStatesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStatesResponse; fromJSON(object: any): QueryConsensusStatesResponse; toJSON(message: QueryConsensusStatesResponse): unknown; create(base?: DeepPartial): QueryConsensusStatesResponse; fromPartial(object: DeepPartial): QueryConsensusStatesResponse; }; export declare const QueryConsensusStateHeightsRequest: { encode(message: QueryConsensusStateHeightsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateHeightsRequest; fromJSON(object: any): QueryConsensusStateHeightsRequest; toJSON(message: QueryConsensusStateHeightsRequest): unknown; create(base?: DeepPartial): QueryConsensusStateHeightsRequest; fromPartial(object: DeepPartial): QueryConsensusStateHeightsRequest; }; export declare const QueryConsensusStateHeightsResponse: { encode(message: QueryConsensusStateHeightsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryConsensusStateHeightsResponse; fromJSON(object: any): QueryConsensusStateHeightsResponse; toJSON(message: QueryConsensusStateHeightsResponse): unknown; create(base?: DeepPartial): QueryConsensusStateHeightsResponse; fromPartial(object: DeepPartial): QueryConsensusStateHeightsResponse; }; export declare const QueryClientStatusRequest: { encode(message: QueryClientStatusRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatusRequest; fromJSON(object: any): QueryClientStatusRequest; toJSON(message: QueryClientStatusRequest): unknown; create(base?: DeepPartial): QueryClientStatusRequest; fromPartial(object: DeepPartial): QueryClientStatusRequest; }; export declare const QueryClientStatusResponse: { encode(message: QueryClientStatusResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientStatusResponse; fromJSON(object: any): QueryClientStatusResponse; toJSON(message: QueryClientStatusResponse): unknown; create(base?: DeepPartial): QueryClientStatusResponse; fromPartial(object: DeepPartial): QueryClientStatusResponse; }; export declare const QueryClientParamsRequest: { encode(_: QueryClientParamsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientParamsRequest; fromJSON(_: any): QueryClientParamsRequest; toJSON(_: QueryClientParamsRequest): unknown; create(base?: DeepPartial): QueryClientParamsRequest; fromPartial(_: DeepPartial): QueryClientParamsRequest; }; export declare const QueryClientParamsResponse: { encode(message: QueryClientParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientParamsResponse; fromJSON(object: any): QueryClientParamsResponse; toJSON(message: QueryClientParamsResponse): unknown; create(base?: DeepPartial): QueryClientParamsResponse; fromPartial(object: DeepPartial): QueryClientParamsResponse; }; export declare const QueryClientCreatorRequest: { encode(message: QueryClientCreatorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientCreatorRequest; fromJSON(object: any): QueryClientCreatorRequest; toJSON(message: QueryClientCreatorRequest): unknown; create(base?: DeepPartial): QueryClientCreatorRequest; fromPartial(object: DeepPartial): QueryClientCreatorRequest; }; export declare const QueryClientCreatorResponse: { encode(message: QueryClientCreatorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryClientCreatorResponse; fromJSON(object: any): QueryClientCreatorResponse; toJSON(message: QueryClientCreatorResponse): unknown; create(base?: DeepPartial): QueryClientCreatorResponse; fromPartial(object: DeepPartial): QueryClientCreatorResponse; }; export declare const QueryUpgradedClientStateRequest: { encode(_: QueryUpgradedClientStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedClientStateRequest; fromJSON(_: any): QueryUpgradedClientStateRequest; toJSON(_: QueryUpgradedClientStateRequest): unknown; create(base?: DeepPartial): QueryUpgradedClientStateRequest; fromPartial(_: DeepPartial): QueryUpgradedClientStateRequest; }; export declare const QueryUpgradedClientStateResponse: { encode(message: QueryUpgradedClientStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedClientStateResponse; fromJSON(object: any): QueryUpgradedClientStateResponse; toJSON(message: QueryUpgradedClientStateResponse): unknown; create(base?: DeepPartial): QueryUpgradedClientStateResponse; fromPartial(object: DeepPartial): QueryUpgradedClientStateResponse; }; export declare const QueryUpgradedConsensusStateRequest: { encode(_: QueryUpgradedConsensusStateRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateRequest; fromJSON(_: any): QueryUpgradedConsensusStateRequest; toJSON(_: QueryUpgradedConsensusStateRequest): unknown; create(base?: DeepPartial): QueryUpgradedConsensusStateRequest; fromPartial(_: DeepPartial): QueryUpgradedConsensusStateRequest; }; export declare const QueryUpgradedConsensusStateResponse: { encode(message: QueryUpgradedConsensusStateResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryUpgradedConsensusStateResponse; fromJSON(object: any): QueryUpgradedConsensusStateResponse; toJSON(message: QueryUpgradedConsensusStateResponse): unknown; create(base?: DeepPartial): QueryUpgradedConsensusStateResponse; fromPartial(object: DeepPartial): QueryUpgradedConsensusStateResponse; }; export declare const QueryVerifyMembershipRequest: { encode(message: QueryVerifyMembershipRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryVerifyMembershipRequest; fromJSON(object: any): QueryVerifyMembershipRequest; toJSON(message: QueryVerifyMembershipRequest): unknown; create(base?: DeepPartial): QueryVerifyMembershipRequest; fromPartial(object: DeepPartial): QueryVerifyMembershipRequest; }; export declare const QueryVerifyMembershipResponse: { encode(message: QueryVerifyMembershipResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryVerifyMembershipResponse; fromJSON(object: any): QueryVerifyMembershipResponse; toJSON(message: QueryVerifyMembershipResponse): unknown; create(base?: DeepPartial): QueryVerifyMembershipResponse; fromPartial(object: DeepPartial): QueryVerifyMembershipResponse; }; /** 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; /** ConsensusStateHeights queries the height of every consensus states associated with a given client. */ ConsensusStateHeights(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 submodule. */ ClientParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** ClientCreator queries the creator of a given client. */ ClientCreator(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; /** VerifyMembership queries an IBC light client for proof verification of a value at a given key path. */ VerifyMembership(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; ConsensusStateHeights(request: DeepPartial, metadata?: grpc.Metadata): Promise; ClientStatus(request: DeepPartial, metadata?: grpc.Metadata): Promise; ClientParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; ClientCreator(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpgradedClientState(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpgradedConsensusState(request: DeepPartial, metadata?: grpc.Metadata): Promise; VerifyMembership(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 QueryConsensusStateHeightsDesc: UnaryMethodDefinitionish; export declare const QueryClientStatusDesc: UnaryMethodDefinitionish; export declare const QueryClientParamsDesc: UnaryMethodDefinitionish; export declare const QueryClientCreatorDesc: UnaryMethodDefinitionish; export declare const QueryUpgradedClientStateDesc: UnaryMethodDefinitionish; export declare const QueryUpgradedConsensusStateDesc: UnaryMethodDefinitionish; export declare const QueryVerifyMembershipDesc: 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 {};