@dedot/chaintypes 0.0.1-alpha.4 → 0.0.1-alpha.40

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 (288) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +590 -528
  3. package/aleph/errors.d.ts +981 -818
  4. package/aleph/events.d.ts +924 -937
  5. package/aleph/index.d.ts +11 -8
  6. package/aleph/query.d.ts +1477 -1268
  7. package/aleph/rpc.d.ts +725 -573
  8. package/aleph/runtime.d.ts +541 -406
  9. package/aleph/tx.d.ts +2664 -2202
  10. package/aleph/types.d.ts +3474 -5388
  11. package/astar/consts.d.ts +691 -675
  12. package/astar/errors.d.ts +1465 -1313
  13. package/astar/events.d.ts +1642 -1628
  14. package/astar/index.d.ts +11 -8
  15. package/astar/query.d.ts +1682 -1471
  16. package/astar/rpc.d.ts +972 -773
  17. package/astar/runtime.d.ts +747 -258
  18. package/astar/tx.d.ts +3708 -4806
  19. package/astar/types.d.ts +6088 -12266
  20. package/index.d.ts +1 -0
  21. package/index.ts +11 -0
  22. package/kusama/consts.d.ts +1573 -1422
  23. package/kusama/errors.d.ts +2995 -2490
  24. package/kusama/events.d.ts +2996 -2723
  25. package/kusama/index.d.ts +11 -8
  26. package/kusama/query.d.ts +3828 -3248
  27. package/kusama/rpc.d.ts +902 -724
  28. package/kusama/runtime.d.ts +1130 -840
  29. package/kusama/tx.d.ts +7073 -6010
  30. package/kusama/types.d.ts +10151 -15344
  31. package/kusamaAssetHub/consts.d.ts +714 -627
  32. package/kusamaAssetHub/errors.d.ts +1405 -1160
  33. package/kusamaAssetHub/events.d.ts +2149 -2060
  34. package/kusamaAssetHub/index.d.ts +11 -8
  35. package/kusamaAssetHub/query.d.ts +1551 -1298
  36. package/kusamaAssetHub/rpc.d.ts +744 -588
  37. package/kusamaAssetHub/runtime.d.ts +510 -398
  38. package/kusamaAssetHub/tx.d.ts +5050 -4212
  39. package/kusamaAssetHub/types.d.ts +5976 -10009
  40. package/moonbeam/consts.d.ts +1075 -956
  41. package/moonbeam/errors.d.ts +2131 -1793
  42. package/moonbeam/events.d.ts +2932 -2681
  43. package/moonbeam/index.d.ts +11 -8
  44. package/moonbeam/query.d.ts +2391 -2024
  45. package/moonbeam/rpc.d.ts +1013 -807
  46. package/moonbeam/runtime.d.ts +665 -502
  47. package/moonbeam/tx.d.ts +6152 -5201
  48. package/moonbeam/types.d.ts +7731 -12035
  49. package/package.json +9 -16
  50. package/polkadot/consts.d.ts +1272 -1155
  51. package/polkadot/errors.d.ts +2420 -2016
  52. package/polkadot/events.d.ts +2314 -2092
  53. package/polkadot/index.d.ts +11 -8
  54. package/polkadot/query.d.ts +3319 -2808
  55. package/polkadot/rpc.d.ts +902 -724
  56. package/polkadot/runtime.d.ts +1130 -840
  57. package/polkadot/tx.d.ts +5909 -5005
  58. package/polkadot/types.d.ts +8742 -13290
  59. package/polkadotAssetHub/consts.d.ts +586 -519
  60. package/polkadotAssetHub/errors.d.ts +1115 -921
  61. package/polkadotAssetHub/events.d.ts +1850 -1782
  62. package/polkadotAssetHub/index.d.ts +11 -8
  63. package/polkadotAssetHub/query.d.ts +1457 -1219
  64. package/polkadotAssetHub/rpc.d.ts +744 -588
  65. package/polkadotAssetHub/runtime.d.ts +447 -355
  66. package/polkadotAssetHub/tx.d.ts +4184 -3487
  67. package/polkadotAssetHub/types.d.ts +5183 -8808
  68. package/rococo/consts.d.ts +1396 -0
  69. package/rococo/errors.d.ts +2860 -0
  70. package/rococo/events.d.ts +3142 -0
  71. package/rococo/index.d.ts +22 -0
  72. package/rococo/query.d.ts +3275 -0
  73. package/rococo/rpc.d.ts +904 -0
  74. package/rococo/runtime.d.ts +1052 -0
  75. package/rococo/tx.d.ts +9083 -0
  76. package/rococo/types.d.ts +14573 -0
  77. package/rococoAssetHub/consts.d.ts +751 -653
  78. package/rococoAssetHub/errors.d.ts +1495 -1227
  79. package/rococoAssetHub/events.d.ts +2127 -2047
  80. package/rococoAssetHub/index.d.ts +11 -8
  81. package/rococoAssetHub/query.d.ts +1520 -1266
  82. package/rococoAssetHub/rpc.d.ts +744 -588
  83. package/rococoAssetHub/runtime.d.ts +539 -424
  84. package/rococoAssetHub/tx.d.ts +7826 -4302
  85. package/rococoAssetHub/types.d.ts +11614 -10637
  86. package/substrate/consts.d.ts +2218 -1966
  87. package/substrate/errors.d.ts +4019 -3333
  88. package/substrate/events.d.ts +4585 -4255
  89. package/substrate/index.d.ts +11 -8
  90. package/substrate/query.d.ts +3887 -3347
  91. package/substrate/rpc.d.ts +913 -716
  92. package/substrate/runtime.d.ts +937 -704
  93. package/substrate/tx.d.ts +10387 -8796
  94. package/substrate/types.d.ts +12809 -19761
  95. package/westendAssetHub/consts.d.ts +751 -653
  96. package/westendAssetHub/errors.d.ts +1495 -1227
  97. package/westendAssetHub/events.d.ts +2127 -2047
  98. package/westendAssetHub/index.d.ts +11 -8
  99. package/westendAssetHub/query.d.ts +1520 -1266
  100. package/westendAssetHub/rpc.d.ts +744 -588
  101. package/westendAssetHub/runtime.d.ts +606 -452
  102. package/westendAssetHub/tx.d.ts +7826 -4302
  103. package/westendAssetHub/types.d.ts +11614 -10634
  104. package/aleph/consts.js +0 -2
  105. package/aleph/errors.js +0 -2
  106. package/aleph/events.js +0 -2
  107. package/aleph/index.js +0 -3
  108. package/aleph/query.js +0 -2
  109. package/aleph/rpc.js +0 -2
  110. package/aleph/runtime.js +0 -2
  111. package/aleph/tx.js +0 -2
  112. package/aleph/types.js +0 -2
  113. package/astar/consts.js +0 -2
  114. package/astar/errors.js +0 -2
  115. package/astar/events.js +0 -2
  116. package/astar/index.js +0 -3
  117. package/astar/query.js +0 -2
  118. package/astar/rpc.js +0 -2
  119. package/astar/runtime.js +0 -2
  120. package/astar/tx.js +0 -2
  121. package/astar/types.js +0 -2
  122. package/cjs/aleph/consts.js +0 -3
  123. package/cjs/aleph/errors.js +0 -3
  124. package/cjs/aleph/events.js +0 -3
  125. package/cjs/aleph/index.js +0 -19
  126. package/cjs/aleph/query.js +0 -3
  127. package/cjs/aleph/rpc.js +0 -3
  128. package/cjs/aleph/runtime.js +0 -3
  129. package/cjs/aleph/tx.js +0 -3
  130. package/cjs/aleph/types.js +0 -3
  131. package/cjs/astar/consts.js +0 -3
  132. package/cjs/astar/errors.js +0 -3
  133. package/cjs/astar/events.js +0 -3
  134. package/cjs/astar/index.js +0 -19
  135. package/cjs/astar/query.js +0 -3
  136. package/cjs/astar/rpc.js +0 -3
  137. package/cjs/astar/runtime.js +0 -3
  138. package/cjs/astar/tx.js +0 -3
  139. package/cjs/astar/types.js +0 -3
  140. package/cjs/index.js +0 -2
  141. package/cjs/kusama/consts.js +0 -3
  142. package/cjs/kusama/errors.js +0 -3
  143. package/cjs/kusama/events.js +0 -3
  144. package/cjs/kusama/index.js +0 -19
  145. package/cjs/kusama/query.js +0 -3
  146. package/cjs/kusama/rpc.js +0 -3
  147. package/cjs/kusama/runtime.js +0 -3
  148. package/cjs/kusama/tx.js +0 -3
  149. package/cjs/kusama/types.js +0 -3
  150. package/cjs/kusamaAssetHub/consts.js +0 -3
  151. package/cjs/kusamaAssetHub/errors.js +0 -3
  152. package/cjs/kusamaAssetHub/events.js +0 -3
  153. package/cjs/kusamaAssetHub/index.js +0 -19
  154. package/cjs/kusamaAssetHub/query.js +0 -3
  155. package/cjs/kusamaAssetHub/rpc.js +0 -3
  156. package/cjs/kusamaAssetHub/runtime.js +0 -3
  157. package/cjs/kusamaAssetHub/tx.js +0 -3
  158. package/cjs/kusamaAssetHub/types.js +0 -3
  159. package/cjs/moonbeam/consts.js +0 -3
  160. package/cjs/moonbeam/errors.js +0 -3
  161. package/cjs/moonbeam/events.js +0 -3
  162. package/cjs/moonbeam/index.js +0 -19
  163. package/cjs/moonbeam/query.js +0 -3
  164. package/cjs/moonbeam/rpc.js +0 -3
  165. package/cjs/moonbeam/runtime.js +0 -3
  166. package/cjs/moonbeam/tx.js +0 -3
  167. package/cjs/moonbeam/types.js +0 -3
  168. package/cjs/package.json +0 -1
  169. package/cjs/packageInfo.js +0 -5
  170. package/cjs/polkadot/consts.js +0 -3
  171. package/cjs/polkadot/errors.js +0 -3
  172. package/cjs/polkadot/events.js +0 -3
  173. package/cjs/polkadot/index.js +0 -19
  174. package/cjs/polkadot/query.js +0 -3
  175. package/cjs/polkadot/rpc.js +0 -3
  176. package/cjs/polkadot/runtime.js +0 -3
  177. package/cjs/polkadot/tx.js +0 -3
  178. package/cjs/polkadot/types.js +0 -3
  179. package/cjs/polkadotAssetHub/consts.js +0 -3
  180. package/cjs/polkadotAssetHub/errors.js +0 -3
  181. package/cjs/polkadotAssetHub/events.js +0 -3
  182. package/cjs/polkadotAssetHub/index.js +0 -19
  183. package/cjs/polkadotAssetHub/query.js +0 -3
  184. package/cjs/polkadotAssetHub/rpc.js +0 -3
  185. package/cjs/polkadotAssetHub/runtime.js +0 -3
  186. package/cjs/polkadotAssetHub/tx.js +0 -3
  187. package/cjs/polkadotAssetHub/types.js +0 -3
  188. package/cjs/rococoAssetHub/consts.js +0 -3
  189. package/cjs/rococoAssetHub/errors.js +0 -3
  190. package/cjs/rococoAssetHub/events.js +0 -3
  191. package/cjs/rococoAssetHub/index.js +0 -19
  192. package/cjs/rococoAssetHub/query.js +0 -3
  193. package/cjs/rococoAssetHub/rpc.js +0 -3
  194. package/cjs/rococoAssetHub/runtime.js +0 -3
  195. package/cjs/rococoAssetHub/tx.js +0 -3
  196. package/cjs/rococoAssetHub/types.js +0 -3
  197. package/cjs/substrate/consts.js +0 -3
  198. package/cjs/substrate/errors.js +0 -3
  199. package/cjs/substrate/events.js +0 -3
  200. package/cjs/substrate/index.js +0 -19
  201. package/cjs/substrate/query.js +0 -3
  202. package/cjs/substrate/rpc.js +0 -3
  203. package/cjs/substrate/runtime.js +0 -3
  204. package/cjs/substrate/tx.js +0 -3
  205. package/cjs/substrate/types.js +0 -3
  206. package/cjs/westendAssetHub/consts.js +0 -3
  207. package/cjs/westendAssetHub/errors.js +0 -3
  208. package/cjs/westendAssetHub/events.js +0 -3
  209. package/cjs/westendAssetHub/index.js +0 -19
  210. package/cjs/westendAssetHub/query.js +0 -3
  211. package/cjs/westendAssetHub/rpc.js +0 -3
  212. package/cjs/westendAssetHub/runtime.js +0 -3
  213. package/cjs/westendAssetHub/tx.js +0 -3
  214. package/cjs/westendAssetHub/types.js +0 -3
  215. package/kusama/consts.js +0 -2
  216. package/kusama/errors.js +0 -2
  217. package/kusama/events.js +0 -2
  218. package/kusama/index.js +0 -3
  219. package/kusama/query.js +0 -2
  220. package/kusama/rpc.js +0 -2
  221. package/kusama/runtime.js +0 -2
  222. package/kusama/tx.js +0 -2
  223. package/kusama/types.js +0 -2
  224. package/kusamaAssetHub/consts.js +0 -2
  225. package/kusamaAssetHub/errors.js +0 -2
  226. package/kusamaAssetHub/events.js +0 -2
  227. package/kusamaAssetHub/index.js +0 -3
  228. package/kusamaAssetHub/query.js +0 -2
  229. package/kusamaAssetHub/rpc.js +0 -2
  230. package/kusamaAssetHub/runtime.js +0 -2
  231. package/kusamaAssetHub/tx.js +0 -2
  232. package/kusamaAssetHub/types.js +0 -2
  233. package/moonbeam/consts.js +0 -2
  234. package/moonbeam/errors.js +0 -2
  235. package/moonbeam/events.js +0 -2
  236. package/moonbeam/index.js +0 -3
  237. package/moonbeam/query.js +0 -2
  238. package/moonbeam/rpc.js +0 -2
  239. package/moonbeam/runtime.js +0 -2
  240. package/moonbeam/tx.js +0 -2
  241. package/moonbeam/types.js +0 -2
  242. package/packageInfo.d.ts +0 -4
  243. package/packageInfo.js +0 -2
  244. package/polkadot/consts.js +0 -2
  245. package/polkadot/errors.js +0 -2
  246. package/polkadot/events.js +0 -2
  247. package/polkadot/index.js +0 -3
  248. package/polkadot/query.js +0 -2
  249. package/polkadot/rpc.js +0 -2
  250. package/polkadot/runtime.js +0 -2
  251. package/polkadot/tx.js +0 -2
  252. package/polkadot/types.js +0 -2
  253. package/polkadotAssetHub/consts.js +0 -2
  254. package/polkadotAssetHub/errors.js +0 -2
  255. package/polkadotAssetHub/events.js +0 -2
  256. package/polkadotAssetHub/index.js +0 -3
  257. package/polkadotAssetHub/query.js +0 -2
  258. package/polkadotAssetHub/rpc.js +0 -2
  259. package/polkadotAssetHub/runtime.js +0 -2
  260. package/polkadotAssetHub/tx.js +0 -2
  261. package/polkadotAssetHub/types.js +0 -2
  262. package/rococoAssetHub/consts.js +0 -2
  263. package/rococoAssetHub/errors.js +0 -2
  264. package/rococoAssetHub/events.js +0 -2
  265. package/rococoAssetHub/index.js +0 -3
  266. package/rococoAssetHub/query.js +0 -2
  267. package/rococoAssetHub/rpc.js +0 -2
  268. package/rococoAssetHub/runtime.js +0 -2
  269. package/rococoAssetHub/tx.js +0 -2
  270. package/rococoAssetHub/types.js +0 -2
  271. package/substrate/consts.js +0 -2
  272. package/substrate/errors.js +0 -2
  273. package/substrate/events.js +0 -2
  274. package/substrate/index.js +0 -3
  275. package/substrate/query.js +0 -2
  276. package/substrate/rpc.js +0 -2
  277. package/substrate/runtime.js +0 -2
  278. package/substrate/tx.js +0 -2
  279. package/substrate/types.js +0 -2
  280. package/westendAssetHub/consts.js +0 -2
  281. package/westendAssetHub/errors.js +0 -2
  282. package/westendAssetHub/events.js +0 -2
  283. package/westendAssetHub/index.js +0 -3
  284. package/westendAssetHub/query.js +0 -2
  285. package/westendAssetHub/rpc.js +0 -2
  286. package/westendAssetHub/runtime.js +0 -2
  287. package/westendAssetHub/tx.js +0 -2
  288. package/westendAssetHub/types.js +0 -2
