/** * Publishes configuration information for validators, and issues reconfiguration events * to synchronize configuration changes for the validators. * * **Module ID:** `0x1::reconfiguration` * * @module */ import type * as p from "@movingco/prelude"; /** * Holds information about state of reconfiguration * * Type name: `0x1::reconfiguration::Configuration` */ export interface IConfiguration { /** Epoch number */ epoch: p.U64; /** Time of last reconfiguration. Only changes on reconfiguration events. */ last_reconfiguration_time: p.U64; /** Event handle for reconfiguration events */ events: { /** Total number of events emitted to this event stream. */ counter: p.U64; /** A globally unique ID for this event stream. */ guid: { id: { /** If creation_num is `i`, this is the `i+1`th GUID created by `addr` */ creation_num: p.U64; /** Address that created the GUID */ addr: p.RawAddress; }; }; }; } /** * Event that signals consensus to start a new epoch, * with new configuration information. This is also called a * "reconfiguration event" * * Type name: `0x1::reconfiguration::NewEpochEvent` */ export interface INewEpochEvent { epoch: p.U64; } export { idl } from "./idl.js"; /** The address of the module. */ export declare const ADDRESS: "0x1"; /** The full module name. */ export declare const FULL_NAME: "0x1::reconfiguration"; /** The name of the module. */ export declare const NAME: "reconfiguration"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::reconfiguration"; readonly NAME: "reconfiguration"; }; export * as errors from "./errors.js"; /** Module error codes. */ export declare const errorCodes: { readonly "1": { readonly name: "ECONFIGURATION"; readonly doc: "The `Configuration` resource is in an invalid state"; }; readonly "2": { readonly name: "ECONFIG"; readonly doc: "A `Reconfiguration` resource is in an invalid state"; }; readonly "3": { readonly name: "EMODIFY_CAPABILITY"; readonly doc: "A `ModifyConfigCapability` is in a different state than was expected"; }; readonly "4": { readonly name: "EINVALID_BLOCK_TIME"; readonly doc: "An invalid block time was encountered."; }; readonly "5": { readonly name: "EINVALID_GUID_FOR_EVENT"; readonly doc: "An invalid block time was encountered."; }; }; /** All module function IDLs. */ export declare const functions: {}; /** All struct types with ability `key`. */ export declare const resources: { readonly Configuration: "0x1::reconfiguration::Configuration"; readonly DisableReconfiguration: "0x1::reconfiguration::DisableReconfiguration"; }; /** All struct types. */ export declare const structs: { readonly Configuration: "0x1::reconfiguration::Configuration"; readonly DisableReconfiguration: "0x1::reconfiguration::DisableReconfiguration"; readonly NewEpochEvent: "0x1::reconfiguration::NewEpochEvent"; }; /** * Publishes configuration information for validators, and issues reconfiguration events * to synchronize configuration changes for the validators. */ export declare const moduleDefinition: { readonly errorCodes: { readonly "1": { readonly name: "ECONFIGURATION"; readonly doc: "The `Configuration` resource is in an invalid state"; }; readonly "2": { readonly name: "ECONFIG"; readonly doc: "A `Reconfiguration` resource is in an invalid state"; }; readonly "3": { readonly name: "EMODIFY_CAPABILITY"; readonly doc: "A `ModifyConfigCapability` is in a different state than was expected"; }; readonly "4": { readonly name: "EINVALID_BLOCK_TIME"; readonly doc: "An invalid block time was encountered."; }; readonly "5": { readonly name: "EINVALID_GUID_FOR_EVENT"; readonly doc: "An invalid block time was encountered."; }; }; readonly functions: {}; readonly resources: { readonly Configuration: "0x1::reconfiguration::Configuration"; readonly DisableReconfiguration: "0x1::reconfiguration::DisableReconfiguration"; }; readonly structs: { readonly Configuration: "0x1::reconfiguration::Configuration"; readonly DisableReconfiguration: "0x1::reconfiguration::DisableReconfiguration"; readonly NewEpochEvent: "0x1::reconfiguration::NewEpochEvent"; }; readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::reconfiguration"; readonly NAME: "reconfiguration"; }; //# sourceMappingURL=index.d.ts.map