@dedot/chaintypes 0.0.1-alpha.22

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 (280) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/aleph/consts.d.ts +533 -0
  4. package/aleph/consts.js +2 -0
  5. package/aleph/errors.d.ts +822 -0
  6. package/aleph/errors.js +2 -0
  7. package/aleph/events.d.ts +997 -0
  8. package/aleph/events.js +2 -0
  9. package/aleph/index.d.ts +19 -0
  10. package/aleph/index.js +3 -0
  11. package/aleph/query.d.ts +1271 -0
  12. package/aleph/query.js +2 -0
  13. package/aleph/rpc.d.ts +575 -0
  14. package/aleph/rpc.js +2 -0
  15. package/aleph/runtime.d.ts +410 -0
  16. package/aleph/runtime.js +2 -0
  17. package/aleph/tx.d.ts +2206 -0
  18. package/aleph/tx.js +2 -0
  19. package/aleph/types.d.ts +5560 -0
  20. package/aleph/types.js +2 -0
  21. package/astar/consts.d.ts +679 -0
  22. package/astar/consts.js +2 -0
  23. package/astar/errors.d.ts +1317 -0
  24. package/astar/errors.js +2 -0
  25. package/astar/events.d.ts +1707 -0
  26. package/astar/events.js +2 -0
  27. package/astar/index.d.ts +19 -0
  28. package/astar/index.js +3 -0
  29. package/astar/query.d.ts +1474 -0
  30. package/astar/query.js +2 -0
  31. package/astar/rpc.d.ts +775 -0
  32. package/astar/rpc.js +2 -0
  33. package/astar/runtime.d.ts +262 -0
  34. package/astar/runtime.js +2 -0
  35. package/astar/tx.d.ts +4810 -0
  36. package/astar/tx.js +2 -0
  37. package/astar/types.d.ts +12338 -0
  38. package/astar/types.js +2 -0
  39. package/cjs/aleph/consts.js +3 -0
  40. package/cjs/aleph/errors.js +3 -0
  41. package/cjs/aleph/events.js +3 -0
  42. package/cjs/aleph/index.js +19 -0
  43. package/cjs/aleph/query.js +3 -0
  44. package/cjs/aleph/rpc.js +3 -0
  45. package/cjs/aleph/runtime.js +3 -0
  46. package/cjs/aleph/tx.js +3 -0
  47. package/cjs/aleph/types.js +3 -0
  48. package/cjs/astar/consts.js +3 -0
  49. package/cjs/astar/errors.js +3 -0
  50. package/cjs/astar/events.js +3 -0
  51. package/cjs/astar/index.js +19 -0
  52. package/cjs/astar/query.js +3 -0
  53. package/cjs/astar/rpc.js +3 -0
  54. package/cjs/astar/runtime.js +3 -0
  55. package/cjs/astar/tx.js +3 -0
  56. package/cjs/astar/types.js +3 -0
  57. package/cjs/index.js +2 -0
  58. package/cjs/kusama/consts.js +3 -0
  59. package/cjs/kusama/errors.js +3 -0
  60. package/cjs/kusama/events.js +3 -0
  61. package/cjs/kusama/index.js +19 -0
  62. package/cjs/kusama/query.js +3 -0
  63. package/cjs/kusama/rpc.js +3 -0
  64. package/cjs/kusama/runtime.js +3 -0
  65. package/cjs/kusama/tx.js +3 -0
  66. package/cjs/kusama/types.js +3 -0
  67. package/cjs/kusamaAssetHub/consts.js +3 -0
  68. package/cjs/kusamaAssetHub/errors.js +3 -0
  69. package/cjs/kusamaAssetHub/events.js +3 -0
  70. package/cjs/kusamaAssetHub/index.js +19 -0
  71. package/cjs/kusamaAssetHub/query.js +3 -0
  72. package/cjs/kusamaAssetHub/rpc.js +3 -0
  73. package/cjs/kusamaAssetHub/runtime.js +3 -0
  74. package/cjs/kusamaAssetHub/tx.js +3 -0
  75. package/cjs/kusamaAssetHub/types.js +3 -0
  76. package/cjs/moonbeam/consts.js +3 -0
  77. package/cjs/moonbeam/errors.js +3 -0
  78. package/cjs/moonbeam/events.js +3 -0
  79. package/cjs/moonbeam/index.js +19 -0
  80. package/cjs/moonbeam/query.js +3 -0
  81. package/cjs/moonbeam/rpc.js +3 -0
  82. package/cjs/moonbeam/runtime.js +3 -0
  83. package/cjs/moonbeam/tx.js +3 -0
  84. package/cjs/moonbeam/types.js +3 -0
  85. package/cjs/package.json +1 -0
  86. package/cjs/packageInfo.js +5 -0
  87. package/cjs/polkadot/consts.js +3 -0
  88. package/cjs/polkadot/errors.js +3 -0
  89. package/cjs/polkadot/events.js +3 -0
  90. package/cjs/polkadot/index.js +19 -0
  91. package/cjs/polkadot/query.js +3 -0
  92. package/cjs/polkadot/rpc.js +3 -0
  93. package/cjs/polkadot/runtime.js +3 -0
  94. package/cjs/polkadot/tx.js +3 -0
  95. package/cjs/polkadot/types.js +3 -0
  96. package/cjs/polkadotAssetHub/consts.js +3 -0
  97. package/cjs/polkadotAssetHub/errors.js +3 -0
  98. package/cjs/polkadotAssetHub/events.js +3 -0
  99. package/cjs/polkadotAssetHub/index.js +19 -0
  100. package/cjs/polkadotAssetHub/query.js +3 -0
  101. package/cjs/polkadotAssetHub/rpc.js +3 -0
  102. package/cjs/polkadotAssetHub/runtime.js +3 -0
  103. package/cjs/polkadotAssetHub/tx.js +3 -0
  104. package/cjs/polkadotAssetHub/types.js +3 -0
  105. package/cjs/rococoAssetHub/consts.js +3 -0
  106. package/cjs/rococoAssetHub/errors.js +3 -0
  107. package/cjs/rococoAssetHub/events.js +3 -0
  108. package/cjs/rococoAssetHub/index.js +19 -0
  109. package/cjs/rococoAssetHub/query.js +3 -0
  110. package/cjs/rococoAssetHub/rpc.js +3 -0
  111. package/cjs/rococoAssetHub/runtime.js +3 -0
  112. package/cjs/rococoAssetHub/tx.js +3 -0
  113. package/cjs/rococoAssetHub/types.js +3 -0
  114. package/cjs/substrate/consts.js +3 -0
  115. package/cjs/substrate/errors.js +3 -0
  116. package/cjs/substrate/events.js +3 -0
  117. package/cjs/substrate/index.js +19 -0
  118. package/cjs/substrate/query.js +3 -0
  119. package/cjs/substrate/rpc.js +3 -0
  120. package/cjs/substrate/runtime.js +3 -0
  121. package/cjs/substrate/tx.js +3 -0
  122. package/cjs/substrate/types.js +3 -0
  123. package/cjs/westendAssetHub/consts.js +3 -0
  124. package/cjs/westendAssetHub/errors.js +3 -0
  125. package/cjs/westendAssetHub/events.js +3 -0
  126. package/cjs/westendAssetHub/index.js +19 -0
  127. package/cjs/westendAssetHub/query.js +3 -0
  128. package/cjs/westendAssetHub/rpc.js +3 -0
  129. package/cjs/westendAssetHub/runtime.js +3 -0
  130. package/cjs/westendAssetHub/tx.js +3 -0
  131. package/cjs/westendAssetHub/types.js +3 -0
  132. package/index.d.ts +5 -0
  133. package/index.js +1 -0
  134. package/kusama/consts.d.ts +1427 -0
  135. package/kusama/consts.js +2 -0
  136. package/kusama/errors.d.ts +2494 -0
  137. package/kusama/errors.js +2 -0
  138. package/kusama/events.d.ts +2960 -0
  139. package/kusama/events.js +2 -0
  140. package/kusama/index.d.ts +19 -0
  141. package/kusama/index.js +3 -0
  142. package/kusama/query.d.ts +3251 -0
  143. package/kusama/query.js +2 -0
  144. package/kusama/rpc.d.ts +726 -0
  145. package/kusama/rpc.js +2 -0
  146. package/kusama/runtime.d.ts +844 -0
  147. package/kusama/runtime.js +2 -0
  148. package/kusama/tx.d.ts +6014 -0
  149. package/kusama/tx.js +2 -0
  150. package/kusama/types.d.ts +15903 -0
  151. package/kusama/types.js +2 -0
  152. package/kusamaAssetHub/consts.d.ts +632 -0
  153. package/kusamaAssetHub/consts.js +2 -0
  154. package/kusamaAssetHub/errors.d.ts +1164 -0
  155. package/kusamaAssetHub/errors.js +2 -0
  156. package/kusamaAssetHub/events.d.ts +2162 -0
  157. package/kusamaAssetHub/events.js +2 -0
  158. package/kusamaAssetHub/index.d.ts +19 -0
  159. package/kusamaAssetHub/index.js +3 -0
  160. package/kusamaAssetHub/query.d.ts +1301 -0
  161. package/kusamaAssetHub/query.js +2 -0
  162. package/kusamaAssetHub/rpc.d.ts +590 -0
  163. package/kusamaAssetHub/rpc.js +2 -0
  164. package/kusamaAssetHub/runtime.d.ts +402 -0
  165. package/kusamaAssetHub/runtime.js +2 -0
  166. package/kusamaAssetHub/tx.d.ts +4217 -0
  167. package/kusamaAssetHub/tx.js +2 -0
  168. package/kusamaAssetHub/types.d.ts +10418 -0
  169. package/kusamaAssetHub/types.js +2 -0
  170. package/moonbeam/consts.d.ts +961 -0
  171. package/moonbeam/consts.js +2 -0
  172. package/moonbeam/errors.d.ts +1797 -0
  173. package/moonbeam/errors.js +2 -0
  174. package/moonbeam/events.d.ts +2840 -0
  175. package/moonbeam/events.js +2 -0
  176. package/moonbeam/index.d.ts +19 -0
  177. package/moonbeam/index.js +3 -0
  178. package/moonbeam/query.d.ts +2027 -0
  179. package/moonbeam/query.js +2 -0
  180. package/moonbeam/rpc.d.ts +809 -0
  181. package/moonbeam/rpc.js +2 -0
  182. package/moonbeam/runtime.d.ts +506 -0
  183. package/moonbeam/runtime.js +2 -0
  184. package/moonbeam/tx.d.ts +5205 -0
  185. package/moonbeam/tx.js +2 -0
  186. package/moonbeam/types.d.ts +12349 -0
  187. package/moonbeam/types.js +2 -0
  188. package/package.json +33 -0
  189. package/packageInfo.d.ts +4 -0
  190. package/packageInfo.js +3 -0
  191. package/polkadot/consts.d.ts +1160 -0
  192. package/polkadot/consts.js +2 -0
  193. package/polkadot/errors.d.ts +2020 -0
  194. package/polkadot/errors.js +2 -0
  195. package/polkadot/events.d.ts +2235 -0
  196. package/polkadot/events.js +2 -0
  197. package/polkadot/index.d.ts +19 -0
  198. package/polkadot/index.js +3 -0
  199. package/polkadot/query.d.ts +2811 -0
  200. package/polkadot/query.js +2 -0
  201. package/polkadot/rpc.d.ts +726 -0
  202. package/polkadot/rpc.js +2 -0
  203. package/polkadot/runtime.d.ts +844 -0
  204. package/polkadot/runtime.js +2 -0
  205. package/polkadot/tx.d.ts +5009 -0
  206. package/polkadot/tx.js +2 -0
  207. package/polkadot/types.d.ts +13729 -0
  208. package/polkadot/types.js +2 -0
  209. package/polkadotAssetHub/consts.d.ts +524 -0
  210. package/polkadotAssetHub/consts.js +2 -0
  211. package/polkadotAssetHub/errors.d.ts +925 -0
  212. package/polkadotAssetHub/errors.js +2 -0
  213. package/polkadotAssetHub/events.d.ts +1787 -0
  214. package/polkadotAssetHub/events.js +2 -0
  215. package/polkadotAssetHub/index.d.ts +19 -0
  216. package/polkadotAssetHub/index.js +3 -0
  217. package/polkadotAssetHub/query.d.ts +1222 -0
  218. package/polkadotAssetHub/query.js +2 -0
  219. package/polkadotAssetHub/rpc.d.ts +590 -0
  220. package/polkadotAssetHub/rpc.js +2 -0
  221. package/polkadotAssetHub/runtime.d.ts +359 -0
  222. package/polkadotAssetHub/runtime.js +2 -0
  223. package/polkadotAssetHub/tx.d.ts +3492 -0
  224. package/polkadotAssetHub/tx.js +2 -0
  225. package/polkadotAssetHub/types.d.ts +9164 -0
  226. package/polkadotAssetHub/types.js +2 -0
  227. package/rococoAssetHub/consts.d.ts +658 -0
  228. package/rococoAssetHub/consts.js +2 -0
  229. package/rococoAssetHub/errors.d.ts +1231 -0
  230. package/rococoAssetHub/errors.js +2 -0
  231. package/rococoAssetHub/events.d.ts +2172 -0
  232. package/rococoAssetHub/events.js +2 -0
  233. package/rococoAssetHub/index.d.ts +19 -0
  234. package/rococoAssetHub/index.js +3 -0
  235. package/rococoAssetHub/query.d.ts +1269 -0
  236. package/rococoAssetHub/query.js +2 -0
  237. package/rococoAssetHub/rpc.d.ts +590 -0
  238. package/rococoAssetHub/rpc.js +2 -0
  239. package/rococoAssetHub/runtime.d.ts +428 -0
  240. package/rococoAssetHub/runtime.js +2 -0
  241. package/rococoAssetHub/tx.d.ts +4307 -0
  242. package/rococoAssetHub/tx.js +2 -0
  243. package/rococoAssetHub/types.d.ts +11066 -0
  244. package/rococoAssetHub/types.js +2 -0
  245. package/substrate/consts.d.ts +1971 -0
  246. package/substrate/consts.js +2 -0
  247. package/substrate/errors.d.ts +3337 -0
  248. package/substrate/errors.js +2 -0
  249. package/substrate/events.d.ts +4777 -0
  250. package/substrate/events.js +2 -0
  251. package/substrate/index.d.ts +19 -0
  252. package/substrate/index.js +3 -0
  253. package/substrate/query.d.ts +3350 -0
  254. package/substrate/query.js +2 -0
  255. package/substrate/rpc.d.ts +718 -0
  256. package/substrate/rpc.js +2 -0
  257. package/substrate/runtime.d.ts +708 -0
  258. package/substrate/runtime.js +2 -0
  259. package/substrate/tx.d.ts +8800 -0
  260. package/substrate/tx.js +2 -0
  261. package/substrate/types.d.ts +20332 -0
  262. package/substrate/types.js +2 -0
  263. package/westendAssetHub/consts.d.ts +658 -0
  264. package/westendAssetHub/consts.js +2 -0
  265. package/westendAssetHub/errors.d.ts +1231 -0
  266. package/westendAssetHub/errors.js +2 -0
  267. package/westendAssetHub/events.d.ts +2172 -0
  268. package/westendAssetHub/events.js +2 -0
  269. package/westendAssetHub/index.d.ts +19 -0
  270. package/westendAssetHub/index.js +3 -0
  271. package/westendAssetHub/query.d.ts +1269 -0
  272. package/westendAssetHub/query.js +2 -0
  273. package/westendAssetHub/rpc.d.ts +590 -0
  274. package/westendAssetHub/rpc.js +2 -0
  275. package/westendAssetHub/runtime.d.ts +456 -0
  276. package/westendAssetHub/runtime.js +2 -0
  277. package/westendAssetHub/tx.d.ts +4307 -0
  278. package/westendAssetHub/tx.js +2 -0
  279. package/westendAssetHub/types.d.ts +11062 -0
  280. package/westendAssetHub/types.js +2 -0
