import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * PacketStatus specifies the status of a RecvPacketResult. * * @generated from enum ibc.core.channel.v2.PacketStatus */ export declare enum PacketStatus { /** * PACKET_STATUS_UNSPECIFIED indicates an unknown packet status. * * @generated from enum value: PACKET_STATUS_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * PACKET_STATUS_SUCCESS indicates a successful packet receipt. * * @generated from enum value: PACKET_STATUS_SUCCESS = 1; */ SUCCESS = 1, /** * PACKET_STATUS_FAILURE indicates a failed packet receipt. * * @generated from enum value: PACKET_STATUS_FAILURE = 2; */ FAILURE = 2, /** * PACKET_STATUS_ASYNC indicates an async packet receipt. * * @generated from enum value: PACKET_STATUS_ASYNC = 3; */ ASYNC = 3 } /** * Packet defines a type that carries data across different chains through IBC * * @generated from message ibc.core.channel.v2.Packet */ export declare class Packet extends Message { /** * number corresponds to the order of sends and receives, where a Packet * with an earlier sequence number must be sent and received before a Packet * with a later sequence number. * * @generated from field: uint64 sequence = 1; */ sequence: bigint; /** * identifies the sending client on the sending chain. * * @generated from field: string source_client = 2; */ sourceClient: string; /** * identifies the receiving client on the receiving chain. * * @generated from field: string destination_client = 3; */ destinationClient: string; /** * timeout timestamp in seconds after which the packet times out. * * @generated from field: uint64 timeout_timestamp = 4; */ timeoutTimestamp: bigint; /** * a list of payloads, each one for a specific application. * * @generated from field: repeated ibc.core.channel.v2.Payload payloads = 5; */ payloads: Payload[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "ibc.core.channel.v2.Packet"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Packet; static fromJson(jsonValue: JsonValue, options?: Partial): Packet; static fromJsonString(jsonString: string, options?: Partial): Packet; static equals(a: Packet | PlainMessage | undefined, b: Packet | PlainMessage | undefined): boolean; } /** * Payload contains the source and destination ports and payload for the application (version, encoding, raw bytes) * * @generated from message ibc.core.channel.v2.Payload */ export declare class Payload extends Message { /** * specifies the source port of the packet. * * @generated from field: string source_port = 1; */ sourcePort: string; /** * specifies the destination port of the packet. * * @generated from field: string destination_port = 2; */ destinationPort: string; /** * version of the specified application. * * @generated from field: string version = 3; */ version: string; /** * the encoding used for the provided value. * * @generated from field: string encoding = 4; */ encoding: string; /** * the raw bytes for the payload. * * @generated from field: bytes value = 5; */ value: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "ibc.core.channel.v2.Payload"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Payload; static fromJson(jsonValue: JsonValue, options?: Partial): Payload; static fromJsonString(jsonString: string, options?: Partial): Payload; static equals(a: Payload | PlainMessage | undefined, b: Payload | PlainMessage | undefined): boolean; } /** * Acknowledgement contains a list of all ack results associated with a single packet. * In the case of a successful receive, the acknowledgement will contain an app acknowledgement * for each application that received a payload in the same order that the payloads were sent * in the packet. * If the receive is not successful, the acknowledgement will contain a single app acknowledgment * which will be a constant error acknowledgment as defined by the IBC v2 protocol. * * @generated from message ibc.core.channel.v2.Acknowledgement */ export declare class Acknowledgement extends Message { /** * @generated from field: repeated bytes app_acknowledgements = 1; */ appAcknowledgements: Uint8Array[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "ibc.core.channel.v2.Acknowledgement"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Acknowledgement; static fromJson(jsonValue: JsonValue, options?: Partial): Acknowledgement; static fromJsonString(jsonString: string, options?: Partial): Acknowledgement; static equals(a: Acknowledgement | PlainMessage | undefined, b: Acknowledgement | PlainMessage | undefined): boolean; } /** * RecvPacketResult speecifies the status of a packet as well as the acknowledgement bytes. * * @generated from message ibc.core.channel.v2.RecvPacketResult */ export declare class RecvPacketResult extends Message { /** * status of the packet * * @generated from field: ibc.core.channel.v2.PacketStatus status = 1; */ status: PacketStatus; /** * acknowledgement of the packet * * @generated from field: bytes acknowledgement = 2; */ acknowledgement: Uint8Array; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "ibc.core.channel.v2.RecvPacketResult"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): RecvPacketResult; static fromJson(jsonValue: JsonValue, options?: Partial): RecvPacketResult; static fromJsonString(jsonString: string, options?: Partial): RecvPacketResult; static equals(a: RecvPacketResult | PlainMessage | undefined, b: RecvPacketResult | PlainMessage | undefined): boolean; } //# sourceMappingURL=packet_pb.d.ts.map