import * as Long from 'long'; import { Any } from '../../../google/protobuf/any'; import { Writer, Reader } from 'protobufjs/minimal'; /** * 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; /** * The time after which the upgrade must be performed. * Leave set to its zero value to use a pre-defined Height instead. */ time?: Date; /** * The height at which the upgrade must be performed. * Only used if Time is not set. */ height: Long; /** * Any application specific upgrade info to be included on-chain * such as a git commit that validators could automatically upgrade to */ info: string; /** * IBC-enabled chains can opt-in to including the upgraded client state in its upgrade plan * This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, * so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the * previous version of the chain. * This will allow IBC connections to persist smoothly across planned chain upgrades */ upgradedClientState?: Any; } /** * SoftwareUpgradeProposal is a gov Content type for initiating a software * upgrade. */ export interface SoftwareUpgradeProposal { title: string; description: string; plan?: Plan; } /** * CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software * upgrade. */ export interface CancelSoftwareUpgradeProposal { title: string; description: string; } export declare const protobufPackage = "cosmos.upgrade.v1beta1"; export declare const Plan: { encode(message: Plan, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): Plan; fromJSON(object: any): Plan; fromPartial(object: DeepPartial): Plan; toJSON(message: Plan): unknown; }; export declare const SoftwareUpgradeProposal: { encode(message: SoftwareUpgradeProposal, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): SoftwareUpgradeProposal; fromJSON(object: any): SoftwareUpgradeProposal; fromPartial(object: DeepPartial): SoftwareUpgradeProposal; toJSON(message: SoftwareUpgradeProposal): unknown; }; export declare const CancelSoftwareUpgradeProposal: { encode(message: CancelSoftwareUpgradeProposal, writer?: Writer): Writer; decode(input: Uint8Array | Reader, length?: number | undefined): CancelSoftwareUpgradeProposal; fromJSON(object: any): CancelSoftwareUpgradeProposal; fromPartial(object: DeepPartial): CancelSoftwareUpgradeProposal; toJSON(message: CancelSoftwareUpgradeProposal): unknown; }; declare type Builtin = Date | Function | Uint8Array | string | number | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};