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

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