augment-api-query.ts 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262
  1. // Auto-generated via `yarn polkadot-types-from-chain`, do not edit
  2. /* eslint-disable */
  3. import type { Bytes, Option, Vec, bool, u32, u64 } from '@polkadot/types';
  4. import type { AnyNumber, ITuple, Observable } from '@polkadot/types/types';
  5. import type { Application, ApplicationId, ApplicationOf, Bag, BagId, Category, CategoryId, Channel, ChannelId, Cid, Class, ClassId, ClassOf, ClassPermissionsType, Credential, Curator, CuratorApplication, CuratorApplicationId, CuratorGroup, CuratorGroupId, CuratorId, CuratorOpening, CuratorOpeningId, DataObject, DataObjectId, DiscussionPost, DiscussionThread, DistributionBucketFamily, DistributionBucketFamilyId, DistributionBucketId, DynamicBagCreationPolicy, DynamicBagType, ElectionStage, ElectionStake, Entity, EntityController, EntityCreationVoucher, EntityId, EntityOf, HiringApplicationId, InputValidationLengthConstraint, Lead, LeadId, MemberId, Membership, MemoText, Mint, MintId, Opening, OpeningId, OpeningOf, PaidMembershipTerms, PaidTermId, Post, PostId, Principal, PrincipalId, PropertyId, ProposalDetailsOf, ProposalId, ProposalOf, Recipient, RecipientId, RewardRelationship, RewardRelationshipId, SealedVote, Seats, Stake, StakeId, StorageBucket, StorageBucketId, Thread, ThreadCounter, ThreadId, TransferableStake, VoteKind, WorkerId, WorkerOf, WorkingGroupUnstaker } from './all';
  6. import type { UncleEntryItem } from '@polkadot/types/interfaces/authorship';
  7. import type { BabeAuthorityWeight, MaybeRandomness, NextConfigDescriptor, Randomness } from '@polkadot/types/interfaces/babe';
  8. import type { AccountData, BalanceLock } from '@polkadot/types/interfaces/balances';
  9. import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
  10. import type { SetId, StoredPendingChange, StoredState } from '@polkadot/types/interfaces/grandpa';
  11. import type { AuthIndex } from '@polkadot/types/interfaces/imOnline';
  12. import type { DeferredOffenceOf, Kind, OffenceDetails, OpaqueTimeSlot, ReportIdOf } from '@polkadot/types/interfaces/offences';
  13. import type { AccountId, Balance, BalanceOf, BlockNumber, ExtrinsicsWeight, Hash, KeyTypeId, Moment, Perbill, Releases, ValidatorId } from '@polkadot/types/interfaces/runtime';
  14. import type { Keys, SessionIndex } from '@polkadot/types/interfaces/session';
  15. import type { ActiveEraInfo, ElectionResult, ElectionScore, ElectionStatus, EraIndex, EraRewardPoints, Exposure, Forcing, Nominations, RewardDestination, SlashingSpans, SpanIndex, SpanRecord, StakingLedger, UnappliedSlash, ValidatorPrefs } from '@polkadot/types/interfaces/staking';
  16. import type { AccountInfo, DigestOf, EventIndex, EventRecord, LastRuntimeUpgradeInfo, Phase } from '@polkadot/types/interfaces/system';
  17. import type { Multiplier } from '@polkadot/types/interfaces/txpayment';
  18. import type { ApiTypes } from '@polkadot/api/types';
  19. declare module '@polkadot/api/types/storage' {
  20. export interface AugmentedQueries<ApiType> {
  21. authorship: {
  22. /**
  23. * Author of current block.
  24. **/
  25. author: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>, []>;
  26. /**
  27. * Whether uncles were already set in this block.
  28. **/
  29. didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  30. /**
  31. * Uncles
  32. **/
  33. uncles: AugmentedQuery<ApiType, () => Observable<Vec<UncleEntryItem>>, []>;
  34. };
  35. babe: {
  36. /**
  37. * Current epoch authorities.
  38. **/
  39. authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AuthorityId, BabeAuthorityWeight]>>>, []>;
  40. /**
  41. * Current slot number.
  42. **/
  43. currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  44. /**
  45. * Current epoch index.
  46. **/
  47. epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  48. /**
  49. * The slot at which the first epoch actually started. This is 0
  50. * until the first block of the chain.
  51. **/
  52. genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  53. /**
  54. * Temporary value (cleared at block finalization) which is `Some`
  55. * if per-block initialization has already been called for current block.
  56. **/
  57. initialized: AugmentedQuery<ApiType, () => Observable<Option<MaybeRandomness>>, []>;
  58. /**
  59. * How late the current block is compared to its parent.
  60. *
  61. * This entry is populated as part of block execution and is cleaned up
  62. * on block finalization. Querying this storage entry outside of block
  63. * execution context should always yield zero.
  64. **/
  65. lateness: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  66. /**
  67. * Next epoch configuration, if changed.
  68. **/
  69. nextEpochConfig: AugmentedQuery<ApiType, () => Observable<Option<NextConfigDescriptor>>, []>;
  70. /**
  71. * Next epoch randomness.
  72. **/
  73. nextRandomness: AugmentedQuery<ApiType, () => Observable<Randomness>, []>;
  74. /**
  75. * The epoch randomness for the *current* epoch.
  76. *
  77. * # Security
  78. *
  79. * This MUST NOT be used for gambling, as it can be influenced by a
  80. * malicious validator in the short term. It MAY be used in many
  81. * cryptographic protocols, however, so long as one remembers that this
  82. * (like everything else on-chain) it is public. For example, it can be
  83. * used where a number is needed that cannot have been chosen by an
  84. * adversary, for purposes such as public-coin zero-knowledge proofs.
  85. **/
  86. randomness: AugmentedQuery<ApiType, () => Observable<Randomness>, []>;
  87. /**
  88. * Randomness under construction.
  89. *
  90. * We make a tradeoff between storage accesses and list length.
  91. * We store the under-construction randomness in segments of up to
  92. * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
  93. *
  94. * Once a segment reaches this length, we begin the next one.
  95. * We reset all segments and return to `0` at the beginning of every
  96. * epoch.
  97. **/
  98. segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  99. /**
  100. * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
  101. **/
  102. underConstruction: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Randomness>>, [u32]>;
  103. };
  104. balances: {
  105. /**
  106. * The balance of an account.
  107. *
  108. * NOTE: This is only used in the case that this module is used to store balances.
  109. **/
  110. account: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<AccountData>, [AccountId]>;
  111. /**
  112. * Any liquidity locks on some account balances.
  113. * NOTE: Should only be accessed when setting, changing and freeing a lock.
  114. **/
  115. locks: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<BalanceLock>>, [AccountId]>;
  116. /**
  117. * Storage version of the pallet.
  118. *
  119. * This is set to v2.0.0 for new networks.
  120. **/
  121. storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
  122. /**
  123. * The total units issued in the system.
  124. **/
  125. totalIssuance: AugmentedQuery<ApiType, () => Observable<Balance>, []>;
  126. };
  127. contentDirectory: {
  128. /**
  129. * Map, representing ClassId -> Class relation
  130. **/
  131. classById: AugmentedQuery<ApiType, (arg: ClassId | AnyNumber | Uint8Array) => Observable<ClassOf>, [ClassId]>;
  132. /**
  133. * Map, representing CuratorGroupId -> CuratorGroup relation
  134. **/
  135. curatorGroupById: AugmentedQuery<ApiType, (arg: CuratorGroupId | AnyNumber | Uint8Array) => Observable<CuratorGroup>, [CuratorGroupId]>;
  136. /**
  137. * Map, representing EntityId -> Entity relation
  138. **/
  139. entityById: AugmentedQuery<ApiType, (arg: EntityId | AnyNumber | Uint8Array) => Observable<EntityOf>, [EntityId]>;
  140. entityCreationVouchers: AugmentedQueryDoubleMap<ApiType, (key1: ClassId | AnyNumber | Uint8Array, key2: EntityController | { Maintainers: any } | { Member: any } | { Lead: any } | string | Uint8Array) => Observable<EntityCreationVoucher>, [ClassId, EntityController]>;
  141. /**
  142. * Next runtime storage values used to maintain next id value, used on creation of respective curator groups, classes and entities
  143. **/
  144. nextClassId: AugmentedQuery<ApiType, () => Observable<ClassId>, []>;
  145. nextCuratorGroupId: AugmentedQuery<ApiType, () => Observable<CuratorGroupId>, []>;
  146. nextEntityId: AugmentedQuery<ApiType, () => Observable<EntityId>, []>;
  147. /**
  148. * Mapping of class id and its property id to the respective entity id and property value hash.
  149. **/
  150. uniquePropertyValueHashes: AugmentedQueryDoubleMap<ApiType, (key1: ITuple<[ClassId, PropertyId]> | [ClassId | AnyNumber | Uint8Array, PropertyId | AnyNumber | Uint8Array], key2: Hash | string | Uint8Array) => Observable<ITuple<[]>>, [ITuple<[ClassId, PropertyId]>, Hash]>;
  151. };
  152. contentDirectoryWorkingGroup: {
  153. /**
  154. * Count of active workers.
  155. **/
  156. activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  157. /**
  158. * Maps identifier to worker application on opening.
  159. **/
  160. applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [ApplicationId]>;
  161. /**
  162. * The current lead.
  163. **/
  164. currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
  165. /**
  166. * Map member id by hiring application id.
  167. * Required by StakingEventsHandler callback call to refund the balance on unstaking.
  168. **/
  169. memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
  170. /**
  171. * The mint currently funding the rewards for this module.
  172. **/
  173. mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
  174. /**
  175. * Next identifier value for new worker application.
  176. **/
  177. nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
  178. /**
  179. * Next identifier value for new worker opening.
  180. **/
  181. nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
  182. /**
  183. * Next identifier for new worker.
  184. **/
  185. nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
  186. /**
  187. * Maps identifier to worker opening.
  188. **/
  189. openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<OpeningOf>, [OpeningId]>;
  190. /**
  191. * Opening human readable text length limits
  192. **/
  193. openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  194. /**
  195. * Worker application human readable text length limits
  196. **/
  197. workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  198. /**
  199. * Maps identifier to corresponding worker.
  200. **/
  201. workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<WorkerOf>, [WorkerId]>;
  202. /**
  203. * Worker exit rationale text length limits.
  204. **/
  205. workerExitRationaleText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  206. };
  207. contentWorkingGroup: {
  208. channelAvatarConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  209. channelBannerConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  210. /**
  211. * Maps identifier to corresponding channel.
  212. **/
  213. channelById: AugmentedQuery<ApiType, (arg: ChannelId | AnyNumber | Uint8Array) => Observable<Channel>, [ChannelId]>;
  214. /**
  215. * Whether it is currently possible to create a channel via `create_channel` extrinsic.
  216. **/
  217. channelCreationEnabled: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  218. channelDescriptionConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  219. channelHandleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  220. /**
  221. * Maps (unique) channel handle to the corresponding identifier for the channel.
  222. * Mapping is required to allow efficient (O(log N)) on-chain verification that a proposed handle is indeed unique
  223. * at the time it is being proposed.
  224. **/
  225. channelIdByHandle: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<ChannelId>, [Bytes]>;
  226. channelTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  227. /**
  228. * Maps identifier to curator application on opening.
  229. **/
  230. curatorApplicationById: AugmentedQuery<ApiType, (arg: CuratorApplicationId | AnyNumber | Uint8Array) => Observable<CuratorApplication>, [CuratorApplicationId]>;
  231. curatorApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  232. /**
  233. * Maps identifier to corresponding curator.
  234. **/
  235. curatorById: AugmentedQuery<ApiType, (arg: CuratorId | AnyNumber | Uint8Array) => Observable<Curator>, [CuratorId]>;
  236. curatorExitRationaleText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  237. /**
  238. * Maps identifeir to curator opening.
  239. **/
  240. curatorOpeningById: AugmentedQuery<ApiType, (arg: CuratorOpeningId | AnyNumber | Uint8Array) => Observable<CuratorOpening>, [CuratorOpeningId]>;
  241. /**
  242. * The current lead.
  243. **/
  244. currentLeadId: AugmentedQuery<ApiType, () => Observable<Option<LeadId>>, []>;
  245. /**
  246. * Maps identifier to corresponding lead.
  247. **/
  248. leadById: AugmentedQuery<ApiType, (arg: LeadId | AnyNumber | Uint8Array) => Observable<Lead>, [LeadId]>;
  249. /**
  250. * The mint currently funding the rewards for this module.
  251. **/
  252. mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
  253. /**
  254. * Identifier to be used by the next channel introduced.
  255. **/
  256. nextChannelId: AugmentedQuery<ApiType, () => Observable<ChannelId>, []>;
  257. /**
  258. * Next identifier value for new curator application.
  259. **/
  260. nextCuratorApplicationId: AugmentedQuery<ApiType, () => Observable<CuratorApplicationId>, []>;
  261. /**
  262. * Next identifier for new curator.
  263. **/
  264. nextCuratorId: AugmentedQuery<ApiType, () => Observable<CuratorId>, []>;
  265. /**
  266. * Next identifier valuefor new curator opening.
  267. **/
  268. nextCuratorOpeningId: AugmentedQuery<ApiType, () => Observable<CuratorOpeningId>, []>;
  269. /**
  270. * Next identifier for new current lead.
  271. **/
  272. nextLeadId: AugmentedQuery<ApiType, () => Observable<LeadId>, []>;
  273. /**
  274. * Next identifier for
  275. **/
  276. nextPrincipalId: AugmentedQuery<ApiType, () => Observable<PrincipalId>, []>;
  277. openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  278. /**
  279. * Maps identifier to principal.
  280. **/
  281. principalById: AugmentedQuery<ApiType, (arg: PrincipalId | AnyNumber | Uint8Array) => Observable<Principal>, [PrincipalId]>;
  282. /**
  283. * Recover curator by the role stake which is currently unstaking.
  284. **/
  285. unstakerByStakeId: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<WorkingGroupUnstaker>, [StakeId]>;
  286. };
  287. council: {
  288. activeCouncil: AugmentedQuery<ApiType, () => Observable<Seats>, []>;
  289. /**
  290. * Reward amount paid out at each PayoutInterval
  291. **/
  292. amountPerPayout: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
  293. /**
  294. * The mint that funds council member rewards and spending proposals budget
  295. **/
  296. councilMint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
  297. /**
  298. * How many blocks after the reward is created, the first payout will be made
  299. **/
  300. firstPayoutAfterRewardCreated: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  301. /**
  302. * Optional interval in blocks on which a reward payout will be made to each council member
  303. **/
  304. payoutInterval: AugmentedQuery<ApiType, () => Observable<Option<BlockNumber>>, []>;
  305. /**
  306. * The reward relationships currently in place. There may not necessarily be a 1-1 correspondance with
  307. * the active council, since there are multiple ways of setting/adding/removing council members, some of which
  308. * do not involve creating a relationship.
  309. **/
  310. rewardRelationships: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<RewardRelationshipId>, [AccountId]>;
  311. termEndsAt: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  312. };
  313. councilElection: {
  314. announcingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  315. applicants: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
  316. applicantStakes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<ElectionStake>, [AccountId]>;
  317. autoStart: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  318. candidacyLimit: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  319. commitments: AugmentedQuery<ApiType, () => Observable<Vec<Hash>>, []>;
  320. councilSize: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  321. existingStakeHolders: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
  322. minCouncilStake: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
  323. minVotingStake: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
  324. newTermDuration: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  325. revealingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  326. round: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  327. stage: AugmentedQuery<ApiType, () => Observable<Option<ElectionStage>>, []>;
  328. transferableStakes: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<TransferableStake>, [AccountId]>;
  329. votes: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<SealedVote>, [Hash]>;
  330. votingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  331. };
  332. distributionWorkingGroup: {
  333. /**
  334. * Count of active workers.
  335. **/
  336. activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  337. /**
  338. * Maps identifier to worker application on opening.
  339. **/
  340. applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [ApplicationId]>;
  341. /**
  342. * The current lead.
  343. **/
  344. currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
  345. /**
  346. * Map member id by hiring application id.
  347. * Required by StakingEventsHandler callback call to refund the balance on unstaking.
  348. **/
  349. memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
  350. /**
  351. * The mint currently funding the rewards for this module.
  352. **/
  353. mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
  354. /**
  355. * Next identifier value for new worker application.
  356. **/
  357. nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
  358. /**
  359. * Next identifier value for new worker opening.
  360. **/
  361. nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
  362. /**
  363. * Next identifier for new worker.
  364. **/
  365. nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
  366. /**
  367. * Maps identifier to worker opening.
  368. **/
  369. openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<OpeningOf>, [OpeningId]>;
  370. /**
  371. * Opening human readable text length limits
  372. **/
  373. openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  374. /**
  375. * Worker application human readable text length limits
  376. **/
  377. workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  378. /**
  379. * Maps identifier to corresponding worker.
  380. **/
  381. workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<WorkerOf>, [WorkerId]>;
  382. /**
  383. * Worker exit rationale text length limits.
  384. **/
  385. workerExitRationaleText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  386. };
  387. forum: {
  388. /**
  389. * Map category identifier to corresponding category.
  390. **/
  391. categoryById: AugmentedQuery<ApiType, (arg: CategoryId | AnyNumber | Uint8Array) => Observable<Category>, [CategoryId]>;
  392. categoryDescriptionConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  393. /**
  394. * Input constraints
  395. * These are all forward looking, that is they are enforced on all
  396. * future calls.
  397. **/
  398. categoryTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  399. /**
  400. * Account of forum sudo.
  401. **/
  402. forumSudo: AugmentedQuery<ApiType, () => Observable<Option<AccountId>>, []>;
  403. /**
  404. * Category identifier value to be used for the next Category created.
  405. **/
  406. nextCategoryId: AugmentedQuery<ApiType, () => Observable<CategoryId>, []>;
  407. /**
  408. * Post identifier value to be used for for next post created.
  409. **/
  410. nextPostId: AugmentedQuery<ApiType, () => Observable<PostId>, []>;
  411. /**
  412. * Thread identifier value to be used for next Thread in threadById.
  413. **/
  414. nextThreadId: AugmentedQuery<ApiType, () => Observable<ThreadId>, []>;
  415. /**
  416. * Map post identifier to corresponding post.
  417. **/
  418. postById: AugmentedQuery<ApiType, (arg: PostId | AnyNumber | Uint8Array) => Observable<Post>, [PostId]>;
  419. postModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  420. postTextConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  421. /**
  422. * Map thread identifier to corresponding thread.
  423. **/
  424. threadById: AugmentedQuery<ApiType, (arg: ThreadId | AnyNumber | Uint8Array) => Observable<Thread>, [ThreadId]>;
  425. threadModerationRationaleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  426. threadTitleConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  427. };
  428. grandpa: {
  429. /**
  430. * The number of changes (both in terms of keys and underlying economic responsibilities)
  431. * in the "set" of Grandpa validators from genesis.
  432. **/
  433. currentSetId: AugmentedQuery<ApiType, () => Observable<SetId>, []>;
  434. /**
  435. * next block number where we can force a change.
  436. **/
  437. nextForced: AugmentedQuery<ApiType, () => Observable<Option<BlockNumber>>, []>;
  438. /**
  439. * Pending change: (signaled at, scheduled change).
  440. **/
  441. pendingChange: AugmentedQuery<ApiType, () => Observable<Option<StoredPendingChange>>, []>;
  442. /**
  443. * A mapping from grandpa set ID to the index of the *most recent* session for which its
  444. * members were responsible.
  445. *
  446. * TWOX-NOTE: `SetId` is not under user control.
  447. **/
  448. setIdSession: AugmentedQuery<ApiType, (arg: SetId | AnyNumber | Uint8Array) => Observable<Option<SessionIndex>>, [SetId]>;
  449. /**
  450. * `true` if we are currently stalled.
  451. **/
  452. stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[BlockNumber, BlockNumber]>>>, []>;
  453. /**
  454. * State of the current authority set.
  455. **/
  456. state: AugmentedQuery<ApiType, () => Observable<StoredState>, []>;
  457. };
  458. hiring: {
  459. /**
  460. * Applications
  461. **/
  462. applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<Application>, [ApplicationId]>;
  463. /**
  464. * Internal purpose of given stake, i.e. fro what application, and whether for the role or for the application.
  465. **/
  466. applicationIdByStakingId: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<ApplicationId>, [StakeId]>;
  467. /**
  468. * Identifier for next application to be added.
  469. **/
  470. nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
  471. /**
  472. * Identifier for next opening to be added.
  473. **/
  474. nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
  475. /**
  476. * Openings.
  477. **/
  478. openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<Opening>, [OpeningId]>;
  479. };
  480. imOnline: {
  481. /**
  482. * For each session index, we keep a mapping of `T::ValidatorId` to the
  483. * number of blocks authored by the given authority.
  484. **/
  485. authoredBlocks: AugmentedQueryDoubleMap<ApiType, (key1: SessionIndex | AnyNumber | Uint8Array, key2: ValidatorId | string | Uint8Array) => Observable<u32>, [SessionIndex, ValidatorId]>;
  486. /**
  487. * The block number after which it's ok to send heartbeats in current session.
  488. *
  489. * At the beginning of each session we set this to a value that should
  490. * fall roughly in the middle of the session duration.
  491. * The idea is to first wait for the validators to produce a block
  492. * in the current session, so that the heartbeat later on will not be necessary.
  493. **/
  494. heartbeatAfter: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  495. /**
  496. * The current set of keys that may issue a heartbeat.
  497. **/
  498. keys: AugmentedQuery<ApiType, () => Observable<Vec<AuthorityId>>, []>;
  499. /**
  500. * For each session index, we keep a mapping of `AuthIndex` to
  501. * `offchain::OpaqueNetworkState`.
  502. **/
  503. receivedHeartbeats: AugmentedQueryDoubleMap<ApiType, (key1: SessionIndex | AnyNumber | Uint8Array, key2: AuthIndex | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [SessionIndex, AuthIndex]>;
  504. };
  505. members: {
  506. /**
  507. * Active Paid membership terms
  508. **/
  509. activePaidMembershipTerms: AugmentedQuery<ApiType, () => Observable<Vec<PaidTermId>>, []>;
  510. maxAboutTextLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  511. maxAvatarUriLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  512. maxHandleLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  513. /**
  514. * Registered unique handles and their mapping to their owner
  515. **/
  516. memberIdByHandle: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<MemberId>, [Bytes]>;
  517. /**
  518. * Mapping of a controller account id to vector of member ids it controls
  519. **/
  520. memberIdsByControllerAccountId: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<MemberId>>, [AccountId]>;
  521. /**
  522. * Mapping of a root account id to vector of member ids it controls.
  523. **/
  524. memberIdsByRootAccountId: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Vec<MemberId>>, [AccountId]>;
  525. /**
  526. * Mapping of member's id to their membership profile
  527. **/
  528. membershipById: AugmentedQuery<ApiType, (arg: MemberId | AnyNumber | Uint8Array) => Observable<Membership>, [MemberId]>;
  529. minHandleLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  530. /**
  531. * Is the platform is accepting new members or not
  532. **/
  533. newMembershipsAllowed: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  534. /**
  535. * MemberId to assign to next member that is added to the registry, and is also the
  536. * total number of members created. MemberIds start at Zero.
  537. **/
  538. nextMemberId: AugmentedQuery<ApiType, () => Observable<MemberId>, []>;
  539. /**
  540. * Next paid membership terms id
  541. **/
  542. nextPaidMembershipTermsId: AugmentedQuery<ApiType, () => Observable<PaidTermId>, []>;
  543. /**
  544. * Paid membership terms record
  545. **/
  546. paidMembershipTermsById: AugmentedQuery<ApiType, (arg: PaidTermId | AnyNumber | Uint8Array) => Observable<PaidMembershipTerms>, [PaidTermId]>;
  547. screeningAuthority: AugmentedQuery<ApiType, () => Observable<AccountId>, []>;
  548. };
  549. memo: {
  550. maxMemoLength: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  551. memo: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<MemoText>, [AccountId]>;
  552. };
  553. minting: {
  554. /**
  555. * Mints
  556. **/
  557. mints: AugmentedQuery<ApiType, (arg: MintId | AnyNumber | Uint8Array) => Observable<Mint>, [MintId]>;
  558. /**
  559. * The number of mints created.
  560. **/
  561. mintsCreated: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
  562. };
  563. offences: {
  564. /**
  565. * A vector of reports of the same kind that happened at the same time slot.
  566. **/
  567. concurrentReportsIndex: AugmentedQueryDoubleMap<ApiType, (key1: Kind | string | Uint8Array, key2: OpaqueTimeSlot | string | Uint8Array) => Observable<Vec<ReportIdOf>>, [Kind, OpaqueTimeSlot]>;
  568. /**
  569. * Deferred reports that have been rejected by the offence handler and need to be submitted
  570. * at a later time.
  571. **/
  572. deferredOffences: AugmentedQuery<ApiType, () => Observable<Vec<DeferredOffenceOf>>, []>;
  573. /**
  574. * The primary structure that holds all offence records keyed by report identifiers.
  575. **/
  576. reports: AugmentedQuery<ApiType, (arg: ReportIdOf | string | Uint8Array) => Observable<Option<OffenceDetails>>, [ReportIdOf]>;
  577. /**
  578. * Enumerates all reports of a kind along with the time they happened.
  579. *
  580. * All reports are sorted by the time of offence.
  581. *
  582. * Note that the actual type of this mapping is `Vec<u8>`, this is because values of
  583. * different types are not supported at the moment so we are doing the manual serialization.
  584. **/
  585. reportsByKindIndex: AugmentedQuery<ApiType, (arg: Kind | string | Uint8Array) => Observable<Bytes>, [Kind]>;
  586. };
  587. proposalsCodex: {
  588. /**
  589. * Grace period for the 'add working group opening' proposal
  590. **/
  591. addWorkingGroupOpeningProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  592. /**
  593. * Voting period for the 'add working group opening' proposal
  594. **/
  595. addWorkingGroupOpeningProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  596. /**
  597. * Grace period for the 'begin review working group leader applications' proposal
  598. **/
  599. beginReviewWorkingGroupLeaderApplicationsProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  600. /**
  601. * Voting period for the 'begin review working group leader applications' proposal
  602. **/
  603. beginReviewWorkingGroupLeaderApplicationsProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  604. /**
  605. * Grace period for the 'decrease working group leader stake' proposal
  606. **/
  607. decreaseWorkingGroupLeaderStakeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  608. /**
  609. * Voting period for the 'decrease working group leader stake' proposal
  610. **/
  611. decreaseWorkingGroupLeaderStakeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  612. /**
  613. * Grace period for the 'fill working group leader opening' proposal
  614. **/
  615. fillWorkingGroupLeaderOpeningProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  616. /**
  617. * Voting period for the 'fill working group leader opening' proposal
  618. **/
  619. fillWorkingGroupLeaderOpeningProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  620. /**
  621. * Map proposal id to proposal details
  622. **/
  623. proposalDetailsByProposalId: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ProposalDetailsOf>, [ProposalId]>;
  624. /**
  625. * Grace period for the 'runtime upgrade' proposal
  626. **/
  627. runtimeUpgradeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  628. /**
  629. * Voting period for the 'runtime upgrade' proposal
  630. **/
  631. runtimeUpgradeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  632. /**
  633. * Grace period for the 'set election parameters' proposal
  634. **/
  635. setElectionParametersProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  636. /**
  637. * Voting period for the 'set election parameters' proposal
  638. **/
  639. setElectionParametersProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  640. /**
  641. * Grace period for the 'set validator count' proposal
  642. **/
  643. setValidatorCountProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  644. /**
  645. * Voting period for the 'set validator count' proposal
  646. **/
  647. setValidatorCountProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  648. /**
  649. * Grace period for the 'set working group leader reward' proposal
  650. **/
  651. setWorkingGroupLeaderRewardProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  652. /**
  653. * Voting period for the 'set working group leader reward' proposal
  654. **/
  655. setWorkingGroupLeaderRewardProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  656. /**
  657. * Grace period for the 'set working group mint capacity' proposal
  658. **/
  659. setWorkingGroupMintCapacityProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  660. /**
  661. * Voting period for the 'set working group mint capacity' proposal
  662. **/
  663. setWorkingGroupMintCapacityProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  664. /**
  665. * Grace period for the 'slash working group leader stake' proposal
  666. **/
  667. slashWorkingGroupLeaderStakeProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  668. /**
  669. * Voting period for the 'slash working group leader stake' proposal
  670. **/
  671. slashWorkingGroupLeaderStakeProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  672. /**
  673. * Grace period for the 'spending' proposal
  674. **/
  675. spendingProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  676. /**
  677. * Voting period for the 'spending' proposal
  678. **/
  679. spendingProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  680. /**
  681. * Grace period for the 'terminate working group leader role' proposal
  682. **/
  683. terminateWorkingGroupLeaderRoleProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  684. /**
  685. * Voting period for the 'terminate working group leader role' proposal
  686. **/
  687. terminateWorkingGroupLeaderRoleProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  688. /**
  689. * Grace period for the 'text' proposal
  690. **/
  691. textProposalGracePeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  692. /**
  693. * Voting period for the 'text' proposal
  694. **/
  695. textProposalVotingPeriod: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  696. /**
  697. * Map proposal id to its discussion thread id
  698. **/
  699. threadIdByProposalId: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ThreadId>, [ProposalId]>;
  700. };
  701. proposalsDiscussion: {
  702. /**
  703. * Last author thread counter (part of the antispam mechanism)
  704. **/
  705. lastThreadAuthorCounter: AugmentedQuery<ApiType, () => Observable<Option<ThreadCounter>>, []>;
  706. /**
  707. * Count of all posts that have been created.
  708. **/
  709. postCount: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  710. /**
  711. * Map thread id and post id to corresponding post.
  712. **/
  713. postThreadIdByPostId: AugmentedQueryDoubleMap<ApiType, (key1: ThreadId | AnyNumber | Uint8Array, key2: PostId | AnyNumber | Uint8Array) => Observable<DiscussionPost>, [ThreadId, PostId]>;
  714. /**
  715. * Map thread identifier to corresponding thread.
  716. **/
  717. threadById: AugmentedQuery<ApiType, (arg: ThreadId | AnyNumber | Uint8Array) => Observable<DiscussionThread>, [ThreadId]>;
  718. /**
  719. * Count of all threads that have been created.
  720. **/
  721. threadCount: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  722. };
  723. proposalsEngine: {
  724. /**
  725. * Count of active proposals.
  726. **/
  727. activeProposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  728. /**
  729. * Ids of proposals that are open for voting (have not been finalized yet).
  730. **/
  731. activeProposalIds: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>, [ProposalId]>;
  732. /**
  733. * Map proposal executable code by proposal id.
  734. **/
  735. dispatchableCallCode: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<Bytes>, [ProposalId]>;
  736. /**
  737. * Ids of proposals that were approved and theirs grace period was not expired.
  738. **/
  739. pendingExecutionProposalIds: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ITuple<[]>>, [ProposalId]>;
  740. /**
  741. * Count of all proposals that have been created.
  742. **/
  743. proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  744. /**
  745. * Map proposal by its id.
  746. **/
  747. proposals: AugmentedQuery<ApiType, (arg: ProposalId | AnyNumber | Uint8Array) => Observable<ProposalOf>, [ProposalId]>;
  748. /**
  749. * Map proposal id by stake id. Required by StakingEventsHandler callback call
  750. **/
  751. stakesProposals: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<ProposalId>, [StakeId]>;
  752. /**
  753. * Double map for preventing duplicate votes. Should be cleaned after usage.
  754. **/
  755. voteExistsByProposalByVoter: AugmentedQueryDoubleMap<ApiType, (key1: ProposalId | AnyNumber | Uint8Array, key2: MemberId | AnyNumber | Uint8Array) => Observable<VoteKind>, [ProposalId, MemberId]>;
  756. };
  757. randomnessCollectiveFlip: {
  758. /**
  759. * Series of block headers from the last 81 blocks that acts as random seed material. This
  760. * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
  761. * the oldest hash.
  762. **/
  763. randomMaterial: AugmentedQuery<ApiType, () => Observable<Vec<Hash>>, []>;
  764. };
  765. recurringRewards: {
  766. recipients: AugmentedQuery<ApiType, (arg: RecipientId | AnyNumber | Uint8Array) => Observable<Recipient>, [RecipientId]>;
  767. recipientsCreated: AugmentedQuery<ApiType, () => Observable<RecipientId>, []>;
  768. rewardRelationships: AugmentedQuery<ApiType, (arg: RewardRelationshipId | AnyNumber | Uint8Array) => Observable<RewardRelationship>, [RewardRelationshipId]>;
  769. rewardRelationshipsCreated: AugmentedQuery<ApiType, () => Observable<RewardRelationshipId>, []>;
  770. };
  771. session: {
  772. /**
  773. * Current index of the session.
  774. **/
  775. currentIndex: AugmentedQuery<ApiType, () => Observable<SessionIndex>, []>;
  776. /**
  777. * Indices of disabled validators.
  778. *
  779. * The set is cleared when `on_session_ending` returns a new set of identities.
  780. **/
  781. disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []>;
  782. /**
  783. * The owner of a key. The key is the `KeyTypeId` + the encoded key.
  784. **/
  785. keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[KeyTypeId, Bytes]> | [KeyTypeId | AnyNumber | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<ValidatorId>>, [ITuple<[KeyTypeId, Bytes]>]>;
  786. /**
  787. * The next session keys for a validator.
  788. **/
  789. nextKeys: AugmentedQuery<ApiType, (arg: ValidatorId | string | Uint8Array) => Observable<Option<Keys>>, [ValidatorId]>;
  790. /**
  791. * True if the underlying economic identities or weighting behind the validators
  792. * has changed in the queued validator set.
  793. **/
  794. queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  795. /**
  796. * The queued keys for the next session. When the next session begins, these keys
  797. * will be used to determine the validator's session keys.
  798. **/
  799. queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[ValidatorId, Keys]>>>, []>;
  800. /**
  801. * The current set of validators.
  802. **/
  803. validators: AugmentedQuery<ApiType, () => Observable<Vec<ValidatorId>>, []>;
  804. };
  805. stake: {
  806. /**
  807. * Maps identifiers to a stake.
  808. **/
  809. stakes: AugmentedQuery<ApiType, (arg: StakeId | AnyNumber | Uint8Array) => Observable<Stake>, [StakeId]>;
  810. /**
  811. * Identifier value for next stake, and count of total stakes created (not necessarily the number of current
  812. * stakes in the Stakes map as stakes can be removed.)
  813. **/
  814. stakesCreated: AugmentedQuery<ApiType, () => Observable<StakeId>, []>;
  815. };
  816. staking: {
  817. /**
  818. * The active era information, it holds index and start.
  819. *
  820. * The active era is the era currently rewarded.
  821. * Validator set of this era must be equal to `SessionInterface::validators`.
  822. **/
  823. activeEra: AugmentedQuery<ApiType, () => Observable<Option<ActiveEraInfo>>, []>;
  824. /**
  825. * Map from all locked "stash" accounts to the controller account.
  826. **/
  827. bonded: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<AccountId>>, [AccountId]>;
  828. /**
  829. * A mapping from still-bonded eras to the first session index of that era.
  830. *
  831. * Must contains information for eras for the range:
  832. * `[active_era - bounding_duration; active_era]`
  833. **/
  834. bondedEras: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[EraIndex, SessionIndex]>>>, []>;
  835. /**
  836. * The amount of currency given to reporters of a slash event which was
  837. * canceled by extraordinary circumstances (e.g. governance).
  838. **/
  839. canceledSlashPayout: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
  840. /**
  841. * The current era index.
  842. *
  843. * This is the latest planned era, depending on how the Session pallet queues the validator
  844. * set, it might be active or not.
  845. **/
  846. currentEra: AugmentedQuery<ApiType, () => Observable<Option<EraIndex>>, []>;
  847. /**
  848. * The earliest era for which we have a pending, unapplied slash.
  849. **/
  850. earliestUnappliedSlash: AugmentedQuery<ApiType, () => Observable<Option<EraIndex>>, []>;
  851. /**
  852. * Flag to control the execution of the offchain election. When `Open(_)`, we accept
  853. * solutions to be submitted.
  854. **/
  855. eraElectionStatus: AugmentedQuery<ApiType, () => Observable<ElectionStatus>, []>;
  856. /**
  857. * Rewards for the last `HISTORY_DEPTH` eras.
  858. * If reward hasn't been set or has been removed then 0 reward is returned.
  859. **/
  860. erasRewardPoints: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<EraRewardPoints>, [EraIndex]>;
  861. /**
  862. * Exposure of validator at era.
  863. *
  864. * This is keyed first by the era index to allow bulk deletion and then the stash account.
  865. *
  866. * Is it removed after `HISTORY_DEPTH` eras.
  867. * If stakers hasn't been set or has been removed then empty exposure is returned.
  868. **/
  869. erasStakers: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<Exposure>, [EraIndex, AccountId]>;
  870. /**
  871. * Clipped Exposure of validator at era.
  872. *
  873. * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
  874. * `T::MaxNominatorRewardedPerValidator` biggest stakers.
  875. * (Note: the field `total` and `own` of the exposure remains unchanged).
  876. * This is used to limit the i/o cost for the nominator payout.
  877. *
  878. * This is keyed fist by the era index to allow bulk deletion and then the stash account.
  879. *
  880. * Is it removed after `HISTORY_DEPTH` eras.
  881. * If stakers hasn't been set or has been removed then empty exposure is returned.
  882. **/
  883. erasStakersClipped: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<Exposure>, [EraIndex, AccountId]>;
  884. /**
  885. * The session index at which the era start for the last `HISTORY_DEPTH` eras.
  886. **/
  887. erasStartSessionIndex: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Option<SessionIndex>>, [EraIndex]>;
  888. /**
  889. * The total amount staked for the last `HISTORY_DEPTH` eras.
  890. * If total hasn't been set or has been removed then 0 stake is returned.
  891. **/
  892. erasTotalStake: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<BalanceOf>, [EraIndex]>;
  893. /**
  894. * Similar to `ErasStakers`, this holds the preferences of validators.
  895. *
  896. * This is keyed first by the era index to allow bulk deletion and then the stash account.
  897. *
  898. * Is it removed after `HISTORY_DEPTH` eras.
  899. **/
  900. erasValidatorPrefs: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<ValidatorPrefs>, [EraIndex, AccountId]>;
  901. /**
  902. * The total validator era payout for the last `HISTORY_DEPTH` eras.
  903. *
  904. * Eras that haven't finished yet or has been removed doesn't have reward.
  905. **/
  906. erasValidatorReward: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Option<BalanceOf>>, [EraIndex]>;
  907. /**
  908. * Mode of era forcing.
  909. **/
  910. forceEra: AugmentedQuery<ApiType, () => Observable<Forcing>, []>;
  911. /**
  912. * Number of eras to keep in history.
  913. *
  914. * Information is kept for eras in `[current_era - history_depth; current_era]`.
  915. *
  916. * Must be more than the number of eras delayed by session otherwise. I.e. active era must
  917. * always be in history. I.e. `active_era > current_era - history_depth` must be
  918. * guaranteed.
  919. **/
  920. historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  921. /**
  922. * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
  923. * easy to initialize and the performance hit is minimal (we expect no more than four
  924. * invulnerables) and restricted to testnets.
  925. **/
  926. invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId>>, []>;
  927. /**
  928. * True if the current **planned** session is final. Note that this does not take era
  929. * forcing into account.
  930. **/
  931. isCurrentSessionFinal: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  932. /**
  933. * Map from all (unlocked) "controller" accounts to the info regarding the staking.
  934. **/
  935. ledger: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<StakingLedger>>, [AccountId]>;
  936. /**
  937. * Minimum number of staking participants before emergency conditions are imposed.
  938. **/
  939. minimumValidatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  940. /**
  941. * The map from nominator stash key to the set of stash keys of all validators to nominate.
  942. **/
  943. nominators: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<Nominations>>, [AccountId]>;
  944. /**
  945. * All slashing events on nominators, mapped by era to the highest slash value of the era.
  946. **/
  947. nominatorSlashInEra: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<Option<BalanceOf>>, [EraIndex, AccountId]>;
  948. /**
  949. * Where the reward payment should be made. Keyed by stash.
  950. **/
  951. payee: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<RewardDestination>, [AccountId]>;
  952. /**
  953. * The next validator set. At the end of an era, if this is available (potentially from the
  954. * result of an offchain worker), it is immediately used. Otherwise, the on-chain election
  955. * is executed.
  956. **/
  957. queuedElected: AugmentedQuery<ApiType, () => Observable<Option<ElectionResult>>, []>;
  958. /**
  959. * The score of the current [`QueuedElected`].
  960. **/
  961. queuedScore: AugmentedQuery<ApiType, () => Observable<Option<ElectionScore>>, []>;
  962. /**
  963. * Slashing spans for stash accounts.
  964. **/
  965. slashingSpans: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<Option<SlashingSpans>>, [AccountId]>;
  966. /**
  967. * The percentage of the slash that is distributed to reporters.
  968. *
  969. * The rest of the slashed value is handled by the `Slash`.
  970. **/
  971. slashRewardFraction: AugmentedQuery<ApiType, () => Observable<Perbill>, []>;
  972. /**
  973. * Snapshot of nominators at the beginning of the current election window. This should only
  974. * have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
  975. **/
  976. snapshotNominators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []>;
  977. /**
  978. * Snapshot of validators at the beginning of the current election window. This should only
  979. * have a value when [`EraElectionStatus`] == `ElectionStatus::Open(_)`.
  980. **/
  981. snapshotValidators: AugmentedQuery<ApiType, () => Observable<Option<Vec<AccountId>>>, []>;
  982. /**
  983. * Records information about the maximum slash of a stash within a slashing span,
  984. * as well as how much reward has been paid out.
  985. **/
  986. spanSlash: AugmentedQuery<ApiType, (arg: ITuple<[AccountId, SpanIndex]> | [AccountId | string | Uint8Array, SpanIndex | AnyNumber | Uint8Array]) => Observable<SpanRecord>, [ITuple<[AccountId, SpanIndex]>]>;
  987. /**
  988. * True if network has been upgraded to this version.
  989. * Storage version of the pallet.
  990. *
  991. * This is set to v3.0.0 for new networks.
  992. **/
  993. storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
  994. /**
  995. * All unapplied slashes that are queued for later.
  996. **/
  997. unappliedSlashes: AugmentedQuery<ApiType, (arg: EraIndex | AnyNumber | Uint8Array) => Observable<Vec<UnappliedSlash>>, [EraIndex]>;
  998. /**
  999. * The ideal number of staking participants.
  1000. **/
  1001. validatorCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  1002. /**
  1003. * The map from (wannabe) validator stash key to the preferences of that validator.
  1004. **/
  1005. validators: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<ValidatorPrefs>, [AccountId]>;
  1006. /**
  1007. * All slashing events on validators, mapped by era to the highest slash proportion
  1008. * and slash value of the era.
  1009. **/
  1010. validatorSlashInEra: AugmentedQueryDoubleMap<ApiType, (key1: EraIndex | AnyNumber | Uint8Array, key2: AccountId | string | Uint8Array) => Observable<Option<ITuple<[Perbill, BalanceOf]>>>, [EraIndex, AccountId]>;
  1011. };
  1012. storage: {
  1013. /**
  1014. * Bags storage map.
  1015. **/
  1016. bags: AugmentedQuery<ApiType, (arg: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array) => Observable<Bag>, [BagId]>;
  1017. /**
  1018. * Blacklisted data object hashes.
  1019. **/
  1020. blacklist: AugmentedQuery<ApiType, (arg: Cid | string | Uint8Array) => Observable<ITuple<[]>>, [Cid]>;
  1021. /**
  1022. * Blacklist collection counter.
  1023. **/
  1024. currentBlacklistSize: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  1025. /**
  1026. * Size based pricing of new objects uploaded.
  1027. **/
  1028. dataObjectPerMegabyteFee: AugmentedQuery<ApiType, () => Observable<BalanceOf>, []>;
  1029. /**
  1030. * 'Data objects for bags' storage double map.
  1031. **/
  1032. dataObjectsById: AugmentedQueryDoubleMap<ApiType, (key1: BagId | { Static: any } | { Dynamic: any } | string | Uint8Array, key2: DataObjectId | AnyNumber | Uint8Array) => Observable<DataObject>, [BagId, DataObjectId]>;
  1033. /**
  1034. * Distribution bucket families.
  1035. **/
  1036. distributionBucketFamilyById: AugmentedQuery<ApiType, (arg: DistributionBucketFamilyId | AnyNumber | Uint8Array) => Observable<DistributionBucketFamily>, [DistributionBucketFamilyId]>;
  1037. /**
  1038. * Total number of distribution bucket families in the system.
  1039. **/
  1040. distributionBucketFamilyNumber: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  1041. /**
  1042. * "Distribution buckets per bag" number limit.
  1043. **/
  1044. distributionBucketsPerBagLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  1045. /**
  1046. * DynamicBagCreationPolicy by bag type storage map.
  1047. **/
  1048. dynamicBagCreationPolicies: AugmentedQuery<ApiType, (arg: DynamicBagType | 'Member' | 'Channel' | number | Uint8Array) => Observable<DynamicBagCreationPolicy>, [DynamicBagType]>;
  1049. /**
  1050. * Data object id counter. Starts at zero.
  1051. **/
  1052. nextDataObjectId: AugmentedQuery<ApiType, () => Observable<DataObjectId>, []>;
  1053. /**
  1054. * Distribution bucket family id counter. Starts at zero.
  1055. **/
  1056. nextDistributionBucketFamilyId: AugmentedQuery<ApiType, () => Observable<DistributionBucketFamilyId>, []>;
  1057. /**
  1058. * Distribution bucket id counter. Starts at zero.
  1059. **/
  1060. nextDistributionBucketId: AugmentedQuery<ApiType, () => Observable<DistributionBucketId>, []>;
  1061. /**
  1062. * Storage bucket id counter. Starts at zero.
  1063. **/
  1064. nextStorageBucketId: AugmentedQuery<ApiType, () => Observable<StorageBucketId>, []>;
  1065. /**
  1066. * Storage buckets.
  1067. **/
  1068. storageBucketById: AugmentedQuery<ApiType, (arg: StorageBucketId | AnyNumber | Uint8Array) => Observable<StorageBucket>, [StorageBucketId]>;
  1069. /**
  1070. * "Storage buckets per bag" number limit.
  1071. **/
  1072. storageBucketsPerBagLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  1073. /**
  1074. * Defines whether all new uploads blocked
  1075. **/
  1076. uploadingBlocked: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  1077. /**
  1078. * "Max objects number for a storage bucket voucher" number limit.
  1079. **/
  1080. voucherMaxObjectsNumberLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  1081. /**
  1082. * "Max objects size for a storage bucket voucher" number limit.
  1083. **/
  1084. voucherMaxObjectsSizeLimit: AugmentedQuery<ApiType, () => Observable<u64>, []>;
  1085. };
  1086. storageWorkingGroup: {
  1087. /**
  1088. * Count of active workers.
  1089. **/
  1090. activeWorkerCount: AugmentedQuery<ApiType, () => Observable<u32>, []>;
  1091. /**
  1092. * Maps identifier to worker application on opening.
  1093. **/
  1094. applicationById: AugmentedQuery<ApiType, (arg: ApplicationId | AnyNumber | Uint8Array) => Observable<ApplicationOf>, [ApplicationId]>;
  1095. /**
  1096. * The current lead.
  1097. **/
  1098. currentLead: AugmentedQuery<ApiType, () => Observable<Option<WorkerId>>, []>;
  1099. /**
  1100. * Map member id by hiring application id.
  1101. * Required by StakingEventsHandler callback call to refund the balance on unstaking.
  1102. **/
  1103. memberIdByHiringApplicationId: AugmentedQuery<ApiType, (arg: HiringApplicationId | AnyNumber | Uint8Array) => Observable<MemberId>, [HiringApplicationId]>;
  1104. /**
  1105. * The mint currently funding the rewards for this module.
  1106. **/
  1107. mint: AugmentedQuery<ApiType, () => Observable<MintId>, []>;
  1108. /**
  1109. * Next identifier value for new worker application.
  1110. **/
  1111. nextApplicationId: AugmentedQuery<ApiType, () => Observable<ApplicationId>, []>;
  1112. /**
  1113. * Next identifier value for new worker opening.
  1114. **/
  1115. nextOpeningId: AugmentedQuery<ApiType, () => Observable<OpeningId>, []>;
  1116. /**
  1117. * Next identifier for new worker.
  1118. **/
  1119. nextWorkerId: AugmentedQuery<ApiType, () => Observable<WorkerId>, []>;
  1120. /**
  1121. * Maps identifier to worker opening.
  1122. **/
  1123. openingById: AugmentedQuery<ApiType, (arg: OpeningId | AnyNumber | Uint8Array) => Observable<OpeningOf>, [OpeningId]>;
  1124. /**
  1125. * Opening human readable text length limits
  1126. **/
  1127. openingHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  1128. /**
  1129. * Worker application human readable text length limits
  1130. **/
  1131. workerApplicationHumanReadableText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  1132. /**
  1133. * Maps identifier to corresponding worker.
  1134. **/
  1135. workerById: AugmentedQuery<ApiType, (arg: WorkerId | AnyNumber | Uint8Array) => Observable<WorkerOf>, [WorkerId]>;
  1136. /**
  1137. * Worker exit rationale text length limits.
  1138. **/
  1139. workerExitRationaleText: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  1140. };
  1141. sudo: {
  1142. /**
  1143. * The `AccountId` of the sudo key.
  1144. **/
  1145. key: AugmentedQuery<ApiType, () => Observable<AccountId>, []>;
  1146. };
  1147. system: {
  1148. /**
  1149. * The full account information for a particular account ID.
  1150. **/
  1151. account: AugmentedQuery<ApiType, (arg: AccountId | string | Uint8Array) => Observable<AccountInfo>, [AccountId]>;
  1152. /**
  1153. * Total length (in bytes) for all extrinsics put together, for the current block.
  1154. **/
  1155. allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
  1156. /**
  1157. * Map of block numbers to block hashes.
  1158. **/
  1159. blockHash: AugmentedQuery<ApiType, (arg: BlockNumber | AnyNumber | Uint8Array) => Observable<Hash>, [BlockNumber]>;
  1160. /**
  1161. * The current weight for the block.
  1162. **/
  1163. blockWeight: AugmentedQuery<ApiType, () => Observable<ExtrinsicsWeight>, []>;
  1164. /**
  1165. * Digest of the current block, also part of the block header.
  1166. **/
  1167. digest: AugmentedQuery<ApiType, () => Observable<DigestOf>, []>;
  1168. /**
  1169. * The number of events in the `Events<T>` list.
  1170. **/
  1171. eventCount: AugmentedQuery<ApiType, () => Observable<EventIndex>, []>;
  1172. /**
  1173. * Events deposited for the current block.
  1174. **/
  1175. events: AugmentedQuery<ApiType, () => Observable<Vec<EventRecord>>, []>;
  1176. /**
  1177. * Mapping between a topic (represented by T::Hash) and a vector of indexes
  1178. * of events in the `<Events<T>>` list.
  1179. *
  1180. * All topic vectors have deterministic storage locations depending on the topic. This
  1181. * allows light-clients to leverage the changes trie storage tracking mechanism and
  1182. * in case of changes fetch the list of events of interest.
  1183. *
  1184. * The value has the type `(T::BlockNumber, EventIndex)` because if we used only just
  1185. * the `EventIndex` then in case if the topic has the same contents on the next block
  1186. * no notification will be triggered thus the event might be lost.
  1187. **/
  1188. eventTopics: AugmentedQuery<ApiType, (arg: Hash | string | Uint8Array) => Observable<Vec<ITuple<[BlockNumber, EventIndex]>>>, [Hash]>;
  1189. /**
  1190. * The execution phase of the block.
  1191. **/
  1192. executionPhase: AugmentedQuery<ApiType, () => Observable<Option<Phase>>, []>;
  1193. /**
  1194. * Total extrinsics count for the current block.
  1195. **/
  1196. extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []>;
  1197. /**
  1198. * Extrinsics data for the current block (maps an extrinsic's index to its data).
  1199. **/
  1200. extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]>;
  1201. /**
  1202. * Extrinsics root of the current block, also part of the block header.
  1203. **/
  1204. extrinsicsRoot: AugmentedQuery<ApiType, () => Observable<Hash>, []>;
  1205. /**
  1206. * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
  1207. **/
  1208. lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<LastRuntimeUpgradeInfo>>, []>;
  1209. /**
  1210. * The current block number being processed. Set by `execute_block`.
  1211. **/
  1212. number: AugmentedQuery<ApiType, () => Observable<BlockNumber>, []>;
  1213. /**
  1214. * Hash of the previous block.
  1215. **/
  1216. parentHash: AugmentedQuery<ApiType, () => Observable<Hash>, []>;
  1217. /**
  1218. * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
  1219. **/
  1220. upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  1221. };
  1222. timestamp: {
  1223. /**
  1224. * Did the timestamp get updated in this block?
  1225. **/
  1226. didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []>;
  1227. /**
  1228. * Current time for the current block.
  1229. **/
  1230. now: AugmentedQuery<ApiType, () => Observable<Moment>, []>;
  1231. };
  1232. transactionPayment: {
  1233. nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<Multiplier>, []>;
  1234. storageVersion: AugmentedQuery<ApiType, () => Observable<Releases>, []>;
  1235. };
  1236. versionedStore: {
  1237. classById: AugmentedQuery<ApiType, (arg: ClassId | AnyNumber | Uint8Array) => Observable<Class>, [ClassId]>;
  1238. classDescriptionConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  1239. classNameConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  1240. entityById: AugmentedQuery<ApiType, (arg: EntityId | AnyNumber | Uint8Array) => Observable<Entity>, [EntityId]>;
  1241. nextClassId: AugmentedQuery<ApiType, () => Observable<ClassId>, []>;
  1242. nextEntityId: AugmentedQuery<ApiType, () => Observable<EntityId>, []>;
  1243. propertyDescriptionConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  1244. propertyNameConstraint: AugmentedQuery<ApiType, () => Observable<InputValidationLengthConstraint>, []>;
  1245. };
  1246. versionedStorePermissions: {
  1247. /**
  1248. * ClassPermissions of corresponding Classes in the versioned store
  1249. **/
  1250. classPermissionsByClassId: AugmentedQuery<ApiType, (arg: ClassId | AnyNumber | Uint8Array) => Observable<ClassPermissionsType>, [ClassId]>;
  1251. /**
  1252. * Owner of an entity in the versioned store. If it is None then it is owned by the frame_system.
  1253. **/
  1254. entityMaintainerByEntityId: AugmentedQuery<ApiType, (arg: EntityId | AnyNumber | Uint8Array) => Observable<Option<Credential>>, [EntityId]>;
  1255. };
  1256. }
  1257. export interface QueryableStorage<ApiType extends ApiTypes> extends AugmentedQueries<ApiType> {
  1258. }
  1259. }