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

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