/** * This module keeps a global wall clock that stores the current Unix time in microseconds. * It interacts with the other modules in the following ways: * * * Genesis: to initialize the timestamp * * ValidatorSystem, AptosAccount, Reconfiguration: to check if the current state is in the genesis state * * Block: to reach consensus on the global wall clock time * * This module moreover enables code to assert that it is running in genesis (`Self::assert_genesis`) or after * genesis (`Self::assert_operating`). These are essentially distinct states of the system. Specifically, * if `Self::assert_operating` succeeds, assumptions about invariants over the global state can be made * which reflect that the system has been successfully initialized. * * **Module ID:** `0x1::timestamp` * * @module */ import type * as p from "@movingco/prelude"; /** * A singleton resource holding the current Unix time in microseconds * * Type name: `0x1::timestamp::CurrentTimeMicroseconds` */ export interface ICurrentTimeMicroseconds { microseconds: 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::timestamp"; /** The name of the module. */ export declare const NAME: "timestamp"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::timestamp"; readonly NAME: "timestamp"; }; export * as errors from "./errors.js"; /** Module error codes. */ export declare const errorCodes: { readonly "1": { readonly name: "ENOT_OPERATING"; readonly doc: "The blockchain is not in an operating state yet"; }; readonly "2": { readonly name: "EINVALID_TIMESTAMP"; readonly doc: "An invalid timestamp was provided"; }; }; /** All module function IDLs. */ export declare const functions: {}; /** All struct types with ability `key`. */ export declare const resources: { readonly CurrentTimeMicroseconds: "0x1::timestamp::CurrentTimeMicroseconds"; }; /** All struct types. */ export declare const structs: { readonly CurrentTimeMicroseconds: "0x1::timestamp::CurrentTimeMicroseconds"; }; /** * This module keeps a global wall clock that stores the current Unix time in microseconds. * It interacts with the other modules in the following ways: * * * Genesis: to initialize the timestamp * * ValidatorSystem, AptosAccount, Reconfiguration: to check if the current state is in the genesis state * * Block: to reach consensus on the global wall clock time * * This module moreover enables code to assert that it is running in genesis (`Self::assert_genesis`) or after * genesis (`Self::assert_operating`). These are essentially distinct states of the system. Specifically, * if `Self::assert_operating` succeeds, assumptions about invariants over the global state can be made * which reflect that the system has been successfully initialized. */ export declare const moduleDefinition: { readonly errorCodes: { readonly "1": { readonly name: "ENOT_OPERATING"; readonly doc: "The blockchain is not in an operating state yet"; }; readonly "2": { readonly name: "EINVALID_TIMESTAMP"; readonly doc: "An invalid timestamp was provided"; }; }; readonly functions: {}; readonly resources: { readonly CurrentTimeMicroseconds: "0x1::timestamp::CurrentTimeMicroseconds"; }; readonly structs: { readonly CurrentTimeMicroseconds: "0x1::timestamp::CurrentTimeMicroseconds"; }; readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::timestamp"; readonly NAME: "timestamp"; }; //# sourceMappingURL=index.d.ts.map