@@ -0,0 +1,2811 @@
1
+ import type { GenericChainStorage, GenericStorageQuery } from '@dedot/types';
2
+ import type { AccountId32Like, H256, Bytes, Digest, Phase, FixedBytes, AccountId32, FixedU128, Perbill, Percent, BytesLike, EthereumAddressLike, EthereumAddress, Data, FixedArray } from '@dedot/codecs';
3
+ import type { FrameSystemAccountInfo, FrameSupportDispatchPerDispatchClass, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, PalletSchedulerScheduled, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, SpConsensusBabeAppPublic, SpConsensusSlotsSlot, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBabeBabeEpochConfiguration, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBalancesIdAmount, PalletBalancesIdAmountRuntimeFreezeReason, PalletTransactionPaymentReleases, PalletStakingStakingLedger, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStakingNominations, PalletStakingActiveEraInfo, PalletStakingExposure, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingUnappliedSlash, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, SpStakingOffenceOffenceDetails, PolkadotRuntimeSessionKeys, SpCoreCryptoKeyTypeId, PalletGrandpaStoredState, PalletGrandpaStoredPendingChange, PalletImOnlineSr25519AppSr25519Public, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletConvictionVotingVoteVoting, PalletReferendaReferendumInfo, PolkadotRuntimeCommonClaimsStatementKind, PalletVestingVestingInfo, PalletVestingReleases, PalletIdentityRegistration, PalletIdentityRegistrarInfo, PalletProxyProxyDefinition, PalletProxyAnnouncement, PalletMultisigMultisig, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, SpNposElectionsElectionScore, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletBagsListListNode, PalletBagsListListBag, PalletNominationPoolsPoolMember, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletNominationPoolsClaimPermission, PalletFastUnstakeUnstakeRequest, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotPrimitivesV6ValidatorIndex, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotPrimitivesV6CoreIndex, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotParachainPrimitivesPrimitivesValidationCodeHash, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotParachainPrimitivesPrimitivesHeadData, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotParachainPrimitivesPrimitivesValidationCode, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6DisputeState, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeCommonCrowdloanFundInfo, PalletXcmQueryStatus, XcmVersionedMultiLocation, SpWeightsWeightV2Weight, PalletXcmVersionMigrationStage, PalletXcmRemoteLockedFungibleRecord, XcmVersionedAssetId, PalletMessageQueueBookState, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PalletMessageQueuePage, PolkadotRuntimeCommonImplsVersionedLocatableAsset, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet } from './types';
4
+ export interface ChainStorage extends GenericChainStorage {
5
+ /**
6
+ * Pallet `System`'s storage queries
7
+ **/
8
+ system: {
9
+ /**
10
+ * The full account information for a particular account ID.
11
+ *
12
+ * @param {AccountId32Like} arg
13
+ * @param {Callback<FrameSystemAccountInfo> =} callback
14
+ **/
15
+ account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
16
+ /**
17
+ * Total extrinsics count for the current block.
18
+ *
19
+ * @param {Callback<number | undefined> =} callback
20
+ **/
21
+ extrinsicCount: GenericStorageQuery<() => number | undefined>;
22
+ /**
23
+ * The current weight for the block.
24
+ *
25
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
26
+ **/
27
+ blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
28
+ /**
29
+ * Total length (in bytes) for all extrinsics put together, for the current block.
30
+ *
31
+ * @param {Callback<number | undefined> =} callback
32
+ **/
33
+ allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
34
+ /**
35
+ * Map of block numbers to block hashes.
36
+ *
37
+ * @param {number} arg
38
+ * @param {Callback<H256> =} callback
39
+ **/
40
+ blockHash: GenericStorageQuery<(arg: number) => H256>;
41
+ /**
42
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
43
+ *
44
+ * @param {number} arg
45
+ * @param {Callback<Bytes> =} callback
46
+ **/
47
+ extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
48
+ /**
49
+ * The current block number being processed. Set by `execute_block`.
50
+ *
51
+ * @param {Callback<number> =} callback
52
+ **/
53
+ number: GenericStorageQuery<() => number>;
54
+ /**
55
+ * Hash of the previous block.
56
+ *
57
+ * @param {Callback<H256> =} callback
58
+ **/
59
+ parentHash: GenericStorageQuery<() => H256>;
60
+ /**
61
+ * Digest of the current block, also part of the block header.
62
+ *
63
+ * @param {Callback<Digest> =} callback
64
+ **/
65
+ digest: GenericStorageQuery<() => Digest>;
66
+ /**
67
+ * Events deposited for the current block.
68
+ *
69
+ * NOTE: The item is unbound and should therefore never be read on chain.
70
+ * It could otherwise inflate the PoV size of a block.
71
+ *
72
+ * Events have a large in-memory size. Box the events to not go out-of-memory
73
+ * just in case someone still reads them from within the runtime.
74
+ *
75
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
76
+ **/
77
+ events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
78
+ /**
79
+ * The number of events in the `Events<T>` list.
80
+ *
81
+ * @param {Callback<number> =} callback
82
+ **/
83
+ eventCount: GenericStorageQuery<() => number>;
84
+ /**
85
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
86
+ * of events in the `<Events<T>>` list.
87
+ *
88
+ * All topic vectors have deterministic storage locations depending on the topic. This
89
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
90
+ * in case of changes fetch the list of events of interest.
91
+ *
92
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
93
+ * the `EventIndex` then in case if the topic has the same contents on the next block
94
+ * no notification will be triggered thus the event might be lost.
95
+ *
96
+ * @param {H256} arg
97
+ * @param {Callback<Array<[number, number]>> =} callback
98
+ **/
99
+ eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
100
+ /**
101
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
102
+ *
103
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
104
+ **/
105
+ lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
106
+ /**
107
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
108
+ *
109
+ * @param {Callback<boolean> =} callback
110
+ **/
111
+ upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
112
+ /**
113
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
114
+ * (default) if not.
115
+ *
116
+ * @param {Callback<boolean> =} callback
117
+ **/
118
+ upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
119
+ /**
120
+ * The execution phase of the block.
121
+ *
122
+ * @param {Callback<Phase | undefined> =} callback
123
+ **/
124
+ executionPhase: GenericStorageQuery<() => Phase | undefined>;
125
+ /**
126
+ * Generic pallet storage query
127
+ **/
128
+ [storage: string]: GenericStorageQuery;
129
+ };
130
+ /**
131
+ * Pallet `Scheduler`'s storage queries
132
+ **/
133
+ scheduler: {
134
+ /**
135
+ *
136
+ * @param {Callback<number | undefined> =} callback
137
+ **/
138
+ incompleteSince: GenericStorageQuery<() => number | undefined>;
139
+ /**
140
+ * Items to be executed, indexed by the block number that they should be executed on.
141
+ *
142
+ * @param {number} arg
143
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
144
+ **/
145
+ agenda: GenericStorageQuery<(arg: number) => Array<PalletSchedulerScheduled | undefined>>;
146
+ /**
147
+ * Lookup from a name to the block number and index of the task.
148
+ *
149
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
150
+ * identities.
151
+ *
152
+ * @param {FixedBytes<32>} arg
153
+ * @param {Callback<[number, number] | undefined> =} callback
154
+ **/
155
+ lookup: GenericStorageQuery<(arg: FixedBytes<32>) => [number, number] | undefined>;
156
+ /**
157
+ * Generic pallet storage query
158
+ **/
159
+ [storage: string]: GenericStorageQuery;
160
+ };
161
+ /**
162
+ * Pallet `Preimage`'s storage queries
163
+ **/
164
+ preimage: {
165
+ /**
166
+ * The request status of a given hash.
167
+ *
168
+ * @param {H256} arg
169
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
170
+ **/
171
+ statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageOldRequestStatus | undefined>;
172
+ /**
173
+ * The request status of a given hash.
174
+ *
175
+ * @param {H256} arg
176
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
177
+ **/
178
+ requestStatusFor: GenericStorageQuery<(arg: H256) => PalletPreimageRequestStatus | undefined>;
179
+ /**
180
+ *
181
+ * @param {[H256, number]} arg
182
+ * @param {Callback<Bytes | undefined> =} callback
183
+ **/
184
+ preimageFor: GenericStorageQuery<(arg: [H256, number]) => Bytes | undefined>;
185
+ /**
186
+ * Generic pallet storage query
187
+ **/
188
+ [storage: string]: GenericStorageQuery;
189
+ };
190
+ /**
191
+ * Pallet `Babe`'s storage queries
192
+ **/
193
+ babe: {
194
+ /**
195
+ * Current epoch index.
196
+ *
197
+ * @param {Callback<bigint> =} callback
198
+ **/
199
+ epochIndex: GenericStorageQuery<() => bigint>;
200
+ /**
201
+ * Current epoch authorities.
202
+ *
203
+ * @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
204
+ **/
205
+ authorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>;
206
+ /**
207
+ * The slot at which the first epoch actually started. This is 0
208
+ * until the first block of the chain.
209
+ *
210
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
211
+ **/
212
+ genesisSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
213
+ /**
214
+ * Current slot number.
215
+ *
216
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
217
+ **/
218
+ currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
219
+ /**
220
+ * The epoch randomness for the *current* epoch.
221
+ *
222
+ * # Security
223
+ *
224
+ * This MUST NOT be used for gambling, as it can be influenced by a
225
+ * malicious validator in the short term. It MAY be used in many
226
+ * cryptographic protocols, however, so long as one remembers that this
227
+ * (like everything else on-chain) it is public. For example, it can be
228
+ * used where a number is needed that cannot have been chosen by an
229
+ * adversary, for purposes such as public-coin zero-knowledge proofs.
230
+ *
231
+ * @param {Callback<FixedBytes<32>> =} callback
232
+ **/
233
+ randomness: GenericStorageQuery<() => FixedBytes<32>>;
234
+ /**
235
+ * Pending epoch configuration change that will be applied when the next epoch is enacted.
236
+ *
237
+ * @param {Callback<SpConsensusBabeDigestsNextConfigDescriptor | undefined> =} callback
238
+ **/
239
+ pendingEpochConfigChange: GenericStorageQuery<() => SpConsensusBabeDigestsNextConfigDescriptor | undefined>;
240
+ /**
241
+ * Next epoch randomness.
242
+ *
243
+ * @param {Callback<FixedBytes<32>> =} callback
244
+ **/
245
+ nextRandomness: GenericStorageQuery<() => FixedBytes<32>>;
246
+ /**
247
+ * Next epoch authorities.
248
+ *
249
+ * @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
250
+ **/
251
+ nextAuthorities: GenericStorageQuery<() => Array<[SpConsensusBabeAppPublic, bigint]>>;
252
+ /**
253
+ * Randomness under construction.
254
+ *
255
+ * We make a trade-off between storage accesses and list length.
256
+ * We store the under-construction randomness in segments of up to
257
+ * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
258
+ *
259
+ * Once a segment reaches this length, we begin the next one.
260
+ * We reset all segments and return to `0` at the beginning of every
261
+ * epoch.
262
+ *
263
+ * @param {Callback<number> =} callback
264
+ **/
265
+ segmentIndex: GenericStorageQuery<() => number>;
266
+ /**
267
+ * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
268
+ *
269
+ * @param {number} arg
270
+ * @param {Callback<Array<FixedBytes<32>>> =} callback
271
+ **/
272
+ underConstruction: GenericStorageQuery<(arg: number) => Array<FixedBytes<32>>>;
273
+ /**
274
+ * Temporary value (cleared at block finalization) which is `Some`
275
+ * if per-block initialization has already been called for current block.
276
+ *
277
+ * @param {Callback<SpConsensusBabeDigestsPreDigest | undefined | undefined> =} callback
278
+ **/
279
+ initialized: GenericStorageQuery<() => SpConsensusBabeDigestsPreDigest | undefined | undefined>;
280
+ /**
281
+ * This field should always be populated during block processing unless
282
+ * secondary plain slots are enabled (which don't contain a VRF output).
283
+ *
284
+ * It is set in `on_finalize`, before it will contain the value from the last block.
285
+ *
286
+ * @param {Callback<FixedBytes<32> | undefined> =} callback
287
+ **/
288
+ authorVrfRandomness: GenericStorageQuery<() => FixedBytes<32> | undefined>;
289
+ /**
290
+ * The block numbers when the last and current epoch have started, respectively `N-1` and
291
+ * `N`.
292
+ * NOTE: We track this is in order to annotate the block number when a given pool of
293
+ * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
294
+ * slots, which may be skipped, the block numbers may not line up with the slot numbers.
295
+ *
296
+ * @param {Callback<[number, number]> =} callback
297
+ **/
298
+ epochStart: GenericStorageQuery<() => [number, number]>;
299
+ /**
300
+ * How late the current block is compared to its parent.
301
+ *
302
+ * This entry is populated as part of block execution and is cleaned up
303
+ * on block finalization. Querying this storage entry outside of block
304
+ * execution context should always yield zero.
305
+ *
306
+ * @param {Callback<number> =} callback
307
+ **/
308
+ lateness: GenericStorageQuery<() => number>;
309
+ /**
310
+ * The configuration for the current epoch. Should never be `None` as it is initialized in
311
+ * genesis.
312
+ *
313
+ * @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
314
+ **/
315
+ epochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>;
316
+ /**
317
+ * The configuration for the next epoch, `None` if the config will not change
318
+ * (you can fallback to `EpochConfig` instead in that case).
319
+ *
320
+ * @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
321
+ **/
322
+ nextEpochConfig: GenericStorageQuery<() => SpConsensusBabeBabeEpochConfiguration | undefined>;
323
+ /**
324
+ * A list of the last 100 skipped epochs and the corresponding session index
325
+ * when the epoch was skipped.
326
+ *
327
+ * This is only used for validating equivocation proofs. An equivocation proof
328
+ * must contains a key-ownership proof for a given session, therefore we need a
329
+ * way to tie together sessions and epoch indices, i.e. we need to validate that
330
+ * a validator was the owner of a given key on a given session, and what the
331
+ * active epoch index was during that session.
332
+ *
333
+ * @param {Callback<Array<[bigint, number]>> =} callback
334
+ **/
335
+ skippedEpochs: GenericStorageQuery<() => Array<[bigint, number]>>;
336
+ /**
337
+ * Generic pallet storage query
338
+ **/
339
+ [storage: string]: GenericStorageQuery;
340
+ };
341
+ /**
342
+ * Pallet `Timestamp`'s storage queries
343
+ **/
344
+ timestamp: {
345
+ /**
346
+ * The current time for the current block.
347
+ *
348
+ * @param {Callback<bigint> =} callback
349
+ **/
350
+ now: GenericStorageQuery<() => bigint>;
351
+ /**
352
+ * Whether the timestamp has been updated in this block.
353
+ *
354
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
355
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
356
+ *
357
+ * @param {Callback<boolean> =} callback
358
+ **/
359
+ didUpdate: GenericStorageQuery<() => boolean>;
360
+ /**
361
+ * Generic pallet storage query
362
+ **/
363
+ [storage: string]: GenericStorageQuery;
364
+ };
365
+ /**
366
+ * Pallet `Indices`'s storage queries
367
+ **/
368
+ indices: {
369
+ /**
370
+ * The lookup from index to account.
371
+ *
372
+ * @param {number} arg
373
+ * @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
374
+ **/
375
+ accounts: GenericStorageQuery<(arg: number) => [AccountId32, bigint, boolean] | undefined>;
376
+ /**
377
+ * Generic pallet storage query
378
+ **/
379
+ [storage: string]: GenericStorageQuery;
380
+ };
381
+ /**
382
+ * Pallet `Balances`'s storage queries
383
+ **/
384
+ balances: {
385
+ /**
386
+ * The total units issued in the system.
387
+ *
388
+ * @param {Callback<bigint> =} callback
389
+ **/
390
+ totalIssuance: GenericStorageQuery<() => bigint>;
391
+ /**
392
+ * The total units of outstanding deactivated balance in the system.
393
+ *
394
+ * @param {Callback<bigint> =} callback
395
+ **/
396
+ inactiveIssuance: GenericStorageQuery<() => bigint>;
397
+ /**
398
+ * The Balances pallet example of storing the balance of an account.
399
+ *
400
+ * # Example
401
+ *
402
+ * ```nocompile
403
+ * impl pallet_balances::Config for Runtime {
404
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
405
+ * }
406
+ * ```
407
+ *
408
+ * You can also store the balance of an account in the `System` pallet.
409
+ *
410
+ * # Example
411
+ *
412
+ * ```nocompile
413
+ * impl pallet_balances::Config for Runtime {
414
+ * type AccountStore = System
415
+ * }
416
+ * ```
417
+ *
418
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
419
+ * `frame_system` data alongside the account data contrary to storing account balances in the
420
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
421
+ * NOTE: This is only used in the case that this pallet is used to store balances.
422
+ *
423
+ * @param {AccountId32Like} arg
424
+ * @param {Callback<PalletBalancesAccountData> =} callback
425
+ **/
426
+ account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
427
+ /**
428
+ * Any liquidity locks on some account balances.
429
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
430
+ *
431
+ * @param {AccountId32Like} arg
432
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
433
+ **/
434
+ locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
435
+ /**
436
+ * Named reserves on some account balances.
437
+ *
438
+ * @param {AccountId32Like} arg
439
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
440
+ **/
441
+ reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
442
+ /**
443
+ * Holds on account balances.
444
+ *
445
+ * @param {AccountId32Like} arg
446
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
447
+ **/
448
+ holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
449
+ /**
450
+ * Freeze locks on account balances.
451
+ *
452
+ * @param {AccountId32Like} arg
453
+ * @param {Callback<Array<PalletBalancesIdAmountRuntimeFreezeReason>> =} callback
454
+ **/
455
+ freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmountRuntimeFreezeReason>>;
456
+ /**
457
+ * Generic pallet storage query
458
+ **/
459
+ [storage: string]: GenericStorageQuery;
460
+ };
461
+ /**
462
+ * Pallet `TransactionPayment`'s storage queries
463
+ **/
464
+ transactionPayment: {
465
+ /**
466
+ *
467
+ * @param {Callback<FixedU128> =} callback
468
+ **/
469
+ nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
470
+ /**
471
+ *
472
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
473
+ **/
474
+ storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
475
+ /**
476
+ * Generic pallet storage query
477
+ **/
478
+ [storage: string]: GenericStorageQuery;
479
+ };
480
+ /**
481
+ * Pallet `Authorship`'s storage queries
482
+ **/
483
+ authorship: {
484
+ /**
485
+ * Author of current block.
486
+ *
487
+ * @param {Callback<AccountId32 | undefined> =} callback
488
+ **/
489
+ author: GenericStorageQuery<() => AccountId32 | undefined>;
490
+ /**
491
+ * Generic pallet storage query
492
+ **/
493
+ [storage: string]: GenericStorageQuery;
494
+ };
495
+ /**
496
+ * Pallet `Staking`'s storage queries
497
+ **/
498
+ staking: {
499
+ /**
500
+ * The ideal number of active validators.
501
+ *
502
+ * @param {Callback<number> =} callback
503
+ **/
504
+ validatorCount: GenericStorageQuery<() => number>;
505
+ /**
506
+ * Minimum number of staking participants before emergency conditions are imposed.
507
+ *
508
+ * @param {Callback<number> =} callback
509
+ **/
510
+ minimumValidatorCount: GenericStorageQuery<() => number>;
511
+ /**
512
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
513
+ * easy to initialize and the performance hit is minimal (we expect no more than four
514
+ * invulnerables) and restricted to testnets.
515
+ *
516
+ * @param {Callback<Array<AccountId32>> =} callback
517
+ **/
518
+ invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
519
+ /**
520
+ * Map from all locked "stash" accounts to the controller account.
521
+ *
522
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
523
+ *
524
+ * @param {AccountId32Like} arg
525
+ * @param {Callback<AccountId32 | undefined> =} callback
526
+ **/
527
+ bonded: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined>;
528
+ /**
529
+ * The minimum active bond to become and maintain the role of a nominator.
530
+ *
531
+ * @param {Callback<bigint> =} callback
532
+ **/
533
+ minNominatorBond: GenericStorageQuery<() => bigint>;
534
+ /**
535
+ * The minimum active bond to become and maintain the role of a validator.
536
+ *
537
+ * @param {Callback<bigint> =} callback
538
+ **/
539
+ minValidatorBond: GenericStorageQuery<() => bigint>;
540
+ /**
541
+ * The minimum active nominator stake of the last successful election.
542
+ *
543
+ * @param {Callback<bigint> =} callback
544
+ **/
545
+ minimumActiveStake: GenericStorageQuery<() => bigint>;
546
+ /**
547
+ * The minimum amount of commission that validators can set.
548
+ *
549
+ * If set to `0`, no limit exists.
550
+ *
551
+ * @param {Callback<Perbill> =} callback
552
+ **/
553
+ minCommission: GenericStorageQuery<() => Perbill>;
554
+ /**
555
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
556
+ *
557
+ * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
558
+ * by [`StakingLedger`] to ensure data and lock consistency.
559
+ *
560
+ * @param {AccountId32Like} arg
561
+ * @param {Callback<PalletStakingStakingLedger | undefined> =} callback
562
+ **/
563
+ ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingStakingLedger | undefined>;
564
+ /**
565
+ * Where the reward payment should be made. Keyed by stash.
566
+ *
567
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
568
+ *
569
+ * @param {AccountId32Like} arg
570
+ * @param {Callback<PalletStakingRewardDestination> =} callback
571
+ **/
572
+ payee: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingRewardDestination>;
573
+ /**
574
+ * The map from (wannabe) validator stash key to the preferences of that validator.
575
+ *
576
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
577
+ *
578
+ * @param {AccountId32Like} arg
579
+ * @param {Callback<PalletStakingValidatorPrefs> =} callback
580
+ **/
581
+ validators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingValidatorPrefs>;
582
+ /**
583
+ * Counter for the related counted storage map
584
+ *
585
+ * @param {Callback<number> =} callback
586
+ **/
587
+ counterForValidators: GenericStorageQuery<() => number>;
588
+ /**
589
+ * The maximum validator count before we stop allowing new validators to join.
590
+ *
591
+ * When this value is not set, no limits are enforced.
592
+ *
593
+ * @param {Callback<number | undefined> =} callback
594
+ **/
595
+ maxValidatorsCount: GenericStorageQuery<() => number | undefined>;
596
+ /**
597
+ * The map from nominator stash key to their nomination preferences, namely the validators that
598
+ * they wish to support.
599
+ *
600
+ * Note that the keys of this storage map might become non-decodable in case the
601
+ * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
602
+ * In this rare case, these nominators
603
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
604
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
605
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
606
+ * is within the bounds of the newly set `Config::MaxNominations`.
607
+ *
608
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
609
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
610
+ * number of keys that exist.
611
+ *
612
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
613
+ * [`Call::chill_other`] dispatchable by anyone.
614
+ *
615
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
616
+ *
617
+ * @param {AccountId32Like} arg
618
+ * @param {Callback<PalletStakingNominations | undefined> =} callback
619
+ **/
620
+ nominators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingNominations | undefined>;
621
+ /**
622
+ * Counter for the related counted storage map
623
+ *
624
+ * @param {Callback<number> =} callback
625
+ **/
626
+ counterForNominators: GenericStorageQuery<() => number>;
627
+ /**
628
+ * The maximum nominator count before we stop allowing new validators to join.
629
+ *
630
+ * When this value is not set, no limits are enforced.
631
+ *
632
+ * @param {Callback<number | undefined> =} callback
633
+ **/
634
+ maxNominatorsCount: GenericStorageQuery<() => number | undefined>;
635
+ /**
636
+ * The current era index.
637
+ *
638
+ * This is the latest planned era, depending on how the Session pallet queues the validator
639
+ * set, it might be active or not.
640
+ *
641
+ * @param {Callback<number | undefined> =} callback
642
+ **/
643
+ currentEra: GenericStorageQuery<() => number | undefined>;
644
+ /**
645
+ * The active era information, it holds index and start.
646
+ *
647
+ * The active era is the era being currently rewarded. Validator set of this era must be
648
+ * equal to [`SessionInterface::validators`].
649
+ *
650
+ * @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
651
+ **/
652
+ activeEra: GenericStorageQuery<() => PalletStakingActiveEraInfo | undefined>;
653
+ /**
654
+ * The session index at which the era start for the last `HISTORY_DEPTH` eras.
655
+ *
656
+ * Note: This tracks the starting session (i.e. session index when era start being active)
657
+ * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
658
+ *
659
+ * @param {number} arg
660
+ * @param {Callback<number | undefined> =} callback
661
+ **/
662
+ erasStartSessionIndex: GenericStorageQuery<(arg: number) => number | undefined>;
663
+ /**
664
+ * Exposure of validator at era.
665
+ *
666
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
667
+ *
668
+ * Is it removed after `HISTORY_DEPTH` eras.
669
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
670
+ *
671
+ * @param {[number, AccountId32Like]} arg
672
+ * @param {Callback<PalletStakingExposure> =} callback
673
+ **/
674
+ erasStakers: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingExposure>;
675
+ /**
676
+ * Clipped Exposure of validator at era.
677
+ *
678
+ * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
679
+ * `T::MaxNominatorRewardedPerValidator` biggest stakers.
680
+ * (Note: the field `total` and `own` of the exposure remains unchanged).
681
+ * This is used to limit the i/o cost for the nominator payout.
682
+ *
683
+ * This is keyed fist by the era index to allow bulk deletion and then the stash account.
684
+ *
685
+ * Is it removed after `HISTORY_DEPTH` eras.
686
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
687
+ *
688
+ * @param {[number, AccountId32Like]} arg
689
+ * @param {Callback<PalletStakingExposure> =} callback
690
+ **/
691
+ erasStakersClipped: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingExposure>;
692
+ /**
693
+ * Similar to `ErasStakers`, this holds the preferences of validators.
694
+ *
695
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
696
+ *
697
+ * Is it removed after `HISTORY_DEPTH` eras.
698
+ *
699
+ * @param {[number, AccountId32Like]} arg
700
+ * @param {Callback<PalletStakingValidatorPrefs> =} callback
701
+ **/
702
+ erasValidatorPrefs: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs>;
703
+ /**
704
+ * The total validator era payout for the last `HISTORY_DEPTH` eras.
705
+ *
706
+ * Eras that haven't finished yet or has been removed doesn't have reward.
707
+ *
708
+ * @param {number} arg
709
+ * @param {Callback<bigint | undefined> =} callback
710
+ **/
711
+ erasValidatorReward: GenericStorageQuery<(arg: number) => bigint | undefined>;
712
+ /**
713
+ * Rewards for the last `HISTORY_DEPTH` eras.
714
+ * If reward hasn't been set or has been removed then 0 reward is returned.
715
+ *
716
+ * @param {number} arg
717
+ * @param {Callback<PalletStakingEraRewardPoints> =} callback
718
+ **/
719
+ erasRewardPoints: GenericStorageQuery<(arg: number) => PalletStakingEraRewardPoints>;
720
+ /**
721
+ * The total amount staked for the last `HISTORY_DEPTH` eras.
722
+ * If total hasn't been set or has been removed then 0 stake is returned.
723
+ *
724
+ * @param {number} arg
725
+ * @param {Callback<bigint> =} callback
726
+ **/
727
+ erasTotalStake: GenericStorageQuery<(arg: number) => bigint>;
728
+ /**
729
+ * Mode of era forcing.
730
+ *
731
+ * @param {Callback<PalletStakingForcing> =} callback
732
+ **/
733
+ forceEra: GenericStorageQuery<() => PalletStakingForcing>;
734
+ /**
735
+ * The percentage of the slash that is distributed to reporters.
736
+ *
737
+ * The rest of the slashed value is handled by the `Slash`.
738
+ *
739
+ * @param {Callback<Perbill> =} callback
740
+ **/
741
+ slashRewardFraction: GenericStorageQuery<() => Perbill>;
742
+ /**
743
+ * The amount of currency given to reporters of a slash event which was
744
+ * canceled by extraordinary circumstances (e.g. governance).
745
+ *
746
+ * @param {Callback<bigint> =} callback
747
+ **/
748
+ canceledSlashPayout: GenericStorageQuery<() => bigint>;
749
+ /**
750
+ * All unapplied slashes that are queued for later.
751
+ *
752
+ * @param {number} arg
753
+ * @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
754
+ **/
755
+ unappliedSlashes: GenericStorageQuery<(arg: number) => Array<PalletStakingUnappliedSlash>>;
756
+ /**
757
+ * A mapping from still-bonded eras to the first session index of that era.
758
+ *
759
+ * Must contains information for eras for the range:
760
+ * `[active_era - bounding_duration; active_era]`
761
+ *
762
+ * @param {Callback<Array<[number, number]>> =} callback
763
+ **/
764
+ bondedEras: GenericStorageQuery<() => Array<[number, number]>>;
765
+ /**
766
+ * All slashing events on validators, mapped by era to the highest slash proportion
767
+ * and slash value of the era.
768
+ *
769
+ * @param {[number, AccountId32Like]} arg
770
+ * @param {Callback<[Perbill, bigint] | undefined> =} callback
771
+ **/
772
+ validatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined>;
773
+ /**
774
+ * All slashing events on nominators, mapped by era to the highest slash value of the era.
775
+ *
776
+ * @param {[number, AccountId32Like]} arg
777
+ * @param {Callback<bigint | undefined> =} callback
778
+ **/
779
+ nominatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => bigint | undefined>;
780
+ /**
781
+ * Slashing spans for stash accounts.
782
+ *
783
+ * @param {AccountId32Like} arg
784
+ * @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
785
+ **/
786
+ slashingSpans: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined>;
787
+ /**
788
+ * Records information about the maximum slash of a stash within a slashing span,
789
+ * as well as how much reward has been paid out.
790
+ *
791
+ * @param {[AccountId32Like, number]} arg
792
+ * @param {Callback<PalletStakingSlashingSpanRecord> =} callback
793
+ **/
794
+ spanSlash: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord>;
795
+ /**
796
+ * The last planned session scheduled by the session pallet.
797
+ *
798
+ * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
799
+ *
800
+ * @param {Callback<number> =} callback
801
+ **/
802
+ currentPlannedSession: GenericStorageQuery<() => number>;
803
+ /**
804
+ * Indices of validators that have offended in the active era and whether they are currently
805
+ * disabled.
806
+ *
807
+ * This value should be a superset of disabled validators since not all offences lead to the
808
+ * validator being disabled (if there was no slash). This is needed to track the percentage of
809
+ * validators that have offended in the current era, ensuring a new era is forced if
810
+ * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
811
+ * whether a given validator has previously offended using binary search. It gets cleared when
812
+ * the era ends.
813
+ *
814
+ * @param {Callback<Array<[number, boolean]>> =} callback
815
+ **/
816
+ offendingValidators: GenericStorageQuery<() => Array<[number, boolean]>>;
817
+ /**
818
+ * The threshold for when users can start calling `chill_other` for other validators /
819
+ * nominators. The threshold is compared to the actual number of validators / nominators
820
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
821
+ *
822
+ * @param {Callback<Percent | undefined> =} callback
823
+ **/
824
+ chillThreshold: GenericStorageQuery<() => Percent | undefined>;
825
+ /**
826
+ * Generic pallet storage query
827
+ **/
828
+ [storage: string]: GenericStorageQuery;
829
+ };
830
+ /**
831
+ * Pallet `Offences`'s storage queries
832
+ **/
833
+ offences: {
834
+ /**
835
+ * The primary structure that holds all offence records keyed by report identifiers.
836
+ *
837
+ * @param {H256} arg
838
+ * @param {Callback<SpStakingOffenceOffenceDetails | undefined> =} callback
839
+ **/
840
+ reports: GenericStorageQuery<(arg: H256) => SpStakingOffenceOffenceDetails | undefined>;
841
+ /**
842
+ * A vector of reports of the same kind that happened at the same time slot.
843
+ *
844
+ * @param {[FixedBytes<16>, BytesLike]} arg
845
+ * @param {Callback<Array<H256>> =} callback
846
+ **/
847
+ concurrentReportsIndex: GenericStorageQuery<(arg: [FixedBytes<16>, BytesLike]) => Array<H256>>;
848
+ /**
849
+ * Generic pallet storage query
850
+ **/
851
+ [storage: string]: GenericStorageQuery;
852
+ };
853
+ /**
854
+ * Pallet `Session`'s storage queries
855
+ **/
856
+ session: {
857
+ /**
858
+ * The current set of validators.
859
+ *
860
+ * @param {Callback<Array<AccountId32>> =} callback
861
+ **/
862
+ validators: GenericStorageQuery<() => Array<AccountId32>>;
863
+ /**
864
+ * Current index of the session.
865
+ *
866
+ * @param {Callback<number> =} callback
867
+ **/
868
+ currentIndex: GenericStorageQuery<() => number>;
869
+ /**
870
+ * True if the underlying economic identities or weighting behind the validators
871
+ * has changed in the queued validator set.
872
+ *
873
+ * @param {Callback<boolean> =} callback
874
+ **/
875
+ queuedChanged: GenericStorageQuery<() => boolean>;
876
+ /**
877
+ * The queued keys for the next session. When the next session begins, these keys
878
+ * will be used to determine the validator's session keys.
879
+ *
880
+ * @param {Callback<Array<[AccountId32, PolkadotRuntimeSessionKeys]>> =} callback
881
+ **/
882
+ queuedKeys: GenericStorageQuery<() => Array<[AccountId32, PolkadotRuntimeSessionKeys]>>;
883
+ /**
884
+ * Indices of disabled validators.
885
+ *
886
+ * The vec is always kept sorted so that we can find whether a given validator is
887
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
888
+ * a new set of identities.
889
+ *
890
+ * @param {Callback<Array<number>> =} callback
891
+ **/
892
+ disabledValidators: GenericStorageQuery<() => Array<number>>;
893
+ /**
894
+ * The next session keys for a validator.
895
+ *
896
+ * @param {AccountId32Like} arg
897
+ * @param {Callback<PolkadotRuntimeSessionKeys | undefined> =} callback
898
+ **/
899
+ nextKeys: GenericStorageQuery<(arg: AccountId32Like) => PolkadotRuntimeSessionKeys | undefined>;
900
+ /**
901
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
902
+ *
903
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
904
+ * @param {Callback<AccountId32 | undefined> =} callback
905
+ **/
906
+ keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
907
+ /**
908
+ * Generic pallet storage query
909
+ **/
910
+ [storage: string]: GenericStorageQuery;
911
+ };
912
+ /**
913
+ * Pallet `Grandpa`'s storage queries
914
+ **/
915
+ grandpa: {
916
+ /**
917
+ * State of the current authority set.
918
+ *
919
+ * @param {Callback<PalletGrandpaStoredState> =} callback
920
+ **/
921
+ state: GenericStorageQuery<() => PalletGrandpaStoredState>;
922
+ /**
923
+ * Pending change: (signaled at, scheduled change).
924
+ *
925
+ * @param {Callback<PalletGrandpaStoredPendingChange | undefined> =} callback
926
+ **/
927
+ pendingChange: GenericStorageQuery<() => PalletGrandpaStoredPendingChange | undefined>;
928
+ /**
929
+ * next block number where we can force a change.
930
+ *
931
+ * @param {Callback<number | undefined> =} callback
932
+ **/
933
+ nextForced: GenericStorageQuery<() => number | undefined>;
934
+ /**
935
+ * `true` if we are currently stalled.
936
+ *
937
+ * @param {Callback<[number, number] | undefined> =} callback
938
+ **/
939
+ stalled: GenericStorageQuery<() => [number, number] | undefined>;
940
+ /**
941
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
942
+ * in the "set" of Grandpa validators from genesis.
943
+ *
944
+ * @param {Callback<bigint> =} callback
945
+ **/
946
+ currentSetId: GenericStorageQuery<() => bigint>;
947
+ /**
948
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
949
+ * members were responsible.
950
+ *
951
+ * This is only used for validating equivocation proofs. An equivocation proof must
952
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
953
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
954
+ * was the owner of a given key on a given session, and what the active set ID was
955
+ * during that session.
956
+ *
957
+ * TWOX-NOTE: `SetId` is not under user control.
958
+ *
959
+ * @param {bigint} arg
960
+ * @param {Callback<number | undefined> =} callback
961
+ **/
962
+ setIdSession: GenericStorageQuery<(arg: bigint) => number | undefined>;
963
+ /**
964
+ * Generic pallet storage query
965
+ **/
966
+ [storage: string]: GenericStorageQuery;
967
+ };
968
+ /**
969
+ * Pallet `ImOnline`'s storage queries
970
+ **/
971
+ imOnline: {
972
+ /**
973
+ * The block number after which it's ok to send heartbeats in the current
974
+ * session.
975
+ *
976
+ * At the beginning of each session we set this to a value that should fall
977
+ * roughly in the middle of the session duration. The idea is to first wait for
978
+ * the validators to produce a block in the current session, so that the
979
+ * heartbeat later on will not be necessary.
980
+ *
981
+ * This value will only be used as a fallback if we fail to get a proper session
982
+ * progress estimate from `NextSessionRotation`, as those estimates should be
983
+ * more accurate then the value we calculate for `HeartbeatAfter`.
984
+ *
985
+ * @param {Callback<number> =} callback
986
+ **/
987
+ heartbeatAfter: GenericStorageQuery<() => number>;
988
+ /**
989
+ * The current set of keys that may issue a heartbeat.
990
+ *
991
+ * @param {Callback<Array<PalletImOnlineSr25519AppSr25519Public>> =} callback
992
+ **/
993
+ keys: GenericStorageQuery<() => Array<PalletImOnlineSr25519AppSr25519Public>>;
994
+ /**
995
+ * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
996
+ *
997
+ * @param {[number, number]} arg
998
+ * @param {Callback<boolean | undefined> =} callback
999
+ **/
1000
+ receivedHeartbeats: GenericStorageQuery<(arg: [number, number]) => boolean | undefined>;
1001
+ /**
1002
+ * For each session index, we keep a mapping of `ValidatorId<T>` to the
1003
+ * number of blocks authored by the given authority.
1004
+ *
1005
+ * @param {[number, AccountId32Like]} arg
1006
+ * @param {Callback<number> =} callback
1007
+ **/
1008
+ authoredBlocks: GenericStorageQuery<(arg: [number, AccountId32Like]) => number>;
1009
+ /**
1010
+ * Generic pallet storage query
1011
+ **/
1012
+ [storage: string]: GenericStorageQuery;
1013
+ };
1014
+ /**
1015
+ * Pallet `Treasury`'s storage queries
1016
+ **/
1017
+ treasury: {
1018
+ /**
1019
+ * Number of proposals that have been made.
1020
+ *
1021
+ * @param {Callback<number> =} callback
1022
+ **/
1023
+ proposalCount: GenericStorageQuery<() => number>;
1024
+ /**
1025
+ * Proposals that have been made.
1026
+ *
1027
+ * @param {number} arg
1028
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1029
+ **/
1030
+ proposals: GenericStorageQuery<(arg: number) => PalletTreasuryProposal | undefined>;
1031
+ /**
1032
+ * The amount which has been reported as inactive to Currency.
1033
+ *
1034
+ * @param {Callback<bigint> =} callback
1035
+ **/
1036
+ deactivated: GenericStorageQuery<() => bigint>;
1037
+ /**
1038
+ * Proposal indices that have been approved but not yet awarded.
1039
+ *
1040
+ * @param {Callback<Array<number>> =} callback
1041
+ **/
1042
+ approvals: GenericStorageQuery<() => Array<number>>;
1043
+ /**
1044
+ * The count of spends that have been made.
1045
+ *
1046
+ * @param {Callback<number> =} callback
1047
+ **/
1048
+ spendCount: GenericStorageQuery<() => number>;
1049
+ /**
1050
+ * Spends that have been approved and being processed.
1051
+ *
1052
+ * @param {number} arg
1053
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
1054
+ **/
1055
+ spends: GenericStorageQuery<(arg: number) => PalletTreasurySpendStatus | undefined>;
1056
+ /**
1057
+ * Generic pallet storage query
1058
+ **/
1059
+ [storage: string]: GenericStorageQuery;
1060
+ };
1061
+ /**
1062
+ * Pallet `ConvictionVoting`'s storage queries
1063
+ **/
1064
+ convictionVoting: {
1065
+ /**
1066
+ * All voting for a particular voter in a particular voting class. We store the balance for the
1067
+ * number of votes that we have recorded.
1068
+ *
1069
+ * @param {[AccountId32Like, number]} arg
1070
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
1071
+ **/
1072
+ votingFor: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting>;
1073
+ /**
1074
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
1075
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
1076
+ * this list.
1077
+ *
1078
+ * @param {AccountId32Like} arg
1079
+ * @param {Callback<Array<[number, bigint]>> =} callback
1080
+ **/
1081
+ classLocksFor: GenericStorageQuery<(arg: AccountId32Like) => Array<[number, bigint]>>;
1082
+ /**
1083
+ * Generic pallet storage query
1084
+ **/
1085
+ [storage: string]: GenericStorageQuery;
1086
+ };
1087
+ /**
1088
+ * Pallet `Referenda`'s storage queries
1089
+ **/
1090
+ referenda: {
1091
+ /**
1092
+ * The next free referendum index, aka the number of referenda started so far.
1093
+ *
1094
+ * @param {Callback<number> =} callback
1095
+ **/
1096
+ referendumCount: GenericStorageQuery<() => number>;
1097
+ /**
1098
+ * Information concerning any given referendum.
1099
+ *
1100
+ * @param {number} arg
1101
+ * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
1102
+ **/
1103
+ referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfo | undefined>;
1104
+ /**
1105
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
1106
+ * conviction-weighted approvals.
1107
+ *
1108
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
1109
+ *
1110
+ * @param {number} arg
1111
+ * @param {Callback<Array<[number, bigint]>> =} callback
1112
+ **/
1113
+ trackQueue: GenericStorageQuery<(arg: number) => Array<[number, bigint]>>;
1114
+ /**
1115
+ * The number of referenda being decided currently.
1116
+ *
1117
+ * @param {number} arg
1118
+ * @param {Callback<number> =} callback
1119
+ **/
1120
+ decidingCount: GenericStorageQuery<(arg: number) => number>;
1121
+ /**
1122
+ * The metadata is a general information concerning the referendum.
1123
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1124
+ * dump or IPFS hash of a JSON file.
1125
+ *
1126
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1127
+ * large preimages.
1128
+ *
1129
+ * @param {number} arg
1130
+ * @param {Callback<H256 | undefined> =} callback
1131
+ **/
1132
+ metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined>;
1133
+ /**
1134
+ * Generic pallet storage query
1135
+ **/
1136
+ [storage: string]: GenericStorageQuery;
1137
+ };
1138
+ /**
1139
+ * Pallet `Whitelist`'s storage queries
1140
+ **/
1141
+ whitelist: {
1142
+ /**
1143
+ *
1144
+ * @param {H256} arg
1145
+ * @param {Callback<[] | undefined> =} callback
1146
+ **/
1147
+ whitelistedCall: GenericStorageQuery<(arg: H256) => [] | undefined>;
1148
+ /**
1149
+ * Generic pallet storage query
1150
+ **/
1151
+ [storage: string]: GenericStorageQuery;
1152
+ };
1153
+ /**
1154
+ * Pallet `Claims`'s storage queries
1155
+ **/
1156
+ claims: {
1157
+ /**
1158
+ *
1159
+ * @param {EthereumAddressLike} arg
1160
+ * @param {Callback<bigint | undefined> =} callback
1161
+ **/
1162
+ claims: GenericStorageQuery<(arg: EthereumAddressLike) => bigint | undefined>;
1163
+ /**
1164
+ *
1165
+ * @param {Callback<bigint> =} callback
1166
+ **/
1167
+ total: GenericStorageQuery<() => bigint>;
1168
+ /**
1169
+ * Vesting schedule for a claim.
1170
+ * First balance is the total amount that should be held for vesting.
1171
+ * Second balance is how much should be unlocked per block.
1172
+ * The block number is when the vesting should start.
1173
+ *
1174
+ * @param {EthereumAddressLike} arg
1175
+ * @param {Callback<[bigint, bigint, number] | undefined> =} callback
1176
+ **/
1177
+ vesting: GenericStorageQuery<(arg: EthereumAddressLike) => [bigint, bigint, number] | undefined>;
1178
+ /**
1179
+ * The statement kind that must be signed, if any.
1180
+ *
1181
+ * @param {EthereumAddressLike} arg
1182
+ * @param {Callback<PolkadotRuntimeCommonClaimsStatementKind | undefined> =} callback
1183
+ **/
1184
+ signing: GenericStorageQuery<(arg: EthereumAddressLike) => PolkadotRuntimeCommonClaimsStatementKind | undefined>;
1185
+ /**
1186
+ * Pre-claimed Ethereum accounts, by the Account ID that they are claimed to.
1187
+ *
1188
+ * @param {AccountId32Like} arg
1189
+ * @param {Callback<EthereumAddress | undefined> =} callback
1190
+ **/
1191
+ preclaims: GenericStorageQuery<(arg: AccountId32Like) => EthereumAddress | undefined>;
1192
+ /**
1193
+ * Generic pallet storage query
1194
+ **/
1195
+ [storage: string]: GenericStorageQuery;
1196
+ };
1197
+ /**
1198
+ * Pallet `Vesting`'s storage queries
1199
+ **/
1200
+ vesting: {
1201
+ /**
1202
+ * Information regarding the vesting of a given account.
1203
+ *
1204
+ * @param {AccountId32Like} arg
1205
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
1206
+ **/
1207
+ vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined>;
1208
+ /**
1209
+ * Storage version of the pallet.
1210
+ *
1211
+ * New networks start with latest version, as determined by the genesis build.
1212
+ *
1213
+ * @param {Callback<PalletVestingReleases> =} callback
1214
+ **/
1215
+ storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
1216
+ /**
1217
+ * Generic pallet storage query
1218
+ **/
1219
+ [storage: string]: GenericStorageQuery;
1220
+ };
1221
+ /**
1222
+ * Pallet `Identity`'s storage queries
1223
+ **/
1224
+ identity: {
1225
+ /**
1226
+ * Information that is pertinent to identify the entity behind an account.
1227
+ *
1228
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1229
+ *
1230
+ * @param {AccountId32Like} arg
1231
+ * @param {Callback<PalletIdentityRegistration | undefined> =} callback
1232
+ **/
1233
+ identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined>;
1234
+ /**
1235
+ * The super-identity of an alternative "sub" identity together with its name, within that
1236
+ * context. If the account is not some other account's sub-identity, then just `None`.
1237
+ *
1238
+ * @param {AccountId32Like} arg
1239
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
1240
+ **/
1241
+ superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
1242
+ /**
1243
+ * Alternative "sub" identities of this account.
1244
+ *
1245
+ * The first item is the deposit, the second is a vector of the accounts.
1246
+ *
1247
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1248
+ *
1249
+ * @param {AccountId32Like} arg
1250
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1251
+ **/
1252
+ subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
1253
+ /**
1254
+ * The set of registrars. Not expected to get very big as can only be added through a
1255
+ * special origin (likely a council motion).
1256
+ *
1257
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1258
+ *
1259
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1260
+ **/
1261
+ registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
1262
+ /**
1263
+ * Generic pallet storage query
1264
+ **/
1265
+ [storage: string]: GenericStorageQuery;
1266
+ };
1267
+ /**
1268
+ * Pallet `Proxy`'s storage queries
1269
+ **/
1270
+ proxy: {
1271
+ /**
1272
+ * The set of account proxies. Maps the account which has delegated to the accounts
1273
+ * which are being delegated to, together with the amount held on deposit.
1274
+ *
1275
+ * @param {AccountId32Like} arg
1276
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1277
+ **/
1278
+ proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
1279
+ /**
1280
+ * The announcements made by the proxy (key).
1281
+ *
1282
+ * @param {AccountId32Like} arg
1283
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1284
+ **/
1285
+ announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
1286
+ /**
1287
+ * Generic pallet storage query
1288
+ **/
1289
+ [storage: string]: GenericStorageQuery;
1290
+ };
1291
+ /**
1292
+ * Pallet `Multisig`'s storage queries
1293
+ **/
1294
+ multisig: {
1295
+ /**
1296
+ * The set of open multisig operations.
1297
+ *
1298
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1299
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1300
+ **/
1301
+ multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
1302
+ /**
1303
+ * Generic pallet storage query
1304
+ **/
1305
+ [storage: string]: GenericStorageQuery;
1306
+ };
1307
+ /**
1308
+ * Pallet `Bounties`'s storage queries
1309
+ **/
1310
+ bounties: {
1311
+ /**
1312
+ * Number of bounty proposals that have been made.
1313
+ *
1314
+ * @param {Callback<number> =} callback
1315
+ **/
1316
+ bountyCount: GenericStorageQuery<() => number>;
1317
+ /**
1318
+ * Bounties that have been made.
1319
+ *
1320
+ * @param {number} arg
1321
+ * @param {Callback<PalletBountiesBounty | undefined> =} callback
1322
+ **/
1323
+ bounties: GenericStorageQuery<(arg: number) => PalletBountiesBounty | undefined>;
1324
+ /**
1325
+ * The description of each bounty.
1326
+ *
1327
+ * @param {number} arg
1328
+ * @param {Callback<Bytes | undefined> =} callback
1329
+ **/
1330
+ bountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1331
+ /**
1332
+ * Bounty indices that have been approved but not yet funded.
1333
+ *
1334
+ * @param {Callback<Array<number>> =} callback
1335
+ **/
1336
+ bountyApprovals: GenericStorageQuery<() => Array<number>>;
1337
+ /**
1338
+ * Generic pallet storage query
1339
+ **/
1340
+ [storage: string]: GenericStorageQuery;
1341
+ };
1342
+ /**
1343
+ * Pallet `ChildBounties`'s storage queries
1344
+ **/
1345
+ childBounties: {
1346
+ /**
1347
+ * Number of total child bounties.
1348
+ *
1349
+ * @param {Callback<number> =} callback
1350
+ **/
1351
+ childBountyCount: GenericStorageQuery<() => number>;
1352
+ /**
1353
+ * Number of child bounties per parent bounty.
1354
+ * Map of parent bounty index to number of child bounties.
1355
+ *
1356
+ * @param {number} arg
1357
+ * @param {Callback<number> =} callback
1358
+ **/
1359
+ parentChildBounties: GenericStorageQuery<(arg: number) => number>;
1360
+ /**
1361
+ * Child bounties that have been added.
1362
+ *
1363
+ * @param {[number, number]} arg
1364
+ * @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
1365
+ **/
1366
+ childBounties: GenericStorageQuery<(arg: [number, number]) => PalletChildBountiesChildBounty | undefined>;
1367
+ /**
1368
+ * The description of each child-bounty.
1369
+ *
1370
+ * @param {number} arg
1371
+ * @param {Callback<Bytes | undefined> =} callback
1372
+ **/
1373
+ childBountyDescriptions: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1374
+ /**
1375
+ * The cumulative child-bounty curator fee for each parent bounty.
1376
+ *
1377
+ * @param {number} arg
1378
+ * @param {Callback<bigint> =} callback
1379
+ **/
1380
+ childrenCuratorFees: GenericStorageQuery<(arg: number) => bigint>;
1381
+ /**
1382
+ * Generic pallet storage query
1383
+ **/
1384
+ [storage: string]: GenericStorageQuery;
1385
+ };
1386
+ /**
1387
+ * Pallet `ElectionProviderMultiPhase`'s storage queries
1388
+ **/
1389
+ electionProviderMultiPhase: {
1390
+ /**
1391
+ * Internal counter for the number of rounds.
1392
+ *
1393
+ * This is useful for de-duplication of transactions submitted to the pool, and general
1394
+ * diagnostics of the pallet.
1395
+ *
1396
+ * This is merely incremented once per every time that an upstream `elect` is called.
1397
+ *
1398
+ * @param {Callback<number> =} callback
1399
+ **/
1400
+ round: GenericStorageQuery<() => number>;
1401
+ /**
1402
+ * Current phase.
1403
+ *
1404
+ * @param {Callback<PalletElectionProviderMultiPhasePhase> =} callback
1405
+ **/
1406
+ currentPhase: GenericStorageQuery<() => PalletElectionProviderMultiPhasePhase>;
1407
+ /**
1408
+ * Current best solution, signed or unsigned, queued to be returned upon `elect`.
1409
+ *
1410
+ * Always sorted by score.
1411
+ *
1412
+ * @param {Callback<PalletElectionProviderMultiPhaseReadySolution | undefined> =} callback
1413
+ **/
1414
+ queuedSolution: GenericStorageQuery<() => PalletElectionProviderMultiPhaseReadySolution | undefined>;
1415
+ /**
1416
+ * Snapshot data of the round.
1417
+ *
1418
+ * This is created at the beginning of the signed phase and cleared upon calling `elect`.
1419
+ *
1420
+ * @param {Callback<PalletElectionProviderMultiPhaseRoundSnapshot | undefined> =} callback
1421
+ **/
1422
+ snapshot: GenericStorageQuery<() => PalletElectionProviderMultiPhaseRoundSnapshot | undefined>;
1423
+ /**
1424
+ * Desired number of targets to elect for this round.
1425
+ *
1426
+ * Only exists when [`Snapshot`] is present.
1427
+ *
1428
+ * @param {Callback<number | undefined> =} callback
1429
+ **/
1430
+ desiredTargets: GenericStorageQuery<() => number | undefined>;
1431
+ /**
1432
+ * The metadata of the [`RoundSnapshot`]
1433
+ *
1434
+ * Only exists when [`Snapshot`] is present.
1435
+ *
1436
+ * @param {Callback<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined> =} callback
1437
+ **/
1438
+ snapshotMetadata: GenericStorageQuery<() => PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined>;
1439
+ /**
1440
+ * The next index to be assigned to an incoming signed submission.
1441
+ *
1442
+ * Every accepted submission is assigned a unique index; that index is bound to that particular
1443
+ * submission for the duration of the election. On election finalization, the next index is
1444
+ * reset to 0.
1445
+ *
1446
+ * We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
1447
+ * capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
1448
+ * because iteration is slow. Instead, we store the value here.
1449
+ *
1450
+ * @param {Callback<number> =} callback
1451
+ **/
1452
+ signedSubmissionNextIndex: GenericStorageQuery<() => number>;
1453
+ /**
1454
+ * A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
1455
+ * value in `SignedSubmissions`.
1456
+ *
1457
+ * We never need to process more than a single signed submission at a time. Signed submissions
1458
+ * can be quite large, so we're willing to pay the cost of multiple database accesses to access
1459
+ * them one at a time instead of reading and decoding all of them at once.
1460
+ *
1461
+ * @param {Callback<Array<[SpNposElectionsElectionScore, number, number]>> =} callback
1462
+ **/
1463
+ signedSubmissionIndices: GenericStorageQuery<() => Array<[SpNposElectionsElectionScore, number, number]>>;
1464
+ /**
1465
+ * Unchecked, signed solutions.
1466
+ *
1467
+ * Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
1468
+ * allowing us to keep only a single one in memory at a time.
1469
+ *
1470
+ * Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
1471
+ * affect; we shouldn't need a cryptographically secure hasher.
1472
+ *
1473
+ * @param {number} arg
1474
+ * @param {Callback<PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined> =} callback
1475
+ **/
1476
+ signedSubmissionsMap: GenericStorageQuery<(arg: number) => PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined>;
1477
+ /**
1478
+ * The minimum score that each 'untrusted' solution must attain in order to be considered
1479
+ * feasible.
1480
+ *
1481
+ * Can be set via `set_minimum_untrusted_score`.
1482
+ *
1483
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
1484
+ **/
1485
+ minimumUntrustedScore: GenericStorageQuery<() => SpNposElectionsElectionScore | undefined>;
1486
+ /**
1487
+ * Generic pallet storage query
1488
+ **/
1489
+ [storage: string]: GenericStorageQuery;
1490
+ };
1491
+ /**
1492
+ * Pallet `VoterList`'s storage queries
1493
+ **/
1494
+ voterList: {
1495
+ /**
1496
+ * A single node, within some bag.
1497
+ *
1498
+ * Nodes store links forward and back within their respective bags.
1499
+ *
1500
+ * @param {AccountId32Like} arg
1501
+ * @param {Callback<PalletBagsListListNode | undefined> =} callback
1502
+ **/
1503
+ listNodes: GenericStorageQuery<(arg: AccountId32Like) => PalletBagsListListNode | undefined>;
1504
+ /**
1505
+ * Counter for the related counted storage map
1506
+ *
1507
+ * @param {Callback<number> =} callback
1508
+ **/
1509
+ counterForListNodes: GenericStorageQuery<() => number>;
1510
+ /**
1511
+ * A bag stored in storage.
1512
+ *
1513
+ * Stores a `Bag` struct, which stores head and tail pointers to itself.
1514
+ *
1515
+ * @param {bigint} arg
1516
+ * @param {Callback<PalletBagsListListBag | undefined> =} callback
1517
+ **/
1518
+ listBags: GenericStorageQuery<(arg: bigint) => PalletBagsListListBag | undefined>;
1519
+ /**
1520
+ * Generic pallet storage query
1521
+ **/
1522
+ [storage: string]: GenericStorageQuery;
1523
+ };
1524
+ /**
1525
+ * Pallet `NominationPools`'s storage queries
1526
+ **/
1527
+ nominationPools: {
1528
+ /**
1529
+ * The sum of funds across all pools.
1530
+ *
1531
+ * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
1532
+ * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
1533
+ * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
1534
+ *
1535
+ * @param {Callback<bigint> =} callback
1536
+ **/
1537
+ totalValueLocked: GenericStorageQuery<() => bigint>;
1538
+ /**
1539
+ * Minimum amount to bond to join a pool.
1540
+ *
1541
+ * @param {Callback<bigint> =} callback
1542
+ **/
1543
+ minJoinBond: GenericStorageQuery<() => bigint>;
1544
+ /**
1545
+ * Minimum bond required to create a pool.
1546
+ *
1547
+ * This is the amount that the depositor must put as their initial stake in the pool, as an
1548
+ * indication of "skin in the game".
1549
+ *
1550
+ * This is the value that will always exist in the staking ledger of the pool bonded account
1551
+ * while all other accounts leave.
1552
+ *
1553
+ * @param {Callback<bigint> =} callback
1554
+ **/
1555
+ minCreateBond: GenericStorageQuery<() => bigint>;
1556
+ /**
1557
+ * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
1558
+ * pools can exist.
1559
+ *
1560
+ * @param {Callback<number | undefined> =} callback
1561
+ **/
1562
+ maxPools: GenericStorageQuery<() => number | undefined>;
1563
+ /**
1564
+ * Maximum number of members that can exist in the system. If `None`, then the count
1565
+ * members are not bound on a system wide basis.
1566
+ *
1567
+ * @param {Callback<number | undefined> =} callback
1568
+ **/
1569
+ maxPoolMembers: GenericStorageQuery<() => number | undefined>;
1570
+ /**
1571
+ * Maximum number of members that may belong to pool. If `None`, then the count of
1572
+ * members is not bound on a per pool basis.
1573
+ *
1574
+ * @param {Callback<number | undefined> =} callback
1575
+ **/
1576
+ maxPoolMembersPerPool: GenericStorageQuery<() => number | undefined>;
1577
+ /**
1578
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
1579
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
1580
+ * `GlobalMaxCommission` is lower than some current pool commissions.
1581
+ *
1582
+ * @param {Callback<Perbill | undefined> =} callback
1583
+ **/
1584
+ globalMaxCommission: GenericStorageQuery<() => Perbill | undefined>;
1585
+ /**
1586
+ * Active members.
1587
+ *
1588
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1589
+ *
1590
+ * @param {AccountId32Like} arg
1591
+ * @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
1592
+ **/
1593
+ poolMembers: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined>;
1594
+ /**
1595
+ * Counter for the related counted storage map
1596
+ *
1597
+ * @param {Callback<number> =} callback
1598
+ **/
1599
+ counterForPoolMembers: GenericStorageQuery<() => number>;
1600
+ /**
1601
+ * Storage for bonded pools.
1602
+ *
1603
+ * @param {number} arg
1604
+ * @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
1605
+ **/
1606
+ bondedPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsBondedPoolInner | undefined>;
1607
+ /**
1608
+ * Counter for the related counted storage map
1609
+ *
1610
+ * @param {Callback<number> =} callback
1611
+ **/
1612
+ counterForBondedPools: GenericStorageQuery<() => number>;
1613
+ /**
1614
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
1615
+ * claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
1616
+ *
1617
+ * @param {number} arg
1618
+ * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
1619
+ **/
1620
+ rewardPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsRewardPool | undefined>;
1621
+ /**
1622
+ * Counter for the related counted storage map
1623
+ *
1624
+ * @param {Callback<number> =} callback
1625
+ **/
1626
+ counterForRewardPools: GenericStorageQuery<() => number>;
1627
+ /**
1628
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
1629
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
1630
+ *
1631
+ * @param {number} arg
1632
+ * @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
1633
+ **/
1634
+ subPoolsStorage: GenericStorageQuery<(arg: number) => PalletNominationPoolsSubPools | undefined>;
1635
+ /**
1636
+ * Counter for the related counted storage map
1637
+ *
1638
+ * @param {Callback<number> =} callback
1639
+ **/
1640
+ counterForSubPoolsStorage: GenericStorageQuery<() => number>;
1641
+ /**
1642
+ * Metadata for the pool.
1643
+ *
1644
+ * @param {number} arg
1645
+ * @param {Callback<Bytes> =} callback
1646
+ **/
1647
+ metadata: GenericStorageQuery<(arg: number) => Bytes>;
1648
+ /**
1649
+ * Counter for the related counted storage map
1650
+ *
1651
+ * @param {Callback<number> =} callback
1652
+ **/
1653
+ counterForMetadata: GenericStorageQuery<() => number>;
1654
+ /**
1655
+ * Ever increasing number of all pools created so far.
1656
+ *
1657
+ * @param {Callback<number> =} callback
1658
+ **/
1659
+ lastPoolId: GenericStorageQuery<() => number>;
1660
+ /**
1661
+ * A reverse lookup from the pool's account id to its id.
1662
+ *
1663
+ * This is only used for slashing. In all other instances, the pool id is used, and the
1664
+ * accounts are deterministically derived from it.
1665
+ *
1666
+ * @param {AccountId32Like} arg
1667
+ * @param {Callback<number | undefined> =} callback
1668
+ **/
1669
+ reversePoolIdLookup: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
1670
+ /**
1671
+ * Counter for the related counted storage map
1672
+ *
1673
+ * @param {Callback<number> =} callback
1674
+ **/
1675
+ counterForReversePoolIdLookup: GenericStorageQuery<() => number>;
1676
+ /**
1677
+ * Map from a pool member account to their opted claim permission.
1678
+ *
1679
+ * @param {AccountId32Like} arg
1680
+ * @param {Callback<PalletNominationPoolsClaimPermission> =} callback
1681
+ **/
1682
+ claimPermissions: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsClaimPermission>;
1683
+ /**
1684
+ * Generic pallet storage query
1685
+ **/
1686
+ [storage: string]: GenericStorageQuery;
1687
+ };
1688
+ /**
1689
+ * Pallet `FastUnstake`'s storage queries
1690
+ **/
1691
+ fastUnstake: {
1692
+ /**
1693
+ * The current "head of the queue" being unstaked.
1694
+ *
1695
+ * The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
1696
+ *
1697
+ * @param {Callback<PalletFastUnstakeUnstakeRequest | undefined> =} callback
1698
+ **/
1699
+ head: GenericStorageQuery<() => PalletFastUnstakeUnstakeRequest | undefined>;
1700
+ /**
1701
+ * The map of all accounts wishing to be unstaked.
1702
+ *
1703
+ * Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
1704
+ *
1705
+ * @param {AccountId32Like} arg
1706
+ * @param {Callback<bigint | undefined> =} callback
1707
+ **/
1708
+ queue: GenericStorageQuery<(arg: AccountId32Like) => bigint | undefined>;
1709
+ /**
1710
+ * Counter for the related counted storage map
1711
+ *
1712
+ * @param {Callback<number> =} callback
1713
+ **/
1714
+ counterForQueue: GenericStorageQuery<() => number>;
1715
+ /**
1716
+ * Number of eras to check per block.
1717
+ *
1718
+ * If set to 0, this pallet does absolutely nothing. Cannot be set to more than
1719
+ * [`Config::MaxErasToCheckPerBlock`].
1720
+ *
1721
+ * Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
1722
+ * checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
1723
+ * stored in [`Head`].
1724
+ *
1725
+ * @param {Callback<number> =} callback
1726
+ **/
1727
+ erasToCheckPerBlock: GenericStorageQuery<() => number>;
1728
+ /**
1729
+ * Generic pallet storage query
1730
+ **/
1731
+ [storage: string]: GenericStorageQuery;
1732
+ };
1733
+ /**
1734
+ * Pallet `Configuration`'s storage queries
1735
+ **/
1736
+ configuration: {
1737
+ /**
1738
+ * The active configuration for the current session.
1739
+ *
1740
+ * @param {Callback<PolkadotRuntimeParachainsConfigurationHostConfiguration> =} callback
1741
+ **/
1742
+ activeConfig: GenericStorageQuery<() => PolkadotRuntimeParachainsConfigurationHostConfiguration>;
1743
+ /**
1744
+ * Pending configuration changes.
1745
+ *
1746
+ * This is a list of configuration changes, each with a session index at which it should
1747
+ * be applied.
1748
+ *
1749
+ * The list is sorted ascending by session index. Also, this list can only contain at most
1750
+ * 2 items: for the next session and for the `scheduled_session`.
1751
+ *
1752
+ * @param {Callback<Array<[number, PolkadotRuntimeParachainsConfigurationHostConfiguration]>> =} callback
1753
+ **/
1754
+ pendingConfigs: GenericStorageQuery<() => Array<[number, PolkadotRuntimeParachainsConfigurationHostConfiguration]>>;
1755
+ /**
1756
+ * If this is set, then the configuration setters will bypass the consistency checks. This
1757
+ * is meant to be used only as the last resort.
1758
+ *
1759
+ * @param {Callback<boolean> =} callback
1760
+ **/
1761
+ bypassConsistencyCheck: GenericStorageQuery<() => boolean>;
1762
+ /**
1763
+ * Generic pallet storage query
1764
+ **/
1765
+ [storage: string]: GenericStorageQuery;
1766
+ };
1767
+ /**
1768
+ * Pallet `ParasShared`'s storage queries
1769
+ **/
1770
+ parasShared: {
1771
+ /**
1772
+ * The current session index.
1773
+ *
1774
+ * @param {Callback<number> =} callback
1775
+ **/
1776
+ currentSessionIndex: GenericStorageQuery<() => number>;
1777
+ /**
1778
+ * All the validators actively participating in parachain consensus.
1779
+ * Indices are into the broader validator set.
1780
+ *
1781
+ * @param {Callback<Array<PolkadotPrimitivesV6ValidatorIndex>> =} callback
1782
+ **/
1783
+ activeValidatorIndices: GenericStorageQuery<() => Array<PolkadotPrimitivesV6ValidatorIndex>>;
1784
+ /**
1785
+ * The parachain attestation keys of the validators actively participating in parachain
1786
+ * consensus. This should be the same length as `ActiveValidatorIndices`.
1787
+ *
1788
+ * @param {Callback<Array<PolkadotPrimitivesV6ValidatorAppPublic>> =} callback
1789
+ **/
1790
+ activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV6ValidatorAppPublic>>;
1791
+ /**
1792
+ * All allowed relay-parents.
1793
+ *
1794
+ * @param {Callback<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker> =} callback
1795
+ **/
1796
+ allowedRelayParents: GenericStorageQuery<() => PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>;
1797
+ /**
1798
+ * Generic pallet storage query
1799
+ **/
1800
+ [storage: string]: GenericStorageQuery;
1801
+ };
1802
+ /**
1803
+ * Pallet `ParaInclusion`'s storage queries
1804
+ **/
1805
+ paraInclusion: {
1806
+ /**
1807
+ * The latest bitfield for each validator, referred to by their index in the validator set.
1808
+ *
1809
+ * @param {PolkadotPrimitivesV6ValidatorIndex} arg
1810
+ * @param {Callback<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord | undefined> =} callback
1811
+ **/
1812
+ availabilityBitfields: GenericStorageQuery<(arg: PolkadotPrimitivesV6ValidatorIndex) => PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord | undefined>;
1813
+ /**
1814
+ * Candidates pending availability by `ParaId`.
1815
+ *
1816
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1817
+ * @param {Callback<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability | undefined> =} callback
1818
+ **/
1819
+ pendingAvailability: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsInclusionCandidatePendingAvailability | undefined>;
1820
+ /**
1821
+ * The commitments of candidates pending availability, by `ParaId`.
1822
+ *
1823
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1824
+ * @param {Callback<PolkadotPrimitivesV6CandidateCommitments | undefined> =} callback
1825
+ **/
1826
+ pendingAvailabilityCommitments: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6CandidateCommitments | undefined>;
1827
+ /**
1828
+ * Generic pallet storage query
1829
+ **/
1830
+ [storage: string]: GenericStorageQuery;
1831
+ };
1832
+ /**
1833
+ * Pallet `ParaInherent`'s storage queries
1834
+ **/
1835
+ paraInherent: {
1836
+ /**
1837
+ * Whether the paras inherent was included within this block.
1838
+ *
1839
+ * The `Option<()>` is effectively a `bool`, but it never hits storage in the `None` variant
1840
+ * due to the guarantees of FRAME's storage APIs.
1841
+ *
1842
+ * If this is `None` at the end of the block, we panic and render the block invalid.
1843
+ *
1844
+ * @param {Callback<[] | undefined> =} callback
1845
+ **/
1846
+ included: GenericStorageQuery<() => [] | undefined>;
1847
+ /**
1848
+ * Scraped on chain data for extracting resolved disputes as well as backing votes.
1849
+ *
1850
+ * @param {Callback<PolkadotPrimitivesV6ScrapedOnChainVotes | undefined> =} callback
1851
+ **/
1852
+ onChainVotes: GenericStorageQuery<() => PolkadotPrimitivesV6ScrapedOnChainVotes | undefined>;
1853
+ /**
1854
+ * Generic pallet storage query
1855
+ **/
1856
+ [storage: string]: GenericStorageQuery;
1857
+ };
1858
+ /**
1859
+ * Pallet `ParaScheduler`'s storage queries
1860
+ **/
1861
+ paraScheduler: {
1862
+ /**
1863
+ * All the validator groups. One for each core. Indices are into `ActiveValidators` - not the
1864
+ * broader set of Polkadot validators, but instead just the subset used for parachains during
1865
+ * this session.
1866
+ *
1867
+ * Bound: The number of cores is the sum of the numbers of parachains and parathread
1868
+ * multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
1869
+ * upper bound at 10k.
1870
+ *
1871
+ * @param {Callback<Array<Array<PolkadotPrimitivesV6ValidatorIndex>>> =} callback
1872
+ **/
1873
+ validatorGroups: GenericStorageQuery<() => Array<Array<PolkadotPrimitivesV6ValidatorIndex>>>;
1874
+ /**
1875
+ * One entry for each availability core. Entries are `None` if the core is not currently
1876
+ * occupied. Can be temporarily `Some` if scheduled but not occupied.
1877
+ * The i'th parachain belongs to the i'th core, with the remaining cores all being
1878
+ * parathread-multiplexers.
1879
+ *
1880
+ * Bounded by the maximum of either of these two values:
1881
+ * * The number of parachains and parathread multiplexers
1882
+ * * The number of validators divided by `configuration.max_validators_per_core`.
1883
+ *
1884
+ * @param {Callback<Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>> =} callback
1885
+ **/
1886
+ availabilityCores: GenericStorageQuery<() => Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>;
1887
+ /**
1888
+ * The block number where the session start occurred. Used to track how many group rotations
1889
+ * have occurred.
1890
+ *
1891
+ * Note that in the context of parachains modules the session change is signaled during
1892
+ * the block and enacted at the end of the block (at the finalization stage, to be exact).
1893
+ * Thus for all intents and purposes the effect of the session change is observed at the
1894
+ * block following the session change, block number of which we save in this storage value.
1895
+ *
1896
+ * @param {Callback<number> =} callback
1897
+ **/
1898
+ sessionStartBlock: GenericStorageQuery<() => number>;
1899
+ /**
1900
+ * One entry for each availability core. The `VecDeque` represents the assignments to be
1901
+ * scheduled on that core. `None` is used to signal to not schedule the next para of the core
1902
+ * as there is one currently being scheduled. Not using `None` here would overwrite the
1903
+ * `CoreState` in the runtime API. The value contained here will not be valid after the end of
1904
+ * a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
1905
+ *
1906
+ * @param {Callback<Array<[PolkadotPrimitivesV6CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry | undefined>]>> =} callback
1907
+ **/
1908
+ claimQueue: GenericStorageQuery<() => Array<[
1909
+ PolkadotPrimitivesV6CoreIndex,
1910
+ Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry | undefined>
1911
+ ]>>;
1912
+ /**
1913
+ * Generic pallet storage query
1914
+ **/
1915
+ [storage: string]: GenericStorageQuery;
1916
+ };
1917
+ /**
1918
+ * Pallet `Paras`'s storage queries
1919
+ **/
1920
+ paras: {
1921
+ /**
1922
+ * All currently active PVF pre-checking votes.
1923
+ *
1924
+ * Invariant:
1925
+ * - There are no PVF pre-checking votes that exists in list but not in the set and vice versa.
1926
+ *
1927
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
1928
+ * @param {Callback<PolkadotRuntimeParachainsParasPvfCheckActiveVoteState | undefined> =} callback
1929
+ **/
1930
+ pvfActiveVoteMap: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash) => PolkadotRuntimeParachainsParasPvfCheckActiveVoteState | undefined>;
1931
+ /**
1932
+ * The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`.
1933
+ *
1934
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>> =} callback
1935
+ **/
1936
+ pvfActiveVoteList: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>>;
1937
+ /**
1938
+ * All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not
1939
+ * included.
1940
+ *
1941
+ * Consider using the [`ParachainsCache`] type of modifying.
1942
+ *
1943
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
1944
+ **/
1945
+ parachains: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesId>>;
1946
+ /**
1947
+ * The current lifecycle of a all known Para IDs.
1948
+ *
1949
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1950
+ * @param {Callback<PolkadotRuntimeParachainsParasParaLifecycle | undefined> =} callback
1951
+ **/
1952
+ paraLifecycles: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaLifecycle | undefined>;
1953
+ /**
1954
+ * The head-data of every registered para.
1955
+ *
1956
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1957
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesHeadData | undefined> =} callback
1958
+ **/
1959
+ heads: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesHeadData | undefined>;
1960
+ /**
1961
+ * The context (relay-chain block number) of the most recent parachain head.
1962
+ *
1963
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1964
+ * @param {Callback<number | undefined> =} callback
1965
+ **/
1966
+ mostRecentContext: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined>;
1967
+ /**
1968
+ * The validation code hash of every live para.
1969
+ *
1970
+ * Corresponding code can be retrieved with [`CodeByHash`].
1971
+ *
1972
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1973
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
1974
+ **/
1975
+ currentCodeHash: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>;
1976
+ /**
1977
+ * Actual past code hash, indicated by the para id as well as the block number at which it
1978
+ * became outdated.
1979
+ *
1980
+ * Corresponding code can be retrieved with [`CodeByHash`].
1981
+ *
1982
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1983
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
1984
+ **/
1985
+ pastCodeHash: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>;
1986
+ /**
1987
+ * Past code of parachains. The parachains themselves may not be registered anymore,
1988
+ * but we also keep their code on-chain for the same amount of time as outdated code
1989
+ * to keep it available for approval checkers.
1990
+ *
1991
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1992
+ * @param {Callback<PolkadotRuntimeParachainsParasParaPastCodeMeta> =} callback
1993
+ **/
1994
+ pastCodeMeta: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaPastCodeMeta>;
1995
+ /**
1996
+ * Which paras have past code that needs pruning and the relay-chain block at which the code
1997
+ * was replaced. Note that this is the actual height of the included block, not the expected
1998
+ * height at which the code upgrade would be applied, although they may be equal.
1999
+ * This is to ensure the entire acceptance period is covered, not an offset acceptance period
2000
+ * starting from the time at which the parachain perceives a code upgrade as having occurred.
2001
+ * Multiple entries for a single para are permitted. Ordered ascending by block number.
2002
+ *
2003
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2004
+ **/
2005
+ pastCodePruning: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2006
+ /**
2007
+ * The block number at which the planned code change is expected for a para.
2008
+ * The change will be applied after the first parablock for this ID included which executes
2009
+ * in the context of a relay chain block with a number >= `expected_at`.
2010
+ *
2011
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2012
+ * @param {Callback<number | undefined> =} callback
2013
+ **/
2014
+ futureCodeUpgrades: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined>;
2015
+ /**
2016
+ * The actual future code hash of a para.
2017
+ *
2018
+ * Corresponding code can be retrieved with [`CodeByHash`].
2019
+ *
2020
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2021
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
2022
+ **/
2023
+ futureCodeHash: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>;
2024
+ /**
2025
+ * This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
2026
+ * procedure.
2027
+ *
2028
+ * This value is absent when there are no upgrades scheduled or during the time the relay chain
2029
+ * performs the checks. It is set at the first relay-chain block when the corresponding
2030
+ * parachain can switch its upgrade function. As soon as the parachain's block is included, the
2031
+ * value gets reset to `None`.
2032
+ *
2033
+ * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
2034
+ * the format will require migration of parachains.
2035
+ *
2036
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2037
+ * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
2038
+ **/
2039
+ upgradeGoAheadSignal: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
2040
+ /**
2041
+ * This is used by the relay-chain to communicate that there are restrictions for performing
2042
+ * an upgrade for this parachain.
2043
+ *
2044
+ * This may be a because the parachain waits for the upgrade cooldown to expire. Another
2045
+ * potential use case is when we want to perform some maintenance (such as storage migration)
2046
+ * we could restrict upgrades to make the process simpler.
2047
+ *
2048
+ * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
2049
+ * the format will require migration of parachains.
2050
+ *
2051
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2052
+ * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
2053
+ **/
2054
+ upgradeRestrictionSignal: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
2055
+ /**
2056
+ * The list of parachains that are awaiting for their upgrade restriction to cooldown.
2057
+ *
2058
+ * Ordered ascending by block number.
2059
+ *
2060
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2061
+ **/
2062
+ upgradeCooldowns: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2063
+ /**
2064
+ * The list of upcoming code upgrades. Each item is a pair of which para performs a code
2065
+ * upgrade and at which relay-chain block it is expected at.
2066
+ *
2067
+ * Ordered ascending by block number.
2068
+ *
2069
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
2070
+ **/
2071
+ upcomingUpgrades: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
2072
+ /**
2073
+ * The actions to perform during the start of a specific session index.
2074
+ *
2075
+ * @param {number} arg
2076
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2077
+ **/
2078
+ actionsQueue: GenericStorageQuery<(arg: number) => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2079
+ /**
2080
+ * Upcoming paras instantiation arguments.
2081
+ *
2082
+ * NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set
2083
+ * to empty. Instead, the code will be saved into the storage right away via `CodeByHash`.
2084
+ *
2085
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2086
+ * @param {Callback<PolkadotRuntimeParachainsParasParaGenesisArgs | undefined> =} callback
2087
+ **/
2088
+ upcomingParasGenesis: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaGenesisArgs | undefined>;
2089
+ /**
2090
+ * The number of reference on the validation code in [`CodeByHash`] storage.
2091
+ *
2092
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
2093
+ * @param {Callback<number> =} callback
2094
+ **/
2095
+ codeByHashRefs: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash) => number>;
2096
+ /**
2097
+ * Validation code stored by its hash.
2098
+ *
2099
+ * This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and
2100
+ * [`PastCodeHash`].
2101
+ *
2102
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
2103
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined> =} callback
2104
+ **/
2105
+ codeByHash: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash) => PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>;
2106
+ /**
2107
+ * Generic pallet storage query
2108
+ **/
2109
+ [storage: string]: GenericStorageQuery;
2110
+ };
2111
+ /**
2112
+ * Pallet `Initializer`'s storage queries
2113
+ **/
2114
+ initializer: {
2115
+ /**
2116
+ * Whether the parachains modules have been initialized within this block.
2117
+ *
2118
+ * Semantically a `bool`, but this guarantees it should never hit the trie,
2119
+ * as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values.
2120
+ *
2121
+ * As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one
2122
+ * of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable
2123
+ * for the semantics of this variable.
2124
+ *
2125
+ * @param {Callback<[] | undefined> =} callback
2126
+ **/
2127
+ hasInitialized: GenericStorageQuery<() => [] | undefined>;
2128
+ /**
2129
+ * Buffered session changes along with the block number at which they should be applied.
2130
+ *
2131
+ * Typically this will be empty or one element long. Apart from that this item never hits
2132
+ * the storage.
2133
+ *
2134
+ * However this is a `Vec` regardless to handle various edge cases that may occur at runtime
2135
+ * upgrade boundaries or if governance intervenes.
2136
+ *
2137
+ * @param {Callback<Array<PolkadotRuntimeParachainsInitializerBufferedSessionChange>> =} callback
2138
+ **/
2139
+ bufferedSessionChanges: GenericStorageQuery<() => Array<PolkadotRuntimeParachainsInitializerBufferedSessionChange>>;
2140
+ /**
2141
+ * Generic pallet storage query
2142
+ **/
2143
+ [storage: string]: GenericStorageQuery;
2144
+ };
2145
+ /**
2146
+ * Pallet `Dmp`'s storage queries
2147
+ **/
2148
+ dmp: {
2149
+ /**
2150
+ * The downward messages addressed for a certain para.
2151
+ *
2152
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2153
+ * @param {Callback<Array<PolkadotCorePrimitivesInboundDownwardMessage>> =} callback
2154
+ **/
2155
+ downwardMessageQueues: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotCorePrimitivesInboundDownwardMessage>>;
2156
+ /**
2157
+ * A mapping that stores the downward message queue MQC head for each para.
2158
+ *
2159
+ * Each link in this chain has a form:
2160
+ * `(prev_head, B, H(M))`, where
2161
+ * - `prev_head`: is the previous head hash or zero if none.
2162
+ * - `B`: is the relay-chain block number in which a message was appended.
2163
+ * - `H(M)`: is the hash of the message being appended.
2164
+ *
2165
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2166
+ * @param {Callback<H256> =} callback
2167
+ **/
2168
+ downwardMessageQueueHeads: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => H256>;
2169
+ /**
2170
+ * The factor to multiply the base delivery fee by.
2171
+ *
2172
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2173
+ * @param {Callback<FixedU128> =} callback
2174
+ **/
2175
+ deliveryFeeFactor: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128>;
2176
+ /**
2177
+ * Generic pallet storage query
2178
+ **/
2179
+ [storage: string]: GenericStorageQuery;
2180
+ };
2181
+ /**
2182
+ * Pallet `Hrmp`'s storage queries
2183
+ **/
2184
+ hrmp: {
2185
+ /**
2186
+ * The set of pending HRMP open channel requests.
2187
+ *
2188
+ * The set is accompanied by a list for iteration.
2189
+ *
2190
+ * Invariant:
2191
+ * - There are no channels that exists in list but not in the set and vice versa.
2192
+ *
2193
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2194
+ * @param {Callback<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest | undefined> =} callback
2195
+ **/
2196
+ hrmpOpenChannelRequests: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest | undefined>;
2197
+ /**
2198
+ *
2199
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>> =} callback
2200
+ **/
2201
+ hrmpOpenChannelRequestsList: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>;
2202
+ /**
2203
+ * This mapping tracks how many open channel requests are initiated by a given sender para.
2204
+ * Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
2205
+ * `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
2206
+ *
2207
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2208
+ * @param {Callback<number> =} callback
2209
+ **/
2210
+ hrmpOpenChannelRequestCount: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number>;
2211
+ /**
2212
+ * This mapping tracks how many open channel requests were accepted by a given recipient para.
2213
+ * Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with
2214
+ * `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`.
2215
+ *
2216
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2217
+ * @param {Callback<number> =} callback
2218
+ **/
2219
+ hrmpAcceptedChannelRequestCount: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number>;
2220
+ /**
2221
+ * A set of pending HRMP close channel requests that are going to be closed during the session
2222
+ * change. Used for checking if a given channel is registered for closure.
2223
+ *
2224
+ * The set is accompanied by a list for iteration.
2225
+ *
2226
+ * Invariant:
2227
+ * - There are no channels that exists in list but not in the set and vice versa.
2228
+ *
2229
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2230
+ * @param {Callback<[] | undefined> =} callback
2231
+ **/
2232
+ hrmpCloseChannelRequests: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => [] | undefined>;
2233
+ /**
2234
+ *
2235
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>> =} callback
2236
+ **/
2237
+ hrmpCloseChannelRequestsList: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>;
2238
+ /**
2239
+ * The HRMP watermark associated with each para.
2240
+ * Invariant:
2241
+ * - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a
2242
+ * session.
2243
+ *
2244
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2245
+ * @param {Callback<number | undefined> =} callback
2246
+ **/
2247
+ hrmpWatermarks: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined>;
2248
+ /**
2249
+ * HRMP channel data associated with each para.
2250
+ * Invariant:
2251
+ * - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
2252
+ *
2253
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2254
+ * @param {Callback<PolkadotRuntimeParachainsHrmpHrmpChannel | undefined> =} callback
2255
+ **/
2256
+ hrmpChannels: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => PolkadotRuntimeParachainsHrmpHrmpChannel | undefined>;
2257
+ /**
2258
+ * Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
2259
+ * I.e.
2260
+ *
2261
+ * (a) ingress index allows to find all the senders for a given recipient.
2262
+ * (b) egress index allows to find all the recipients for a given sender.
2263
+ *
2264
+ * Invariants:
2265
+ * - for each ingress index entry for `P` each item `I` in the index should present in
2266
+ * `HrmpChannels` as `(I, P)`.
2267
+ * - for each egress index entry for `P` each item `E` in the index should present in
2268
+ * `HrmpChannels` as `(P, E)`.
2269
+ * - there should be no other dangling channels in `HrmpChannels`.
2270
+ * - the vectors are sorted.
2271
+ *
2272
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2273
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2274
+ **/
2275
+ hrmpIngressChannelsIndex: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2276
+ /**
2277
+ *
2278
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2279
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2280
+ **/
2281
+ hrmpEgressChannelsIndex: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2282
+ /**
2283
+ * Storage for the messages for each channel.
2284
+ * Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
2285
+ *
2286
+ * @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
2287
+ * @param {Callback<Array<PolkadotCorePrimitivesInboundHrmpMessage>> =} callback
2288
+ **/
2289
+ hrmpChannelContents: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => Array<PolkadotCorePrimitivesInboundHrmpMessage>>;
2290
+ /**
2291
+ * Maintains a mapping that can be used to answer the question: What paras sent a message at
2292
+ * the given block number for a given receiver. Invariants:
2293
+ * - The inner `Vec<ParaId>` is never empty.
2294
+ * - The inner `Vec<ParaId>` cannot store two same `ParaId`.
2295
+ * - The outer vector is sorted ascending by block number and cannot store two items with the
2296
+ * same block number.
2297
+ *
2298
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2299
+ * @param {Callback<Array<[number, Array<PolkadotParachainPrimitivesPrimitivesId>]>> =} callback
2300
+ **/
2301
+ hrmpChannelDigests: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<[number, Array<PolkadotParachainPrimitivesPrimitivesId>]>>;
2302
+ /**
2303
+ * Generic pallet storage query
2304
+ **/
2305
+ [storage: string]: GenericStorageQuery;
2306
+ };
2307
+ /**
2308
+ * Pallet `ParaSessionInfo`'s storage queries
2309
+ **/
2310
+ paraSessionInfo: {
2311
+ /**
2312
+ * Assignment keys for the current session.
2313
+ * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
2314
+ * When in doubt, use `Sessions` API instead.
2315
+ *
2316
+ * @param {Callback<Array<PolkadotPrimitivesV6AssignmentAppPublic>> =} callback
2317
+ **/
2318
+ assignmentKeysUnsafe: GenericStorageQuery<() => Array<PolkadotPrimitivesV6AssignmentAppPublic>>;
2319
+ /**
2320
+ * The earliest session for which previous session info is stored.
2321
+ *
2322
+ * @param {Callback<number> =} callback
2323
+ **/
2324
+ earliestStoredSession: GenericStorageQuery<() => number>;
2325
+ /**
2326
+ * Session information in a rolling window.
2327
+ * Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
2328
+ * Does not have any entries before the session index in the first session change notification.
2329
+ *
2330
+ * @param {number} arg
2331
+ * @param {Callback<PolkadotPrimitivesV6SessionInfo | undefined> =} callback
2332
+ **/
2333
+ sessions: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV6SessionInfo | undefined>;
2334
+ /**
2335
+ * The validator account keys of the validators actively participating in parachain consensus.
2336
+ *
2337
+ * @param {number} arg
2338
+ * @param {Callback<Array<AccountId32> | undefined> =} callback
2339
+ **/
2340
+ accountKeys: GenericStorageQuery<(arg: number) => Array<AccountId32> | undefined>;
2341
+ /**
2342
+ * Executor parameter set for a given session index
2343
+ *
2344
+ * @param {number} arg
2345
+ * @param {Callback<PolkadotPrimitivesV6ExecutorParams | undefined> =} callback
2346
+ **/
2347
+ sessionExecutorParams: GenericStorageQuery<(arg: number) => PolkadotPrimitivesV6ExecutorParams | undefined>;
2348
+ /**
2349
+ * Generic pallet storage query
2350
+ **/
2351
+ [storage: string]: GenericStorageQuery;
2352
+ };
2353
+ /**
2354
+ * Pallet `ParasDisputes`'s storage queries
2355
+ **/
2356
+ parasDisputes: {
2357
+ /**
2358
+ * The last pruned session, if any. All data stored by this module
2359
+ * references sessions.
2360
+ *
2361
+ * @param {Callback<number | undefined> =} callback
2362
+ **/
2363
+ lastPrunedSession: GenericStorageQuery<() => number | undefined>;
2364
+ /**
2365
+ * All ongoing or concluded disputes for the last several sessions.
2366
+ *
2367
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2368
+ * @param {Callback<PolkadotPrimitivesV6DisputeState | undefined> =} callback
2369
+ **/
2370
+ disputes: GenericStorageQuery<(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV6DisputeState | undefined>;
2371
+ /**
2372
+ * Backing votes stored for each dispute.
2373
+ * This storage is used for slashing.
2374
+ *
2375
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2376
+ * @param {Callback<Array<PolkadotPrimitivesV6ValidatorIndex> | undefined> =} callback
2377
+ **/
2378
+ backersOnDisputes: GenericStorageQuery<(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV6ValidatorIndex> | undefined>;
2379
+ /**
2380
+ * All included blocks on the chain, as well as the block number in this chain that
2381
+ * should be reverted back to if the candidate is disputed and determined to be invalid.
2382
+ *
2383
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2384
+ * @param {Callback<number | undefined> =} callback
2385
+ **/
2386
+ included: GenericStorageQuery<(arg: [number, PolkadotCorePrimitivesCandidateHash]) => number | undefined>;
2387
+ /**
2388
+ * Whether the chain is frozen. Starts as `None`. When this is `Some`,
2389
+ * the chain will not accept any new parachain blocks for backing or inclusion,
2390
+ * and its value indicates the last valid block number in the chain.
2391
+ * It can only be set back to `None` by governance intervention.
2392
+ *
2393
+ * @param {Callback<number | undefined> =} callback
2394
+ **/
2395
+ frozen: GenericStorageQuery<() => number | undefined>;
2396
+ /**
2397
+ * Generic pallet storage query
2398
+ **/
2399
+ [storage: string]: GenericStorageQuery;
2400
+ };
2401
+ /**
2402
+ * Pallet `ParasSlashing`'s storage queries
2403
+ **/
2404
+ parasSlashing: {
2405
+ /**
2406
+ * Validators pending dispute slashes.
2407
+ *
2408
+ * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
2409
+ * @param {Callback<PolkadotPrimitivesV6SlashingPendingSlashes | undefined> =} callback
2410
+ **/
2411
+ unappliedSlashes: GenericStorageQuery<(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV6SlashingPendingSlashes | undefined>;
2412
+ /**
2413
+ * `ValidatorSetCount` per session.
2414
+ *
2415
+ * @param {number} arg
2416
+ * @param {Callback<number | undefined> =} callback
2417
+ **/
2418
+ validatorSetCounts: GenericStorageQuery<(arg: number) => number | undefined>;
2419
+ /**
2420
+ * Generic pallet storage query
2421
+ **/
2422
+ [storage: string]: GenericStorageQuery;
2423
+ };
2424
+ /**
2425
+ * Pallet `Registrar`'s storage queries
2426
+ **/
2427
+ registrar: {
2428
+ /**
2429
+ * Pending swap operations.
2430
+ *
2431
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2432
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId | undefined> =} callback
2433
+ **/
2434
+ pendingSwap: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesId | undefined>;
2435
+ /**
2436
+ * Amount held on deposit for each para and the original depositor.
2437
+ *
2438
+ * The given account ID is responsible for registering the code and initial head data, but may
2439
+ * only do so if it isn't yet registered. (After that, it's up to governance to do so.)
2440
+ *
2441
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2442
+ * @param {Callback<PolkadotRuntimeCommonParasRegistrarParaInfo | undefined> =} callback
2443
+ **/
2444
+ paras: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeCommonParasRegistrarParaInfo | undefined>;
2445
+ /**
2446
+ * The next free `ParaId`.
2447
+ *
2448
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
2449
+ **/
2450
+ nextFreeParaId: GenericStorageQuery<() => PolkadotParachainPrimitivesPrimitivesId>;
2451
+ /**
2452
+ * Generic pallet storage query
2453
+ **/
2454
+ [storage: string]: GenericStorageQuery;
2455
+ };
2456
+ /**
2457
+ * Pallet `Slots`'s storage queries
2458
+ **/
2459
+ slots: {
2460
+ /**
2461
+ * Amounts held on deposit for each (possibly future) leased parachain.
2462
+ *
2463
+ * The actual amount locked on its behalf by any account at any time is the maximum of the
2464
+ * second values of the items in this list whose first value is the account.
2465
+ *
2466
+ * The first item in the list is the amount locked for the current Lease Period. Following
2467
+ * items are for the subsequent lease periods.
2468
+ *
2469
+ * The default value (an empty list) implies that the parachain no longer exists (or never
2470
+ * existed) as far as this pallet is concerned.
2471
+ *
2472
+ * If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it
2473
+ * will be left-padded with one or more `None`s to denote the fact that nothing is held on
2474
+ * deposit for the non-existent chain currently, but is held at some point in the future.
2475
+ *
2476
+ * It is illegal for a `None` value to trail in the list.
2477
+ *
2478
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2479
+ * @param {Callback<Array<[AccountId32, bigint] | undefined>> =} callback
2480
+ **/
2481
+ leases: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<[AccountId32, bigint] | undefined>>;
2482
+ /**
2483
+ * Generic pallet storage query
2484
+ **/
2485
+ [storage: string]: GenericStorageQuery;
2486
+ };
2487
+ /**
2488
+ * Pallet `Auctions`'s storage queries
2489
+ **/
2490
+ auctions: {
2491
+ /**
2492
+ * Number of auctions started so far.
2493
+ *
2494
+ * @param {Callback<number> =} callback
2495
+ **/
2496
+ auctionCounter: GenericStorageQuery<() => number>;
2497
+ /**
2498
+ * Information relating to the current auction, if there is one.
2499
+ *
2500
+ * The first item in the tuple is the lease period index that the first of the four
2501
+ * contiguous lease periods on auction is for. The second is the block number when the
2502
+ * auction will "begin to end", i.e. the first block of the Ending Period of the auction.
2503
+ *
2504
+ * @param {Callback<[number, number] | undefined> =} callback
2505
+ **/
2506
+ auctionInfo: GenericStorageQuery<() => [number, number] | undefined>;
2507
+ /**
2508
+ * Amounts currently reserved in the accounts of the bidders currently winning
2509
+ * (sub-)ranges.
2510
+ *
2511
+ * @param {[AccountId32Like, PolkadotParachainPrimitivesPrimitivesId]} arg
2512
+ * @param {Callback<bigint | undefined> =} callback
2513
+ **/
2514
+ reservedAmounts: GenericStorageQuery<(arg: [AccountId32Like, PolkadotParachainPrimitivesPrimitivesId]) => bigint | undefined>;
2515
+ /**
2516
+ * The winning bids for each of the 10 ranges at each sample in the final Ending Period of
2517
+ * the current auction. The map's key is the 0-based index into the Sample Size. The
2518
+ * first sample of the ending period is 0; the last is `Sample Size - 1`.
2519
+ *
2520
+ * @param {number} arg
2521
+ * @param {Callback<FixedArray<[AccountId32, PolkadotParachainPrimitivesPrimitivesId, bigint] | undefined, 36> | undefined> =} callback
2522
+ **/
2523
+ winning: GenericStorageQuery<(arg: number) => FixedArray<[AccountId32, PolkadotParachainPrimitivesPrimitivesId, bigint] | undefined, 36> | undefined>;
2524
+ /**
2525
+ * Generic pallet storage query
2526
+ **/
2527
+ [storage: string]: GenericStorageQuery;
2528
+ };
2529
+ /**
2530
+ * Pallet `Crowdloan`'s storage queries
2531
+ **/
2532
+ crowdloan: {
2533
+ /**
2534
+ * Info on all of the funds.
2535
+ *
2536
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2537
+ * @param {Callback<PolkadotRuntimeCommonCrowdloanFundInfo | undefined> =} callback
2538
+ **/
2539
+ funds: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeCommonCrowdloanFundInfo | undefined>;
2540
+ /**
2541
+ * The funds that have had additional contributions during the last block. This is used
2542
+ * in order to determine which funds should submit new or updated bids.
2543
+ *
2544
+ * @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
2545
+ **/
2546
+ newRaise: GenericStorageQuery<() => Array<PolkadotParachainPrimitivesPrimitivesId>>;
2547
+ /**
2548
+ * The number of auctions that have entered into their ending period so far.
2549
+ *
2550
+ * @param {Callback<number> =} callback
2551
+ **/
2552
+ endingsCount: GenericStorageQuery<() => number>;
2553
+ /**
2554
+ * Tracker for the next available fund index
2555
+ *
2556
+ * @param {Callback<number> =} callback
2557
+ **/
2558
+ nextFundIndex: GenericStorageQuery<() => number>;
2559
+ /**
2560
+ * Generic pallet storage query
2561
+ **/
2562
+ [storage: string]: GenericStorageQuery;
2563
+ };
2564
+ /**
2565
+ * Pallet `XcmPallet`'s storage queries
2566
+ **/
2567
+ xcmPallet: {
2568
+ /**
2569
+ * The latest available query index.
2570
+ *
2571
+ * @param {Callback<bigint> =} callback
2572
+ **/
2573
+ queryCounter: GenericStorageQuery<() => bigint>;
2574
+ /**
2575
+ * The ongoing queries.
2576
+ *
2577
+ * @param {bigint} arg
2578
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
2579
+ **/
2580
+ queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
2581
+ /**
2582
+ * The existing asset traps.
2583
+ *
2584
+ * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
2585
+ * times this pair has been trapped (usually just 1 if it exists at all).
2586
+ *
2587
+ * @param {H256} arg
2588
+ * @param {Callback<number> =} callback
2589
+ **/
2590
+ assetTraps: GenericStorageQuery<(arg: H256) => number>;
2591
+ /**
2592
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
2593
+ * then the destinations whose XCM version is unknown are considered unreachable.
2594
+ *
2595
+ * @param {Callback<number | undefined> =} callback
2596
+ **/
2597
+ safeXcmVersion: GenericStorageQuery<() => number | undefined>;
2598
+ /**
2599
+ * The Latest versions that we know various locations support.
2600
+ *
2601
+ * @param {[number, XcmVersionedMultiLocation]} arg
2602
+ * @param {Callback<number | undefined> =} callback
2603
+ **/
2604
+ supportedVersion: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => number | undefined>;
2605
+ /**
2606
+ * All locations that we have requested version notifications from.
2607
+ *
2608
+ * @param {[number, XcmVersionedMultiLocation]} arg
2609
+ * @param {Callback<bigint | undefined> =} callback
2610
+ **/
2611
+ versionNotifiers: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => bigint | undefined>;
2612
+ /**
2613
+ * The target locations that are subscribed to our version changes, as well as the most recent
2614
+ * of our versions we informed them of.
2615
+ *
2616
+ * @param {[number, XcmVersionedMultiLocation]} arg
2617
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
2618
+ **/
2619
+ versionNotifyTargets: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined>;
2620
+ /**
2621
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
2622
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
2623
+ * which is used as a prioritization.
2624
+ *
2625
+ * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
2626
+ **/
2627
+ versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedMultiLocation, number]>>;
2628
+ /**
2629
+ * The current migration's stage, if any.
2630
+ *
2631
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
2632
+ **/
2633
+ currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
2634
+ /**
2635
+ * Fungible assets which we know are locked on a remote chain.
2636
+ *
2637
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
2638
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
2639
+ **/
2640
+ remoteLockedFungibles: GenericStorageQuery<(arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined>;
2641
+ /**
2642
+ * Fungible assets which we know are locked on this chain.
2643
+ *
2644
+ * @param {AccountId32Like} arg
2645
+ * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
2646
+ **/
2647
+ lockedFungibles: GenericStorageQuery<(arg: AccountId32Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined>;
2648
+ /**
2649
+ * Global suspension state of the XCM executor.
2650
+ *
2651
+ * @param {Callback<boolean> =} callback
2652
+ **/
2653
+ xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
2654
+ /**
2655
+ * Generic pallet storage query
2656
+ **/
2657
+ [storage: string]: GenericStorageQuery;
2658
+ };
2659
+ /**
2660
+ * Pallet `MessageQueue`'s storage queries
2661
+ **/
2662
+ messageQueue: {
2663
+ /**
2664
+ * The index of the first and last (non-empty) pages.
2665
+ *
2666
+ * @param {PolkadotRuntimeParachainsInclusionAggregateMessageOrigin} arg
2667
+ * @param {Callback<PalletMessageQueueBookState> =} callback
2668
+ **/
2669
+ bookStateFor: GenericStorageQuery<(arg: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin) => PalletMessageQueueBookState>;
2670
+ /**
2671
+ * The origin at which we should begin servicing.
2672
+ *
2673
+ * @param {Callback<PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | undefined> =} callback
2674
+ **/
2675
+ serviceHead: GenericStorageQuery<() => PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | undefined>;
2676
+ /**
2677
+ * The map of page indices to pages.
2678
+ *
2679
+ * @param {[PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]} arg
2680
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
2681
+ **/
2682
+ pages: GenericStorageQuery<(arg: [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined>;
2683
+ /**
2684
+ * Generic pallet storage query
2685
+ **/
2686
+ [storage: string]: GenericStorageQuery;
2687
+ };
2688
+ /**
2689
+ * Pallet `AssetRate`'s storage queries
2690
+ **/
2691
+ assetRate: {
2692
+ /**
2693
+ * Maps an asset to its fixed point representation in the native balance.
2694
+ *
2695
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
2696
+ *
2697
+ * @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} arg
2698
+ * @param {Callback<FixedU128 | undefined> =} callback
2699
+ **/
2700
+ conversionRateToNative: GenericStorageQuery<(arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset) => FixedU128 | undefined>;
2701
+ /**
2702
+ * Generic pallet storage query
2703
+ **/
2704
+ [storage: string]: GenericStorageQuery;
2705
+ };
2706
+ /**
2707
+ * Pallet `Beefy`'s storage queries
2708
+ **/
2709
+ beefy: {
2710
+ /**
2711
+ * The current authorities set
2712
+ *
2713
+ * @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
2714
+ **/
2715
+ authorities: GenericStorageQuery<() => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
2716
+ /**
2717
+ * The current validator set id
2718
+ *
2719
+ * @param {Callback<bigint> =} callback
2720
+ **/
2721
+ validatorSetId: GenericStorageQuery<() => bigint>;
2722
+ /**
2723
+ * Authorities set scheduled to be used with the next session
2724
+ *
2725
+ * @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
2726
+ **/
2727
+ nextAuthorities: GenericStorageQuery<() => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
2728
+ /**
2729
+ * A mapping from BEEFY set ID to the index of the *most recent* session for which its
2730
+ * members were responsible.
2731
+ *
2732
+ * This is only used for validating equivocation proofs. An equivocation proof must
2733
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
2734
+ * together sessions and BEEFY set ids, i.e. we need to validate that a validator
2735
+ * was the owner of a given key on a given session, and what the active set ID was
2736
+ * during that session.
2737
+ *
2738
+ * TWOX-NOTE: `ValidatorSetId` is not under user control.
2739
+ *
2740
+ * @param {bigint} arg
2741
+ * @param {Callback<number | undefined> =} callback
2742
+ **/
2743
+ setIdSession: GenericStorageQuery<(arg: bigint) => number | undefined>;
2744
+ /**
2745
+ * Block number where BEEFY consensus is enabled/started.
2746
+ * By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
2747
+ * restarted from the newly set block number.
2748
+ *
2749
+ * @param {Callback<number | undefined> =} callback
2750
+ **/
2751
+ genesisBlock: GenericStorageQuery<() => number | undefined>;
2752
+ /**
2753
+ * Generic pallet storage query
2754
+ **/
2755
+ [storage: string]: GenericStorageQuery;
2756
+ };
2757
+ /**
2758
+ * Pallet `Mmr`'s storage queries
2759
+ **/
2760
+ mmr: {
2761
+ /**
2762
+ * Latest MMR Root hash.
2763
+ *
2764
+ * @param {Callback<H256> =} callback
2765
+ **/
2766
+ rootHash: GenericStorageQuery<() => H256>;
2767
+ /**
2768
+ * Current size of the MMR (number of leaves).
2769
+ *
2770
+ * @param {Callback<bigint> =} callback
2771
+ **/
2772
+ numberOfLeaves: GenericStorageQuery<() => bigint>;
2773
+ /**
2774
+ * Hashes of the nodes in the MMR.
2775
+ *
2776
+ * Note this collection only contains MMR peaks, the inner nodes (and leaves)
2777
+ * are pruned and only stored in the Offchain DB.
2778
+ *
2779
+ * @param {bigint} arg
2780
+ * @param {Callback<H256 | undefined> =} callback
2781
+ **/
2782
+ nodes: GenericStorageQuery<(arg: bigint) => H256 | undefined>;
2783
+ /**
2784
+ * Generic pallet storage query
2785
+ **/
2786
+ [storage: string]: GenericStorageQuery;
2787
+ };
2788
+ /**
2789
+ * Pallet `BeefyMmrLeaf`'s storage queries
2790
+ **/
2791
+ beefyMmrLeaf: {
2792
+ /**
2793
+ * Details of current BEEFY authority set.
2794
+ *
2795
+ * @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
2796
+ **/
2797
+ beefyAuthorities: GenericStorageQuery<() => SpConsensusBeefyMmrBeefyAuthoritySet>;
2798
+ /**
2799
+ * Details of next BEEFY authority set.
2800
+ *
2801
+ * This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
2802
+ *
2803
+ * @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
2804
+ **/
2805
+ beefyNextAuthorities: GenericStorageQuery<() => SpConsensusBeefyMmrBeefyAuthoritySet>;
2806
+ /**
2807
+ * Generic pallet storage query
2808
+ **/
2809
+ [storage: string]: GenericStorageQuery;
2810
+ };
2811
+ }