PacketState defines the generic type necessary to retrieve and store packet commitments, acknowledgements, and receipts. Caller is responsible for knowing the context necessary to interpret this state as a commitment, acknowledgement, or a receipt.

interface PacketState {
    channelId: string;
    data: Uint8Array;
    portId: string;
    sequence: bigint;
}

Properties

channelId: string

channel unique identifier.

data: Uint8Array

embedded data that represents packet state.

portId: string

channel port identifier.

sequence: bigint

packet sequence.