import { BinaryReader, BinaryWriter } from '../../../../binary.js'; import { type JsonSafe } from '../../../../json-safe.js'; /** * GenesisState defines the ibc channel/v2 submodule's genesis state. * @name GenesisState * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.GenesisState */ export interface GenesisState { acknowledgements: PacketState[]; commitments: PacketState[]; receipts: PacketState[]; asyncPackets: PacketState[]; sendSequences: PacketSequence[]; } export interface GenesisStateProtoMsg { typeUrl: '/ibc.core.channel.v2.GenesisState'; value: Uint8Array; } /** * GenesisState defines the ibc channel/v2 submodule's genesis state. * @name GenesisStateSDKType * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.GenesisState */ export interface GenesisStateSDKType { acknowledgements: PacketStateSDKType[]; commitments: PacketStateSDKType[]; receipts: PacketStateSDKType[]; async_packets: PacketStateSDKType[]; send_sequences: PacketSequenceSDKType[]; } /** * 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. * @name PacketState * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.PacketState */ export interface PacketState { /** * client unique identifier. */ clientId: string; /** * packet sequence. */ sequence: bigint; /** * embedded data that represents packet state. */ data: Uint8Array; } export interface PacketStateProtoMsg { typeUrl: '/ibc.core.channel.v2.PacketState'; value: Uint8Array; } /** * 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. * @name PacketStateSDKType * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.PacketState */ export interface PacketStateSDKType { client_id: string; sequence: bigint; data: Uint8Array; } /** * PacketSequence defines the genesis type necessary to retrieve and store next send sequences. * @name PacketSequence * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.PacketSequence */ export interface PacketSequence { /** * client unique identifier. */ clientId: string; /** * packet sequence */ sequence: bigint; } export interface PacketSequenceProtoMsg { typeUrl: '/ibc.core.channel.v2.PacketSequence'; value: Uint8Array; } /** * PacketSequence defines the genesis type necessary to retrieve and store next send sequences. * @name PacketSequenceSDKType * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.PacketSequence */ export interface PacketSequenceSDKType { client_id: string; sequence: bigint; } /** * GenesisState defines the ibc channel/v2 submodule's genesis state. * @name GenesisState * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.GenesisState */ export declare const GenesisState: { typeUrl: "/ibc.core.channel.v2.GenesisState"; aminoType: "cosmos-sdk/GenesisState"; is(o: any): o is GenesisState; isSDK(o: any): o is GenesisStateSDKType; encode(message: GenesisState, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): GenesisState; fromJSON(object: any): GenesisState; toJSON(message: GenesisState): JsonSafe; fromPartial(object: Partial): GenesisState; fromProtoMsg(message: GenesisStateProtoMsg): GenesisState; toProto(message: GenesisState): Uint8Array; toProtoMsg(message: GenesisState): GenesisStateProtoMsg; }; /** * 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. * @name PacketState * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.PacketState */ export declare const PacketState: { typeUrl: "/ibc.core.channel.v2.PacketState"; aminoType: "cosmos-sdk/PacketState"; is(o: any): o is PacketState; isSDK(o: any): o is PacketStateSDKType; encode(message: PacketState, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PacketState; fromJSON(object: any): PacketState; toJSON(message: PacketState): JsonSafe; fromPartial(object: Partial): PacketState; fromProtoMsg(message: PacketStateProtoMsg): PacketState; toProto(message: PacketState): Uint8Array; toProtoMsg(message: PacketState): PacketStateProtoMsg; }; /** * PacketSequence defines the genesis type necessary to retrieve and store next send sequences. * @name PacketSequence * @package ibc.core.channel.v2 * @see proto type: ibc.core.channel.v2.PacketSequence */ export declare const PacketSequence: { typeUrl: "/ibc.core.channel.v2.PacketSequence"; aminoType: "cosmos-sdk/PacketSequence"; is(o: any): o is PacketSequence; isSDK(o: any): o is PacketSequenceSDKType; encode(message: PacketSequence, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): PacketSequence; fromJSON(object: any): PacketSequence; toJSON(message: PacketSequence): JsonSafe; fromPartial(object: Partial): PacketSequence; fromProtoMsg(message: PacketSequenceProtoMsg): PacketSequence; toProto(message: PacketSequence): Uint8Array; toProtoMsg(message: PacketSequence): PacketSequenceProtoMsg; }; //# sourceMappingURL=genesis.d.ts.map