@dedot/chaintypes 0.0.1-alpha.8 → 0.0.1-alpha.80

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