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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +675 -532
  3. package/aleph/errors.d.ts +1053 -821
  4. package/aleph/events.d.ts +1144 -940
  5. package/aleph/index.d.ts +19 -11
  6. package/aleph/json-rpc.d.ts +85 -0
  7. package/aleph/query.d.ts +1572 -1270
  8. package/aleph/runtime.d.ts +595 -409
  9. package/aleph/tx.d.ts +3439 -2205
  10. package/aleph/types.d.ts +3756 -5365
  11. package/astar/consts.d.ts +694 -678
  12. package/astar/errors.d.ts +1468 -1316
  13. package/astar/events.d.ts +1745 -1630
  14. package/astar/index.d.ts +19 -11
  15. package/astar/json-rpc.d.ts +82 -0
  16. package/astar/query.d.ts +1761 -1473
  17. package/astar/runtime.d.ts +769 -261
  18. package/astar/tx.d.ts +4423 -4809
  19. package/astar/types.d.ts +6088 -12266
  20. package/index.d.ts +1 -0
  21. package/index.ts +11 -0
  22. package/kusama/consts.d.ts +1577 -1426
  23. package/kusama/errors.d.ts +3151 -2493
  24. package/kusama/events.d.ts +3323 -2704
  25. package/kusama/index.d.ts +19 -11
  26. package/kusama/json-rpc.d.ts +103 -0
  27. package/kusama/query.d.ts +4228 -3250
  28. package/kusama/runtime.d.ts +1195 -843
  29. package/kusama/tx.d.ts +9039 -6013
  30. package/kusama/types.d.ts +10866 -15400
  31. package/kusamaAssetHub/consts.d.ts +758 -631
  32. package/kusamaAssetHub/errors.d.ts +1493 -1163
  33. package/kusamaAssetHub/events.d.ts +2369 -2040
  34. package/kusamaAssetHub/index.d.ts +19 -11
  35. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  36. package/kusamaAssetHub/query.d.ts +1661 -1300
  37. package/kusamaAssetHub/runtime.d.ts +554 -401
  38. package/kusamaAssetHub/tx.d.ts +6191 -4216
  39. package/kusamaAssetHub/types.d.ts +6551 -10138
  40. package/moonbeam/consts.d.ts +1022 -960
  41. package/moonbeam/errors.d.ts +1938 -1796
  42. package/moonbeam/events.d.ts +2832 -2685
  43. package/moonbeam/index.d.ts +19 -11
  44. package/moonbeam/json-rpc.d.ts +137 -0
  45. package/moonbeam/query.d.ts +2396 -2026
  46. package/moonbeam/runtime.d.ts +686 -505
  47. package/moonbeam/tx.d.ts +6368 -5204
  48. package/moonbeam/types.d.ts +7782 -12033
  49. package/package.json +8 -16
  50. package/polkadot/consts.d.ts +1312 -1159
  51. package/polkadot/errors.d.ts +2574 -2019
  52. package/polkadot/events.d.ts +2591 -2069
  53. package/polkadot/index.d.ts +19 -11
  54. package/polkadot/json-rpc.d.ts +103 -0
  55. package/polkadot/query.d.ts +3692 -2810
  56. package/polkadot/runtime.d.ts +1195 -843
  57. package/polkadot/tx.d.ts +7705 -5008
  58. package/polkadot/types.d.ts +9490 -13326
  59. package/polkadotAssetHub/consts.d.ts +723 -523
  60. package/polkadotAssetHub/errors.d.ts +1464 -924
  61. package/polkadotAssetHub/events.d.ts +2346 -1671
  62. package/polkadotAssetHub/index.d.ts +19 -11
  63. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  64. package/polkadotAssetHub/query.d.ts +1639 -1221
  65. package/polkadotAssetHub/runtime.d.ts +557 -358
  66. package/polkadotAssetHub/tx.d.ts +6120 -3491
  67. package/polkadotAssetHub/types.d.ts +6474 -8899
  68. package/rococo/consts.d.ts +1423 -0
  69. package/rococo/errors.d.ts +2783 -0
  70. package/rococo/events.d.ts +3361 -0
  71. package/rococo/index.d.ts +27 -0
  72. package/rococo/json-rpc.d.ts +103 -0
  73. package/rococo/query.d.ts +3535 -0
  74. package/rococo/runtime.d.ts +1217 -0
  75. package/rococo/tx.d.ts +10657 -0
  76. package/rococo/types.d.ts +14776 -0
  77. package/rococoAssetHub/consts.d.ts +820 -657
  78. package/rococoAssetHub/errors.d.ts +1567 -1230
  79. package/rococoAssetHub/events.d.ts +2382 -2040
  80. package/rococoAssetHub/index.d.ts +19 -11
  81. package/rococoAssetHub/json-rpc.d.ts +89 -0
  82. package/rococoAssetHub/query.d.ts +1694 -1268
  83. package/rococoAssetHub/runtime.d.ts +578 -427
  84. package/rococoAssetHub/tx.d.ts +9171 -4306
  85. package/rococoAssetHub/types.d.ts +12252 -10796
  86. package/substrate/consts.d.ts +2222 -1970
  87. package/substrate/errors.d.ts +4022 -3336
  88. package/substrate/events.d.ts +4924 -4271
  89. package/substrate/index.d.ts +19 -11
  90. package/substrate/json-rpc.d.ts +101 -0
  91. package/substrate/query.d.ts +4082 -3349
  92. package/substrate/runtime.d.ts +970 -707
  93. package/substrate/tx.d.ts +12500 -8799
  94. package/substrate/types.d.ts +12809 -19761
  95. package/westendAssetHub/consts.d.ts +786 -657
  96. package/westendAssetHub/errors.d.ts +1522 -1230
  97. package/westendAssetHub/events.d.ts +2345 -2040
  98. package/westendAssetHub/index.d.ts +19 -11
  99. package/westendAssetHub/json-rpc.d.ts +89 -0
  100. package/westendAssetHub/query.d.ts +1655 -1268
  101. package/westendAssetHub/runtime.d.ts +651 -455
  102. package/westendAssetHub/tx.d.ts +8983 -4306
  103. package/westendAssetHub/types.d.ts +12027 -10797
  104. package/aleph/consts.js +0 -2
  105. package/aleph/errors.js +0 -2
  106. package/aleph/events.js +0 -2
  107. package/aleph/index.js +0 -3
  108. package/aleph/query.js +0 -2
  109. package/aleph/rpc.d.ts +0 -575
  110. package/aleph/rpc.js +0 -2
  111. package/aleph/runtime.js +0 -2
  112. package/aleph/tx.js +0 -2
  113. package/aleph/types.js +0 -2
  114. package/astar/consts.js +0 -2
  115. package/astar/errors.js +0 -2
  116. package/astar/events.js +0 -2
  117. package/astar/index.js +0 -3
  118. package/astar/query.js +0 -2
  119. package/astar/rpc.d.ts +0 -775
  120. package/astar/rpc.js +0 -2
  121. package/astar/runtime.js +0 -2
  122. package/astar/tx.js +0 -2
  123. package/astar/types.js +0 -2
  124. package/cjs/aleph/consts.js +0 -3
  125. package/cjs/aleph/errors.js +0 -3
  126. package/cjs/aleph/events.js +0 -3
  127. package/cjs/aleph/index.js +0 -19
  128. package/cjs/aleph/query.js +0 -3
  129. package/cjs/aleph/rpc.js +0 -3
  130. package/cjs/aleph/runtime.js +0 -3
  131. package/cjs/aleph/tx.js +0 -3
  132. package/cjs/aleph/types.js +0 -3
  133. package/cjs/astar/consts.js +0 -3
  134. package/cjs/astar/errors.js +0 -3
  135. package/cjs/astar/events.js +0 -3
  136. package/cjs/astar/index.js +0 -19
  137. package/cjs/astar/query.js +0 -3
  138. package/cjs/astar/rpc.js +0 -3
  139. package/cjs/astar/runtime.js +0 -3
  140. package/cjs/astar/tx.js +0 -3
  141. package/cjs/astar/types.js +0 -3
  142. package/cjs/index.js +0 -2
  143. package/cjs/kusama/consts.js +0 -3
  144. package/cjs/kusama/errors.js +0 -3
  145. package/cjs/kusama/events.js +0 -3
  146. package/cjs/kusama/index.js +0 -19
  147. package/cjs/kusama/query.js +0 -3
  148. package/cjs/kusama/rpc.js +0 -3
  149. package/cjs/kusama/runtime.js +0 -3
  150. package/cjs/kusama/tx.js +0 -3
  151. package/cjs/kusama/types.js +0 -3
  152. package/cjs/kusamaAssetHub/consts.js +0 -3
  153. package/cjs/kusamaAssetHub/errors.js +0 -3
  154. package/cjs/kusamaAssetHub/events.js +0 -3
  155. package/cjs/kusamaAssetHub/index.js +0 -19
  156. package/cjs/kusamaAssetHub/query.js +0 -3
  157. package/cjs/kusamaAssetHub/rpc.js +0 -3
  158. package/cjs/kusamaAssetHub/runtime.js +0 -3
  159. package/cjs/kusamaAssetHub/tx.js +0 -3
  160. package/cjs/kusamaAssetHub/types.js +0 -3
  161. package/cjs/moonbeam/consts.js +0 -3
  162. package/cjs/moonbeam/errors.js +0 -3
  163. package/cjs/moonbeam/events.js +0 -3
  164. package/cjs/moonbeam/index.js +0 -19
  165. package/cjs/moonbeam/query.js +0 -3
  166. package/cjs/moonbeam/rpc.js +0 -3
  167. package/cjs/moonbeam/runtime.js +0 -3
  168. package/cjs/moonbeam/tx.js +0 -3
  169. package/cjs/moonbeam/types.js +0 -3
  170. package/cjs/package.json +0 -1
  171. package/cjs/packageInfo.js +0 -5
  172. package/cjs/polkadot/consts.js +0 -3
  173. package/cjs/polkadot/errors.js +0 -3
  174. package/cjs/polkadot/events.js +0 -3
  175. package/cjs/polkadot/index.js +0 -19
  176. package/cjs/polkadot/query.js +0 -3
  177. package/cjs/polkadot/rpc.js +0 -3
  178. package/cjs/polkadot/runtime.js +0 -3
  179. package/cjs/polkadot/tx.js +0 -3
  180. package/cjs/polkadot/types.js +0 -3
  181. package/cjs/polkadotAssetHub/consts.js +0 -3
  182. package/cjs/polkadotAssetHub/errors.js +0 -3
  183. package/cjs/polkadotAssetHub/events.js +0 -3
  184. package/cjs/polkadotAssetHub/index.js +0 -19
  185. package/cjs/polkadotAssetHub/query.js +0 -3
  186. package/cjs/polkadotAssetHub/rpc.js +0 -3
  187. package/cjs/polkadotAssetHub/runtime.js +0 -3
  188. package/cjs/polkadotAssetHub/tx.js +0 -3
  189. package/cjs/polkadotAssetHub/types.js +0 -3
  190. package/cjs/rococoAssetHub/consts.js +0 -3
  191. package/cjs/rococoAssetHub/errors.js +0 -3
  192. package/cjs/rococoAssetHub/events.js +0 -3
  193. package/cjs/rococoAssetHub/index.js +0 -19
  194. package/cjs/rococoAssetHub/query.js +0 -3
  195. package/cjs/rococoAssetHub/rpc.js +0 -3
  196. package/cjs/rococoAssetHub/runtime.js +0 -3
  197. package/cjs/rococoAssetHub/tx.js +0 -3
  198. package/cjs/rococoAssetHub/types.js +0 -3
  199. package/cjs/substrate/consts.js +0 -3
  200. package/cjs/substrate/errors.js +0 -3
  201. package/cjs/substrate/events.js +0 -3
  202. package/cjs/substrate/index.js +0 -19
  203. package/cjs/substrate/query.js +0 -3
  204. package/cjs/substrate/rpc.js +0 -3
  205. package/cjs/substrate/runtime.js +0 -3
  206. package/cjs/substrate/tx.js +0 -3
  207. package/cjs/substrate/types.js +0 -3
  208. package/cjs/westendAssetHub/consts.js +0 -3
  209. package/cjs/westendAssetHub/errors.js +0 -3
  210. package/cjs/westendAssetHub/events.js +0 -3
  211. package/cjs/westendAssetHub/index.js +0 -19
  212. package/cjs/westendAssetHub/query.js +0 -3
  213. package/cjs/westendAssetHub/rpc.js +0 -3
  214. package/cjs/westendAssetHub/runtime.js +0 -3
  215. package/cjs/westendAssetHub/tx.js +0 -3
  216. package/cjs/westendAssetHub/types.js +0 -3
  217. package/kusama/consts.js +0 -2
  218. package/kusama/errors.js +0 -2
  219. package/kusama/events.js +0 -2
  220. package/kusama/index.js +0 -3
  221. package/kusama/query.js +0 -2
  222. package/kusama/rpc.d.ts +0 -726
  223. package/kusama/rpc.js +0 -2
  224. package/kusama/runtime.js +0 -2
  225. package/kusama/tx.js +0 -2
  226. package/kusama/types.js +0 -2
  227. package/kusamaAssetHub/consts.js +0 -2
  228. package/kusamaAssetHub/errors.js +0 -2
  229. package/kusamaAssetHub/events.js +0 -2
  230. package/kusamaAssetHub/index.js +0 -3
  231. package/kusamaAssetHub/query.js +0 -2
  232. package/kusamaAssetHub/rpc.d.ts +0 -590
  233. package/kusamaAssetHub/rpc.js +0 -2
  234. package/kusamaAssetHub/runtime.js +0 -2
  235. package/kusamaAssetHub/tx.js +0 -2
  236. package/kusamaAssetHub/types.js +0 -2
  237. package/moonbeam/consts.js +0 -2
  238. package/moonbeam/errors.js +0 -2
  239. package/moonbeam/events.js +0 -2
  240. package/moonbeam/index.js +0 -3
  241. package/moonbeam/query.js +0 -2
  242. package/moonbeam/rpc.d.ts +0 -809
  243. package/moonbeam/rpc.js +0 -2
  244. package/moonbeam/runtime.js +0 -2
  245. package/moonbeam/tx.js +0 -2
  246. package/moonbeam/types.js +0 -2
  247. package/packageInfo.d.ts +0 -4
  248. package/packageInfo.js +0 -2
  249. package/polkadot/consts.js +0 -2
  250. package/polkadot/errors.js +0 -2
  251. package/polkadot/events.js +0 -2
  252. package/polkadot/index.js +0 -3
  253. package/polkadot/query.js +0 -2
  254. package/polkadot/rpc.d.ts +0 -726
  255. package/polkadot/rpc.js +0 -2
  256. package/polkadot/runtime.js +0 -2
  257. package/polkadot/tx.js +0 -2
  258. package/polkadot/types.js +0 -2
  259. package/polkadotAssetHub/consts.js +0 -2
  260. package/polkadotAssetHub/errors.js +0 -2
  261. package/polkadotAssetHub/events.js +0 -2
  262. package/polkadotAssetHub/index.js +0 -3
  263. package/polkadotAssetHub/query.js +0 -2
  264. package/polkadotAssetHub/rpc.d.ts +0 -590
  265. package/polkadotAssetHub/rpc.js +0 -2
  266. package/polkadotAssetHub/runtime.js +0 -2
  267. package/polkadotAssetHub/tx.js +0 -2
  268. package/polkadotAssetHub/types.js +0 -2
  269. package/rococoAssetHub/consts.js +0 -2
  270. package/rococoAssetHub/errors.js +0 -2
  271. package/rococoAssetHub/events.js +0 -2
  272. package/rococoAssetHub/index.js +0 -3
  273. package/rococoAssetHub/query.js +0 -2
  274. package/rococoAssetHub/rpc.d.ts +0 -590
  275. package/rococoAssetHub/rpc.js +0 -2
  276. package/rococoAssetHub/runtime.js +0 -2
  277. package/rococoAssetHub/tx.js +0 -2
  278. package/rococoAssetHub/types.js +0 -2
  279. package/substrate/consts.js +0 -2
  280. package/substrate/errors.js +0 -2
  281. package/substrate/events.js +0 -2
  282. package/substrate/index.js +0 -3
  283. package/substrate/query.js +0 -2
  284. package/substrate/rpc.d.ts +0 -718
  285. package/substrate/rpc.js +0 -2
  286. package/substrate/runtime.js +0 -2
  287. package/substrate/tx.js +0 -2
  288. package/substrate/types.js +0 -2
  289. package/westendAssetHub/consts.js +0 -2
  290. package/westendAssetHub/errors.js +0 -2
  291. package/westendAssetHub/events.js +0 -2
  292. package/westendAssetHub/index.js +0 -3
  293. package/westendAssetHub/query.js +0 -2
  294. package/westendAssetHub/rpc.d.ts +0 -590
  295. package/westendAssetHub/rpc.js +0 -2
  296. package/westendAssetHub/runtime.js +0 -2
  297. package/westendAssetHub/tx.js +0 -2
  298. package/westendAssetHub/types.js +0 -2
