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