import Long from "long"; import { grpc } from "@improbable-eng/grpc-web"; import _m0 from "protobufjs/minimal"; import { Counterparty, Version } from "../../../../ibc/core/connection/v1/connection"; import { Any } from "../../../../google/protobuf/any"; import { Height } from "../../../../ibc/core/client/v1/client"; export declare const protobufPackage = "ibc.core.connection.v1"; /** * MsgConnectionOpenInit defines the msg sent by an account on Chain A to * initialize a connection with Chain B. */ export interface MsgConnectionOpenInit { clientId: string; counterparty?: Counterparty; version?: Version; delayPeriod: Long; signer: string; } /** * MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response * type. */ export interface MsgConnectionOpenInitResponse { } /** * MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a * connection on Chain B. */ export interface MsgConnectionOpenTry { clientId: string; /** * in the case of crossing hello's, when both chains call OpenInit, we need * the connection identifier of the previous connection in state INIT */ previousConnectionId: string; clientState?: Any; counterparty?: Counterparty; delayPeriod: Long; counterpartyVersions: Version[]; proofHeight?: Height; /** * proof of the initialization the connection on Chain A: `UNITIALIZED -> * INIT` */ proofInit: Uint8Array; /** proof of client state included in message */ proofClient: Uint8Array; /** proof of client consensus state */ proofConsensus: Uint8Array; consensusHeight?: Height; signer: string; } /** MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. */ export interface MsgConnectionOpenTryResponse { } /** * MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to * acknowledge the change of connection state to TRYOPEN on Chain B. */ export interface MsgConnectionOpenAck { connectionId: string; counterpartyConnectionId: string; version?: Version; clientState?: Any; proofHeight?: Height; /** * proof of the initialization the connection on Chain B: `UNITIALIZED -> * TRYOPEN` */ proofTry: Uint8Array; /** proof of client state included in message */ proofClient: Uint8Array; /** proof of client consensus state */ proofConsensus: Uint8Array; consensusHeight?: Height; signer: string; } /** MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. */ export interface MsgConnectionOpenAckResponse { } /** * MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to * acknowledge the change of connection state to OPEN on Chain A. */ export interface MsgConnectionOpenConfirm { connectionId: string; /** proof for the change of the connection state on Chain A: `INIT -> OPEN` */ proofAck: Uint8Array; proofHeight?: Height; signer: string; } /** * MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm * response type. */ export interface MsgConnectionOpenConfirmResponse { } export declare const MsgConnectionOpenInit: { encode(message: MsgConnectionOpenInit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgConnectionOpenInit; fromJSON(object: any): MsgConnectionOpenInit; toJSON(message: MsgConnectionOpenInit): unknown; fromPartial(object: DeepPartial): MsgConnectionOpenInit; }; export declare const MsgConnectionOpenInitResponse: { encode(_: MsgConnectionOpenInitResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgConnectionOpenInitResponse; fromJSON(_: any): MsgConnectionOpenInitResponse; toJSON(_: MsgConnectionOpenInitResponse): unknown; fromPartial(_: DeepPartial): MsgConnectionOpenInitResponse; }; export declare const MsgConnectionOpenTry: { encode(message: MsgConnectionOpenTry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgConnectionOpenTry; fromJSON(object: any): MsgConnectionOpenTry; toJSON(message: MsgConnectionOpenTry): unknown; fromPartial(object: DeepPartial): MsgConnectionOpenTry; }; export declare const MsgConnectionOpenTryResponse: { encode(_: MsgConnectionOpenTryResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgConnectionOpenTryResponse; fromJSON(_: any): MsgConnectionOpenTryResponse; toJSON(_: MsgConnectionOpenTryResponse): unknown; fromPartial(_: DeepPartial): MsgConnectionOpenTryResponse; }; export declare const MsgConnectionOpenAck: { encode(message: MsgConnectionOpenAck, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgConnectionOpenAck; fromJSON(object: any): MsgConnectionOpenAck; toJSON(message: MsgConnectionOpenAck): unknown; fromPartial(object: DeepPartial): MsgConnectionOpenAck; }; export declare const MsgConnectionOpenAckResponse: { encode(_: MsgConnectionOpenAckResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgConnectionOpenAckResponse; fromJSON(_: any): MsgConnectionOpenAckResponse; toJSON(_: MsgConnectionOpenAckResponse): unknown; fromPartial(_: DeepPartial): MsgConnectionOpenAckResponse; }; export declare const MsgConnectionOpenConfirm: { encode(message: MsgConnectionOpenConfirm, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgConnectionOpenConfirm; fromJSON(object: any): MsgConnectionOpenConfirm; toJSON(message: MsgConnectionOpenConfirm): unknown; fromPartial(object: DeepPartial): MsgConnectionOpenConfirm; }; export declare const MsgConnectionOpenConfirmResponse: { encode(_: MsgConnectionOpenConfirmResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgConnectionOpenConfirmResponse; fromJSON(_: any): MsgConnectionOpenConfirmResponse; toJSON(_: MsgConnectionOpenConfirmResponse): unknown; fromPartial(_: DeepPartial): MsgConnectionOpenConfirmResponse; }; /** Msg defines the ibc/connection Msg service. */ export interface Msg { /** ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. */ ConnectionOpenInit(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. */ ConnectionOpenTry(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. */ ConnectionOpenAck(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * ConnectionOpenConfirm defines a rpc handler method for * MsgConnectionOpenConfirm. */ ConnectionOpenConfirm(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); ConnectionOpenInit(request: DeepPartial, metadata?: grpc.Metadata): Promise; ConnectionOpenTry(request: DeepPartial, metadata?: grpc.Metadata): Promise; ConnectionOpenAck(request: DeepPartial, metadata?: grpc.Metadata): Promise; ConnectionOpenConfirm(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgConnectionOpenInitDesc: UnaryMethodDefinitionish; export declare const MsgConnectionOpenTryDesc: UnaryMethodDefinitionish; export declare const MsgConnectionOpenAckDesc: UnaryMethodDefinitionish; export declare const MsgConnectionOpenConfirmDesc: 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 {};