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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +590 -528
  3. package/aleph/errors.d.ts +981 -818
  4. package/aleph/events.d.ts +924 -937
  5. package/aleph/index.d.ts +11 -8
  6. package/aleph/query.d.ts +1477 -1268
  7. package/aleph/rpc.d.ts +725 -573
  8. package/aleph/runtime.d.ts +541 -406
  9. package/aleph/tx.d.ts +2664 -2202
  10. package/aleph/types.d.ts +3474 -5388
  11. package/astar/consts.d.ts +691 -675
  12. package/astar/errors.d.ts +1465 -1313
  13. package/astar/events.d.ts +1642 -1628
  14. package/astar/index.d.ts +11 -8
  15. package/astar/query.d.ts +1682 -1471
  16. package/astar/rpc.d.ts +972 -773
  17. package/astar/runtime.d.ts +747 -258
  18. package/astar/tx.d.ts +3708 -4806
  19. package/astar/types.d.ts +6088 -12266
  20. package/index.d.ts +1 -0
  21. package/index.ts +11 -0
  22. package/kusama/consts.d.ts +1573 -1422
  23. package/kusama/errors.d.ts +2995 -2490
  24. package/kusama/events.d.ts +2996 -2723
  25. package/kusama/index.d.ts +11 -8
  26. package/kusama/query.d.ts +3828 -3248
  27. package/kusama/rpc.d.ts +902 -724
  28. package/kusama/runtime.d.ts +1130 -840
  29. package/kusama/tx.d.ts +7073 -6010
  30. package/kusama/types.d.ts +10151 -15344
  31. package/kusamaAssetHub/consts.d.ts +714 -627
  32. package/kusamaAssetHub/errors.d.ts +1405 -1160
  33. package/kusamaAssetHub/events.d.ts +2149 -2060
  34. package/kusamaAssetHub/index.d.ts +11 -8
  35. package/kusamaAssetHub/query.d.ts +1551 -1298
  36. package/kusamaAssetHub/rpc.d.ts +744 -588
  37. package/kusamaAssetHub/runtime.d.ts +510 -398
  38. package/kusamaAssetHub/tx.d.ts +5050 -4212
  39. package/kusamaAssetHub/types.d.ts +5976 -10009
  40. package/moonbeam/consts.d.ts +1075 -956
  41. package/moonbeam/errors.d.ts +2131 -1793
  42. package/moonbeam/events.d.ts +2932 -2681
  43. package/moonbeam/index.d.ts +11 -8
  44. package/moonbeam/query.d.ts +2391 -2024
  45. package/moonbeam/rpc.d.ts +969 -807
  46. package/moonbeam/runtime.d.ts +665 -502
  47. package/moonbeam/tx.d.ts +6152 -5201
  48. package/moonbeam/types.d.ts +7731 -12035
  49. package/package.json +9 -16
  50. package/polkadot/consts.d.ts +1272 -1155
  51. package/polkadot/errors.d.ts +2420 -2016
  52. package/polkadot/events.d.ts +2314 -2092
  53. package/polkadot/index.d.ts +11 -8
  54. package/polkadot/query.d.ts +3319 -2808
  55. package/polkadot/rpc.d.ts +902 -724
  56. package/polkadot/runtime.d.ts +1130 -840
  57. package/polkadot/tx.d.ts +5909 -5005
  58. package/polkadot/types.d.ts +8742 -13290
  59. package/polkadotAssetHub/consts.d.ts +586 -519
  60. package/polkadotAssetHub/errors.d.ts +1115 -921
  61. package/polkadotAssetHub/events.d.ts +1850 -1782
  62. package/polkadotAssetHub/index.d.ts +11 -8
  63. package/polkadotAssetHub/query.d.ts +1457 -1219
  64. package/polkadotAssetHub/rpc.d.ts +744 -588
  65. package/polkadotAssetHub/runtime.d.ts +447 -355
  66. package/polkadotAssetHub/tx.d.ts +4184 -3487
  67. package/polkadotAssetHub/types.d.ts +5183 -8808
  68. package/rococo/consts.d.ts +1396 -0
  69. package/rococo/errors.d.ts +2860 -0
  70. package/rococo/events.d.ts +3142 -0
  71. package/rococo/index.d.ts +22 -0
  72. package/rococo/query.d.ts +3275 -0
  73. package/rococo/rpc.d.ts +904 -0
  74. package/rococo/runtime.d.ts +1052 -0
  75. package/rococo/tx.d.ts +9083 -0
  76. package/rococo/types.d.ts +14573 -0
  77. package/rococoAssetHub/consts.d.ts +751 -653
  78. package/rococoAssetHub/errors.d.ts +1495 -1227
  79. package/rococoAssetHub/events.d.ts +2127 -2047
  80. package/rococoAssetHub/index.d.ts +11 -8
  81. package/rococoAssetHub/query.d.ts +1520 -1266
  82. package/rococoAssetHub/rpc.d.ts +744 -588
  83. package/rococoAssetHub/runtime.d.ts +539 -424
  84. package/rococoAssetHub/tx.d.ts +7826 -4302
  85. package/rococoAssetHub/types.d.ts +11614 -10637
  86. package/substrate/consts.d.ts +2218 -1966
  87. package/substrate/errors.d.ts +4019 -3333
  88. package/substrate/events.d.ts +4585 -4255
  89. package/substrate/index.d.ts +11 -8
  90. package/substrate/query.d.ts +3887 -3347
  91. package/substrate/rpc.d.ts +913 -716
  92. package/substrate/runtime.d.ts +937 -704
  93. package/substrate/tx.d.ts +10387 -8796
  94. package/substrate/types.d.ts +12809 -19761
  95. package/westendAssetHub/consts.d.ts +751 -653
  96. package/westendAssetHub/errors.d.ts +1495 -1227
  97. package/westendAssetHub/events.d.ts +2127 -2047
  98. package/westendAssetHub/index.d.ts +11 -8
  99. package/westendAssetHub/query.d.ts +1520 -1266
  100. package/westendAssetHub/rpc.d.ts +744 -588
  101. package/westendAssetHub/runtime.d.ts +606 -452
  102. package/westendAssetHub/tx.d.ts +7826 -4302
  103. package/westendAssetHub/types.d.ts +11614 -10634
  104. package/aleph/consts.js +0 -2
  105. package/aleph/errors.js +0 -2
  106. package/aleph/events.js +0 -2
  107. package/aleph/index.js +0 -3
  108. package/aleph/query.js +0 -2
  109. package/aleph/rpc.js +0 -2
  110. package/aleph/runtime.js +0 -2
  111. package/aleph/tx.js +0 -2
  112. package/aleph/types.js +0 -2
  113. package/astar/consts.js +0 -2
  114. package/astar/errors.js +0 -2
  115. package/astar/events.js +0 -2
  116. package/astar/index.js +0 -3
  117. package/astar/query.js +0 -2
  118. package/astar/rpc.js +0 -2
  119. package/astar/runtime.js +0 -2
  120. package/astar/tx.js +0 -2
  121. package/astar/types.js +0 -2
  122. package/cjs/aleph/consts.js +0 -3
  123. package/cjs/aleph/errors.js +0 -3
  124. package/cjs/aleph/events.js +0 -3
  125. package/cjs/aleph/index.js +0 -19
  126. package/cjs/aleph/query.js +0 -3
  127. package/cjs/aleph/rpc.js +0 -3
  128. package/cjs/aleph/runtime.js +0 -3
  129. package/cjs/aleph/tx.js +0 -3
  130. package/cjs/aleph/types.js +0 -3
  131. package/cjs/astar/consts.js +0 -3
  132. package/cjs/astar/errors.js +0 -3
  133. package/cjs/astar/events.js +0 -3
  134. package/cjs/astar/index.js +0 -19
  135. package/cjs/astar/query.js +0 -3
  136. package/cjs/astar/rpc.js +0 -3
  137. package/cjs/astar/runtime.js +0 -3
  138. package/cjs/astar/tx.js +0 -3
  139. package/cjs/astar/types.js +0 -3
  140. package/cjs/index.js +0 -2
  141. package/cjs/kusama/consts.js +0 -3
  142. package/cjs/kusama/errors.js +0 -3
  143. package/cjs/kusama/events.js +0 -3
  144. package/cjs/kusama/index.js +0 -19
  145. package/cjs/kusama/query.js +0 -3
  146. package/cjs/kusama/rpc.js +0 -3
  147. package/cjs/kusama/runtime.js +0 -3
  148. package/cjs/kusama/tx.js +0 -3
  149. package/cjs/kusama/types.js +0 -3
  150. package/cjs/kusamaAssetHub/consts.js +0 -3
  151. package/cjs/kusamaAssetHub/errors.js +0 -3
  152. package/cjs/kusamaAssetHub/events.js +0 -3
  153. package/cjs/kusamaAssetHub/index.js +0 -19
  154. package/cjs/kusamaAssetHub/query.js +0 -3
  155. package/cjs/kusamaAssetHub/rpc.js +0 -3
  156. package/cjs/kusamaAssetHub/runtime.js +0 -3
  157. package/cjs/kusamaAssetHub/tx.js +0 -3
  158. package/cjs/kusamaAssetHub/types.js +0 -3
  159. package/cjs/moonbeam/consts.js +0 -3
  160. package/cjs/moonbeam/errors.js +0 -3
  161. package/cjs/moonbeam/events.js +0 -3
  162. package/cjs/moonbeam/index.js +0 -19
  163. package/cjs/moonbeam/query.js +0 -3
  164. package/cjs/moonbeam/rpc.js +0 -3
  165. package/cjs/moonbeam/runtime.js +0 -3
  166. package/cjs/moonbeam/tx.js +0 -3
  167. package/cjs/moonbeam/types.js +0 -3
  168. package/cjs/package.json +0 -1
  169. package/cjs/packageInfo.js +0 -5
  170. package/cjs/polkadot/consts.js +0 -3
  171. package/cjs/polkadot/errors.js +0 -3
  172. package/cjs/polkadot/events.js +0 -3
  173. package/cjs/polkadot/index.js +0 -19
  174. package/cjs/polkadot/query.js +0 -3
  175. package/cjs/polkadot/rpc.js +0 -3
  176. package/cjs/polkadot/runtime.js +0 -3
  177. package/cjs/polkadot/tx.js +0 -3
  178. package/cjs/polkadot/types.js +0 -3
  179. package/cjs/polkadotAssetHub/consts.js +0 -3
  180. package/cjs/polkadotAssetHub/errors.js +0 -3
  181. package/cjs/polkadotAssetHub/events.js +0 -3
  182. package/cjs/polkadotAssetHub/index.js +0 -19
  183. package/cjs/polkadotAssetHub/query.js +0 -3
  184. package/cjs/polkadotAssetHub/rpc.js +0 -3
  185. package/cjs/polkadotAssetHub/runtime.js +0 -3
  186. package/cjs/polkadotAssetHub/tx.js +0 -3
  187. package/cjs/polkadotAssetHub/types.js +0 -3
  188. package/cjs/rococoAssetHub/consts.js +0 -3
  189. package/cjs/rococoAssetHub/errors.js +0 -3
  190. package/cjs/rococoAssetHub/events.js +0 -3
  191. package/cjs/rococoAssetHub/index.js +0 -19
  192. package/cjs/rococoAssetHub/query.js +0 -3
  193. package/cjs/rococoAssetHub/rpc.js +0 -3
  194. package/cjs/rococoAssetHub/runtime.js +0 -3
  195. package/cjs/rococoAssetHub/tx.js +0 -3
  196. package/cjs/rococoAssetHub/types.js +0 -3
  197. package/cjs/substrate/consts.js +0 -3
  198. package/cjs/substrate/errors.js +0 -3
  199. package/cjs/substrate/events.js +0 -3
  200. package/cjs/substrate/index.js +0 -19
  201. package/cjs/substrate/query.js +0 -3
  202. package/cjs/substrate/rpc.js +0 -3
  203. package/cjs/substrate/runtime.js +0 -3
  204. package/cjs/substrate/tx.js +0 -3
  205. package/cjs/substrate/types.js +0 -3
  206. package/cjs/westendAssetHub/consts.js +0 -3
  207. package/cjs/westendAssetHub/errors.js +0 -3
  208. package/cjs/westendAssetHub/events.js +0 -3
  209. package/cjs/westendAssetHub/index.js +0 -19
  210. package/cjs/westendAssetHub/query.js +0 -3
  211. package/cjs/westendAssetHub/rpc.js +0 -3
  212. package/cjs/westendAssetHub/runtime.js +0 -3
  213. package/cjs/westendAssetHub/tx.js +0 -3
  214. package/cjs/westendAssetHub/types.js +0 -3
  215. package/kusama/consts.js +0 -2
  216. package/kusama/errors.js +0 -2
  217. package/kusama/events.js +0 -2
  218. package/kusama/index.js +0 -3
  219. package/kusama/query.js +0 -2
  220. package/kusama/rpc.js +0 -2
  221. package/kusama/runtime.js +0 -2
  222. package/kusama/tx.js +0 -2
  223. package/kusama/types.js +0 -2
  224. package/kusamaAssetHub/consts.js +0 -2
  225. package/kusamaAssetHub/errors.js +0 -2
  226. package/kusamaAssetHub/events.js +0 -2
  227. package/kusamaAssetHub/index.js +0 -3
  228. package/kusamaAssetHub/query.js +0 -2
  229. package/kusamaAssetHub/rpc.js +0 -2
  230. package/kusamaAssetHub/runtime.js +0 -2
  231. package/kusamaAssetHub/tx.js +0 -2
  232. package/kusamaAssetHub/types.js +0 -2
  233. package/moonbeam/consts.js +0 -2
  234. package/moonbeam/errors.js +0 -2
  235. package/moonbeam/events.js +0 -2
  236. package/moonbeam/index.js +0 -3
  237. package/moonbeam/query.js +0 -2
  238. package/moonbeam/rpc.js +0 -2
  239. package/moonbeam/runtime.js +0 -2
  240. package/moonbeam/tx.js +0 -2
  241. package/moonbeam/types.js +0 -2
  242. package/packageInfo.d.ts +0 -4
  243. package/packageInfo.js +0 -2
  244. package/polkadot/consts.js +0 -2
  245. package/polkadot/errors.js +0 -2
  246. package/polkadot/events.js +0 -2
  247. package/polkadot/index.js +0 -3
  248. package/polkadot/query.js +0 -2
  249. package/polkadot/rpc.js +0 -2
  250. package/polkadot/runtime.js +0 -2
  251. package/polkadot/tx.js +0 -2
  252. package/polkadot/types.js +0 -2
  253. package/polkadotAssetHub/consts.js +0 -2
  254. package/polkadotAssetHub/errors.js +0 -2
  255. package/polkadotAssetHub/events.js +0 -2
  256. package/polkadotAssetHub/index.js +0 -3
  257. package/polkadotAssetHub/query.js +0 -2
  258. package/polkadotAssetHub/rpc.js +0 -2
  259. package/polkadotAssetHub/runtime.js +0 -2
  260. package/polkadotAssetHub/tx.js +0 -2
  261. package/polkadotAssetHub/types.js +0 -2
  262. package/rococoAssetHub/consts.js +0 -2
  263. package/rococoAssetHub/errors.js +0 -2
  264. package/rococoAssetHub/events.js +0 -2
  265. package/rococoAssetHub/index.js +0 -3
  266. package/rococoAssetHub/query.js +0 -2
  267. package/rococoAssetHub/rpc.js +0 -2
  268. package/rococoAssetHub/runtime.js +0 -2
  269. package/rococoAssetHub/tx.js +0 -2
  270. package/rococoAssetHub/types.js +0 -2
  271. package/substrate/consts.js +0 -2
  272. package/substrate/errors.js +0 -2
  273. package/substrate/events.js +0 -2
  274. package/substrate/index.js +0 -3
  275. package/substrate/query.js +0 -2
  276. package/substrate/rpc.js +0 -2
  277. package/substrate/runtime.js +0 -2
  278. package/substrate/tx.js +0 -2
  279. package/substrate/types.js +0 -2
  280. package/westendAssetHub/consts.js +0 -2
  281. package/westendAssetHub/errors.js +0 -2
  282. package/westendAssetHub/events.js +0 -2
  283. package/westendAssetHub/index.js +0 -3
  284. package/westendAssetHub/query.js +0 -2
  285. package/westendAssetHub/rpc.js +0 -2
  286. package/westendAssetHub/runtime.js +0 -2
  287. package/westendAssetHub/tx.js +0 -2
  288. package/westendAssetHub/types.js +0 -2
