@dedot/chaintypes 0.0.1-alpha.3 → 0.0.1-alpha.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/aleph/consts.d.ts +590 -528
  2. package/aleph/errors.d.ts +981 -818
  3. package/aleph/events.d.ts +924 -937
  4. package/aleph/index.d.ts +11 -8
  5. package/aleph/query.d.ts +1477 -1268
  6. package/aleph/rpc.d.ts +725 -573
  7. package/aleph/runtime.d.ts +541 -406
  8. package/aleph/tx.d.ts +2664 -2202
  9. package/aleph/types.d.ts +3474 -5388
  10. package/astar/consts.d.ts +775 -675
  11. package/astar/errors.d.ts +1601 -1313
  12. package/astar/events.d.ts +1762 -1628
  13. package/astar/index.d.ts +11 -8
  14. package/astar/query.d.ts +1804 -1471
  15. package/astar/rpc.d.ts +972 -773
  16. package/astar/runtime.d.ts +747 -258
  17. package/astar/tx.d.ts +4016 -4806
  18. package/astar/types.d.ts +6474 -12262
  19. package/index.d.ts +1 -0
  20. package/index.ts +11 -0
  21. package/kusama/consts.d.ts +1573 -1422
  22. package/kusama/errors.d.ts +2995 -2490
  23. package/kusama/events.d.ts +2996 -2723
  24. package/kusama/index.d.ts +11 -8
  25. package/kusama/query.d.ts +3828 -3248
  26. package/kusama/rpc.d.ts +902 -724
  27. package/kusama/runtime.d.ts +1130 -840
  28. package/kusama/tx.d.ts +7073 -6010
  29. package/kusama/types.d.ts +10151 -15344
  30. package/kusamaAssetHub/consts.d.ts +714 -627
  31. package/kusamaAssetHub/errors.d.ts +1405 -1160
  32. package/kusamaAssetHub/events.d.ts +2149 -2060
  33. package/kusamaAssetHub/index.d.ts +11 -8
  34. package/kusamaAssetHub/query.d.ts +1551 -1298
  35. package/kusamaAssetHub/rpc.d.ts +744 -588
  36. package/kusamaAssetHub/runtime.d.ts +510 -398
  37. package/kusamaAssetHub/tx.d.ts +5050 -4212
  38. package/kusamaAssetHub/types.d.ts +5976 -10009
  39. package/moonbeam/consts.d.ts +1075 -956
  40. package/moonbeam/errors.d.ts +2131 -1793
  41. package/moonbeam/events.d.ts +2932 -2681
  42. package/moonbeam/index.d.ts +11 -8
  43. package/moonbeam/query.d.ts +2391 -2024
  44. package/moonbeam/rpc.d.ts +1013 -807
  45. package/moonbeam/runtime.d.ts +665 -502
  46. package/moonbeam/tx.d.ts +6152 -5201
  47. package/moonbeam/types.d.ts +7731 -12035
  48. package/package.json +9 -16
  49. package/polkadot/consts.d.ts +1272 -1155
  50. package/polkadot/errors.d.ts +2420 -2016
  51. package/polkadot/events.d.ts +2314 -2092
  52. package/polkadot/index.d.ts +11 -8
  53. package/polkadot/query.d.ts +3319 -2808
  54. package/polkadot/rpc.d.ts +902 -724
  55. package/polkadot/runtime.d.ts +1130 -840
  56. package/polkadot/tx.d.ts +5909 -5005
  57. package/polkadot/types.d.ts +8742 -13290
  58. package/polkadotAssetHub/consts.d.ts +586 -519
  59. package/polkadotAssetHub/errors.d.ts +1115 -921
  60. package/polkadotAssetHub/events.d.ts +1850 -1782
  61. package/polkadotAssetHub/index.d.ts +11 -8
  62. package/polkadotAssetHub/query.d.ts +1457 -1219
  63. package/polkadotAssetHub/rpc.d.ts +744 -588
  64. package/polkadotAssetHub/runtime.d.ts +447 -355
  65. package/polkadotAssetHub/tx.d.ts +4184 -3487
  66. package/polkadotAssetHub/types.d.ts +5183 -8808
  67. package/rococo/consts.d.ts +1396 -0
  68. package/rococo/errors.d.ts +2860 -0
  69. package/rococo/events.d.ts +3142 -0
  70. package/rococo/index.d.ts +22 -0
  71. package/rococo/query.d.ts +3275 -0
  72. package/rococo/rpc.d.ts +904 -0
  73. package/rococo/runtime.d.ts +1052 -0
  74. package/rococo/tx.d.ts +9083 -0
  75. package/rococo/types.d.ts +14573 -0
  76. package/rococoAssetHub/consts.d.ts +751 -653
  77. package/rococoAssetHub/errors.d.ts +1495 -1227
  78. package/rococoAssetHub/events.d.ts +2127 -2047
  79. package/rococoAssetHub/index.d.ts +11 -8
  80. package/rococoAssetHub/query.d.ts +1520 -1266
  81. package/rococoAssetHub/rpc.d.ts +744 -588
  82. package/rococoAssetHub/runtime.d.ts +539 -424
  83. package/rococoAssetHub/tx.d.ts +7826 -4302
  84. package/rococoAssetHub/types.d.ts +11614 -10637
  85. package/substrate/consts.d.ts +2218 -1966
  86. package/substrate/errors.d.ts +4019 -3333
  87. package/substrate/events.d.ts +4585 -4255
  88. package/substrate/index.d.ts +11 -8
  89. package/substrate/query.d.ts +3887 -3347
  90. package/substrate/rpc.d.ts +913 -716
  91. package/substrate/runtime.d.ts +937 -704
  92. package/substrate/tx.d.ts +10387 -8796
  93. package/substrate/types.d.ts +12809 -19761
  94. package/westendAssetHub/consts.d.ts +745 -653
  95. package/westendAssetHub/errors.d.ts +1490 -1227
  96. package/westendAssetHub/events.d.ts +2127 -2047
  97. package/westendAssetHub/index.d.ts +11 -8
  98. package/westendAssetHub/query.d.ts +1513 -1266
  99. package/westendAssetHub/rpc.d.ts +744 -588
  100. package/westendAssetHub/runtime.d.ts +605 -452
  101. package/westendAssetHub/tx.d.ts +5164 -4302
  102. package/westendAssetHub/types.d.ts +6321 -10633
  103. package/aleph/consts.js +0 -2
  104. package/aleph/errors.js +0 -2
  105. package/aleph/events.js +0 -2
  106. package/aleph/index.js +0 -3
  107. package/aleph/query.js +0 -2
  108. package/aleph/rpc.js +0 -2
  109. package/aleph/runtime.js +0 -2
  110. package/aleph/tx.js +0 -2
  111. package/aleph/types.js +0 -2
  112. package/astar/consts.js +0 -2
  113. package/astar/errors.js +0 -2
  114. package/astar/events.js +0 -2
  115. package/astar/index.js +0 -3
  116. package/astar/query.js +0 -2
  117. package/astar/rpc.js +0 -2
  118. package/astar/runtime.js +0 -2
  119. package/astar/tx.js +0 -2
  120. package/astar/types.js +0 -2
  121. package/cjs/aleph/consts.js +0 -3
  122. package/cjs/aleph/errors.js +0 -3
  123. package/cjs/aleph/events.js +0 -3
  124. package/cjs/aleph/index.js +0 -19
  125. package/cjs/aleph/query.js +0 -3
  126. package/cjs/aleph/rpc.js +0 -3
  127. package/cjs/aleph/runtime.js +0 -3
  128. package/cjs/aleph/tx.js +0 -3
  129. package/cjs/aleph/types.js +0 -3
  130. package/cjs/astar/consts.js +0 -3
  131. package/cjs/astar/errors.js +0 -3
  132. package/cjs/astar/events.js +0 -3
  133. package/cjs/astar/index.js +0 -19
  134. package/cjs/astar/query.js +0 -3
  135. package/cjs/astar/rpc.js +0 -3
  136. package/cjs/astar/runtime.js +0 -3
  137. package/cjs/astar/tx.js +0 -3
  138. package/cjs/astar/types.js +0 -3
  139. package/cjs/index.js +0 -2
  140. package/cjs/kusama/consts.js +0 -3
  141. package/cjs/kusama/errors.js +0 -3
  142. package/cjs/kusama/events.js +0 -3
  143. package/cjs/kusama/index.js +0 -19
  144. package/cjs/kusama/query.js +0 -3
  145. package/cjs/kusama/rpc.js +0 -3
  146. package/cjs/kusama/runtime.js +0 -3
  147. package/cjs/kusama/tx.js +0 -3
  148. package/cjs/kusama/types.js +0 -3
  149. package/cjs/kusamaAssetHub/consts.js +0 -3
  150. package/cjs/kusamaAssetHub/errors.js +0 -3
  151. package/cjs/kusamaAssetHub/events.js +0 -3
  152. package/cjs/kusamaAssetHub/index.js +0 -19
  153. package/cjs/kusamaAssetHub/query.js +0 -3
  154. package/cjs/kusamaAssetHub/rpc.js +0 -3
  155. package/cjs/kusamaAssetHub/runtime.js +0 -3
  156. package/cjs/kusamaAssetHub/tx.js +0 -3
  157. package/cjs/kusamaAssetHub/types.js +0 -3
  158. package/cjs/moonbeam/consts.js +0 -3
  159. package/cjs/moonbeam/errors.js +0 -3
  160. package/cjs/moonbeam/events.js +0 -3
  161. package/cjs/moonbeam/index.js +0 -19
  162. package/cjs/moonbeam/query.js +0 -3
  163. package/cjs/moonbeam/rpc.js +0 -3
  164. package/cjs/moonbeam/runtime.js +0 -3
  165. package/cjs/moonbeam/tx.js +0 -3
  166. package/cjs/moonbeam/types.js +0 -3
  167. package/cjs/package.json +0 -1
  168. package/cjs/packageInfo.js +0 -5
  169. package/cjs/polkadot/consts.js +0 -3
  170. package/cjs/polkadot/errors.js +0 -3
  171. package/cjs/polkadot/events.js +0 -3
  172. package/cjs/polkadot/index.js +0 -19
  173. package/cjs/polkadot/query.js +0 -3
  174. package/cjs/polkadot/rpc.js +0 -3
  175. package/cjs/polkadot/runtime.js +0 -3
  176. package/cjs/polkadot/tx.js +0 -3
  177. package/cjs/polkadot/types.js +0 -3
  178. package/cjs/polkadotAssetHub/consts.js +0 -3
  179. package/cjs/polkadotAssetHub/errors.js +0 -3
  180. package/cjs/polkadotAssetHub/events.js +0 -3
  181. package/cjs/polkadotAssetHub/index.js +0 -19
  182. package/cjs/polkadotAssetHub/query.js +0 -3
  183. package/cjs/polkadotAssetHub/rpc.js +0 -3
  184. package/cjs/polkadotAssetHub/runtime.js +0 -3
  185. package/cjs/polkadotAssetHub/tx.js +0 -3
  186. package/cjs/polkadotAssetHub/types.js +0 -3
  187. package/cjs/rococoAssetHub/consts.js +0 -3
  188. package/cjs/rococoAssetHub/errors.js +0 -3
  189. package/cjs/rococoAssetHub/events.js +0 -3
  190. package/cjs/rococoAssetHub/index.js +0 -19
  191. package/cjs/rococoAssetHub/query.js +0 -3
  192. package/cjs/rococoAssetHub/rpc.js +0 -3
  193. package/cjs/rococoAssetHub/runtime.js +0 -3
  194. package/cjs/rococoAssetHub/tx.js +0 -3
  195. package/cjs/rococoAssetHub/types.js +0 -3
  196. package/cjs/substrate/consts.js +0 -3
  197. package/cjs/substrate/errors.js +0 -3
  198. package/cjs/substrate/events.js +0 -3
  199. package/cjs/substrate/index.js +0 -19
  200. package/cjs/substrate/query.js +0 -3
  201. package/cjs/substrate/rpc.js +0 -3
  202. package/cjs/substrate/runtime.js +0 -3
  203. package/cjs/substrate/tx.js +0 -3
  204. package/cjs/substrate/types.js +0 -3
  205. package/cjs/westendAssetHub/consts.js +0 -3
  206. package/cjs/westendAssetHub/errors.js +0 -3
  207. package/cjs/westendAssetHub/events.js +0 -3
  208. package/cjs/westendAssetHub/index.js +0 -19
  209. package/cjs/westendAssetHub/query.js +0 -3
  210. package/cjs/westendAssetHub/rpc.js +0 -3
  211. package/cjs/westendAssetHub/runtime.js +0 -3
  212. package/cjs/westendAssetHub/tx.js +0 -3
  213. package/cjs/westendAssetHub/types.js +0 -3
  214. package/kusama/consts.js +0 -2
  215. package/kusama/errors.js +0 -2
  216. package/kusama/events.js +0 -2
  217. package/kusama/index.js +0 -3
  218. package/kusama/query.js +0 -2
  219. package/kusama/rpc.js +0 -2
  220. package/kusama/runtime.js +0 -2
  221. package/kusama/tx.js +0 -2
  222. package/kusama/types.js +0 -2
  223. package/kusamaAssetHub/consts.js +0 -2
  224. package/kusamaAssetHub/errors.js +0 -2
  225. package/kusamaAssetHub/events.js +0 -2
  226. package/kusamaAssetHub/index.js +0 -3
  227. package/kusamaAssetHub/query.js +0 -2
  228. package/kusamaAssetHub/rpc.js +0 -2
  229. package/kusamaAssetHub/runtime.js +0 -2
  230. package/kusamaAssetHub/tx.js +0 -2
  231. package/kusamaAssetHub/types.js +0 -2
  232. package/moonbeam/consts.js +0 -2
  233. package/moonbeam/errors.js +0 -2
  234. package/moonbeam/events.js +0 -2
  235. package/moonbeam/index.js +0 -3
  236. package/moonbeam/query.js +0 -2
  237. package/moonbeam/rpc.js +0 -2
  238. package/moonbeam/runtime.js +0 -2
  239. package/moonbeam/tx.js +0 -2
  240. package/moonbeam/types.js +0 -2
  241. package/packageInfo.d.ts +0 -4
  242. package/packageInfo.js +0 -2
  243. package/polkadot/consts.js +0 -2
  244. package/polkadot/errors.js +0 -2
  245. package/polkadot/events.js +0 -2
  246. package/polkadot/index.js +0 -3
  247. package/polkadot/query.js +0 -2
  248. package/polkadot/rpc.js +0 -2
  249. package/polkadot/runtime.js +0 -2
  250. package/polkadot/tx.js +0 -2
  251. package/polkadot/types.js +0 -2
  252. package/polkadotAssetHub/consts.js +0 -2
  253. package/polkadotAssetHub/errors.js +0 -2
  254. package/polkadotAssetHub/events.js +0 -2
  255. package/polkadotAssetHub/index.js +0 -3
  256. package/polkadotAssetHub/query.js +0 -2
  257. package/polkadotAssetHub/rpc.js +0 -2
  258. package/polkadotAssetHub/runtime.js +0 -2
  259. package/polkadotAssetHub/tx.js +0 -2
  260. package/polkadotAssetHub/types.js +0 -2
  261. package/rococoAssetHub/consts.js +0 -2
  262. package/rococoAssetHub/errors.js +0 -2
  263. package/rococoAssetHub/events.js +0 -2
  264. package/rococoAssetHub/index.js +0 -3
  265. package/rococoAssetHub/query.js +0 -2
  266. package/rococoAssetHub/rpc.js +0 -2
  267. package/rococoAssetHub/runtime.js +0 -2
  268. package/rococoAssetHub/tx.js +0 -2
  269. package/rococoAssetHub/types.js +0 -2
  270. package/substrate/consts.js +0 -2
  271. package/substrate/errors.js +0 -2
  272. package/substrate/events.js +0 -2
  273. package/substrate/index.js +0 -3
  274. package/substrate/query.js +0 -2
  275. package/substrate/rpc.js +0 -2
  276. package/substrate/runtime.js +0 -2
  277. package/substrate/tx.js +0 -2
  278. package/substrate/types.js +0 -2
  279. package/westendAssetHub/consts.js +0 -2
  280. package/westendAssetHub/errors.js +0 -2
  281. package/westendAssetHub/events.js +0 -2
  282. package/westendAssetHub/index.js +0 -3
  283. package/westendAssetHub/query.js +0 -2
  284. package/westendAssetHub/rpc.js +0 -2
  285. package/westendAssetHub/runtime.js +0 -2
  286. package/westendAssetHub/tx.js +0 -2
  287. package/westendAssetHub/types.js +0 -2
