augment-api-query.ts 63 KB

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