import { Any, AnyAmino, AnySDKType } from "../../../google/protobuf/any";
import { BinaryReader, BinaryWriter } from "../../../binary";
/** Plan specifies information about a planned upgrade and when it should occur. */
export interface Plan {
/**
* Sets the name for the upgrade. This name will be used by the upgraded
* version of the software to apply any special "on-upgrade" commands during
* the first BeginBlock method after the upgrade is applied. It is also used
* to detect whether a software version can handle a given upgrade. If no
* upgrade handler with this name has been set in the software, it will be
* assumed that the software is out-of-date when the upgrade Time or Height is
* reached and the software will exit.
*/
name: string;
/**
* Deprecated: Time based upgrades have been deprecated. Time based upgrade logic
* has been removed from the SDK.
* If this field is not empty, an error will be thrown.
*/
/** @deprecated */
time: Date;
/** The height at which the upgrade must be performed. */
height: bigint;
/**
* Any application specific upgrade info to be included on-chain
* such as a git commit that validators could automatically upgrade to
*/
info: string;
/**
* Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
* moved to the IBC module in the sub module 02-client.
* If this field is not empty, an error will be thrown.
*/
/** @deprecated */
upgradedClientState?: Any;
}
export interface PlanProtoMsg {
typeUrl: "/cosmos.upgrade.v1beta1.Plan";
value: Uint8Array;
}
/** Plan specifies information about a planned upgrade and when it should occur. */
export interface PlanAmino {
/**
* Sets the name for the upgrade. This name will be used by the upgraded
* version of the software to apply any special "on-upgrade" commands during
* the first BeginBlock method after the upgrade is applied. It is also used
* to detect whether a software version can handle a given upgrade. If no
* upgrade handler with this name has been set in the software, it will be
* assumed that the software is out-of-date when the upgrade Time or Height is
* reached and the software will exit.
*/
name?: string;
/**
* Deprecated: Time based upgrades have been deprecated. Time based upgrade logic
* has been removed from the SDK.
* If this field is not empty, an error will be thrown.
*/
/** @deprecated */
time: string;
/** The height at which the upgrade must be performed. */
height?: string;
/**
* Any application specific upgrade info to be included on-chain
* such as a git commit that validators could automatically upgrade to
*/
info?: string;
/**
* Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been
* moved to the IBC module in the sub module 02-client.
* If this field is not empty, an error will be thrown.
*/
/** @deprecated */
upgraded_client_state?: AnyAmino;
}
export interface PlanAminoMsg {
type: "cosmos-sdk/Plan";
value: PlanAmino;
}
/** Plan specifies information about a planned upgrade and when it should occur. */
export interface PlanSDKType {
name: string;
/** @deprecated */
time: Date;
height: bigint;
info: string;
/** @deprecated */
upgraded_client_state?: AnySDKType;
}
/**
* SoftwareUpgradeProposal is a gov Content type for initiating a software
* upgrade.
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
* proposals, see MsgSoftwareUpgrade.
*/
/** @deprecated */
export interface SoftwareUpgradeProposal {
$typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal";
/** title of the proposal */
title: string;
/** description of the proposal */
description: string;
/** plan of the proposal */
plan: Plan;
}
export interface SoftwareUpgradeProposalProtoMsg {
typeUrl: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal";
value: Uint8Array;
}
/**
* SoftwareUpgradeProposal is a gov Content type for initiating a software
* upgrade.
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
* proposals, see MsgSoftwareUpgrade.
*/
/** @deprecated */
export interface SoftwareUpgradeProposalAmino {
/** title of the proposal */
title?: string;
/** description of the proposal */
description?: string;
/** plan of the proposal */
plan: PlanAmino;
}
export interface SoftwareUpgradeProposalAminoMsg {
type: "cosmos-sdk/SoftwareUpgradeProposal";
value: SoftwareUpgradeProposalAmino;
}
/**
* SoftwareUpgradeProposal is a gov Content type for initiating a software
* upgrade.
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
* proposals, see MsgSoftwareUpgrade.
*/
/** @deprecated */
export interface SoftwareUpgradeProposalSDKType {
$typeUrl?: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal";
title: string;
description: string;
plan: PlanSDKType;
}
/**
* CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
* upgrade.
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
* proposals, see MsgCancelUpgrade.
*/
/** @deprecated */
export interface CancelSoftwareUpgradeProposal {
$typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal";
/** title of the proposal */
title: string;
/** description of the proposal */
description: string;
}
export interface CancelSoftwareUpgradeProposalProtoMsg {
typeUrl: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal";
value: Uint8Array;
}
/**
* CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
* upgrade.
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
* proposals, see MsgCancelUpgrade.
*/
/** @deprecated */
export interface CancelSoftwareUpgradeProposalAmino {
/** title of the proposal */
title?: string;
/** description of the proposal */
description?: string;
}
export interface CancelSoftwareUpgradeProposalAminoMsg {
type: "cosmos-sdk/CancelSoftwareUpgradeProposal";
value: CancelSoftwareUpgradeProposalAmino;
}
/**
* CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software
* upgrade.
* Deprecated: This legacy proposal is deprecated in favor of Msg-based gov
* proposals, see MsgCancelUpgrade.
*/
/** @deprecated */
export interface CancelSoftwareUpgradeProposalSDKType {
$typeUrl?: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal";
title: string;
description: string;
}
/**
* ModuleVersion specifies a module and its consensus version.
*
* Since: cosmos-sdk 0.43
*/
export interface ModuleVersion {
/** name of the app module */
name: string;
/** consensus version of the app module */
version: bigint;
}
export interface ModuleVersionProtoMsg {
typeUrl: "/cosmos.upgrade.v1beta1.ModuleVersion";
value: Uint8Array;
}
/**
* ModuleVersion specifies a module and its consensus version.
*
* Since: cosmos-sdk 0.43
*/
export interface ModuleVersionAmino {
/** name of the app module */
name?: string;
/** consensus version of the app module */
version?: string;
}
export interface ModuleVersionAminoMsg {
type: "cosmos-sdk/ModuleVersion";
value: ModuleVersionAmino;
}
/**
* ModuleVersion specifies a module and its consensus version.
*
* Since: cosmos-sdk 0.43
*/
export interface ModuleVersionSDKType {
name: string;
version: bigint;
}
export declare const Plan: {
typeUrl: string;
aminoType: string;
is(o: any): o is Plan;
isSDK(o: any): o is PlanSDKType;
isAmino(o: any): o is PlanAmino;
encode(message: Plan, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Plan;
fromPartial(object: Partial<Plan>): Plan;
fromAmino(object: PlanAmino): Plan;
toAmino(message: Plan): PlanAmino;
fromAminoMsg(object: PlanAminoMsg): Plan;
toAminoMsg(message: Plan): PlanAminoMsg;
fromProtoMsg(message: PlanProtoMsg): Plan;
toProto(message: Plan): Uint8Array;
toProtoMsg(message: Plan): PlanProtoMsg;
};
export declare const SoftwareUpgradeProposal: {
typeUrl: string;
aminoType: string;
is(o: any): o is SoftwareUpgradeProposal;
isSDK(o: any): o is SoftwareUpgradeProposalSDKType;
isAmino(o: any): o is SoftwareUpgradeProposalAmino;
encode(message: SoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): SoftwareUpgradeProposal;
fromPartial(object: Partial<SoftwareUpgradeProposal>): SoftwareUpgradeProposal;
fromAmino(object: SoftwareUpgradeProposalAmino): SoftwareUpgradeProposal;
toAmino(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAmino;
fromAminoMsg(object: SoftwareUpgradeProposalAminoMsg): SoftwareUpgradeProposal;
toAminoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalAminoMsg;
fromProtoMsg(message: SoftwareUpgradeProposalProtoMsg): SoftwareUpgradeProposal;
toProto(message: SoftwareUpgradeProposal): Uint8Array;
toProtoMsg(message: SoftwareUpgradeProposal): SoftwareUpgradeProposalProtoMsg;
};
export declare const CancelSoftwareUpgradeProposal: {
typeUrl: string;
aminoType: string;
is(o: any): o is CancelSoftwareUpgradeProposal;
isSDK(o: any): o is CancelSoftwareUpgradeProposalSDKType;
isAmino(o: any): o is CancelSoftwareUpgradeProposalAmino;
encode(message: CancelSoftwareUpgradeProposal, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): CancelSoftwareUpgradeProposal;
fromPartial(object: Partial<CancelSoftwareUpgradeProposal>): CancelSoftwareUpgradeProposal;
fromAmino(object: CancelSoftwareUpgradeProposalAmino): CancelSoftwareUpgradeProposal;
toAmino(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAmino;
fromAminoMsg(object: CancelSoftwareUpgradeProposalAminoMsg): CancelSoftwareUpgradeProposal;
toAminoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalAminoMsg;
fromProtoMsg(message: CancelSoftwareUpgradeProposalProtoMsg): CancelSoftwareUpgradeProposal;
toProto(message: CancelSoftwareUpgradeProposal): Uint8Array;
toProtoMsg(message: CancelSoftwareUpgradeProposal): CancelSoftwareUpgradeProposalProtoMsg;
};
export declare const ModuleVersion: {
typeUrl: string;
aminoType: string;
is(o: any): o is ModuleVersion;
isSDK(o: any): o is ModuleVersionSDKType;
isAmino(o: any): o is ModuleVersionAmino;
encode(message: ModuleVersion, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): ModuleVersion;
fromPartial(object: Partial<ModuleVersion>): ModuleVersion;
fromAmino(object: ModuleVersionAmino): ModuleVersion;
toAmino(message: ModuleVersion): ModuleVersionAmino;
fromAminoMsg(object: ModuleVersionAminoMsg): ModuleVersion;
toAminoMsg(message: ModuleVersion): ModuleVersionAminoMsg;
fromProtoMsg(message: ModuleVersionProtoMsg): ModuleVersion;
toProto(message: ModuleVersion): Uint8Array;
toProtoMsg(message: ModuleVersion): ModuleVersionProtoMsg;
};