@dedot/chaintypes 0.0.1-alpha.22

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