@@ -1,2027 +1,2397 @@
1
- import type { GenericChainStorage, GenericStorageQuery } from '@dedot/types';
2
- import type { AccountId20Like, H256, Bytes, Digest, Phase, FixedU128, Perbill, AccountId20, Percent, Data, BytesLike, FixedBytes, H160, U256 } from '@dedot/codecs';
3
- import type { FrameSystemAccountInfo, FrameSupportDispatchPerDispatchClass, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, PolkadotPrimitivesV6PersistedValidationData, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6UpgradeGoAhead, SpTrieStorageProof, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, PolkadotPrimitivesV6AbridgedHostConfiguration, CumulusPrimitivesParachainInherentMessageQueueChain, PolkadotParachainPrimitivesPrimitivesId, PolkadotCorePrimitivesOutboundHrmpMessage, SpWeightsWeightV2Weight, CumulusPalletParachainSystemCodeUpgradeAuthorization, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBalancesIdAmount, PalletBalancesIdAmount002, PalletTransactionPaymentReleases, PalletParachainStakingParachainBondConfig, PalletParachainStakingRoundInfo, PalletParachainStakingDelegator, PalletParachainStakingCandidateMetadata, PalletParachainStakingDelegationRequestsScheduledRequest, PalletParachainStakingAutoCompoundAutoCompoundConfig, PalletParachainStakingDelegations, PalletParachainStakingSetBoundedOrderedSet, PalletParachainStakingCollatorSnapshot, PalletParachainStakingDelayedPayout, PalletParachainStakingInflationInflationInfo, PalletAuthorSlotFilterNumNonZeroU32, PalletAuthorMappingRegistrationInfo, NimbusPrimitivesNimbusCryptoPublic, PalletMoonbeamOrbitersCollatorPoolInfo, PalletProxyProxyDefinition, PalletProxyAnnouncement, PalletIdentityRegistration, PalletIdentityRegistrarInfo, PalletMultisigMultisig, PalletEvmCodeMetadata, EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3, EthereumBlock, PalletSchedulerScheduled, FrameSupportPreimagesBounded, PalletDemocracyReferendumInfo, PalletDemocracyVoteVoting, PalletDemocracyVoteThreshold, PalletDemocracyMetadataOwner, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletConvictionVotingVoteVoting, PalletReferendaReferendumInfo, MoonbeamRuntimeRuntimeCall, PalletCollectiveVotes, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletCrowdloanRewardsRewardInfo, CumulusPalletXcmpQueueInboundChannelDetails, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPalletDmpQueueConfigData, CumulusPalletDmpQueuePageIndexData, PalletXcmQueryStatus, XcmVersionedMultiLocation, PalletXcmVersionMigrationStage, PalletXcmRemoteLockedFungibleRecord, XcmVersionedAssetId, PalletAssetsAssetDetails, PalletAssetsAssetAccount, PalletAssetsApproval, PalletAssetsAssetMetadata, MoonbeamRuntimeXcmConfigAssetType, PalletAssetManagerAssetInfo, PalletXcmTransactorRemoteTransactInfoWithMaxWeight, StagingXcmV3MultilocationMultiLocation, PalletXcmTransactorRelayIndicesRelayChainIndices, PalletRandomnessRequestState, PalletRandomnessRandomnessResult, PalletRandomnessRequestType } from './types';
4
- export interface ChainStorage extends GenericChainStorage {
5
- /**
6
- * Pallet `System`'s storage queries
7
- **/
8
- system: {
9
- /**
10
- * The full account information for a particular account ID.
11
- *
12
- * @param {AccountId20Like} arg
13
- * @param {Callback<FrameSystemAccountInfo> =} callback
14
- **/
15
- account: GenericStorageQuery<(arg: AccountId20Like) => FrameSystemAccountInfo>;
16
- /**
17
- * Total extrinsics count for the current block.
18
- *
19
- * @param {Callback<number | undefined> =} callback
20
- **/
21
- extrinsicCount: GenericStorageQuery<() => number | undefined>;
22
- /**
23
- * The current weight for the block.
24
- *
25
- * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
26
- **/
27
- blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
28
- /**
29
- * Total length (in bytes) for all extrinsics put together, for the current block.
30
- *
31
- * @param {Callback<number | undefined> =} callback
32
- **/
33
- allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
34
- /**
35
- * Map of block numbers to block hashes.
36
- *
37
- * @param {number} arg
38
- * @param {Callback<H256> =} callback
39
- **/
40
- blockHash: GenericStorageQuery<(arg: number) => H256>;
41
- /**
42
- * Extrinsics data for the current block (maps an extrinsic's index to its data).
43
- *
44
- * @param {number} arg
45
- * @param {Callback<Bytes> =} callback
46
- **/
47
- extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
48
- /**
49
- * The current block number being processed. Set by `execute_block`.
50
- *
51
- * @param {Callback<number> =} callback
52
- **/
53
- number: GenericStorageQuery<() => number>;
54
- /**
55
- * Hash of the previous block.
56
- *
57
- * @param {Callback<H256> =} callback
58
- **/
59
- parentHash: GenericStorageQuery<() => H256>;
60
- /**
61
- * Digest of the current block, also part of the block header.
62
- *
63
- * @param {Callback<Digest> =} callback
64
- **/
65
- digest: GenericStorageQuery<() => Digest>;
66
- /**
67
- * Events deposited for the current block.
68
- *
69
- * NOTE: The item is unbound and should therefore never be read on chain.
70
- * It could otherwise inflate the PoV size of a block.
71
- *
72
- * Events have a large in-memory size. Box the events to not go out-of-memory
73
- * just in case someone still reads them from within the runtime.
74
- *
75
- * @param {Callback<Array<FrameSystemEventRecord>> =} callback
76
- **/
77
- events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
78
- /**
79
- * The number of events in the `Events<T>` list.
80
- *
81
- * @param {Callback<number> =} callback
82
- **/
83
- eventCount: GenericStorageQuery<() => number>;
84
- /**
85
- * Mapping between a topic (represented by T::Hash) and a vector of indexes
86
- * of events in the `<Events<T>>` list.
87
- *
88
- * All topic vectors have deterministic storage locations depending on the topic. This
89
- * allows light-clients to leverage the changes trie storage tracking mechanism and
90
- * in case of changes fetch the list of events of interest.
91
- *
92
- * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
93
- * the `EventIndex` then in case if the topic has the same contents on the next block
94
- * no notification will be triggered thus the event might be lost.
95
- *
96
- * @param {H256} arg
97
- * @param {Callback<Array<[number, number]>> =} callback
98
- **/
99
- eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
100
- /**
101
- * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
102
- *
103
- * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
104
- **/
105
- lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
106
- /**
107
- * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
108
- *
109
- * @param {Callback<boolean> =} callback
110
- **/
111
- upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
112
- /**
113
- * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
114
- * (default) if not.
115
- *
116
- * @param {Callback<boolean> =} callback
117
- **/
118
- upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
119
- /**
120
- * The execution phase of the block.
121
- *
122
- * @param {Callback<Phase | undefined> =} callback
123
- **/
124
- executionPhase: GenericStorageQuery<() => Phase | undefined>;
125
- /**
126
- * Generic pallet storage query
127
- **/
128
- [storage: string]: GenericStorageQuery;
129
- };
130
- /**
131
- * Pallet `ParachainSystem`'s storage queries
132
- **/
133
- parachainSystem: {
134
- /**
135
- * Latest included block descendants the runtime accepted. In other words, these are
136
- * ancestors of the currently executing block which have not been included in the observed
137
- * relay-chain state.
138
- *
139
- * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
140
- * in the pallet.
141
- *
142
- * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
143
- **/
144
- unincludedSegment: GenericStorageQuery<() => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
145
- /**
146
- * Storage field that keeps track of bandwidth used by the unincluded segment along with the
147
- * latest HRMP watermark. Used for limiting the acceptance of new blocks with
148
- * respect to relay chain constraints.
149
- *
150
- * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
151
- **/
152
- aggregatedUnincludedSegment: GenericStorageQuery<() => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined>;
153
- /**
154
- * In case of a scheduled upgrade, this storage field contains the validation code to be
155
- * applied.
156
- *
157
- * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
158
- * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
159
- * with the new validation code. This concludes the upgrade process.
160
- *
161
- * @param {Callback<Bytes> =} callback
162
- **/
163
- pendingValidationCode: GenericStorageQuery<() => Bytes>;
164
- /**
165
- * Validation code that is set by the parachain and is to be communicated to collator and
166
- * consequently the relay-chain.
167
- *
168
- * This will be cleared in `on_initialize` of each new block if no other pallet already set
169
- * the value.
170
- *
171
- * @param {Callback<Bytes | undefined> =} callback
172
- **/
173
- newValidationCode: GenericStorageQuery<() => Bytes | undefined>;
174
- /**
175
- * The [`PersistedValidationData`] set for this block.
176
- * This value is expected to be set only once per block and it's never stored
177
- * in the trie.
178
- *
179
- * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
180
- **/
181
- validationData: GenericStorageQuery<() => PolkadotPrimitivesV6PersistedValidationData | undefined>;
182
- /**
183
- * Were the validation data set to notify the relay chain?
184
- *
185
- * @param {Callback<boolean> =} callback
186
- **/
187
- didSetValidationCode: GenericStorageQuery<() => boolean>;
188
- /**
189
- * The relay chain block number associated with the last parachain block.
190
- *
191
- * This is updated in `on_finalize`.
192
- *
193
- * @param {Callback<number> =} callback
194
- **/
195
- lastRelayChainBlockNumber: GenericStorageQuery<() => number>;
196
- /**
197
- * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
198
- * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
199
- * candidate will be invalid.
200
- *
201
- * This storage item is a mirror of the corresponding value for the current parachain from the
202
- * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
203
- * set after the inherent.
204
- *
205
- * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
206
- **/
207
- upgradeRestrictionSignal: GenericStorageQuery<() => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
208
- /**
209
- * Optional upgrade go-ahead signal from the relay-chain.
210
- *
211
- * This storage item is a mirror of the corresponding value for the current parachain from the
212
- * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
213
- * set after the inherent.
214
- *
215
- * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
216
- **/
217
- upgradeGoAhead: GenericStorageQuery<() => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
218
- /**
219
- * The state proof for the last relay parent block.
220
- *
221
- * This field is meant to be updated each block with the validation data inherent. Therefore,
222
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
223
- *
224
- * This data is also absent from the genesis.
225
- *
226
- * @param {Callback<SpTrieStorageProof | undefined> =} callback
227
- **/
228
- relayStateProof: GenericStorageQuery<() => SpTrieStorageProof | undefined>;
229
- /**
230
- * The snapshot of some state related to messaging relevant to the current parachain as per
231
- * the relay parent.
232
- *
233
- * This field is meant to be updated each block with the validation data inherent. Therefore,
234
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
235
- *
236
- * This data is also absent from the genesis.
237
- *
238
- * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
239
- **/
240
- relevantMessagingState: GenericStorageQuery<() => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined>;
241
- /**
242
- * The parachain host configuration that was obtained from the relay parent.
243
- *
244
- * This field is meant to be updated each block with the validation data inherent. Therefore,
245
- * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
246
- *
247
- * This data is also absent from the genesis.
248
- *
249
- * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
250
- **/
251
- hostConfiguration: GenericStorageQuery<() => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
252
- /**
253
- * The last downward message queue chain head we have observed.
254
- *
255
- * This value is loaded before and saved after processing inbound downward messages carried
256
- * by the system inherent.
257
- *
258
- * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
259
- **/
260
- lastDmqMqcHead: GenericStorageQuery<() => CumulusPrimitivesParachainInherentMessageQueueChain>;
261
- /**
262
- * The message queue chain heads we have observed per each channel incoming channel.
263
- *
264
- * This value is loaded before and saved after processing inbound downward messages carried
265
- * by the system inherent.
266
- *
267
- * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
268
- **/
269
- lastHrmpMqcHeads: GenericStorageQuery<() => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>>;
270
- /**
271
- * Number of downward messages processed in a block.
272
- *
273
- * This will be cleared in `on_initialize` of each new block.
274
- *
275
- * @param {Callback<number> =} callback
276
- **/
277
- processedDownwardMessages: GenericStorageQuery<() => number>;
278
- /**
279
- * HRMP watermark that was set in a block.
280
- *
281
- * This will be cleared in `on_initialize` of each new block.
282
- *
283
- * @param {Callback<number> =} callback
284
- **/
285
- hrmpWatermark: GenericStorageQuery<() => number>;
286
- /**
287
- * HRMP messages that were sent in a block.
288
- *
289
- * This will be cleared in `on_initialize` of each new block.
290
- *
291
- * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
292
- **/
293
- hrmpOutboundMessages: GenericStorageQuery<() => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
294
- /**
295
- * Upward messages that were sent in a block.
296
- *
297
- * This will be cleared in `on_initialize` of each new block.
298
- *
299
- * @param {Callback<Array<Bytes>> =} callback
300
- **/
301
- upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
302
- /**
303
- * Upward messages that are still pending and not yet send to the relay chain.
304
- *
305
- * @param {Callback<Array<Bytes>> =} callback
306
- **/
307
- pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
308
- /**
309
- * The factor to multiply the base delivery fee by for UMP.
310
- *
311
- * @param {Callback<FixedU128> =} callback
312
- **/
313
- upwardDeliveryFeeFactor: GenericStorageQuery<() => FixedU128>;
314
- /**
315
- * The number of HRMP messages we observed in `on_initialize` and thus used that number for
316
- * announcing the weight of `on_initialize` and `on_finalize`.
317
- *
318
- * @param {Callback<number> =} callback
319
- **/
320
- announcedHrmpMessagesPerCandidate: GenericStorageQuery<() => number>;
321
- /**
322
- * The weight we reserve at the beginning of the block for processing XCMP messages. This
323
- * overrides the amount set in the Config trait.
324
- *
325
- * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
326
- **/
327
- reservedXcmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
328
- /**
329
- * The weight we reserve at the beginning of the block for processing DMP messages. This
330
- * overrides the amount set in the Config trait.
331
- *
332
- * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
333
- **/
334
- reservedDmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
335
- /**
336
- * The next authorized upgrade, if there is one.
337
- *
338
- * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
339
- **/
340
- authorizedUpgrade: GenericStorageQuery<() => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
341
- /**
342
- * A custom head data that should be returned as result of `validate_block`.
343
- *
344
- * See `Pallet::set_custom_validation_head_data` for more information.
345
- *
346
- * @param {Callback<Bytes | undefined> =} callback
347
- **/
348
- customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
349
- /**
350
- * Generic pallet storage query
351
- **/
352
- [storage: string]: GenericStorageQuery;
353
- };
354
- /**
355
- * Pallet `Timestamp`'s storage queries
356
- **/
357
- timestamp: {
358
- /**
359
- * The current time for the current block.
360
- *
361
- * @param {Callback<bigint> =} callback
362
- **/
363
- now: GenericStorageQuery<() => bigint>;
364
- /**
365
- * Whether the timestamp has been updated in this block.
366
- *
367
- * This value is updated to `true` upon successful submission of a timestamp by a node.
368
- * It is then checked at the end of each block execution in the `on_finalize` hook.
369
- *
370
- * @param {Callback<boolean> =} callback
371
- **/
372
- didUpdate: GenericStorageQuery<() => boolean>;
373
- /**
374
- * Generic pallet storage query
375
- **/
376
- [storage: string]: GenericStorageQuery;
377
- };
378
- /**
379
- * Pallet `ParachainInfo`'s storage queries
380
- **/
381
- parachainInfo: {
382
- /**
383
- *
384
- * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
385
- **/
386
- parachainId: GenericStorageQuery<() => PolkadotParachainPrimitivesPrimitivesId>;
387
- /**
388
- * Generic pallet storage query
389
- **/
390
- [storage: string]: GenericStorageQuery;
391
- };
392
- /**
393
- * Pallet `RootTesting`'s storage queries
394
- **/
395
- rootTesting: {
396
- /**
397
- * Generic pallet storage query
398
- **/
399
- [storage: string]: GenericStorageQuery;
400
- };
401
- /**
402
- * Pallet `Balances`'s storage queries
403
- **/
404
- balances: {
405
- /**
406
- * The total units issued in the system.
407
- *
408
- * @param {Callback<bigint> =} callback
409
- **/
410
- totalIssuance: GenericStorageQuery<() => bigint>;
411
- /**
412
- * The total units of outstanding deactivated balance in the system.
413
- *
414
- * @param {Callback<bigint> =} callback
415
- **/
416
- inactiveIssuance: GenericStorageQuery<() => bigint>;
417
- /**
418
- * The Balances pallet example of storing the balance of an account.
419
- *
420
- * # Example
421
- *
422
- * ```nocompile
423
- * impl pallet_balances::Config for Runtime {
424
- * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
425
- * }
426
- * ```
427
- *
428
- * You can also store the balance of an account in the `System` pallet.
429
- *
430
- * # Example
431
- *
432
- * ```nocompile
433
- * impl pallet_balances::Config for Runtime {
434
- * type AccountStore = System
435
- * }
436
- * ```
437
- *
438
- * But this comes with tradeoffs, storing account balances in the system pallet stores
439
- * `frame_system` data alongside the account data contrary to storing account balances in the
440
- * `Balances` pallet, which uses a `StorageMap` to store balances data only.
441
- * NOTE: This is only used in the case that this pallet is used to store balances.
442
- *
443
- * @param {AccountId20Like} arg
444
- * @param {Callback<PalletBalancesAccountData> =} callback
445
- **/
446
- account: GenericStorageQuery<(arg: AccountId20Like) => PalletBalancesAccountData>;
447
- /**
448
- * Any liquidity locks on some account balances.
449
- * NOTE: Should only be accessed when setting, changing and freeing a lock.
450
- *
451
- * @param {AccountId20Like} arg
452
- * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
453
- **/
454
- locks: GenericStorageQuery<(arg: AccountId20Like) => Array<PalletBalancesBalanceLock>>;
455
- /**
456
- * Named reserves on some account balances.
457
- *
458
- * @param {AccountId20Like} arg
459
- * @param {Callback<Array<PalletBalancesReserveData>> =} callback
460
- **/
461
- reserves: GenericStorageQuery<(arg: AccountId20Like) => Array<PalletBalancesReserveData>>;
462
- /**
463
- * Holds on account balances.
464
- *
465
- * @param {AccountId20Like} arg
466
- * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
467
- **/
468
- holds: GenericStorageQuery<(arg: AccountId20Like) => Array<PalletBalancesIdAmount>>;
469
- /**
470
- * Freeze locks on account balances.
471
- *
472
- * @param {AccountId20Like} arg
473
- * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
474
- **/
475
- freezes: GenericStorageQuery<(arg: AccountId20Like) => Array<PalletBalancesIdAmount002>>;
476
- /**
477
- * Generic pallet storage query
478
- **/
479
- [storage: string]: GenericStorageQuery;
480
- };
481
- /**
482
- * Pallet `TransactionPayment`'s storage queries
483
- **/
484
- transactionPayment: {
485
- /**
486
- *
487
- * @param {Callback<FixedU128> =} callback
488
- **/
489
- nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
490
- /**
491
- *
492
- * @param {Callback<PalletTransactionPaymentReleases> =} callback
493
- **/
494
- storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
495
- /**
496
- * Generic pallet storage query
497
- **/
498
- [storage: string]: GenericStorageQuery;
499
- };
500
- /**
501
- * Pallet `ParachainStaking`'s storage queries
502
- **/
503
- parachainStaking: {
504
- /**
505
- * Commission percent taken off of rewards for all collators
506
- *
507
- * @param {Callback<Perbill> =} callback
508
- **/
509
- collatorCommission: GenericStorageQuery<() => Perbill>;
510
- /**
511
- * The total candidates selected every round
512
- *
513
- * @param {Callback<number> =} callback
514
- **/
515
- totalSelected: GenericStorageQuery<() => number>;
516
- /**
517
- * Parachain bond config info { account, percent_of_inflation }
518
- *
519
- * @param {Callback<PalletParachainStakingParachainBondConfig> =} callback
520
- **/
521
- parachainBondInfo: GenericStorageQuery<() => PalletParachainStakingParachainBondConfig>;
522
- /**
523
- * Current round index and next round scheduled transition
524
- *
525
- * @param {Callback<PalletParachainStakingRoundInfo> =} callback
526
- **/
527
- round: GenericStorageQuery<() => PalletParachainStakingRoundInfo>;
528
- /**
529
- * Get delegator state associated with an account if account is delegating else None
530
- *
531
- * @param {AccountId20Like} arg
532
- * @param {Callback<PalletParachainStakingDelegator | undefined> =} callback
533
- **/
534
- delegatorState: GenericStorageQuery<(arg: AccountId20Like) => PalletParachainStakingDelegator | undefined>;
535
- /**
536
- * Get collator candidate info associated with an account if account is candidate else None
537
- *
538
- * @param {AccountId20Like} arg
539
- * @param {Callback<PalletParachainStakingCandidateMetadata | undefined> =} callback
540
- **/
541
- candidateInfo: GenericStorageQuery<(arg: AccountId20Like) => PalletParachainStakingCandidateMetadata | undefined>;
542
- /**
543
- * Stores outstanding delegation requests per collator.
544
- *
545
- * @param {AccountId20Like} arg
546
- * @param {Callback<Array<PalletParachainStakingDelegationRequestsScheduledRequest>> =} callback
547
- **/
548
- delegationScheduledRequests: GenericStorageQuery<(arg: AccountId20Like) => Array<PalletParachainStakingDelegationRequestsScheduledRequest>>;
549
- /**
550
- * Stores auto-compounding configuration per collator.
551
- *
552
- * @param {AccountId20Like} arg
553
- * @param {Callback<Array<PalletParachainStakingAutoCompoundAutoCompoundConfig>> =} callback
554
- **/
555
- autoCompoundingDelegations: GenericStorageQuery<(arg: AccountId20Like) => Array<PalletParachainStakingAutoCompoundAutoCompoundConfig>>;
556
- /**
557
- * Top delegations for collator candidate
558
- *
559
- * @param {AccountId20Like} arg
560
- * @param {Callback<PalletParachainStakingDelegations | undefined> =} callback
561
- **/
562
- topDelegations: GenericStorageQuery<(arg: AccountId20Like) => PalletParachainStakingDelegations | undefined>;
563
- /**
564
- * Bottom delegations for collator candidate
565
- *
566
- * @param {AccountId20Like} arg
567
- * @param {Callback<PalletParachainStakingDelegations | undefined> =} callback
568
- **/
569
- bottomDelegations: GenericStorageQuery<(arg: AccountId20Like) => PalletParachainStakingDelegations | undefined>;
570
- /**
571
- * The collator candidates selected for the current round
572
- *
573
- * @param {Callback<Array<AccountId20>> =} callback
574
- **/
575
- selectedCandidates: GenericStorageQuery<() => Array<AccountId20>>;
576
- /**
577
- * Total capital locked by this staking pallet
578
- *
579
- * @param {Callback<bigint> =} callback
580
- **/
581
- total: GenericStorageQuery<() => bigint>;
582
- /**
583
- * The pool of collator candidates, each with their total backing stake
584
- *
585
- * @param {Callback<PalletParachainStakingSetBoundedOrderedSet> =} callback
586
- **/
587
- candidatePool: GenericStorageQuery<() => PalletParachainStakingSetBoundedOrderedSet>;
588
- /**
589
- * Snapshot of collator delegation stake at the start of the round
590
- *
591
- * @param {[number, AccountId20Like]} arg
592
- * @param {Callback<PalletParachainStakingCollatorSnapshot | undefined> =} callback
593
- **/
594
- atStake: GenericStorageQuery<(arg: [number, AccountId20Like]) => PalletParachainStakingCollatorSnapshot | undefined>;
595
- /**
596
- * Delayed payouts
597
- *
598
- * @param {number} arg
599
- * @param {Callback<PalletParachainStakingDelayedPayout | undefined> =} callback
600
- **/
601
- delayedPayouts: GenericStorageQuery<(arg: number) => PalletParachainStakingDelayedPayout | undefined>;
602
- /**
603
- * Total counted stake for selected candidates in the round
604
- *
605
- * @param {number} arg
606
- * @param {Callback<bigint> =} callback
607
- **/
608
- staked: GenericStorageQuery<(arg: number) => bigint>;
609
- /**
610
- * Inflation configuration
611
- *
612
- * @param {Callback<PalletParachainStakingInflationInflationInfo> =} callback
613
- **/
614
- inflationConfig: GenericStorageQuery<() => PalletParachainStakingInflationInflationInfo>;
615
- /**
616
- * Total points awarded to collators for block production in the round
617
- *
618
- * @param {number} arg
619
- * @param {Callback<number> =} callback
620
- **/
621
- points: GenericStorageQuery<(arg: number) => number>;
622
- /**
623
- * Points for each collator per round
624
- *
625
- * @param {[number, AccountId20Like]} arg
626
- * @param {Callback<number> =} callback
627
- **/
628
- awardedPts: GenericStorageQuery<(arg: [number, AccountId20Like]) => number>;
629
- /**
630
- * Killswitch to enable/disable marking offline feature.
631
- *
632
- * @param {Callback<boolean> =} callback
633
- **/
634
- enableMarkingOffline: GenericStorageQuery<() => boolean>;
635
- /**
636
- * Generic pallet storage query
637
- **/
638
- [storage: string]: GenericStorageQuery;
639
- };
640
- /**
641
- * Pallet `AuthorInherent`'s storage queries
642
- **/
643
- authorInherent: {
644
- /**
645
- * Author of current block.
646
- *
647
- * @param {Callback<AccountId20 | undefined> =} callback
648
- **/
649
- author: GenericStorageQuery<() => AccountId20 | undefined>;
650
- /**
651
- * Generic pallet storage query
652
- **/
653
- [storage: string]: GenericStorageQuery;
654
- };
655
- /**
656
- * Pallet `AuthorFilter`'s storage queries
657
- **/
658
- authorFilter: {
659
- /**
660
- *
661
- * @param {Callback<Percent> =} callback
662
- **/
663
- eligibleRatio: GenericStorageQuery<() => Percent>;
664
- /**
665
- * The number of active authors that will be eligible at each height.
666
- *
667
- * @param {Callback<PalletAuthorSlotFilterNumNonZeroU32> =} callback
668
- **/
669
- eligibleCount: GenericStorageQuery<() => PalletAuthorSlotFilterNumNonZeroU32>;
670
- /**
671
- * Generic pallet storage query
672
- **/
673
- [storage: string]: GenericStorageQuery;
674
- };
675
- /**
676
- * Pallet `AuthorMapping`'s storage queries
677
- **/
678
- authorMapping: {
679
- /**
680
- * We maintain a mapping from the NimbusIds used in the consensus layer
681
- * to the AccountIds runtime.
682
- *
683
- * @param {NimbusPrimitivesNimbusCryptoPublic} arg
684
- * @param {Callback<PalletAuthorMappingRegistrationInfo | undefined> =} callback
685
- **/
686
- mappingWithDeposit: GenericStorageQuery<(arg: NimbusPrimitivesNimbusCryptoPublic) => PalletAuthorMappingRegistrationInfo | undefined>;
687
- /**
688
- * We maintain a reverse mapping from AccountIds to NimbusIDS
689
- *
690
- * @param {AccountId20Like} arg
691
- * @param {Callback<NimbusPrimitivesNimbusCryptoPublic | undefined> =} callback
692
- **/
693
- nimbusLookup: GenericStorageQuery<(arg: AccountId20Like) => NimbusPrimitivesNimbusCryptoPublic | undefined>;
694
- /**
695
- * Generic pallet storage query
696
- **/
697
- [storage: string]: GenericStorageQuery;
698
- };
699
- /**
700
- * Pallet `MoonbeamOrbiters`'s storage queries
701
- **/
702
- moonbeamOrbiters: {
703
- /**
704
- * Account lookup override
705
- *
706
- * @param {AccountId20Like} arg
707
- * @param {Callback<AccountId20 | undefined | undefined> =} callback
708
- **/
709
- accountLookupOverride: GenericStorageQuery<(arg: AccountId20Like) => AccountId20 | undefined | undefined>;
710
- /**
711
- * Current orbiters, with their "parent" collator
712
- *
713
- * @param {AccountId20Like} arg
714
- * @param {Callback<PalletMoonbeamOrbitersCollatorPoolInfo | undefined> =} callback
715
- **/
716
- collatorsPool: GenericStorageQuery<(arg: AccountId20Like) => PalletMoonbeamOrbitersCollatorPoolInfo | undefined>;
717
- /**
718
- * Counter for the related counted storage map
719
- *
720
- * @param {Callback<number> =} callback
721
- **/
722
- counterForCollatorsPool: GenericStorageQuery<() => number>;
723
- /**
724
- * Current round index
725
- *
726
- * @param {Callback<number> =} callback
727
- **/
728
- currentRound: GenericStorageQuery<() => number>;
729
- /**
730
- * If true, it forces the rotation at the next round.
731
- * A use case: when changing RotatePeriod, you need a migration code that sets this value to
732
- * true to avoid holes in OrbiterPerRound.
733
- *
734
- * @param {Callback<boolean> =} callback
735
- **/
736
- forceRotation: GenericStorageQuery<() => boolean>;
737
- /**
738
- * Minimum deposit required to be registered as an orbiter
739
- *
740
- * @param {Callback<bigint | undefined> =} callback
741
- **/
742
- minOrbiterDeposit: GenericStorageQuery<() => bigint | undefined>;
743
- /**
744
- * Store active orbiter per round and per parent collator
745
- *
746
- * @param {[number, AccountId20Like]} arg
747
- * @param {Callback<AccountId20 | undefined> =} callback
748
- **/
749
- orbiterPerRound: GenericStorageQuery<(arg: [number, AccountId20Like]) => AccountId20 | undefined>;
750
- /**
751
- * Check if account is an orbiter
752
- *
753
- * @param {AccountId20Like} arg
754
- * @param {Callback<boolean | undefined> =} callback
755
- **/
756
- registeredOrbiter: GenericStorageQuery<(arg: AccountId20Like) => boolean | undefined>;
757
- /**
758
- * Generic pallet storage query
759
- **/
760
- [storage: string]: GenericStorageQuery;
761
- };
762
- /**
763
- * Pallet `Proxy`'s storage queries
764
- **/
765
- proxy: {
766
- /**
767
- * The set of account proxies. Maps the account which has delegated to the accounts
768
- * which are being delegated to, together with the amount held on deposit.
769
- *
770
- * @param {AccountId20Like} arg
771
- * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
772
- **/
773
- proxies: GenericStorageQuery<(arg: AccountId20Like) => [Array<PalletProxyProxyDefinition>, bigint]>;
774
- /**
775
- * The announcements made by the proxy (key).
776
- *
777
- * @param {AccountId20Like} arg
778
- * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
779
- **/
780
- announcements: GenericStorageQuery<(arg: AccountId20Like) => [Array<PalletProxyAnnouncement>, bigint]>;
781
- /**
782
- * Generic pallet storage query
783
- **/
784
- [storage: string]: GenericStorageQuery;
785
- };
786
- /**
787
- * Pallet `MaintenanceMode`'s storage queries
788
- **/
789
- maintenanceMode: {
790
- /**
791
- * Whether the site is in maintenance mode
792
- *
793
- * @param {Callback<boolean> =} callback
794
- **/
795
- maintenanceMode: GenericStorageQuery<() => boolean>;
796
- /**
797
- * Generic pallet storage query
798
- **/
799
- [storage: string]: GenericStorageQuery;
800
- };
801
- /**
802
- * Pallet `Identity`'s storage queries
803
- **/
804
- identity: {
805
- /**
806
- * Information that is pertinent to identify the entity behind an account.
807
- *
808
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
809
- *
810
- * @param {AccountId20Like} arg
811
- * @param {Callback<PalletIdentityRegistration | undefined> =} callback
812
- **/
813
- identityOf: GenericStorageQuery<(arg: AccountId20Like) => PalletIdentityRegistration | undefined>;
814
- /**
815
- * The super-identity of an alternative "sub" identity together with its name, within that
816
- * context. If the account is not some other account's sub-identity, then just `None`.
817
- *
818
- * @param {AccountId20Like} arg
819
- * @param {Callback<[AccountId20, Data] | undefined> =} callback
820
- **/
821
- superOf: GenericStorageQuery<(arg: AccountId20Like) => [AccountId20, Data] | undefined>;
822
- /**
823
- * Alternative "sub" identities of this account.
824
- *
825
- * The first item is the deposit, the second is a vector of the accounts.
826
- *
827
- * TWOX-NOTE: OK `AccountId` is a secure hash.
828
- *
829
- * @param {AccountId20Like} arg
830
- * @param {Callback<[bigint, Array<AccountId20>]> =} callback
831
- **/
832
- subsOf: GenericStorageQuery<(arg: AccountId20Like) => [bigint, Array<AccountId20>]>;
833
- /**
834
- * The set of registrars. Not expected to get very big as can only be added through a
835
- * special origin (likely a council motion).
836
- *
837
- * The index into this can be cast to `RegistrarIndex` to get a valid value.
838
- *
839
- * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
840
- **/
841
- registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
842
- /**
843
- * Generic pallet storage query
844
- **/
845
- [storage: string]: GenericStorageQuery;
846
- };
847
- /**
848
- * Pallet `Migrations`'s storage queries
849
- **/
850
- migrations: {
851
- /**
852
- * True if all required migrations have completed
853
- *
854
- * @param {Callback<boolean> =} callback
855
- **/
856
- fullyUpgraded: GenericStorageQuery<() => boolean>;
857
- /**
858
- * MigrationState tracks the progress of a migration.
859
- * Maps name (Vec<u8>) -> whether or not migration has been completed (bool)
860
- *
861
- * @param {BytesLike} arg
862
- * @param {Callback<boolean> =} callback
863
- **/
864
- migrationState: GenericStorageQuery<(arg: BytesLike) => boolean>;
865
- /**
866
- * Temporary value that is set to true at the beginning of the block during which the execution
867
- * of xcm messages must be paused.
868
- *
869
- * @param {Callback<boolean> =} callback
870
- **/
871
- shouldPauseXcm: GenericStorageQuery<() => boolean>;
872
- /**
873
- * Generic pallet storage query
874
- **/
875
- [storage: string]: GenericStorageQuery;
876
- };
877
- /**
878
- * Pallet `Multisig`'s storage queries
879
- **/
880
- multisig: {
881
- /**
882
- * The set of open multisig operations.
883
- *
884
- * @param {[AccountId20Like, FixedBytes<32>]} arg
885
- * @param {Callback<PalletMultisigMultisig | undefined> =} callback
886
- **/
887
- multisigs: GenericStorageQuery<(arg: [AccountId20Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
888
- /**
889
- * Generic pallet storage query
890
- **/
891
- [storage: string]: GenericStorageQuery;
892
- };
893
- /**
894
- * Pallet `EthereumChainId`'s storage queries
895
- **/
896
- ethereumChainId: {
897
- /**
898
- * The EVM chain ID.
899
- *
900
- * @param {Callback<bigint> =} callback
901
- **/
902
- chainId: GenericStorageQuery<() => bigint>;
903
- /**
904
- * Generic pallet storage query
905
- **/
906
- [storage: string]: GenericStorageQuery;
907
- };
908
- /**
909
- * Pallet `EVM`'s storage queries
910
- **/
911
- eVM: {
912
- /**
913
- *
914
- * @param {H160} arg
915
- * @param {Callback<Bytes> =} callback
916
- **/
917
- accountCodes: GenericStorageQuery<(arg: H160) => Bytes>;
918
- /**
919
- *
920
- * @param {H160} arg
921
- * @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
922
- **/
923
- accountCodesMetadata: GenericStorageQuery<(arg: H160) => PalletEvmCodeMetadata | undefined>;
924
- /**
925
- *
926
- * @param {[H160, H256]} arg
927
- * @param {Callback<H256> =} callback
928
- **/
929
- accountStorages: GenericStorageQuery<(arg: [H160, H256]) => H256>;
930
- /**
931
- *
932
- * @param {H160} arg
933
- * @param {Callback<[] | undefined> =} callback
934
- **/
935
- suicided: GenericStorageQuery<(arg: H160) => [] | undefined>;
936
- /**
937
- * Generic pallet storage query
938
- **/
939
- [storage: string]: GenericStorageQuery;
940
- };
941
- /**
942
- * Pallet `Ethereum`'s storage queries
943
- **/
944
- ethereum: {
945
- /**
946
- * Current building block's transactions and receipts.
947
- *
948
- * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
949
- **/
950
- pending: GenericStorageQuery<() => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>>;
951
- /**
952
- * The current Ethereum block.
953
- *
954
- * @param {Callback<EthereumBlock | undefined> =} callback
955
- **/
956
- currentBlock: GenericStorageQuery<() => EthereumBlock | undefined>;
957
- /**
958
- * The current Ethereum receipts.
959
- *
960
- * @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
961
- **/
962
- currentReceipts: GenericStorageQuery<() => Array<EthereumReceiptReceiptV3> | undefined>;
963
- /**
964
- * The current transaction statuses.
965
- *
966
- * @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
967
- **/
968
- currentTransactionStatuses: GenericStorageQuery<() => Array<FpRpcTransactionStatus> | undefined>;
969
- /**
970
- *
971
- * @param {U256} arg
972
- * @param {Callback<H256> =} callback
973
- **/
974
- blockHash: GenericStorageQuery<(arg: U256) => H256>;
975
- /**
976
- * Generic pallet storage query
977
- **/
978
- [storage: string]: GenericStorageQuery;
979
- };
980
- /**
981
- * Pallet `Scheduler`'s storage queries
982
- **/
983
- scheduler: {
984
- /**
985
- *
986
- * @param {Callback<number | undefined> =} callback
987
- **/
988
- incompleteSince: GenericStorageQuery<() => number | undefined>;
989
- /**
990
- * Items to be executed, indexed by the block number that they should be executed on.
991
- *
992
- * @param {number} arg
993
- * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
994
- **/
995
- agenda: GenericStorageQuery<(arg: number) => Array<PalletSchedulerScheduled | undefined>>;
996
- /**
997
- * Lookup from a name to the block number and index of the task.
998
- *
999
- * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1000
- * identities.
1001
- *
1002
- * @param {FixedBytes<32>} arg
1003
- * @param {Callback<[number, number] | undefined> =} callback
1004
- **/
1005
- lookup: GenericStorageQuery<(arg: FixedBytes<32>) => [number, number] | undefined>;
1006
- /**
1007
- * Generic pallet storage query
1008
- **/
1009
- [storage: string]: GenericStorageQuery;
1010
- };
1011
- /**
1012
- * Pallet `Democracy`'s storage queries
1013
- **/
1014
- democracy: {
1015
- /**
1016
- * The number of (public) proposals that have been made so far.
1017
- *
1018
- * @param {Callback<number> =} callback
1019
- **/
1020
- publicPropCount: GenericStorageQuery<() => number>;
1021
- /**
1022
- * The public proposals. Unsorted. The second item is the proposal.
1023
- *
1024
- * @param {Callback<Array<[number, FrameSupportPreimagesBounded, AccountId20]>> =} callback
1025
- **/
1026
- publicProps: GenericStorageQuery<() => Array<[number, FrameSupportPreimagesBounded, AccountId20]>>;
1027
- /**
1028
- * Those who have locked a deposit.
1029
- *
1030
- * TWOX-NOTE: Safe, as increasing integer keys are safe.
1031
- *
1032
- * @param {number} arg
1033
- * @param {Callback<[Array<AccountId20>, bigint] | undefined> =} callback
1034
- **/
1035
- depositOf: GenericStorageQuery<(arg: number) => [Array<AccountId20>, bigint] | undefined>;
1036
- /**
1037
- * The next free referendum index, aka the number of referenda started so far.
1038
- *
1039
- * @param {Callback<number> =} callback
1040
- **/
1041
- referendumCount: GenericStorageQuery<() => number>;
1042
- /**
1043
- * The lowest referendum index representing an unbaked referendum. Equal to
1044
- * `ReferendumCount` if there isn't a unbaked referendum.
1045
- *
1046
- * @param {Callback<number> =} callback
1047
- **/
1048
- lowestUnbaked: GenericStorageQuery<() => number>;
1049
- /**
1050
- * Information concerning any given referendum.
1051
- *
1052
- * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
1053
- *
1054
- * @param {number} arg
1055
- * @param {Callback<PalletDemocracyReferendumInfo | undefined> =} callback
1056
- **/
1057
- referendumInfoOf: GenericStorageQuery<(arg: number) => PalletDemocracyReferendumInfo | undefined>;
1058
- /**
1059
- * All votes for a particular voter. We store the balance for the number of votes that we
1060
- * have recorded. The second item is the total amount of delegations, that will be added.
1061
- *
1062
- * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
1063
- *
1064
- * @param {AccountId20Like} arg
1065
- * @param {Callback<PalletDemocracyVoteVoting> =} callback
1066
- **/
1067
- votingOf: GenericStorageQuery<(arg: AccountId20Like) => PalletDemocracyVoteVoting>;
1068
- /**
1069
- * True if the last referendum tabled was submitted externally. False if it was a public
1070
- * proposal.
1071
- *
1072
- * @param {Callback<boolean> =} callback
1073
- **/
1074
- lastTabledWasExternal: GenericStorageQuery<() => boolean>;
1075
- /**
1076
- * The referendum to be tabled whenever it would be valid to table an external proposal.
1077
- * This happens when a referendum needs to be tabled and one of two conditions are met:
1078
- * - `LastTabledWasExternal` is `false`; or
1079
- * - `PublicProps` is empty.
1080
- *
1081
- * @param {Callback<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined> =} callback
1082
- **/
1083
- nextExternal: GenericStorageQuery<() => [FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined>;
1084
- /**
1085
- * A record of who vetoed what. Maps proposal hash to a possible existent block number
1086
- * (until when it may not be resubmitted) and who vetoed it.
1087
- *
1088
- * @param {H256} arg
1089
- * @param {Callback<[number, Array<AccountId20>] | undefined> =} callback
1090
- **/
1091
- blacklist: GenericStorageQuery<(arg: H256) => [number, Array<AccountId20>] | undefined>;
1092
- /**
1093
- * Record of all proposals that have been subject to emergency cancellation.
1094
- *
1095
- * @param {H256} arg
1096
- * @param {Callback<boolean> =} callback
1097
- **/
1098
- cancellations: GenericStorageQuery<(arg: H256) => boolean>;
1099
- /**
1100
- * General information concerning any proposal or referendum.
1101
- * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1102
- * dump or IPFS hash of a JSON file.
1103
- *
1104
- * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1105
- * large preimages.
1106
- *
1107
- * @param {PalletDemocracyMetadataOwner} arg
1108
- * @param {Callback<H256 | undefined> =} callback
1109
- **/
1110
- metadataOf: GenericStorageQuery<(arg: PalletDemocracyMetadataOwner) => H256 | undefined>;
1111
- /**
1112
- * Generic pallet storage query
1113
- **/
1114
- [storage: string]: GenericStorageQuery;
1115
- };
1116
- /**
1117
- * Pallet `Preimage`'s storage queries
1118
- **/
1119
- preimage: {
1120
- /**
1121
- * The request status of a given hash.
1122
- *
1123
- * @param {H256} arg
1124
- * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
1125
- **/
1126
- statusFor: GenericStorageQuery<(arg: H256) => PalletPreimageOldRequestStatus | undefined>;
1127
- /**
1128
- * The request status of a given hash.
1129
- *
1130
- * @param {H256} arg
1131
- * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
1132
- **/
1133
- requestStatusFor: GenericStorageQuery<(arg: H256) => PalletPreimageRequestStatus | undefined>;
1134
- /**
1135
- *
1136
- * @param {[H256, number]} arg
1137
- * @param {Callback<Bytes | undefined> =} callback
1138
- **/
1139
- preimageFor: GenericStorageQuery<(arg: [H256, number]) => Bytes | undefined>;
1140
- /**
1141
- * Generic pallet storage query
1142
- **/
1143
- [storage: string]: GenericStorageQuery;
1144
- };
1145
- /**
1146
- * Pallet `ConvictionVoting`'s storage queries
1147
- **/
1148
- convictionVoting: {
1149
- /**
1150
- * All voting for a particular voter in a particular voting class. We store the balance for the
1151
- * number of votes that we have recorded.
1152
- *
1153
- * @param {[AccountId20Like, number]} arg
1154
- * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
1155
- **/
1156
- votingFor: GenericStorageQuery<(arg: [AccountId20Like, number]) => PalletConvictionVotingVoteVoting>;
1157
- /**
1158
- * The voting classes which have a non-zero lock requirement and the lock amounts which they
1159
- * require. The actual amount locked on behalf of this pallet should always be the maximum of
1160
- * this list.
1161
- *
1162
- * @param {AccountId20Like} arg
1163
- * @param {Callback<Array<[number, bigint]>> =} callback
1164
- **/
1165
- classLocksFor: GenericStorageQuery<(arg: AccountId20Like) => Array<[number, bigint]>>;
1166
- /**
1167
- * Generic pallet storage query
1168
- **/
1169
- [storage: string]: GenericStorageQuery;
1170
- };
1171
- /**
1172
- * Pallet `Referenda`'s storage queries
1173
- **/
1174
- referenda: {
1175
- /**
1176
- * The next free referendum index, aka the number of referenda started so far.
1177
- *
1178
- * @param {Callback<number> =} callback
1179
- **/
1180
- referendumCount: GenericStorageQuery<() => number>;
1181
- /**
1182
- * Information concerning any given referendum.
1183
- *
1184
- * @param {number} arg
1185
- * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
1186
- **/
1187
- referendumInfoFor: GenericStorageQuery<(arg: number) => PalletReferendaReferendumInfo | undefined>;
1188
- /**
1189
- * The sorted list of referenda ready to be decided but not yet being decided, ordered by
1190
- * conviction-weighted approvals.
1191
- *
1192
- * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
1193
- *
1194
- * @param {number} arg
1195
- * @param {Callback<Array<[number, bigint]>> =} callback
1196
- **/
1197
- trackQueue: GenericStorageQuery<(arg: number) => Array<[number, bigint]>>;
1198
- /**
1199
- * The number of referenda being decided currently.
1200
- *
1201
- * @param {number} arg
1202
- * @param {Callback<number> =} callback
1203
- **/
1204
- decidingCount: GenericStorageQuery<(arg: number) => number>;
1205
- /**
1206
- * The metadata is a general information concerning the referendum.
1207
- * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1208
- * dump or IPFS hash of a JSON file.
1209
- *
1210
- * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1211
- * large preimages.
1212
- *
1213
- * @param {number} arg
1214
- * @param {Callback<H256 | undefined> =} callback
1215
- **/
1216
- metadataOf: GenericStorageQuery<(arg: number) => H256 | undefined>;
1217
- /**
1218
- * Generic pallet storage query
1219
- **/
1220
- [storage: string]: GenericStorageQuery;
1221
- };
1222
- /**
1223
- * Pallet `Whitelist`'s storage queries
1224
- **/
1225
- whitelist: {
1226
- /**
1227
- *
1228
- * @param {H256} arg
1229
- * @param {Callback<[] | undefined> =} callback
1230
- **/
1231
- whitelistedCall: GenericStorageQuery<(arg: H256) => [] | undefined>;
1232
- /**
1233
- * Generic pallet storage query
1234
- **/
1235
- [storage: string]: GenericStorageQuery;
1236
- };
1237
- /**
1238
- * Pallet `CouncilCollective`'s storage queries
1239
- **/
1240
- councilCollective: {
1241
- /**
1242
- * The hashes of the active proposals.
1243
- *
1244
- * @param {Callback<Array<H256>> =} callback
1245
- **/
1246
- proposals: GenericStorageQuery<() => Array<H256>>;
1247
- /**
1248
- * Actual proposal for a given hash, if it's current.
1249
- *
1250
- * @param {H256} arg
1251
- * @param {Callback<MoonbeamRuntimeRuntimeCall | undefined> =} callback
1252
- **/
1253
- proposalOf: GenericStorageQuery<(arg: H256) => MoonbeamRuntimeRuntimeCall | undefined>;
1254
- /**
1255
- * Votes on a given proposal, if it is ongoing.
1256
- *
1257
- * @param {H256} arg
1258
- * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1259
- **/
1260
- voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined>;
1261
- /**
1262
- * Proposals so far.
1263
- *
1264
- * @param {Callback<number> =} callback
1265
- **/
1266
- proposalCount: GenericStorageQuery<() => number>;
1267
- /**
1268
- * The current members of the collective. This is stored sorted (just by value).
1269
- *
1270
- * @param {Callback<Array<AccountId20>> =} callback
1271
- **/
1272
- members: GenericStorageQuery<() => Array<AccountId20>>;
1273
- /**
1274
- * The prime member that helps determine the default vote behavior in case of absentations.
1275
- *
1276
- * @param {Callback<AccountId20 | undefined> =} callback
1277
- **/
1278
- prime: GenericStorageQuery<() => AccountId20 | undefined>;
1279
- /**
1280
- * Generic pallet storage query
1281
- **/
1282
- [storage: string]: GenericStorageQuery;
1283
- };
1284
- /**
1285
- * Pallet `TechCommitteeCollective`'s storage queries
1286
- **/
1287
- techCommitteeCollective: {
1288
- /**
1289
- * The hashes of the active proposals.
1290
- *
1291
- * @param {Callback<Array<H256>> =} callback
1292
- **/
1293
- proposals: GenericStorageQuery<() => Array<H256>>;
1294
- /**
1295
- * Actual proposal for a given hash, if it's current.
1296
- *
1297
- * @param {H256} arg
1298
- * @param {Callback<MoonbeamRuntimeRuntimeCall | undefined> =} callback
1299
- **/
1300
- proposalOf: GenericStorageQuery<(arg: H256) => MoonbeamRuntimeRuntimeCall | undefined>;
1301
- /**
1302
- * Votes on a given proposal, if it is ongoing.
1303
- *
1304
- * @param {H256} arg
1305
- * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1306
- **/
1307
- voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined>;
1308
- /**
1309
- * Proposals so far.
1310
- *
1311
- * @param {Callback<number> =} callback
1312
- **/
1313
- proposalCount: GenericStorageQuery<() => number>;
1314
- /**
1315
- * The current members of the collective. This is stored sorted (just by value).
1316
- *
1317
- * @param {Callback<Array<AccountId20>> =} callback
1318
- **/
1319
- members: GenericStorageQuery<() => Array<AccountId20>>;
1320
- /**
1321
- * The prime member that helps determine the default vote behavior in case of absentations.
1322
- *
1323
- * @param {Callback<AccountId20 | undefined> =} callback
1324
- **/
1325
- prime: GenericStorageQuery<() => AccountId20 | undefined>;
1326
- /**
1327
- * Generic pallet storage query
1328
- **/
1329
- [storage: string]: GenericStorageQuery;
1330
- };
1331
- /**
1332
- * Pallet `TreasuryCouncilCollective`'s storage queries
1333
- **/
1334
- treasuryCouncilCollective: {
1335
- /**
1336
- * The hashes of the active proposals.
1337
- *
1338
- * @param {Callback<Array<H256>> =} callback
1339
- **/
1340
- proposals: GenericStorageQuery<() => Array<H256>>;
1341
- /**
1342
- * Actual proposal for a given hash, if it's current.
1343
- *
1344
- * @param {H256} arg
1345
- * @param {Callback<MoonbeamRuntimeRuntimeCall | undefined> =} callback
1346
- **/
1347
- proposalOf: GenericStorageQuery<(arg: H256) => MoonbeamRuntimeRuntimeCall | undefined>;
1348
- /**
1349
- * Votes on a given proposal, if it is ongoing.
1350
- *
1351
- * @param {H256} arg
1352
- * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1353
- **/
1354
- voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined>;
1355
- /**
1356
- * Proposals so far.
1357
- *
1358
- * @param {Callback<number> =} callback
1359
- **/
1360
- proposalCount: GenericStorageQuery<() => number>;
1361
- /**
1362
- * The current members of the collective. This is stored sorted (just by value).
1363
- *
1364
- * @param {Callback<Array<AccountId20>> =} callback
1365
- **/
1366
- members: GenericStorageQuery<() => Array<AccountId20>>;
1367
- /**
1368
- * The prime member that helps determine the default vote behavior in case of absentations.
1369
- *
1370
- * @param {Callback<AccountId20 | undefined> =} callback
1371
- **/
1372
- prime: GenericStorageQuery<() => AccountId20 | undefined>;
1373
- /**
1374
- * Generic pallet storage query
1375
- **/
1376
- [storage: string]: GenericStorageQuery;
1377
- };
1378
- /**
1379
- * Pallet `OpenTechCommitteeCollective`'s storage queries
1380
- **/
1381
- openTechCommitteeCollective: {
1382
- /**
1383
- * The hashes of the active proposals.
1384
- *
1385
- * @param {Callback<Array<H256>> =} callback
1386
- **/
1387
- proposals: GenericStorageQuery<() => Array<H256>>;
1388
- /**
1389
- * Actual proposal for a given hash, if it's current.
1390
- *
1391
- * @param {H256} arg
1392
- * @param {Callback<MoonbeamRuntimeRuntimeCall | undefined> =} callback
1393
- **/
1394
- proposalOf: GenericStorageQuery<(arg: H256) => MoonbeamRuntimeRuntimeCall | undefined>;
1395
- /**
1396
- * Votes on a given proposal, if it is ongoing.
1397
- *
1398
- * @param {H256} arg
1399
- * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1400
- **/
1401
- voting: GenericStorageQuery<(arg: H256) => PalletCollectiveVotes | undefined>;
1402
- /**
1403
- * Proposals so far.
1404
- *
1405
- * @param {Callback<number> =} callback
1406
- **/
1407
- proposalCount: GenericStorageQuery<() => number>;
1408
- /**
1409
- * The current members of the collective. This is stored sorted (just by value).
1410
- *
1411
- * @param {Callback<Array<AccountId20>> =} callback
1412
- **/
1413
- members: GenericStorageQuery<() => Array<AccountId20>>;
1414
- /**
1415
- * The prime member that helps determine the default vote behavior in case of absentations.
1416
- *
1417
- * @param {Callback<AccountId20 | undefined> =} callback
1418
- **/
1419
- prime: GenericStorageQuery<() => AccountId20 | undefined>;
1420
- /**
1421
- * Generic pallet storage query
1422
- **/
1423
- [storage: string]: GenericStorageQuery;
1424
- };
1425
- /**
1426
- * Pallet `Treasury`'s storage queries
1427
- **/
1428
- treasury: {
1429
- /**
1430
- * Number of proposals that have been made.
1431
- *
1432
- * @param {Callback<number> =} callback
1433
- **/
1434
- proposalCount: GenericStorageQuery<() => number>;
1435
- /**
1436
- * Proposals that have been made.
1437
- *
1438
- * @param {number} arg
1439
- * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1440
- **/
1441
- proposals: GenericStorageQuery<(arg: number) => PalletTreasuryProposal | undefined>;
1442
- /**
1443
- * The amount which has been reported as inactive to Currency.
1444
- *
1445
- * @param {Callback<bigint> =} callback
1446
- **/
1447
- deactivated: GenericStorageQuery<() => bigint>;
1448
- /**
1449
- * Proposal indices that have been approved but not yet awarded.
1450
- *
1451
- * @param {Callback<Array<number>> =} callback
1452
- **/
1453
- approvals: GenericStorageQuery<() => Array<number>>;
1454
- /**
1455
- * The count of spends that have been made.
1456
- *
1457
- * @param {Callback<number> =} callback
1458
- **/
1459
- spendCount: GenericStorageQuery<() => number>;
1460
- /**
1461
- * Spends that have been approved and being processed.
1462
- *
1463
- * @param {number} arg
1464
- * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
1465
- **/
1466
- spends: GenericStorageQuery<(arg: number) => PalletTreasurySpendStatus | undefined>;
1467
- /**
1468
- * Generic pallet storage query
1469
- **/
1470
- [storage: string]: GenericStorageQuery;
1471
- };
1472
- /**
1473
- * Pallet `CrowdloanRewards`'s storage queries
1474
- **/
1475
- crowdloanRewards: {
1476
- /**
1477
- *
1478
- * @param {AccountId20Like} arg
1479
- * @param {Callback<PalletCrowdloanRewardsRewardInfo | undefined> =} callback
1480
- **/
1481
- accountsPayable: GenericStorageQuery<(arg: AccountId20Like) => PalletCrowdloanRewardsRewardInfo | undefined>;
1482
- /**
1483
- *
1484
- * @param {FixedBytes<32>} arg
1485
- * @param {Callback<[] | undefined> =} callback
1486
- **/
1487
- claimedRelayChainIds: GenericStorageQuery<(arg: FixedBytes<32>) => [] | undefined>;
1488
- /**
1489
- *
1490
- * @param {FixedBytes<32>} arg
1491
- * @param {Callback<PalletCrowdloanRewardsRewardInfo | undefined> =} callback
1492
- **/
1493
- unassociatedContributions: GenericStorageQuery<(arg: FixedBytes<32>) => PalletCrowdloanRewardsRewardInfo | undefined>;
1494
- /**
1495
- *
1496
- * @param {Callback<boolean> =} callback
1497
- **/
1498
- initialized: GenericStorageQuery<() => boolean>;
1499
- /**
1500
- * Vesting block height at the initialization of the pallet
1501
- *
1502
- * @param {Callback<number> =} callback
1503
- **/
1504
- initRelayBlock: GenericStorageQuery<() => number>;
1505
- /**
1506
- * Vesting block height at the initialization of the pallet
1507
- *
1508
- * @param {Callback<number> =} callback
1509
- **/
1510
- endRelayBlock: GenericStorageQuery<() => number>;
1511
- /**
1512
- * Total initialized amount so far. We store this to make pallet funds == contributors reward
1513
- * check easier and more efficient
1514
- *
1515
- * @param {Callback<bigint> =} callback
1516
- **/
1517
- initializedRewardAmount: GenericStorageQuery<() => bigint>;
1518
- /**
1519
- * Total number of contributors to aid hinting benchmarking
1520
- *
1521
- * @param {Callback<number> =} callback
1522
- **/
1523
- totalContributors: GenericStorageQuery<() => number>;
1524
- /**
1525
- * Generic pallet storage query
1526
- **/
1527
- [storage: string]: GenericStorageQuery;
1528
- };
1529
- /**
1530
- * Pallet `XcmpQueue`'s storage queries
1531
- **/
1532
- xcmpQueue: {
1533
- /**
1534
- * Status of the inbound XCMP channels.
1535
- *
1536
- * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
1537
- **/
1538
- inboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
1539
- /**
1540
- * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
1541
- *
1542
- * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1543
- * @param {Callback<Bytes> =} callback
1544
- **/
1545
- inboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
1546
- /**
1547
- * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
1548
- * and last outbound message. If the two indices are equal, then it indicates an empty
1549
- * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
1550
- * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
1551
- * case of the need to send a high-priority signal message this block.
1552
- * The bool is true if there is a signal message waiting to be sent.
1553
- *
1554
- * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
1555
- **/
1556
- outboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
1557
- /**
1558
- * The messages outbound in a given XCMP channel.
1559
- *
1560
- * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1561
- * @param {Callback<Bytes> =} callback
1562
- **/
1563
- outboundXcmpMessages: GenericStorageQuery<(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes>;
1564
- /**
1565
- * Any signal messages waiting to be sent.
1566
- *
1567
- * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1568
- * @param {Callback<Bytes> =} callback
1569
- **/
1570
- signalMessages: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes>;
1571
- /**
1572
- * The configuration which controls the dynamics of the outbound queue.
1573
- *
1574
- * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
1575
- **/
1576
- queueConfig: GenericStorageQuery<() => CumulusPalletXcmpQueueQueueConfigData>;
1577
- /**
1578
- * The messages that exceeded max individual message weight budget.
1579
- *
1580
- * These message stay in this storage map until they are manually dispatched via
1581
- * `service_overweight`.
1582
- *
1583
- * @param {bigint} arg
1584
- * @param {Callback<[PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined> =} callback
1585
- **/
1586
- overweight: GenericStorageQuery<(arg: bigint) => [PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined>;
1587
- /**
1588
- * Counter for the related counted storage map
1589
- *
1590
- * @param {Callback<number> =} callback
1591
- **/
1592
- counterForOverweight: GenericStorageQuery<() => number>;
1593
- /**
1594
- * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
1595
- * available free overweight index.
1596
- *
1597
- * @param {Callback<bigint> =} callback
1598
- **/
1599
- overweightCount: GenericStorageQuery<() => bigint>;
1600
- /**
1601
- * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
1602
- *
1603
- * @param {Callback<boolean> =} callback
1604
- **/
1605
- queueSuspended: GenericStorageQuery<() => boolean>;
1606
- /**
1607
- * The factor to multiply the base delivery fee by.
1608
- *
1609
- * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1610
- * @param {Callback<FixedU128> =} callback
1611
- **/
1612
- deliveryFeeFactor: GenericStorageQuery<(arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128>;
1613
- /**
1614
- * Generic pallet storage query
1615
- **/
1616
- [storage: string]: GenericStorageQuery;
1617
- };
1618
- /**
1619
- * Pallet `DmpQueue`'s storage queries
1620
- **/
1621
- dmpQueue: {
1622
- /**
1623
- * The configuration.
1624
- *
1625
- * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
1626
- **/
1627
- configuration: GenericStorageQuery<() => CumulusPalletDmpQueueConfigData>;
1628
- /**
1629
- * The page index.
1630
- *
1631
- * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
1632
- **/
1633
- pageIndex: GenericStorageQuery<() => CumulusPalletDmpQueuePageIndexData>;
1634
- /**
1635
- * The queue pages.
1636
- *
1637
- * @param {number} arg
1638
- * @param {Callback<Array<[number, Bytes]>> =} callback
1639
- **/
1640
- pages: GenericStorageQuery<(arg: number) => Array<[number, Bytes]>>;
1641
- /**
1642
- * The overweight messages.
1643
- *
1644
- * @param {bigint} arg
1645
- * @param {Callback<[number, Bytes] | undefined> =} callback
1646
- **/
1647
- overweight: GenericStorageQuery<(arg: bigint) => [number, Bytes] | undefined>;
1648
- /**
1649
- * Counter for the related counted storage map
1650
- *
1651
- * @param {Callback<number> =} callback
1652
- **/
1653
- counterForOverweight: GenericStorageQuery<() => number>;
1654
- /**
1655
- * Generic pallet storage query
1656
- **/
1657
- [storage: string]: GenericStorageQuery;
1658
- };
1659
- /**
1660
- * Pallet `PolkadotXcm`'s storage queries
1661
- **/
1662
- polkadotXcm: {
1663
- /**
1664
- * The latest available query index.
1665
- *
1666
- * @param {Callback<bigint> =} callback
1667
- **/
1668
- queryCounter: GenericStorageQuery<() => bigint>;
1669
- /**
1670
- * The ongoing queries.
1671
- *
1672
- * @param {bigint} arg
1673
- * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
1674
- **/
1675
- queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
1676
- /**
1677
- * The existing asset traps.
1678
- *
1679
- * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
1680
- * times this pair has been trapped (usually just 1 if it exists at all).
1681
- *
1682
- * @param {H256} arg
1683
- * @param {Callback<number> =} callback
1684
- **/
1685
- assetTraps: GenericStorageQuery<(arg: H256) => number>;
1686
- /**
1687
- * Default version to encode XCM when latest version of destination is unknown. If `None`,
1688
- * then the destinations whose XCM version is unknown are considered unreachable.
1689
- *
1690
- * @param {Callback<number | undefined> =} callback
1691
- **/
1692
- safeXcmVersion: GenericStorageQuery<() => number | undefined>;
1693
- /**
1694
- * The Latest versions that we know various locations support.
1695
- *
1696
- * @param {[number, XcmVersionedMultiLocation]} arg
1697
- * @param {Callback<number | undefined> =} callback
1698
- **/
1699
- supportedVersion: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => number | undefined>;
1700
- /**
1701
- * All locations that we have requested version notifications from.
1702
- *
1703
- * @param {[number, XcmVersionedMultiLocation]} arg
1704
- * @param {Callback<bigint | undefined> =} callback
1705
- **/
1706
- versionNotifiers: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => bigint | undefined>;
1707
- /**
1708
- * The target locations that are subscribed to our version changes, as well as the most recent
1709
- * of our versions we informed them of.
1710
- *
1711
- * @param {[number, XcmVersionedMultiLocation]} arg
1712
- * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
1713
- **/
1714
- versionNotifyTargets: GenericStorageQuery<(arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined>;
1715
- /**
1716
- * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
1717
- * the `u32` counter is the number of times that a send to the destination has been attempted,
1718
- * which is used as a prioritization.
1719
- *
1720
- * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
1721
- **/
1722
- versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedMultiLocation, number]>>;
1723
- /**
1724
- * The current migration's stage, if any.
1725
- *
1726
- * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
1727
- **/
1728
- currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
1729
- /**
1730
- * Fungible assets which we know are locked on a remote chain.
1731
- *
1732
- * @param {[number, AccountId20Like, XcmVersionedAssetId]} arg
1733
- * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
1734
- **/
1735
- remoteLockedFungibles: GenericStorageQuery<(arg: [number, AccountId20Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined>;
1736
- /**
1737
- * Fungible assets which we know are locked on this chain.
1738
- *
1739
- * @param {AccountId20Like} arg
1740
- * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
1741
- **/
1742
- lockedFungibles: GenericStorageQuery<(arg: AccountId20Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined>;
1743
- /**
1744
- * Global suspension state of the XCM executor.
1745
- *
1746
- * @param {Callback<boolean> =} callback
1747
- **/
1748
- xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
1749
- /**
1750
- * Generic pallet storage query
1751
- **/
1752
- [storage: string]: GenericStorageQuery;
1753
- };
1754
- /**
1755
- * Pallet `Assets`'s storage queries
1756
- **/
1757
- assets: {
1758
- /**
1759
- * Details of an asset.
1760
- *
1761
- * @param {bigint} arg
1762
- * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1763
- **/
1764
- asset: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetDetails | undefined>;
1765
- /**
1766
- * The holdings of a specific account for a specific asset.
1767
- *
1768
- * @param {[bigint, AccountId20Like]} arg
1769
- * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1770
- **/
1771
- account: GenericStorageQuery<(arg: [bigint, AccountId20Like]) => PalletAssetsAssetAccount | undefined>;
1772
- /**
1773
- * Approved balance transfers. First balance is the amount approved for transfer. Second
1774
- * is the amount of `T::Currency` reserved for storing this.
1775
- * First key is the asset ID, second key is the owner and third key is the delegate.
1776
- *
1777
- * @param {[bigint, AccountId20Like, AccountId20Like]} arg
1778
- * @param {Callback<PalletAssetsApproval | undefined> =} callback
1779
- **/
1780
- approvals: GenericStorageQuery<(arg: [bigint, AccountId20Like, AccountId20Like]) => PalletAssetsApproval | undefined>;
1781
- /**
1782
- * Metadata of an asset.
1783
- *
1784
- * @param {bigint} arg
1785
- * @param {Callback<PalletAssetsAssetMetadata> =} callback
1786
- **/
1787
- metadata: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetMetadata>;
1788
- /**
1789
- * Generic pallet storage query
1790
- **/
1791
- [storage: string]: GenericStorageQuery;
1792
- };
1793
- /**
1794
- * Pallet `AssetManager`'s storage queries
1795
- **/
1796
- assetManager: {
1797
- /**
1798
- * Mapping from an asset id to asset type.
1799
- * This is mostly used when receiving transaction specifying an asset directly,
1800
- * like transferring an asset from this chain to another.
1801
- *
1802
- * @param {bigint} arg
1803
- * @param {Callback<MoonbeamRuntimeXcmConfigAssetType | undefined> =} callback
1804
- **/
1805
- assetIdType: GenericStorageQuery<(arg: bigint) => MoonbeamRuntimeXcmConfigAssetType | undefined>;
1806
- /**
1807
- * Reverse mapping of AssetIdType. Mapping from an asset type to an asset id.
1808
- * This is mostly used when receiving a multilocation XCM message to retrieve
1809
- * the corresponding asset in which tokens should me minted.
1810
- *
1811
- * @param {MoonbeamRuntimeXcmConfigAssetType} arg
1812
- * @param {Callback<bigint | undefined> =} callback
1813
- **/
1814
- assetTypeId: GenericStorageQuery<(arg: MoonbeamRuntimeXcmConfigAssetType) => bigint | undefined>;
1815
- /**
1816
- * Stores the units per second for local execution for a AssetType.
1817
- * This is used to know how to charge for XCM execution in a particular
1818
- * asset
1819
- * Not all assets might contain units per second, hence the different storage
1820
- *
1821
- * @param {MoonbeamRuntimeXcmConfigAssetType} arg
1822
- * @param {Callback<bigint | undefined> =} callback
1823
- **/
1824
- assetTypeUnitsPerSecond: GenericStorageQuery<(arg: MoonbeamRuntimeXcmConfigAssetType) => bigint | undefined>;
1825
- /**
1826
- * Stores the counter of the number of local assets that have been
1827
- * created so far
1828
- * This value can be used to salt the creation of an assetId, e.g.,
1829
- * by hashing it. This is particularly useful for cases like moonbeam
1830
- * where letting users choose their assetId would result in collision
1831
- * in the evm side.
1832
- *
1833
- * @param {Callback<bigint> =} callback
1834
- **/
1835
- localAssetCounter: GenericStorageQuery<() => bigint>;
1836
- /**
1837
- * Local asset deposits, a mapping from assetId to a struct
1838
- * holding the creator (from which the deposit was reserved) and
1839
- * the deposit amount
1840
- *
1841
- * @param {bigint} arg
1842
- * @param {Callback<PalletAssetManagerAssetInfo | undefined> =} callback
1843
- **/
1844
- localAssetDeposit: GenericStorageQuery<(arg: bigint) => PalletAssetManagerAssetInfo | undefined>;
1845
- /**
1846
- *
1847
- * @param {Callback<Array<MoonbeamRuntimeXcmConfigAssetType>> =} callback
1848
- **/
1849
- supportedFeePaymentAssets: GenericStorageQuery<() => Array<MoonbeamRuntimeXcmConfigAssetType>>;
1850
- /**
1851
- * Generic pallet storage query
1852
- **/
1853
- [storage: string]: GenericStorageQuery;
1854
- };
1855
- /**
1856
- * Pallet `XTokens`'s storage queries
1857
- **/
1858
- xTokens: {
1859
- /**
1860
- * Generic pallet storage query
1861
- **/
1862
- [storage: string]: GenericStorageQuery;
1863
- };
1864
- /**
1865
- * Pallet `XcmTransactor`'s storage queries
1866
- **/
1867
- xcmTransactor: {
1868
- /**
1869
- * Since we are using pallet-utility for account derivation (through AsDerivative),
1870
- * we need to provide an index for the account derivation. This storage item stores the index
1871
- * assigned for a given local account. These indices are usable as derivative in the relay chain
1872
- *
1873
- * @param {number} arg
1874
- * @param {Callback<AccountId20 | undefined> =} callback
1875
- **/
1876
- indexToAccount: GenericStorageQuery<(arg: number) => AccountId20 | undefined>;
1877
- /**
1878
- * Stores the transact info of a MultiLocation. This defines how much extra weight we need to
1879
- * add when we want to transact in the destination chain and maximum amount of weight allowed
1880
- * by the destination chain
1881
- *
1882
- * @param {StagingXcmV3MultilocationMultiLocation} arg
1883
- * @param {Callback<PalletXcmTransactorRemoteTransactInfoWithMaxWeight | undefined> =} callback
1884
- **/
1885
- transactInfoWithWeightLimit: GenericStorageQuery<(arg: StagingXcmV3MultilocationMultiLocation) => PalletXcmTransactorRemoteTransactInfoWithMaxWeight | undefined>;
1886
- /**
1887
- * Stores the fee per second for an asset in its reserve chain. This allows us to convert
1888
- * from weight to fee
1889
- *
1890
- * @param {StagingXcmV3MultilocationMultiLocation} arg
1891
- * @param {Callback<bigint | undefined> =} callback
1892
- **/
1893
- destinationAssetFeePerSecond: GenericStorageQuery<(arg: StagingXcmV3MultilocationMultiLocation) => bigint | undefined>;
1894
- /**
1895
- * Stores the indices of relay chain pallets
1896
- *
1897
- * @param {Callback<PalletXcmTransactorRelayIndicesRelayChainIndices> =} callback
1898
- **/
1899
- relayIndices: GenericStorageQuery<() => PalletXcmTransactorRelayIndicesRelayChainIndices>;
1900
- /**
1901
- * Generic pallet storage query
1902
- **/
1903
- [storage: string]: GenericStorageQuery;
1904
- };
1905
- /**
1906
- * Pallet `LocalAssets`'s storage queries
1907
- **/
1908
- localAssets: {
1909
- /**
1910
- * Details of an asset.
1911
- *
1912
- * @param {bigint} arg
1913
- * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
1914
- **/
1915
- asset: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetDetails | undefined>;
1916
- /**
1917
- * The holdings of a specific account for a specific asset.
1918
- *
1919
- * @param {[bigint, AccountId20Like]} arg
1920
- * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
1921
- **/
1922
- account: GenericStorageQuery<(arg: [bigint, AccountId20Like]) => PalletAssetsAssetAccount | undefined>;
1923
- /**
1924
- * Approved balance transfers. First balance is the amount approved for transfer. Second
1925
- * is the amount of `T::Currency` reserved for storing this.
1926
- * First key is the asset ID, second key is the owner and third key is the delegate.
1927
- *
1928
- * @param {[bigint, AccountId20Like, AccountId20Like]} arg
1929
- * @param {Callback<PalletAssetsApproval | undefined> =} callback
1930
- **/
1931
- approvals: GenericStorageQuery<(arg: [bigint, AccountId20Like, AccountId20Like]) => PalletAssetsApproval | undefined>;
1932
- /**
1933
- * Metadata of an asset.
1934
- *
1935
- * @param {bigint} arg
1936
- * @param {Callback<PalletAssetsAssetMetadata> =} callback
1937
- **/
1938
- metadata: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetMetadata>;
1939
- /**
1940
- * Generic pallet storage query
1941
- **/
1942
- [storage: string]: GenericStorageQuery;
1943
- };
1944
- /**
1945
- * Pallet `EthereumXcm`'s storage queries
1946
- **/
1947
- ethereumXcm: {
1948
- /**
1949
- * Global nonce used for building Ethereum transaction payload.
1950
- *
1951
- * @param {Callback<U256> =} callback
1952
- **/
1953
- nonce: GenericStorageQuery<() => U256>;
1954
- /**
1955
- * Whether or not Ethereum-XCM is suspended from executing
1956
- *
1957
- * @param {Callback<boolean> =} callback
1958
- **/
1959
- ethereumXcmSuspended: GenericStorageQuery<() => boolean>;
1960
- /**
1961
- * Generic pallet storage query
1962
- **/
1963
- [storage: string]: GenericStorageQuery;
1964
- };
1965
- /**
1966
- * Pallet `Randomness`'s storage queries
1967
- **/
1968
- randomness: {
1969
- /**
1970
- * Randomness requests not yet fulfilled or purged
1971
- *
1972
- * @param {bigint} arg
1973
- * @param {Callback<PalletRandomnessRequestState | undefined> =} callback
1974
- **/
1975
- requests: GenericStorageQuery<(arg: bigint) => PalletRandomnessRequestState | undefined>;
1976
- /**
1977
- * Number of randomness requests made so far, used to generate the next request's uid
1978
- *
1979
- * @param {Callback<bigint> =} callback
1980
- **/
1981
- requestCount: GenericStorageQuery<() => bigint>;
1982
- /**
1983
- * Current local per-block VRF randomness
1984
- * Set in `on_initialize`
1985
- *
1986
- * @param {Callback<H256 | undefined> =} callback
1987
- **/
1988
- localVrfOutput: GenericStorageQuery<() => H256 | undefined>;
1989
- /**
1990
- * Relay epoch
1991
- *
1992
- * @param {Callback<bigint> =} callback
1993
- **/
1994
- relayEpoch: GenericStorageQuery<() => bigint>;
1995
- /**
1996
- * Ensures the mandatory inherent was included in the block
1997
- *
1998
- * @param {Callback<[] | undefined> =} callback
1999
- **/
2000
- inherentIncluded: GenericStorageQuery<() => [] | undefined>;
2001
- /**
2002
- * Records whether this is the first block (genesis or runtime upgrade)
2003
- *
2004
- * @param {Callback<[] | undefined> =} callback
2005
- **/
2006
- notFirstBlock: GenericStorageQuery<() => [] | undefined>;
2007
- /**
2008
- * Snapshot of randomness to fulfill all requests that are for the same raw randomness
2009
- * Removed once $value.request_count == 0
2010
- *
2011
- * @param {PalletRandomnessRequestType} arg
2012
- * @param {Callback<PalletRandomnessRandomnessResult | undefined> =} callback
2013
- **/
2014
- randomnessResults: GenericStorageQuery<(arg: PalletRandomnessRequestType) => PalletRandomnessRandomnessResult | undefined>;
2015
- /**
2016
- * Previous local per-block VRF randomness
2017
- * Set in `on_finalize` of last block
2018
- *
2019
- * @param {Callback<H256> =} callback
2020
- **/
2021
- previousLocalVrfOutput: GenericStorageQuery<() => H256>;
2022
- /**
2023
- * Generic pallet storage query
2024
- **/
2025
- [storage: string]: GenericStorageQuery;
2026
- };
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ AccountId20,
6
+ AccountId20Like,
7
+ H256,
8
+ Bytes,
9
+ Digest,
10
+ Phase,
11
+ FixedU128,
12
+ Perbill,
13
+ Percent,
14
+ Data,
15
+ BytesLike,
16
+ FixedBytes,
17
+ H160,
18
+ U256,
19
+ } from 'dedot/codecs';
20
+ import type {
21
+ FrameSystemAccountInfo,
22
+ FrameSupportDispatchPerDispatchClass,
23
+ FrameSystemEventRecord,
24
+ FrameSystemLastRuntimeUpgradeInfo,
25
+ CumulusPalletParachainSystemUnincludedSegmentAncestor,
26
+ CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
27
+ PolkadotPrimitivesV6PersistedValidationData,
28
+ PolkadotPrimitivesV6UpgradeRestriction,
29
+ PolkadotPrimitivesV6UpgradeGoAhead,
30
+ SpTrieStorageProof,
31
+ CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
32
+ PolkadotPrimitivesV6AbridgedHostConfiguration,
33
+ CumulusPrimitivesParachainInherentMessageQueueChain,
34
+ PolkadotParachainPrimitivesPrimitivesId,
35
+ PolkadotCorePrimitivesOutboundHrmpMessage,
36
+ SpWeightsWeightV2Weight,
37
+ CumulusPalletParachainSystemCodeUpgradeAuthorization,
38
+ PalletBalancesAccountData,
39
+ PalletBalancesBalanceLock,
40
+ PalletBalancesReserveData,
41
+ PalletBalancesIdAmount,
42
+ PalletBalancesIdAmount002,
43
+ PalletTransactionPaymentReleases,
44
+ PalletParachainStakingParachainBondConfig,
45
+ PalletParachainStakingRoundInfo,
46
+ PalletParachainStakingDelegator,
47
+ PalletParachainStakingCandidateMetadata,
48
+ PalletParachainStakingDelegationRequestsScheduledRequest,
49
+ PalletParachainStakingAutoCompoundAutoCompoundConfig,
50
+ PalletParachainStakingDelegations,
51
+ PalletParachainStakingSetBoundedOrderedSet,
52
+ PalletParachainStakingCollatorSnapshot,
53
+ PalletParachainStakingDelayedPayout,
54
+ PalletParachainStakingInflationInflationInfo,
55
+ PalletAuthorSlotFilterNumNonZeroU32,
56
+ PalletAuthorMappingRegistrationInfo,
57
+ NimbusPrimitivesNimbusCryptoPublic,
58
+ PalletMoonbeamOrbitersCollatorPoolInfo,
59
+ PalletProxyProxyDefinition,
60
+ PalletProxyAnnouncement,
61
+ PalletIdentityRegistration,
62
+ PalletIdentityRegistrarInfo,
63
+ PalletMultisigMultisig,
64
+ PalletEvmCodeMetadata,
65
+ EthereumTransactionTransactionV2,
66
+ FpRpcTransactionStatus,
67
+ EthereumReceiptReceiptV3,
68
+ EthereumBlock,
69
+ PalletSchedulerScheduled,
70
+ FrameSupportPreimagesBounded,
71
+ PalletDemocracyReferendumInfo,
72
+ PalletDemocracyVoteVoting,
73
+ PalletDemocracyVoteThreshold,
74
+ PalletDemocracyMetadataOwner,
75
+ PalletPreimageOldRequestStatus,
76
+ PalletPreimageRequestStatus,
77
+ PalletConvictionVotingVoteVoting,
78
+ PalletReferendaReferendumInfo,
79
+ MoonbeamRuntimeRuntimeCall,
80
+ PalletCollectiveVotes,
81
+ PalletTreasuryProposal,
82
+ PalletTreasurySpendStatus,
83
+ PalletCrowdloanRewardsRewardInfo,
84
+ CumulusPalletXcmpQueueInboundChannelDetails,
85
+ CumulusPalletXcmpQueueOutboundChannelDetails,
86
+ CumulusPalletXcmpQueueQueueConfigData,
87
+ CumulusPalletDmpQueueConfigData,
88
+ CumulusPalletDmpQueuePageIndexData,
89
+ PalletXcmQueryStatus,
90
+ XcmVersionedMultiLocation,
91
+ PalletXcmVersionMigrationStage,
92
+ PalletXcmRemoteLockedFungibleRecord,
93
+ XcmVersionedAssetId,
94
+ PalletAssetsAssetDetails,
95
+ PalletAssetsAssetAccount,
96
+ PalletAssetsApproval,
97
+ PalletAssetsAssetMetadata,
98
+ MoonbeamRuntimeXcmConfigAssetType,
99
+ PalletAssetManagerAssetInfo,
100
+ PalletXcmTransactorRemoteTransactInfoWithMaxWeight,
101
+ StagingXcmV3MultilocationMultiLocation,
102
+ PalletXcmTransactorRelayIndicesRelayChainIndices,
103
+ PalletRandomnessRequestState,
104
+ PalletRandomnessRandomnessResult,
105
+ PalletRandomnessRequestType,
106
+ } from './types';
107
+
108
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
109
+ /**
110
+ * Pallet `System`'s storage queries
111
+ **/
112
+ system: {
113
+ /**
114
+ * The full account information for a particular account ID.
115
+ *
116
+ * @param {AccountId20Like} arg
117
+ * @param {Callback<FrameSystemAccountInfo> =} callback
118
+ **/
119
+ account: GenericStorageQuery<Rv, (arg: AccountId20Like) => FrameSystemAccountInfo, AccountId20>;
120
+
121
+ /**
122
+ * Total extrinsics count for the current block.
123
+ *
124
+ * @param {Callback<number | undefined> =} callback
125
+ **/
126
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
127
+
128
+ /**
129
+ * The current weight for the block.
130
+ *
131
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
132
+ **/
133
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
134
+
135
+ /**
136
+ * Total length (in bytes) for all extrinsics put together, for the current block.
137
+ *
138
+ * @param {Callback<number | undefined> =} callback
139
+ **/
140
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
141
+
142
+ /**
143
+ * Map of block numbers to block hashes.
144
+ *
145
+ * @param {number} arg
146
+ * @param {Callback<H256> =} callback
147
+ **/
148
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
149
+
150
+ /**
151
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
152
+ *
153
+ * @param {number} arg
154
+ * @param {Callback<Bytes> =} callback
155
+ **/
156
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
157
+
158
+ /**
159
+ * The current block number being processed. Set by `execute_block`.
160
+ *
161
+ * @param {Callback<number> =} callback
162
+ **/
163
+ number: GenericStorageQuery<Rv, () => number>;
164
+
165
+ /**
166
+ * Hash of the previous block.
167
+ *
168
+ * @param {Callback<H256> =} callback
169
+ **/
170
+ parentHash: GenericStorageQuery<Rv, () => H256>;
171
+
172
+ /**
173
+ * Digest of the current block, also part of the block header.
174
+ *
175
+ * @param {Callback<Digest> =} callback
176
+ **/
177
+ digest: GenericStorageQuery<Rv, () => Digest>;
178
+
179
+ /**
180
+ * Events deposited for the current block.
181
+ *
182
+ * NOTE: The item is unbound and should therefore never be read on chain.
183
+ * It could otherwise inflate the PoV size of a block.
184
+ *
185
+ * Events have a large in-memory size. Box the events to not go out-of-memory
186
+ * just in case someone still reads them from within the runtime.
187
+ *
188
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
189
+ **/
190
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
191
+
192
+ /**
193
+ * The number of events in the `Events<T>` list.
194
+ *
195
+ * @param {Callback<number> =} callback
196
+ **/
197
+ eventCount: GenericStorageQuery<Rv, () => number>;
198
+
199
+ /**
200
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
201
+ * of events in the `<Events<T>>` list.
202
+ *
203
+ * All topic vectors have deterministic storage locations depending on the topic. This
204
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
205
+ * in case of changes fetch the list of events of interest.
206
+ *
207
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
208
+ * the `EventIndex` then in case if the topic has the same contents on the next block
209
+ * no notification will be triggered thus the event might be lost.
210
+ *
211
+ * @param {H256} arg
212
+ * @param {Callback<Array<[number, number]>> =} callback
213
+ **/
214
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
215
+
216
+ /**
217
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
218
+ *
219
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
220
+ **/
221
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
222
+
223
+ /**
224
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
225
+ *
226
+ * @param {Callback<boolean> =} callback
227
+ **/
228
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
229
+
230
+ /**
231
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
232
+ * (default) if not.
233
+ *
234
+ * @param {Callback<boolean> =} callback
235
+ **/
236
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
237
+
238
+ /**
239
+ * The execution phase of the block.
240
+ *
241
+ * @param {Callback<Phase | undefined> =} callback
242
+ **/
243
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
244
+
245
+ /**
246
+ * Generic pallet storage query
247
+ **/
248
+ [storage: string]: GenericStorageQuery<Rv>;
249
+ };
250
+ /**
251
+ * Pallet `ParachainSystem`'s storage queries
252
+ **/
253
+ parachainSystem: {
254
+ /**
255
+ * Latest included block descendants the runtime accepted. In other words, these are
256
+ * ancestors of the currently executing block which have not been included in the observed
257
+ * relay-chain state.
258
+ *
259
+ * The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
260
+ * in the pallet.
261
+ *
262
+ * @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
263
+ **/
264
+ unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
265
+
266
+ /**
267
+ * Storage field that keeps track of bandwidth used by the unincluded segment along with the
268
+ * latest HRMP watermark. Used for limiting the acceptance of new blocks with
269
+ * respect to relay chain constraints.
270
+ *
271
+ * @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
272
+ **/
273
+ aggregatedUnincludedSegment: GenericStorageQuery<
274
+ Rv,
275
+ () => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
276
+ >;
277
+
278
+ /**
279
+ * In case of a scheduled upgrade, this storage field contains the validation code to be
280
+ * applied.
281
+ *
282
+ * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
283
+ * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
284
+ * with the new validation code. This concludes the upgrade process.
285
+ *
286
+ * @param {Callback<Bytes> =} callback
287
+ **/
288
+ pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
289
+
290
+ /**
291
+ * Validation code that is set by the parachain and is to be communicated to collator and
292
+ * consequently the relay-chain.
293
+ *
294
+ * This will be cleared in `on_initialize` of each new block if no other pallet already set
295
+ * the value.
296
+ *
297
+ * @param {Callback<Bytes | undefined> =} callback
298
+ **/
299
+ newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
300
+
301
+ /**
302
+ * The [`PersistedValidationData`] set for this block.
303
+ * This value is expected to be set only once per block and it's never stored
304
+ * in the trie.
305
+ *
306
+ * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
307
+ **/
308
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6PersistedValidationData | undefined>;
309
+
310
+ /**
311
+ * Were the validation data set to notify the relay chain?
312
+ *
313
+ * @param {Callback<boolean> =} callback
314
+ **/
315
+ didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
316
+
317
+ /**
318
+ * The relay chain block number associated with the last parachain block.
319
+ *
320
+ * This is updated in `on_finalize`.
321
+ *
322
+ * @param {Callback<number> =} callback
323
+ **/
324
+ lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
325
+
326
+ /**
327
+ * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
328
+ * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
329
+ * candidate will be invalid.
330
+ *
331
+ * This storage item is a mirror of the corresponding value for the current parachain from the
332
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
333
+ * set after the inherent.
334
+ *
335
+ * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
336
+ **/
337
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
338
+
339
+ /**
340
+ * Optional upgrade go-ahead signal from the relay-chain.
341
+ *
342
+ * This storage item is a mirror of the corresponding value for the current parachain from the
343
+ * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
344
+ * set after the inherent.
345
+ *
346
+ * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
347
+ **/
348
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
349
+
350
+ /**
351
+ * The state proof for the last relay parent block.
352
+ *
353
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
354
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
355
+ *
356
+ * This data is also absent from the genesis.
357
+ *
358
+ * @param {Callback<SpTrieStorageProof | undefined> =} callback
359
+ **/
360
+ relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
361
+
362
+ /**
363
+ * The snapshot of some state related to messaging relevant to the current parachain as per
364
+ * the relay parent.
365
+ *
366
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
367
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
368
+ *
369
+ * This data is also absent from the genesis.
370
+ *
371
+ * @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
372
+ **/
373
+ relevantMessagingState: GenericStorageQuery<
374
+ Rv,
375
+ () => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
376
+ >;
377
+
378
+ /**
379
+ * The parachain host configuration that was obtained from the relay parent.
380
+ *
381
+ * This field is meant to be updated each block with the validation data inherent. Therefore,
382
+ * before processing of the inherent, e.g. in `on_initialize` this data may be stale.
383
+ *
384
+ * This data is also absent from the genesis.
385
+ *
386
+ * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
387
+ **/
388
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
389
+
390
+ /**
391
+ * The last downward message queue chain head we have observed.
392
+ *
393
+ * This value is loaded before and saved after processing inbound downward messages carried
394
+ * by the system inherent.
395
+ *
396
+ * @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
397
+ **/
398
+ lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
399
+
400
+ /**
401
+ * The message queue chain heads we have observed per each channel incoming channel.
402
+ *
403
+ * This value is loaded before and saved after processing inbound downward messages carried
404
+ * by the system inherent.
405
+ *
406
+ * @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
407
+ **/
408
+ lastHrmpMqcHeads: GenericStorageQuery<
409
+ Rv,
410
+ () => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
411
+ >;
412
+
413
+ /**
414
+ * Number of downward messages processed in a block.
415
+ *
416
+ * This will be cleared in `on_initialize` of each new block.
417
+ *
418
+ * @param {Callback<number> =} callback
419
+ **/
420
+ processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
421
+
422
+ /**
423
+ * HRMP watermark that was set in a block.
424
+ *
425
+ * This will be cleared in `on_initialize` of each new block.
426
+ *
427
+ * @param {Callback<number> =} callback
428
+ **/
429
+ hrmpWatermark: GenericStorageQuery<Rv, () => number>;
430
+
431
+ /**
432
+ * HRMP messages that were sent in a block.
433
+ *
434
+ * This will be cleared in `on_initialize` of each new block.
435
+ *
436
+ * @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
437
+ **/
438
+ hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
439
+
440
+ /**
441
+ * Upward messages that were sent in a block.
442
+ *
443
+ * This will be cleared in `on_initialize` of each new block.
444
+ *
445
+ * @param {Callback<Array<Bytes>> =} callback
446
+ **/
447
+ upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
448
+
449
+ /**
450
+ * Upward messages that are still pending and not yet send to the relay chain.
451
+ *
452
+ * @param {Callback<Array<Bytes>> =} callback
453
+ **/
454
+ pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
455
+
456
+ /**
457
+ * The factor to multiply the base delivery fee by for UMP.
458
+ *
459
+ * @param {Callback<FixedU128> =} callback
460
+ **/
461
+ upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
462
+
463
+ /**
464
+ * The number of HRMP messages we observed in `on_initialize` and thus used that number for
465
+ * announcing the weight of `on_initialize` and `on_finalize`.
466
+ *
467
+ * @param {Callback<number> =} callback
468
+ **/
469
+ announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
470
+
471
+ /**
472
+ * The weight we reserve at the beginning of the block for processing XCMP messages. This
473
+ * overrides the amount set in the Config trait.
474
+ *
475
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
476
+ **/
477
+ reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
478
+
479
+ /**
480
+ * The weight we reserve at the beginning of the block for processing DMP messages. This
481
+ * overrides the amount set in the Config trait.
482
+ *
483
+ * @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
484
+ **/
485
+ reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
486
+
487
+ /**
488
+ * The next authorized upgrade, if there is one.
489
+ *
490
+ * @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
491
+ **/
492
+ authorizedUpgrade: GenericStorageQuery<Rv, () => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
493
+
494
+ /**
495
+ * A custom head data that should be returned as result of `validate_block`.
496
+ *
497
+ * See `Pallet::set_custom_validation_head_data` for more information.
498
+ *
499
+ * @param {Callback<Bytes | undefined> =} callback
500
+ **/
501
+ customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
502
+
503
+ /**
504
+ * Generic pallet storage query
505
+ **/
506
+ [storage: string]: GenericStorageQuery<Rv>;
507
+ };
508
+ /**
509
+ * Pallet `Timestamp`'s storage queries
510
+ **/
511
+ timestamp: {
512
+ /**
513
+ * The current time for the current block.
514
+ *
515
+ * @param {Callback<bigint> =} callback
516
+ **/
517
+ now: GenericStorageQuery<Rv, () => bigint>;
518
+
519
+ /**
520
+ * Whether the timestamp has been updated in this block.
521
+ *
522
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
523
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
524
+ *
525
+ * @param {Callback<boolean> =} callback
526
+ **/
527
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
528
+
529
+ /**
530
+ * Generic pallet storage query
531
+ **/
532
+ [storage: string]: GenericStorageQuery<Rv>;
533
+ };
534
+ /**
535
+ * Pallet `ParachainInfo`'s storage queries
536
+ **/
537
+ parachainInfo: {
538
+ /**
539
+ *
540
+ * @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
541
+ **/
542
+ parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
543
+
544
+ /**
545
+ * Generic pallet storage query
546
+ **/
547
+ [storage: string]: GenericStorageQuery<Rv>;
548
+ };
549
+ /**
550
+ * Pallet `RootTesting`'s storage queries
551
+ **/
552
+ rootTesting: {
553
+ /**
554
+ * Generic pallet storage query
555
+ **/
556
+ [storage: string]: GenericStorageQuery<Rv>;
557
+ };
558
+ /**
559
+ * Pallet `Balances`'s storage queries
560
+ **/
561
+ balances: {
562
+ /**
563
+ * The total units issued in the system.
564
+ *
565
+ * @param {Callback<bigint> =} callback
566
+ **/
567
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
568
+
569
+ /**
570
+ * The total units of outstanding deactivated balance in the system.
571
+ *
572
+ * @param {Callback<bigint> =} callback
573
+ **/
574
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
575
+
576
+ /**
577
+ * The Balances pallet example of storing the balance of an account.
578
+ *
579
+ * # Example
580
+ *
581
+ * ```nocompile
582
+ * impl pallet_balances::Config for Runtime {
583
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
584
+ * }
585
+ * ```
586
+ *
587
+ * You can also store the balance of an account in the `System` pallet.
588
+ *
589
+ * # Example
590
+ *
591
+ * ```nocompile
592
+ * impl pallet_balances::Config for Runtime {
593
+ * type AccountStore = System
594
+ * }
595
+ * ```
596
+ *
597
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
598
+ * `frame_system` data alongside the account data contrary to storing account balances in the
599
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
600
+ * NOTE: This is only used in the case that this pallet is used to store balances.
601
+ *
602
+ * @param {AccountId20Like} arg
603
+ * @param {Callback<PalletBalancesAccountData> =} callback
604
+ **/
605
+ account: GenericStorageQuery<Rv, (arg: AccountId20Like) => PalletBalancesAccountData, AccountId20>;
606
+
607
+ /**
608
+ * Any liquidity locks on some account balances.
609
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
610
+ *
611
+ * @param {AccountId20Like} arg
612
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
613
+ **/
614
+ locks: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<PalletBalancesBalanceLock>, AccountId20>;
615
+
616
+ /**
617
+ * Named reserves on some account balances.
618
+ *
619
+ * @param {AccountId20Like} arg
620
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
621
+ **/
622
+ reserves: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<PalletBalancesReserveData>, AccountId20>;
623
+
624
+ /**
625
+ * Holds on account balances.
626
+ *
627
+ * @param {AccountId20Like} arg
628
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
629
+ **/
630
+ holds: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<PalletBalancesIdAmount>, AccountId20>;
631
+
632
+ /**
633
+ * Freeze locks on account balances.
634
+ *
635
+ * @param {AccountId20Like} arg
636
+ * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
637
+ **/
638
+ freezes: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<PalletBalancesIdAmount002>, AccountId20>;
639
+
640
+ /**
641
+ * Generic pallet storage query
642
+ **/
643
+ [storage: string]: GenericStorageQuery<Rv>;
644
+ };
645
+ /**
646
+ * Pallet `TransactionPayment`'s storage queries
647
+ **/
648
+ transactionPayment: {
649
+ /**
650
+ *
651
+ * @param {Callback<FixedU128> =} callback
652
+ **/
653
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
654
+
655
+ /**
656
+ *
657
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
658
+ **/
659
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
660
+
661
+ /**
662
+ * Generic pallet storage query
663
+ **/
664
+ [storage: string]: GenericStorageQuery<Rv>;
665
+ };
666
+ /**
667
+ * Pallet `ParachainStaking`'s storage queries
668
+ **/
669
+ parachainStaking: {
670
+ /**
671
+ * Commission percent taken off of rewards for all collators
672
+ *
673
+ * @param {Callback<Perbill> =} callback
674
+ **/
675
+ collatorCommission: GenericStorageQuery<Rv, () => Perbill>;
676
+
677
+ /**
678
+ * The total candidates selected every round
679
+ *
680
+ * @param {Callback<number> =} callback
681
+ **/
682
+ totalSelected: GenericStorageQuery<Rv, () => number>;
683
+
684
+ /**
685
+ * Parachain bond config info { account, percent_of_inflation }
686
+ *
687
+ * @param {Callback<PalletParachainStakingParachainBondConfig> =} callback
688
+ **/
689
+ parachainBondInfo: GenericStorageQuery<Rv, () => PalletParachainStakingParachainBondConfig>;
690
+
691
+ /**
692
+ * Current round index and next round scheduled transition
693
+ *
694
+ * @param {Callback<PalletParachainStakingRoundInfo> =} callback
695
+ **/
696
+ round: GenericStorageQuery<Rv, () => PalletParachainStakingRoundInfo>;
697
+
698
+ /**
699
+ * Get delegator state associated with an account if account is delegating else None
700
+ *
701
+ * @param {AccountId20Like} arg
702
+ * @param {Callback<PalletParachainStakingDelegator | undefined> =} callback
703
+ **/
704
+ delegatorState: GenericStorageQuery<
705
+ Rv,
706
+ (arg: AccountId20Like) => PalletParachainStakingDelegator | undefined,
707
+ AccountId20
708
+ >;
709
+
710
+ /**
711
+ * Get collator candidate info associated with an account if account is candidate else None
712
+ *
713
+ * @param {AccountId20Like} arg
714
+ * @param {Callback<PalletParachainStakingCandidateMetadata | undefined> =} callback
715
+ **/
716
+ candidateInfo: GenericStorageQuery<
717
+ Rv,
718
+ (arg: AccountId20Like) => PalletParachainStakingCandidateMetadata | undefined,
719
+ AccountId20
720
+ >;
721
+
722
+ /**
723
+ * Stores outstanding delegation requests per collator.
724
+ *
725
+ * @param {AccountId20Like} arg
726
+ * @param {Callback<Array<PalletParachainStakingDelegationRequestsScheduledRequest>> =} callback
727
+ **/
728
+ delegationScheduledRequests: GenericStorageQuery<
729
+ Rv,
730
+ (arg: AccountId20Like) => Array<PalletParachainStakingDelegationRequestsScheduledRequest>,
731
+ AccountId20
732
+ >;
733
+
734
+ /**
735
+ * Stores auto-compounding configuration per collator.
736
+ *
737
+ * @param {AccountId20Like} arg
738
+ * @param {Callback<Array<PalletParachainStakingAutoCompoundAutoCompoundConfig>> =} callback
739
+ **/
740
+ autoCompoundingDelegations: GenericStorageQuery<
741
+ Rv,
742
+ (arg: AccountId20Like) => Array<PalletParachainStakingAutoCompoundAutoCompoundConfig>,
743
+ AccountId20
744
+ >;
745
+
746
+ /**
747
+ * Top delegations for collator candidate
748
+ *
749
+ * @param {AccountId20Like} arg
750
+ * @param {Callback<PalletParachainStakingDelegations | undefined> =} callback
751
+ **/
752
+ topDelegations: GenericStorageQuery<
753
+ Rv,
754
+ (arg: AccountId20Like) => PalletParachainStakingDelegations | undefined,
755
+ AccountId20
756
+ >;
757
+
758
+ /**
759
+ * Bottom delegations for collator candidate
760
+ *
761
+ * @param {AccountId20Like} arg
762
+ * @param {Callback<PalletParachainStakingDelegations | undefined> =} callback
763
+ **/
764
+ bottomDelegations: GenericStorageQuery<
765
+ Rv,
766
+ (arg: AccountId20Like) => PalletParachainStakingDelegations | undefined,
767
+ AccountId20
768
+ >;
769
+
770
+ /**
771
+ * The collator candidates selected for the current round
772
+ *
773
+ * @param {Callback<Array<AccountId20>> =} callback
774
+ **/
775
+ selectedCandidates: GenericStorageQuery<Rv, () => Array<AccountId20>>;
776
+
777
+ /**
778
+ * Total capital locked by this staking pallet
779
+ *
780
+ * @param {Callback<bigint> =} callback
781
+ **/
782
+ total: GenericStorageQuery<Rv, () => bigint>;
783
+
784
+ /**
785
+ * The pool of collator candidates, each with their total backing stake
786
+ *
787
+ * @param {Callback<PalletParachainStakingSetBoundedOrderedSet> =} callback
788
+ **/
789
+ candidatePool: GenericStorageQuery<Rv, () => PalletParachainStakingSetBoundedOrderedSet>;
790
+
791
+ /**
792
+ * Snapshot of collator delegation stake at the start of the round
793
+ *
794
+ * @param {[number, AccountId20Like]} arg
795
+ * @param {Callback<PalletParachainStakingCollatorSnapshot | undefined> =} callback
796
+ **/
797
+ atStake: GenericStorageQuery<
798
+ Rv,
799
+ (arg: [number, AccountId20Like]) => PalletParachainStakingCollatorSnapshot | undefined,
800
+ [number, AccountId20]
801
+ >;
802
+
803
+ /**
804
+ * Delayed payouts
805
+ *
806
+ * @param {number} arg
807
+ * @param {Callback<PalletParachainStakingDelayedPayout | undefined> =} callback
808
+ **/
809
+ delayedPayouts: GenericStorageQuery<Rv, (arg: number) => PalletParachainStakingDelayedPayout | undefined, number>;
810
+
811
+ /**
812
+ * Inflation configuration
813
+ *
814
+ * @param {Callback<PalletParachainStakingInflationInflationInfo> =} callback
815
+ **/
816
+ inflationConfig: GenericStorageQuery<Rv, () => PalletParachainStakingInflationInflationInfo>;
817
+
818
+ /**
819
+ * Total points awarded to collators for block production in the round
820
+ *
821
+ * @param {number} arg
822
+ * @param {Callback<number> =} callback
823
+ **/
824
+ points: GenericStorageQuery<Rv, (arg: number) => number, number>;
825
+
826
+ /**
827
+ * Points for each collator per round
828
+ *
829
+ * @param {[number, AccountId20Like]} arg
830
+ * @param {Callback<number> =} callback
831
+ **/
832
+ awardedPts: GenericStorageQuery<Rv, (arg: [number, AccountId20Like]) => number, [number, AccountId20]>;
833
+
834
+ /**
835
+ * Killswitch to enable/disable marking offline feature.
836
+ *
837
+ * @param {Callback<boolean> =} callback
838
+ **/
839
+ enableMarkingOffline: GenericStorageQuery<Rv, () => boolean>;
840
+
841
+ /**
842
+ * Generic pallet storage query
843
+ **/
844
+ [storage: string]: GenericStorageQuery<Rv>;
845
+ };
846
+ /**
847
+ * Pallet `AuthorInherent`'s storage queries
848
+ **/
849
+ authorInherent: {
850
+ /**
851
+ * Author of current block.
852
+ *
853
+ * @param {Callback<AccountId20 | undefined> =} callback
854
+ **/
855
+ author: GenericStorageQuery<Rv, () => AccountId20 | undefined>;
856
+
857
+ /**
858
+ * Check if the inherent was included
859
+ *
860
+ * @param {Callback<boolean> =} callback
861
+ **/
862
+ inherentIncluded: GenericStorageQuery<Rv, () => boolean>;
863
+
864
+ /**
865
+ * Generic pallet storage query
866
+ **/
867
+ [storage: string]: GenericStorageQuery<Rv>;
868
+ };
869
+ /**
870
+ * Pallet `AuthorFilter`'s storage queries
871
+ **/
872
+ authorFilter: {
873
+ /**
874
+ *
875
+ * @param {Callback<Percent> =} callback
876
+ **/
877
+ eligibleRatio: GenericStorageQuery<Rv, () => Percent>;
878
+
879
+ /**
880
+ * The number of active authors that will be eligible at each height.
881
+ *
882
+ * @param {Callback<PalletAuthorSlotFilterNumNonZeroU32> =} callback
883
+ **/
884
+ eligibleCount: GenericStorageQuery<Rv, () => PalletAuthorSlotFilterNumNonZeroU32>;
885
+
886
+ /**
887
+ * Generic pallet storage query
888
+ **/
889
+ [storage: string]: GenericStorageQuery<Rv>;
890
+ };
891
+ /**
892
+ * Pallet `AuthorMapping`'s storage queries
893
+ **/
894
+ authorMapping: {
895
+ /**
896
+ * We maintain a mapping from the NimbusIds used in the consensus layer
897
+ * to the AccountIds runtime.
898
+ *
899
+ * @param {NimbusPrimitivesNimbusCryptoPublic} arg
900
+ * @param {Callback<PalletAuthorMappingRegistrationInfo | undefined> =} callback
901
+ **/
902
+ mappingWithDeposit: GenericStorageQuery<
903
+ Rv,
904
+ (arg: NimbusPrimitivesNimbusCryptoPublic) => PalletAuthorMappingRegistrationInfo | undefined,
905
+ NimbusPrimitivesNimbusCryptoPublic
906
+ >;
907
+
908
+ /**
909
+ * We maintain a reverse mapping from AccountIds to NimbusIDS
910
+ *
911
+ * @param {AccountId20Like} arg
912
+ * @param {Callback<NimbusPrimitivesNimbusCryptoPublic | undefined> =} callback
913
+ **/
914
+ nimbusLookup: GenericStorageQuery<
915
+ Rv,
916
+ (arg: AccountId20Like) => NimbusPrimitivesNimbusCryptoPublic | undefined,
917
+ AccountId20
918
+ >;
919
+
920
+ /**
921
+ * Generic pallet storage query
922
+ **/
923
+ [storage: string]: GenericStorageQuery<Rv>;
924
+ };
925
+ /**
926
+ * Pallet `MoonbeamOrbiters`'s storage queries
927
+ **/
928
+ moonbeamOrbiters: {
929
+ /**
930
+ * Account lookup override
931
+ *
932
+ * @param {AccountId20Like} arg
933
+ * @param {Callback<AccountId20 | undefined | undefined> =} callback
934
+ **/
935
+ accountLookupOverride: GenericStorageQuery<
936
+ Rv,
937
+ (arg: AccountId20Like) => AccountId20 | undefined | undefined,
938
+ AccountId20
939
+ >;
940
+
941
+ /**
942
+ * Current orbiters, with their "parent" collator
943
+ *
944
+ * @param {AccountId20Like} arg
945
+ * @param {Callback<PalletMoonbeamOrbitersCollatorPoolInfo | undefined> =} callback
946
+ **/
947
+ collatorsPool: GenericStorageQuery<
948
+ Rv,
949
+ (arg: AccountId20Like) => PalletMoonbeamOrbitersCollatorPoolInfo | undefined,
950
+ AccountId20
951
+ >;
952
+
953
+ /**
954
+ * Counter for the related counted storage map
955
+ *
956
+ * @param {Callback<number> =} callback
957
+ **/
958
+ counterForCollatorsPool: GenericStorageQuery<Rv, () => number>;
959
+
960
+ /**
961
+ * Current round index
962
+ *
963
+ * @param {Callback<number> =} callback
964
+ **/
965
+ currentRound: GenericStorageQuery<Rv, () => number>;
966
+
967
+ /**
968
+ * If true, it forces the rotation at the next round.
969
+ * A use case: when changing RotatePeriod, you need a migration code that sets this value to
970
+ * true to avoid holes in OrbiterPerRound.
971
+ *
972
+ * @param {Callback<boolean> =} callback
973
+ **/
974
+ forceRotation: GenericStorageQuery<Rv, () => boolean>;
975
+
976
+ /**
977
+ * Minimum deposit required to be registered as an orbiter
978
+ *
979
+ * @param {Callback<bigint | undefined> =} callback
980
+ **/
981
+ minOrbiterDeposit: GenericStorageQuery<Rv, () => bigint | undefined>;
982
+
983
+ /**
984
+ * Store active orbiter per round and per parent collator
985
+ *
986
+ * @param {[number, AccountId20Like]} arg
987
+ * @param {Callback<AccountId20 | undefined> =} callback
988
+ **/
989
+ orbiterPerRound: GenericStorageQuery<
990
+ Rv,
991
+ (arg: [number, AccountId20Like]) => AccountId20 | undefined,
992
+ [number, AccountId20]
993
+ >;
994
+
995
+ /**
996
+ * Check if account is an orbiter
997
+ *
998
+ * @param {AccountId20Like} arg
999
+ * @param {Callback<boolean | undefined> =} callback
1000
+ **/
1001
+ registeredOrbiter: GenericStorageQuery<Rv, (arg: AccountId20Like) => boolean | undefined, AccountId20>;
1002
+
1003
+ /**
1004
+ * Generic pallet storage query
1005
+ **/
1006
+ [storage: string]: GenericStorageQuery<Rv>;
1007
+ };
1008
+ /**
1009
+ * Pallet `Proxy`'s storage queries
1010
+ **/
1011
+ proxy: {
1012
+ /**
1013
+ * The set of account proxies. Maps the account which has delegated to the accounts
1014
+ * which are being delegated to, together with the amount held on deposit.
1015
+ *
1016
+ * @param {AccountId20Like} arg
1017
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1018
+ **/
1019
+ proxies: GenericStorageQuery<
1020
+ Rv,
1021
+ (arg: AccountId20Like) => [Array<PalletProxyProxyDefinition>, bigint],
1022
+ AccountId20
1023
+ >;
1024
+
1025
+ /**
1026
+ * The announcements made by the proxy (key).
1027
+ *
1028
+ * @param {AccountId20Like} arg
1029
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
1030
+ **/
1031
+ announcements: GenericStorageQuery<
1032
+ Rv,
1033
+ (arg: AccountId20Like) => [Array<PalletProxyAnnouncement>, bigint],
1034
+ AccountId20
1035
+ >;
1036
+
1037
+ /**
1038
+ * Generic pallet storage query
1039
+ **/
1040
+ [storage: string]: GenericStorageQuery<Rv>;
1041
+ };
1042
+ /**
1043
+ * Pallet `MaintenanceMode`'s storage queries
1044
+ **/
1045
+ maintenanceMode: {
1046
+ /**
1047
+ * Whether the site is in maintenance mode
1048
+ *
1049
+ * @param {Callback<boolean> =} callback
1050
+ **/
1051
+ maintenanceMode: GenericStorageQuery<Rv, () => boolean>;
1052
+
1053
+ /**
1054
+ * Generic pallet storage query
1055
+ **/
1056
+ [storage: string]: GenericStorageQuery<Rv>;
1057
+ };
1058
+ /**
1059
+ * Pallet `Identity`'s storage queries
1060
+ **/
1061
+ identity: {
1062
+ /**
1063
+ * Information that is pertinent to identify the entity behind an account.
1064
+ *
1065
+ * TWOX-NOTE: OK `AccountId` is a secure hash.
1066
+ *
1067
+ * @param {AccountId20Like} arg
1068
+ * @param {Callback<PalletIdentityRegistration | undefined> =} callback
1069
+ **/
1070
+ identityOf: GenericStorageQuery<Rv, (arg: AccountId20Like) => PalletIdentityRegistration | undefined, AccountId20>;
1071
+
1072
+ /**
1073
+ * The super-identity of an alternative "sub" identity together with its name, within that
1074
+ * context. If the account is not some other account's sub-identity, then just `None`.
1075
+ *
1076
+ * @param {AccountId20Like} arg
1077
+ * @param {Callback<[AccountId20, Data] | undefined> =} callback
1078
+ **/
1079
+ superOf: GenericStorageQuery<Rv, (arg: AccountId20Like) => [AccountId20, Data] | undefined, AccountId20>;
1080
+
1081
+ /**
1082
+ * Alternative "sub" identities of this account.
1083
+ *
1084
+ * The first item is the deposit, the second is a vector of the accounts.
1085
+ *
1086
+ * TWOX-NOTE: OK `AccountId` is a secure hash.
1087
+ *
1088
+ * @param {AccountId20Like} arg
1089
+ * @param {Callback<[bigint, Array<AccountId20>]> =} callback
1090
+ **/
1091
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId20Like) => [bigint, Array<AccountId20>], AccountId20>;
1092
+
1093
+ /**
1094
+ * The set of registrars. Not expected to get very big as can only be added through a
1095
+ * special origin (likely a council motion).
1096
+ *
1097
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1098
+ *
1099
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1100
+ **/
1101
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1102
+
1103
+ /**
1104
+ * Generic pallet storage query
1105
+ **/
1106
+ [storage: string]: GenericStorageQuery<Rv>;
1107
+ };
1108
+ /**
1109
+ * Pallet `Migrations`'s storage queries
1110
+ **/
1111
+ migrations: {
1112
+ /**
1113
+ * True if all required migrations have completed
1114
+ *
1115
+ * @param {Callback<boolean> =} callback
1116
+ **/
1117
+ fullyUpgraded: GenericStorageQuery<Rv, () => boolean>;
1118
+
1119
+ /**
1120
+ * MigrationState tracks the progress of a migration.
1121
+ * Maps name (Vec<u8>) -> whether or not migration has been completed (bool)
1122
+ *
1123
+ * @param {BytesLike} arg
1124
+ * @param {Callback<boolean> =} callback
1125
+ **/
1126
+ migrationState: GenericStorageQuery<Rv, (arg: BytesLike) => boolean, Bytes>;
1127
+
1128
+ /**
1129
+ * Temporary value that is set to true at the beginning of the block during which the execution
1130
+ * of xcm messages must be paused.
1131
+ *
1132
+ * @param {Callback<boolean> =} callback
1133
+ **/
1134
+ shouldPauseXcm: GenericStorageQuery<Rv, () => boolean>;
1135
+
1136
+ /**
1137
+ * Generic pallet storage query
1138
+ **/
1139
+ [storage: string]: GenericStorageQuery<Rv>;
1140
+ };
1141
+ /**
1142
+ * Pallet `Multisig`'s storage queries
1143
+ **/
1144
+ multisig: {
1145
+ /**
1146
+ * The set of open multisig operations.
1147
+ *
1148
+ * @param {[AccountId20Like, FixedBytes<32>]} arg
1149
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
1150
+ **/
1151
+ multisigs: GenericStorageQuery<
1152
+ Rv,
1153
+ (arg: [AccountId20Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
1154
+ [AccountId20, FixedBytes<32>]
1155
+ >;
1156
+
1157
+ /**
1158
+ * Generic pallet storage query
1159
+ **/
1160
+ [storage: string]: GenericStorageQuery<Rv>;
1161
+ };
1162
+ /**
1163
+ * Pallet `MoonbeamLazyMigrations`'s storage queries
1164
+ **/
1165
+ moonbeamLazyMigrations: {
1166
+ /**
1167
+ * If true, it means that LocalAssets storage has been removed.
1168
+ *
1169
+ * @param {Callback<boolean> =} callback
1170
+ **/
1171
+ localAssetsMigrationCompleted: GenericStorageQuery<Rv, () => boolean>;
1172
+
1173
+ /**
1174
+ * If true, it means that Democracy funds have been unlocked.
1175
+ *
1176
+ * @param {Callback<boolean> =} callback
1177
+ **/
1178
+ democracyLocksMigrationCompleted: GenericStorageQuery<Rv, () => boolean>;
1179
+
1180
+ /**
1181
+ * The total number of suicided contracts that were removed
1182
+ *
1183
+ * @param {Callback<number> =} callback
1184
+ **/
1185
+ suicidedContractsRemoved: GenericStorageQuery<Rv, () => number>;
1186
+
1187
+ /**
1188
+ * Generic pallet storage query
1189
+ **/
1190
+ [storage: string]: GenericStorageQuery<Rv>;
1191
+ };
1192
+ /**
1193
+ * Pallet `EthereumChainId`'s storage queries
1194
+ **/
1195
+ ethereumChainId: {
1196
+ /**
1197
+ * The EVM chain ID.
1198
+ *
1199
+ * @param {Callback<bigint> =} callback
1200
+ **/
1201
+ chainId: GenericStorageQuery<Rv, () => bigint>;
1202
+
1203
+ /**
1204
+ * Generic pallet storage query
1205
+ **/
1206
+ [storage: string]: GenericStorageQuery<Rv>;
1207
+ };
1208
+ /**
1209
+ * Pallet `EVM`'s storage queries
1210
+ **/
1211
+ evm: {
1212
+ /**
1213
+ *
1214
+ * @param {H160} arg
1215
+ * @param {Callback<Bytes> =} callback
1216
+ **/
1217
+ accountCodes: GenericStorageQuery<Rv, (arg: H160) => Bytes, H160>;
1218
+
1219
+ /**
1220
+ *
1221
+ * @param {H160} arg
1222
+ * @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
1223
+ **/
1224
+ accountCodesMetadata: GenericStorageQuery<Rv, (arg: H160) => PalletEvmCodeMetadata | undefined, H160>;
1225
+
1226
+ /**
1227
+ *
1228
+ * @param {[H160, H256]} arg
1229
+ * @param {Callback<H256> =} callback
1230
+ **/
1231
+ accountStorages: GenericStorageQuery<Rv, (arg: [H160, H256]) => H256, [H160, H256]>;
1232
+
1233
+ /**
1234
+ *
1235
+ * @param {H160} arg
1236
+ * @param {Callback<[] | undefined> =} callback
1237
+ **/
1238
+ suicided: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
1239
+
1240
+ /**
1241
+ * Generic pallet storage query
1242
+ **/
1243
+ [storage: string]: GenericStorageQuery<Rv>;
1244
+ };
1245
+ /**
1246
+ * Pallet `Ethereum`'s storage queries
1247
+ **/
1248
+ ethereum: {
1249
+ /**
1250
+ * Current building block's transactions and receipts.
1251
+ *
1252
+ * @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
1253
+ **/
1254
+ pending: GenericStorageQuery<
1255
+ Rv,
1256
+ () => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>
1257
+ >;
1258
+
1259
+ /**
1260
+ * The current Ethereum block.
1261
+ *
1262
+ * @param {Callback<EthereumBlock | undefined> =} callback
1263
+ **/
1264
+ currentBlock: GenericStorageQuery<Rv, () => EthereumBlock | undefined>;
1265
+
1266
+ /**
1267
+ * The current Ethereum receipts.
1268
+ *
1269
+ * @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
1270
+ **/
1271
+ currentReceipts: GenericStorageQuery<Rv, () => Array<EthereumReceiptReceiptV3> | undefined>;
1272
+
1273
+ /**
1274
+ * The current transaction statuses.
1275
+ *
1276
+ * @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
1277
+ **/
1278
+ currentTransactionStatuses: GenericStorageQuery<Rv, () => Array<FpRpcTransactionStatus> | undefined>;
1279
+
1280
+ /**
1281
+ *
1282
+ * @param {U256} arg
1283
+ * @param {Callback<H256> =} callback
1284
+ **/
1285
+ blockHash: GenericStorageQuery<Rv, (arg: U256) => H256, U256>;
1286
+
1287
+ /**
1288
+ * Generic pallet storage query
1289
+ **/
1290
+ [storage: string]: GenericStorageQuery<Rv>;
1291
+ };
1292
+ /**
1293
+ * Pallet `Scheduler`'s storage queries
1294
+ **/
1295
+ scheduler: {
1296
+ /**
1297
+ *
1298
+ * @param {Callback<number | undefined> =} callback
1299
+ **/
1300
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
1301
+
1302
+ /**
1303
+ * Items to be executed, indexed by the block number that they should be executed on.
1304
+ *
1305
+ * @param {number} arg
1306
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
1307
+ **/
1308
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
1309
+
1310
+ /**
1311
+ * Lookup from a name to the block number and index of the task.
1312
+ *
1313
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1314
+ * identities.
1315
+ *
1316
+ * @param {FixedBytes<32>} arg
1317
+ * @param {Callback<[number, number] | undefined> =} callback
1318
+ **/
1319
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
1320
+
1321
+ /**
1322
+ * Generic pallet storage query
1323
+ **/
1324
+ [storage: string]: GenericStorageQuery<Rv>;
1325
+ };
1326
+ /**
1327
+ * Pallet `Democracy`'s storage queries
1328
+ **/
1329
+ democracy: {
1330
+ /**
1331
+ * The number of (public) proposals that have been made so far.
1332
+ *
1333
+ * @param {Callback<number> =} callback
1334
+ **/
1335
+ publicPropCount: GenericStorageQuery<Rv, () => number>;
1336
+
1337
+ /**
1338
+ * The public proposals. Unsorted. The second item is the proposal.
1339
+ *
1340
+ * @param {Callback<Array<[number, FrameSupportPreimagesBounded, AccountId20]>> =} callback
1341
+ **/
1342
+ publicProps: GenericStorageQuery<Rv, () => Array<[number, FrameSupportPreimagesBounded, AccountId20]>>;
1343
+
1344
+ /**
1345
+ * Those who have locked a deposit.
1346
+ *
1347
+ * TWOX-NOTE: Safe, as increasing integer keys are safe.
1348
+ *
1349
+ * @param {number} arg
1350
+ * @param {Callback<[Array<AccountId20>, bigint] | undefined> =} callback
1351
+ **/
1352
+ depositOf: GenericStorageQuery<Rv, (arg: number) => [Array<AccountId20>, bigint] | undefined, number>;
1353
+
1354
+ /**
1355
+ * The next free referendum index, aka the number of referenda started so far.
1356
+ *
1357
+ * @param {Callback<number> =} callback
1358
+ **/
1359
+ referendumCount: GenericStorageQuery<Rv, () => number>;
1360
+
1361
+ /**
1362
+ * The lowest referendum index representing an unbaked referendum. Equal to
1363
+ * `ReferendumCount` if there isn't a unbaked referendum.
1364
+ *
1365
+ * @param {Callback<number> =} callback
1366
+ **/
1367
+ lowestUnbaked: GenericStorageQuery<Rv, () => number>;
1368
+
1369
+ /**
1370
+ * Information concerning any given referendum.
1371
+ *
1372
+ * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
1373
+ *
1374
+ * @param {number} arg
1375
+ * @param {Callback<PalletDemocracyReferendumInfo | undefined> =} callback
1376
+ **/
1377
+ referendumInfoOf: GenericStorageQuery<Rv, (arg: number) => PalletDemocracyReferendumInfo | undefined, number>;
1378
+
1379
+ /**
1380
+ * All votes for a particular voter. We store the balance for the number of votes that we
1381
+ * have recorded. The second item is the total amount of delegations, that will be added.
1382
+ *
1383
+ * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
1384
+ *
1385
+ * @param {AccountId20Like} arg
1386
+ * @param {Callback<PalletDemocracyVoteVoting> =} callback
1387
+ **/
1388
+ votingOf: GenericStorageQuery<Rv, (arg: AccountId20Like) => PalletDemocracyVoteVoting, AccountId20>;
1389
+
1390
+ /**
1391
+ * True if the last referendum tabled was submitted externally. False if it was a public
1392
+ * proposal.
1393
+ *
1394
+ * @param {Callback<boolean> =} callback
1395
+ **/
1396
+ lastTabledWasExternal: GenericStorageQuery<Rv, () => boolean>;
1397
+
1398
+ /**
1399
+ * The referendum to be tabled whenever it would be valid to table an external proposal.
1400
+ * This happens when a referendum needs to be tabled and one of two conditions are met:
1401
+ * - `LastTabledWasExternal` is `false`; or
1402
+ * - `PublicProps` is empty.
1403
+ *
1404
+ * @param {Callback<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined> =} callback
1405
+ **/
1406
+ nextExternal: GenericStorageQuery<
1407
+ Rv,
1408
+ () => [FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined
1409
+ >;
1410
+
1411
+ /**
1412
+ * A record of who vetoed what. Maps proposal hash to a possible existent block number
1413
+ * (until when it may not be resubmitted) and who vetoed it.
1414
+ *
1415
+ * @param {H256} arg
1416
+ * @param {Callback<[number, Array<AccountId20>] | undefined> =} callback
1417
+ **/
1418
+ blacklist: GenericStorageQuery<Rv, (arg: H256) => [number, Array<AccountId20>] | undefined, H256>;
1419
+
1420
+ /**
1421
+ * Record of all proposals that have been subject to emergency cancellation.
1422
+ *
1423
+ * @param {H256} arg
1424
+ * @param {Callback<boolean> =} callback
1425
+ **/
1426
+ cancellations: GenericStorageQuery<Rv, (arg: H256) => boolean, H256>;
1427
+
1428
+ /**
1429
+ * General information concerning any proposal or referendum.
1430
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1431
+ * dump or IPFS hash of a JSON file.
1432
+ *
1433
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1434
+ * large preimages.
1435
+ *
1436
+ * @param {PalletDemocracyMetadataOwner} arg
1437
+ * @param {Callback<H256 | undefined> =} callback
1438
+ **/
1439
+ metadataOf: GenericStorageQuery<
1440
+ Rv,
1441
+ (arg: PalletDemocracyMetadataOwner) => H256 | undefined,
1442
+ PalletDemocracyMetadataOwner
1443
+ >;
1444
+
1445
+ /**
1446
+ * Generic pallet storage query
1447
+ **/
1448
+ [storage: string]: GenericStorageQuery<Rv>;
1449
+ };
1450
+ /**
1451
+ * Pallet `Preimage`'s storage queries
1452
+ **/
1453
+ preimage: {
1454
+ /**
1455
+ * The request status of a given hash.
1456
+ *
1457
+ * @param {H256} arg
1458
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
1459
+ **/
1460
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
1461
+
1462
+ /**
1463
+ * The request status of a given hash.
1464
+ *
1465
+ * @param {H256} arg
1466
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
1467
+ **/
1468
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
1469
+
1470
+ /**
1471
+ *
1472
+ * @param {[H256, number]} arg
1473
+ * @param {Callback<Bytes | undefined> =} callback
1474
+ **/
1475
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
1476
+
1477
+ /**
1478
+ * Generic pallet storage query
1479
+ **/
1480
+ [storage: string]: GenericStorageQuery<Rv>;
1481
+ };
1482
+ /**
1483
+ * Pallet `ConvictionVoting`'s storage queries
1484
+ **/
1485
+ convictionVoting: {
1486
+ /**
1487
+ * All voting for a particular voter in a particular voting class. We store the balance for the
1488
+ * number of votes that we have recorded.
1489
+ *
1490
+ * @param {[AccountId20Like, number]} arg
1491
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
1492
+ **/
1493
+ votingFor: GenericStorageQuery<
1494
+ Rv,
1495
+ (arg: [AccountId20Like, number]) => PalletConvictionVotingVoteVoting,
1496
+ [AccountId20, number]
1497
+ >;
1498
+
1499
+ /**
1500
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
1501
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
1502
+ * this list.
1503
+ *
1504
+ * @param {AccountId20Like} arg
1505
+ * @param {Callback<Array<[number, bigint]>> =} callback
1506
+ **/
1507
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId20Like) => Array<[number, bigint]>, AccountId20>;
1508
+
1509
+ /**
1510
+ * Generic pallet storage query
1511
+ **/
1512
+ [storage: string]: GenericStorageQuery<Rv>;
1513
+ };
1514
+ /**
1515
+ * Pallet `Referenda`'s storage queries
1516
+ **/
1517
+ referenda: {
1518
+ /**
1519
+ * The next free referendum index, aka the number of referenda started so far.
1520
+ *
1521
+ * @param {Callback<number> =} callback
1522
+ **/
1523
+ referendumCount: GenericStorageQuery<Rv, () => number>;
1524
+
1525
+ /**
1526
+ * Information concerning any given referendum.
1527
+ *
1528
+ * @param {number} arg
1529
+ * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
1530
+ **/
1531
+ referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfo | undefined, number>;
1532
+
1533
+ /**
1534
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
1535
+ * conviction-weighted approvals.
1536
+ *
1537
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
1538
+ *
1539
+ * @param {number} arg
1540
+ * @param {Callback<Array<[number, bigint]>> =} callback
1541
+ **/
1542
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
1543
+
1544
+ /**
1545
+ * The number of referenda being decided currently.
1546
+ *
1547
+ * @param {number} arg
1548
+ * @param {Callback<number> =} callback
1549
+ **/
1550
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
1551
+
1552
+ /**
1553
+ * The metadata is a general information concerning the referendum.
1554
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1555
+ * dump or IPFS hash of a JSON file.
1556
+ *
1557
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1558
+ * large preimages.
1559
+ *
1560
+ * @param {number} arg
1561
+ * @param {Callback<H256 | undefined> =} callback
1562
+ **/
1563
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
1564
+
1565
+ /**
1566
+ * Generic pallet storage query
1567
+ **/
1568
+ [storage: string]: GenericStorageQuery<Rv>;
1569
+ };
1570
+ /**
1571
+ * Pallet `Whitelist`'s storage queries
1572
+ **/
1573
+ whitelist: {
1574
+ /**
1575
+ *
1576
+ * @param {H256} arg
1577
+ * @param {Callback<[] | undefined> =} callback
1578
+ **/
1579
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
1580
+
1581
+ /**
1582
+ * Generic pallet storage query
1583
+ **/
1584
+ [storage: string]: GenericStorageQuery<Rv>;
1585
+ };
1586
+ /**
1587
+ * Pallet `TreasuryCouncilCollective`'s storage queries
1588
+ **/
1589
+ treasuryCouncilCollective: {
1590
+ /**
1591
+ * The hashes of the active proposals.
1592
+ *
1593
+ * @param {Callback<Array<H256>> =} callback
1594
+ **/
1595
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
1596
+
1597
+ /**
1598
+ * Actual proposal for a given hash, if it's current.
1599
+ *
1600
+ * @param {H256} arg
1601
+ * @param {Callback<MoonbeamRuntimeRuntimeCall | undefined> =} callback
1602
+ **/
1603
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => MoonbeamRuntimeRuntimeCall | undefined, H256>;
1604
+
1605
+ /**
1606
+ * Votes on a given proposal, if it is ongoing.
1607
+ *
1608
+ * @param {H256} arg
1609
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1610
+ **/
1611
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
1612
+
1613
+ /**
1614
+ * Proposals so far.
1615
+ *
1616
+ * @param {Callback<number> =} callback
1617
+ **/
1618
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1619
+
1620
+ /**
1621
+ * The current members of the collective. This is stored sorted (just by value).
1622
+ *
1623
+ * @param {Callback<Array<AccountId20>> =} callback
1624
+ **/
1625
+ members: GenericStorageQuery<Rv, () => Array<AccountId20>>;
1626
+
1627
+ /**
1628
+ * The prime member that helps determine the default vote behavior in case of absentations.
1629
+ *
1630
+ * @param {Callback<AccountId20 | undefined> =} callback
1631
+ **/
1632
+ prime: GenericStorageQuery<Rv, () => AccountId20 | undefined>;
1633
+
1634
+ /**
1635
+ * Generic pallet storage query
1636
+ **/
1637
+ [storage: string]: GenericStorageQuery<Rv>;
1638
+ };
1639
+ /**
1640
+ * Pallet `OpenTechCommitteeCollective`'s storage queries
1641
+ **/
1642
+ openTechCommitteeCollective: {
1643
+ /**
1644
+ * The hashes of the active proposals.
1645
+ *
1646
+ * @param {Callback<Array<H256>> =} callback
1647
+ **/
1648
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
1649
+
1650
+ /**
1651
+ * Actual proposal for a given hash, if it's current.
1652
+ *
1653
+ * @param {H256} arg
1654
+ * @param {Callback<MoonbeamRuntimeRuntimeCall | undefined> =} callback
1655
+ **/
1656
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => MoonbeamRuntimeRuntimeCall | undefined, H256>;
1657
+
1658
+ /**
1659
+ * Votes on a given proposal, if it is ongoing.
1660
+ *
1661
+ * @param {H256} arg
1662
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1663
+ **/
1664
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
1665
+
1666
+ /**
1667
+ * Proposals so far.
1668
+ *
1669
+ * @param {Callback<number> =} callback
1670
+ **/
1671
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1672
+
1673
+ /**
1674
+ * The current members of the collective. This is stored sorted (just by value).
1675
+ *
1676
+ * @param {Callback<Array<AccountId20>> =} callback
1677
+ **/
1678
+ members: GenericStorageQuery<Rv, () => Array<AccountId20>>;
1679
+
1680
+ /**
1681
+ * The prime member that helps determine the default vote behavior in case of absentations.
1682
+ *
1683
+ * @param {Callback<AccountId20 | undefined> =} callback
1684
+ **/
1685
+ prime: GenericStorageQuery<Rv, () => AccountId20 | undefined>;
1686
+
1687
+ /**
1688
+ * Generic pallet storage query
1689
+ **/
1690
+ [storage: string]: GenericStorageQuery<Rv>;
1691
+ };
1692
+ /**
1693
+ * Pallet `Treasury`'s storage queries
1694
+ **/
1695
+ treasury: {
1696
+ /**
1697
+ * Number of proposals that have been made.
1698
+ *
1699
+ * @param {Callback<number> =} callback
1700
+ **/
1701
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1702
+
1703
+ /**
1704
+ * Proposals that have been made.
1705
+ *
1706
+ * @param {number} arg
1707
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1708
+ **/
1709
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
1710
+
1711
+ /**
1712
+ * The amount which has been reported as inactive to Currency.
1713
+ *
1714
+ * @param {Callback<bigint> =} callback
1715
+ **/
1716
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
1717
+
1718
+ /**
1719
+ * Proposal indices that have been approved but not yet awarded.
1720
+ *
1721
+ * @param {Callback<Array<number>> =} callback
1722
+ **/
1723
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
1724
+
1725
+ /**
1726
+ * The count of spends that have been made.
1727
+ *
1728
+ * @param {Callback<number> =} callback
1729
+ **/
1730
+ spendCount: GenericStorageQuery<Rv, () => number>;
1731
+
1732
+ /**
1733
+ * Spends that have been approved and being processed.
1734
+ *
1735
+ * @param {number} arg
1736
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
1737
+ **/
1738
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
1739
+
1740
+ /**
1741
+ * Generic pallet storage query
1742
+ **/
1743
+ [storage: string]: GenericStorageQuery<Rv>;
1744
+ };
1745
+ /**
1746
+ * Pallet `CrowdloanRewards`'s storage queries
1747
+ **/
1748
+ crowdloanRewards: {
1749
+ /**
1750
+ *
1751
+ * @param {AccountId20Like} arg
1752
+ * @param {Callback<PalletCrowdloanRewardsRewardInfo | undefined> =} callback
1753
+ **/
1754
+ accountsPayable: GenericStorageQuery<
1755
+ Rv,
1756
+ (arg: AccountId20Like) => PalletCrowdloanRewardsRewardInfo | undefined,
1757
+ AccountId20
1758
+ >;
1759
+
1760
+ /**
1761
+ *
1762
+ * @param {FixedBytes<32>} arg
1763
+ * @param {Callback<[] | undefined> =} callback
1764
+ **/
1765
+ claimedRelayChainIds: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [] | undefined, FixedBytes<32>>;
1766
+
1767
+ /**
1768
+ *
1769
+ * @param {FixedBytes<32>} arg
1770
+ * @param {Callback<PalletCrowdloanRewardsRewardInfo | undefined> =} callback
1771
+ **/
1772
+ unassociatedContributions: GenericStorageQuery<
1773
+ Rv,
1774
+ (arg: FixedBytes<32>) => PalletCrowdloanRewardsRewardInfo | undefined,
1775
+ FixedBytes<32>
1776
+ >;
1777
+
1778
+ /**
1779
+ *
1780
+ * @param {Callback<boolean> =} callback
1781
+ **/
1782
+ initialized: GenericStorageQuery<Rv, () => boolean>;
1783
+
1784
+ /**
1785
+ * Vesting block height at the initialization of the pallet
1786
+ *
1787
+ * @param {Callback<number> =} callback
1788
+ **/
1789
+ initRelayBlock: GenericStorageQuery<Rv, () => number>;
1790
+
1791
+ /**
1792
+ * Vesting block height at the initialization of the pallet
1793
+ *
1794
+ * @param {Callback<number> =} callback
1795
+ **/
1796
+ endRelayBlock: GenericStorageQuery<Rv, () => number>;
1797
+
1798
+ /**
1799
+ * Total initialized amount so far. We store this to make pallet funds == contributors reward
1800
+ * check easier and more efficient
1801
+ *
1802
+ * @param {Callback<bigint> =} callback
1803
+ **/
1804
+ initializedRewardAmount: GenericStorageQuery<Rv, () => bigint>;
1805
+
1806
+ /**
1807
+ * Total number of contributors to aid hinting benchmarking
1808
+ *
1809
+ * @param {Callback<number> =} callback
1810
+ **/
1811
+ totalContributors: GenericStorageQuery<Rv, () => number>;
1812
+
1813
+ /**
1814
+ * Generic pallet storage query
1815
+ **/
1816
+ [storage: string]: GenericStorageQuery<Rv>;
1817
+ };
1818
+ /**
1819
+ * Pallet `XcmpQueue`'s storage queries
1820
+ **/
1821
+ xcmpQueue: {
1822
+ /**
1823
+ * Status of the inbound XCMP channels.
1824
+ *
1825
+ * @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
1826
+ **/
1827
+ inboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
1828
+
1829
+ /**
1830
+ * Inbound aggregate XCMP messages. It can only be one per ParaId/block.
1831
+ *
1832
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1833
+ * @param {Callback<Bytes> =} callback
1834
+ **/
1835
+ inboundXcmpMessages: GenericStorageQuery<
1836
+ Rv,
1837
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
1838
+ [PolkadotParachainPrimitivesPrimitivesId, number]
1839
+ >;
1840
+
1841
+ /**
1842
+ * The non-empty XCMP channels in order of becoming non-empty, and the index of the first
1843
+ * and last outbound message. If the two indices are equal, then it indicates an empty
1844
+ * queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
1845
+ * than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
1846
+ * case of the need to send a high-priority signal message this block.
1847
+ * The bool is true if there is a signal message waiting to be sent.
1848
+ *
1849
+ * @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
1850
+ **/
1851
+ outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
1852
+
1853
+ /**
1854
+ * The messages outbound in a given XCMP channel.
1855
+ *
1856
+ * @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
1857
+ * @param {Callback<Bytes> =} callback
1858
+ **/
1859
+ outboundXcmpMessages: GenericStorageQuery<
1860
+ Rv,
1861
+ (arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
1862
+ [PolkadotParachainPrimitivesPrimitivesId, number]
1863
+ >;
1864
+
1865
+ /**
1866
+ * Any signal messages waiting to be sent.
1867
+ *
1868
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1869
+ * @param {Callback<Bytes> =} callback
1870
+ **/
1871
+ signalMessages: GenericStorageQuery<
1872
+ Rv,
1873
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
1874
+ PolkadotParachainPrimitivesPrimitivesId
1875
+ >;
1876
+
1877
+ /**
1878
+ * The configuration which controls the dynamics of the outbound queue.
1879
+ *
1880
+ * @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
1881
+ **/
1882
+ queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
1883
+
1884
+ /**
1885
+ * The messages that exceeded max individual message weight budget.
1886
+ *
1887
+ * These message stay in this storage map until they are manually dispatched via
1888
+ * `service_overweight`.
1889
+ *
1890
+ * @param {bigint} arg
1891
+ * @param {Callback<[PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined> =} callback
1892
+ **/
1893
+ overweight: GenericStorageQuery<
1894
+ Rv,
1895
+ (arg: bigint) => [PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined,
1896
+ bigint
1897
+ >;
1898
+
1899
+ /**
1900
+ * Counter for the related counted storage map
1901
+ *
1902
+ * @param {Callback<number> =} callback
1903
+ **/
1904
+ counterForOverweight: GenericStorageQuery<Rv, () => number>;
1905
+
1906
+ /**
1907
+ * The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
1908
+ * available free overweight index.
1909
+ *
1910
+ * @param {Callback<bigint> =} callback
1911
+ **/
1912
+ overweightCount: GenericStorageQuery<Rv, () => bigint>;
1913
+
1914
+ /**
1915
+ * Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
1916
+ *
1917
+ * @param {Callback<boolean> =} callback
1918
+ **/
1919
+ queueSuspended: GenericStorageQuery<Rv, () => boolean>;
1920
+
1921
+ /**
1922
+ * The factor to multiply the base delivery fee by.
1923
+ *
1924
+ * @param {PolkadotParachainPrimitivesPrimitivesId} arg
1925
+ * @param {Callback<FixedU128> =} callback
1926
+ **/
1927
+ deliveryFeeFactor: GenericStorageQuery<
1928
+ Rv,
1929
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
1930
+ PolkadotParachainPrimitivesPrimitivesId
1931
+ >;
1932
+
1933
+ /**
1934
+ * Generic pallet storage query
1935
+ **/
1936
+ [storage: string]: GenericStorageQuery<Rv>;
1937
+ };
1938
+ /**
1939
+ * Pallet `DmpQueue`'s storage queries
1940
+ **/
1941
+ dmpQueue: {
1942
+ /**
1943
+ * The configuration.
1944
+ *
1945
+ * @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
1946
+ **/
1947
+ configuration: GenericStorageQuery<Rv, () => CumulusPalletDmpQueueConfigData>;
1948
+
1949
+ /**
1950
+ * The page index.
1951
+ *
1952
+ * @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
1953
+ **/
1954
+ pageIndex: GenericStorageQuery<Rv, () => CumulusPalletDmpQueuePageIndexData>;
1955
+
1956
+ /**
1957
+ * The queue pages.
1958
+ *
1959
+ * @param {number} arg
1960
+ * @param {Callback<Array<[number, Bytes]>> =} callback
1961
+ **/
1962
+ pages: GenericStorageQuery<Rv, (arg: number) => Array<[number, Bytes]>, number>;
1963
+
1964
+ /**
1965
+ * The overweight messages.
1966
+ *
1967
+ * @param {bigint} arg
1968
+ * @param {Callback<[number, Bytes] | undefined> =} callback
1969
+ **/
1970
+ overweight: GenericStorageQuery<Rv, (arg: bigint) => [number, Bytes] | undefined, bigint>;
1971
+
1972
+ /**
1973
+ * Counter for the related counted storage map
1974
+ *
1975
+ * @param {Callback<number> =} callback
1976
+ **/
1977
+ counterForOverweight: GenericStorageQuery<Rv, () => number>;
1978
+
1979
+ /**
1980
+ * Generic pallet storage query
1981
+ **/
1982
+ [storage: string]: GenericStorageQuery<Rv>;
1983
+ };
1984
+ /**
1985
+ * Pallet `PolkadotXcm`'s storage queries
1986
+ **/
1987
+ polkadotXcm: {
1988
+ /**
1989
+ * The latest available query index.
1990
+ *
1991
+ * @param {Callback<bigint> =} callback
1992
+ **/
1993
+ queryCounter: GenericStorageQuery<Rv, () => bigint>;
1994
+
1995
+ /**
1996
+ * The ongoing queries.
1997
+ *
1998
+ * @param {bigint} arg
1999
+ * @param {Callback<PalletXcmQueryStatus | undefined> =} callback
2000
+ **/
2001
+ queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
2002
+
2003
+ /**
2004
+ * The existing asset traps.
2005
+ *
2006
+ * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
2007
+ * times this pair has been trapped (usually just 1 if it exists at all).
2008
+ *
2009
+ * @param {H256} arg
2010
+ * @param {Callback<number> =} callback
2011
+ **/
2012
+ assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
2013
+
2014
+ /**
2015
+ * Default version to encode XCM when latest version of destination is unknown. If `None`,
2016
+ * then the destinations whose XCM version is unknown are considered unreachable.
2017
+ *
2018
+ * @param {Callback<number | undefined> =} callback
2019
+ **/
2020
+ safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
2021
+
2022
+ /**
2023
+ * The Latest versions that we know various locations support.
2024
+ *
2025
+ * @param {[number, XcmVersionedMultiLocation]} arg
2026
+ * @param {Callback<number | undefined> =} callback
2027
+ **/
2028
+ supportedVersion: GenericStorageQuery<
2029
+ Rv,
2030
+ (arg: [number, XcmVersionedMultiLocation]) => number | undefined,
2031
+ [number, XcmVersionedMultiLocation]
2032
+ >;
2033
+
2034
+ /**
2035
+ * All locations that we have requested version notifications from.
2036
+ *
2037
+ * @param {[number, XcmVersionedMultiLocation]} arg
2038
+ * @param {Callback<bigint | undefined> =} callback
2039
+ **/
2040
+ versionNotifiers: GenericStorageQuery<
2041
+ Rv,
2042
+ (arg: [number, XcmVersionedMultiLocation]) => bigint | undefined,
2043
+ [number, XcmVersionedMultiLocation]
2044
+ >;
2045
+
2046
+ /**
2047
+ * The target locations that are subscribed to our version changes, as well as the most recent
2048
+ * of our versions we informed them of.
2049
+ *
2050
+ * @param {[number, XcmVersionedMultiLocation]} arg
2051
+ * @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
2052
+ **/
2053
+ versionNotifyTargets: GenericStorageQuery<
2054
+ Rv,
2055
+ (arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
2056
+ [number, XcmVersionedMultiLocation]
2057
+ >;
2058
+
2059
+ /**
2060
+ * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
2061
+ * the `u32` counter is the number of times that a send to the destination has been attempted,
2062
+ * which is used as a prioritization.
2063
+ *
2064
+ * @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
2065
+ **/
2066
+ versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedMultiLocation, number]>>;
2067
+
2068
+ /**
2069
+ * The current migration's stage, if any.
2070
+ *
2071
+ * @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
2072
+ **/
2073
+ currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
2074
+
2075
+ /**
2076
+ * Fungible assets which we know are locked on a remote chain.
2077
+ *
2078
+ * @param {[number, AccountId20Like, XcmVersionedAssetId]} arg
2079
+ * @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
2080
+ **/
2081
+ remoteLockedFungibles: GenericStorageQuery<
2082
+ Rv,
2083
+ (arg: [number, AccountId20Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
2084
+ [number, AccountId20, XcmVersionedAssetId]
2085
+ >;
2086
+
2087
+ /**
2088
+ * Fungible assets which we know are locked on this chain.
2089
+ *
2090
+ * @param {AccountId20Like} arg
2091
+ * @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
2092
+ **/
2093
+ lockedFungibles: GenericStorageQuery<
2094
+ Rv,
2095
+ (arg: AccountId20Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined,
2096
+ AccountId20
2097
+ >;
2098
+
2099
+ /**
2100
+ * Global suspension state of the XCM executor.
2101
+ *
2102
+ * @param {Callback<boolean> =} callback
2103
+ **/
2104
+ xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
2105
+
2106
+ /**
2107
+ * Generic pallet storage query
2108
+ **/
2109
+ [storage: string]: GenericStorageQuery<Rv>;
2110
+ };
2111
+ /**
2112
+ * Pallet `Assets`'s storage queries
2113
+ **/
2114
+ assets: {
2115
+ /**
2116
+ * Details of an asset.
2117
+ *
2118
+ * @param {bigint} arg
2119
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
2120
+ **/
2121
+ asset: GenericStorageQuery<Rv, (arg: bigint) => PalletAssetsAssetDetails | undefined, bigint>;
2122
+
2123
+ /**
2124
+ * The holdings of a specific account for a specific asset.
2125
+ *
2126
+ * @param {[bigint, AccountId20Like]} arg
2127
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
2128
+ **/
2129
+ account: GenericStorageQuery<
2130
+ Rv,
2131
+ (arg: [bigint, AccountId20Like]) => PalletAssetsAssetAccount | undefined,
2132
+ [bigint, AccountId20]
2133
+ >;
2134
+
2135
+ /**
2136
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
2137
+ * is the amount of `T::Currency` reserved for storing this.
2138
+ * First key is the asset ID, second key is the owner and third key is the delegate.
2139
+ *
2140
+ * @param {[bigint, AccountId20Like, AccountId20Like]} arg
2141
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
2142
+ **/
2143
+ approvals: GenericStorageQuery<
2144
+ Rv,
2145
+ (arg: [bigint, AccountId20Like, AccountId20Like]) => PalletAssetsApproval | undefined,
2146
+ [bigint, AccountId20, AccountId20]
2147
+ >;
2148
+
2149
+ /**
2150
+ * Metadata of an asset.
2151
+ *
2152
+ * @param {bigint} arg
2153
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
2154
+ **/
2155
+ metadata: GenericStorageQuery<Rv, (arg: bigint) => PalletAssetsAssetMetadata, bigint>;
2156
+
2157
+ /**
2158
+ * Generic pallet storage query
2159
+ **/
2160
+ [storage: string]: GenericStorageQuery<Rv>;
2161
+ };
2162
+ /**
2163
+ * Pallet `AssetManager`'s storage queries
2164
+ **/
2165
+ assetManager: {
2166
+ /**
2167
+ * Mapping from an asset id to asset type.
2168
+ * This is mostly used when receiving transaction specifying an asset directly,
2169
+ * like transferring an asset from this chain to another.
2170
+ *
2171
+ * @param {bigint} arg
2172
+ * @param {Callback<MoonbeamRuntimeXcmConfigAssetType | undefined> =} callback
2173
+ **/
2174
+ assetIdType: GenericStorageQuery<Rv, (arg: bigint) => MoonbeamRuntimeXcmConfigAssetType | undefined, bigint>;
2175
+
2176
+ /**
2177
+ * Reverse mapping of AssetIdType. Mapping from an asset type to an asset id.
2178
+ * This is mostly used when receiving a multilocation XCM message to retrieve
2179
+ * the corresponding asset in which tokens should me minted.
2180
+ *
2181
+ * @param {MoonbeamRuntimeXcmConfigAssetType} arg
2182
+ * @param {Callback<bigint | undefined> =} callback
2183
+ **/
2184
+ assetTypeId: GenericStorageQuery<
2185
+ Rv,
2186
+ (arg: MoonbeamRuntimeXcmConfigAssetType) => bigint | undefined,
2187
+ MoonbeamRuntimeXcmConfigAssetType
2188
+ >;
2189
+
2190
+ /**
2191
+ * Stores the units per second for local execution for a AssetType.
2192
+ * This is used to know how to charge for XCM execution in a particular
2193
+ * asset
2194
+ * Not all assets might contain units per second, hence the different storage
2195
+ *
2196
+ * @param {MoonbeamRuntimeXcmConfigAssetType} arg
2197
+ * @param {Callback<bigint | undefined> =} callback
2198
+ **/
2199
+ assetTypeUnitsPerSecond: GenericStorageQuery<
2200
+ Rv,
2201
+ (arg: MoonbeamRuntimeXcmConfigAssetType) => bigint | undefined,
2202
+ MoonbeamRuntimeXcmConfigAssetType
2203
+ >;
2204
+
2205
+ /**
2206
+ * Stores the counter of the number of local assets that have been
2207
+ * created so far
2208
+ * This value can be used to salt the creation of an assetId, e.g.,
2209
+ * by hashing it. This is particularly useful for cases like moonbeam
2210
+ * where letting users choose their assetId would result in collision
2211
+ * in the evm side.
2212
+ *
2213
+ * @param {Callback<bigint> =} callback
2214
+ **/
2215
+ localAssetCounter: GenericStorageQuery<Rv, () => bigint>;
2216
+
2217
+ /**
2218
+ * Local asset deposits, a mapping from assetId to a struct
2219
+ * holding the creator (from which the deposit was reserved) and
2220
+ * the deposit amount
2221
+ *
2222
+ * @param {bigint} arg
2223
+ * @param {Callback<PalletAssetManagerAssetInfo | undefined> =} callback
2224
+ **/
2225
+ localAssetDeposit: GenericStorageQuery<Rv, (arg: bigint) => PalletAssetManagerAssetInfo | undefined, bigint>;
2226
+
2227
+ /**
2228
+ *
2229
+ * @param {Callback<Array<MoonbeamRuntimeXcmConfigAssetType>> =} callback
2230
+ **/
2231
+ supportedFeePaymentAssets: GenericStorageQuery<Rv, () => Array<MoonbeamRuntimeXcmConfigAssetType>>;
2232
+
2233
+ /**
2234
+ * Generic pallet storage query
2235
+ **/
2236
+ [storage: string]: GenericStorageQuery<Rv>;
2237
+ };
2238
+ /**
2239
+ * Pallet `XTokens`'s storage queries
2240
+ **/
2241
+ xTokens: {
2242
+ /**
2243
+ * Generic pallet storage query
2244
+ **/
2245
+ [storage: string]: GenericStorageQuery<Rv>;
2246
+ };
2247
+ /**
2248
+ * Pallet `XcmTransactor`'s storage queries
2249
+ **/
2250
+ xcmTransactor: {
2251
+ /**
2252
+ * Since we are using pallet-utility for account derivation (through AsDerivative),
2253
+ * we need to provide an index for the account derivation. This storage item stores the index
2254
+ * assigned for a given local account. These indices are usable as derivative in the relay chain
2255
+ *
2256
+ * @param {number} arg
2257
+ * @param {Callback<AccountId20 | undefined> =} callback
2258
+ **/
2259
+ indexToAccount: GenericStorageQuery<Rv, (arg: number) => AccountId20 | undefined, number>;
2260
+
2261
+ /**
2262
+ * Stores the transact info of a MultiLocation. This defines how much extra weight we need to
2263
+ * add when we want to transact in the destination chain and maximum amount of weight allowed
2264
+ * by the destination chain
2265
+ *
2266
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
2267
+ * @param {Callback<PalletXcmTransactorRemoteTransactInfoWithMaxWeight | undefined> =} callback
2268
+ **/
2269
+ transactInfoWithWeightLimit: GenericStorageQuery<
2270
+ Rv,
2271
+ (arg: StagingXcmV3MultilocationMultiLocation) => PalletXcmTransactorRemoteTransactInfoWithMaxWeight | undefined,
2272
+ StagingXcmV3MultilocationMultiLocation
2273
+ >;
2274
+
2275
+ /**
2276
+ * Stores the fee per second for an asset in its reserve chain. This allows us to convert
2277
+ * from weight to fee
2278
+ *
2279
+ * @param {StagingXcmV3MultilocationMultiLocation} arg
2280
+ * @param {Callback<bigint | undefined> =} callback
2281
+ **/
2282
+ destinationAssetFeePerSecond: GenericStorageQuery<
2283
+ Rv,
2284
+ (arg: StagingXcmV3MultilocationMultiLocation) => bigint | undefined,
2285
+ StagingXcmV3MultilocationMultiLocation
2286
+ >;
2287
+
2288
+ /**
2289
+ * Stores the indices of relay chain pallets
2290
+ *
2291
+ * @param {Callback<PalletXcmTransactorRelayIndicesRelayChainIndices> =} callback
2292
+ **/
2293
+ relayIndices: GenericStorageQuery<Rv, () => PalletXcmTransactorRelayIndicesRelayChainIndices>;
2294
+
2295
+ /**
2296
+ * Generic pallet storage query
2297
+ **/
2298
+ [storage: string]: GenericStorageQuery<Rv>;
2299
+ };
2300
+ /**
2301
+ * Pallet `EthereumXcm`'s storage queries
2302
+ **/
2303
+ ethereumXcm: {
2304
+ /**
2305
+ * Global nonce used for building Ethereum transaction payload.
2306
+ *
2307
+ * @param {Callback<U256> =} callback
2308
+ **/
2309
+ nonce: GenericStorageQuery<Rv, () => U256>;
2310
+
2311
+ /**
2312
+ * Whether or not Ethereum-XCM is suspended from executing
2313
+ *
2314
+ * @param {Callback<boolean> =} callback
2315
+ **/
2316
+ ethereumXcmSuspended: GenericStorageQuery<Rv, () => boolean>;
2317
+
2318
+ /**
2319
+ * Generic pallet storage query
2320
+ **/
2321
+ [storage: string]: GenericStorageQuery<Rv>;
2322
+ };
2323
+ /**
2324
+ * Pallet `Randomness`'s storage queries
2325
+ **/
2326
+ randomness: {
2327
+ /**
2328
+ * Randomness requests not yet fulfilled or purged
2329
+ *
2330
+ * @param {bigint} arg
2331
+ * @param {Callback<PalletRandomnessRequestState | undefined> =} callback
2332
+ **/
2333
+ requests: GenericStorageQuery<Rv, (arg: bigint) => PalletRandomnessRequestState | undefined, bigint>;
2334
+
2335
+ /**
2336
+ * Number of randomness requests made so far, used to generate the next request's uid
2337
+ *
2338
+ * @param {Callback<bigint> =} callback
2339
+ **/
2340
+ requestCount: GenericStorageQuery<Rv, () => bigint>;
2341
+
2342
+ /**
2343
+ * Current local per-block VRF randomness
2344
+ * Set in `on_initialize`
2345
+ *
2346
+ * @param {Callback<H256 | undefined> =} callback
2347
+ **/
2348
+ localVrfOutput: GenericStorageQuery<Rv, () => H256 | undefined>;
2349
+
2350
+ /**
2351
+ * Relay epoch
2352
+ *
2353
+ * @param {Callback<bigint> =} callback
2354
+ **/
2355
+ relayEpoch: GenericStorageQuery<Rv, () => bigint>;
2356
+
2357
+ /**
2358
+ * Ensures the mandatory inherent was included in the block
2359
+ *
2360
+ * @param {Callback<[] | undefined> =} callback
2361
+ **/
2362
+ inherentIncluded: GenericStorageQuery<Rv, () => [] | undefined>;
2363
+
2364
+ /**
2365
+ * Records whether this is the first block (genesis or runtime upgrade)
2366
+ *
2367
+ * @param {Callback<[] | undefined> =} callback
2368
+ **/
2369
+ notFirstBlock: GenericStorageQuery<Rv, () => [] | undefined>;
2370
+
2371
+ /**
2372
+ * Snapshot of randomness to fulfill all requests that are for the same raw randomness
2373
+ * Removed once $value.request_count == 0
2374
+ *
2375
+ * @param {PalletRandomnessRequestType} arg
2376
+ * @param {Callback<PalletRandomnessRandomnessResult | undefined> =} callback
2377
+ **/
2378
+ randomnessResults: GenericStorageQuery<
2379
+ Rv,
2380
+ (arg: PalletRandomnessRequestType) => PalletRandomnessRandomnessResult | undefined,
2381
+ PalletRandomnessRequestType
2382
+ >;
2383
+
2384
+ /**
2385
+ * Previous local per-block VRF randomness
2386
+ * Set in `on_finalize` of last block
2387
+ *
2388
+ * @param {Callback<H256> =} callback
2389
+ **/
2390
+ previousLocalVrfOutput: GenericStorageQuery<Rv, () => H256>;
2391
+
2392
+ /**
2393
+ * Generic pallet storage query
2394
+ **/
2395
+ [storage: string]: GenericStorageQuery<Rv>;
2396
+ };
2027
2397
  }