@@ -0,0 +1,3275 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback } from '@dedot/types';
4
+ import type {
5
+ AccountId32Like,
6
+ H256,
7
+ Bytes,
8
+ Digest,
9
+ Phase,
10
+ FixedBytes,
11
+ AccountId32,
12
+ FixedU128,
13
+ BytesLike,
14
+ EthereumAddressLike,
15
+ EthereumAddress,
16
+ Data,
17
+ FixedArray,
18
+ } from '@dedot/codecs';
19
+ import type {
20
+ FrameSystemAccountInfo,
21
+ FrameSupportDispatchPerDispatchClass,
22
+ FrameSystemEventRecord,
23
+ FrameSystemLastRuntimeUpgradeInfo,
24
+ FrameSystemCodeUpgradeAuthorization,
25
+ SpConsensusBabeAppPublic,
26
+ SpConsensusSlotsSlot,
27
+ SpConsensusBabeDigestsNextConfigDescriptor,
28
+ SpConsensusBabeDigestsPreDigest,
29
+ SpConsensusBabeBabeEpochConfiguration,
30
+ PalletBalancesAccountData,
31
+ PalletBalancesBalanceLock,
32
+ PalletBalancesReserveData,
33
+ PalletBalancesIdAmount,
34
+ PalletBalancesIdAmount002,
35
+ PalletTransactionPaymentReleases,
36
+ SpStakingOffenceOffenceDetails,
37
+ RococoRuntimeSessionKeys,
38
+ SpCoreCryptoKeyTypeId,
39
+ PalletGrandpaStoredState,
40
+ PalletGrandpaStoredPendingChange,
41
+ SpConsensusGrandpaAppPublic,
42
+ SpAuthorityDiscoveryAppPublic,
43
+ PalletTreasuryProposal,
44
+ PalletTreasurySpendStatus,
45
+ PalletConvictionVotingVoteVoting,
46
+ PalletReferendaReferendumInfo,
47
+ PalletRankedCollectiveMemberRecord,
48
+ PalletRankedCollectiveVoteRecord,
49
+ PalletReferendaReferendumInfoTally,
50
+ PolkadotRuntimeCommonClaimsStatementKind,
51
+ PalletIdentityRegistration,
52
+ PalletIdentityRegistrarInfo,
53
+ PalletIdentityAuthorityProperties,
54
+ PalletSocietyGroupParams,
55
+ PalletSocietyMemberRecord,
56
+ PalletSocietyPayoutRecord,
57
+ PalletSocietyBid,
58
+ PalletSocietyCandidacy,
59
+ PalletSocietyVote,
60
+ PalletSocietyIntakeRecord,
61
+ PalletSocietyTally,
62
+ PalletRecoveryRecoveryConfig,
63
+ PalletRecoveryActiveRecovery,
64
+ PalletVestingVestingInfo,
65
+ PalletVestingReleases,
66
+ PalletSchedulerScheduled,
67
+ PalletSchedulerRetryConfig,
68
+ PalletProxyProxyDefinition,
69
+ PalletProxyAnnouncement,
70
+ PalletMultisigMultisig,
71
+ PalletPreimageOldRequestStatus,
72
+ PalletPreimageRequestStatus,
73
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset,
74
+ PalletBountiesBounty,
75
+ PalletChildBountiesChildBounty,
76
+ PalletNisBid,
77
+ PalletNisSummaryRecord,
78
+ PalletNisReceiptRecord,
79
+ PolkadotRuntimeParachainsConfigurationHostConfiguration,
80
+ PolkadotPrimitivesV6ValidatorIndex,
81
+ PolkadotPrimitivesV6ValidatorAppPublic,
82
+ PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
83
+ PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord,
84
+ PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
85
+ PolkadotParachainPrimitivesPrimitivesId,
86
+ PolkadotPrimitivesV6CandidateCommitments,
87
+ PolkadotPrimitivesV6ScrapedOnChainVotes,
88
+ PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
89
+ PolkadotPrimitivesV6CoreIndex,
90
+ PolkadotRuntimeParachainsSchedulerPalletParasEntry,
91
+ PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
92
+ PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
93
+ PolkadotRuntimeParachainsParasParaLifecycle,
94
+ PolkadotParachainPrimitivesPrimitivesHeadData,
95
+ PolkadotRuntimeParachainsParasParaPastCodeMeta,
96
+ PolkadotPrimitivesV6UpgradeGoAhead,
97
+ PolkadotPrimitivesV6UpgradeRestriction,
98
+ PolkadotRuntimeParachainsParasParaGenesisArgs,
99
+ PolkadotParachainPrimitivesPrimitivesValidationCode,
100
+ PolkadotRuntimeParachainsInitializerBufferedSessionChange,
101
+ PolkadotCorePrimitivesInboundDownwardMessage,
102
+ PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest,
103
+ PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
104
+ PolkadotRuntimeParachainsHrmpHrmpChannel,
105
+ PolkadotCorePrimitivesInboundHrmpMessage,
106
+ PolkadotPrimitivesV6AssignmentAppPublic,
107
+ PolkadotPrimitivesV6SessionInfo,
108
+ PolkadotPrimitivesV6ExecutorParams,
109
+ PolkadotPrimitivesV6DisputeState,
110
+ PolkadotCorePrimitivesCandidateHash,
111
+ PolkadotPrimitivesV6SlashingPendingSlashes,
112
+ PalletMessageQueueBookState,
113
+ PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
114
+ PalletMessageQueuePage,
115
+ PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder,
116
+ PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount,
117
+ PolkadotRuntimeParachainsAssignerCoretimeSchedule,
118
+ PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
119
+ PolkadotRuntimeCommonParasRegistrarParaInfo,
120
+ PolkadotRuntimeCommonCrowdloanFundInfo,
121
+ PalletXcmQueryStatus,
122
+ XcmVersionedLocation,
123
+ SpWeightsWeightV2Weight,
124
+ PalletXcmVersionMigrationStage,
125
+ PalletXcmRemoteLockedFungibleRecord,
126
+ XcmVersionedAssetId,
127
+ SpConsensusBeefyEcdsaCryptoPublic,
128
+ SpConsensusBeefyMmrBeefyAuthoritySet,
129
+ PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot,
130
+ PalletStateTrieMigrationMigrationTask,
131
+ PalletStateTrieMigrationMigrationLimits,
132
+ } from './types';
133
+
134
+ export interface ChainStorage extends GenericChainStorage {
135
+ /**
136
+ * Pallet `System`'s storage queries
137
+ **/
138
+ system: {
139
+ /**
140
+ * The full account information for a particular account ID.
141
+ *
142
+ * @param {AccountId32Like} arg
143
+ * @param {Callback<FrameSystemAccountInfo> =} callback
144
+ **/
145
+ account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
146
+
147
+ /**
148
+ * Total extrinsics count for the current block.
149
+ *
150
+ * @param {Callback<number | undefined> =} callback
151
+ **/
152
+ extrinsicCount: GenericStorageQuery<() => number | undefined>;
153
+
154
+ /**
155
+ * Whether all inherents have been applied.
156
+ *
157
+ * @param {Callback<boolean> =} callback
158
+ **/
159
+ inherentsApplied: GenericStorageQuery<() => boolean>;
160
+
161
+ /**
162
+ * The current weight for the block.
163
+ *
164
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
165
+ **/
166
+ blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
167
+
168
+ /**
169
+ * Total length (in bytes) for all extrinsics put together, for the current block.
170
+ *
171
+ * @param {Callback<number | undefined> =} callback
172
+ **/
173
+ allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
174
+
175
+ /**
176
+ * Map of block numbers to block hashes.
177
+ *
178
+ * @param {number} arg
179
+ * @param {Callback<H256> =} callback
180
+ **/
181
+ blockHash: GenericStorageQuery<(arg: number) => H256>;
182
+
183
+ /**
184
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
185
+ *
186
+ * @param {number} arg
187
+ * @param {Callback<Bytes> =} callback
188
+ **/
189
+ extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
190
+
191
+ /**
192
+ * The current block number being processed. Set by `execute_block`.
193
+ *
194
+ * @param {Callback<number> =} callback
195
+ **/
196
+ number: GenericStorageQuery<() => number>;
197
+
198
+ /**
199
+ * Hash of the previous block.
200
+ *
201
+ * @param {Callback<H256> =} callback
202
+ **/
203
+ parentHash: GenericStorageQuery<() => H256>;
204
+
205
+ /**
206
+ * Digest of the current block, also part of the block header.
207
+ *
208
+ * @param {Callback<Digest> =} callback
209
+ **/
210
+ digest: GenericStorageQuery<() => Digest>;
211
+
212
+ /**
213
+ * Events deposited for the current block.
214
+ *
215
+ * NOTE: The item is unbound and should therefore never be read on chain.
216
+ * It could otherwise inflate the PoV size of a block.
217
+ *
218
+ * Events have a large in-memory size. Box the events to not go out-of-memory
219
+ * just in case someone still reads them from within the runtime.
220
+ *
221
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
222
+ **/
223
+ events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
224
+
225
+ /**
226
+ * The number of events in the `Events<T>` list.
227
+ *
228
+ * @param {Callback<number> =} callback
229
+ **/
230
+ eventCount: GenericStorageQuery<() => number>;
231
+
232
+ /**
233
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
234
+ * of events in the `<Events<T>>` list.
235
+ *
236
+ * All topic vectors have deterministic storage locations depending on the topic. This
237
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
238
+ * in case of changes fetch the list of events of interest.
239
+ *
240
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
241
+ * the `EventIndex` then in case if the topic has the same contents on the next block
242
+ * no notification will be triggered thus the event might be lost.
243
+ *
244
+ * @param {H256} arg
245
+ * @param {Callback<Array<[number, number]>> =} callback
246
+ **/
247
+ eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
248
+
249
+ /**
250
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
251
+ *
252
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
253
+ **/
254
+ lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
255
+
256
+ /**
257
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
258
+ *
259
+ * @param {Callback<boolean> =} callback
260
+ **/
261
+ upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
262
+
263
+ /**
264
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
265
+ * (default) if not.
266
+ *
267
+ * @param {Callback<boolean> =} callback
268
+ **/
269
+ upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
270
+
271
+ /**
272
+ * The execution phase of the block.
273
+ *
274
+ * @param {Callback<Phase | undefined> =} callback
275
+ **/
276
+ executionPhase: GenericStorageQuery<() => Phase | undefined>;
277
+
278
+ /**
279
+ * `Some` if a code upgrade has been authorized.
280
+ *
281
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
282
+ **/
283
+ authorizedUpgrade: GenericStorageQuery<() => FrameSystemCodeUpgradeAuthorization | undefined>;
284
+
285
+ /**
286
+ * Generic pallet storage query
287
+ **/
288
+ [storage: string]: GenericStorageQuery;
289
+ };
290
+ /**
291
+ * Pallet `Babe`'s storage queries
292
+ **/
293
+ babe: {
294
+ /**
295
+ * Current epoch index.
296
+ *
297
+ * @param {Callback<bigint> =} callback
298
+ **/
299
+ epochIndex: GenericStorageQuery<() => bigint>;
300
+
301
+ /**
302
+ * Current epoch authorities.
303
+ *
304
+ * @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
305
+ **/
306
+ authorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>;
307
+
308
+ /**
309
+ * The slot at which the first epoch actually started. This is 0
310
+ * until the first block of the chain.
311
+ *
312
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
313
+ **/
314
+ genesisSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
315
+
316
+ /**
317
+ * Current slot number.
318
+ *
319
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
320
+ **/
321
+ currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
322
+
323
+ /**
324
+ * The epoch randomness for the *current* epoch.
325
+ *
326
+ * # Security
327
+ *
328
+ * This MUST NOT be used for gambling, as it can be influenced by a
329
+ * malicious validator in the short term. It MAY be used in many
330
+ * cryptographic protocols, however, so long as one remembers that this
331
+ * (like everything else on-chain) it is public. For example, it can be
332
+ * used where a number is needed that cannot have been chosen by an
333
+ * adversary, for purposes such as public-coin zero-knowledge proofs.
334
+ *
335
+ * @param {Callback<FixedBytes<32>> =} callback
336
+ **/
337
+ randomness: GenericStorageQuery<() => FixedBytes<32>>;
338
+
339
+ /**
340
+ * Pending epoch configuration change that will be applied when the next epoch is enacted.
341
+ *
342
+ * @param {Callback<SpConsensusBabeDigestsNextConfigDescriptor | undefined> =} callback
343
+ **/
344
+ pendingEpochConfigChange: GenericStorageQuery<() => SpConsensusBabeDigestsNextConfigDescriptor | undefined>;
345
+
346
+ /**
347
+ * Next epoch randomness.
348
+ *
349
+ * @param {Callback<FixedBytes<32>> =} callback
350
+ **/
351
+ nextRandomness: GenericStorageQuery<() => FixedBytes<32>>;
352
+
353
+ /**
354
+ * Next epoch authorities.
355
+ *
356
+ * @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
357
+ **/
358
+ nextAuthorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>;
359
+
360
+ /**
361
+ * Randomness under construction.
362
+ *
363
+ * We make a trade-off between storage accesses and list length.
364
+ * We store the under-construction randomness in segments of up to
365
+ * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
366
+ *
367
+ * Once a segment reaches this length, we begin the next one.
368
+ * We reset all segments and return to `0` at the beginning of every
369
+ * epoch.
370
+ *
371
+ * @param {Callback<number> =} callback
372
+ **/
373
+ segmentIndex: GenericStorageQuery<() => number>;
374
+
375
+ /**
376
+ * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
377
+ *
378
+ * @param {number} arg
379
+ * @param {Callback<Array<FixedBytes<32>>> =} callback
380
+ **/
381
+ underConstruction: GenericStorageQuery<(arg: number) => Array<FixedBytes<32>>>;
382
+
383
+ /**
384
+ * Temporary value (cleared at block finalization) which is `Some`
385
+ * if per-block initialization has already been called for current block.
386
+ *
387
+ * @param {Callback<SpConsensusBabeDigestsPreDigest | undefined | undefined> =} callback
388
+ **/
389
+ initialized: GenericStorageQuery<() => SpConsensusBabeDigestsPreDigest | undefined | undefined>;
390
+
391
+ /**
392
+ * This field should always be populated during block processing unless
393
+ * secondary plain slots are enabled (which don't contain a VRF output).
394
+ *
395
+ * It is set in `on_finalize`, before it will contain the value from the last block.
396
+ *
397
+ * @param {Callback<FixedBytes<32> | undefined> =} callback
398
+ **/
399
+ authorVrfRandomness: GenericStorageQuery<() => FixedBytes<32> | undefined>;
400
+
401
+ /**
402
+ * The block numbers when the last and current epoch have started, respectively `N-1` and
403
+ * `N`.
404
+ * NOTE: We track this is in order to annotate the block number when a given pool of
405
+ * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
406
+ * slots, which may be skipped, the block numbers may not line up with the slot numbers.
407
+ *
408
+ * @param {Callback<[number, number]> =} callback
409
+ **/
410
+ epochStart: GenericStorageQuery<() => [number, number]>;
411
+
412
+ /**
413
+ * How late the current block is compared to its parent.
414
+ *
415
+ * This entry is populated as part of block execution and is cleaned up
416
+ * on block finalization. Querying this storage entry outside of block
417
+ * execution context should always yield zero.
418
+ *
419
+ * @param {Callback<number> =} callback
420
+ **/
421
+ lateness: GenericStorageQuery<() => number>;
422
+
423
+ /**
424
+ * The configuration for the current epoch. Should never be `None` as it is initialized in
425
+ * genesis.
426
+ *
427
+ * @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
428
+ **/
429
+ epochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>;
430
+
431
+ /**
432
+ * The configuration for the next epoch, `None` if the config will not change
433
+ * (you can fallback to `EpochConfig` instead in that case).
434
+ *
435
+ * @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
436
+ **/
437
+ nextEpochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>;
438
+
439
+ /**
440
+ * A list of the last 100 skipped epochs and the corresponding session index
441
+ * when the epoch was skipped.
442
+ *
443
+ * This is only used for validating equivocation proofs. An equivocation proof
444
+ * must contains a key-ownership proof for a given session, therefore we need a
445
+ * way to tie together sessions and epoch indices, i.e. we need to validate that
446
+ * a validator was the owner of a given key on a given session, and what the
447
+ * active epoch index was during that session.
448
+ *
449
+ * @param {Callback<Array<[bigint, number]>> =} callback
450
+ **/
451
+ skippedEpochs: GenericStorageQuery<() => Array<[bigint, number]>>;
452
+
453
+ /**
454
+ * Generic pallet storage query
455
+ **/
456
+ [storage: string]: GenericStorageQuery;
457
+ };
458
+ /**
459
+ * Pallet `Timestamp`'s storage queries
460
+ **/
461
+ timestamp: {
462
+ /**
463
+ * The current time for the current block.
464
+ *
465
+ * @param {Callback<bigint> =} callback
466
+ **/
467
+ now: GenericStorageQuery<() => bigint>;
468
+
469
+ /**
470
+ * Whether the timestamp has been updated in this block.
471
+ *
472
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
473
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
474
+ *
475
+ * @param {Callback<boolean> =} callback
476
+ **/
477
+ didUpdate: GenericStorageQuery<() => boolean>;
478
+
479
+ /**
480
+ * Generic pallet storage query
481
+ **/
482
+ [storage: string]: GenericStorageQuery;
483
+ };
484
+ /**
485
+ * Pallet `Indices`'s storage queries
486
+ **/
487
+ indices: {
488
+ /**
489
+ * The lookup from index to account.
490
+ *
491
+ * @param {number} arg
492
+ * @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
493
+ **/
494
+ accounts: GenericStorageQuery<(arg: number) => [AccountId32, bigint, boolean] | undefined>;
495
+
496
+ /**
497
+ * Generic pallet storage query
498
+ **/
499
+ [storage: string]: GenericStorageQuery;
500
+ };
501
+ /**
502
+ * Pallet `Balances`'s storage queries
503
+ **/
504
+ balances: {
505
+ /**
506
+ * The total units issued in the system.
507
+ *
508
+ * @param {Callback<bigint> =} callback
509
+ **/
510
+ totalIssuance: GenericStorageQuery<() => bigint>;
511
+
512
+ /**
513
+ * The total units of outstanding deactivated balance in the system.
514
+ *
515
+ * @param {Callback<bigint> =} callback
516
+ **/
517
+ inactiveIssuance: GenericStorageQuery<() => bigint>;
518
+
519
+ /**
520
+ * The Balances pallet example of storing the balance of an account.
521
+ *
522
+ * # Example
523
+ *
524
+ * ```nocompile
525
+ * impl pallet_balances::Config for Runtime {
526
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
527
+ * }
528
+ * ```
529
+ *
530
+ * You can also store the balance of an account in the `System` pallet.
531
+ *
532
+ * # Example
533
+ *
534
+ * ```nocompile
535
+ * impl pallet_balances::Config for Runtime {
536
+ * type AccountStore = System
537
+ * }
538
+ * ```
539
+ *
540
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
541
+ * `frame_system` data alongside the account data contrary to storing account balances in the
542
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
543
+ * NOTE: This is only used in the case that this pallet is used to store balances.
544
+ *
545
+ * @param {AccountId32Like} arg
546
+ * @param {Callback<PalletBalancesAccountData> =} callback
547
+ **/
548
+ account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
549
+
550
+ /**
551
+ * Any liquidity locks on some account balances.
552
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
553
+ *
554
+ * @param {AccountId32Like} arg
555
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
556
+ **/
557
+ locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
558
+
559
+ /**
560
+ * Named reserves on some account balances.
561
+ *
562
+ * @param {AccountId32Like} arg
563
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
564
+ **/
565
+ reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
566
+
567
+ /**
568
+ * Holds on account balances.
569
+ *
570
+ * @param {AccountId32Like} arg
571
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
572
+ **/
573
+ holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
574
+
575
+ /**
576
+ * Freeze locks on account balances.
577
+ *
578
+ * @param {AccountId32Like} arg
579
+ * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
580
+ **/
581
+ freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount002>>;
582
+
583
+ /**
584
+ * Generic pallet storage query
585
+ **/
586
+ [storage: string]: GenericStorageQuery;
587
+ };
588
+ /**
589
+ * Pallet `TransactionPayment`'s storage queries
590
+ **/
591
+ transactionPayment: {
592
+ /**
593
+ *
594
+ * @param {Callback<FixedU128> =} callback
595
+ **/
596
+ nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
597
+
598
+ /**
599
+ *
600
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
601
+ **/
602
+ storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
603
+
604
+ /**
605
+ * Generic pallet storage query
606
+ **/
607
+ [storage: string]: GenericStorageQuery;
608
+ };
609
+ /**
610
+ * Pallet `Authorship`'s storage queries
611
+ **/
612
+ authorship: {
613
+ /**
614
+ * Author of current block.
615
+ *
616
+ * @param {Callback<AccountId32 | undefined> =} callback
617
+ **/
618
+ author: GenericStorageQuery<() => AccountId32 | undefined>;
619
+
620
+ /**
621
+ * Generic pallet storage query
622
+ **/
623
+ [storage: string]: GenericStorageQuery;
624
+ };
625
+ /**
626
+ * Pallet `Offences`'s storage queries
627
+ **/
628
+ offences: {
629
+ /**
630
+ * The primary structure that holds all offence records keyed by report identifiers.
631
+ *
632
+ * @param {H256} arg
633
+ * @param {Callback<SpStakingOffenceOffenceDetails | undefined> =} callback
634
+ **/
635
+ reports: GenericStorageQuery<(arg: H256) => SpStakingOffenceOffenceDetails | undefined>;
636
+
637
+ /**
638
+ * A vector of reports of the same kind that happened at the same time slot.
639
+ *
640
+ * @param {[FixedBytes<16>, BytesLike]} arg
641
+ * @param {Callback<Array<H256>> =} callback
642
+ **/
643
+ concurrentReportsIndex: GenericStorageQuery<(arg: [FixedBytes<16>, BytesLike]) => Array<H256>>;
644
+
645
+ /**
646
+ * Generic pallet storage query
647
+ **/
648
+ [storage: string]: GenericStorageQuery;
649
+ };
650
+ /**
651
+ * Pallet `Historical`'s storage queries
652
+ **/
653
+ historical: {
654
+ /**
655
+ * Mapping from historical session indices to session-data root hash and validator count.
656
+ *
657
+ * @param {number} arg
658
+ * @param {Callback<[H256, number] | undefined> =} callback
659
+ **/
660
+ historicalSessions: GenericStorageQuery<(arg: number) => [H256, number] | undefined>;
661
+
662
+ /**
663
+ * The range of historical sessions we store. [first, last)
664
+ *
665
+ * @param {Callback<[number, number] | undefined> =} callback
666
+ **/
667
+ storedRange: GenericStorageQuery<() => [number, number] | undefined>;
668
+
669
+ /**
670
+ * Generic pallet storage query
671
+ **/
672
+ [storage: string]: GenericStorageQuery;
673
+ };
674
+ /**
675
+ * Pallet `Session`'s storage queries
676
+ **/
677
+ session: {
678
+ /**
679
+ * The current set of validators.
680
+ *
681
+ * @param {Callback<Array<AccountId32>> =} callback
682
+ **/
683
+ validators: GenericStorageQuery<() => Array<AccountId32>>;
684
+
685
+ /**
686
+ * Current index of the session.
687
+ *
688
+ * @param {Callback<number> =} callback
689
+ **/
690
+ currentIndex: GenericStorageQuery<() => number>;
691
+
692
+ /**
693
+ * True if the underlying economic identities or weighting behind the validators
694
+ * has changed in the queued validator set.
695
+ *
696
+ * @param {Callback<boolean> =} callback
697
+ **/
698
+ queuedChanged: GenericStorageQuery<() => boolean>;
699
+
700
+ /**
701
+ * The queued keys for the next session. When the next session begins, these keys
702
+ * will be used to determine the validator's session keys.
703
+ *
704
+ * @param {Callback<Array<[AccountId32, RococoRuntimeSessionKeys]>> =} callback
705
+ **/
706
+ queuedKeys: GenericStorageQuery<() => Array<[AccountId32, RococoRuntimeSessionKeys]>>;
707
+
708
+ /**
709
+ * Indices of disabled validators.
710
+ *
711
+ * The vec is always kept sorted so that we can find whether a given validator is
712
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
713
+ * a new set of identities.
714
+ *
715
+ * @param {Callback<Array<number>> =} callback
716
+ **/
717
+ disabledValidators: GenericStorageQuery<() => Array<number>>;
718
+
719
+ /**
720
+ * The next session keys for a validator.
721
+ *
722
+ * @param {AccountId32Like} arg
723
+ * @param {Callback<RococoRuntimeSessionKeys | undefined> =} callback
724
+ **/
725
+ nextKeys: GenericStorageQuery<(arg: AccountId32Like) => RococoRuntimeSessionKeys | undefined>;
726
+
727
+ /**
728
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
729
+ *
730
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
731
+ * @param {Callback<AccountId32 | undefined> =} callback
732
+ **/
733
+ keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
734
+
735
+ /**
736
+ * Generic pallet storage query
737
+ **/
738
+ [storage: string]: GenericStorageQuery;
739
+ };
740
+ /**
741
+ * Pallet `Grandpa`'s storage queries
742
+ **/
743
+ grandpa: {
744
+ /**
745
+ * State of the current authority set.
746
+ *
747
+ * @param {Callback<PalletGrandpaStoredState> =} callback
748
+ **/
749
+ state: GenericStorageQuery<() => PalletGrandpaStoredState>;
750
+
751
+ /**
752
+ * Pending change: (signaled at, scheduled change).
753
+ *
754
+ * @param {Callback<PalletGrandpaStoredPendingChange | undefined> =} callback
755
+ **/
756
+ pendingChange: GenericStorageQuery<() => PalletGrandpaStoredPendingChange | undefined>;
757
+
758
+ /**
759
+ * next block number where we can force a change.
760
+ *
761
+ * @param {Callback<number | undefined> =} callback
762
+ **/
763
+ nextForced: GenericStorageQuery<() => number | undefined>;
764
+
765
+ /**
766
+ * `true` if we are currently stalled.
767
+ *
768
+ * @param {Callback<[number, number] | undefined> =} callback
769
+ **/
770
+ stalled: GenericStorageQuery<() => [number, number] | undefined>;
771
+
772
+ /**
773
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
774
+ * in the "set" of Grandpa validators from genesis.
775
+ *
776
+ * @param {Callback<bigint> =} callback
777
+ **/
778
+ currentSetId: GenericStorageQuery<() => bigint>;
779
+
780
+ /**
781
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
782
+ * members were responsible.
783
+ *
784
+ * This is only used for validating equivocation proofs. An equivocation proof must
785
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
786
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
787
+ * was the owner of a given key on a given session, and what the active set ID was
788
+ * during that session.
789
+ *
790
+ * TWOX-NOTE: `SetId` is not under user control.
791
+ *
792
+ * @param {bigint} arg
793
+ * @param {Callback<number | undefined> =} callback
794
+ **/
795
+ setIdSession: GenericStorageQuery<(arg: bigint) => number | undefined>;
796
+
797
+ /**
798
+ * The current list of authorities.
799
+ *
800
+ * @param {Callback<Array<[SpConsensusGrandpaAppPublic, bigint]>> =} callback
801
+ **/
802
+ authorities: GenericStorageQuery<() => Array<[SpConsensusGrandpaAppPublic, bigint]>>;
803
+
804
+ /**
805
+ * Generic pallet storage query
806
+ **/
807
+ [storage: string]: GenericStorageQuery;
808
+ };
809
+ /**
810
+ * Pallet `AuthorityDiscovery`'s storage queries
811
+ **/
812
+ authorityDiscovery: {
813
+ /**
814
+ * Keys of the current authority set.
815
+ *
816
+ * @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
817
+ **/
818
+ keys: GenericStorageQuery<() => Array<SpAuthorityDiscoveryAppPublic>>;
819
+
820
+ /**
821
+ * Keys of the next authority set.
822
+ *
823
+ * @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
824
+ **/
825
+ nextKeys: GenericStorageQuery<() => Array<SpAuthorityDiscoveryAppPublic>>;
826
+
827
+ /**
828
+ * Generic pallet storage query
829
+ **/
830
+ [storage: string]: GenericStorageQuery;
831
+ };
832
+ /**
833
+ * Pallet `Treasury`'s storage queries
834
+ **/
835
+ treasury: {
836
+ /**
837
+ * Number of proposals that have been made.
838
+ *
839
+ * @param {Callback<number> =} callback
840
+ **/
841
+ proposalCount: GenericStorageQuery<() => number>;
842
+
843
+ /**
844
+ * Proposals that have been made.
845
+ *
846
+ * @param {number} arg
847
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
848
+ **/
849
+ proposals: GenericStorageQuery<(arg: number) => PalletTreasuryProposal | undefined>;
850
+
851
+ /**
852
+ * The amount which has been reported as inactive to Currency.
853
+ *
854
+ * @param {Callback<bigint> =} callback
855
+ **/
856
+ deactivated: GenericStorageQuery<() => bigint>;
857
+
858
+ /**
859
+ * Proposal indices that have been approved but not yet awarded.
860
+ *
861
+ * @param {Callback<Array<number>> =} callback
862
+ **/
863
+ approvals: GenericStorageQuery<() => Array<number>>;
864
+
865
+ /**
866
+ * The count of spends that have been made.
867
+ *
868
+ * @param {Callback<number> =} callback
869
+ **/
870
+ spendCount: GenericStorageQuery<() => number>;
871
+
872
+ /**
873
+ * Spends that have been approved and being processed.
874
+ *
875
+ * @param {number} arg
876
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
877
+ **/
878
+ spends: GenericStorageQuery<(arg: number) => PalletTreasurySpendStatus | undefined>;
879
+
880
+ /**
881
+ * Generic pallet storage query
882
+ **/
883
+ [storage: string]: GenericStorageQuery;
884
+ };
885
+ /**
886
+ * Pallet `ConvictionVoting`'s storage queries
887
+ **/
888
+ convictionVoting: {
889
+ /**
890
+ * All voting for a particular voter in a particular voting class. We store the balance for the
891
+ * number of votes that we have recorded.
892
+ *
893
+ * @param {[AccountId32Like, number]} arg
894
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
895
+ **/
896
+ votingFor: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting>;
897
+
898
+ /**
899
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
900
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
901
+ * this list.
902
+ *
903
+ * @param {AccountId32Like} arg
904
+ * @param {Callback<Array<[number, bigint]>> =} callback
905
+ **/
906
+ classLocksFor: GenericStorageQuery<(arg: AccountId32Like) => Array<[number, bigint]>>;
907
+
908
+ /**
909
+ * Generic pallet storage query
910
+ **/
911
+ [storage: string]: GenericStorageQuery;
912
+ };
913
+ /**
914
+ * Pallet `Referenda`'s storage queries
915
+ **/
916
+ referenda: {
917
+ /**
918
+ * The next free referendum index, aka the number of referenda started so far.
919
+ *
920
+ * @param {Callback<number> =} callback
921
+ **/
922
+ referendumCount: GenericStorageQuery<() => number>;
923
+
924
+ /**
925
+ * Information concerning any given referendum.
926
+ *
927
+ * @param {number} arg
928
+ * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
929
+ **/
930
+ referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfo | undefined>;
931
+
932
+ /**
933
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
934
+ * conviction-weighted approvals.
935
+ *
936
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
937
+ *
938
+ * @param {number} arg
939
+ * @param {Callback<Array<[number, bigint]>> =} callback
940
+ **/
941
+ trackQueue: GenericStorageQuery<(arg: number) => Array<[number, bigint]>>;
942
+
943
+ /**
944
+ * The number of referenda being decided currently.
945
+ *
946
+ * @param {number} arg
947
+ * @param {Callback<number> =} callback
948
+ **/
949
+ decidingCount: GenericStorageQuery<(arg: number) => number>;
950
+
951
+ /**
952
+ * The metadata is a general information concerning the referendum.
953
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
954
+ * dump or IPFS hash of a JSON file.
955
+ *
956
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
957
+ * large preimages.
958
+ *
959
+ * @param {number} arg
960
+ * @param {Callback<H256 | undefined> =} callback
961
+ **/
962
+ metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined>;
963
+
964
+ /**
965
+ * Generic pallet storage query
966
+ **/
967
+ [storage: string]: GenericStorageQuery;
968
+ };
969
+ /**
970
+ * Pallet `FellowshipCollective`'s storage queries
971
+ **/
972
+ fellowshipCollective: {
973
+ /**
974
+ * The number of members in the collective who have at least the rank according to the index
975
+ * of the vec.
976
+ *
977
+ * @param {number} arg
978
+ * @param {Callback<number> =} callback
979
+ **/
980
+ memberCount: GenericStorageQuery<(arg: number) => number>;
981
+
982
+ /**
983
+ * The current members of the collective.
984
+ *
985
+ * @param {AccountId32Like} arg
986
+ * @param {Callback<PalletRankedCollectiveMemberRecord | undefined> =} callback
987
+ **/
988
+ members: GenericStorageQuery<(arg: AccountId32Like) => PalletRankedCollectiveMemberRecord | undefined>;
989
+
990
+ /**
991
+ * The index of each ranks's member into the group of members who have at least that rank.
992
+ *
993
+ * @param {[number, AccountId32Like]} arg
994
+ * @param {Callback<number | undefined> =} callback
995
+ **/
996
+ idToIndex: GenericStorageQuery<(arg: [number, AccountId32Like]) => number | undefined>;
997
+
998
+ /**
999
+ * The members in the collective by index. All indices in the range `0..MemberCount` will
1000
+ * return `Some`, however a member's index is not guaranteed to remain unchanged over time.
1001
+ *
1002
+ * @param {[number, number]} arg
1003
+ * @param {Callback<AccountId32 | undefined> =} callback
1004
+ **/
1005
+ indexToId: GenericStorageQuery<(arg: [number, number]) => AccountId32 | undefined>;
1006
+
1007
+ /**
1008
+ * Votes on a given proposal, if it is ongoing.
1009
+ *
1010
+ * @param {[number, AccountId32Like]} arg
1011
+ * @param {Callback<PalletRankedCollectiveVoteRecord | undefined> =} callback
1012
+ **/
1013
+ voting: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletRankedCollectiveVoteRecord | undefined>;
1014
+
1015
+ /**
1016
+ *
1017
+ * @param {number} arg
1018
+ * @param {Callback<Bytes | undefined> =} callback
1019
+ **/
1020
+ votingCleanup: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1021
+
1022
+ /**
1023
+ * Generic pallet storage query
1024
+ **/
1025
+ [storage: string]: GenericStorageQuery;
1026
+ };
1027
+ /**
1028
+ * Pallet `FellowshipReferenda`'s storage queries
1029
+ **/
1030
+ fellowshipReferenda: {
1031
+ /**
1032
+ * The next free referendum index, aka the number of referenda started so far.
1033
+ *
1034
+ * @param {Callback<number> =} callback
1035
+ **/
1036
+ referendumCount: GenericStorageQuery<() => number>;
1037
+
1038
+ /**
1039
+ * Information concerning any given referendum.
1040
+ *
1041
+ * @param {number} arg
1042
+ * @param {Callback<PalletReferendaReferendumInfoTally | undefined> =} callback
1043
+ **/
1044
+ referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfoTally | undefined>;
1045
+
1046
+ /**
1047
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
1048
+ * conviction-weighted approvals.
1049
+ *
1050
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
1051
+ *
1052
+ * @param {number} arg
1053
+ * @param {Callback<Array<[number, number]>> =} callback
1054
+ **/
1055
+ trackQueue: GenericStorageQuery<(arg: number) => Array<[number, number]>>;
1056
+
1057
+ /**
1058
+ * The number of referenda being decided currently.
1059
+ *
1060
+ * @param {number} arg
1061
+ * @param {Callback<number> =} callback
1062
+ **/
1063
+ decidingCount: GenericStorageQuery<(arg: number) => number>;
1064
+
1065
+ /**
1066
+ * The metadata is a general information concerning the referendum.
1067
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1068
+ * dump or IPFS hash of a JSON file.
1069
+ *
1070
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1071
+ * large preimages.
1072
+ *
1073
+ * @param {number} arg
1074
+ * @param {Callback<H256 | undefined> =} callback
1075
+ **/
1076
+ metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined>;
1077
+
1078
+ /**
1079
+ * Generic pallet storage query
1080
+ **/
1081
+ [storage: string]: GenericStorageQuery;
1082
+ };
1083
+ /**
1084
+ * Pallet `Whitelist`'s storage queries
1085
+ **/
1086
+ whitelist: {
1087
+ /**
1088
+ *
1089
+ * @param {H256} arg
1090
+ * @param {Callback<[] | undefined> =} callback
1091
+ **/
1092
+ whitelistedCall: GenericStorageQuery<(arg: H256) => [] | undefined>;
1093
+
1094
+ /**
1095
+ * Generic pallet storage query
1096
+ **/
1097
+ [storage: string]: GenericStorageQuery;
1098
+ };
1099
+ /**
1100
+ * Pallet `Claims`'s storage queries
1101
+ **/
1102
+ claims: {
1103
+ /**
1104
+ *
1105
+ * @param {EthereumAddressLike} arg
1106
+ * @param {Callback<bigint | undefined> =} callback
1107
+ **/
1108
+ claims: GenericStorageQuery<(arg: EthereumAddressLike) => bigint | undefined>;
1109
+
1110
+ /**
1111
+ *
1112
+ * @param {Callback<bigint> =} callback
1113
+ **/
1114
+ total: GenericStorageQuery<() => bigint>;
1115
+
1116
+ /**
1117
+ * Vesting schedule for a claim.
1118
+ * First balance is the total amount that should be held for vesting.
1119
+ * Second balance is how much should be unlocked per block.
1120
+ * The block number is when the vesting should start.
1121
+ *
1122
+ * @param {EthereumAddressLike} arg
1123
+ * @param {Callback<[bigint, bigint, number] | undefined> =} callback
1124
+ **/
1125
+ vesting: GenericStorageQuery<(arg: EthereumAddressLike) => [bigint, bigint, number] | undefined>;
1126
+
1127
+ /**
1128
+ * The statement kind that must be signed, if any.
1129
+ *
1130
+ * @param {EthereumAddressLike} arg
1131
+ * @param {Callback<PolkadotRuntimeCommonClaimsStatementKind | undefined> =} callback
1132
+ **/
1133
+ signing: GenericStorageQuery<(arg: EthereumAddressLike) => PolkadotRuntimeCommonClaimsStatementKind | undefined>;
1134
+
1135
+ /**
1136
+ * Pre-claimed Ethereum accounts, by the Account ID that they are claimed to.
1137
+ *
1138
+ * @param {AccountId32Like} arg
1139
+ * @param {Callback<EthereumAddress | undefined> =} callback
1140
+ **/
1141
+ preclaims: GenericStorageQuery<(arg: AccountId32Like) => EthereumAddress | undefined>;
1142
+
1143
+ /**
1144
+ * Generic pallet storage query
1145
+ **/
1146
+ [storage: string]: GenericStorageQuery;
1147
+ };
1148
+ /**
1149
+ * Pallet `Identity`'s storage queries
1150
+ **/
1151
+ identity: {
1152
+ /**
1153
+ * Information that is pertinent to identify the entity behind an account. First item is the
1154
+ * registration, second is the account's primary username.
1155
+ *
1156
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1157
+ *
1158
+ * @param {AccountId32Like} arg
1159
+ * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1160
+ **/
1161
+ identityOf: GenericStorageQuery<
1162
+ (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined
1163
+ >;
1164
+
1165
+ /**
1166
+ * The super-identity of an alternative "sub" identity together with its name, within that
1167
+ * context. If the account is not some other account's sub-identity, then just `None`.
1168
+ *
1169
+ * @param {AccountId32Like} arg
1170
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
1171
+ **/
1172
+ superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
1173
+
1174
+ /**
1175
+ * Alternative "sub" identities of this account.
1176
+ *
1177
+ * The first item is the deposit, the second is a vector of the accounts.
1178
+ *
1179
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1180
+ *
1181
+ * @param {AccountId32Like} arg
1182
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1183
+ **/
1184
+ subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
1185
+
1186
+ /**
1187
+ * The set of registrars. Not expected to get very big as can only be added through a
1188
+ * special origin (likely a council motion).
1189
+ *
1190
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1191
+ *
1192
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1193
+ **/
1194
+ registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
1195
+
1196
+ /**
1197
+ * A map of the accounts who are authorized to grant usernames.
1198
+ *
1199
+ * @param {AccountId32Like} arg
1200
+ * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1201
+ **/
1202
+ usernameAuthorities: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined>;
1203
+
1204
+ /**
1205
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1206
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1207
+ *
1208
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1209
+ * primary username.
1210
+ *
1211
+ * @param {BytesLike} arg
1212
+ * @param {Callback<AccountId32 | undefined> =} callback
1213
+ **/
1214
+ accountOfUsername: GenericStorageQuery<(arg: BytesLike) => AccountId32 | undefined>;
1215
+
1216
+ /**
1217
+ * Usernames that an authority has granted, but that the account controller has not confirmed
1218
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1219
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1220
+ * [`Call::accept_username`].
1221
+ *
1222
+ * First tuple item is the account and second is the acceptance deadline.
1223
+ *
1224
+ * @param {BytesLike} arg
1225
+ * @param {Callback<[AccountId32, number] | undefined> =} callback
1226
+ **/
1227
+ pendingUsernames: GenericStorageQuery<(arg: BytesLike) => [AccountId32, number] | undefined>;
1228
+
1229
+ /**
1230
+ * Generic pallet storage query
1231
+ **/
1232
+ [storage: string]: GenericStorageQuery;
1233
+ };
1234
+ /**
1235
+ * Pallet `Society`'s storage queries
1236
+ **/
1237
+ society: {
1238
+ /**
1239
+ * The max number of members for the society at one time.
1240
+ *
1241
+ * @param {Callback<PalletSocietyGroupParams | undefined> =} callback
1242
+ **/
1243
+ parameters: GenericStorageQuery<() => PalletSocietyGroupParams | undefined>;
1244
+
1245
+ /**
1246
+ * Amount of our account balance that is specifically for the next round's bid(s).
1247
+ *
1248
+ * @param {Callback<bigint> =} callback
1249
+ **/
1250
+ pot: GenericStorageQuery<() => bigint>;
1251
+
1252
+ /**
1253
+ * The first member.
1254
+ *
1255
+ * @param {Callback<AccountId32 | undefined> =} callback
1256
+ **/
1257
+ founder: GenericStorageQuery<() => AccountId32 | undefined>;
1258
+
1259
+ /**
1260
+ * The most primary from the most recently approved rank 0 members in the society.
1261
+ *
1262
+ * @param {Callback<AccountId32 | undefined> =} callback
1263
+ **/
1264
+ head: GenericStorageQuery<() => AccountId32 | undefined>;
1265
+
1266
+ /**
1267
+ * A hash of the rules of this society concerning membership. Can only be set once and
1268
+ * only by the founder.
1269
+ *
1270
+ * @param {Callback<H256 | undefined> =} callback
1271
+ **/
1272
+ rules: GenericStorageQuery<() => H256 | undefined>;
1273
+
1274
+ /**
1275
+ * The current members and their rank. Doesn't include `SuspendedMembers`.
1276
+ *
1277
+ * @param {AccountId32Like} arg
1278
+ * @param {Callback<PalletSocietyMemberRecord | undefined> =} callback
1279
+ **/
1280
+ members: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyMemberRecord | undefined>;
1281
+
1282
+ /**
1283
+ * Information regarding rank-0 payouts, past and future.
1284
+ *
1285
+ * @param {AccountId32Like} arg
1286
+ * @param {Callback<PalletSocietyPayoutRecord> =} callback
1287
+ **/
1288
+ payouts: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyPayoutRecord>;
1289
+
1290
+ /**
1291
+ * The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)
1292
+ *
1293
+ * @param {Callback<number> =} callback
1294
+ **/
1295
+ memberCount: GenericStorageQuery<() => number>;
1296
+
1297
+ /**
1298
+ * The current items in `Members` keyed by their unique index. Keys are densely populated
1299
+ * `0..MemberCount` (does not include `MemberCount`).
1300
+ *
1301
+ * @param {number} arg
1302
+ * @param {Callback<AccountId32 | undefined> =} callback
1303
+ **/
1304
+ memberByIndex: GenericStorageQuery<(arg: number) => AccountId32 | undefined>;
1305
+
1306
+ /**
1307
+ * The set of suspended members, with their old membership record.
1308
+ *
1309
+ * @param {AccountId32Like} arg
1310
+ * @param {Callback<PalletSocietyMemberRecord | undefined> =} callback
1311
+ **/
1312
+ suspendedMembers: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyMemberRecord | undefined>;
1313
+
1314
+ /**
1315
+ * The number of rounds which have passed.
1316
+ *
1317
+ * @param {Callback<number> =} callback
1318
+ **/
1319
+ roundCount: GenericStorageQuery<() => number>;
1320
+
1321
+ /**
1322
+ * The current bids, stored ordered by the value of the bid.
1323
+ *
1324
+ * @param {Callback<Array<PalletSocietyBid>> =} callback
1325
+ **/
1326
+ bids: GenericStorageQuery<() => Array<PalletSocietyBid>>;
1327
+
1328
+ /**
1329
+ *
1330
+ * @param {AccountId32Like} arg
1331
+ * @param {Callback<PalletSocietyCandidacy | undefined> =} callback
1332
+ **/
1333
+ candidates: GenericStorageQuery<(arg: AccountId32Like) => PalletSocietyCandidacy | undefined>;
1334
+
1335
+ /**
1336
+ * The current skeptic.
1337
+ *
1338
+ * @param {Callback<AccountId32 | undefined> =} callback
1339
+ **/
1340
+ skeptic: GenericStorageQuery<() => AccountId32 | undefined>;
1341
+
1342
+ /**
1343
+ * Double map from Candidate -> Voter -> (Maybe) Vote.
1344
+ *
1345
+ * @param {[AccountId32Like, AccountId32Like]} arg
1346
+ * @param {Callback<PalletSocietyVote | undefined> =} callback
1347
+ **/
1348
+ votes: GenericStorageQuery<(arg: [AccountId32Like, AccountId32Like]) => PalletSocietyVote | undefined>;
1349
+
1350
+ /**
1351
+ * Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor.
1352
+ *
1353
+ * @param {AccountId32Like} arg
1354
+ * @param {Callback<Bytes | undefined> =} callback
1355
+ **/
1356
+ voteClearCursor: GenericStorageQuery<(arg: AccountId32Like) => Bytes | undefined>;
1357
+
1358
+ /**
1359
+ * At the end of the claim period, this contains the most recently approved members (along with
1360
+ * their bid and round ID) who is from the most recent round with the lowest bid. They will
1361
+ * become the new `Head`.
1362
+ *
1363
+ * @param {Callback<PalletSocietyIntakeRecord | undefined> =} callback
1364
+ **/
1365
+ nextHead: GenericStorageQuery<() => PalletSocietyIntakeRecord | undefined>;
1366
+
1367
+ /**
1368
+ * The number of challenge rounds there have been. Used to identify stale DefenderVotes.
1369
+ *
1370
+ * @param {Callback<number> =} callback
1371
+ **/
1372
+ challengeRoundCount: GenericStorageQuery<() => number>;
1373
+
1374
+ /**
1375
+ * The defending member currently being challenged, along with a running tally of votes.
1376
+ *
1377
+ * @param {Callback<[AccountId32, AccountId32, PalletSocietyTally] | undefined> =} callback
1378
+ **/
1379
+ defending: GenericStorageQuery<() => [AccountId32, AccountId32, PalletSocietyTally] | undefined>;
1380
+
1381
+ /**
1382
+ * Votes for the defender, keyed by challenge round.
1383
+ *
1384
+ * @param {[number, AccountId32Like]} arg
1385
+ * @param {Callback<PalletSocietyVote | undefined> =} callback
1386
+ **/
1387
+ defenderVotes: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletSocietyVote | undefined>;
1388
+
1389
+ /**
1390
+ * Generic pallet storage query
1391
+ **/
1392
+ [storage: string]: GenericStorageQuery;
1393
+ };
1394
+ /**
1395
+ * Pallet `Recovery`'s storage queries
1396
+ **/
1397
+ recovery: {
1398
+ /**
1399
+ * The set of recoverable accounts and their recovery configuration.
1400
+ *
1401
+ * @param {AccountId32Like} arg
1402
+ * @param {Callback<PalletRecoveryRecoveryConfig | undefined> =} callback
1403
+ **/
1404
+ recoverable: GenericStorageQuery<(arg: AccountId32Like) => PalletRecoveryRecoveryConfig | undefined>;
1405
+
1406
+ /**
1407
+ * Active recovery attempts.
1408
+ *
1409
+ * First account is the account to be recovered, and the second account
1410
+ * is the user trying to recover the account.
1411
+ *
1412
+ * @param {[AccountId32Like, AccountId32Like]} arg
1413
+ * @param {Callback<PalletRecoveryActiveRecovery | undefined> =} callback
1414
+ **/
1415
+ activeRecoveries: GenericStorageQuery<
1416
+ (arg: [AccountId32Like, AccountId32Like]) => PalletRecoveryActiveRecovery | undefined
1417
+ >;
1418
+
1419
+ /**
1420
+ * The list of allowed proxy accounts.
1421
+ *
1422
+ * Map from the user who can access it to the recovered account.
1423
+ *
1424
+ * @param {AccountId32Like} arg
1425
+ * @param {Callback<AccountId32 | undefined> =} callback
1426
+ **/
1427
+ proxy: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined>;
1428
+
1429
+ /**
1430
+ * Generic pallet storage query
1431
+ **/
1432
+ [storage: string]: GenericStorageQuery;
1433
+ };
1434
+ /**
1435
+ * Pallet `Vesting`'s storage queries
1436
+ **/
1437
+ vesting: {
1438
+ /**
1439
+ * Information regarding the vesting of a given account.
1440
+ *
1441
+ * @param {AccountId32Like} arg
1442
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
1443
+ **/
1444
+ vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined>;
1445
+
1446
+ /**
1447
+ * Storage version of the pallet.
1448
+ *
1449
+ * New networks start with latest version, as determined by the genesis build.
1450
+ *
1451
+ * @param {Callback<PalletVestingReleases> =} callback
1452
+ **/
1453
+ storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
1454
+
1455
+ /**
1456
+ * Generic pallet storage query
1457
+ **/
1458
+ [storage: string]: GenericStorageQuery;
1459
+ };
1460
+ /**
1461
+ * Pallet `Scheduler`'s storage queries
1462
+ **/
1463
+ scheduler: {
1464
+ /**
1465
+ *
1466
+ * @param {Callback<number | undefined> =} callback
1467
+ **/
1468
+ incompleteSince: GenericStorageQuery<() => number | undefined>;
1469
+
1470
+ /**
1471
+ * Items to be executed, indexed by the block number that they should be executed on.
1472
+ *
1473
+ * @param {number} arg
1474
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
1475
+ **/
1476
+ agenda: GenericStorageQuery<(arg: number) => Array<PalletSchedulerScheduled | undefined>>;
1477
+
1478
+ /**
1479
+ * Retry configurations for items to be executed, indexed by task address.
1480
+ *
1481
+ * @param {[number, number]} arg
1482
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
1483
+ **/
1484
+ retries: GenericStorageQuery<(arg: [number, number]) => PalletSchedulerRetryConfig | undefined>;
1485
+
1486
+ /**
1487
+ * Lookup from a name to the block number and index of the task.
1488
+ *
1489
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1490
+ * identities.
1491
+ *
1492
+ * @param {FixedBytes<32>} arg
1493
+ * @param {Callback<[number, number] | undefined> =} callback
1494
+ **/
1495
+ lookup: GenericStorageQuery<(arg: FixedBytes<32>) => [number, number] | undefined>;
1496
+
1497
+ /**
1498
+ * Generic pallet storage query
1499
+ **/
1500
+ [storage: string]: GenericStorageQuery;
1501
+ };
1502
+ /**
1503
+ * Pallet `Proxy`'s storage queries
1504
+ **/
1505
+ proxy: {
1506
+ /**
1507
+ * The set of account proxies. Maps the account which has delegated to the accounts
1508
+ * which are being delegated to, together with the amount held on deposit.
1509
+ *
1510
+ * @param {AccountId32Like} arg
1511
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1512
+ **/
1513
+ proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
1514
+
1515
+ /**
1516
+ * The announcements made by the proxy (key).
1517
+ *
1518
+ * @param {AccountId32Like} arg
1519
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1520
+ **/
1521
+ announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
1522
+
1523
+ /**
1524
+ * Generic pallet storage query
1525
+ **/
1526
+ [storage: string]: GenericStorageQuery;
1527
+ };
1528
+ /**
1529
+ * Pallet `Multisig`'s storage queries
1530
+ **/
1531
+ multisig: {
1532
+ /**
1533
+ * The set of open multisig operations.
1534
+ *
1535
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1536
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1537
+ **/
1538
+ multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
1539
+
1540
+ /**
1541
+ * Generic pallet storage query
1542
+ **/
1543
+ [storage: string]: GenericStorageQuery;
1544
+ };
1545
+ /**
1546
+ * Pallet `Preimage`'s storage queries
1547
+ **/
1548
+ preimage: {
1549
+ /**
1550
+ * The request status of a given hash.
1551
+ *
1552
+ * @param {H256} arg
1553
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
1554
+ **/
1555
+ statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageOldRequestStatus | undefined>;
1556
+
1557
+ /**
1558
+ * The request status of a given hash.
1559
+ *
1560
+ * @param {H256} arg
1561
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
1562
+ **/
1563
+ requestStatusFor: GenericStorageQuery<(arg: H256) => PalletPreimageRequestStatus | undefined>;
1564
+
1565
+ /**
1566
+ *
1567
+ * @param {[H256, number]} arg
1568
+ * @param {Callback<Bytes | undefined> =} callback
1569
+ **/
1570
+ preimageFor: GenericStorageQuery<(arg: [H256, number]) => Bytes | undefined>;
1571
+
1572
+ /**
1573
+ * Generic pallet storage query
1574
+ **/
1575
+ [storage: string]: GenericStorageQuery;
1576
+ };
1577
+ /**
1578
+ * Pallet `AssetRate`'s storage queries
1579
+ **/
1580
+ assetRate: {
1581
+ /**
1582
+ * Maps an asset to its fixed point representation in the native balance.
1583
+ *
1584
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
1585
+ *
1586
+ * @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} arg
1587
+ * @param {Callback<FixedU128 | undefined> =} callback
1588
+ **/
1589
+ conversionRateToNative: GenericStorageQuery<
1590
+ (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset) => FixedU128 | undefined
1591
+ >;
1592
+
1593
+ /**
1594
+ * Generic pallet storage query
1595
+ **/
1596
+ [storage: string]: GenericStorageQuery;
1597
+ };
1598
+ /**
1599
+ * Pallet `Bounties`'s storage queries
1600
+ **/
1601
+ bounties: {
1602
+ /**
1603
+ * Number of bounty proposals that have been made.
1604
+ *
1605
+ * @param {Callback<number> =} callback
1606
+ **/
1607
+ bountyCount: GenericStorageQuery<() => number>;
1608
+
1609
+ /**
1610
+ * Bounties that have been made.
1611
+ *
1612
+ * @param {number} arg
1613
+ * @param {Callback<PalletBountiesBounty | undefined> =} callback
1614
+ **/
1615
+ bounties: GenericStorageQuery<(arg: number) => PalletBountiesBounty | undefined>;
1616
+
1617
+ /**
1618
+ * The description of each bounty.
1619
+ *
1620
+ * @param {number} arg
1621
+ * @param {Callback<Bytes | undefined> =} callback
1622
+ **/
1623
+ bountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1624
+
1625
+ /**
1626
+ * Bounty indices that have been approved but not yet funded.
1627
+ *
1628
+ * @param {Callback<Array<number>> =} callback
1629
+ **/
1630
+ bountyApprovals: GenericStorageQuery<() => Array<number>>;
1631
+
1632
+ /**
1633
+ * Generic pallet storage query
1634
+ **/
1635
+ [storage: string]: GenericStorageQuery;
1636
+ };
1637
+ /**
1638
+ * Pallet `ChildBounties`'s storage queries
1639
+ **/
1640
+ childBounties: {
1641
+ /**
1642
+ * Number of total child bounties.
1643
+ *
1644
+ * @param {Callback<number> =} callback
1645
+ **/
1646
+ childBountyCount: GenericStorageQuery<() => number>;
1647
+
1648
+ /**
1649
+ * Number of child bounties per parent bounty.
1650
+ * Map of parent bounty index to number of child bounties.
1651
+ *
1652
+ * @param {number} arg
1653
+ * @param {Callback<number> =} callback
1654
+ **/
1655
+ parentChildBounties: GenericStorageQuery<(arg: number) => number>;
1656
+
1657
+ /**
1658
+ * Child bounties that have been added.
1659
+ *
1660
+ * @param {[number, number]} arg
1661
+ * @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
1662
+ **/
1663
+ childBounties: GenericStorageQuery<(arg: [number, number]) => PalletChildBountiesChildBounty | undefined>;
1664
+
1665
+ /**
1666
+ * The description of each child-bounty.
1667
+ *
1668
+ * @param {number} arg
1669
+ * @param {Callback<Bytes | undefined> =} callback
1670
+ **/
1671
+ childBountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1672
+
1673
+ /**
1674
+ * The cumulative child-bounty curator fee for each parent bounty.
1675
+ *
1676
+ * @param {number} arg
1677
+ * @param {Callback<bigint> =} callback
1678
+ **/
1679
+ childrenCuratorFees: GenericStorageQuery<(arg: number) => bigint>;
1680
+
1681
+ /**
1682
+ * Generic pallet storage query
1683
+ **/
1684
+ [storage: string]: GenericStorageQuery;
1685
+ };
1686
+ /**
1687
+ * Pallet `Nis`'s storage queries
1688
+ **/
1689
+ nis: {
1690
+ /**
1691
+ * The totals of items and balances within each queue. Saves a lot of storage reads in the
1692
+ * case of sparsely packed queues.
1693
+ *
1694
+ * The vector is indexed by duration in `Period`s, offset by one, so information on the queue
1695
+ * whose duration is one `Period` would be storage `0`.
1696
+ *
1697
+ * @param {Callback<Array<[number, bigint]>> =} callback
1698
+ **/
1699
+ queueTotals: GenericStorageQuery<() => Array<[number, bigint]>>;
1700
+
1701
+ /**
1702
+ * The queues of bids. Indexed by duration (in `Period`s).
1703
+ *
1704
+ * @param {number} arg
1705
+ * @param {Callback<Array<PalletNisBid>> =} callback
1706
+ **/
1707
+ queues: GenericStorageQuery<(arg: number) => Array<PalletNisBid>>;
1708
+
1709
+ /**
1710
+ * Summary information over the general state.
1711
+ *
1712
+ * @param {Callback<PalletNisSummaryRecord> =} callback
1713
+ **/
1714
+ summary: GenericStorageQuery<() => PalletNisSummaryRecord>;
1715
+
1716
+ /**
1717
+ * The currently outstanding receipts, indexed according to the order of creation.
1718
+ *
1719
+ * @param {number} arg
1720
+ * @param {Callback<PalletNisReceiptRecord | undefined> =} callback
1721
+ **/
1722
+ receipts: GenericStorageQuery<(arg: number) => PalletNisReceiptRecord | undefined>;
1723
+
1724
+ /**
1725
+ * Generic pallet storage query
1726
+ **/
1727
+ [storage: string]: GenericStorageQuery;
1728
+ };
1729
+ /**
1730
+ * Pallet `NisCounterpartBalances`'s storage queries
1731
+ **/
1732
+ nisCounterpartBalances: {
1733
+ /**
1734
+ * The total units issued in the system.
1735
+ *
1736
+ * @param {Callback<bigint> =} callback
1737
+ **/
1738
+ totalIssuance: GenericStorageQuery<() => bigint>;
1739
+
1740
+ /**
1741
+ * The total units of outstanding deactivated balance in the system.
1742
+ *
1743
+ * @param {Callback<bigint> =} callback
1744
+ **/
1745
+ inactiveIssuance: GenericStorageQuery<() => bigint>;
1746
+
1747
+ /**
1748
+ * The Balances pallet example of storing the balance of an account.
1749
+ *
1750
+ * # Example
1751
+ *
1752
+ * ```nocompile
1753
+ * impl pallet_balances::Config for Runtime {
1754
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
1755
+ * }
1756
+ * ```
1757
+ *
1758
+ * You can also store the balance of an account in the `System` pallet.
1759
+ *
1760
+ * # Example
1761
+ *
1762
+ * ```nocompile
1763
+ * impl pallet_balances::Config for Runtime {
1764
+ * type AccountStore = System
1765
+ * }
1766
+ * ```
1767
+ *
1768
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
1769
+ * `frame_system` data alongside the account data contrary to storing account balances in the
1770
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
1771
+ * NOTE: This is only used in the case that this pallet is used to store balances.
1772
+ *
1773
+ * @param {AccountId32Like} arg
1774
+ * @param {Callback<PalletBalancesAccountData> =} callback
1775
+ **/
1776
+ account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
1777
+
1778
+ /**
1779
+ * Any liquidity locks on some account balances.
1780
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
1781
+ *
1782
+ * @param {AccountId32Like} arg
1783
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
1784
+ **/
1785
+ locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
1786
+
1787
+ /**
1788
+ * Named reserves on some account balances.
1789
+ *
1790
+ * @param {AccountId32Like} arg
1791
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
1792
+ **/
1793
+ reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
1794
+
1795
+ /**
1796
+ * Holds on account balances.
1797
+ *
1798
+ * @param {AccountId32Like} arg
1799
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
1800
+ **/
1801
+ holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
1802
+
1803
+ /**
1804
+ * Freeze locks on account balances.
1805
+ *
1806
+ * @param {AccountId32Like} arg
1807
+ * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
1808
+ **/
1809
+ freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount002>>;
1810
+
1811
+ /**
1812
+ * Generic pallet storage query
1813
+ **/
1814
+ [storage: string]: GenericStorageQuery;
1815
+ };
1816
+ /**
1817
+ * Pallet `Configuration`'s storage queries
1818
+ **/
1819
+ configuration: {
1820
+ /**
1821
+ * The active configuration for the current session.
1822
+ *
1823
+ * @param {Callback<PolkadotRuntimeParachainsConfigurationHostConfiguration> =} callback
1824
+ **/
1825
+ activeConfig: GenericStorageQuery<() => PolkadotRuntimeParachainsConfigurationHostConfiguration>;
1826
+
1827
+ /**
1828
+ * Pending configuration changes.
1829
+ *
1830
+ * This is a list of configuration changes, each with a session index at which it should
1831
+ * be applied.
1832
+ *
1833
+ * The list is sorted ascending by session index. Also, this list can only contain at most
1834
+ * 2 items: for the next session and for the `scheduled_session`.
1835
+ *
1836
+ * @param {Callback<Array<[number, PolkadotRuntimeParachainsConfigurationHostConfiguration]>> =} callback
1837
+ **/
1838
+ pendingConfigs: GenericStorageQuery<() => Array<[number, PolkadotRuntimeParachainsConfigurationHostConfiguration]>>;
1839
+
1840
+ /**
1841
+ * If this is set, then the configuration setters will bypass the consistency checks. This
1842
+ * is meant to be used only as the last resort.
1843
+ *
1844
+ * @param {Callback<boolean> =} callback
1845
+ **/
1846
+ bypassConsistencyCheck: GenericStorageQuery<() => boolean>;
1847
+
1848
+ /**
1849
+ * Generic pallet storage query
1850
+ **/
1851
+ [storage: string]: GenericStorageQuery;
1852
+ };
1853
+ /**
1854
+ * Pallet `ParasShared`'s storage queries
1855
+ **/
1856
+ parasShared: {
1857
+ /**
1858
+ * The current session index.
1859
+ *
1860
+ * @param {Callback<number> =} callback
1861
+ **/
1862
+ currentSessionIndex: GenericStorageQuery<() => number>;
1863
+
1864
+ /**
1865
+ * All the validators actively participating in parachain consensus.
1866
+ * Indices are into the broader validator set.
1867
+ *
1868
+ * @param {Callback<Array<PolkadotPrimitivesV6ValidatorIndex>> =} callback
1869
+ **/
1870
+ activeValidatorIndices: GenericStorageQuery<() => Array<PolkadotPrimitivesV6ValidatorIndex>>;
1871
+
1872
+ /**
1873
+ * The parachain attestation keys of the validators actively participating in parachain
1874
+ * consensus. This should be the same length as `ActiveValidatorIndices`.
1875
+ *
1876
+ * @param {Callback<Array<PolkadotPrimitivesV6ValidatorAppPublic>> =} callback
1877
+ **/
1878
+ activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV6ValidatorAppPublic>>;
1879
+
1880
+ /**
1881
+ * All allowed relay-parents.
1882
+ *
1883
+ * @param {Callback<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker> =} callback
1884
+ **/
1885
+ allowedRelayParents: GenericStorageQuery<() => PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>;
1886
+
1887
+ /**
1888
+ * Generic pallet storage query
1889
+ **/
1890
+ [storage: string]: GenericStorageQuery;
1891
+ };
1892
+ /**
1893
+ * Pallet `ParaInclusion`'s storage queries
1894
+ **/
1895
+ paraInclusion: {
1896
+ /**
1897
+ * The latest bitfield for each validator, referred to by their index in the validator set.
1898
+ *
1899
+ * @param {PolkadotPrimitivesV6ValidatorIndex} arg
1900
+ * @param {Callback<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord | undefined> =} callback
1901
+ **/
1902
+ availabilityBitfields: GenericStorageQuery<
1903
+ (
1904
+ arg: PolkadotPrimitivesV6ValidatorIndex,
1905
+ ) => PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord | undefined
1906
+ >;
1907
+
1908
+ /**
1909
+ * Candidates pending availability by `ParaId`.
1910
+ *
1911
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1912
+ * @param {Callback<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability | undefined> =} callback
1913
+ **/
1914
+ pendingAvailability: GenericStorageQuery<
1915
+ (
1916
+ arg: PolkadotParachainPrimitivesPrimitivesId,
1917
+ ) => PolkadotRuntimeParachainsInclusionCandidatePendingAvailability | undefined
1918
+ >;
1919
+
1920
+ /**
1921
+ * The commitments of candidates pending availability, by `ParaId`.
1922
+ *
1923
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1924
+ * @param {Callback<PolkadotPrimitivesV6CandidateCommitments | undefined> =} callback
1925
+ **/
1926
+ pendingAvailabilityCommitments: GenericStorageQuery<
1927
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6CandidateCommitments | undefined
1928
+ >;
1929
+
1930
+ /**
1931
+ * Generic pallet storage query
1932
+ **/
1933
+ [storage: string]: GenericStorageQuery;
1934
+ };
1935
+ /**
1936
+ * Pallet `ParaInherent`'s storage queries
1937
+ **/
1938
+ paraInherent: {
1939
+ /**
1940
+ * Whether the paras inherent was included within this block.
1941
+ *
1942
+ * The `Option<()>` is effectively a `bool`, but it never hits storage in the `None` variant
1943
+ * due to the guarantees of FRAME's storage APIs.
1944
+ *
1945
+ * If this is `None` at the end of the block, we panic and render the block invalid.
1946
+ *
1947
+ * @param {Callback<[] | undefined> =} callback
1948
+ **/
1949
+ included: GenericStorageQuery<() => [] | undefined>;
1950
+
1951
+ /**
1952
+ * Scraped on chain data for extracting resolved disputes as well as backing votes.
1953
+ *
1954
+ * @param {Callback<PolkadotPrimitivesV6ScrapedOnChainVotes | undefined> =} callback
1955
+ **/
1956
+ onChainVotes: GenericStorageQuery<() => PolkadotPrimitivesV6ScrapedOnChainVotes | undefined>;
1957
+
1958
+ /**
1959
+ * Generic pallet storage query
1960
+ **/
1961
+ [storage: string]: GenericStorageQuery;
1962
+ };
1963
+ /**
1964
+ * Pallet `ParaScheduler`'s storage queries
1965
+ **/
1966
+ paraScheduler: {
1967
+ /**
1968
+ * All the validator groups. One for each core. Indices are into `ActiveValidators` - not the
1969
+ * broader set of Polkadot validators, but instead just the subset used for parachains during
1970
+ * this session.
1971
+ *
1972
+ * Bound: The number of cores is the sum of the numbers of parachains and parathread
1973
+ * multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
1974
+ * upper bound at 10k.
1975
+ *
1976
+ * @param {Callback<Array<Array<PolkadotPrimitivesV6ValidatorIndex>>> =} callback
1977
+ **/
1978
+ validatorGroups: GenericStorageQuery<() => Array<Array<PolkadotPrimitivesV6ValidatorIndex>>>;
1979
+
1980
+ /**
1981
+ * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
1982
+ * remaining cores all being on demand parachain multiplexers.
1983
+ *
1984
+ * Bounded by the maximum of either of these two values:
1985
+ * * The number of parachains and parathread multiplexers
1986
+ * * The number of validators divided by `configuration.max_validators_per_core`.
1987
+ *
1988
+ * @param {Callback<Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>> =} callback
1989
+ **/
1990
+ availabilityCores: GenericStorageQuery<() => Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>;
1991
+
1992
+ /**
1993
+ * The block number where the session start occurred. Used to track how many group rotations
1994
+ * have occurred.
1995
+ *
1996
+ * Note that in the context of parachains modules the session change is signaled during
1997
+ * the block and enacted at the end of the block (at the finalization stage, to be exact).
1998
+ * Thus for all intents and purposes the effect of the session change is observed at the
1999
+ * block following the session change, block number of which we save in this storage value.
2000
+ *
2001
+ * @param {Callback<number> =} callback
2002
+ **/
2003
+ sessionStartBlock: GenericStorageQuery<() => number>;
2004
+
2005
+ /**
2006
+ * One entry for each availability core. The `VecDeque` represents the assignments to be
2007
+ * scheduled on that core. The value contained here will not be valid after the end of
2008
+ * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
2009
+ *
2010
+ * @param {Callback<Array<[PolkadotPrimitivesV6CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2011
+ **/
2012
+ claimQueue: GenericStorageQuery<
2013
+ () => Array<[PolkadotPrimitivesV6CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2014
+ >;
2015
+
2016
+ /**
2017
+ * Generic pallet storage query
2018
+ **/
2019
+ [storage: string]: GenericStorageQuery;
2020
+ };
2021
+ /**
2022
+ * Pallet `Paras`'s storage queries
2023
+ **/
2024
+ paras: {
2025
+ /**
2026
+ * All currently active PVF pre-checking votes.
2027
+ *
2028
+ * Invariant:
2029
+ * - There are no PVF pre-checking votes that exists in list but not in the set and vice versa.
2030
+ *
2031
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
2032
+ * @param {Callback<PolkadotRuntimeParachainsParasPvfCheckActiveVoteState | undefined> =} callback
2033
+ **/
2034
+ pvfActiveVoteMap: GenericStorageQuery<
2035
+ (
2036
+ arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
2037
+ ) => PolkadotRuntimeParachainsParasPvfCheckActiveVoteState | undefined
2038
+ >;
2039
+
2040
+ /**
2041
+ * The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`.
2042
+ *
2043
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>> =} callback
2044
+ **/
2045
+ pvfActiveVoteList: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>>;
2046
+
2047
+ /**
2048
+ * All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not
2049
+ * included.
2050
+ *
2051
+ * Consider using the [`ParachainsCache`] type of modifying.
2052
+ *
2053
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2054
+ **/
2055
+ parachains: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2056
+
2057
+ /**
2058
+ * The current lifecycle of a all known Para IDs.
2059
+ *
2060
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2061
+ * @param {Callback<PolkadotRuntimeParachainsParasParaLifecycle | undefined> =} callback
2062
+ **/
2063
+ paraLifecycles: GenericStorageQuery<
2064
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaLifecycle | undefined
2065
+ >;
2066
+
2067
+ /**
2068
+ * The head-data of every registered para.
2069
+ *
2070
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2071
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesHeadData | undefined> =} callback
2072
+ **/
2073
+ heads: GenericStorageQuery<
2074
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesHeadData | undefined
2075
+ >;
2076
+
2077
+ /**
2078
+ * The context (relay-chain block number) of the most recent parachain head.
2079
+ *
2080
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2081
+ * @param {Callback<number | undefined> =} callback
2082
+ **/
2083
+ mostRecentContext: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined>;
2084
+
2085
+ /**
2086
+ * The validation code hash of every live para.
2087
+ *
2088
+ * Corresponding code can be retrieved with [`CodeByHash`].
2089
+ *
2090
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2091
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
2092
+ **/
2093
+ currentCodeHash: GenericStorageQuery<
2094
+ (
2095
+ arg: PolkadotParachainPrimitivesPrimitivesId,
2096
+ ) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined
2097
+ >;
2098
+
2099
+ /**
2100
+ * Actual past code hash, indicated by the para id as well as the block number at which it
2101
+ * became outdated.
2102
+ *
2103
+ * Corresponding code can be retrieved with [`CodeByHash`].
2104
+ *
2105
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
2106
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
2107
+ **/
2108
+ pastCodeHash: GenericStorageQuery<
2109
+ (
2110
+ arg: [PolkadotParachainPrimitivesPrimitivesId, number],
2111
+ ) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined
2112
+ >;
2113
+
2114
+ /**
2115
+ * Past code of parachains. The parachains themselves may not be registered anymore,
2116
+ * but we also keep their code on-chain for the same amount of time as outdated code
2117
+ * to keep it available for approval checkers.
2118
+ *
2119
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2120
+ * @param {Callback<PolkadotRuntimeParachainsParasParaPastCodeMeta> =} callback
2121
+ **/
2122
+ pastCodeMeta: GenericStorageQuery<
2123
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaPastCodeMeta
2124
+ >;
2125
+
2126
+ /**
2127
+ * Which paras have past code that needs pruning and the relay-chain block at which the code
2128
+ * was replaced. Note that this is the actual height of the included block, not the expected
2129
+ * height at which the code upgrade would be applied, although they may be equal.
2130
+ * This is to ensure the entire acceptance period is covered, not an offset acceptance period
2131
+ * starting from the time at which the parachain perceives a code upgrade as having occurred.
2132
+ * Multiple entries for a single para are permitted. Ordered ascending by block number.
2133
+ *
2134
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2135
+ **/
2136
+ pastCodePruning: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2137
+
2138
+ /**
2139
+ * The block number at which the planned code change is expected for a para.
2140
+ * The change will be applied after the first parablock for this ID included which executes
2141
+ * in the context of a relay chain block with a number >= `expected_at`.
2142
+ *
2143
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2144
+ * @param {Callback<number | undefined> =} callback
2145
+ **/
2146
+ futureCodeUpgrades: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined>;
2147
+
2148
+ /**
2149
+ * The actual future code hash of a para.
2150
+ *
2151
+ * Corresponding code can be retrieved with [`CodeByHash`].
2152
+ *
2153
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2154
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
2155
+ **/
2156
+ futureCodeHash: GenericStorageQuery<
2157
+ (
2158
+ arg: PolkadotParachainPrimitivesPrimitivesId,
2159
+ ) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined
2160
+ >;
2161
+
2162
+ /**
2163
+ * This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
2164
+ * procedure.
2165
+ *
2166
+ * This value is absent when there are no upgrades scheduled or during the time the relay chain
2167
+ * performs the checks. It is set at the first relay-chain block when the corresponding
2168
+ * parachain can switch its upgrade function. As soon as the parachain's block is included, the
2169
+ * value gets reset to `None`.
2170
+ *
2171
+ * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
2172
+ * the format will require migration of parachains.
2173
+ *
2174
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2175
+ * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
2176
+ **/
2177
+ upgradeGoAheadSignal: GenericStorageQuery<
2178
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6UpgradeGoAhead | undefined
2179
+ >;
2180
+
2181
+ /**
2182
+ * This is used by the relay-chain to communicate that there are restrictions for performing
2183
+ * an upgrade for this parachain.
2184
+ *
2185
+ * This may be a because the parachain waits for the upgrade cooldown to expire. Another
2186
+ * potential use case is when we want to perform some maintenance (such as storage migration)
2187
+ * we could restrict upgrades to make the process simpler.
2188
+ *
2189
+ * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
2190
+ * the format will require migration of parachains.
2191
+ *
2192
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2193
+ * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
2194
+ **/
2195
+ upgradeRestrictionSignal: GenericStorageQuery<
2196
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6UpgradeRestriction | undefined
2197
+ >;
2198
+
2199
+ /**
2200
+ * The list of parachains that are awaiting for their upgrade restriction to cooldown.
2201
+ *
2202
+ * Ordered ascending by block number.
2203
+ *
2204
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2205
+ **/
2206
+ upgradeCooldowns: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2207
+
2208
+ /**
2209
+ * The list of upcoming code upgrades. Each item is a pair of which para performs a code
2210
+ * upgrade and at which relay-chain block it is expected at.
2211
+ *
2212
+ * Ordered ascending by block number.
2213
+ *
2214
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2215
+ **/
2216
+ upcomingUpgrades: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2217
+
2218
+ /**
2219
+ * The actions to perform during the start of a specific session index.
2220
+ *
2221
+ * @param {number} arg
2222
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2223
+ **/
2224
+ actionsQueue: GenericStorageQuery<(arg: number) => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2225
+
2226
+ /**
2227
+ * Upcoming paras instantiation arguments.
2228
+ *
2229
+ * NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set
2230
+ * to empty. Instead, the code will be saved into the storage right away via `CodeByHash`.
2231
+ *
2232
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2233
+ * @param {Callback<PolkadotRuntimeParachainsParasParaGenesisArgs | undefined> =} callback
2234
+ **/
2235
+ upcomingParasGenesis: GenericStorageQuery<
2236
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaGenesisArgs | undefined
2237
+ >;
2238
+
2239
+ /**
2240
+ * The number of reference on the validation code in [`CodeByHash`] storage.
2241
+ *
2242
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
2243
+ * @param {Callback<number> =} callback
2244
+ **/
2245
+ codeByHashRefs: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash) => number>;
2246
+
2247
+ /**
2248
+ * Validation code stored by its hash.
2249
+ *
2250
+ * This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and
2251
+ * [`PastCodeHash`].
2252
+ *
2253
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
2254
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined> =} callback
2255
+ **/
2256
+ codeByHash: GenericStorageQuery<
2257
+ (
2258
+ arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
2259
+ ) => PolkadotParachainPrimitivesPrimitivesValidationCode | undefined
2260
+ >;
2261
+
2262
+ /**
2263
+ * Generic pallet storage query
2264
+ **/
2265
+ [storage: string]: GenericStorageQuery;
2266
+ };
2267
+ /**
2268
+ * Pallet `Initializer`'s storage queries
2269
+ **/
2270
+ initializer: {
2271
+ /**
2272
+ * Whether the parachains modules have been initialized within this block.
2273
+ *
2274
+ * Semantically a `bool`, but this guarantees it should never hit the trie,
2275
+ * as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values.
2276
+ *
2277
+ * As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one
2278
+ * of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable
2279
+ * for the semantics of this variable.
2280
+ *
2281
+ * @param {Callback<[] | undefined> =} callback
2282
+ **/
2283
+ hasInitialized: GenericStorageQuery<() => [] | undefined>;
2284
+
2285
+ /**
2286
+ * Buffered session changes along with the block number at which they should be applied.
2287
+ *
2288
+ * Typically this will be empty or one element long. Apart from that this item never hits
2289
+ * the storage.
2290
+ *
2291
+ * However this is a `Vec` regardless to handle various edge cases that may occur at runtime
2292
+ * upgrade boundaries or if governance intervenes.
2293
+ *
2294
+ * @param {Callback<Array<PolkadotRuntimeParachainsInitializerBufferedSessionChange>> =} callback
2295
+ **/
2296
+ bufferedSessionChanges: GenericStorageQuery<() => Array<PolkadotRuntimeParachainsInitializerBufferedSessionChange>>;
2297
+
2298
+ /**
2299
+ * Generic pallet storage query
2300
+ **/
2301
+ [storage: string]: GenericStorageQuery;
2302
+ };
2303
+ /**
2304
+ * Pallet `Dmp`'s storage queries
2305
+ **/
2306
+ dmp: {
2307
+ /**
2308
+ * The downward messages addressed for a certain para.
2309
+ *
2310
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2311
+ * @param {Callback<Array<PolkadotCorePrimitivesInboundDownwardMessage>> =} callback
2312
+ **/
2313
+ downwardMessageQueues: GenericStorageQuery<
2314
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotCorePrimitivesInboundDownwardMessage>
2315
+ >;
2316
+
2317
+ /**
2318
+ * A mapping that stores the downward message queue MQC head for each para.
2319
+ *
2320
+ * Each link in this chain has a form:
2321
+ * `(prev_head, B, H(M))`, where
2322
+ * - `prev_head`: is the previous head hash or zero if none.
2323
+ * - `B`: is the relay-chain block number in which a message was appended.
2324
+ * - `H(M)`: is the hash of the message being appended.
2325
+ *
2326
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2327
+ * @param {Callback<H256> =} callback
2328
+ **/
2329
+ downwardMessageQueueHeads: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => H256>;
2330
+
2331
+ /**
2332
+ * The factor to multiply the base delivery fee by.
2333
+ *
2334
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2335
+ * @param {Callback<FixedU128> =} callback
2336
+ **/
2337
+ deliveryFeeFactor: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128>;
2338
+
2339
+ /**
2340
+ * Generic pallet storage query
2341
+ **/
2342
+ [storage: string]: GenericStorageQuery;
2343
+ };
2344
+ /**
2345
+ * Pallet `Hrmp`'s storage queries
2346
+ **/
2347
+ hrmp: {
2348
+ /**
2349
+ * The set of pending HRMP open channel requests.
2350
+ *
2351
+ * The set is accompanied by a list for iteration.
2352
+ *
2353
+ * Invariant:
2354
+ * - There are no channels that exists in list but not in the set and vice versa.
2355
+ *
2356
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2357
+ * @param {Callback<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest | undefined> =} callback
2358
+ **/
2359
+ hrmpOpenChannelRequests: GenericStorageQuery<
2360
+ (
2361
+ arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
2362
+ ) => PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest | undefined
2363
+ >;
2364
+
2365
+ /**
2366
+ *
2367
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>> =} callback
2368
+ **/
2369
+ hrmpOpenChannelRequestsList: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>;
2370
+
2371
+ /**
2372
+ * This mapping tracks how many open channel requests are initiated by a given sender para.
2373
+ * Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
2374
+ * `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
2375
+ *
2376
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2377
+ * @param {Callback<number> =} callback
2378
+ **/
2379
+ hrmpOpenChannelRequestCount: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number>;
2380
+
2381
+ /**
2382
+ * This mapping tracks how many open channel requests were accepted by a given recipient para.
2383
+ * Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with
2384
+ * `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`.
2385
+ *
2386
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2387
+ * @param {Callback<number> =} callback
2388
+ **/
2389
+ hrmpAcceptedChannelRequestCount: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number>;
2390
+
2391
+ /**
2392
+ * A set of pending HRMP close channel requests that are going to be closed during the session
2393
+ * change. Used for checking if a given channel is registered for closure.
2394
+ *
2395
+ * The set is accompanied by a list for iteration.
2396
+ *
2397
+ * Invariant:
2398
+ * - There are no channels that exists in list but not in the set and vice versa.
2399
+ *
2400
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2401
+ * @param {Callback<[] | undefined> =} callback
2402
+ **/
2403
+ hrmpCloseChannelRequests: GenericStorageQuery<
2404
+ (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => [] | undefined
2405
+ >;
2406
+
2407
+ /**
2408
+ *
2409
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>> =} callback
2410
+ **/
2411
+ hrmpCloseChannelRequestsList: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>;
2412
+
2413
+ /**
2414
+ * The HRMP watermark associated with each para.
2415
+ * Invariant:
2416
+ * - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a
2417
+ * session.
2418
+ *
2419
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2420
+ * @param {Callback<number | undefined> =} callback
2421
+ **/
2422
+ hrmpWatermarks: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined>;
2423
+
2424
+ /**
2425
+ * HRMP channel data associated with each para.
2426
+ * Invariant:
2427
+ * - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
2428
+ *
2429
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2430
+ * @param {Callback<PolkadotRuntimeParachainsHrmpHrmpChannel | undefined> =} callback
2431
+ **/
2432
+ hrmpChannels: GenericStorageQuery<
2433
+ (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => PolkadotRuntimeParachainsHrmpHrmpChannel | undefined
2434
+ >;
2435
+
2436
+ /**
2437
+ * Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
2438
+ * I.e.
2439
+ *
2440
+ * (a) ingress index allows to find all the senders for a given recipient.
2441
+ * (b) egress index allows to find all the recipients for a given sender.
2442
+ *
2443
+ * Invariants:
2444
+ * - for each ingress index entry for `P` each item `I` in the index should present in
2445
+ * `HrmpChannels` as `(I, P)`.
2446
+ * - for each egress index entry for `P` each item `E` in the index should present in
2447
+ * `HrmpChannels` as `(P, E)`.
2448
+ * - there should be no other dangling channels in `HrmpChannels`.
2449
+ * - the vectors are sorted.
2450
+ *
2451
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2452
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2453
+ **/
2454
+ hrmpIngressChannelsIndex: GenericStorageQuery<
2455
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotParachainPrimitivesPrimitivesId>
2456
+ >;
2457
+
2458
+ /**
2459
+ *
2460
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2461
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2462
+ **/
2463
+ hrmpEgressChannelsIndex: GenericStorageQuery<
2464
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotParachainPrimitivesPrimitivesId>
2465
+ >;
2466
+
2467
+ /**
2468
+ * Storage for the messages for each channel.
2469
+ * Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
2470
+ *
2471
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2472
+ * @param {Callback<Array<PolkadotCorePrimitivesInboundHrmpMessage>> =} callback
2473
+ **/
2474
+ hrmpChannelContents: GenericStorageQuery<
2475
+ (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => Array<PolkadotCorePrimitivesInboundHrmpMessage>
2476
+ >;
2477
+
2478
+ /**
2479
+ * Maintains a mapping that can be used to answer the question: What paras sent a message at
2480
+ * the given block number for a given receiver. Invariants:
2481
+ * - The inner `Vec<ParaId>` is never empty.
2482
+ * - The inner `Vec<ParaId>` cannot store two same `ParaId`.
2483
+ * - The outer vector is sorted ascending by block number and cannot store two items with the
2484
+ * same block number.
2485
+ *
2486
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2487
+ * @param {Callback<Array<[number, Array<PolkadotParachainPrimitivesPrimitivesId>]>> =} callback
2488
+ **/
2489
+ hrmpChannelDigests: GenericStorageQuery<
2490
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<[number, Array<PolkadotParachainPrimitivesPrimitivesId>]>
2491
+ >;
2492
+
2493
+ /**
2494
+ * Generic pallet storage query
2495
+ **/
2496
+ [storage: string]: GenericStorageQuery;
2497
+ };
2498
+ /**
2499
+ * Pallet `ParaSessionInfo`'s storage queries
2500
+ **/
2501
+ paraSessionInfo: {
2502
+ /**
2503
+ * Assignment keys for the current session.
2504
+ * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
2505
+ * When in doubt, use `Sessions` API instead.
2506
+ *
2507
+ * @param {Callback<Array<PolkadotPrimitivesV6AssignmentAppPublic>> =} callback
2508
+ **/
2509
+ assignmentKeysUnsafe: GenericStorageQuery<() => Array<PolkadotPrimitivesV6AssignmentAppPublic>>;
2510
+
2511
+ /**
2512
+ * The earliest session for which previous session info is stored.
2513
+ *
2514
+ * @param {Callback<number> =} callback
2515
+ **/
2516
+ earliestStoredSession: GenericStorageQuery<() => number>;
2517
+
2518
+ /**
2519
+ * Session information in a rolling window.
2520
+ * Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
2521
+ * Does not have any entries before the session index in the first session change notification.
2522
+ *
2523
+ * @param {number} arg
2524
+ * @param {Callback<PolkadotPrimitivesV6SessionInfo | undefined> =} callback
2525
+ **/
2526
+ sessions: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV6SessionInfo | undefined>;
2527
+
2528
+ /**
2529
+ * The validator account keys of the validators actively participating in parachain consensus.
2530
+ *
2531
+ * @param {number} arg
2532
+ * @param {Callback<Array<AccountId32> | undefined> =} callback
2533
+ **/
2534
+ accountKeys: GenericStorageQuery<(arg: number) => Array<AccountId32> | undefined>;
2535
+
2536
+ /**
2537
+ * Executor parameter set for a given session index
2538
+ *
2539
+ * @param {number} arg
2540
+ * @param {Callback<PolkadotPrimitivesV6ExecutorParams | undefined> =} callback
2541
+ **/
2542
+ sessionExecutorParams: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV6ExecutorParams | undefined>;
2543
+
2544
+ /**
2545
+ * Generic pallet storage query
2546
+ **/
2547
+ [storage: string]: GenericStorageQuery;
2548
+ };
2549
+ /**
2550
+ * Pallet `ParasDisputes`'s storage queries
2551
+ **/
2552
+ parasDisputes: {
2553
+ /**
2554
+ * The last pruned session, if any. All data stored by this module
2555
+ * references sessions.
2556
+ *
2557
+ * @param {Callback<number | undefined> =} callback
2558
+ **/
2559
+ lastPrunedSession: GenericStorageQuery<() => number | undefined>;
2560
+
2561
+ /**
2562
+ * All ongoing or concluded disputes for the last several sessions.
2563
+ *
2564
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2565
+ * @param {Callback<PolkadotPrimitivesV6DisputeState | undefined> =} callback
2566
+ **/
2567
+ disputes: GenericStorageQuery<
2568
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV6DisputeState | undefined
2569
+ >;
2570
+
2571
+ /**
2572
+ * Backing votes stored for each dispute.
2573
+ * This storage is used for slashing.
2574
+ *
2575
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2576
+ * @param {Callback<Array<PolkadotPrimitivesV6ValidatorIndex> | undefined> =} callback
2577
+ **/
2578
+ backersOnDisputes: GenericStorageQuery<
2579
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV6ValidatorIndex> | undefined
2580
+ >;
2581
+
2582
+ /**
2583
+ * All included blocks on the chain, as well as the block number in this chain that
2584
+ * should be reverted back to if the candidate is disputed and determined to be invalid.
2585
+ *
2586
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2587
+ * @param {Callback<number | undefined> =} callback
2588
+ **/
2589
+ included: GenericStorageQuery<(arg: [number, PolkadotCorePrimitivesCandidateHash]) => number | undefined>;
2590
+
2591
+ /**
2592
+ * Whether the chain is frozen. Starts as `None`. When this is `Some`,
2593
+ * the chain will not accept any new parachain blocks for backing or inclusion,
2594
+ * and its value indicates the last valid block number in the chain.
2595
+ * It can only be set back to `None` by governance intervention.
2596
+ *
2597
+ * @param {Callback<number | undefined> =} callback
2598
+ **/
2599
+ frozen: GenericStorageQuery<() => number | undefined>;
2600
+
2601
+ /**
2602
+ * Generic pallet storage query
2603
+ **/
2604
+ [storage: string]: GenericStorageQuery;
2605
+ };
2606
+ /**
2607
+ * Pallet `ParasSlashing`'s storage queries
2608
+ **/
2609
+ parasSlashing: {
2610
+ /**
2611
+ * Validators pending dispute slashes.
2612
+ *
2613
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2614
+ * @param {Callback<PolkadotPrimitivesV6SlashingPendingSlashes | undefined> =} callback
2615
+ **/
2616
+ unappliedSlashes: GenericStorageQuery<
2617
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV6SlashingPendingSlashes | undefined
2618
+ >;
2619
+
2620
+ /**
2621
+ * `ValidatorSetCount` per session.
2622
+ *
2623
+ * @param {number} arg
2624
+ * @param {Callback<number | undefined> =} callback
2625
+ **/
2626
+ validatorSetCounts: GenericStorageQuery<(arg: number) => number | undefined>;
2627
+
2628
+ /**
2629
+ * Generic pallet storage query
2630
+ **/
2631
+ [storage: string]: GenericStorageQuery;
2632
+ };
2633
+ /**
2634
+ * Pallet `MessageQueue`'s storage queries
2635
+ **/
2636
+ messageQueue: {
2637
+ /**
2638
+ * The index of the first and last (non-empty) pages.
2639
+ *
2640
+ * @param {PolkadotRuntimeParachainsInclusionAggregateMessageOrigin} arg
2641
+ * @param {Callback<PalletMessageQueueBookState> =} callback
2642
+ **/
2643
+ bookStateFor: GenericStorageQuery<
2644
+ (arg: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin) => PalletMessageQueueBookState
2645
+ >;
2646
+
2647
+ /**
2648
+ * The origin at which we should begin servicing.
2649
+ *
2650
+ * @param {Callback<PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | undefined> =} callback
2651
+ **/
2652
+ serviceHead: GenericStorageQuery<() => PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | undefined>;
2653
+
2654
+ /**
2655
+ * The map of page indices to pages.
2656
+ *
2657
+ * @param {[PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]} arg
2658
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
2659
+ **/
2660
+ pages: GenericStorageQuery<
2661
+ (arg: [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined
2662
+ >;
2663
+
2664
+ /**
2665
+ * Generic pallet storage query
2666
+ **/
2667
+ [storage: string]: GenericStorageQuery;
2668
+ };
2669
+ /**
2670
+ * Pallet `OnDemandAssignmentProvider`'s storage queries
2671
+ **/
2672
+ onDemandAssignmentProvider: {
2673
+ /**
2674
+ * Keeps track of the multiplier used to calculate the current spot price for the on demand
2675
+ * assigner.
2676
+ *
2677
+ * @param {Callback<FixedU128> =} callback
2678
+ **/
2679
+ spotTraffic: GenericStorageQuery<() => FixedU128>;
2680
+
2681
+ /**
2682
+ * The order storage entry. Uses a VecDeque to be able to push to the front of the
2683
+ * queue from the scheduler on session boundaries.
2684
+ *
2685
+ * @param {Callback<Array<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>> =} callback
2686
+ **/
2687
+ onDemandQueue: GenericStorageQuery<() => Array<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>>;
2688
+
2689
+ /**
2690
+ * Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
2691
+ * it's lookahead. Keeping track of this affinity prevents parallel execution of the same
2692
+ * `ParaId` on two or more `CoreIndex`es.
2693
+ *
2694
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2695
+ * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount | undefined> =} callback
2696
+ **/
2697
+ paraIdAffinity: GenericStorageQuery<
2698
+ (
2699
+ arg: PolkadotParachainPrimitivesPrimitivesId,
2700
+ ) => PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount | undefined
2701
+ >;
2702
+
2703
+ /**
2704
+ * Generic pallet storage query
2705
+ **/
2706
+ [storage: string]: GenericStorageQuery;
2707
+ };
2708
+ /**
2709
+ * Pallet `CoretimeAssignmentProvider`'s storage queries
2710
+ **/
2711
+ coretimeAssignmentProvider: {
2712
+ /**
2713
+ * Scheduled assignment sets.
2714
+ *
2715
+ * Assignments as of the given block number. They will go into state once the block number is
2716
+ * reached (and replace whatever was in there before).
2717
+ *
2718
+ * @param {[number, PolkadotPrimitivesV6CoreIndex]} arg
2719
+ * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
2720
+ **/
2721
+ coreSchedules: GenericStorageQuery<
2722
+ (arg: [number, PolkadotPrimitivesV6CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined
2723
+ >;
2724
+
2725
+ /**
2726
+ * Assignments which are currently active.
2727
+ *
2728
+ * They will be picked from `PendingAssignments` once we reach the scheduled block number in
2729
+ * `PendingAssignments`.
2730
+ *
2731
+ * @param {PolkadotPrimitivesV6CoreIndex} arg
2732
+ * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
2733
+ **/
2734
+ coreDescriptors: GenericStorageQuery<
2735
+ (arg: PolkadotPrimitivesV6CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor
2736
+ >;
2737
+
2738
+ /**
2739
+ * Generic pallet storage query
2740
+ **/
2741
+ [storage: string]: GenericStorageQuery;
2742
+ };
2743
+ /**
2744
+ * Pallet `Registrar`'s storage queries
2745
+ **/
2746
+ registrar: {
2747
+ /**
2748
+ * Pending swap operations.
2749
+ *
2750
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2751
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId | undefined> =} callback
2752
+ **/
2753
+ pendingSwap: GenericStorageQuery<
2754
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesId | undefined
2755
+ >;
2756
+
2757
+ /**
2758
+ * Amount held on deposit for each para and the original depositor.
2759
+ *
2760
+ * The given account ID is responsible for registering the code and initial head data, but may
2761
+ * only do so if it isn't yet registered. (After that, it's up to governance to do so.)
2762
+ *
2763
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2764
+ * @param {Callback<PolkadotRuntimeCommonParasRegistrarParaInfo | undefined> =} callback
2765
+ **/
2766
+ paras: GenericStorageQuery<
2767
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeCommonParasRegistrarParaInfo | undefined
2768
+ >;
2769
+
2770
+ /**
2771
+ * The next free `ParaId`.
2772
+ *
2773
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
2774
+ **/
2775
+ nextFreeParaId: GenericStorageQuery<() => PolkadotParachainPrimitivesPrimitivesId>;
2776
+
2777
+ /**
2778
+ * Generic pallet storage query
2779
+ **/
2780
+ [storage: string]: GenericStorageQuery;
2781
+ };
2782
+ /**
2783
+ * Pallet `Slots`'s storage queries
2784
+ **/
2785
+ slots: {
2786
+ /**
2787
+ * Amounts held on deposit for each (possibly future) leased parachain.
2788
+ *
2789
+ * The actual amount locked on its behalf by any account at any time is the maximum of the
2790
+ * second values of the items in this list whose first value is the account.
2791
+ *
2792
+ * The first item in the list is the amount locked for the current Lease Period. Following
2793
+ * items are for the subsequent lease periods.
2794
+ *
2795
+ * The default value (an empty list) implies that the parachain no longer exists (or never
2796
+ * existed) as far as this pallet is concerned.
2797
+ *
2798
+ * If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it
2799
+ * will be left-padded with one or more `None`s to denote the fact that nothing is held on
2800
+ * deposit for the non-existent chain currently, but is held at some point in the future.
2801
+ *
2802
+ * It is illegal for a `None` value to trail in the list.
2803
+ *
2804
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2805
+ * @param {Callback<Array<[AccountId32, bigint] | undefined>> =} callback
2806
+ **/
2807
+ leases: GenericStorageQuery<
2808
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Array<[AccountId32, bigint] | undefined>
2809
+ >;
2810
+
2811
+ /**
2812
+ * Generic pallet storage query
2813
+ **/
2814
+ [storage: string]: GenericStorageQuery;
2815
+ };
2816
+ /**
2817
+ * Pallet `Auctions`'s storage queries
2818
+ **/
2819
+ auctions: {
2820
+ /**
2821
+ * Number of auctions started so far.
2822
+ *
2823
+ * @param {Callback<number> =} callback
2824
+ **/
2825
+ auctionCounter: GenericStorageQuery<() => number>;
2826
+
2827
+ /**
2828
+ * Information relating to the current auction, if there is one.
2829
+ *
2830
+ * The first item in the tuple is the lease period index that the first of the four
2831
+ * contiguous lease periods on auction is for. The second is the block number when the
2832
+ * auction will "begin to end", i.e. the first block of the Ending Period of the auction.
2833
+ *
2834
+ * @param {Callback<[number, number] | undefined> =} callback
2835
+ **/
2836
+ auctionInfo: GenericStorageQuery<() => [number, number] | undefined>;
2837
+
2838
+ /**
2839
+ * Amounts currently reserved in the accounts of the bidders currently winning
2840
+ * (sub-)ranges.
2841
+ *
2842
+ * @param {[AccountId32Like, PolkadotParachainPrimitivesPrimitivesId]} arg
2843
+ * @param {Callback<bigint | undefined> =} callback
2844
+ **/
2845
+ reservedAmounts: GenericStorageQuery<
2846
+ (arg: [AccountId32Like, PolkadotParachainPrimitivesPrimitivesId]) => bigint | undefined
2847
+ >;
2848
+
2849
+ /**
2850
+ * The winning bids for each of the 10 ranges at each sample in the final Ending Period of
2851
+ * the current auction. The map's key is the 0-based index into the Sample Size. The
2852
+ * first sample of the ending period is 0; the last is `Sample Size - 1`.
2853
+ *
2854
+ * @param {number} arg
2855
+ * @param {Callback<FixedArray<[AccountId32, PolkadotParachainPrimitivesPrimitivesId, bigint] | undefined, 36> | undefined> =} callback
2856
+ **/
2857
+ winning: GenericStorageQuery<
2858
+ (
2859
+ arg: number,
2860
+ ) => FixedArray<[AccountId32, PolkadotParachainPrimitivesPrimitivesId, bigint] | undefined, 36> | undefined
2861
+ >;
2862
+
2863
+ /**
2864
+ * Generic pallet storage query
2865
+ **/
2866
+ [storage: string]: GenericStorageQuery;
2867
+ };
2868
+ /**
2869
+ * Pallet `Crowdloan`'s storage queries
2870
+ **/
2871
+ crowdloan: {
2872
+ /**
2873
+ * Info on all of the funds.
2874
+ *
2875
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2876
+ * @param {Callback<PolkadotRuntimeCommonCrowdloanFundInfo | undefined> =} callback
2877
+ **/
2878
+ funds: GenericStorageQuery<
2879
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeCommonCrowdloanFundInfo | undefined
2880
+ >;
2881
+
2882
+ /**
2883
+ * The funds that have had additional contributions during the last block. This is used
2884
+ * in order to determine which funds should submit new or updated bids.
2885
+ *
2886
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2887
+ **/
2888
+ newRaise: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2889
+
2890
+ /**
2891
+ * The number of auctions that have entered into their ending period so far.
2892
+ *
2893
+ * @param {Callback<number> =} callback
2894
+ **/
2895
+ endingsCount: GenericStorageQuery<() => number>;
2896
+
2897
+ /**
2898
+ * Tracker for the next available fund index
2899
+ *
2900
+ * @param {Callback<number> =} callback
2901
+ **/
2902
+ nextFundIndex: GenericStorageQuery<() => number>;
2903
+
2904
+ /**
2905
+ * Generic pallet storage query
2906
+ **/
2907
+ [storage: string]: GenericStorageQuery;
2908
+ };
2909
+ /**
2910
+ * Pallet `XcmPallet`'s storage queries
2911
+ **/
2912
+ xcmPallet: {
2913
+ /**
2914
+ * The latest available query index.
2915
+ *
2916
+ * @param {Callback<bigint> =} callback
2917
+ **/
2918
+ queryCounter: GenericStorageQuery<() => bigint>;
2919
+
2920
+ /**
2921
+ * The ongoing queries.
2922
+ *
2923
+ * @param {bigint} arg
2924
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
2925
+ **/
2926
+ queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
2927
+
2928
+ /**
2929
+ * The existing asset traps.
2930
+ *
2931
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
2932
+ * times this pair has been trapped (usually just 1 if it exists at all).
2933
+ *
2934
+ * @param {H256} arg
2935
+ * @param {Callback<number> =} callback
2936
+ **/
2937
+ assetTraps: GenericStorageQuery<(arg: H256) => number>;
2938
+
2939
+ /**
2940
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
2941
+ * then the destinations whose XCM version is unknown are considered unreachable.
2942
+ *
2943
+ * @param {Callback<number | undefined> =} callback
2944
+ **/
2945
+ safeXcmVersion: GenericStorageQuery<() => number | undefined>;
2946
+
2947
+ /**
2948
+ * The Latest versions that we know various locations support.
2949
+ *
2950
+ * @param {[number, XcmVersionedLocation]} arg
2951
+ * @param {Callback<number | undefined> =} callback
2952
+ **/
2953
+ supportedVersion: GenericStorageQuery<(arg: [number, XcmVersionedLocation]) => number | undefined>;
2954
+
2955
+ /**
2956
+ * All locations that we have requested version notifications from.
2957
+ *
2958
+ * @param {[number, XcmVersionedLocation]} arg
2959
+ * @param {Callback<bigint | undefined> =} callback
2960
+ **/
2961
+ versionNotifiers: GenericStorageQuery<(arg: [number, XcmVersionedLocation]) => bigint | undefined>;
2962
+
2963
+ /**
2964
+ * The target locations that are subscribed to our version changes, as well as the most recent
2965
+ * of our versions we informed them of.
2966
+ *
2967
+ * @param {[number, XcmVersionedLocation]} arg
2968
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
2969
+ **/
2970
+ versionNotifyTargets: GenericStorageQuery<
2971
+ (arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined
2972
+ >;
2973
+
2974
+ /**
2975
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
2976
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
2977
+ * which is used as a prioritization.
2978
+ *
2979
+ * @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
2980
+ **/
2981
+ versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedLocation, number]>>;
2982
+
2983
+ /**
2984
+ * The current migration's stage, if any.
2985
+ *
2986
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
2987
+ **/
2988
+ currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
2989
+
2990
+ /**
2991
+ * Fungible assets which we know are locked on a remote chain.
2992
+ *
2993
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
2994
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
2995
+ **/
2996
+ remoteLockedFungibles: GenericStorageQuery<
2997
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined
2998
+ >;
2999
+
3000
+ /**
3001
+ * Fungible assets which we know are locked on this chain.
3002
+ *
3003
+ * @param {AccountId32Like} arg
3004
+ * @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
3005
+ **/
3006
+ lockedFungibles: GenericStorageQuery<(arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined>;
3007
+
3008
+ /**
3009
+ * Global suspension state of the XCM executor.
3010
+ *
3011
+ * @param {Callback<boolean> =} callback
3012
+ **/
3013
+ xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
3014
+
3015
+ /**
3016
+ * Generic pallet storage query
3017
+ **/
3018
+ [storage: string]: GenericStorageQuery;
3019
+ };
3020
+ /**
3021
+ * Pallet `Beefy`'s storage queries
3022
+ **/
3023
+ beefy: {
3024
+ /**
3025
+ * The current authorities set
3026
+ *
3027
+ * @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
3028
+ **/
3029
+ authorities: GenericStorageQuery<() => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
3030
+
3031
+ /**
3032
+ * The current validator set id
3033
+ *
3034
+ * @param {Callback<bigint> =} callback
3035
+ **/
3036
+ validatorSetId: GenericStorageQuery<() => bigint>;
3037
+
3038
+ /**
3039
+ * Authorities set scheduled to be used with the next session
3040
+ *
3041
+ * @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
3042
+ **/
3043
+ nextAuthorities: GenericStorageQuery<() => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
3044
+
3045
+ /**
3046
+ * A mapping from BEEFY set ID to the index of the *most recent* session for which its
3047
+ * members were responsible.
3048
+ *
3049
+ * This is only used for validating equivocation proofs. An equivocation proof must
3050
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
3051
+ * together sessions and BEEFY set ids, i.e. we need to validate that a validator
3052
+ * was the owner of a given key on a given session, and what the active set ID was
3053
+ * during that session.
3054
+ *
3055
+ * TWOX-NOTE: `ValidatorSetId` is not under user control.
3056
+ *
3057
+ * @param {bigint} arg
3058
+ * @param {Callback<number | undefined> =} callback
3059
+ **/
3060
+ setIdSession: GenericStorageQuery<(arg: bigint) => number | undefined>;
3061
+
3062
+ /**
3063
+ * Block number where BEEFY consensus is enabled/started.
3064
+ * By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
3065
+ * restarted from the newly set block number.
3066
+ *
3067
+ * @param {Callback<number | undefined> =} callback
3068
+ **/
3069
+ genesisBlock: GenericStorageQuery<() => number | undefined>;
3070
+
3071
+ /**
3072
+ * Generic pallet storage query
3073
+ **/
3074
+ [storage: string]: GenericStorageQuery;
3075
+ };
3076
+ /**
3077
+ * Pallet `Mmr`'s storage queries
3078
+ **/
3079
+ mmr: {
3080
+ /**
3081
+ * Latest MMR Root hash.
3082
+ *
3083
+ * @param {Callback<H256> =} callback
3084
+ **/
3085
+ rootHash: GenericStorageQuery<() => H256>;
3086
+
3087
+ /**
3088
+ * Current size of the MMR (number of leaves).
3089
+ *
3090
+ * @param {Callback<bigint> =} callback
3091
+ **/
3092
+ numberOfLeaves: GenericStorageQuery<() => bigint>;
3093
+
3094
+ /**
3095
+ * Hashes of the nodes in the MMR.
3096
+ *
3097
+ * Note this collection only contains MMR peaks, the inner nodes (and leaves)
3098
+ * are pruned and only stored in the Offchain DB.
3099
+ *
3100
+ * @param {bigint} arg
3101
+ * @param {Callback<H256 | undefined> =} callback
3102
+ **/
3103
+ nodes: GenericStorageQuery<(arg: bigint) => H256 | undefined>;
3104
+
3105
+ /**
3106
+ * Generic pallet storage query
3107
+ **/
3108
+ [storage: string]: GenericStorageQuery;
3109
+ };
3110
+ /**
3111
+ * Pallet `MmrLeaf`'s storage queries
3112
+ **/
3113
+ mmrLeaf: {
3114
+ /**
3115
+ * Details of current BEEFY authority set.
3116
+ *
3117
+ * @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
3118
+ **/
3119
+ beefyAuthorities: GenericStorageQuery<() => SpConsensusBeefyMmrBeefyAuthoritySet>;
3120
+
3121
+ /**
3122
+ * Details of next BEEFY authority set.
3123
+ *
3124
+ * This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
3125
+ *
3126
+ * @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
3127
+ **/
3128
+ beefyNextAuthorities: GenericStorageQuery<() => SpConsensusBeefyMmrBeefyAuthoritySet>;
3129
+
3130
+ /**
3131
+ * Generic pallet storage query
3132
+ **/
3133
+ [storage: string]: GenericStorageQuery;
3134
+ };
3135
+ /**
3136
+ * Pallet `AssignedSlots`'s storage queries
3137
+ **/
3138
+ assignedSlots: {
3139
+ /**
3140
+ * Assigned permanent slots, with their start lease period, and duration.
3141
+ *
3142
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3143
+ * @param {Callback<[number, number] | undefined> =} callback
3144
+ **/
3145
+ permanentSlots: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => [number, number] | undefined>;
3146
+
3147
+ /**
3148
+ * Number of assigned (and active) permanent slots.
3149
+ *
3150
+ * @param {Callback<number> =} callback
3151
+ **/
3152
+ permanentSlotCount: GenericStorageQuery<() => number>;
3153
+
3154
+ /**
3155
+ * Assigned temporary slots.
3156
+ *
3157
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3158
+ * @param {Callback<PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot | undefined> =} callback
3159
+ **/
3160
+ temporarySlots: GenericStorageQuery<
3161
+ (
3162
+ arg: PolkadotParachainPrimitivesPrimitivesId,
3163
+ ) => PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot | undefined
3164
+ >;
3165
+
3166
+ /**
3167
+ * Number of assigned temporary slots.
3168
+ *
3169
+ * @param {Callback<number> =} callback
3170
+ **/
3171
+ temporarySlotCount: GenericStorageQuery<() => number>;
3172
+
3173
+ /**
3174
+ * Number of active temporary slots in current slot lease period.
3175
+ *
3176
+ * @param {Callback<number> =} callback
3177
+ **/
3178
+ activeTemporarySlotCount: GenericStorageQuery<() => number>;
3179
+
3180
+ /**
3181
+ * The max number of temporary slots that can be assigned.
3182
+ *
3183
+ * @param {Callback<number> =} callback
3184
+ **/
3185
+ maxTemporarySlots: GenericStorageQuery<() => number>;
3186
+
3187
+ /**
3188
+ * The max number of permanent slots that can be assigned.
3189
+ *
3190
+ * @param {Callback<number> =} callback
3191
+ **/
3192
+ maxPermanentSlots: GenericStorageQuery<() => number>;
3193
+
3194
+ /**
3195
+ * Generic pallet storage query
3196
+ **/
3197
+ [storage: string]: GenericStorageQuery;
3198
+ };
3199
+ /**
3200
+ * Pallet `ValidatorManager`'s storage queries
3201
+ **/
3202
+ validatorManager: {
3203
+ /**
3204
+ * Validators that should be retired, because their Parachain was deregistered.
3205
+ *
3206
+ * @param {Callback<Array<AccountId32>> =} callback
3207
+ **/
3208
+ validatorsToRetire: GenericStorageQuery<() => Array<AccountId32>>;
3209
+
3210
+ /**
3211
+ * Validators that should be added.
3212
+ *
3213
+ * @param {Callback<Array<AccountId32>> =} callback
3214
+ **/
3215
+ validatorsToAdd: GenericStorageQuery<() => Array<AccountId32>>;
3216
+
3217
+ /**
3218
+ * Generic pallet storage query
3219
+ **/
3220
+ [storage: string]: GenericStorageQuery;
3221
+ };
3222
+ /**
3223
+ * Pallet `StateTrieMigration`'s storage queries
3224
+ **/
3225
+ stateTrieMigration: {
3226
+ /**
3227
+ * Migration progress.
3228
+ *
3229
+ * This stores the snapshot of the last migrated keys. It can be set into motion and move
3230
+ * forward by any of the means provided by this pallet.
3231
+ *
3232
+ * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
3233
+ **/
3234
+ migrationProcess: GenericStorageQuery<() => PalletStateTrieMigrationMigrationTask>;
3235
+
3236
+ /**
3237
+ * The limits that are imposed on automatic migrations.
3238
+ *
3239
+ * If set to None, then no automatic migration happens.
3240
+ *
3241
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
3242
+ **/
3243
+ autoLimits: GenericStorageQuery<() => PalletStateTrieMigrationMigrationLimits | undefined>;
3244
+
3245
+ /**
3246
+ * The maximum limits that the signed migration could use.
3247
+ *
3248
+ * If not set, no signed submission is allowed.
3249
+ *
3250
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
3251
+ **/
3252
+ signedMigrationMaxLimits: GenericStorageQuery<() => PalletStateTrieMigrationMigrationLimits | undefined>;
3253
+
3254
+ /**
3255
+ * Generic pallet storage query
3256
+ **/
3257
+ [storage: string]: GenericStorageQuery;
3258
+ };
3259
+ /**
3260
+ * Pallet `Sudo`'s storage queries
3261
+ **/
3262
+ sudo: {
3263
+ /**
3264
+ * The `AccountId` of the sudo key.
3265
+ *
3266
+ * @param {Callback<AccountId32 | undefined> =} callback
3267
+ **/
3268
+ key: GenericStorageQuery<() => AccountId32 | undefined>;
3269
+
3270
+ /**
3271
+ * Generic pallet storage query
3272
+ **/
3273
+ [storage: string]: GenericStorageQuery;
3274
+ };
3275
+ }