/** * This is the doc comment for pallet `Timestamp`'s calls. * * `Timestamp`'s storages: {@link: module:pangolin/timestamp/storages} * * @module pangolin/timestamp/calls */ import { Dispatch } from "../../../index"; import { ethers, BytesLike } from "ethers"; import { Metadata } from "@polkadot/types"; export declare const getTimestamp: (dispatch: Dispatch, metadata: Metadata) => { /** * Set the current time. * * This call should be invoked exactly once per block. It will panic at the finalization * phase, if this call hasn't been invoked by that time. * * The timestamp should be greater than the previous one by the amount specified by * `MinimumPeriod`. * * The dispatch origin for this call must be `Inherent`. * * ## Complexity * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`) * - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in * `on_finalize`) * - 1 event handler `on_timestamp_set`. Must be `O(1)`. * * @param {unknown} _now Compact * @instance */ set: (signer: ethers.Signer, _now: unknown) => Promise; /** * Similar to {@link: pangolin/timestamp/calls/set}, but with scale encoded args. * * @param {BytesLike} argsBytes the args bytes * @instance */ setH: (signer: ethers.Signer, argsBytes: BytesLike) => Promise; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * * @returns {CallAsParam} */ buildSetCall: (_now: unknown) => import("../../../index").CallAsParam; /** * Build a call object to be used as a call param in other functions, such as `utilities.batchAll`. * Similar to buildSetCall, but with scale encoded args. * * @returns {CallAsParam} */ buildSetCallH: (argsBytes: BytesLike) => import("../../../index").CallAsParam; };