@@ -1,1301 +1,1554 @@
1
- import type { GenericChainStorage, GenericStorageQuery } from '@dedot/types';
2
- import type { AccountId32Like, H256, Bytes, Digest, Phase, FixedU128, AccountId32, BytesLike, FixedBytes } from '@dedot/codecs';
3
- import type { FrameSystemAccountInfo, FrameSupportDispatchPerDispatchClass, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, PolkadotPrimitivesV6PersistedValidationData, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6UpgradeGoAhead, SpTrieStorageProof, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, PolkadotPrimitivesV6AbridgedHostConfiguration, CumulusPrimitivesParachainInherentMessageQueueChain, PolkadotParachainPrimitivesPrimitivesId, PolkadotCorePrimitivesOutboundHrmpMessage, SpWeightsWeightV2Weight, CumulusPalletParachainSystemCodeUpgradeAuthorization, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBalancesIdAmount, PalletBalancesIdAmount002, PalletTransactionPaymentReleases, PalletCollatorSelectionCandidateInfo, AssetHubKusamaRuntimeSessionKeys, SpCoreCryptoKeyTypeId, SpConsensusAuraSr25519AppSr25519Public, SpConsensusSlotsSlot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, PalletXcmQueryStatus, XcmVersionedMultiLocation, PalletXcmVersionMigrationStage, PalletXcmRemoteLockedFungibleRecord, XcmVersionedAssetId, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, BpXcmBridgeHubRouterBridgeState, PalletMultisigMultisig, PalletProxyProxyDefinition, PalletProxyAnnouncement, PalletAssetsAssetDetails, PalletAssetsAssetAccount, PalletAssetsApproval, PalletAssetsAssetMetadata, PalletUniquesCollectionDetails, PalletUniquesItemDetails, PalletUniquesCollectionMetadata, PalletUniquesItemMetadata, PalletNftsCollectionDetails, PalletNftsBitFlagsCollectionRole, PalletNftsItemDetails, PalletNftsCollectionMetadata, PalletNftsItemMetadata, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsPendingSwap, PalletNftsCollectionConfig, PalletNftsItemConfig, StagingXcmV3MultilocationMultiLocation, PalletNftFractionalizationDetails, PalletAssetConversionPoolInfo } from './types';
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback } from '@dedot/types';
4
+ import type {
5
+ AccountId32Like,
6
+ H256,
7
+ Bytes,
8
+ Digest,
9
+ Phase,
10
+ FixedU128,
11
+ AccountId32,
12
+ BytesLike,
13
+ FixedBytes,
14
+ } from '@dedot/codecs';
15
+ import type {
16
+ FrameSystemAccountInfo,
17
+ FrameSupportDispatchPerDispatchClass,
18
+ FrameSystemEventRecord,
19
+ FrameSystemLastRuntimeUpgradeInfo,
20
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
21
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
22
+ PolkadotPrimitivesV6PersistedValidationData,
23
+ PolkadotPrimitivesV6UpgradeRestriction,
24
+ PolkadotPrimitivesV6UpgradeGoAhead,
25
+ SpTrieStorageProof,
26
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
27
+ PolkadotPrimitivesV6AbridgedHostConfiguration,
28
+ CumulusPrimitivesParachainInherentMessageQueueChain,
29
+ PolkadotParachainPrimitivesPrimitivesId,
30
+ PolkadotCorePrimitivesOutboundHrmpMessage,
31
+ SpWeightsWeightV2Weight,
32
+ CumulusPalletParachainSystemCodeUpgradeAuthorization,
33
+ PalletBalancesAccountData,
34
+ PalletBalancesBalanceLock,
35
+ PalletBalancesReserveData,
36
+ PalletBalancesIdAmount,
37
+ PalletBalancesIdAmount002,
38
+ PalletTransactionPaymentReleases,
39
+ PalletCollatorSelectionCandidateInfo,
40
+ AssetHubKusamaRuntimeSessionKeys,
41
+ SpCoreCryptoKeyTypeId,
42
+ SpConsensusAuraSr25519AppSr25519Public,
43
+ SpConsensusSlotsSlot,
44
+ CumulusPalletXcmpQueueInboundChannelDetails,
45
+ CumulusPalletXcmpQueueOutboundChannelDetails,
46
+ CumulusPalletXcmpQueueQueueConfigData,
47
+ PalletXcmQueryStatus,
48
+ XcmVersionedMultiLocation,
49
+ PalletXcmVersionMigrationStage,
50
+ PalletXcmRemoteLockedFungibleRecord,
51
+ XcmVersionedAssetId,
52
+ CumulusPalletDmpQueueConfigData,
53
+ CumulusPalletDmpQueuePageIndexData,
54
+ BpXcmBridgeHubRouterBridgeState,
55
+ PalletMultisigMultisig,
56
+ PalletProxyProxyDefinition,
57
+ PalletProxyAnnouncement,
58
+ PalletAssetsAssetDetails,
59
+ PalletAssetsAssetAccount,
60
+ PalletAssetsApproval,
61
+ PalletAssetsAssetMetadata,
62
+ PalletUniquesCollectionDetails,
63
+ PalletUniquesItemDetails,
64
+ PalletUniquesCollectionMetadata,
65
+ PalletUniquesItemMetadata,
66
+ PalletNftsCollectionDetails,
67
+ PalletNftsBitFlagsCollectionRole,
68
+ PalletNftsItemDetails,
69
+ PalletNftsCollectionMetadata,
70
+ PalletNftsItemMetadata,
71
+ PalletNftsAttributeDeposit,
72
+ PalletNftsAttributeNamespace,
73
+ PalletNftsPendingSwap,
74
+ PalletNftsCollectionConfig,
75
+ PalletNftsItemConfig,
76
+ StagingXcmV3MultilocationMultiLocation,
77
+ PalletNftFractionalizationDetails,
78
+ PalletAssetConversionPoolInfo,
79
+ } from './types';
80
+
4
81
  export interface ChainStorage extends GenericChainStorage {
82
+ /**
83
+ * Pallet `System`'s storage queries
84
+ **/
85
+ system: {
5
86
  /**
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 `ParachainSystem`'s storage queries
132
- **/
133
- parachainSystem: {
134
- /**
135
- * Latest included block descendants the runtime accepted. In other words, these are
136
- * ancestors of the currently executing block which have not been included in the observed
137
- * relay-chain state.
138
- *
139
- * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
140
- * in the pallet.
141
- *
142
- * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
143
- **/
144
- unincludedSegment: GenericStorageQuery<() => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
145
- /**
146
- * Storage field that keeps track of bandwidth used by the unincluded segment along with the
147
- * latest HRMP watermark. Used for limiting the acceptance of new blocks with
148
- * respect to relay chain constraints.
149
- *
150
- * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
151
- **/
152
- aggregatedUnincludedSegment: GenericStorageQuery<() => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined>;
153
- /**
154
- * In case of a scheduled upgrade, this storage field contains the validation code to be
155
- * applied.
156
- *
157
- * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
158
- * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
159
- * with the new validation code. This concludes the upgrade process.
160
- *
161
- * @param {Callback<Bytes> =} callback
162
- **/
163
- pendingValidationCode: GenericStorageQuery<() => Bytes>;
164
- /**
165
- * Validation code that is set by the parachain and is to be communicated to collator and
166
- * consequently the relay-chain.
167
- *
168
- * This will be cleared in `on_initialize` of each new block if no other pallet already set
169
- * the value.
170
- *
171
- * @param {Callback<Bytes | undefined> =} callback
172
- **/
173
- newValidationCode: GenericStorageQuery<() => Bytes | undefined>;
174
- /**
175
- * The [`PersistedValidationData`] set for this block.
176
- * This value is expected to be set only once per block and it's never stored
177
- * in the trie.
178
- *
179
- * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
180
- **/
181
- validationData: GenericStorageQuery<() => PolkadotPrimitivesV6PersistedValidationData | undefined>;
182
- /**
183
- * Were the validation data set to notify the relay chain?
184
- *
185
- * @param {Callback<boolean> =} callback
186
- **/
187
- didSetValidationCode: GenericStorageQuery<() => boolean>;
188
- /**
189
- * The relay chain block number associated with the last parachain block.
190
- *
191
- * This is updated in `on_finalize`.
192
- *
193
- * @param {Callback<number> =} callback
194
- **/
195
- lastRelayChainBlockNumber: GenericStorageQuery<() => number>;
196
- /**
197
- * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
198
- * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
199
- * candidate will be invalid.
200
- *
201
- * This storage item is a mirror of the corresponding value for the current parachain from the
202
- * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
203
- * set after the inherent.
204
- *
205
- * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
206
- **/
207
- upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
208
- /**
209
- * Optional upgrade go-ahead signal from the relay-chain.
210
- *
211
- * This storage item is a mirror of the corresponding value for the current parachain from the
212
- * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
213
- * set after the inherent.
214
- *
215
- * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
216
- **/
217
- upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
218
- /**
219
- * The state proof for the last relay parent block.
220
- *
221
- * This field is meant to be updated each block with the validation data inherent. Therefore,
222
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
223
- *
224
- * This data is also absent from the genesis.
225
- *
226
- * @param {Callback<SpTrieStorageProof | undefined> =} callback
227
- **/
228
- relayStateProof: GenericStorageQuery<() => SpTrieStorageProof | undefined>;
229
- /**
230
- * The snapshot of some state related to messaging relevant to the current parachain as per
231
- * the relay parent.
232
- *
233
- * This field is meant to be updated each block with the validation data inherent. Therefore,
234
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
235
- *
236
- * This data is also absent from the genesis.
237
- *
238
- * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
239
- **/
240
- relevantMessagingState: GenericStorageQuery<() => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined>;
241
- /**
242
- * The parachain host configuration that was obtained from the relay parent.
243
- *
244
- * This field is meant to be updated each block with the validation data inherent. Therefore,
245
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
246
- *
247
- * This data is also absent from the genesis.
248
- *
249
- * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
250
- **/
251
- hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
252
- /**
253
- * The last downward message queue chain head we have observed.
254
- *
255
- * This value is loaded before and saved after processing inbound downward messages carried
256
- * by the system inherent.
257
- *
258
- * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
259
- **/
260
- lastDmqMqcHead: GenericStorageQuery<() => CumulusPrimitivesParachainInherentMessageQueueChain>;
261
- /**
262
- * The message queue chain heads we have observed per each channel incoming channel.
263
- *
264
- * This value is loaded before and saved after processing inbound downward messages carried
265
- * by the system inherent.
266
- *
267
- * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
268
- **/
269
- lastHrmpMqcHeads: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>>;
270
- /**
271
- * Number of downward messages processed in a block.
272
- *
273
- * This will be cleared in `on_initialize` of each new block.
274
- *
275
- * @param {Callback<number> =} callback
276
- **/
277
- processedDownwardMessages: GenericStorageQuery<() => number>;
278
- /**
279
- * HRMP watermark that was set in a block.
280
- *
281
- * This will be cleared in `on_initialize` of each new block.
282
- *
283
- * @param {Callback<number> =} callback
284
- **/
285
- hrmpWatermark: GenericStorageQuery<() => number>;
286
- /**
287
- * HRMP messages that were sent in a block.
288
- *
289
- * This will be cleared in `on_initialize` of each new block.
290
- *
291
- * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
292
- **/
293
- hrmpOutboundMessages: GenericStorageQuery<() => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
294
- /**
295
- * Upward messages that were sent in a block.
296
- *
297
- * This will be cleared in `on_initialize` of each new block.
298
- *
299
- * @param {Callback<Array<Bytes>> =} callback
300
- **/
301
- upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
302
- /**
303
- * Upward messages that are still pending and not yet send to the relay chain.
304
- *
305
- * @param {Callback<Array<Bytes>> =} callback
306
- **/
307
- pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
308
- /**
309
- * The factor to multiply the base delivery fee by for UMP.
310
- *
311
- * @param {Callback<FixedU128> =} callback
312
- **/
313
- upwardDeliveryFeeFactor: GenericStorageQuery<() => FixedU128>;
314
- /**
315
- * The number of HRMP messages we observed in `on_initialize` and thus used that number for
316
- * announcing the weight of `on_initialize` and `on_finalize`.
317
- *
318
- * @param {Callback<number> =} callback
319
- **/
320
- announcedHrmpMessagesPerCandidate: GenericStorageQuery<() => number>;
321
- /**
322
- * The weight we reserve at the beginning of the block for processing XCMP messages. This
323
- * overrides the amount set in the Config trait.
324
- *
325
- * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
326
- **/
327
- reservedXcmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
328
- /**
329
- * The weight we reserve at the beginning of the block for processing DMP messages. This
330
- * overrides the amount set in the Config trait.
331
- *
332
- * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
333
- **/
334
- reservedDmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
335
- /**
336
- * The next authorized upgrade, if there is one.
337
- *
338
- * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
339
- **/
340
- authorizedUpgrade: GenericStorageQuery<() => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
341
- /**
342
- * A custom head data that should be returned as result of `validate_block`.
343
- *
344
- * See `Pallet::set_custom_validation_head_data` for more information.
345
- *
346
- * @param {Callback<Bytes | undefined> =} callback
347
- **/
348
- customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
349
- /**
350
- * Generic pallet storage query
351
- **/
352
- [storage: string]: GenericStorageQuery;
353
- };
354
- /**
355
- * Pallet `Timestamp`'s storage queries
356
- **/
357
- timestamp: {
358
- /**
359
- * The current time for the current block.
360
- *
361
- * @param {Callback<bigint> =} callback
362
- **/
363
- now: GenericStorageQuery<() => bigint>;
364
- /**
365
- * Whether the timestamp has been updated in this block.
366
- *
367
- * This value is updated to `true` upon successful submission of a timestamp by a node.
368
- * It is then checked at the end of each block execution in the `on_finalize` hook.
369
- *
370
- * @param {Callback<boolean> =} callback
371
- **/
372
- didUpdate: GenericStorageQuery<() => boolean>;
373
- /**
374
- * Generic pallet storage query
375
- **/
376
- [storage: string]: GenericStorageQuery;
377
- };
378
- /**
379
- * Pallet `ParachainInfo`'s storage queries
380
- **/
381
- parachainInfo: {
382
- /**
383
- *
384
- * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
385
- **/
386
- parachainId: GenericStorageQuery<() => PolkadotParachainPrimitivesPrimitivesId>;
387
- /**
388
- * Generic pallet storage query
389
- **/
390
- [storage: string]: GenericStorageQuery;
391
- };
392
- /**
393
- * Pallet `Balances`'s storage queries
394
- **/
395
- balances: {
396
- /**
397
- * The total units issued in the system.
398
- *
399
- * @param {Callback<bigint> =} callback
400
- **/
401
- totalIssuance: GenericStorageQuery<() => bigint>;
402
- /**
403
- * The total units of outstanding deactivated balance in the system.
404
- *
405
- * @param {Callback<bigint> =} callback
406
- **/
407
- inactiveIssuance: GenericStorageQuery<() => bigint>;
408
- /**
409
- * The Balances pallet example of storing the balance of an account.
410
- *
411
- * # Example
412
- *
413
- * ```nocompile
414
- * impl pallet_balances::Config for Runtime {
415
- * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
416
- * }
417
- * ```
418
- *
419
- * You can also store the balance of an account in the `System` pallet.
420
- *
421
- * # Example
422
- *
423
- * ```nocompile
424
- * impl pallet_balances::Config for Runtime {
425
- * type AccountStore = System
426
- * }
427
- * ```
428
- *
429
- * But this comes with tradeoffs, storing account balances in the system pallet stores
430
- * `frame_system` data alongside the account data contrary to storing account balances in the
431
- * `Balances` pallet, which uses a `StorageMap` to store balances data only.
432
- * NOTE: This is only used in the case that this pallet is used to store balances.
433
- *
434
- * @param {AccountId32Like} arg
435
- * @param {Callback<PalletBalancesAccountData> =} callback
436
- **/
437
- account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
438
- /**
439
- * Any liquidity locks on some account balances.
440
- * NOTE: Should only be accessed when setting, changing and freeing a lock.
441
- *
442
- * @param {AccountId32Like} arg
443
- * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
444
- **/
445
- locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
446
- /**
447
- * Named reserves on some account balances.
448
- *
449
- * @param {AccountId32Like} arg
450
- * @param {Callback<Array<PalletBalancesReserveData>> =} callback
451
- **/
452
- reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
453
- /**
454
- * Holds on account balances.
455
- *
456
- * @param {AccountId32Like} arg
457
- * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
458
- **/
459
- holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
460
- /**
461
- * Freeze locks on account balances.
462
- *
463
- * @param {AccountId32Like} arg
464
- * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
465
- **/
466
- freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount002>>;
467
- /**
468
- * Generic pallet storage query
469
- **/
470
- [storage: string]: GenericStorageQuery;
471
- };
472
- /**
473
- * Pallet `TransactionPayment`'s storage queries
474
- **/
475
- transactionPayment: {
476
- /**
477
- *
478
- * @param {Callback<FixedU128> =} callback
479
- **/
480
- nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
481
- /**
482
- *
483
- * @param {Callback<PalletTransactionPaymentReleases> =} callback
484
- **/
485
- storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
486
- /**
487
- * Generic pallet storage query
488
- **/
489
- [storage: string]: GenericStorageQuery;
490
- };
491
- /**
492
- * Pallet `Authorship`'s storage queries
493
- **/
494
- authorship: {
495
- /**
496
- * Author of current block.
497
- *
498
- * @param {Callback<AccountId32 | undefined> =} callback
499
- **/
500
- author: GenericStorageQuery<() => AccountId32 | undefined>;
501
- /**
502
- * Generic pallet storage query
503
- **/
504
- [storage: string]: GenericStorageQuery;
505
- };
506
- /**
507
- * Pallet `CollatorSelection`'s storage queries
508
- **/
509
- collatorSelection: {
510
- /**
511
- * The invulnerable, permissioned collators. This list must be sorted.
512
- *
513
- * @param {Callback<Array<AccountId32>> =} callback
514
- **/
515
- invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
516
- /**
517
- * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
518
- * mutually exclusive.
519
- *
520
- * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
521
- **/
522
- candidates: GenericStorageQuery<() => Array<PalletCollatorSelectionCandidateInfo>>;
523
- /**
524
- * Last block authored by collator.
525
- *
526
- * @param {AccountId32Like} arg
527
- * @param {Callback<number> =} callback
528
- **/
529
- lastAuthoredBlock: GenericStorageQuery<(arg: AccountId32Like) => number>;
530
- /**
531
- * Desired number of candidates.
532
- *
533
- * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
534
- *
535
- * @param {Callback<number> =} callback
536
- **/
537
- desiredCandidates: GenericStorageQuery<() => number>;
538
- /**
539
- * Fixed amount to deposit to become a collator.
540
- *
541
- * When a collator calls `leave_intent` they immediately receive the deposit back.
542
- *
543
- * @param {Callback<bigint> =} callback
544
- **/
545
- candidacyBond: GenericStorageQuery<() => bigint>;
546
- /**
547
- * Generic pallet storage query
548
- **/
549
- [storage: string]: GenericStorageQuery;
550
- };
551
- /**
552
- * Pallet `Session`'s storage queries
553
- **/
554
- session: {
555
- /**
556
- * The current set of validators.
557
- *
558
- * @param {Callback<Array<AccountId32>> =} callback
559
- **/
560
- validators: GenericStorageQuery<() => Array<AccountId32>>;
561
- /**
562
- * Current index of the session.
563
- *
564
- * @param {Callback<number> =} callback
565
- **/
566
- currentIndex: GenericStorageQuery<() => number>;
567
- /**
568
- * True if the underlying economic identities or weighting behind the validators
569
- * has changed in the queued validator set.
570
- *
571
- * @param {Callback<boolean> =} callback
572
- **/
573
- queuedChanged: GenericStorageQuery<() => boolean>;
574
- /**
575
- * The queued keys for the next session. When the next session begins, these keys
576
- * will be used to determine the validator's session keys.
577
- *
578
- * @param {Callback<Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>> =} callback
579
- **/
580
- queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>>;
581
- /**
582
- * Indices of disabled validators.
583
- *
584
- * The vec is always kept sorted so that we can find whether a given validator is
585
- * disabled using binary search. It gets cleared when `on_session_ending` returns
586
- * a new set of identities.
587
- *
588
- * @param {Callback<Array<number>> =} callback
589
- **/
590
- disabledValidators: GenericStorageQuery<() => Array<number>>;
591
- /**
592
- * The next session keys for a validator.
593
- *
594
- * @param {AccountId32Like} arg
595
- * @param {Callback<AssetHubKusamaRuntimeSessionKeys | undefined> =} callback
596
- **/
597
- nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AssetHubKusamaRuntimeSessionKeys | undefined>;
598
- /**
599
- * The owner of a key. The key is the `KeyTypeId` + the encoded key.
600
- *
601
- * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
602
- * @param {Callback<AccountId32 | undefined> =} callback
603
- **/
604
- keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
605
- /**
606
- * Generic pallet storage query
607
- **/
608
- [storage: string]: GenericStorageQuery;
609
- };
610
- /**
611
- * Pallet `Aura`'s storage queries
612
- **/
613
- aura: {
614
- /**
615
- * The current authority set.
616
- *
617
- * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
618
- **/
619
- authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
620
- /**
621
- * The current slot of this block.
622
- *
623
- * This will be set in `on_initialize`.
624
- *
625
- * @param {Callback<SpConsensusSlotsSlot> =} callback
626
- **/
627
- currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
628
- /**
629
- * Generic pallet storage query
630
- **/
631
- [storage: string]: GenericStorageQuery;
632
- };
633
- /**
634
- * Pallet `AuraExt`'s storage queries
635
- **/
636
- auraExt: {
637
- /**
638
- * Serves as cache for the authorities.
639
- *
640
- * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
641
- * but we require the old authorities to verify the seal when validating a PoV. This will
642
- * always be updated to the latest AuRa authorities in `on_finalize`.
643
- *
644
- * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
645
- **/
646
- authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
647
- /**
648
- * Current slot paired with a number of authored blocks.
649
- *
650
- * Updated on each block initialization.
651
- *
652
- * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
653
- **/
654
- slotInfo: GenericStorageQuery<() => [SpConsensusSlotsSlot, number] | undefined>;
655
- /**
656
- * Generic pallet storage query
657
- **/
658
- [storage: string]: GenericStorageQuery;
659
- };
660
- /**
661
- * Pallet `XcmpQueue`'s storage queries
662
- **/
663
- xcmpQueue: {
664
- /**
665
- * Status of the inbound XCMP channels.
666
- *
667
- * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
668
- **/
669
- inboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
670
- /**
671
- * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
672
- *
673
- * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
674
- * @param {Callback<Bytes> =} callback
675
- **/
676
- inboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
677
- /**
678
- * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
679
- * and last outbound message. If the two indices are equal, then it indicates an empty
680
- * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
681
- * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
682
- * case of the need to send a high-priority signal message this block.
683
- * The bool is true if there is a signal message waiting to be sent.
684
- *
685
- * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
686
- **/
687
- outboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
688
- /**
689
- * The messages outbound in a given XCMP channel.
690
- *
691
- * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
692
- * @param {Callback<Bytes> =} callback
693
- **/
694
- outboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
695
- /**
696
- * Any signal messages waiting to be sent.
697
- *
698
- * @param {PolkadotParachainPrimitivesPrimitivesId} arg
699
- * @param {Callback<Bytes> =} callback
700
- **/
701
- signalMessages: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes>;
702
- /**
703
- * The configuration which controls the dynamics of the outbound queue.
704
- *
705
- * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
706
- **/
707
- queueConfig: GenericStorageQuery<() => CumulusPalletXcmpQueueQueueConfigData>;
708
- /**
709
- * The messages that exceeded max individual message weight budget.
710
- *
711
- * These message stay in this storage map until they are manually dispatched via
712
- * `service_overweight`.
713
- *
714
- * @param {bigint} arg
715
- * @param {Callback<[PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined> =} callback
716
- **/
717
- overweight: GenericStorageQuery<(arg: bigint) => [PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined>;
718
- /**
719
- * Counter for the related counted storage map
720
- *
721
- * @param {Callback<number> =} callback
722
- **/
723
- counterForOverweight: GenericStorageQuery<() => number>;
724
- /**
725
- * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
726
- * available free overweight index.
727
- *
728
- * @param {Callback<bigint> =} callback
729
- **/
730
- overweightCount: GenericStorageQuery<() => bigint>;
731
- /**
732
- * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
733
- *
734
- * @param {Callback<boolean> =} callback
735
- **/
736
- queueSuspended: GenericStorageQuery<() => boolean>;
737
- /**
738
- * The factor to multiply the base delivery fee by.
739
- *
740
- * @param {PolkadotParachainPrimitivesPrimitivesId} arg
741
- * @param {Callback<FixedU128> =} callback
742
- **/
743
- deliveryFeeFactor: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128>;
744
- /**
745
- * Generic pallet storage query
746
- **/
747
- [storage: string]: GenericStorageQuery;
748
- };
749
- /**
750
- * Pallet `PolkadotXcm`'s storage queries
751
- **/
752
- polkadotXcm: {
753
- /**
754
- * The latest available query index.
755
- *
756
- * @param {Callback<bigint> =} callback
757
- **/
758
- queryCounter: GenericStorageQuery<() => bigint>;
759
- /**
760
- * The ongoing queries.
761
- *
762
- * @param {bigint} arg
763
- * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
764
- **/
765
- queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
766
- /**
767
- * The existing asset traps.
768
- *
769
- * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
770
- * times this pair has been trapped (usually just 1 if it exists at all).
771
- *
772
- * @param {H256} arg
773
- * @param {Callback<number> =} callback
774
- **/
775
- assetTraps: GenericStorageQuery<(arg: H256) => number>;
776
- /**
777
- * Default version to encode XCM when latest version of destination is unknown. If `None`,
778
- * then the destinations whose XCM version is unknown are considered unreachable.
779
- *
780
- * @param {Callback<number | undefined> =} callback
781
- **/
782
- safeXcmVersion: GenericStorageQuery<() => number | undefined>;
783
- /**
784
- * The Latest versions that we know various locations support.
785
- *
786
- * @param {[number, XcmVersionedMultiLocation]} arg
787
- * @param {Callback<number | undefined> =} callback
788
- **/
789
- supportedVersion: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => number | undefined>;
790
- /**
791
- * All locations that we have requested version notifications from.
792
- *
793
- * @param {[number, XcmVersionedMultiLocation]} arg
794
- * @param {Callback<bigint | undefined> =} callback
795
- **/
796
- versionNotifiers: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => bigint | undefined>;
797
- /**
798
- * The target locations that are subscribed to our version changes, as well as the most recent
799
- * of our versions we informed them of.
800
- *
801
- * @param {[number, XcmVersionedMultiLocation]} arg
802
- * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
803
- **/
804
- versionNotifyTargets: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined>;
805
- /**
806
- * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
807
- * the `u32` counter is the number of times that a send to the destination has been attempted,
808
- * which is used as a prioritization.
809
- *
810
- * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
811
- **/
812
- versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedMultiLocation, number]>>;
813
- /**
814
- * The current migration's stage, if any.
815
- *
816
- * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
817
- **/
818
- currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
819
- /**
820
- * Fungible assets which we know are locked on a remote chain.
821
- *
822
- * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
823
- * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
824
- **/
825
- remoteLockedFungibles: GenericStorageQuery<(arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined>;
826
- /**
827
- * Fungible assets which we know are locked on this chain.
828
- *
829
- * @param {AccountId32Like} arg
830
- * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
831
- **/
832
- lockedFungibles: GenericStorageQuery<(arg: AccountId32Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined>;
833
- /**
834
- * Global suspension state of the XCM executor.
835
- *
836
- * @param {Callback<boolean> =} callback
837
- **/
838
- xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
839
- /**
840
- * Generic pallet storage query
841
- **/
842
- [storage: string]: GenericStorageQuery;
843
- };
844
- /**
845
- * Pallet `DmpQueue`'s storage queries
846
- **/
847
- dmpQueue: {
848
- /**
849
- * The configuration.
850
- *
851
- * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
852
- **/
853
- configuration: GenericStorageQuery<() => CumulusPalletDmpQueueConfigData>;
854
- /**
855
- * The page index.
856
- *
857
- * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
858
- **/
859
- pageIndex: GenericStorageQuery<() => CumulusPalletDmpQueuePageIndexData>;
860
- /**
861
- * The queue pages.
862
- *
863
- * @param {number} arg
864
- * @param {Callback<Array<[number, Bytes]>> =} callback
865
- **/
866
- pages: GenericStorageQuery<(arg: number) => Array<[number, Bytes]>>;
867
- /**
868
- * The overweight messages.
869
- *
870
- * @param {bigint} arg
871
- * @param {Callback<[number, Bytes] | undefined> =} callback
872
- **/
873
- overweight: GenericStorageQuery<(arg: bigint) => [number, Bytes] | undefined>;
874
- /**
875
- * Counter for the related counted storage map
876
- *
877
- * @param {Callback<number> =} callback
878
- **/
879
- counterForOverweight: GenericStorageQuery<() => number>;
880
- /**
881
- * Generic pallet storage query
882
- **/
883
- [storage: string]: GenericStorageQuery;
884
- };
885
- /**
886
- * Pallet `ToPolkadotXcmRouter`'s storage queries
887
- **/
888
- toPolkadotXcmRouter: {
889
- /**
890
- * Bridge that we are using.
891
- *
892
- * **bridges-v1** assumptions: all outbound messages through this router are using single lane
893
- * and to single remote consensus. If there is some other remote consensus that uses the same
894
- * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
895
- * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
896
- * by the same pallet instance.
897
- *
898
- * @param {Callback<BpXcmBridgeHubRouterBridgeState> =} callback
899
- **/
900
- bridge: GenericStorageQuery<() => BpXcmBridgeHubRouterBridgeState>;
901
- /**
902
- * Generic pallet storage query
903
- **/
904
- [storage: string]: GenericStorageQuery;
905
- };
906
- /**
907
- * Pallet `Multisig`'s storage queries
908
- **/
909
- multisig: {
910
- /**
911
- * The set of open multisig operations.
912
- *
913
- * @param {[AccountId32Like, FixedBytes<32>]} arg
914
- * @param {Callback<PalletMultisigMultisig | undefined> =} callback
915
- **/
916
- multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
917
- /**
918
- * Generic pallet storage query
919
- **/
920
- [storage: string]: GenericStorageQuery;
921
- };
922
- /**
923
- * Pallet `Proxy`'s storage queries
924
- **/
925
- proxy: {
926
- /**
927
- * The set of account proxies. Maps the account which has delegated to the accounts
928
- * which are being delegated to, together with the amount held on deposit.
929
- *
930
- * @param {AccountId32Like} arg
931
- * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
932
- **/
933
- proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
934
- /**
935
- * The announcements made by the proxy (key).
936
- *
937
- * @param {AccountId32Like} arg
938
- * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
939
- **/
940
- announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
941
- /**
942
- * Generic pallet storage query
943
- **/
944
- [storage: string]: GenericStorageQuery;
945
- };
946
- /**
947
- * Pallet `Assets`'s storage queries
948
- **/
949
- assets: {
950
- /**
951
- * Details of an asset.
952
- *
953
- * @param {number} arg
954
- * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
955
- **/
956
- asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined>;
957
- /**
958
- * The holdings of a specific account for a specific asset.
959
- *
960
- * @param {[number, AccountId32Like]} arg
961
- * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
962
- **/
963
- account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
964
- /**
965
- * Approved balance transfers. First balance is the amount approved for transfer. Second
966
- * is the amount of `T::Currency` reserved for storing this.
967
- * First key is the asset ID, second key is the owner and third key is the delegate.
968
- *
969
- * @param {[number, AccountId32Like, AccountId32Like]} arg
970
- * @param {Callback<PalletAssetsApproval | undefined> =} callback
971
- **/
972
- approvals: GenericStorageQuery<(arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined>;
973
- /**
974
- * Metadata of an asset.
975
- *
976
- * @param {number} arg
977
- * @param {Callback<PalletAssetsAssetMetadata> =} callback
978
- **/
979
- metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata>;
980
- /**
981
- * Generic pallet storage query
982
- **/
983
- [storage: string]: GenericStorageQuery;
984
- };
985
- /**
986
- * Pallet `Uniques`'s storage queries
987
- **/
988
- uniques: {
989
- /**
990
- * Details of a collection.
991
- *
992
- * @param {number} arg
993
- * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
994
- **/
995
- class: GenericStorageQuery<(arg: number) => PalletUniquesCollectionDetails | undefined>;
996
- /**
997
- * The collection, if any, of which an account is willing to take ownership.
998
- *
999
- * @param {AccountId32Like} arg
1000
- * @param {Callback<number | undefined> =} callback
1001
- **/
1002
- ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
1003
- /**
1004
- * The items held by any given account; set out this way so that items owned by a single
1005
- * account can be enumerated.
1006
- *
1007
- * @param {[AccountId32Like, number, number]} arg
1008
- * @param {Callback<[] | undefined> =} callback
1009
- **/
1010
- account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined>;
1011
- /**
1012
- * The collections owned by any given account; set out this way so that collections owned by
1013
- * a single account can be enumerated.
1014
- *
1015
- * @param {[AccountId32Like, number]} arg
1016
- * @param {Callback<[] | undefined> =} callback
1017
- **/
1018
- classAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined>;
1019
- /**
1020
- * The items in existence and their ownership details.
1021
- *
1022
- * @param {[number, number]} arg
1023
- * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
1024
- **/
1025
- asset: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemDetails | undefined>;
1026
- /**
1027
- * Metadata of a collection.
1028
- *
1029
- * @param {number} arg
1030
- * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
1031
- **/
1032
- classMetadataOf: GenericStorageQuery<(arg: number) => PalletUniquesCollectionMetadata | undefined>;
1033
- /**
1034
- * Metadata of an item.
1035
- *
1036
- * @param {[number, number]} arg
1037
- * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
1038
- **/
1039
- instanceMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemMetadata | undefined>;
1040
- /**
1041
- * Attributes of a collection.
1042
- *
1043
- * @param {[number, number | undefined, BytesLike]} arg
1044
- * @param {Callback<[Bytes, bigint] | undefined> =} callback
1045
- **/
1046
- attribute: GenericStorageQuery<(arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined>;
1047
- /**
1048
- * Price of an asset instance.
1049
- *
1050
- * @param {[number, number]} arg
1051
- * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1052
- **/
1053
- itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined>;
1054
- /**
1055
- * Keeps track of the number of items a collection might have.
1056
- *
1057
- * @param {number} arg
1058
- * @param {Callback<number | undefined> =} callback
1059
- **/
1060
- collectionMaxSupply: GenericStorageQuery<(arg: number) => number | undefined>;
1061
- /**
1062
- * Generic pallet storage query
1063
- **/
1064
- [storage: string]: GenericStorageQuery;
1065
- };
1066
- /**
1067
- * Pallet `Nfts`'s storage queries
1068
- **/
1069
- nfts: {
1070
- /**
1071
- * Details of a collection.
1072
- *
1073
- * @param {number} arg
1074
- * @param {Callback<PalletNftsCollectionDetails | undefined> =} callback
1075
- **/
1076
- collection: GenericStorageQuery<(arg: number) => PalletNftsCollectionDetails | undefined>;
1077
- /**
1078
- * The collection, if any, of which an account is willing to take ownership.
1079
- *
1080
- * @param {AccountId32Like} arg
1081
- * @param {Callback<number | undefined> =} callback
1082
- **/
1083
- ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
1084
- /**
1085
- * The items held by any given account; set out this way so that items owned by a single
1086
- * account can be enumerated.
1087
- *
1088
- * @param {[AccountId32Like, number, number]} arg
1089
- * @param {Callback<[] | undefined> =} callback
1090
- **/
1091
- account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined>;
1092
- /**
1093
- * The collections owned by any given account; set out this way so that collections owned by
1094
- * a single account can be enumerated.
1095
- *
1096
- * @param {[AccountId32Like, number]} arg
1097
- * @param {Callback<[] | undefined> =} callback
1098
- **/
1099
- collectionAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined>;
1100
- /**
1101
- * The items in existence and their ownership details.
1102
- * Stores collection roles as per account.
1103
- *
1104
- * @param {[number, AccountId32Like]} arg
1105
- * @param {Callback<PalletNftsBitFlagsCollectionRole | undefined> =} callback
1106
- **/
1107
- collectionRoleOf: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined>;
1108
- /**
1109
- * The items in existence and their ownership details.
1110
- *
1111
- * @param {[number, number]} arg
1112
- * @param {Callback<PalletNftsItemDetails | undefined> =} callback
1113
- **/
1114
- item: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemDetails | undefined>;
1115
- /**
1116
- * Metadata of a collection.
1117
- *
1118
- * @param {number} arg
1119
- * @param {Callback<PalletNftsCollectionMetadata | undefined> =} callback
1120
- **/
1121
- collectionMetadataOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionMetadata | undefined>;
1122
- /**
1123
- * Metadata of an item.
1124
- *
1125
- * @param {[number, number]} arg
1126
- * @param {Callback<PalletNftsItemMetadata | undefined> =} callback
1127
- **/
1128
- itemMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemMetadata | undefined>;
1129
- /**
1130
- * Attributes of a collection.
1131
- *
1132
- * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg
1133
- * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback
1134
- **/
1135
- attribute: GenericStorageQuery<(arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike]) => [Bytes, PalletNftsAttributeDeposit] | undefined>;
1136
- /**
1137
- * A price of an item.
1138
- *
1139
- * @param {[number, number]} arg
1140
- * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1141
- **/
1142
- itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined>;
1143
- /**
1144
- * Item attribute approvals.
1145
- *
1146
- * @param {[number, number]} arg
1147
- * @param {Callback<Array<AccountId32>> =} callback
1148
- **/
1149
- itemAttributesApprovalsOf: GenericStorageQuery<(arg: [number, number]) => Array<AccountId32>>;
1150
- /**
1151
- * Stores the `CollectionId` that is going to be used for the next collection.
1152
- * This gets incremented whenever a new collection is created.
1153
- *
1154
- * @param {Callback<number | undefined> =} callback
1155
- **/
1156
- nextCollectionId: GenericStorageQuery<() => number | undefined>;
1157
- /**
1158
- * Handles all the pending swaps.
1159
- *
1160
- * @param {[number, number]} arg
1161
- * @param {Callback<PalletNftsPendingSwap | undefined> =} callback
1162
- **/
1163
- pendingSwapOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsPendingSwap | undefined>;
1164
- /**
1165
- * Config of a collection.
1166
- *
1167
- * @param {number} arg
1168
- * @param {Callback<PalletNftsCollectionConfig | undefined> =} callback
1169
- **/
1170
- collectionConfigOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionConfig | undefined>;
1171
- /**
1172
- * Config of an item.
1173
- *
1174
- * @param {[number, number]} arg
1175
- * @param {Callback<PalletNftsItemConfig | undefined> =} callback
1176
- **/
1177
- itemConfigOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemConfig | undefined>;
1178
- /**
1179
- * Generic pallet storage query
1180
- **/
1181
- [storage: string]: GenericStorageQuery;
1182
- };
1183
- /**
1184
- * Pallet `ForeignAssets`'s storage queries
1185
- **/
1186
- foreignAssets: {
1187
- /**
1188
- * Details of an asset.
1189
- *
1190
- * @param {StagingXcmV3MultilocationMultiLocation} arg
1191
- * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1192
- **/
1193
- asset: GenericStorageQuery<(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined>;
1194
- /**
1195
- * The holdings of a specific account for a specific asset.
1196
- *
1197
- * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1198
- * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1199
- **/
1200
- account: GenericStorageQuery<(arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
1201
- /**
1202
- * Approved balance transfers. First balance is the amount approved for transfer. Second
1203
- * is the amount of `T::Currency` reserved for storing this.
1204
- * First key is the asset ID, second key is the owner and third key is the delegate.
1205
- *
1206
- * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg
1207
- * @param {Callback<PalletAssetsApproval | undefined> =} callback
1208
- **/
1209
- approvals: GenericStorageQuery<(arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined>;
1210
- /**
1211
- * Metadata of an asset.
1212
- *
1213
- * @param {StagingXcmV3MultilocationMultiLocation} arg
1214
- * @param {Callback<PalletAssetsAssetMetadata> =} callback
1215
- **/
1216
- metadata: GenericStorageQuery<(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata>;
1217
- /**
1218
- * Generic pallet storage query
1219
- **/
1220
- [storage: string]: GenericStorageQuery;
1221
- };
1222
- /**
1223
- * Pallet `NftFractionalization`'s storage queries
1224
- **/
1225
- nftFractionalization: {
1226
- /**
1227
- * Keeps track of the corresponding NFT ID, asset ID and amount minted.
1228
- *
1229
- * @param {[number, number]} arg
1230
- * @param {Callback<PalletNftFractionalizationDetails | undefined> =} callback
1231
- **/
1232
- nftToAsset: GenericStorageQuery<(arg: [number, number]) => PalletNftFractionalizationDetails | undefined>;
1233
- /**
1234
- * Generic pallet storage query
1235
- **/
1236
- [storage: string]: GenericStorageQuery;
1237
- };
1238
- /**
1239
- * Pallet `PoolAssets`'s storage queries
1240
- **/
1241
- poolAssets: {
1242
- /**
1243
- * Details of an asset.
1244
- *
1245
- * @param {number} arg
1246
- * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1247
- **/
1248
- asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined>;
1249
- /**
1250
- * The holdings of a specific account for a specific asset.
1251
- *
1252
- * @param {[number, AccountId32Like]} arg
1253
- * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1254
- **/
1255
- account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
1256
- /**
1257
- * Approved balance transfers. First balance is the amount approved for transfer. Second
1258
- * is the amount of `T::Currency` reserved for storing this.
1259
- * First key is the asset ID, second key is the owner and third key is the delegate.
1260
- *
1261
- * @param {[number, AccountId32Like, AccountId32Like]} arg
1262
- * @param {Callback<PalletAssetsApproval | undefined> =} callback
1263
- **/
1264
- approvals: GenericStorageQuery<(arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined>;
1265
- /**
1266
- * Metadata of an asset.
1267
- *
1268
- * @param {number} arg
1269
- * @param {Callback<PalletAssetsAssetMetadata> =} callback
1270
- **/
1271
- metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata>;
1272
- /**
1273
- * Generic pallet storage query
1274
- **/
1275
- [storage: string]: GenericStorageQuery;
1276
- };
1277
- /**
1278
- * Pallet `AssetConversion`'s storage queries
1279
- **/
1280
- assetConversion: {
1281
- /**
1282
- * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
1283
- * created rather than people sending tokens directly to a pool's public account.
1284
- *
1285
- * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg
1286
- * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
1287
- **/
1288
- pools: GenericStorageQuery<(arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]) => PalletAssetConversionPoolInfo | undefined>;
1289
- /**
1290
- * Stores the `PoolAssetId` that is going to be used for the next lp token.
1291
- * This gets incremented whenever a new lp pool is created.
1292
- *
1293
- * @param {Callback<number | undefined> =} callback
1294
- **/
1295
- nextPoolAssetId: GenericStorageQuery<() => number | undefined>;
1296
- /**
1297
- * Generic pallet storage query
1298
- **/
1299
- [storage: string]: GenericStorageQuery;
1300
- };
87
+ * The full account information for a particular account ID.
88
+ *
89
+ * @param {AccountId32Like} arg
90
+ * @param {Callback<FrameSystemAccountInfo> =} callback
91
+ **/
92
+ account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
93
+
94
+ /**
95
+ * Total extrinsics count for the current block.
96
+ *
97
+ * @param {Callback<number | undefined> =} callback
98
+ **/
99
+ extrinsicCount: GenericStorageQuery<() => number | undefined>;
100
+
101
+ /**
102
+ * The current weight for the block.
103
+ *
104
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
105
+ **/
106
+ blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
107
+
108
+ /**
109
+ * Total length (in bytes) for all extrinsics put together, for the current block.
110
+ *
111
+ * @param {Callback<number | undefined> =} callback
112
+ **/
113
+ allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
114
+
115
+ /**
116
+ * Map of block numbers to block hashes.
117
+ *
118
+ * @param {number} arg
119
+ * @param {Callback<H256> =} callback
120
+ **/
121
+ blockHash: GenericStorageQuery<(arg: number) => H256>;
122
+
123
+ /**
124
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
125
+ *
126
+ * @param {number} arg
127
+ * @param {Callback<Bytes> =} callback
128
+ **/
129
+ extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
130
+
131
+ /**
132
+ * The current block number being processed. Set by `execute_block`.
133
+ *
134
+ * @param {Callback<number> =} callback
135
+ **/
136
+ number: GenericStorageQuery<() => number>;
137
+
138
+ /**
139
+ * Hash of the previous block.
140
+ *
141
+ * @param {Callback<H256> =} callback
142
+ **/
143
+ parentHash: GenericStorageQuery<() => H256>;
144
+
145
+ /**
146
+ * Digest of the current block, also part of the block header.
147
+ *
148
+ * @param {Callback<Digest> =} callback
149
+ **/
150
+ digest: GenericStorageQuery<() => Digest>;
151
+
152
+ /**
153
+ * Events deposited for the current block.
154
+ *
155
+ * NOTE: The item is unbound and should therefore never be read on chain.
156
+ * It could otherwise inflate the PoV size of a block.
157
+ *
158
+ * Events have a large in-memory size. Box the events to not go out-of-memory
159
+ * just in case someone still reads them from within the runtime.
160
+ *
161
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
162
+ **/
163
+ events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
164
+
165
+ /**
166
+ * The number of events in the `Events<T>` list.
167
+ *
168
+ * @param {Callback<number> =} callback
169
+ **/
170
+ eventCount: GenericStorageQuery<() => number>;
171
+
172
+ /**
173
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
174
+ * of events in the `<Events<T>>` list.
175
+ *
176
+ * All topic vectors have deterministic storage locations depending on the topic. This
177
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
178
+ * in case of changes fetch the list of events of interest.
179
+ *
180
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
181
+ * the `EventIndex` then in case if the topic has the same contents on the next block
182
+ * no notification will be triggered thus the event might be lost.
183
+ *
184
+ * @param {H256} arg
185
+ * @param {Callback<Array<[number, number]>> =} callback
186
+ **/
187
+ eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
188
+
189
+ /**
190
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
191
+ *
192
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
193
+ **/
194
+ lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
195
+
196
+ /**
197
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
198
+ *
199
+ * @param {Callback<boolean> =} callback
200
+ **/
201
+ upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
202
+
203
+ /**
204
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
205
+ * (default) if not.
206
+ *
207
+ * @param {Callback<boolean> =} callback
208
+ **/
209
+ upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
210
+
211
+ /**
212
+ * The execution phase of the block.
213
+ *
214
+ * @param {Callback<Phase | undefined> =} callback
215
+ **/
216
+ executionPhase: GenericStorageQuery<() => Phase | undefined>;
217
+
218
+ /**
219
+ * Generic pallet storage query
220
+ **/
221
+ [storage: string]: GenericStorageQuery;
222
+ };
223
+ /**
224
+ * Pallet `ParachainSystem`'s storage queries
225
+ **/
226
+ parachainSystem: {
227
+ /**
228
+ * Latest included block descendants the runtime accepted. In other words, these are
229
+ * ancestors of the currently executing block which have not been included in the observed
230
+ * relay-chain state.
231
+ *
232
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
233
+ * in the pallet.
234
+ *
235
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
236
+ **/
237
+ unincludedSegment: GenericStorageQuery<() => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
238
+
239
+ /**
240
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
241
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
242
+ * respect to relay chain constraints.
243
+ *
244
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
245
+ **/
246
+ aggregatedUnincludedSegment: GenericStorageQuery<
247
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
248
+ >;
249
+
250
+ /**
251
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
252
+ * applied.
253
+ *
254
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
255
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
256
+ * with the new validation code. This concludes the upgrade process.
257
+ *
258
+ * @param {Callback<Bytes> =} callback
259
+ **/
260
+ pendingValidationCode: GenericStorageQuery<() => Bytes>;
261
+
262
+ /**
263
+ * Validation code that is set by the parachain and is to be communicated to collator and
264
+ * consequently the relay-chain.
265
+ *
266
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
267
+ * the value.
268
+ *
269
+ * @param {Callback<Bytes | undefined> =} callback
270
+ **/
271
+ newValidationCode: GenericStorageQuery<() => Bytes | undefined>;
272
+
273
+ /**
274
+ * The [`PersistedValidationData`] set for this block.
275
+ * This value is expected to be set only once per block and it's never stored
276
+ * in the trie.
277
+ *
278
+ * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
279
+ **/
280
+ validationData: GenericStorageQuery<() => PolkadotPrimitivesV6PersistedValidationData | undefined>;
281
+
282
+ /**
283
+ * Were the validation data set to notify the relay chain?
284
+ *
285
+ * @param {Callback<boolean> =} callback
286
+ **/
287
+ didSetValidationCode: GenericStorageQuery<() => boolean>;
288
+
289
+ /**
290
+ * The relay chain block number associated with the last parachain block.
291
+ *
292
+ * This is updated in `on_finalize`.
293
+ *
294
+ * @param {Callback<number> =} callback
295
+ **/
296
+ lastRelayChainBlockNumber: GenericStorageQuery<() => number>;
297
+
298
+ /**
299
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
300
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
301
+ * candidate will be invalid.
302
+ *
303
+ * This storage item is a mirror of the corresponding value for the current parachain from the
304
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
305
+ * set after the inherent.
306
+ *
307
+ * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
308
+ **/
309
+ upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
310
+
311
+ /**
312
+ * Optional upgrade go-ahead signal from the relay-chain.
313
+ *
314
+ * This storage item is a mirror of the corresponding value for the current parachain from the
315
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
316
+ * set after the inherent.
317
+ *
318
+ * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
319
+ **/
320
+ upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
321
+
322
+ /**
323
+ * The state proof for the last relay parent block.
324
+ *
325
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
326
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
327
+ *
328
+ * This data is also absent from the genesis.
329
+ *
330
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
331
+ **/
332
+ relayStateProof: GenericStorageQuery<() => SpTrieStorageProof | undefined>;
333
+
334
+ /**
335
+ * The snapshot of some state related to messaging relevant to the current parachain as per
336
+ * the relay parent.
337
+ *
338
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
339
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
340
+ *
341
+ * This data is also absent from the genesis.
342
+ *
343
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
344
+ **/
345
+ relevantMessagingState: GenericStorageQuery<
346
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
347
+ >;
348
+
349
+ /**
350
+ * The parachain host configuration that was obtained from the relay parent.
351
+ *
352
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
353
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
354
+ *
355
+ * This data is also absent from the genesis.
356
+ *
357
+ * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
358
+ **/
359
+ hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
360
+
361
+ /**
362
+ * The last downward message queue chain head we have observed.
363
+ *
364
+ * This value is loaded before and saved after processing inbound downward messages carried
365
+ * by the system inherent.
366
+ *
367
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
368
+ **/
369
+ lastDmqMqcHead: GenericStorageQuery<() => CumulusPrimitivesParachainInherentMessageQueueChain>;
370
+
371
+ /**
372
+ * The message queue chain heads we have observed per each channel incoming channel.
373
+ *
374
+ * This value is loaded before and saved after processing inbound downward messages carried
375
+ * by the system inherent.
376
+ *
377
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
378
+ **/
379
+ lastHrmpMqcHeads: GenericStorageQuery<
380
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
381
+ >;
382
+
383
+ /**
384
+ * Number of downward messages processed in a block.
385
+ *
386
+ * This will be cleared in `on_initialize` of each new block.
387
+ *
388
+ * @param {Callback<number> =} callback
389
+ **/
390
+ processedDownwardMessages: GenericStorageQuery<() => number>;
391
+
392
+ /**
393
+ * HRMP watermark that was set in a block.
394
+ *
395
+ * This will be cleared in `on_initialize` of each new block.
396
+ *
397
+ * @param {Callback<number> =} callback
398
+ **/
399
+ hrmpWatermark: GenericStorageQuery<() => number>;
400
+
401
+ /**
402
+ * HRMP messages that were sent in a block.
403
+ *
404
+ * This will be cleared in `on_initialize` of each new block.
405
+ *
406
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
407
+ **/
408
+ hrmpOutboundMessages: GenericStorageQuery<() => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
409
+
410
+ /**
411
+ * Upward messages that were sent in a block.
412
+ *
413
+ * This will be cleared in `on_initialize` of each new block.
414
+ *
415
+ * @param {Callback<Array<Bytes>> =} callback
416
+ **/
417
+ upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
418
+
419
+ /**
420
+ * Upward messages that are still pending and not yet send to the relay chain.
421
+ *
422
+ * @param {Callback<Array<Bytes>> =} callback
423
+ **/
424
+ pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
425
+
426
+ /**
427
+ * The factor to multiply the base delivery fee by for UMP.
428
+ *
429
+ * @param {Callback<FixedU128> =} callback
430
+ **/
431
+ upwardDeliveryFeeFactor: GenericStorageQuery<() => FixedU128>;
432
+
433
+ /**
434
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
435
+ * announcing the weight of `on_initialize` and `on_finalize`.
436
+ *
437
+ * @param {Callback<number> =} callback
438
+ **/
439
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<() => number>;
440
+
441
+ /**
442
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
443
+ * overrides the amount set in the Config trait.
444
+ *
445
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
446
+ **/
447
+ reservedXcmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
448
+
449
+ /**
450
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
451
+ * overrides the amount set in the Config trait.
452
+ *
453
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
454
+ **/
455
+ reservedDmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
456
+
457
+ /**
458
+ * The next authorized upgrade, if there is one.
459
+ *
460
+ * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
461
+ **/
462
+ authorizedUpgrade: GenericStorageQuery<() => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
463
+
464
+ /**
465
+ * A custom head data that should be returned as result of `validate_block`.
466
+ *
467
+ * See `Pallet::set_custom_validation_head_data` for more information.
468
+ *
469
+ * @param {Callback<Bytes | undefined> =} callback
470
+ **/
471
+ customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
472
+
473
+ /**
474
+ * Generic pallet storage query
475
+ **/
476
+ [storage: string]: GenericStorageQuery;
477
+ };
478
+ /**
479
+ * Pallet `Timestamp`'s storage queries
480
+ **/
481
+ timestamp: {
482
+ /**
483
+ * The current time for the current block.
484
+ *
485
+ * @param {Callback<bigint> =} callback
486
+ **/
487
+ now: GenericStorageQuery<() => bigint>;
488
+
489
+ /**
490
+ * Whether the timestamp has been updated in this block.
491
+ *
492
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
493
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
494
+ *
495
+ * @param {Callback<boolean> =} callback
496
+ **/
497
+ didUpdate: GenericStorageQuery<() => boolean>;
498
+
499
+ /**
500
+ * Generic pallet storage query
501
+ **/
502
+ [storage: string]: GenericStorageQuery;
503
+ };
504
+ /**
505
+ * Pallet `ParachainInfo`'s storage queries
506
+ **/
507
+ parachainInfo: {
508
+ /**
509
+ *
510
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
511
+ **/
512
+ parachainId: GenericStorageQuery<() => PolkadotParachainPrimitivesPrimitivesId>;
513
+
514
+ /**
515
+ * Generic pallet storage query
516
+ **/
517
+ [storage: string]: GenericStorageQuery;
518
+ };
519
+ /**
520
+ * Pallet `Balances`'s storage queries
521
+ **/
522
+ balances: {
523
+ /**
524
+ * The total units issued in the system.
525
+ *
526
+ * @param {Callback<bigint> =} callback
527
+ **/
528
+ totalIssuance: GenericStorageQuery<() => bigint>;
529
+
530
+ /**
531
+ * The total units of outstanding deactivated balance in the system.
532
+ *
533
+ * @param {Callback<bigint> =} callback
534
+ **/
535
+ inactiveIssuance: GenericStorageQuery<() => bigint>;
536
+
537
+ /**
538
+ * The Balances pallet example of storing the balance of an account.
539
+ *
540
+ * # Example
541
+ *
542
+ * ```nocompile
543
+ * impl pallet_balances::Config for Runtime {
544
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
545
+ * }
546
+ * ```
547
+ *
548
+ * You can also store the balance of an account in the `System` pallet.
549
+ *
550
+ * # Example
551
+ *
552
+ * ```nocompile
553
+ * impl pallet_balances::Config for Runtime {
554
+ * type AccountStore = System
555
+ * }
556
+ * ```
557
+ *
558
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
559
+ * `frame_system` data alongside the account data contrary to storing account balances in the
560
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
561
+ * NOTE: This is only used in the case that this pallet is used to store balances.
562
+ *
563
+ * @param {AccountId32Like} arg
564
+ * @param {Callback<PalletBalancesAccountData> =} callback
565
+ **/
566
+ account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
567
+
568
+ /**
569
+ * Any liquidity locks on some account balances.
570
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
571
+ *
572
+ * @param {AccountId32Like} arg
573
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
574
+ **/
575
+ locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
576
+
577
+ /**
578
+ * Named reserves on some account balances.
579
+ *
580
+ * @param {AccountId32Like} arg
581
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
582
+ **/
583
+ reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
584
+
585
+ /**
586
+ * Holds on account balances.
587
+ *
588
+ * @param {AccountId32Like} arg
589
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
590
+ **/
591
+ holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
592
+
593
+ /**
594
+ * Freeze locks on account balances.
595
+ *
596
+ * @param {AccountId32Like} arg
597
+ * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
598
+ **/
599
+ freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount002>>;
600
+
601
+ /**
602
+ * Generic pallet storage query
603
+ **/
604
+ [storage: string]: GenericStorageQuery;
605
+ };
606
+ /**
607
+ * Pallet `TransactionPayment`'s storage queries
608
+ **/
609
+ transactionPayment: {
610
+ /**
611
+ *
612
+ * @param {Callback<FixedU128> =} callback
613
+ **/
614
+ nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
615
+
616
+ /**
617
+ *
618
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
619
+ **/
620
+ storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
621
+
622
+ /**
623
+ * Generic pallet storage query
624
+ **/
625
+ [storage: string]: GenericStorageQuery;
626
+ };
627
+ /**
628
+ * Pallet `Authorship`'s storage queries
629
+ **/
630
+ authorship: {
631
+ /**
632
+ * Author of current block.
633
+ *
634
+ * @param {Callback<AccountId32 | undefined> =} callback
635
+ **/
636
+ author: GenericStorageQuery<() => AccountId32 | undefined>;
637
+
638
+ /**
639
+ * Generic pallet storage query
640
+ **/
641
+ [storage: string]: GenericStorageQuery;
642
+ };
643
+ /**
644
+ * Pallet `CollatorSelection`'s storage queries
645
+ **/
646
+ collatorSelection: {
647
+ /**
648
+ * The invulnerable, permissioned collators. This list must be sorted.
649
+ *
650
+ * @param {Callback<Array<AccountId32>> =} callback
651
+ **/
652
+ invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
653
+
654
+ /**
655
+ * The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
656
+ * mutually exclusive.
657
+ *
658
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
659
+ **/
660
+ candidates: GenericStorageQuery<() => Array<PalletCollatorSelectionCandidateInfo>>;
661
+
662
+ /**
663
+ * Last block authored by collator.
664
+ *
665
+ * @param {AccountId32Like} arg
666
+ * @param {Callback<number> =} callback
667
+ **/
668
+ lastAuthoredBlock: GenericStorageQuery<(arg: AccountId32Like) => number>;
669
+
670
+ /**
671
+ * Desired number of candidates.
672
+ *
673
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
674
+ *
675
+ * @param {Callback<number> =} callback
676
+ **/
677
+ desiredCandidates: GenericStorageQuery<() => number>;
678
+
679
+ /**
680
+ * Fixed amount to deposit to become a collator.
681
+ *
682
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
683
+ *
684
+ * @param {Callback<bigint> =} callback
685
+ **/
686
+ candidacyBond: GenericStorageQuery<() => bigint>;
687
+
688
+ /**
689
+ * Generic pallet storage query
690
+ **/
691
+ [storage: string]: GenericStorageQuery;
692
+ };
693
+ /**
694
+ * Pallet `Session`'s storage queries
695
+ **/
696
+ session: {
697
+ /**
698
+ * The current set of validators.
699
+ *
700
+ * @param {Callback<Array<AccountId32>> =} callback
701
+ **/
702
+ validators: GenericStorageQuery<() => Array<AccountId32>>;
703
+
704
+ /**
705
+ * Current index of the session.
706
+ *
707
+ * @param {Callback<number> =} callback
708
+ **/
709
+ currentIndex: GenericStorageQuery<() => number>;
710
+
711
+ /**
712
+ * True if the underlying economic identities or weighting behind the validators
713
+ * has changed in the queued validator set.
714
+ *
715
+ * @param {Callback<boolean> =} callback
716
+ **/
717
+ queuedChanged: GenericStorageQuery<() => boolean>;
718
+
719
+ /**
720
+ * The queued keys for the next session. When the next session begins, these keys
721
+ * will be used to determine the validator's session keys.
722
+ *
723
+ * @param {Callback<Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>> =} callback
724
+ **/
725
+ queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AssetHubKusamaRuntimeSessionKeys]>>;
726
+
727
+ /**
728
+ * Indices of disabled validators.
729
+ *
730
+ * The vec is always kept sorted so that we can find whether a given validator is
731
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
732
+ * a new set of identities.
733
+ *
734
+ * @param {Callback<Array<number>> =} callback
735
+ **/
736
+ disabledValidators: GenericStorageQuery<() => Array<number>>;
737
+
738
+ /**
739
+ * The next session keys for a validator.
740
+ *
741
+ * @param {AccountId32Like} arg
742
+ * @param {Callback<AssetHubKusamaRuntimeSessionKeys | undefined> =} callback
743
+ **/
744
+ nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AssetHubKusamaRuntimeSessionKeys | undefined>;
745
+
746
+ /**
747
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
748
+ *
749
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
750
+ * @param {Callback<AccountId32 | undefined> =} callback
751
+ **/
752
+ keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
753
+
754
+ /**
755
+ * Generic pallet storage query
756
+ **/
757
+ [storage: string]: GenericStorageQuery;
758
+ };
759
+ /**
760
+ * Pallet `Aura`'s storage queries
761
+ **/
762
+ aura: {
763
+ /**
764
+ * The current authority set.
765
+ *
766
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
767
+ **/
768
+ authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
769
+
770
+ /**
771
+ * The current slot of this block.
772
+ *
773
+ * This will be set in `on_initialize`.
774
+ *
775
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
776
+ **/
777
+ currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
778
+
779
+ /**
780
+ * Generic pallet storage query
781
+ **/
782
+ [storage: string]: GenericStorageQuery;
783
+ };
784
+ /**
785
+ * Pallet `AuraExt`'s storage queries
786
+ **/
787
+ auraExt: {
788
+ /**
789
+ * Serves as cache for the authorities.
790
+ *
791
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
792
+ * but we require the old authorities to verify the seal when validating a PoV. This will
793
+ * always be updated to the latest AuRa authorities in `on_finalize`.
794
+ *
795
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
796
+ **/
797
+ authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
798
+
799
+ /**
800
+ * Current slot paired with a number of authored blocks.
801
+ *
802
+ * Updated on each block initialization.
803
+ *
804
+ * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
805
+ **/
806
+ slotInfo: GenericStorageQuery<() => [SpConsensusSlotsSlot, number] | undefined>;
807
+
808
+ /**
809
+ * Generic pallet storage query
810
+ **/
811
+ [storage: string]: GenericStorageQuery;
812
+ };
813
+ /**
814
+ * Pallet `XcmpQueue`'s storage queries
815
+ **/
816
+ xcmpQueue: {
817
+ /**
818
+ * Status of the inbound XCMP channels.
819
+ *
820
+ * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
821
+ **/
822
+ inboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
823
+
824
+ /**
825
+ * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
826
+ *
827
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
828
+ * @param {Callback<Bytes> =} callback
829
+ **/
830
+ inboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
831
+
832
+ /**
833
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
834
+ * and last outbound message. If the two indices are equal, then it indicates an empty
835
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
836
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
837
+ * case of the need to send a high-priority signal message this block.
838
+ * The bool is true if there is a signal message waiting to be sent.
839
+ *
840
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
841
+ **/
842
+ outboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
843
+
844
+ /**
845
+ * The messages outbound in a given XCMP channel.
846
+ *
847
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
848
+ * @param {Callback<Bytes> =} callback
849
+ **/
850
+ outboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
851
+
852
+ /**
853
+ * Any signal messages waiting to be sent.
854
+ *
855
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
856
+ * @param {Callback<Bytes> =} callback
857
+ **/
858
+ signalMessages: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes>;
859
+
860
+ /**
861
+ * The configuration which controls the dynamics of the outbound queue.
862
+ *
863
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
864
+ **/
865
+ queueConfig: GenericStorageQuery<() => CumulusPalletXcmpQueueQueueConfigData>;
866
+
867
+ /**
868
+ * The messages that exceeded max individual message weight budget.
869
+ *
870
+ * These message stay in this storage map until they are manually dispatched via
871
+ * `service_overweight`.
872
+ *
873
+ * @param {bigint} arg
874
+ * @param {Callback<[PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined> =} callback
875
+ **/
876
+ overweight: GenericStorageQuery<
877
+ (arg: bigint) => [PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined
878
+ >;
879
+
880
+ /**
881
+ * Counter for the related counted storage map
882
+ *
883
+ * @param {Callback<number> =} callback
884
+ **/
885
+ counterForOverweight: GenericStorageQuery<() => number>;
886
+
887
+ /**
888
+ * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
889
+ * available free overweight index.
890
+ *
891
+ * @param {Callback<bigint> =} callback
892
+ **/
893
+ overweightCount: GenericStorageQuery<() => bigint>;
894
+
895
+ /**
896
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
897
+ *
898
+ * @param {Callback<boolean> =} callback
899
+ **/
900
+ queueSuspended: GenericStorageQuery<() => boolean>;
901
+
902
+ /**
903
+ * The factor to multiply the base delivery fee by.
904
+ *
905
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
906
+ * @param {Callback<FixedU128> =} callback
907
+ **/
908
+ deliveryFeeFactor: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128>;
909
+
910
+ /**
911
+ * Generic pallet storage query
912
+ **/
913
+ [storage: string]: GenericStorageQuery;
914
+ };
915
+ /**
916
+ * Pallet `PolkadotXcm`'s storage queries
917
+ **/
918
+ polkadotXcm: {
919
+ /**
920
+ * The latest available query index.
921
+ *
922
+ * @param {Callback<bigint> =} callback
923
+ **/
924
+ queryCounter: GenericStorageQuery<() => bigint>;
925
+
926
+ /**
927
+ * The ongoing queries.
928
+ *
929
+ * @param {bigint} arg
930
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
931
+ **/
932
+ queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
933
+
934
+ /**
935
+ * The existing asset traps.
936
+ *
937
+ * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
938
+ * times this pair has been trapped (usually just 1 if it exists at all).
939
+ *
940
+ * @param {H256} arg
941
+ * @param {Callback<number> =} callback
942
+ **/
943
+ assetTraps: GenericStorageQuery<(arg: H256) => number>;
944
+
945
+ /**
946
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
947
+ * then the destinations whose XCM version is unknown are considered unreachable.
948
+ *
949
+ * @param {Callback<number | undefined> =} callback
950
+ **/
951
+ safeXcmVersion: GenericStorageQuery<() => number | undefined>;
952
+
953
+ /**
954
+ * The Latest versions that we know various locations support.
955
+ *
956
+ * @param {[number, XcmVersionedMultiLocation]} arg
957
+ * @param {Callback<number | undefined> =} callback
958
+ **/
959
+ supportedVersion: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => number | undefined>;
960
+
961
+ /**
962
+ * All locations that we have requested version notifications from.
963
+ *
964
+ * @param {[number, XcmVersionedMultiLocation]} arg
965
+ * @param {Callback<bigint | undefined> =} callback
966
+ **/
967
+ versionNotifiers: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => bigint | undefined>;
968
+
969
+ /**
970
+ * The target locations that are subscribed to our version changes, as well as the most recent
971
+ * of our versions we informed them of.
972
+ *
973
+ * @param {[number, XcmVersionedMultiLocation]} arg
974
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
975
+ **/
976
+ versionNotifyTargets: GenericStorageQuery<
977
+ (arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined
978
+ >;
979
+
980
+ /**
981
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
982
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
983
+ * which is used as a prioritization.
984
+ *
985
+ * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
986
+ **/
987
+ versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedMultiLocation, number]>>;
988
+
989
+ /**
990
+ * The current migration's stage, if any.
991
+ *
992
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
993
+ **/
994
+ currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
995
+
996
+ /**
997
+ * Fungible assets which we know are locked on a remote chain.
998
+ *
999
+ * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
1000
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1001
+ **/
1002
+ remoteLockedFungibles: GenericStorageQuery<
1003
+ (arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined
1004
+ >;
1005
+
1006
+ /**
1007
+ * Fungible assets which we know are locked on this chain.
1008
+ *
1009
+ * @param {AccountId32Like} arg
1010
+ * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
1011
+ **/
1012
+ lockedFungibles: GenericStorageQuery<
1013
+ (arg: AccountId32Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined
1014
+ >;
1015
+
1016
+ /**
1017
+ * Global suspension state of the XCM executor.
1018
+ *
1019
+ * @param {Callback<boolean> =} callback
1020
+ **/
1021
+ xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
1022
+
1023
+ /**
1024
+ * Generic pallet storage query
1025
+ **/
1026
+ [storage: string]: GenericStorageQuery;
1027
+ };
1028
+ /**
1029
+ * Pallet `DmpQueue`'s storage queries
1030
+ **/
1031
+ dmpQueue: {
1032
+ /**
1033
+ * The configuration.
1034
+ *
1035
+ * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
1036
+ **/
1037
+ configuration: GenericStorageQuery<() => CumulusPalletDmpQueueConfigData>;
1038
+
1039
+ /**
1040
+ * The page index.
1041
+ *
1042
+ * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
1043
+ **/
1044
+ pageIndex: GenericStorageQuery<() => CumulusPalletDmpQueuePageIndexData>;
1045
+
1046
+ /**
1047
+ * The queue pages.
1048
+ *
1049
+ * @param {number} arg
1050
+ * @param {Callback<Array<[number, Bytes]>> =} callback
1051
+ **/
1052
+ pages: GenericStorageQuery<(arg: number) => Array<[number, Bytes]>>;
1053
+
1054
+ /**
1055
+ * The overweight messages.
1056
+ *
1057
+ * @param {bigint} arg
1058
+ * @param {Callback<[number, Bytes] | undefined> =} callback
1059
+ **/
1060
+ overweight: GenericStorageQuery<(arg: bigint) => [number, Bytes] | undefined>;
1061
+
1062
+ /**
1063
+ * Counter for the related counted storage map
1064
+ *
1065
+ * @param {Callback<number> =} callback
1066
+ **/
1067
+ counterForOverweight: GenericStorageQuery<() => number>;
1068
+
1069
+ /**
1070
+ * Generic pallet storage query
1071
+ **/
1072
+ [storage: string]: GenericStorageQuery;
1073
+ };
1074
+ /**
1075
+ * Pallet `ToPolkadotXcmRouter`'s storage queries
1076
+ **/
1077
+ toPolkadotXcmRouter: {
1078
+ /**
1079
+ * Bridge that we are using.
1080
+ *
1081
+ * **bridges-v1** assumptions: all outbound messages through this router are using single lane
1082
+ * and to single remote consensus. If there is some other remote consensus that uses the same
1083
+ * bridge hub, the separate pallet instance shall be used, In `v2` we'll have all required
1084
+ * primitives (lane-id aka bridge-id, derived from XCM locations) to support multiple bridges
1085
+ * by the same pallet instance.
1086
+ *
1087
+ * @param {Callback<BpXcmBridgeHubRouterBridgeState> =} callback
1088
+ **/
1089
+ bridge: GenericStorageQuery<() => BpXcmBridgeHubRouterBridgeState>;
1090
+
1091
+ /**
1092
+ * Generic pallet storage query
1093
+ **/
1094
+ [storage: string]: GenericStorageQuery;
1095
+ };
1096
+ /**
1097
+ * Pallet `Multisig`'s storage queries
1098
+ **/
1099
+ multisig: {
1100
+ /**
1101
+ * The set of open multisig operations.
1102
+ *
1103
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
1104
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1105
+ **/
1106
+ multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
1107
+
1108
+ /**
1109
+ * Generic pallet storage query
1110
+ **/
1111
+ [storage: string]: GenericStorageQuery;
1112
+ };
1113
+ /**
1114
+ * Pallet `Proxy`'s storage queries
1115
+ **/
1116
+ proxy: {
1117
+ /**
1118
+ * The set of account proxies. Maps the account which has delegated to the accounts
1119
+ * which are being delegated to, together with the amount held on deposit.
1120
+ *
1121
+ * @param {AccountId32Like} arg
1122
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1123
+ **/
1124
+ proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
1125
+
1126
+ /**
1127
+ * The announcements made by the proxy (key).
1128
+ *
1129
+ * @param {AccountId32Like} arg
1130
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1131
+ **/
1132
+ announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
1133
+
1134
+ /**
1135
+ * Generic pallet storage query
1136
+ **/
1137
+ [storage: string]: GenericStorageQuery;
1138
+ };
1139
+ /**
1140
+ * Pallet `Assets`'s storage queries
1141
+ **/
1142
+ assets: {
1143
+ /**
1144
+ * Details of an asset.
1145
+ *
1146
+ * @param {number} arg
1147
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1148
+ **/
1149
+ asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined>;
1150
+
1151
+ /**
1152
+ * The holdings of a specific account for a specific asset.
1153
+ *
1154
+ * @param {[number, AccountId32Like]} arg
1155
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1156
+ **/
1157
+ account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
1158
+
1159
+ /**
1160
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1161
+ * is the amount of `T::Currency` reserved for storing this.
1162
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1163
+ *
1164
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
1165
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1166
+ **/
1167
+ approvals: GenericStorageQuery<
1168
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined
1169
+ >;
1170
+
1171
+ /**
1172
+ * Metadata of an asset.
1173
+ *
1174
+ * @param {number} arg
1175
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1176
+ **/
1177
+ metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata>;
1178
+
1179
+ /**
1180
+ * Generic pallet storage query
1181
+ **/
1182
+ [storage: string]: GenericStorageQuery;
1183
+ };
1184
+ /**
1185
+ * Pallet `Uniques`'s storage queries
1186
+ **/
1187
+ uniques: {
1188
+ /**
1189
+ * Details of a collection.
1190
+ *
1191
+ * @param {number} arg
1192
+ * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
1193
+ **/
1194
+ class: GenericStorageQuery<(arg: number) => PalletUniquesCollectionDetails | undefined>;
1195
+
1196
+ /**
1197
+ * The collection, if any, of which an account is willing to take ownership.
1198
+ *
1199
+ * @param {AccountId32Like} arg
1200
+ * @param {Callback<number | undefined> =} callback
1201
+ **/
1202
+ ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
1203
+
1204
+ /**
1205
+ * The items held by any given account; set out this way so that items owned by a single
1206
+ * account can be enumerated.
1207
+ *
1208
+ * @param {[AccountId32Like, number, number]} arg
1209
+ * @param {Callback<[] | undefined> =} callback
1210
+ **/
1211
+ account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined>;
1212
+
1213
+ /**
1214
+ * The collections owned by any given account; set out this way so that collections owned by
1215
+ * a single account can be enumerated.
1216
+ *
1217
+ * @param {[AccountId32Like, number]} arg
1218
+ * @param {Callback<[] | undefined> =} callback
1219
+ **/
1220
+ classAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined>;
1221
+
1222
+ /**
1223
+ * The items in existence and their ownership details.
1224
+ *
1225
+ * @param {[number, number]} arg
1226
+ * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
1227
+ **/
1228
+ asset: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemDetails | undefined>;
1229
+
1230
+ /**
1231
+ * Metadata of a collection.
1232
+ *
1233
+ * @param {number} arg
1234
+ * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
1235
+ **/
1236
+ classMetadataOf: GenericStorageQuery<(arg: number) => PalletUniquesCollectionMetadata | undefined>;
1237
+
1238
+ /**
1239
+ * Metadata of an item.
1240
+ *
1241
+ * @param {[number, number]} arg
1242
+ * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
1243
+ **/
1244
+ instanceMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletUniquesItemMetadata | undefined>;
1245
+
1246
+ /**
1247
+ * Attributes of a collection.
1248
+ *
1249
+ * @param {[number, number | undefined, BytesLike]} arg
1250
+ * @param {Callback<[Bytes, bigint] | undefined> =} callback
1251
+ **/
1252
+ attribute: GenericStorageQuery<(arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined>;
1253
+
1254
+ /**
1255
+ * Price of an asset instance.
1256
+ *
1257
+ * @param {[number, number]} arg
1258
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1259
+ **/
1260
+ itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined>;
1261
+
1262
+ /**
1263
+ * Keeps track of the number of items a collection might have.
1264
+ *
1265
+ * @param {number} arg
1266
+ * @param {Callback<number | undefined> =} callback
1267
+ **/
1268
+ collectionMaxSupply: GenericStorageQuery<(arg: number) => number | undefined>;
1269
+
1270
+ /**
1271
+ * Generic pallet storage query
1272
+ **/
1273
+ [storage: string]: GenericStorageQuery;
1274
+ };
1275
+ /**
1276
+ * Pallet `Nfts`'s storage queries
1277
+ **/
1278
+ nfts: {
1279
+ /**
1280
+ * Details of a collection.
1281
+ *
1282
+ * @param {number} arg
1283
+ * @param {Callback<PalletNftsCollectionDetails | undefined> =} callback
1284
+ **/
1285
+ collection: GenericStorageQuery<(arg: number) => PalletNftsCollectionDetails | undefined>;
1286
+
1287
+ /**
1288
+ * The collection, if any, of which an account is willing to take ownership.
1289
+ *
1290
+ * @param {AccountId32Like} arg
1291
+ * @param {Callback<number | undefined> =} callback
1292
+ **/
1293
+ ownershipAcceptance: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
1294
+
1295
+ /**
1296
+ * The items held by any given account; set out this way so that items owned by a single
1297
+ * account can be enumerated.
1298
+ *
1299
+ * @param {[AccountId32Like, number, number]} arg
1300
+ * @param {Callback<[] | undefined> =} callback
1301
+ **/
1302
+ account: GenericStorageQuery<(arg: [AccountId32Like, number, number]) => [] | undefined>;
1303
+
1304
+ /**
1305
+ * The collections owned by any given account; set out this way so that collections owned by
1306
+ * a single account can be enumerated.
1307
+ *
1308
+ * @param {[AccountId32Like, number]} arg
1309
+ * @param {Callback<[] | undefined> =} callback
1310
+ **/
1311
+ collectionAccount: GenericStorageQuery<(arg: [AccountId32Like, number]) => [] | undefined>;
1312
+
1313
+ /**
1314
+ * The items in existence and their ownership details.
1315
+ * Stores collection roles as per account.
1316
+ *
1317
+ * @param {[number, AccountId32Like]} arg
1318
+ * @param {Callback<PalletNftsBitFlagsCollectionRole | undefined> =} callback
1319
+ **/
1320
+ collectionRoleOf: GenericStorageQuery<
1321
+ (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined
1322
+ >;
1323
+
1324
+ /**
1325
+ * The items in existence and their ownership details.
1326
+ *
1327
+ * @param {[number, number]} arg
1328
+ * @param {Callback<PalletNftsItemDetails | undefined> =} callback
1329
+ **/
1330
+ item: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemDetails | undefined>;
1331
+
1332
+ /**
1333
+ * Metadata of a collection.
1334
+ *
1335
+ * @param {number} arg
1336
+ * @param {Callback<PalletNftsCollectionMetadata | undefined> =} callback
1337
+ **/
1338
+ collectionMetadataOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionMetadata | undefined>;
1339
+
1340
+ /**
1341
+ * Metadata of an item.
1342
+ *
1343
+ * @param {[number, number]} arg
1344
+ * @param {Callback<PalletNftsItemMetadata | undefined> =} callback
1345
+ **/
1346
+ itemMetadataOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemMetadata | undefined>;
1347
+
1348
+ /**
1349
+ * Attributes of a collection.
1350
+ *
1351
+ * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg
1352
+ * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback
1353
+ **/
1354
+ attribute: GenericStorageQuery<
1355
+ (
1356
+ arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike],
1357
+ ) => [Bytes, PalletNftsAttributeDeposit] | undefined
1358
+ >;
1359
+
1360
+ /**
1361
+ * A price of an item.
1362
+ *
1363
+ * @param {[number, number]} arg
1364
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
1365
+ **/
1366
+ itemPriceOf: GenericStorageQuery<(arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined>;
1367
+
1368
+ /**
1369
+ * Item attribute approvals.
1370
+ *
1371
+ * @param {[number, number]} arg
1372
+ * @param {Callback<Array<AccountId32>> =} callback
1373
+ **/
1374
+ itemAttributesApprovalsOf: GenericStorageQuery<(arg: [number, number]) => Array<AccountId32>>;
1375
+
1376
+ /**
1377
+ * Stores the `CollectionId` that is going to be used for the next collection.
1378
+ * This gets incremented whenever a new collection is created.
1379
+ *
1380
+ * @param {Callback<number | undefined> =} callback
1381
+ **/
1382
+ nextCollectionId: GenericStorageQuery<() => number | undefined>;
1383
+
1384
+ /**
1385
+ * Handles all the pending swaps.
1386
+ *
1387
+ * @param {[number, number]} arg
1388
+ * @param {Callback<PalletNftsPendingSwap | undefined> =} callback
1389
+ **/
1390
+ pendingSwapOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsPendingSwap | undefined>;
1391
+
1392
+ /**
1393
+ * Config of a collection.
1394
+ *
1395
+ * @param {number} arg
1396
+ * @param {Callback<PalletNftsCollectionConfig | undefined> =} callback
1397
+ **/
1398
+ collectionConfigOf: GenericStorageQuery<(arg: number) => PalletNftsCollectionConfig | undefined>;
1399
+
1400
+ /**
1401
+ * Config of an item.
1402
+ *
1403
+ * @param {[number, number]} arg
1404
+ * @param {Callback<PalletNftsItemConfig | undefined> =} callback
1405
+ **/
1406
+ itemConfigOf: GenericStorageQuery<(arg: [number, number]) => PalletNftsItemConfig | undefined>;
1407
+
1408
+ /**
1409
+ * Generic pallet storage query
1410
+ **/
1411
+ [storage: string]: GenericStorageQuery;
1412
+ };
1413
+ /**
1414
+ * Pallet `ForeignAssets`'s storage queries
1415
+ **/
1416
+ foreignAssets: {
1417
+ /**
1418
+ * Details of an asset.
1419
+ *
1420
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
1421
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1422
+ **/
1423
+ asset: GenericStorageQuery<(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetDetails | undefined>;
1424
+
1425
+ /**
1426
+ * The holdings of a specific account for a specific asset.
1427
+ *
1428
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like]} arg
1429
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1430
+ **/
1431
+ account: GenericStorageQuery<
1432
+ (arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like]) => PalletAssetsAssetAccount | undefined
1433
+ >;
1434
+
1435
+ /**
1436
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1437
+ * is the amount of `T::Currency` reserved for storing this.
1438
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1439
+ *
1440
+ * @param {[StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like]} arg
1441
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1442
+ **/
1443
+ approvals: GenericStorageQuery<
1444
+ (
1445
+ arg: [StagingXcmV3MultilocationMultiLocation, AccountId32Like, AccountId32Like],
1446
+ ) => PalletAssetsApproval | undefined
1447
+ >;
1448
+
1449
+ /**
1450
+ * Metadata of an asset.
1451
+ *
1452
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
1453
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1454
+ **/
1455
+ metadata: GenericStorageQuery<(arg: StagingXcmV3MultilocationMultiLocation) => PalletAssetsAssetMetadata>;
1456
+
1457
+ /**
1458
+ * Generic pallet storage query
1459
+ **/
1460
+ [storage: string]: GenericStorageQuery;
1461
+ };
1462
+ /**
1463
+ * Pallet `NftFractionalization`'s storage queries
1464
+ **/
1465
+ nftFractionalization: {
1466
+ /**
1467
+ * Keeps track of the corresponding NFT ID, asset ID and amount minted.
1468
+ *
1469
+ * @param {[number, number]} arg
1470
+ * @param {Callback<PalletNftFractionalizationDetails | undefined> =} callback
1471
+ **/
1472
+ nftToAsset: GenericStorageQuery<(arg: [number, number]) => PalletNftFractionalizationDetails | undefined>;
1473
+
1474
+ /**
1475
+ * Generic pallet storage query
1476
+ **/
1477
+ [storage: string]: GenericStorageQuery;
1478
+ };
1479
+ /**
1480
+ * Pallet `PoolAssets`'s storage queries
1481
+ **/
1482
+ poolAssets: {
1483
+ /**
1484
+ * Details of an asset.
1485
+ *
1486
+ * @param {number} arg
1487
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1488
+ **/
1489
+ asset: GenericStorageQuery<(arg: number) => PalletAssetsAssetDetails | undefined>;
1490
+
1491
+ /**
1492
+ * The holdings of a specific account for a specific asset.
1493
+ *
1494
+ * @param {[number, AccountId32Like]} arg
1495
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1496
+ **/
1497
+ account: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
1498
+
1499
+ /**
1500
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
1501
+ * is the amount of `T::Currency` reserved for storing this.
1502
+ * First key is the asset ID, second key is the owner and third key is the delegate.
1503
+ *
1504
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
1505
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
1506
+ **/
1507
+ approvals: GenericStorageQuery<
1508
+ (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined
1509
+ >;
1510
+
1511
+ /**
1512
+ * Metadata of an asset.
1513
+ *
1514
+ * @param {number} arg
1515
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
1516
+ **/
1517
+ metadata: GenericStorageQuery<(arg: number) => PalletAssetsAssetMetadata>;
1518
+
1519
+ /**
1520
+ * Generic pallet storage query
1521
+ **/
1522
+ [storage: string]: GenericStorageQuery;
1523
+ };
1524
+ /**
1525
+ * Pallet `AssetConversion`'s storage queries
1526
+ **/
1527
+ assetConversion: {
1528
+ /**
1529
+ * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
1530
+ * created rather than people sending tokens directly to a pool's public account.
1531
+ *
1532
+ * @param {[StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation]} arg
1533
+ * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
1534
+ **/
1535
+ pools: GenericStorageQuery<
1536
+ (
1537
+ arg: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation],
1538
+ ) => PalletAssetConversionPoolInfo | undefined
1539
+ >;
1540
+
1541
+ /**
1542
+ * Stores the `PoolAssetId` that is going to be used for the next lp token.
1543
+ * This gets incremented whenever a new lp pool is created.
1544
+ *
1545
+ * @param {Callback<number | undefined> =} callback
1546
+ **/
1547
+ nextPoolAssetId: GenericStorageQuery<() => number | undefined>;
1548
+
1549
+ /**
1550
+ * Generic pallet storage query
1551
+ **/
1552
+ [storage: string]: GenericStorageQuery;
1553
+ };
1301
1554
  }