import { GetStorage } from "../../../src/storage"; /** * This is the doc comment for pallet `Timestamp`'s storages. * * `Timestamp`'s calls: {@link: module:pangolin/timestamp/calls} * * @module pangolin/timestamp/storages */ export const getTimestamp = (getStorage: GetStorage) => { return { /** * Current time for the current block. * * @returns {Promise} U64 */ now: async (): Promise => { return await getStorage('Timestamp', 'Now'); }, /** * Did the timestamp get updated in this block? * * @returns {Promise} Bool */ didUpdate: async (): Promise => { return await getStorage('Timestamp', 'DidUpdate'); }, }; };