package/astar/query.d.ts CHANGED
@@ -1,1474 +1,1685 @@
1
- import type { GenericChainStorage, GenericStorageQuery } from '@dedot/types';
2
- import type { AccountId32Like, H256, Bytes, Digest, Phase, AccountId32, Data, FixedBytes, FixedU128, BytesLike, H160, U256, FixedU64 } from '@dedot/codecs';
3
- import type { FrameSystemAccountInfo, FrameSupportDispatchPerDispatchClass, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, PalletIdentityRegistration, PalletIdentityRegistrarInfo, PalletMultisigMultisig, PalletProxyProxyDefinition, PalletProxyAnnouncement, PolkadotPrimitivesV4PersistedValidationData, PolkadotPrimitivesV4UpgradeRestriction, SpTrieStorageProof, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, PolkadotPrimitivesV4AbridgedHostConfiguration, CumulusPrimitivesParachainInherentMessageQueueChain, PolkadotParachainPrimitivesId, PolkadotCorePrimitivesOutboundHrmpMessage, SpWeightsWeightV2Weight, CumulusPalletParachainSystemCodeUpgradeAuthorization, PalletTransactionPaymentReleases, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBalancesIdAmount, PalletBalancesIdAmountRuntimeFreezeReason, PalletVestingVestingInfo, PalletVestingReleases, PalletInflationInflationConfiguration, PalletInflationInflationParameters, PalletDappStakingV3ProtocolState, PalletDappStakingV3DAppInfo, AstarPrimitivesDappStakingSmartContract, PalletDappStakingV3AccountLedger, PalletDappStakingV3SingularStakingInfo, PalletDappStakingV3ContractStakeAmount, PalletDappStakingV3EraInfo, PalletDappStakingV3EraRewardSpan, PalletDappStakingV3PeriodEndInfo, PalletDappStakingV3TierParameters, PalletDappStakingV3TiersConfiguration, PalletDappStakingV3DAppTierRewards, PalletDappStakingV3CleanupMarker, PalletAssetsAssetDetails, PalletAssetsAssetAccount, PalletAssetsApproval, PalletAssetsAssetMetadata, PalletCollatorSelectionCandidateInfo, AstarRuntimeSessionKeys, SpCoreCryptoKeyTypeId, SpConsensusAuraSr25519AppSr25519Public, SpConsensusSlotsSlot, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, PalletXcmQueryStatus, XcmVersionedMultiLocation, PalletXcmVersionMigrationStage, PalletXcmRemoteLockedFungibleRecord, XcmVersionedAssetId, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, PalletEvmCodeMetadata, EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3, EthereumBlock, PalletContractsWasmPrefabWasmModule, PalletContractsWasmOwnerInfo, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletDappStakingMigrationMigrationState, PalletDappsStakingAccountLedger, PalletDappsStakingRewardInfo, PalletDappsStakingForcing, PalletDappsStakingDAppInfo, PalletDappsStakingEraInfo, PalletDappsStakingContractStakeInfo, PalletDappsStakingStakerInfo, PalletDappsStakingVersion } from './types';
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback } from '@dedot/types';
4
+ import type {
5
+ AccountId32Like,
6
+ H256,
7
+ Bytes,
8
+ Digest,
9
+ Phase,
10
+ AccountId32,
11
+ Data,
12
+ FixedBytes,
13
+ FixedU128,
14
+ BytesLike,
15
+ H160,
16
+ U256,
17
+ FixedU64,
18
+ } from '@dedot/codecs';
19
+ import type {
20
+ FrameSystemAccountInfo,
21
+ FrameSupportDispatchPerDispatchClass,
22
+ FrameSystemEventRecord,
23
+ FrameSystemLastRuntimeUpgradeInfo,
24
+ PalletIdentityRegistration,
25
+ PalletIdentityRegistrarInfo,
26
+ PalletMultisigMultisig,
27
+ PalletProxyProxyDefinition,
28
+ PalletProxyAnnouncement,
29
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
30
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
31
+ PolkadotPrimitivesV5PersistedValidationData,
32
+ PolkadotPrimitivesV5UpgradeRestriction,
33
+ PolkadotPrimitivesV5UpgradeGoAhead,
34
+ SpTrieStorageProof,
35
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
36
+ PolkadotPrimitivesV5AbridgedHostConfiguration,
37
+ CumulusPrimitivesParachainInherentMessageQueueChain,
38
+ PolkadotParachainPrimitivesPrimitivesId,
39
+ PolkadotCorePrimitivesOutboundHrmpMessage,
40
+ SpWeightsWeightV2Weight,
41
+ CumulusPalletParachainSystemCodeUpgradeAuthorization,
42
+ PalletTransactionPaymentReleases,
43
+ PalletBalancesAccountData,
44
+ PalletBalancesBalanceLock,
45
+ PalletBalancesReserveData,
46
+ PalletBalancesIdAmount,
47
+ PalletBalancesIdAmountRuntimeFreezeReason,
48
+ PalletVestingVestingInfo,
49
+ PalletVestingReleases,
50
+ PalletInflationInflationConfiguration,
51
+ PalletInflationInflationParameters,
52
+ PalletDappStakingV3ProtocolState,
53
+ PalletDappStakingV3DAppInfo,
54
+ AstarPrimitivesDappStakingSmartContract,
55
+ PalletDappStakingV3AccountLedger,
56
+ PalletDappStakingV3SingularStakingInfo,
57
+ PalletDappStakingV3ContractStakeAmount,
58
+ PalletDappStakingV3EraInfo,
59
+ PalletDappStakingV3EraRewardSpan,
60
+ PalletDappStakingV3PeriodEndInfo,
61
+ PalletDappStakingV3TierParameters,
62
+ PalletDappStakingV3TiersConfiguration,
63
+ PalletDappStakingV3DAppTierRewards,
64
+ PalletDappStakingV3CleanupMarker,
65
+ PalletAssetsAssetDetails,
66
+ PalletAssetsAssetAccount,
67
+ PalletAssetsApproval,
68
+ PalletAssetsAssetMetadata,
69
+ PalletCollatorSelectionCandidateInfo,
70
+ AstarRuntimeSessionKeys,
71
+ SpCoreCryptoKeyTypeId,
72
+ SpConsensusAuraSr25519AppSr25519Public,
73
+ SpConsensusSlotsSlot,
74
+ CumulusPalletXcmpQueueInboundChannelDetails,
75
+ CumulusPalletXcmpQueueOutboundChannelDetails,
76
+ CumulusPalletXcmpQueueQueueConfigData,
77
+ PalletXcmQueryStatus,
78
+ StagingXcmVersionedMultiLocation,
79
+ PalletXcmVersionMigrationStage,
80
+ PalletXcmRemoteLockedFungibleRecord,
81
+ StagingXcmVersionedAssetId,
82
+ CumulusPalletDmpQueueConfigData,
83
+ CumulusPalletDmpQueuePageIndexData,
84
+ PalletEvmCodeMetadata,
85
+ EthereumTransactionTransactionV2,
86
+ FpRpcTransactionStatus,
87
+ EthereumReceiptReceiptV3,
88
+ EthereumBlock,
89
+ PalletContractsWasmCodeInfo,
90
+ PalletContractsStorageContractInfo,
91
+ PalletContractsStorageDeletionQueueManager,
92
+ PalletDappStakingMigrationMigrationState,
93
+ } from './types';
94
+
4
95
  export interface ChainStorage extends GenericChainStorage {
96
+ /**
97
+ * Pallet `System`'s storage queries
98
+ **/
99
+ system: {
5
100
  /**
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 `(T::BlockNumber, 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 `Identity`'s storage queries
132
- **/
133
- identity: {
134
- /**
135
- * Information that is pertinent to identify the entity behind an account.
136
- *
137
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
138
- *
139
- * @param {AccountId32Like} arg
140
- * @param {Callback<PalletIdentityRegistration | undefined> =} callback
141
- **/
142
- identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined>;
143
- /**
144
- * The super-identity of an alternative "sub" identity together with its name, within that
145
- * context. If the account is not some other account's sub-identity, then just `None`.
146
- *
147
- * @param {AccountId32Like} arg
148
- * @param {Callback<[AccountId32, Data] | undefined> =} callback
149
- **/
150
- superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
151
- /**
152
- * Alternative "sub" identities of this account.
153
- *
154
- * The first item is the deposit, the second is a vector of the accounts.
155
- *
156
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
157
- *
158
- * @param {AccountId32Like} arg
159
- * @param {Callback<[bigint, Array<AccountId32>]> =} callback
160
- **/
161
- subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
162
- /**
163
- * The set of registrars. Not expected to get very big as can only be added through a
164
- * special origin (likely a council motion).
165
- *
166
- * The index into this can be cast to `RegistrarIndex` to get a valid value.
167
- *
168
- * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
169
- **/
170
- registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
171
- /**
172
- * Generic pallet storage query
173
- **/
174
- [storage: string]: GenericStorageQuery;
175
- };
176
- /**
177
- * Pallet `Timestamp`'s storage queries
178
- **/
179
- timestamp: {
180
- /**
181
- * Current time for the current block.
182
- *
183
- * @param {Callback<bigint> =} callback
184
- **/
185
- now: GenericStorageQuery<() => bigint>;
186
- /**
187
- * Did the timestamp get updated in this block?
188
- *
189
- * @param {Callback<boolean> =} callback
190
- **/
191
- didUpdate: GenericStorageQuery<() => boolean>;
192
- /**
193
- * Generic pallet storage query
194
- **/
195
- [storage: string]: GenericStorageQuery;
196
- };
197
- /**
198
- * Pallet `Multisig`'s storage queries
199
- **/
200
- multisig: {
201
- /**
202
- * The set of open multisig operations.
203
- *
204
- * @param {[AccountId32Like, FixedBytes<32>]} arg
205
- * @param {Callback<PalletMultisigMultisig | undefined> =} callback
206
- **/
207
- multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
208
- /**
209
- * Generic pallet storage query
210
- **/
211
- [storage: string]: GenericStorageQuery;
212
- };
213
- /**
214
- * Pallet `Proxy`'s storage queries
215
- **/
216
- proxy: {
217
- /**
218
- * The set of account proxies. Maps the account which has delegated to the accounts
219
- * which are being delegated to, together with the amount held on deposit.
220
- *
221
- * @param {AccountId32Like} arg
222
- * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
223
- **/
224
- proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
225
- /**
226
- * The announcements made by the proxy (key).
227
- *
228
- * @param {AccountId32Like} arg
229
- * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
230
- **/
231
- announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
232
- /**
233
- * Generic pallet storage query
234
- **/
235
- [storage: string]: GenericStorageQuery;
236
- };
237
- /**
238
- * Pallet `ParachainSystem`'s storage queries
239
- **/
240
- parachainSystem: {
241
- /**
242
- * In case of a scheduled upgrade, this storage field contains the validation code to be applied.
243
- *
244
- * As soon as the relay chain gives us the go-ahead signal, we will overwrite the [`:code`][well_known_keys::CODE]
245
- * which will result the next block process with the new validation code. This concludes the upgrade process.
246
- *
247
- * [well_known_keys::CODE]: sp_core::storage::well_known_keys::CODE
248
- *
249
- * @param {Callback<Bytes> =} callback
250
- **/
251
- pendingValidationCode: GenericStorageQuery<() => Bytes>;
252
- /**
253
- * Validation code that is set by the parachain and is to be communicated to collator and
254
- * consequently the relay-chain.
255
- *
256
- * This will be cleared in `on_initialize` of each new block if no other pallet already set
257
- * the value.
258
- *
259
- * @param {Callback<Bytes | undefined> =} callback
260
- **/
261
- newValidationCode: GenericStorageQuery<() => Bytes | undefined>;
262
- /**
263
- * The [`PersistedValidationData`] set for this block.
264
- * This value is expected to be set only once per block and it's never stored
265
- * in the trie.
266
- *
267
- * @param {Callback<PolkadotPrimitivesV4PersistedValidationData | undefined> =} callback
268
- **/
269
- validationData: GenericStorageQuery<() => PolkadotPrimitivesV4PersistedValidationData | undefined>;
270
- /**
271
- * Were the validation data set to notify the relay chain?
272
- *
273
- * @param {Callback<boolean> =} callback
274
- **/
275
- didSetValidationCode: GenericStorageQuery<() => boolean>;
276
- /**
277
- * The relay chain block number associated with the last parachain block.
278
- *
279
- * @param {Callback<number> =} callback
280
- **/
281
- lastRelayChainBlockNumber: GenericStorageQuery<() => number>;
282
- /**
283
- * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
284
- * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
285
- * candidate will be invalid.
286
- *
287
- * This storage item is a mirror of the corresponding value for the current parachain from the
288
- * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
289
- * set after the inherent.
290
- *
291
- * @param {Callback<PolkadotPrimitivesV4UpgradeRestriction | undefined> =} callback
292
- **/
293
- upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV4UpgradeRestriction | undefined>;
294
- /**
295
- * The state proof for the last relay parent block.
296
- *
297
- * This field is meant to be updated each block with the validation data inherent. Therefore,
298
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
299
- *
300
- * This data is also absent from the genesis.
301
- *
302
- * @param {Callback<SpTrieStorageProof | undefined> =} callback
303
- **/
304
- relayStateProof: GenericStorageQuery<() => SpTrieStorageProof | undefined>;
305
- /**
306
- * The snapshot of some state related to messaging relevant to the current parachain as per
307
- * the relay parent.
308
- *
309
- * This field is meant to be updated each block with the validation data inherent. Therefore,
310
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
311
- *
312
- * This data is also absent from the genesis.
313
- *
314
- * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
315
- **/
316
- relevantMessagingState: GenericStorageQuery<() => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined>;
317
- /**
318
- * The parachain host configuration that was obtained from the relay parent.
319
- *
320
- * This field is meant to be updated each block with the validation data inherent. Therefore,
321
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
322
- *
323
- * This data is also absent from the genesis.
324
- *
325
- * @param {Callback<PolkadotPrimitivesV4AbridgedHostConfiguration | undefined> =} callback
326
- **/
327
- hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV4AbridgedHostConfiguration | undefined>;
328
- /**
329
- * The last downward message queue chain head we have observed.
330
- *
331
- * This value is loaded before and saved after processing inbound downward messages carried
332
- * by the system inherent.
333
- *
334
- * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
335
- **/
336
- lastDmqMqcHead: GenericStorageQuery<() => CumulusPrimitivesParachainInherentMessageQueueChain>;
337
- /**
338
- * The message queue chain heads we have observed per each channel incoming channel.
339
- *
340
- * This value is loaded before and saved after processing inbound downward messages carried
341
- * by the system inherent.
342
- *
343
- * @param {Callback<Array<[PolkadotParachainPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
344
- **/
345
- lastHrmpMqcHeads: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>>;
346
- /**
347
- * Number of downward messages processed in a block.
348
- *
349
- * This will be cleared in `on_initialize` of each new block.
350
- *
351
- * @param {Callback<number> =} callback
352
- **/
353
- processedDownwardMessages: GenericStorageQuery<() => number>;
354
- /**
355
- * HRMP watermark that was set in a block.
356
- *
357
- * This will be cleared in `on_initialize` of each new block.
358
- *
359
- * @param {Callback<number> =} callback
360
- **/
361
- hrmpWatermark: GenericStorageQuery<() => number>;
362
- /**
363
- * HRMP messages that were sent in a block.
364
- *
365
- * This will be cleared in `on_initialize` of each new block.
366
- *
367
- * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
368
- **/
369
- hrmpOutboundMessages: GenericStorageQuery<() => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
370
- /**
371
- * Upward messages that were sent in a block.
372
- *
373
- * This will be cleared in `on_initialize` of each new block.
374
- *
375
- * @param {Callback<Array<Bytes>> =} callback
376
- **/
377
- upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
378
- /**
379
- * Upward messages that are still pending and not yet send to the relay chain.
380
- *
381
- * @param {Callback<Array<Bytes>> =} callback
382
- **/
383
- pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
384
- /**
385
- * The number of HRMP messages we observed in `on_initialize` and thus used that number for
386
- * announcing the weight of `on_initialize` and `on_finalize`.
387
- *
388
- * @param {Callback<number> =} callback
389
- **/
390
- announcedHrmpMessagesPerCandidate: GenericStorageQuery<() => number>;
391
- /**
392
- * The weight we reserve at the beginning of the block for processing XCMP messages. This
393
- * overrides the amount set in the Config trait.
394
- *
395
- * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
396
- **/
397
- reservedXcmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
398
- /**
399
- * The weight we reserve at the beginning of the block for processing DMP messages. This
400
- * overrides the amount set in the Config trait.
401
- *
402
- * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
403
- **/
404
- reservedDmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
405
- /**
406
- * The next authorized upgrade, if there is one.
407
- *
408
- * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
409
- **/
410
- authorizedUpgrade: GenericStorageQuery<() => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
411
- /**
412
- * A custom head data that should be returned as result of `validate_block`.
413
- *
414
- * See [`Pallet::set_custom_validation_head_data`] for more information.
415
- *
416
- * @param {Callback<Bytes | undefined> =} callback
417
- **/
418
- customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
419
- /**
420
- * Generic pallet storage query
421
- **/
422
- [storage: string]: GenericStorageQuery;
423
- };
424
- /**
425
- * Pallet `ParachainInfo`'s storage queries
426
- **/
427
- parachainInfo: {
428
- /**
429
- *
430
- * @param {Callback<PolkadotParachainPrimitivesId> =} callback
431
- **/
432
- parachainId: GenericStorageQuery<() => PolkadotParachainPrimitivesId>;
433
- /**
434
- * Generic pallet storage query
435
- **/
436
- [storage: string]: GenericStorageQuery;
437
- };
438
- /**
439
- * Pallet `TransactionPayment`'s storage queries
440
- **/
441
- transactionPayment: {
442
- /**
443
- *
444
- * @param {Callback<FixedU128> =} callback
445
- **/
446
- nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
447
- /**
448
- *
449
- * @param {Callback<PalletTransactionPaymentReleases> =} callback
450
- **/
451
- storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
452
- /**
453
- * Generic pallet storage query
454
- **/
455
- [storage: string]: GenericStorageQuery;
456
- };
457
- /**
458
- * Pallet `Balances`'s storage queries
459
- **/
460
- balances: {
461
- /**
462
- * The total units issued in the system.
463
- *
464
- * @param {Callback<bigint> =} callback
465
- **/
466
- totalIssuance: GenericStorageQuery<() => bigint>;
467
- /**
468
- * The total units of outstanding deactivated balance in the system.
469
- *
470
- * @param {Callback<bigint> =} callback
471
- **/
472
- inactiveIssuance: GenericStorageQuery<() => bigint>;
473
- /**
474
- * The Balances pallet example of storing the balance of an account.
475
- *
476
- * # Example
477
- *
478
- * ```nocompile
479
- * impl pallet_balances::Config for Runtime {
480
- * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
481
- * }
482
- * ```
483
- *
484
- * You can also store the balance of an account in the `System` pallet.
485
- *
486
- * # Example
487
- *
488
- * ```nocompile
489
- * impl pallet_balances::Config for Runtime {
490
- * type AccountStore = System
491
- * }
492
- * ```
493
- *
494
- * But this comes with tradeoffs, storing account balances in the system pallet stores
495
- * `frame_system` data alongside the account data contrary to storing account balances in the
496
- * `Balances` pallet, which uses a `StorageMap` to store balances data only.
497
- * NOTE: This is only used in the case that this pallet is used to store balances.
498
- *
499
- * @param {AccountId32Like} arg
500
- * @param {Callback<PalletBalancesAccountData> =} callback
501
- **/
502
- account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
503
- /**
504
- * Any liquidity locks on some account balances.
505
- * NOTE: Should only be accessed when setting, changing and freeing a lock.
506
- *
507
- * @param {AccountId32Like} arg
508
- * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
509
- **/
510
- locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
511
- /**
512
- * Named reserves on some account balances.
513
- *
514
- * @param {AccountId32Like} arg
515
- * @param {Callback<Array<PalletBalancesReserveData>> =} callback
516
- **/
517
- reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
518
- /**
519
- * Holds on account balances.
520
- *
521
- * @param {AccountId32Like} arg
522
- * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
523
- **/
524
- holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
525
- /**
526
- * Freeze locks on account balances.
527
- *
528
- * @param {AccountId32Like} arg
529
- * @param {Callback<Array<PalletBalancesIdAmountRuntimeFreezeReason>> =} callback
530
- **/
531
- freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmountRuntimeFreezeReason>>;
532
- /**
533
- * Generic pallet storage query
534
- **/
535
- [storage: string]: GenericStorageQuery;
536
- };
537
- /**
538
- * Pallet `Vesting`'s storage queries
539
- **/
540
- vesting: {
541
- /**
542
- * Information regarding the vesting of a given account.
543
- *
544
- * @param {AccountId32Like} arg
545
- * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
546
- **/
547
- vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined>;
548
- /**
549
- * Storage version of the pallet.
550
- *
551
- * New networks start with latest version, as determined by the genesis build.
552
- *
553
- * @param {Callback<PalletVestingReleases> =} callback
554
- **/
555
- storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
556
- /**
557
- * Generic pallet storage query
558
- **/
559
- [storage: string]: GenericStorageQuery;
560
- };
561
- /**
562
- * Pallet `Inflation`'s storage queries
563
- **/
564
- inflation: {
565
- /**
566
- * Active inflation configuration parameters.
567
- * They describe current rewards, when inflation needs to be recalculated, etc.
568
- *
569
- * @param {Callback<PalletInflationInflationConfiguration> =} callback
570
- **/
571
- activeInflationConfig: GenericStorageQuery<() => PalletInflationInflationConfiguration>;
572
- /**
573
- * Static inflation parameters - used to calculate active inflation configuration at certain points in time.
574
- *
575
- * @param {Callback<PalletInflationInflationParameters> =} callback
576
- **/
577
- inflationParams: GenericStorageQuery<() => PalletInflationInflationParameters>;
578
- /**
579
- * Flag indicating whether on the first possible opportunity, recalculation of the inflation config should be done.
580
- *
581
- * @param {Callback<number | undefined> =} callback
582
- **/
583
- doRecalculation: GenericStorageQuery<() => number | undefined>;
584
- /**
585
- * Generic pallet storage query
586
- **/
587
- [storage: string]: GenericStorageQuery;
588
- };
589
- /**
590
- * Pallet `DappStaking`'s storage queries
591
- **/
592
- dappStaking: {
593
- /**
594
- * General information about dApp staking protocol state.
595
- *
596
- * @param {Callback<PalletDappStakingV3ProtocolState> =} callback
597
- **/
598
- activeProtocolState: GenericStorageQuery<() => PalletDappStakingV3ProtocolState>;
599
- /**
600
- * Counter for unique dApp identifiers.
601
- *
602
- * @param {Callback<number> =} callback
603
- **/
604
- nextDAppId: GenericStorageQuery<() => number>;
605
- /**
606
- * Map of all dApps integrated into dApp staking protocol.
607
- *
608
- * Even though dApp is integrated, it does not mean it's still actively participating in dApp staking.
609
- * It might have been unregistered at some point in history.
610
- *
611
- * @param {AstarPrimitivesDappStakingSmartContract} arg
612
- * @param {Callback<PalletDappStakingV3DAppInfo | undefined> =} callback
613
- **/
614
- integratedDApps: GenericStorageQuery<(arg: AstarPrimitivesDappStakingSmartContract) => PalletDappStakingV3DAppInfo | undefined>;
615
- /**
616
- * Counter for the related counted storage map
617
- *
618
- * @param {Callback<number> =} callback
619
- **/
620
- counterForIntegratedDApps: GenericStorageQuery<() => number>;
621
- /**
622
- * General locked/staked information for each account.
623
- *
624
- * @param {AccountId32Like} arg
625
- * @param {Callback<PalletDappStakingV3AccountLedger> =} callback
626
- **/
627
- ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletDappStakingV3AccountLedger>;
628
- /**
629
- * Information about how much each staker has staked for each smart contract in some period.
630
- *
631
- * @param {[AccountId32Like, AstarPrimitivesDappStakingSmartContract]} arg
632
- * @param {Callback<PalletDappStakingV3SingularStakingInfo | undefined> =} callback
633
- **/
634
- stakerInfo: GenericStorageQuery<(arg: [AccountId32Like, AstarPrimitivesDappStakingSmartContract]) => PalletDappStakingV3SingularStakingInfo | undefined>;
635
- /**
636
- * Information about how much has been staked on a smart contract in some era or period.
637
- *
638
- * @param {number} arg
639
- * @param {Callback<PalletDappStakingV3ContractStakeAmount> =} callback
640
- **/
641
- contractStake: GenericStorageQuery<(arg: number) => PalletDappStakingV3ContractStakeAmount>;
642
- /**
643
- * General information about the current era.
644
- *
645
- * @param {Callback<PalletDappStakingV3EraInfo> =} callback
646
- **/
647
- currentEraInfo: GenericStorageQuery<() => PalletDappStakingV3EraInfo>;
648
- /**
649
- * Information about rewards for each era.
650
- *
651
- * Since each entry is a 'span', covering up to `T::EraRewardSpanLength` entries, only certain era value keys can exist in storage.
652
- * For the sake of simplicity, valid `era` keys are calculated as:
653
- *
654
- * era_key = era - (era % T::EraRewardSpanLength)
655
- *
656
- * This means that e.g. in case `EraRewardSpanLength = 8`, only era values 0, 8, 16, 24, etc. can exist in storage.
657
- * Eras 1-7 will be stored in the same entry as era 0, eras 9-15 will be stored in the same entry as era 8, etc.
658
- *
659
- * @param {number} arg
660
- * @param {Callback<PalletDappStakingV3EraRewardSpan | undefined> =} callback
661
- **/
662
- eraRewards: GenericStorageQuery<(arg: number) => PalletDappStakingV3EraRewardSpan | undefined>;
663
- /**
664
- * Information about period's end.
665
- *
666
- * @param {number} arg
667
- * @param {Callback<PalletDappStakingV3PeriodEndInfo | undefined> =} callback
668
- **/
669
- periodEnd: GenericStorageQuery<(arg: number) => PalletDappStakingV3PeriodEndInfo | undefined>;
670
- /**
671
- * Static tier parameters used to calculate tier configuration.
672
- *
673
- * @param {Callback<PalletDappStakingV3TierParameters> =} callback
674
- **/
675
- staticTierParams: GenericStorageQuery<() => PalletDappStakingV3TierParameters>;
676
- /**
677
- * Tier configuration user for current & preceding eras.
678
- *
679
- * @param {Callback<PalletDappStakingV3TiersConfiguration> =} callback
680
- **/
681
- tierConfig: GenericStorageQuery<() => PalletDappStakingV3TiersConfiguration>;
682
- /**
683
- * Information about which tier a dApp belonged to in a specific era.
684
- *
685
- * @param {number} arg
686
- * @param {Callback<PalletDappStakingV3DAppTierRewards | undefined> =} callback
687
- **/
688
- dAppTiers: GenericStorageQuery<(arg: number) => PalletDappStakingV3DAppTierRewards | undefined>;
689
- /**
690
- * History cleanup marker - holds information about which DB entries should be cleaned up next, when applicable.
691
- *
692
- * @param {Callback<PalletDappStakingV3CleanupMarker> =} callback
693
- **/
694
- historyCleanupMarker: GenericStorageQuery<() => PalletDappStakingV3CleanupMarker>;
695
- /**
696
- * Safeguard to prevent unwanted operations in production.
697
- * Kept as a storage without extrinsic setter, so we can still enable it for some
698
- * chain-fork debugging if required.
699
- *
700
- * @param {Callback<boolean> =} callback
701
- **/
702
- safeguard: GenericStorageQuery<() => boolean>;
703
- /**
704
- * Generic pallet storage query
705
- **/
706
- [storage: string]: GenericStorageQuery;
707
- };
708
- /**
709
- * Pallet `Assets`'s storage queries
710
- **/
711
- assets: {
712
- /**
713
- * Details of an asset.
714
- *
715
- * @param {bigint} arg
716
- * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
717
- **/
718
- asset: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetDetails | undefined>;
719
- /**
720
- * The holdings of a specific account for a specific asset.
721
- *
722
- * @param {[bigint, AccountId32Like]} arg
723
- * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
724
- **/
725
- account: GenericStorageQuery<(arg: [bigint, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
726
- /**
727
- * Approved balance transfers. First balance is the amount approved for transfer. Second
728
- * is the amount of `T::Currency` reserved for storing this.
729
- * First key is the asset ID, second key is the owner and third key is the delegate.
730
- *
731
- * @param {[bigint, AccountId32Like, AccountId32Like]} arg
732
- * @param {Callback<PalletAssetsApproval | undefined> =} callback
733
- **/
734
- approvals: GenericStorageQuery<(arg: [bigint, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined>;
735
- /**
736
- * Metadata of an asset.
737
- *
738
- * @param {bigint} arg
739
- * @param {Callback<PalletAssetsAssetMetadata> =} callback
740
- **/
741
- metadata: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetMetadata>;
742
- /**
743
- * Generic pallet storage query
744
- **/
745
- [storage: string]: GenericStorageQuery;
746
- };
747
- /**
748
- * Pallet `Authorship`'s storage queries
749
- **/
750
- authorship: {
751
- /**
752
- * Author of current block.
753
- *
754
- * @param {Callback<AccountId32 | undefined> =} callback
755
- **/
756
- author: GenericStorageQuery<() => AccountId32 | undefined>;
757
- /**
758
- * Generic pallet storage query
759
- **/
760
- [storage: string]: GenericStorageQuery;
761
- };
762
- /**
763
- * Pallet `CollatorSelection`'s storage queries
764
- **/
765
- collatorSelection: {
766
- /**
767
- * The invulnerable, fixed collators.
768
- *
769
- * @param {Callback<Array<AccountId32>> =} callback
770
- **/
771
- invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
772
- /**
773
- * The (community, limited) collation candidates.
774
- *
775
- * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
776
- **/
777
- candidates: GenericStorageQuery<() => Array<PalletCollatorSelectionCandidateInfo>>;
778
- /**
779
- * Last block authored by collator.
780
- *
781
- * @param {AccountId32Like} arg
782
- * @param {Callback<number> =} callback
783
- **/
784
- lastAuthoredBlock: GenericStorageQuery<(arg: AccountId32Like) => number>;
785
- /**
786
- * Desired number of candidates.
787
- *
788
- * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
789
- *
790
- * @param {Callback<number> =} callback
791
- **/
792
- desiredCandidates: GenericStorageQuery<() => number>;
793
- /**
794
- * Fixed amount to deposit to become a collator.
795
- *
796
- * When a collator calls `leave_intent` they immediately receive the deposit back.
797
- *
798
- * @param {Callback<bigint> =} callback
799
- **/
800
- candidacyBond: GenericStorageQuery<() => bigint>;
801
- /**
802
- * Destination account for slashed amount.
803
- *
804
- * @param {Callback<AccountId32 | undefined> =} callback
805
- **/
806
- slashDestination: GenericStorageQuery<() => AccountId32 | undefined>;
807
- /**
808
- * Generic pallet storage query
809
- **/
810
- [storage: string]: GenericStorageQuery;
811
- };
812
- /**
813
- * Pallet `Session`'s storage queries
814
- **/
815
- session: {
816
- /**
817
- * The current set of validators.
818
- *
819
- * @param {Callback<Array<AccountId32>> =} callback
820
- **/
821
- validators: GenericStorageQuery<() => Array<AccountId32>>;
822
- /**
823
- * Current index of the session.
824
- *
825
- * @param {Callback<number> =} callback
826
- **/
827
- currentIndex: GenericStorageQuery<() => number>;
828
- /**
829
- * True if the underlying economic identities or weighting behind the validators
830
- * has changed in the queued validator set.
831
- *
832
- * @param {Callback<boolean> =} callback
833
- **/
834
- queuedChanged: GenericStorageQuery<() => boolean>;
835
- /**
836
- * The queued keys for the next session. When the next session begins, these keys
837
- * will be used to determine the validator's session keys.
838
- *
839
- * @param {Callback<Array<[AccountId32, AstarRuntimeSessionKeys]>> =} callback
840
- **/
841
- queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AstarRuntimeSessionKeys]>>;
842
- /**
843
- * Indices of disabled validators.
844
- *
845
- * The vec is always kept sorted so that we can find whether a given validator is
846
- * disabled using binary search. It gets cleared when `on_session_ending` returns
847
- * a new set of identities.
848
- *
849
- * @param {Callback<Array<number>> =} callback
850
- **/
851
- disabledValidators: GenericStorageQuery<() => Array<number>>;
852
- /**
853
- * The next session keys for a validator.
854
- *
855
- * @param {AccountId32Like} arg
856
- * @param {Callback<AstarRuntimeSessionKeys | undefined> =} callback
857
- **/
858
- nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AstarRuntimeSessionKeys | undefined>;
859
- /**
860
- * The owner of a key. The key is the `KeyTypeId` + the encoded key.
861
- *
862
- * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
863
- * @param {Callback<AccountId32 | undefined> =} callback
864
- **/
865
- keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
866
- /**
867
- * Generic pallet storage query
868
- **/
869
- [storage: string]: GenericStorageQuery;
870
- };
871
- /**
872
- * Pallet `Aura`'s storage queries
873
- **/
874
- aura: {
875
- /**
876
- * The current authority set.
877
- *
878
- * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
879
- **/
880
- authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
881
- /**
882
- * The current slot of this block.
883
- *
884
- * This will be set in `on_initialize`.
885
- *
886
- * @param {Callback<SpConsensusSlotsSlot> =} callback
887
- **/
888
- currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
889
- /**
890
- * Generic pallet storage query
891
- **/
892
- [storage: string]: GenericStorageQuery;
893
- };
894
- /**
895
- * Pallet `AuraExt`'s storage queries
896
- **/
897
- auraExt: {
898
- /**
899
- * Serves as cache for the authorities.
900
- *
901
- * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
902
- * but we require the old authorities to verify the seal when validating a PoV. This will always
903
- * be updated to the latest AuRa authorities in `on_finalize`.
904
- *
905
- * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
906
- **/
907
- authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
908
- /**
909
- * Generic pallet storage query
910
- **/
911
- [storage: string]: GenericStorageQuery;
912
- };
913
- /**
914
- * Pallet `XcmpQueue`'s storage queries
915
- **/
916
- xcmpQueue: {
917
- /**
918
- * Status of the inbound XCMP channels.
919
- *
920
- * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
921
- **/
922
- inboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
923
- /**
924
- * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
925
- *
926
- * @param {[PolkadotParachainPrimitivesId, number]} arg
927
- * @param {Callback<Bytes> =} callback
928
- **/
929
- inboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesId, number]) => Bytes>;
930
- /**
931
- * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
932
- * and last outbound message. If the two indices are equal, then it indicates an empty
933
- * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
934
- * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
935
- * case of the need to send a high-priority signal message this block.
936
- * The bool is true if there is a signal message waiting to be sent.
937
- *
938
- * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
939
- **/
940
- outboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
941
- /**
942
- * The messages outbound in a given XCMP channel.
943
- *
944
- * @param {[PolkadotParachainPrimitivesId, number]} arg
945
- * @param {Callback<Bytes> =} callback
946
- **/
947
- outboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesId, number]) => Bytes>;
948
- /**
949
- * Any signal messages waiting to be sent.
950
- *
951
- * @param {PolkadotParachainPrimitivesId} arg
952
- * @param {Callback<Bytes> =} callback
953
- **/
954
- signalMessages: GenericStorageQuery<(arg: PolkadotParachainPrimitivesId) => Bytes>;
955
- /**
956
- * The configuration which controls the dynamics of the outbound queue.
957
- *
958
- * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
959
- **/
960
- queueConfig: GenericStorageQuery<() => CumulusPalletXcmpQueueQueueConfigData>;
961
- /**
962
- * The messages that exceeded max individual message weight budget.
963
- *
964
- * These message stay in this storage map until they are manually dispatched via
965
- * `service_overweight`.
966
- *
967
- * @param {bigint} arg
968
- * @param {Callback<[PolkadotParachainPrimitivesId, number, Bytes] | undefined> =} callback
969
- **/
970
- overweight: GenericStorageQuery<(arg: bigint) => [PolkadotParachainPrimitivesId, number, Bytes] | undefined>;
971
- /**
972
- * Counter for the related counted storage map
973
- *
974
- * @param {Callback<number> =} callback
975
- **/
976
- counterForOverweight: GenericStorageQuery<() => number>;
977
- /**
978
- * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
979
- * available free overweight index.
980
- *
981
- * @param {Callback<bigint> =} callback
982
- **/
983
- overweightCount: GenericStorageQuery<() => bigint>;
984
- /**
985
- * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
986
- *
987
- * @param {Callback<boolean> =} callback
988
- **/
989
- queueSuspended: GenericStorageQuery<() => boolean>;
990
- /**
991
- * Generic pallet storage query
992
- **/
993
- [storage: string]: GenericStorageQuery;
994
- };
995
- /**
996
- * Pallet `PolkadotXcm`'s storage queries
997
- **/
998
- polkadotXcm: {
999
- /**
1000
- * The latest available query index.
1001
- *
1002
- * @param {Callback<bigint> =} callback
1003
- **/
1004
- queryCounter: GenericStorageQuery<() => bigint>;
1005
- /**
1006
- * The ongoing queries.
1007
- *
1008
- * @param {bigint} arg
1009
- * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
1010
- **/
1011
- queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
1012
- /**
1013
- * The existing asset traps.
1014
- *
1015
- * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
1016
- * times this pair has been trapped (usually just 1 if it exists at all).
1017
- *
1018
- * @param {H256} arg
1019
- * @param {Callback<number> =} callback
1020
- **/
1021
- assetTraps: GenericStorageQuery<(arg: H256) => number>;
1022
- /**
1023
- * Default version to encode XCM when latest version of destination is unknown. If `None`,
1024
- * then the destinations whose XCM version is unknown are considered unreachable.
1025
- *
1026
- * @param {Callback<number | undefined> =} callback
1027
- **/
1028
- safeXcmVersion: GenericStorageQuery<() => number | undefined>;
1029
- /**
1030
- * The Latest versions that we know various locations support.
1031
- *
1032
- * @param {[number, XcmVersionedMultiLocation]} arg
1033
- * @param {Callback<number | undefined> =} callback
1034
- **/
1035
- supportedVersion: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => number | undefined>;
1036
- /**
1037
- * All locations that we have requested version notifications from.
1038
- *
1039
- * @param {[number, XcmVersionedMultiLocation]} arg
1040
- * @param {Callback<bigint | undefined> =} callback
1041
- **/
1042
- versionNotifiers: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => bigint | undefined>;
1043
- /**
1044
- * The target locations that are subscribed to our version changes, as well as the most recent
1045
- * of our versions we informed them of.
1046
- *
1047
- * @param {[number, XcmVersionedMultiLocation]} arg
1048
- * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1049
- **/
1050
- versionNotifyTargets: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined>;
1051
- /**
1052
- * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1053
- * the `u32` counter is the number of times that a send to the destination has been attempted,
1054
- * which is used as a prioritization.
1055
- *
1056
- * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
1057
- **/
1058
- versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedMultiLocation, number]>>;
1059
- /**
1060
- * The current migration's stage, if any.
1061
- *
1062
- * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1063
- **/
1064
- currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
1065
- /**
1066
- * Fungible assets which we know are locked on a remote chain.
1067
- *
1068
- * @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
1069
- * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1070
- **/
1071
- remoteLockedFungibles: GenericStorageQuery<(arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined>;
1072
- /**
1073
- * Fungible assets which we know are locked on this chain.
1074
- *
1075
- * @param {AccountId32Like} arg
1076
- * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
1077
- **/
1078
- lockedFungibles: GenericStorageQuery<(arg: AccountId32Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined>;
1079
- /**
1080
- * Global suspension state of the XCM executor.
1081
- *
1082
- * @param {Callback<boolean> =} callback
1083
- **/
1084
- xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
1085
- /**
1086
- * Generic pallet storage query
1087
- **/
1088
- [storage: string]: GenericStorageQuery;
1089
- };
1090
- /**
1091
- * Pallet `DmpQueue`'s storage queries
1092
- **/
1093
- dmpQueue: {
1094
- /**
1095
- * The configuration.
1096
- *
1097
- * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
1098
- **/
1099
- configuration: GenericStorageQuery<() => CumulusPalletDmpQueueConfigData>;
1100
- /**
1101
- * The page index.
1102
- *
1103
- * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
1104
- **/
1105
- pageIndex: GenericStorageQuery<() => CumulusPalletDmpQueuePageIndexData>;
1106
- /**
1107
- * The queue pages.
1108
- *
1109
- * @param {number} arg
1110
- * @param {Callback<Array<[number, Bytes]>> =} callback
1111
- **/
1112
- pages: GenericStorageQuery<(arg: number) => Array<[number, Bytes]>>;
1113
- /**
1114
- * The overweight messages.
1115
- *
1116
- * @param {bigint} arg
1117
- * @param {Callback<[number, Bytes] | undefined> =} callback
1118
- **/
1119
- overweight: GenericStorageQuery<(arg: bigint) => [number, Bytes] | undefined>;
1120
- /**
1121
- * Counter for the related counted storage map
1122
- *
1123
- * @param {Callback<number> =} callback
1124
- **/
1125
- counterForOverweight: GenericStorageQuery<() => number>;
1126
- /**
1127
- * Generic pallet storage query
1128
- **/
1129
- [storage: string]: GenericStorageQuery;
1130
- };
1131
- /**
1132
- * Pallet `XcAssetConfig`'s storage queries
1133
- **/
1134
- xcAssetConfig: {
1135
- /**
1136
- * Mapping from an asset id to asset type.
1137
- * Can be used when receiving transaction specifying an asset directly,
1138
- * like transferring an asset from this chain to another.
1139
- *
1140
- * @param {bigint} arg
1141
- * @param {Callback<XcmVersionedMultiLocation | undefined> =} callback
1142
- **/
1143
- assetIdToLocation: GenericStorageQuery<(arg: bigint) => XcmVersionedMultiLocation | undefined>;
1144
- /**
1145
- * Mapping from an asset type to an asset id.
1146
- * Can be used when receiving a multilocation XCM message to retrieve
1147
- * the corresponding asset in which tokens should me minted.
1148
- *
1149
- * @param {XcmVersionedMultiLocation} arg
1150
- * @param {Callback<bigint | undefined> =} callback
1151
- **/
1152
- assetLocationToId: GenericStorageQuery<(arg: XcmVersionedMultiLocation) => bigint | undefined>;
1153
- /**
1154
- * Stores the units per second for local execution for a AssetLocation.
1155
- * This is used to know how to charge for XCM execution in a particular asset.
1156
- *
1157
- * Not all asset types are supported for payment. If value exists here, it means it is supported.
1158
- *
1159
- * @param {XcmVersionedMultiLocation} arg
1160
- * @param {Callback<bigint | undefined> =} callback
1161
- **/
1162
- assetLocationUnitsPerSecond: GenericStorageQuery<(arg: XcmVersionedMultiLocation) => bigint | undefined>;
1163
- /**
1164
- * Generic pallet storage query
1165
- **/
1166
- [storage: string]: GenericStorageQuery;
1167
- };
1168
- /**
1169
- * Pallet `EVM`'s storage queries
1170
- **/
1171
- eVM: {
1172
- /**
1173
- *
1174
- * @param {H160} arg
1175
- * @param {Callback<Bytes> =} callback
1176
- **/
1177
- accountCodes: GenericStorageQuery<(arg: H160) => Bytes>;
1178
- /**
1179
- *
1180
- * @param {H160} arg
1181
- * @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
1182
- **/
1183
- accountCodesMetadata: GenericStorageQuery<(arg: H160) => PalletEvmCodeMetadata | undefined>;
1184
- /**
1185
- *
1186
- * @param {[H160, H256]} arg
1187
- * @param {Callback<H256> =} callback
1188
- **/
1189
- accountStorages: GenericStorageQuery<(arg: [H160, H256]) => H256>;
1190
- /**
1191
- * Generic pallet storage query
1192
- **/
1193
- [storage: string]: GenericStorageQuery;
1194
- };
1195
- /**
1196
- * Pallet `Ethereum`'s storage queries
1197
- **/
1198
- ethereum: {
1199
- /**
1200
- * Current building block's transactions and receipts.
1201
- *
1202
- * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
1203
- **/
1204
- pending: GenericStorageQuery<() => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>>;
1205
- /**
1206
- * The current Ethereum block.
1207
- *
1208
- * @param {Callback<EthereumBlock | undefined> =} callback
1209
- **/
1210
- currentBlock: GenericStorageQuery<() => EthereumBlock | undefined>;
1211
- /**
1212
- * The current Ethereum receipts.
1213
- *
1214
- * @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
1215
- **/
1216
- currentReceipts: GenericStorageQuery<() => Array<EthereumReceiptReceiptV3> | undefined>;
1217
- /**
1218
- * The current transaction statuses.
1219
- *
1220
- * @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
1221
- **/
1222
- currentTransactionStatuses: GenericStorageQuery<() => Array<FpRpcTransactionStatus> | undefined>;
1223
- /**
1224
- *
1225
- * @param {U256} arg
1226
- * @param {Callback<H256> =} callback
1227
- **/
1228
- blockHash: GenericStorageQuery<(arg: U256) => H256>;
1229
- /**
1230
- * Generic pallet storage query
1231
- **/
1232
- [storage: string]: GenericStorageQuery;
1233
- };
1234
- /**
1235
- * Pallet `DynamicEvmBaseFee`'s storage queries
1236
- **/
1237
- dynamicEvmBaseFee: {
1238
- /**
1239
- *
1240
- * @param {Callback<U256> =} callback
1241
- **/
1242
- baseFeePerGas: GenericStorageQuery<() => U256>;
1243
- /**
1244
- * Generic pallet storage query
1245
- **/
1246
- [storage: string]: GenericStorageQuery;
1247
- };
1248
- /**
1249
- * Pallet `Contracts`'s storage queries
1250
- **/
1251
- contracts: {
1252
- /**
1253
- * A mapping from an original code hash to the original code, untouched by instrumentation.
1254
- *
1255
- * @param {H256} arg
1256
- * @param {Callback<Bytes | undefined> =} callback
1257
- **/
1258
- pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined>;
1259
- /**
1260
- * A mapping between an original code hash and instrumented wasm code, ready for execution.
1261
- *
1262
- * @param {H256} arg
1263
- * @param {Callback<PalletContractsWasmPrefabWasmModule | undefined> =} callback
1264
- **/
1265
- codeStorage: GenericStorageQuery<(arg: H256) => PalletContractsWasmPrefabWasmModule | undefined>;
1266
- /**
1267
- * A mapping between an original code hash and its owner information.
1268
- *
1269
- * @param {H256} arg
1270
- * @param {Callback<PalletContractsWasmOwnerInfo | undefined> =} callback
1271
- **/
1272
- ownerInfoOf: GenericStorageQuery<(arg: H256) => PalletContractsWasmOwnerInfo | undefined>;
1273
- /**
1274
- * This is a **monotonic** counter incremented on contract instantiation.
1275
- *
1276
- * This is used in order to generate unique trie ids for contracts.
1277
- * The trie id of a new contract is calculated from hash(account_id, nonce).
1278
- * The nonce is required because otherwise the following sequence would lead to
1279
- * a possible collision of storage:
1280
- *
1281
- * 1. Create a new contract.
1282
- * 2. Terminate the contract.
1283
- * 3. Immediately recreate the contract with the same account_id.
1284
- *
1285
- * This is bad because the contents of a trie are deleted lazily and there might be
1286
- * storage of the old instantiation still in it when the new contract is created. Please
1287
- * note that we can't replace the counter by the block number because the sequence above
1288
- * can happen in the same block. We also can't keep the account counter in memory only
1289
- * because storage is the only way to communicate across different extrinsics in the
1290
- * same block.
1291
- *
1292
- * # Note
1293
- *
1294
- * Do not use it to determine the number of contracts. It won't be decremented if
1295
- * a contract is destroyed.
1296
- *
1297
- * @param {Callback<bigint> =} callback
1298
- **/
1299
- nonce: GenericStorageQuery<() => bigint>;
1300
- /**
1301
- * The code associated with a given account.
1302
- *
1303
- * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1304
- *
1305
- * @param {AccountId32Like} arg
1306
- * @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
1307
- **/
1308
- contractInfoOf: GenericStorageQuery<(arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined>;
1309
- /**
1310
- * Evicted contracts that await child trie deletion.
1311
- *
1312
- * Child trie deletion is a heavy operation depending on the amount of storage items
1313
- * stored in said trie. Therefore this operation is performed lazily in `on_idle`.
1314
- *
1315
- * @param {number} arg
1316
- * @param {Callback<Bytes | undefined> =} callback
1317
- **/
1318
- deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1319
- /**
1320
- * A pair of monotonic counters used to track the latest contract marked for deletion
1321
- * and the latest deleted contract in queue.
1322
- *
1323
- * @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
1324
- **/
1325
- deletionQueueCounter: GenericStorageQuery<() => PalletContractsStorageDeletionQueueManager>;
1326
- /**
1327
- *
1328
- * @param {Callback<Bytes | undefined> =} callback
1329
- **/
1330
- migrationInProgress: GenericStorageQuery<() => Bytes | undefined>;
1331
- /**
1332
- * Generic pallet storage query
1333
- **/
1334
- [storage: string]: GenericStorageQuery;
1335
- };
1336
- /**
1337
- * Pallet `Sudo`'s storage queries
1338
- **/
1339
- sudo: {
1340
- /**
1341
- * The `AccountId` of the sudo key.
1342
- *
1343
- * @param {Callback<AccountId32 | undefined> =} callback
1344
- **/
1345
- key: GenericStorageQuery<() => AccountId32 | undefined>;
1346
- /**
1347
- * Generic pallet storage query
1348
- **/
1349
- [storage: string]: GenericStorageQuery;
1350
- };
1351
- /**
1352
- * Pallet `StaticPriceProvider`'s storage queries
1353
- **/
1354
- staticPriceProvider: {
1355
- /**
1356
- * Current active native currency price.
1357
- *
1358
- * @param {Callback<FixedU64> =} callback
1359
- **/
1360
- activePrice: GenericStorageQuery<() => FixedU64>;
1361
- /**
1362
- * Generic pallet storage query
1363
- **/
1364
- [storage: string]: GenericStorageQuery;
1365
- };
1366
- /**
1367
- * Pallet `DappStakingMigration`'s storage queries
1368
- **/
1369
- dappStakingMigration: {
1370
- /**
1371
- * Used to store the current migration state.
1372
- *
1373
- * @param {Callback<PalletDappStakingMigrationMigrationState> =} callback
1374
- **/
1375
- migrationStateStorage: GenericStorageQuery<() => PalletDappStakingMigrationMigrationState>;
1376
- /**
1377
- * Generic pallet storage query
1378
- **/
1379
- [storage: string]: GenericStorageQuery;
1380
- };
1381
- /**
1382
- * Pallet `DappsStaking`'s storage queries
1383
- **/
1384
- dappsStaking: {
1385
- /**
1386
- * Denotes whether pallet is disabled (in maintenance mode) or not
1387
- *
1388
- * @param {Callback<boolean> =} callback
1389
- **/
1390
- palletDisabled: GenericStorageQuery<() => boolean>;
1391
- /**
1392
- * Denotes whether pallet decommissioning has started or not.
1393
- *
1394
- * @param {Callback<boolean> =} callback
1395
- **/
1396
- decommissionStarted: GenericStorageQuery<() => boolean>;
1397
- /**
1398
- * General information about the staker (non-smart-contract specific).
1399
- *
1400
- * @param {AccountId32Like} arg
1401
- * @param {Callback<PalletDappsStakingAccountLedger> =} callback
1402
- **/
1403
- ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletDappsStakingAccountLedger>;
1404
- /**
1405
- * The current era index.
1406
- *
1407
- * @param {Callback<number> =} callback
1408
- **/
1409
- currentEra: GenericStorageQuery<() => number>;
1410
- /**
1411
- * Accumulator for block rewards during an era. It is reset at every new era
1412
- *
1413
- * @param {Callback<PalletDappsStakingRewardInfo> =} callback
1414
- **/
1415
- blockRewardAccumulator: GenericStorageQuery<() => PalletDappsStakingRewardInfo>;
1416
- /**
1417
- * Mode of era forcing.
1418
- *
1419
- * @param {Callback<PalletDappsStakingForcing> =} callback
1420
- **/
1421
- forceEra: GenericStorageQuery<() => PalletDappsStakingForcing>;
1422
- /**
1423
- * Stores the block number of when the next era starts
1424
- *
1425
- * @param {Callback<number> =} callback
1426
- **/
1427
- nextEraStartingBlock: GenericStorageQuery<() => number>;
1428
- /**
1429
- * Simple map where developer account points to their smart contract
1430
- *
1431
- * @param {AccountId32Like} arg
1432
- * @param {Callback<AstarPrimitivesDappStakingSmartContract | undefined> =} callback
1433
- **/
1434
- registeredDevelopers: GenericStorageQuery<(arg: AccountId32Like) => AstarPrimitivesDappStakingSmartContract | undefined>;
1435
- /**
1436
- * Simple map where smart contract points to basic info about it (e.g. developer address, state)
1437
- *
1438
- * @param {AstarPrimitivesDappStakingSmartContract} arg
1439
- * @param {Callback<PalletDappsStakingDAppInfo | undefined> =} callback
1440
- **/
1441
- registeredDapps: GenericStorageQuery<(arg: AstarPrimitivesDappStakingSmartContract) => PalletDappsStakingDAppInfo | undefined>;
1442
- /**
1443
- * General information about an era like TVL, total staked value, rewards.
1444
- *
1445
- * @param {number} arg
1446
- * @param {Callback<PalletDappsStakingEraInfo | undefined> =} callback
1447
- **/
1448
- generalEraInfo: GenericStorageQuery<(arg: number) => PalletDappsStakingEraInfo | undefined>;
1449
- /**
1450
- * Staking information about contract in a particular era.
1451
- *
1452
- * @param {[AstarPrimitivesDappStakingSmartContract, number]} arg
1453
- * @param {Callback<PalletDappsStakingContractStakeInfo | undefined> =} callback
1454
- **/
1455
- contractEraStake: GenericStorageQuery<(arg: [AstarPrimitivesDappStakingSmartContract, number]) => PalletDappsStakingContractStakeInfo | undefined>;
1456
- /**
1457
- * Info about stakers stakes on particular contracts.
1458
- *
1459
- * @param {[AccountId32Like, AstarPrimitivesDappStakingSmartContract]} arg
1460
- * @param {Callback<PalletDappsStakingStakerInfo> =} callback
1461
- **/
1462
- generalStakerInfo: GenericStorageQuery<(arg: [AccountId32Like, AstarPrimitivesDappStakingSmartContract]) => PalletDappsStakingStakerInfo>;
1463
- /**
1464
- * Stores the current pallet storage version.
1465
- *
1466
- * @param {Callback<PalletDappsStakingVersion> =} callback
1467
- **/
1468
- storageVersion: GenericStorageQuery<() => PalletDappsStakingVersion>;
1469
- /**
1470
- * Generic pallet storage query
1471
- **/
1472
- [storage: string]: GenericStorageQuery;
1473
- };
101
+ * The full account information for a particular account ID.
102
+ *
103
+ * @param {AccountId32Like} arg
104
+ * @param {Callback<FrameSystemAccountInfo> =} callback
105
+ **/
106
+ account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
107
+
108
+ /**
109
+ * Total extrinsics count for the current block.
110
+ *
111
+ * @param {Callback<number | undefined> =} callback
112
+ **/
113
+ extrinsicCount: GenericStorageQuery<() => number | undefined>;
114
+
115
+ /**
116
+ * The current weight for the block.
117
+ *
118
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
119
+ **/
120
+ blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
121
+
122
+ /**
123
+ * Total length (in bytes) for all extrinsics put together, for the current block.
124
+ *
125
+ * @param {Callback<number | undefined> =} callback
126
+ **/
127
+ allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
128
+
129
+ /**
130
+ * Map of block numbers to block hashes.
131
+ *
132
+ * @param {number} arg
133
+ * @param {Callback<H256> =} callback
134
+ **/
135
+ blockHash: GenericStorageQuery<(arg: number) => H256>;
136
+
137
+ /**
138
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
139
+ *
140
+ * @param {number} arg
141
+ * @param {Callback<Bytes> =} callback
142
+ **/
143
+ extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
144
+
145
+ /**
146
+ * The current block number being processed. Set by `execute_block`.
147
+ *
148
+ * @param {Callback<number> =} callback
149
+ **/
150
+ number: GenericStorageQuery<() => number>;
151
+
152
+ /**
153
+ * Hash of the previous block.
154
+ *
155
+ * @param {Callback<H256> =} callback
156
+ **/
157
+ parentHash: GenericStorageQuery<() => H256>;
158
+
159
+ /**
160
+ * Digest of the current block, also part of the block header.
161
+ *
162
+ * @param {Callback<Digest> =} callback
163
+ **/
164
+ digest: GenericStorageQuery<() => Digest>;
165
+
166
+ /**
167
+ * Events deposited for the current block.
168
+ *
169
+ * NOTE: The item is unbound and should therefore never be read on chain.
170
+ * It could otherwise inflate the PoV size of a block.
171
+ *
172
+ * Events have a large in-memory size. Box the events to not go out-of-memory
173
+ * just in case someone still reads them from within the runtime.
174
+ *
175
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
176
+ **/
177
+ events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
178
+
179
+ /**
180
+ * The number of events in the `Events<T>` list.
181
+ *
182
+ * @param {Callback<number> =} callback
183
+ **/
184
+ eventCount: GenericStorageQuery<() => number>;
185
+
186
+ /**
187
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
188
+ * of events in the `<Events<T>>` list.
189
+ *
190
+ * All topic vectors have deterministic storage locations depending on the topic. This
191
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
192
+ * in case of changes fetch the list of events of interest.
193
+ *
194
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
195
+ * the `EventIndex` then in case if the topic has the same contents on the next block
196
+ * no notification will be triggered thus the event might be lost.
197
+ *
198
+ * @param {H256} arg
199
+ * @param {Callback<Array<[number, number]>> =} callback
200
+ **/
201
+ eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
202
+
203
+ /**
204
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
205
+ *
206
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
207
+ **/
208
+ lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
209
+
210
+ /**
211
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
212
+ *
213
+ * @param {Callback<boolean> =} callback
214
+ **/
215
+ upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
216
+
217
+ /**
218
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
219
+ * (default) if not.
220
+ *
221
+ * @param {Callback<boolean> =} callback
222
+ **/
223
+ upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
224
+
225
+ /**
226
+ * The execution phase of the block.
227
+ *
228
+ * @param {Callback<Phase | undefined> =} callback
229
+ **/
230
+ executionPhase: GenericStorageQuery<() => Phase | undefined>;
231
+
232
+ /**
233
+ * Generic pallet storage query
234
+ **/
235
+ [storage: string]: GenericStorageQuery;
236
+ };
237
+ /**
238
+ * Pallet `Identity`'s storage queries
239
+ **/
240
+ identity: {
241
+ /**
242
+ * Information that is pertinent to identify the entity behind an account.
243
+ *
244
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
245
+ *
246
+ * @param {AccountId32Like} arg
247
+ * @param {Callback<PalletIdentityRegistration | undefined> =} callback
248
+ **/
249
+ identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined>;
250
+
251
+ /**
252
+ * The super-identity of an alternative "sub" identity together with its name, within that
253
+ * context. If the account is not some other account's sub-identity, then just `None`.
254
+ *
255
+ * @param {AccountId32Like} arg
256
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
257
+ **/
258
+ superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
259
+
260
+ /**
261
+ * Alternative "sub" identities of this account.
262
+ *
263
+ * The first item is the deposit, the second is a vector of the accounts.
264
+ *
265
+ * TWOX-NOTE: OK `AccountId` is a secure hash.
266
+ *
267
+ * @param {AccountId32Like} arg
268
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
269
+ **/
270
+ subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
271
+
272
+ /**
273
+ * The set of registrars. Not expected to get very big as can only be added through a
274
+ * special origin (likely a council motion).
275
+ *
276
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
277
+ *
278
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
279
+ **/
280
+ registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
281
+
282
+ /**
283
+ * Generic pallet storage query
284
+ **/
285
+ [storage: string]: GenericStorageQuery;
286
+ };
287
+ /**
288
+ * Pallet `Timestamp`'s storage queries
289
+ **/
290
+ timestamp: {
291
+ /**
292
+ * Current time for the current block.
293
+ *
294
+ * @param {Callback<bigint> =} callback
295
+ **/
296
+ now: GenericStorageQuery<() => bigint>;
297
+
298
+ /**
299
+ * Did the timestamp get updated in this block?
300
+ *
301
+ * @param {Callback<boolean> =} callback
302
+ **/
303
+ didUpdate: GenericStorageQuery<() => boolean>;
304
+
305
+ /**
306
+ * Generic pallet storage query
307
+ **/
308
+ [storage: string]: GenericStorageQuery;
309
+ };
310
+ /**
311
+ * Pallet `Multisig`'s storage queries
312
+ **/
313
+ multisig: {
314
+ /**
315
+ * The set of open multisig operations.
316
+ *
317
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
318
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
319
+ **/
320
+ multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
321
+
322
+ /**
323
+ * Generic pallet storage query
324
+ **/
325
+ [storage: string]: GenericStorageQuery;
326
+ };
327
+ /**
328
+ * Pallet `Proxy`'s storage queries
329
+ **/
330
+ proxy: {
331
+ /**
332
+ * The set of account proxies. Maps the account which has delegated to the accounts
333
+ * which are being delegated to, together with the amount held on deposit.
334
+ *
335
+ * @param {AccountId32Like} arg
336
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
337
+ **/
338
+ proxies: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
339
+
340
+ /**
341
+ * The announcements made by the proxy (key).
342
+ *
343
+ * @param {AccountId32Like} arg
344
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
345
+ **/
346
+ announcements: GenericStorageQuery<(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint]>;
347
+
348
+ /**
349
+ * Generic pallet storage query
350
+ **/
351
+ [storage: string]: GenericStorageQuery;
352
+ };
353
+ /**
354
+ * Pallet `ParachainSystem`'s storage queries
355
+ **/
356
+ parachainSystem: {
357
+ /**
358
+ * Latest included block descendants the runtime accepted. In other words, these are
359
+ * ancestors of the currently executing block which have not been included in the observed
360
+ * relay-chain state.
361
+ *
362
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
363
+ * in the pallet.
364
+ *
365
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
366
+ **/
367
+ unincludedSegment: GenericStorageQuery<() => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
368
+
369
+ /**
370
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
371
+ * latest the latest HRMP watermark. Used for limiting the acceptance of new blocks with
372
+ * respect to relay chain constraints.
373
+ *
374
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
375
+ **/
376
+ aggregatedUnincludedSegment: GenericStorageQuery<
377
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
378
+ >;
379
+
380
+ /**
381
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
382
+ * applied.
383
+ *
384
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
385
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
386
+ * with the new validation code. This concludes the upgrade process.
387
+ *
388
+ * @param {Callback<Bytes> =} callback
389
+ **/
390
+ pendingValidationCode: GenericStorageQuery<() => Bytes>;
391
+
392
+ /**
393
+ * Validation code that is set by the parachain and is to be communicated to collator and
394
+ * consequently the relay-chain.
395
+ *
396
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
397
+ * the value.
398
+ *
399
+ * @param {Callback<Bytes | undefined> =} callback
400
+ **/
401
+ newValidationCode: GenericStorageQuery<() => Bytes | undefined>;
402
+
403
+ /**
404
+ * The [`PersistedValidationData`] set for this block.
405
+ * This value is expected to be set only once per block and it's never stored
406
+ * in the trie.
407
+ *
408
+ * @param {Callback<PolkadotPrimitivesV5PersistedValidationData | undefined> =} callback
409
+ **/
410
+ validationData: GenericStorageQuery<() => PolkadotPrimitivesV5PersistedValidationData | undefined>;
411
+
412
+ /**
413
+ * Were the validation data set to notify the relay chain?
414
+ *
415
+ * @param {Callback<boolean> =} callback
416
+ **/
417
+ didSetValidationCode: GenericStorageQuery<() => boolean>;
418
+
419
+ /**
420
+ * The relay chain block number associated with the last parachain block.
421
+ *
422
+ * @param {Callback<number> =} callback
423
+ **/
424
+ lastRelayChainBlockNumber: GenericStorageQuery<() => number>;
425
+
426
+ /**
427
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
428
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
429
+ * candidate will be invalid.
430
+ *
431
+ * This storage item is a mirror of the corresponding value for the current parachain from the
432
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
433
+ * set after the inherent.
434
+ *
435
+ * @param {Callback<PolkadotPrimitivesV5UpgradeRestriction | undefined> =} callback
436
+ **/
437
+ upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV5UpgradeRestriction | undefined>;
438
+
439
+ /**
440
+ * Optional upgrade go-ahead signal from the relay-chain.
441
+ *
442
+ * This storage item is a mirror of the corresponding value for the current parachain from the
443
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
444
+ * set after the inherent.
445
+ *
446
+ * @param {Callback<PolkadotPrimitivesV5UpgradeGoAhead | undefined> =} callback
447
+ **/
448
+ upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV5UpgradeGoAhead | undefined>;
449
+
450
+ /**
451
+ * The state proof for the last relay parent block.
452
+ *
453
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
454
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
455
+ *
456
+ * This data is also absent from the genesis.
457
+ *
458
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
459
+ **/
460
+ relayStateProof: GenericStorageQuery<() => SpTrieStorageProof | undefined>;
461
+
462
+ /**
463
+ * The snapshot of some state related to messaging relevant to the current parachain as per
464
+ * the relay parent.
465
+ *
466
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
467
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
468
+ *
469
+ * This data is also absent from the genesis.
470
+ *
471
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
472
+ **/
473
+ relevantMessagingState: GenericStorageQuery<
474
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
475
+ >;
476
+
477
+ /**
478
+ * The parachain host configuration that was obtained from the relay parent.
479
+ *
480
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
481
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
482
+ *
483
+ * This data is also absent from the genesis.
484
+ *
485
+ * @param {Callback<PolkadotPrimitivesV5AbridgedHostConfiguration | undefined> =} callback
486
+ **/
487
+ hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV5AbridgedHostConfiguration | undefined>;
488
+
489
+ /**
490
+ * The last downward message queue chain head we have observed.
491
+ *
492
+ * This value is loaded before and saved after processing inbound downward messages carried
493
+ * by the system inherent.
494
+ *
495
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
496
+ **/
497
+ lastDmqMqcHead: GenericStorageQuery<() => CumulusPrimitivesParachainInherentMessageQueueChain>;
498
+
499
+ /**
500
+ * The message queue chain heads we have observed per each channel incoming channel.
501
+ *
502
+ * This value is loaded before and saved after processing inbound downward messages carried
503
+ * by the system inherent.
504
+ *
505
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
506
+ **/
507
+ lastHrmpMqcHeads: GenericStorageQuery<
508
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
509
+ >;
510
+
511
+ /**
512
+ * Number of downward messages processed in a block.
513
+ *
514
+ * This will be cleared in `on_initialize` of each new block.
515
+ *
516
+ * @param {Callback<number> =} callback
517
+ **/
518
+ processedDownwardMessages: GenericStorageQuery<() => number>;
519
+
520
+ /**
521
+ * HRMP watermark that was set in a block.
522
+ *
523
+ * This will be cleared in `on_initialize` of each new block.
524
+ *
525
+ * @param {Callback<number> =} callback
526
+ **/
527
+ hrmpWatermark: GenericStorageQuery<() => number>;
528
+
529
+ /**
530
+ * HRMP messages that were sent in a block.
531
+ *
532
+ * This will be cleared in `on_initialize` of each new block.
533
+ *
534
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
535
+ **/
536
+ hrmpOutboundMessages: GenericStorageQuery<() => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
537
+
538
+ /**
539
+ * Upward messages that were sent in a block.
540
+ *
541
+ * This will be cleared in `on_initialize` of each new block.
542
+ *
543
+ * @param {Callback<Array<Bytes>> =} callback
544
+ **/
545
+ upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
546
+
547
+ /**
548
+ * Upward messages that are still pending and not yet send to the relay chain.
549
+ *
550
+ * @param {Callback<Array<Bytes>> =} callback
551
+ **/
552
+ pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
553
+
554
+ /**
555
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
556
+ * announcing the weight of `on_initialize` and `on_finalize`.
557
+ *
558
+ * @param {Callback<number> =} callback
559
+ **/
560
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<() => number>;
561
+
562
+ /**
563
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
564
+ * overrides the amount set in the Config trait.
565
+ *
566
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
567
+ **/
568
+ reservedXcmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
569
+
570
+ /**
571
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
572
+ * overrides the amount set in the Config trait.
573
+ *
574
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
575
+ **/
576
+ reservedDmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
577
+
578
+ /**
579
+ * The next authorized upgrade, if there is one.
580
+ *
581
+ * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
582
+ **/
583
+ authorizedUpgrade: GenericStorageQuery<() => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
584
+
585
+ /**
586
+ * A custom head data that should be returned as result of `validate_block`.
587
+ *
588
+ * See `Pallet::set_custom_validation_head_data` for more information.
589
+ *
590
+ * @param {Callback<Bytes | undefined> =} callback
591
+ **/
592
+ customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
593
+
594
+ /**
595
+ * Generic pallet storage query
596
+ **/
597
+ [storage: string]: GenericStorageQuery;
598
+ };
599
+ /**
600
+ * Pallet `ParachainInfo`'s storage queries
601
+ **/
602
+ parachainInfo: {
603
+ /**
604
+ *
605
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
606
+ **/
607
+ parachainId: GenericStorageQuery<() => PolkadotParachainPrimitivesPrimitivesId>;
608
+
609
+ /**
610
+ * Generic pallet storage query
611
+ **/
612
+ [storage: string]: GenericStorageQuery;
613
+ };
614
+ /**
615
+ * Pallet `TransactionPayment`'s storage queries
616
+ **/
617
+ transactionPayment: {
618
+ /**
619
+ *
620
+ * @param {Callback<FixedU128> =} callback
621
+ **/
622
+ nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
623
+
624
+ /**
625
+ *
626
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
627
+ **/
628
+ storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
629
+
630
+ /**
631
+ * Generic pallet storage query
632
+ **/
633
+ [storage: string]: GenericStorageQuery;
634
+ };
635
+ /**
636
+ * Pallet `Balances`'s storage queries
637
+ **/
638
+ balances: {
639
+ /**
640
+ * The total units issued in the system.
641
+ *
642
+ * @param {Callback<bigint> =} callback
643
+ **/
644
+ totalIssuance: GenericStorageQuery<() => bigint>;
645
+
646
+ /**
647
+ * The total units of outstanding deactivated balance in the system.
648
+ *
649
+ * @param {Callback<bigint> =} callback
650
+ **/
651
+ inactiveIssuance: GenericStorageQuery<() => bigint>;
652
+
653
+ /**
654
+ * The Balances pallet example of storing the balance of an account.
655
+ *
656
+ * # Example
657
+ *
658
+ * ```nocompile
659
+ * impl pallet_balances::Config for Runtime {
660
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
661
+ * }
662
+ * ```
663
+ *
664
+ * You can also store the balance of an account in the `System` pallet.
665
+ *
666
+ * # Example
667
+ *
668
+ * ```nocompile
669
+ * impl pallet_balances::Config for Runtime {
670
+ * type AccountStore = System
671
+ * }
672
+ * ```
673
+ *
674
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
675
+ * `frame_system` data alongside the account data contrary to storing account balances in the
676
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
677
+ * NOTE: This is only used in the case that this pallet is used to store balances.
678
+ *
679
+ * @param {AccountId32Like} arg
680
+ * @param {Callback<PalletBalancesAccountData> =} callback
681
+ **/
682
+ account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
683
+
684
+ /**
685
+ * Any liquidity locks on some account balances.
686
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
687
+ *
688
+ * @param {AccountId32Like} arg
689
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
690
+ **/
691
+ locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
692
+
693
+ /**
694
+ * Named reserves on some account balances.
695
+ *
696
+ * @param {AccountId32Like} arg
697
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
698
+ **/
699
+ reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
700
+
701
+ /**
702
+ * Holds on account balances.
703
+ *
704
+ * @param {AccountId32Like} arg
705
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
706
+ **/
707
+ holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
708
+
709
+ /**
710
+ * Freeze locks on account balances.
711
+ *
712
+ * @param {AccountId32Like} arg
713
+ * @param {Callback<Array<PalletBalancesIdAmountRuntimeFreezeReason>> =} callback
714
+ **/
715
+ freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmountRuntimeFreezeReason>>;
716
+
717
+ /**
718
+ * Generic pallet storage query
719
+ **/
720
+ [storage: string]: GenericStorageQuery;
721
+ };
722
+ /**
723
+ * Pallet `Vesting`'s storage queries
724
+ **/
725
+ vesting: {
726
+ /**
727
+ * Information regarding the vesting of a given account.
728
+ *
729
+ * @param {AccountId32Like} arg
730
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
731
+ **/
732
+ vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined>;
733
+
734
+ /**
735
+ * Storage version of the pallet.
736
+ *
737
+ * New networks start with latest version, as determined by the genesis build.
738
+ *
739
+ * @param {Callback<PalletVestingReleases> =} callback
740
+ **/
741
+ storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
742
+
743
+ /**
744
+ * Generic pallet storage query
745
+ **/
746
+ [storage: string]: GenericStorageQuery;
747
+ };
748
+ /**
749
+ * Pallet `Inflation`'s storage queries
750
+ **/
751
+ inflation: {
752
+ /**
753
+ * Active inflation configuration parameters.
754
+ * They describe current rewards, when inflation needs to be recalculated, etc.
755
+ *
756
+ * @param {Callback<PalletInflationInflationConfiguration> =} callback
757
+ **/
758
+ activeInflationConfig: GenericStorageQuery<() => PalletInflationInflationConfiguration>;
759
+
760
+ /**
761
+ * Static inflation parameters - used to calculate active inflation configuration at certain points in time.
762
+ *
763
+ * @param {Callback<PalletInflationInflationParameters> =} callback
764
+ **/
765
+ inflationParams: GenericStorageQuery<() => PalletInflationInflationParameters>;
766
+
767
+ /**
768
+ * Flag indicating whether on the first possible opportunity, recalculation of the inflation config should be done.
769
+ *
770
+ * @param {Callback<number | undefined> =} callback
771
+ **/
772
+ doRecalculation: GenericStorageQuery<() => number | undefined>;
773
+
774
+ /**
775
+ * Generic pallet storage query
776
+ **/
777
+ [storage: string]: GenericStorageQuery;
778
+ };
779
+ /**
780
+ * Pallet `DappStaking`'s storage queries
781
+ **/
782
+ dappStaking: {
783
+ /**
784
+ * General information about dApp staking protocol state.
785
+ *
786
+ * @param {Callback<PalletDappStakingV3ProtocolState> =} callback
787
+ **/
788
+ activeProtocolState: GenericStorageQuery<() => PalletDappStakingV3ProtocolState>;
789
+
790
+ /**
791
+ * Counter for unique dApp identifiers.
792
+ *
793
+ * @param {Callback<number> =} callback
794
+ **/
795
+ nextDAppId: GenericStorageQuery<() => number>;
796
+
797
+ /**
798
+ * Map of all dApps integrated into dApp staking protocol.
799
+ *
800
+ * Even though dApp is integrated, it does not mean it's still actively participating in dApp staking.
801
+ * It might have been unregistered at some point in history.
802
+ *
803
+ * @param {AstarPrimitivesDappStakingSmartContract} arg
804
+ * @param {Callback<PalletDappStakingV3DAppInfo | undefined> =} callback
805
+ **/
806
+ integratedDApps: GenericStorageQuery<
807
+ (arg: AstarPrimitivesDappStakingSmartContract) => PalletDappStakingV3DAppInfo | undefined
808
+ >;
809
+
810
+ /**
811
+ * Counter for the related counted storage map
812
+ *
813
+ * @param {Callback<number> =} callback
814
+ **/
815
+ counterForIntegratedDApps: GenericStorageQuery<() => number>;
816
+
817
+ /**
818
+ * General locked/staked information for each account.
819
+ *
820
+ * @param {AccountId32Like} arg
821
+ * @param {Callback<PalletDappStakingV3AccountLedger> =} callback
822
+ **/
823
+ ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletDappStakingV3AccountLedger>;
824
+
825
+ /**
826
+ * Information about how much each staker has staked for each smart contract in some period.
827
+ *
828
+ * @param {[AccountId32Like, AstarPrimitivesDappStakingSmartContract]} arg
829
+ * @param {Callback<PalletDappStakingV3SingularStakingInfo | undefined> =} callback
830
+ **/
831
+ stakerInfo: GenericStorageQuery<
832
+ (
833
+ arg: [AccountId32Like, AstarPrimitivesDappStakingSmartContract],
834
+ ) => PalletDappStakingV3SingularStakingInfo | undefined
835
+ >;
836
+
837
+ /**
838
+ * Information about how much has been staked on a smart contract in some era or period.
839
+ *
840
+ * @param {number} arg
841
+ * @param {Callback<PalletDappStakingV3ContractStakeAmount> =} callback
842
+ **/
843
+ contractStake: GenericStorageQuery<(arg: number) => PalletDappStakingV3ContractStakeAmount>;
844
+
845
+ /**
846
+ * General information about the current era.
847
+ *
848
+ * @param {Callback<PalletDappStakingV3EraInfo> =} callback
849
+ **/
850
+ currentEraInfo: GenericStorageQuery<() => PalletDappStakingV3EraInfo>;
851
+
852
+ /**
853
+ * Information about rewards for each era.
854
+ *
855
+ * Since each entry is a 'span', covering up to `T::EraRewardSpanLength` entries, only certain era value keys can exist in storage.
856
+ * For the sake of simplicity, valid `era` keys are calculated as:
857
+ *
858
+ * era_key = era - (era % T::EraRewardSpanLength)
859
+ *
860
+ * This means that e.g. in case `EraRewardSpanLength = 8`, only era values 0, 8, 16, 24, etc. can exist in storage.
861
+ * Eras 1-7 will be stored in the same entry as era 0, eras 9-15 will be stored in the same entry as era 8, etc.
862
+ *
863
+ * @param {number} arg
864
+ * @param {Callback<PalletDappStakingV3EraRewardSpan | undefined> =} callback
865
+ **/
866
+ eraRewards: GenericStorageQuery<(arg: number) => PalletDappStakingV3EraRewardSpan | undefined>;
867
+
868
+ /**
869
+ * Information about period's end.
870
+ *
871
+ * @param {number} arg
872
+ * @param {Callback<PalletDappStakingV3PeriodEndInfo | undefined> =} callback
873
+ **/
874
+ periodEnd: GenericStorageQuery<(arg: number) => PalletDappStakingV3PeriodEndInfo | undefined>;
875
+
876
+ /**
877
+ * Static tier parameters used to calculate tier configuration.
878
+ *
879
+ * @param {Callback<PalletDappStakingV3TierParameters> =} callback
880
+ **/
881
+ staticTierParams: GenericStorageQuery<() => PalletDappStakingV3TierParameters>;
882
+
883
+ /**
884
+ * Tier configuration user for current & preceding eras.
885
+ *
886
+ * @param {Callback<PalletDappStakingV3TiersConfiguration> =} callback
887
+ **/
888
+ tierConfig: GenericStorageQuery<() => PalletDappStakingV3TiersConfiguration>;
889
+
890
+ /**
891
+ * Information about which tier a dApp belonged to in a specific era.
892
+ *
893
+ * @param {number} arg
894
+ * @param {Callback<PalletDappStakingV3DAppTierRewards | undefined> =} callback
895
+ **/
896
+ dAppTiers: GenericStorageQuery<(arg: number) => PalletDappStakingV3DAppTierRewards | undefined>;
897
+
898
+ /**
899
+ * History cleanup marker - holds information about which DB entries should be cleaned up next, when applicable.
900
+ *
901
+ * @param {Callback<PalletDappStakingV3CleanupMarker> =} callback
902
+ **/
903
+ historyCleanupMarker: GenericStorageQuery<() => PalletDappStakingV3CleanupMarker>;
904
+
905
+ /**
906
+ * Safeguard to prevent unwanted operations in production.
907
+ * Kept as a storage without extrinsic setter, so we can still enable it for some
908
+ * chain-fork debugging if required.
909
+ *
910
+ * @param {Callback<boolean> =} callback
911
+ **/
912
+ safeguard: GenericStorageQuery<() => boolean>;
913
+
914
+ /**
915
+ * Generic pallet storage query
916
+ **/
917
+ [storage: string]: GenericStorageQuery;
918
+ };
919
+ /**
920
+ * Pallet `Assets`'s storage queries
921
+ **/
922
+ assets: {
923
+ /**
924
+ * Details of an asset.
925
+ *
926
+ * @param {bigint} arg
927
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
928
+ **/
929
+ asset: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetDetails | undefined>;
930
+
931
+ /**
932
+ * The holdings of a specific account for a specific asset.
933
+ *
934
+ * @param {[bigint, AccountId32Like]} arg
935
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
936
+ **/
937
+ account: GenericStorageQuery<(arg: [bigint, AccountId32Like]) => PalletAssetsAssetAccount | undefined>;
938
+
939
+ /**
940
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
941
+ * is the amount of `T::Currency` reserved for storing this.
942
+ * First key is the asset ID, second key is the owner and third key is the delegate.
943
+ *
944
+ * @param {[bigint, AccountId32Like, AccountId32Like]} arg
945
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
946
+ **/
947
+ approvals: GenericStorageQuery<
948
+ (arg: [bigint, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined
949
+ >;
950
+
951
+ /**
952
+ * Metadata of an asset.
953
+ *
954
+ * @param {bigint} arg
955
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
956
+ **/
957
+ metadata: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetMetadata>;
958
+
959
+ /**
960
+ * Generic pallet storage query
961
+ **/
962
+ [storage: string]: GenericStorageQuery;
963
+ };
964
+ /**
965
+ * Pallet `Authorship`'s storage queries
966
+ **/
967
+ authorship: {
968
+ /**
969
+ * Author of current block.
970
+ *
971
+ * @param {Callback<AccountId32 | undefined> =} callback
972
+ **/
973
+ author: GenericStorageQuery<() => AccountId32 | undefined>;
974
+
975
+ /**
976
+ * Generic pallet storage query
977
+ **/
978
+ [storage: string]: GenericStorageQuery;
979
+ };
980
+ /**
981
+ * Pallet `CollatorSelection`'s storage queries
982
+ **/
983
+ collatorSelection: {
984
+ /**
985
+ * The invulnerable, fixed collators.
986
+ *
987
+ * @param {Callback<Array<AccountId32>> =} callback
988
+ **/
989
+ invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
990
+
991
+ /**
992
+ * The (community, limited) collation candidates.
993
+ *
994
+ * @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
995
+ **/
996
+ candidates: GenericStorageQuery<() => Array<PalletCollatorSelectionCandidateInfo>>;
997
+
998
+ /**
999
+ * Last block authored by collator.
1000
+ *
1001
+ * @param {AccountId32Like} arg
1002
+ * @param {Callback<number> =} callback
1003
+ **/
1004
+ lastAuthoredBlock: GenericStorageQuery<(arg: AccountId32Like) => number>;
1005
+
1006
+ /**
1007
+ * Desired number of candidates.
1008
+ *
1009
+ * This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
1010
+ *
1011
+ * @param {Callback<number> =} callback
1012
+ **/
1013
+ desiredCandidates: GenericStorageQuery<() => number>;
1014
+
1015
+ /**
1016
+ * Fixed amount to deposit to become a collator.
1017
+ *
1018
+ * When a collator calls `leave_intent` they immediately receive the deposit back.
1019
+ *
1020
+ * @param {Callback<bigint> =} callback
1021
+ **/
1022
+ candidacyBond: GenericStorageQuery<() => bigint>;
1023
+
1024
+ /**
1025
+ * Destination account for slashed amount.
1026
+ *
1027
+ * @param {Callback<AccountId32 | undefined> =} callback
1028
+ **/
1029
+ slashDestination: GenericStorageQuery<() => AccountId32 | undefined>;
1030
+
1031
+ /**
1032
+ * Generic pallet storage query
1033
+ **/
1034
+ [storage: string]: GenericStorageQuery;
1035
+ };
1036
+ /**
1037
+ * Pallet `Session`'s storage queries
1038
+ **/
1039
+ session: {
1040
+ /**
1041
+ * The current set of validators.
1042
+ *
1043
+ * @param {Callback<Array<AccountId32>> =} callback
1044
+ **/
1045
+ validators: GenericStorageQuery<() => Array<AccountId32>>;
1046
+
1047
+ /**
1048
+ * Current index of the session.
1049
+ *
1050
+ * @param {Callback<number> =} callback
1051
+ **/
1052
+ currentIndex: GenericStorageQuery<() => number>;
1053
+
1054
+ /**
1055
+ * True if the underlying economic identities or weighting behind the validators
1056
+ * has changed in the queued validator set.
1057
+ *
1058
+ * @param {Callback<boolean> =} callback
1059
+ **/
1060
+ queuedChanged: GenericStorageQuery<() => boolean>;
1061
+
1062
+ /**
1063
+ * The queued keys for the next session. When the next session begins, these keys
1064
+ * will be used to determine the validator's session keys.
1065
+ *
1066
+ * @param {Callback<Array<[AccountId32, AstarRuntimeSessionKeys]>> =} callback
1067
+ **/
1068
+ queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AstarRuntimeSessionKeys]>>;
1069
+
1070
+ /**
1071
+ * Indices of disabled validators.
1072
+ *
1073
+ * The vec is always kept sorted so that we can find whether a given validator is
1074
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
1075
+ * a new set of identities.
1076
+ *
1077
+ * @param {Callback<Array<number>> =} callback
1078
+ **/
1079
+ disabledValidators: GenericStorageQuery<() => Array<number>>;
1080
+
1081
+ /**
1082
+ * The next session keys for a validator.
1083
+ *
1084
+ * @param {AccountId32Like} arg
1085
+ * @param {Callback<AstarRuntimeSessionKeys | undefined> =} callback
1086
+ **/
1087
+ nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AstarRuntimeSessionKeys | undefined>;
1088
+
1089
+ /**
1090
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1091
+ *
1092
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
1093
+ * @param {Callback<AccountId32 | undefined> =} callback
1094
+ **/
1095
+ keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
1096
+
1097
+ /**
1098
+ * Generic pallet storage query
1099
+ **/
1100
+ [storage: string]: GenericStorageQuery;
1101
+ };
1102
+ /**
1103
+ * Pallet `Aura`'s storage queries
1104
+ **/
1105
+ aura: {
1106
+ /**
1107
+ * The current authority set.
1108
+ *
1109
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
1110
+ **/
1111
+ authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
1112
+
1113
+ /**
1114
+ * The current slot of this block.
1115
+ *
1116
+ * This will be set in `on_initialize`.
1117
+ *
1118
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
1119
+ **/
1120
+ currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
1121
+
1122
+ /**
1123
+ * Generic pallet storage query
1124
+ **/
1125
+ [storage: string]: GenericStorageQuery;
1126
+ };
1127
+ /**
1128
+ * Pallet `AuraExt`'s storage queries
1129
+ **/
1130
+ auraExt: {
1131
+ /**
1132
+ * Serves as cache for the authorities.
1133
+ *
1134
+ * The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
1135
+ * but we require the old authorities to verify the seal when validating a PoV. This will
1136
+ * always be updated to the latest AuRa authorities in `on_finalize`.
1137
+ *
1138
+ * @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
1139
+ **/
1140
+ authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
1141
+
1142
+ /**
1143
+ * Current slot paired with a number of authored blocks.
1144
+ *
1145
+ * Updated on each block initialization.
1146
+ *
1147
+ * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
1148
+ **/
1149
+ slotInfo: GenericStorageQuery<() => [SpConsensusSlotsSlot, number] | undefined>;
1150
+
1151
+ /**
1152
+ * Generic pallet storage query
1153
+ **/
1154
+ [storage: string]: GenericStorageQuery;
1155
+ };
1156
+ /**
1157
+ * Pallet `XcmpQueue`'s storage queries
1158
+ **/
1159
+ xcmpQueue: {
1160
+ /**
1161
+ * Status of the inbound XCMP channels.
1162
+ *
1163
+ * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
1164
+ **/
1165
+ inboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
1166
+
1167
+ /**
1168
+ * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
1169
+ *
1170
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1171
+ * @param {Callback<Bytes> =} callback
1172
+ **/
1173
+ inboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
1174
+
1175
+ /**
1176
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
1177
+ * and last outbound message. If the two indices are equal, then it indicates an empty
1178
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
1179
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
1180
+ * case of the need to send a high-priority signal message this block.
1181
+ * The bool is true if there is a signal message waiting to be sent.
1182
+ *
1183
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
1184
+ **/
1185
+ outboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
1186
+
1187
+ /**
1188
+ * The messages outbound in a given XCMP channel.
1189
+ *
1190
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1191
+ * @param {Callback<Bytes> =} callback
1192
+ **/
1193
+ outboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
1194
+
1195
+ /**
1196
+ * Any signal messages waiting to be sent.
1197
+ *
1198
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1199
+ * @param {Callback<Bytes> =} callback
1200
+ **/
1201
+ signalMessages: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes>;
1202
+
1203
+ /**
1204
+ * The configuration which controls the dynamics of the outbound queue.
1205
+ *
1206
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
1207
+ **/
1208
+ queueConfig: GenericStorageQuery<() => CumulusPalletXcmpQueueQueueConfigData>;
1209
+
1210
+ /**
1211
+ * The messages that exceeded max individual message weight budget.
1212
+ *
1213
+ * These message stay in this storage map until they are manually dispatched via
1214
+ * `service_overweight`.
1215
+ *
1216
+ * @param {bigint} arg
1217
+ * @param {Callback<[PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined> =} callback
1218
+ **/
1219
+ overweight: GenericStorageQuery<
1220
+ (arg: bigint) => [PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined
1221
+ >;
1222
+
1223
+ /**
1224
+ * Counter for the related counted storage map
1225
+ *
1226
+ * @param {Callback<number> =} callback
1227
+ **/
1228
+ counterForOverweight: GenericStorageQuery<() => number>;
1229
+
1230
+ /**
1231
+ * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
1232
+ * available free overweight index.
1233
+ *
1234
+ * @param {Callback<bigint> =} callback
1235
+ **/
1236
+ overweightCount: GenericStorageQuery<() => bigint>;
1237
+
1238
+ /**
1239
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
1240
+ *
1241
+ * @param {Callback<boolean> =} callback
1242
+ **/
1243
+ queueSuspended: GenericStorageQuery<() => boolean>;
1244
+
1245
+ /**
1246
+ * Generic pallet storage query
1247
+ **/
1248
+ [storage: string]: GenericStorageQuery;
1249
+ };
1250
+ /**
1251
+ * Pallet `PolkadotXcm`'s storage queries
1252
+ **/
1253
+ polkadotXcm: {
1254
+ /**
1255
+ * The latest available query index.
1256
+ *
1257
+ * @param {Callback<bigint> =} callback
1258
+ **/
1259
+ queryCounter: GenericStorageQuery<() => bigint>;
1260
+
1261
+ /**
1262
+ * The ongoing queries.
1263
+ *
1264
+ * @param {bigint} arg
1265
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
1266
+ **/
1267
+ queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
1268
+
1269
+ /**
1270
+ * The existing asset traps.
1271
+ *
1272
+ * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
1273
+ * times this pair has been trapped (usually just 1 if it exists at all).
1274
+ *
1275
+ * @param {H256} arg
1276
+ * @param {Callback<number> =} callback
1277
+ **/
1278
+ assetTraps: GenericStorageQuery<(arg: H256) => number>;
1279
+
1280
+ /**
1281
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
1282
+ * then the destinations whose XCM version is unknown are considered unreachable.
1283
+ *
1284
+ * @param {Callback<number | undefined> =} callback
1285
+ **/
1286
+ safeXcmVersion: GenericStorageQuery<() => number | undefined>;
1287
+
1288
+ /**
1289
+ * The Latest versions that we know various locations support.
1290
+ *
1291
+ * @param {[number, StagingXcmVersionedMultiLocation]} arg
1292
+ * @param {Callback<number | undefined> =} callback
1293
+ **/
1294
+ supportedVersion: GenericStorageQuery<(arg: [number, StagingXcmVersionedMultiLocation]) => number | undefined>;
1295
+
1296
+ /**
1297
+ * All locations that we have requested version notifications from.
1298
+ *
1299
+ * @param {[number, StagingXcmVersionedMultiLocation]} arg
1300
+ * @param {Callback<bigint | undefined> =} callback
1301
+ **/
1302
+ versionNotifiers: GenericStorageQuery<(arg: [number, StagingXcmVersionedMultiLocation]) => bigint | undefined>;
1303
+
1304
+ /**
1305
+ * The target locations that are subscribed to our version changes, as well as the most recent
1306
+ * of our versions we informed them of.
1307
+ *
1308
+ * @param {[number, StagingXcmVersionedMultiLocation]} arg
1309
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1310
+ **/
1311
+ versionNotifyTargets: GenericStorageQuery<
1312
+ (arg: [number, StagingXcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined
1313
+ >;
1314
+
1315
+ /**
1316
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1317
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
1318
+ * which is used as a prioritization.
1319
+ *
1320
+ * @param {Callback<Array<[StagingXcmVersionedMultiLocation, number]>> =} callback
1321
+ **/
1322
+ versionDiscoveryQueue: GenericStorageQuery<() => Array<[StagingXcmVersionedMultiLocation, number]>>;
1323
+
1324
+ /**
1325
+ * The current migration's stage, if any.
1326
+ *
1327
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1328
+ **/
1329
+ currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
1330
+
1331
+ /**
1332
+ * Fungible assets which we know are locked on a remote chain.
1333
+ *
1334
+ * @param {[number, AccountId32Like, StagingXcmVersionedAssetId]} arg
1335
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1336
+ **/
1337
+ remoteLockedFungibles: GenericStorageQuery<
1338
+ (arg: [number, AccountId32Like, StagingXcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined
1339
+ >;
1340
+
1341
+ /**
1342
+ * Fungible assets which we know are locked on this chain.
1343
+ *
1344
+ * @param {AccountId32Like} arg
1345
+ * @param {Callback<Array<[bigint, StagingXcmVersionedMultiLocation]> | undefined> =} callback
1346
+ **/
1347
+ lockedFungibles: GenericStorageQuery<
1348
+ (arg: AccountId32Like) => Array<[bigint, StagingXcmVersionedMultiLocation]> | undefined
1349
+ >;
1350
+
1351
+ /**
1352
+ * Global suspension state of the XCM executor.
1353
+ *
1354
+ * @param {Callback<boolean> =} callback
1355
+ **/
1356
+ xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
1357
+
1358
+ /**
1359
+ * Generic pallet storage query
1360
+ **/
1361
+ [storage: string]: GenericStorageQuery;
1362
+ };
1363
+ /**
1364
+ * Pallet `DmpQueue`'s storage queries
1365
+ **/
1366
+ dmpQueue: {
1367
+ /**
1368
+ * The configuration.
1369
+ *
1370
+ * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
1371
+ **/
1372
+ configuration: GenericStorageQuery<() => CumulusPalletDmpQueueConfigData>;
1373
+
1374
+ /**
1375
+ * The page index.
1376
+ *
1377
+ * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
1378
+ **/
1379
+ pageIndex: GenericStorageQuery<() => CumulusPalletDmpQueuePageIndexData>;
1380
+
1381
+ /**
1382
+ * The queue pages.
1383
+ *
1384
+ * @param {number} arg
1385
+ * @param {Callback<Array<[number, Bytes]>> =} callback
1386
+ **/
1387
+ pages: GenericStorageQuery<(arg: number) => Array<[number, Bytes]>>;
1388
+
1389
+ /**
1390
+ * The overweight messages.
1391
+ *
1392
+ * @param {bigint} arg
1393
+ * @param {Callback<[number, Bytes] | undefined> =} callback
1394
+ **/
1395
+ overweight: GenericStorageQuery<(arg: bigint) => [number, Bytes] | undefined>;
1396
+
1397
+ /**
1398
+ * Counter for the related counted storage map
1399
+ *
1400
+ * @param {Callback<number> =} callback
1401
+ **/
1402
+ counterForOverweight: GenericStorageQuery<() => number>;
1403
+
1404
+ /**
1405
+ * Generic pallet storage query
1406
+ **/
1407
+ [storage: string]: GenericStorageQuery;
1408
+ };
1409
+ /**
1410
+ * Pallet `XcAssetConfig`'s storage queries
1411
+ **/
1412
+ xcAssetConfig: {
1413
+ /**
1414
+ * Mapping from an asset id to asset type.
1415
+ * Can be used when receiving transaction specifying an asset directly,
1416
+ * like transferring an asset from this chain to another.
1417
+ *
1418
+ * @param {bigint} arg
1419
+ * @param {Callback<StagingXcmVersionedMultiLocation | undefined> =} callback
1420
+ **/
1421
+ assetIdToLocation: GenericStorageQuery<(arg: bigint) => StagingXcmVersionedMultiLocation | undefined>;
1422
+
1423
+ /**
1424
+ * Mapping from an asset type to an asset id.
1425
+ * Can be used when receiving a multilocation XCM message to retrieve
1426
+ * the corresponding asset in which tokens should me minted.
1427
+ *
1428
+ * @param {StagingXcmVersionedMultiLocation} arg
1429
+ * @param {Callback<bigint | undefined> =} callback
1430
+ **/
1431
+ assetLocationToId: GenericStorageQuery<(arg: StagingXcmVersionedMultiLocation) => bigint | undefined>;
1432
+
1433
+ /**
1434
+ * Stores the units per second for local execution for a AssetLocation.
1435
+ * This is used to know how to charge for XCM execution in a particular asset.
1436
+ *
1437
+ * Not all asset types are supported for payment. If value exists here, it means it is supported.
1438
+ *
1439
+ * @param {StagingXcmVersionedMultiLocation} arg
1440
+ * @param {Callback<bigint | undefined> =} callback
1441
+ **/
1442
+ assetLocationUnitsPerSecond: GenericStorageQuery<(arg: StagingXcmVersionedMultiLocation) => bigint | undefined>;
1443
+
1444
+ /**
1445
+ * Generic pallet storage query
1446
+ **/
1447
+ [storage: string]: GenericStorageQuery;
1448
+ };
1449
+ /**
1450
+ * Pallet `EVM`'s storage queries
1451
+ **/
1452
+ evm: {
1453
+ /**
1454
+ *
1455
+ * @param {H160} arg
1456
+ * @param {Callback<Bytes> =} callback
1457
+ **/
1458
+ accountCodes: GenericStorageQuery<(arg: H160) => Bytes>;
1459
+
1460
+ /**
1461
+ *
1462
+ * @param {H160} arg
1463
+ * @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
1464
+ **/
1465
+ accountCodesMetadata: GenericStorageQuery<(arg: H160) => PalletEvmCodeMetadata | undefined>;
1466
+
1467
+ /**
1468
+ *
1469
+ * @param {[H160, H256]} arg
1470
+ * @param {Callback<H256> =} callback
1471
+ **/
1472
+ accountStorages: GenericStorageQuery<(arg: [H160, H256]) => H256>;
1473
+
1474
+ /**
1475
+ *
1476
+ * @param {H160} arg
1477
+ * @param {Callback<[] | undefined> =} callback
1478
+ **/
1479
+ suicided: GenericStorageQuery<(arg: H160) => [] | undefined>;
1480
+
1481
+ /**
1482
+ * Generic pallet storage query
1483
+ **/
1484
+ [storage: string]: GenericStorageQuery;
1485
+ };
1486
+ /**
1487
+ * Pallet `Ethereum`'s storage queries
1488
+ **/
1489
+ ethereum: {
1490
+ /**
1491
+ * Current building block's transactions and receipts.
1492
+ *
1493
+ * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
1494
+ **/
1495
+ pending: GenericStorageQuery<
1496
+ () => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>
1497
+ >;
1498
+
1499
+ /**
1500
+ * The current Ethereum block.
1501
+ *
1502
+ * @param {Callback<EthereumBlock | undefined> =} callback
1503
+ **/
1504
+ currentBlock: GenericStorageQuery<() => EthereumBlock | undefined>;
1505
+
1506
+ /**
1507
+ * The current Ethereum receipts.
1508
+ *
1509
+ * @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
1510
+ **/
1511
+ currentReceipts: GenericStorageQuery<() => Array<EthereumReceiptReceiptV3> | undefined>;
1512
+
1513
+ /**
1514
+ * The current transaction statuses.
1515
+ *
1516
+ * @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
1517
+ **/
1518
+ currentTransactionStatuses: GenericStorageQuery<() => Array<FpRpcTransactionStatus> | undefined>;
1519
+
1520
+ /**
1521
+ *
1522
+ * @param {U256} arg
1523
+ * @param {Callback<H256> =} callback
1524
+ **/
1525
+ blockHash: GenericStorageQuery<(arg: U256) => H256>;
1526
+
1527
+ /**
1528
+ * Generic pallet storage query
1529
+ **/
1530
+ [storage: string]: GenericStorageQuery;
1531
+ };
1532
+ /**
1533
+ * Pallet `DynamicEvmBaseFee`'s storage queries
1534
+ **/
1535
+ dynamicEvmBaseFee: {
1536
+ /**
1537
+ *
1538
+ * @param {Callback<U256> =} callback
1539
+ **/
1540
+ baseFeePerGas: GenericStorageQuery<() => U256>;
1541
+
1542
+ /**
1543
+ * Generic pallet storage query
1544
+ **/
1545
+ [storage: string]: GenericStorageQuery;
1546
+ };
1547
+ /**
1548
+ * Pallet `Contracts`'s storage queries
1549
+ **/
1550
+ contracts: {
1551
+ /**
1552
+ * A mapping from a contract's code hash to its code.
1553
+ *
1554
+ * @param {H256} arg
1555
+ * @param {Callback<Bytes | undefined> =} callback
1556
+ **/
1557
+ pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined>;
1558
+
1559
+ /**
1560
+ * A mapping from a contract's code hash to its code info.
1561
+ *
1562
+ * @param {H256} arg
1563
+ * @param {Callback<PalletContractsWasmCodeInfo | undefined> =} callback
1564
+ **/
1565
+ codeInfoOf: GenericStorageQuery<(arg: H256) => PalletContractsWasmCodeInfo | undefined>;
1566
+
1567
+ /**
1568
+ * This is a **monotonic** counter incremented on contract instantiation.
1569
+ *
1570
+ * This is used in order to generate unique trie ids for contracts.
1571
+ * The trie id of a new contract is calculated from hash(account_id, nonce).
1572
+ * The nonce is required because otherwise the following sequence would lead to
1573
+ * a possible collision of storage:
1574
+ *
1575
+ * 1. Create a new contract.
1576
+ * 2. Terminate the contract.
1577
+ * 3. Immediately recreate the contract with the same account_id.
1578
+ *
1579
+ * This is bad because the contents of a trie are deleted lazily and there might be
1580
+ * storage of the old instantiation still in it when the new contract is created. Please
1581
+ * note that we can't replace the counter by the block number because the sequence above
1582
+ * can happen in the same block. We also can't keep the account counter in memory only
1583
+ * because storage is the only way to communicate across different extrinsics in the
1584
+ * same block.
1585
+ *
1586
+ * # Note
1587
+ *
1588
+ * Do not use it to determine the number of contracts. It won't be decremented if
1589
+ * a contract is destroyed.
1590
+ *
1591
+ * @param {Callback<bigint> =} callback
1592
+ **/
1593
+ nonce: GenericStorageQuery<() => bigint>;
1594
+
1595
+ /**
1596
+ * The code associated with a given account.
1597
+ *
1598
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1599
+ *
1600
+ * @param {AccountId32Like} arg
1601
+ * @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
1602
+ **/
1603
+ contractInfoOf: GenericStorageQuery<(arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined>;
1604
+
1605
+ /**
1606
+ * Evicted contracts that await child trie deletion.
1607
+ *
1608
+ * Child trie deletion is a heavy operation depending on the amount of storage items
1609
+ * stored in said trie. Therefore this operation is performed lazily in `on_idle`.
1610
+ *
1611
+ * @param {number} arg
1612
+ * @param {Callback<Bytes | undefined> =} callback
1613
+ **/
1614
+ deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined>;
1615
+
1616
+ /**
1617
+ * A pair of monotonic counters used to track the latest contract marked for deletion
1618
+ * and the latest deleted contract in queue.
1619
+ *
1620
+ * @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
1621
+ **/
1622
+ deletionQueueCounter: GenericStorageQuery<() => PalletContractsStorageDeletionQueueManager>;
1623
+
1624
+ /**
1625
+ * A migration can span across multiple blocks. This storage defines a cursor to track the
1626
+ * progress of the migration, enabling us to resume from the last completed position.
1627
+ *
1628
+ * @param {Callback<Bytes | undefined> =} callback
1629
+ **/
1630
+ migrationInProgress: GenericStorageQuery<() => Bytes | undefined>;
1631
+
1632
+ /**
1633
+ * Generic pallet storage query
1634
+ **/
1635
+ [storage: string]: GenericStorageQuery;
1636
+ };
1637
+ /**
1638
+ * Pallet `Sudo`'s storage queries
1639
+ **/
1640
+ sudo: {
1641
+ /**
1642
+ * The `AccountId` of the sudo key.
1643
+ *
1644
+ * @param {Callback<AccountId32 | undefined> =} callback
1645
+ **/
1646
+ key: GenericStorageQuery<() => AccountId32 | undefined>;
1647
+
1648
+ /**
1649
+ * Generic pallet storage query
1650
+ **/
1651
+ [storage: string]: GenericStorageQuery;
1652
+ };
1653
+ /**
1654
+ * Pallet `StaticPriceProvider`'s storage queries
1655
+ **/
1656
+ staticPriceProvider: {
1657
+ /**
1658
+ * Current active native currency price.
1659
+ *
1660
+ * @param {Callback<FixedU64> =} callback
1661
+ **/
1662
+ activePrice: GenericStorageQuery<() => FixedU64>;
1663
+
1664
+ /**
1665
+ * Generic pallet storage query
1666
+ **/
1667
+ [storage: string]: GenericStorageQuery;
1668
+ };
1669
+ /**
1670
+ * Pallet `DappStakingMigration`'s storage queries
1671
+ **/
1672
+ dappStakingMigration: {
1673
+ /**
1674
+ * Used to store the current migration state.
1675
+ *
1676
+ * @param {Callback<PalletDappStakingMigrationMigrationState> =} callback
1677
+ **/
1678
+ migrationStateStorage: GenericStorageQuery<() => PalletDappStakingMigrationMigrationState>;
1679
+
1680
+ /**
1681
+ * Generic pallet storage query
1682
+ **/
1683
+ [storage: string]: GenericStorageQuery;
1684
+ };
1474
1685
  }