import { Timeout, type TimeoutSDKType, Order } from './channel.js'; import { BinaryReader, BinaryWriter } from '../../../../binary.js'; import { type JsonSafe } from '../../../../json-safe.js'; /** * Upgrade is a verifiable type which contains the relevant information * for an attempted upgrade. It provides the proposed changes to the channel * end, the timeout for this upgrade attempt and the next packet sequence * which allows the counterparty to efficiently know the highest sequence it has received. * The next sequence send is used for pruning and upgrading from unordered to ordered channels. */ export interface Upgrade { fields: UpgradeFields; timeout: Timeout; nextSequenceSend: bigint; } export interface UpgradeProtoMsg { typeUrl: '/ibc.core.channel.v1.Upgrade'; value: Uint8Array; } /** * Upgrade is a verifiable type which contains the relevant information * for an attempted upgrade. It provides the proposed changes to the channel * end, the timeout for this upgrade attempt and the next packet sequence * which allows the counterparty to efficiently know the highest sequence it has received. * The next sequence send is used for pruning and upgrading from unordered to ordered channels. */ export interface UpgradeSDKType { fields: UpgradeFieldsSDKType; timeout: TimeoutSDKType; next_sequence_send: bigint; } /** * UpgradeFields are the fields in a channel end which may be changed * during a channel upgrade. */ export interface UpgradeFields { ordering: Order; connectionHops: string[]; version: string; } export interface UpgradeFieldsProtoMsg { typeUrl: '/ibc.core.channel.v1.UpgradeFields'; value: Uint8Array; } /** * UpgradeFields are the fields in a channel end which may be changed * during a channel upgrade. */ export interface UpgradeFieldsSDKType { ordering: Order; connection_hops: string[]; version: string; } /** * ErrorReceipt defines a type which encapsulates the upgrade sequence and error associated with the * upgrade handshake failure. When a channel upgrade handshake is aborted both chains are expected to increment to the * next sequence. */ export interface ErrorReceipt { /** the channel upgrade sequence */ sequence: bigint; /** the error message detailing the cause of failure */ message: string; } export interface ErrorReceiptProtoMsg { typeUrl: '/ibc.core.channel.v1.ErrorReceipt'; value: Uint8Array; } /** * ErrorReceipt defines a type which encapsulates the upgrade sequence and error associated with the * upgrade handshake failure. When a channel upgrade handshake is aborted both chains are expected to increment to the * next sequence. */ export interface ErrorReceiptSDKType { sequence: bigint; message: string; } export declare const Upgrade: { typeUrl: "/ibc.core.channel.v1.Upgrade"; encode(message: Upgrade, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Upgrade; fromJSON(object: any): Upgrade; toJSON(message: Upgrade): JsonSafe; fromPartial(object: Partial): Upgrade; fromProtoMsg(message: UpgradeProtoMsg): Upgrade; toProto(message: Upgrade): Uint8Array; toProtoMsg(message: Upgrade): UpgradeProtoMsg; }; export declare const UpgradeFields: { typeUrl: "/ibc.core.channel.v1.UpgradeFields"; encode(message: UpgradeFields, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): UpgradeFields; fromJSON(object: any): UpgradeFields; toJSON(message: UpgradeFields): JsonSafe; fromPartial(object: Partial): UpgradeFields; fromProtoMsg(message: UpgradeFieldsProtoMsg): UpgradeFields; toProto(message: UpgradeFields): Uint8Array; toProtoMsg(message: UpgradeFields): UpgradeFieldsProtoMsg; }; export declare const ErrorReceipt: { typeUrl: "/ibc.core.channel.v1.ErrorReceipt"; encode(message: ErrorReceipt, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ErrorReceipt; fromJSON(object: any): ErrorReceipt; toJSON(message: ErrorReceipt): JsonSafe; fromPartial(object: Partial): ErrorReceipt; fromProtoMsg(message: ErrorReceiptProtoMsg): ErrorReceipt; toProto(message: ErrorReceipt): Uint8Array; toProtoMsg(message: ErrorReceipt): ErrorReceiptProtoMsg; }; //# sourceMappingURL=upgrade.d.ts.map