import { GetStorage } from "../../../src/storage"; /** * This is the doc comment for pallet `Aura`'s storages. * * `Aura`'s calls: {@link: module:pangolin/aura/calls} * * @module pangolin/aura/storages */ export const getAura = (getStorage: GetStorage) => { return { /** * The current authority set. * * @returns {Promise} BoundedVec: Vec<[U8; 32]> */ authorities: async (): Promise => { return await getStorage('Aura', 'Authorities'); }, /** * The current slot of this block. * * This will be set in `on_initialize`. * * @returns {Promise} Slot: U64 */ currentSlot: async (): Promise => { return await getStorage('Aura', 'CurrentSlot'); }, }; };