@dedot/api 0.0.1-alpha.32

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 (202) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/chaintypes/index.d.ts +1 -0
  4. package/chaintypes/index.js +1 -0
  5. package/chaintypes/substrate/consts.d.ts +2132 -0
  6. package/chaintypes/substrate/consts.js +2 -0
  7. package/chaintypes/substrate/errors.d.ts +3490 -0
  8. package/chaintypes/substrate/errors.js +2 -0
  9. package/chaintypes/substrate/events.d.ts +5187 -0
  10. package/chaintypes/substrate/events.js +2 -0
  11. package/chaintypes/substrate/index.d.ts +22 -0
  12. package/chaintypes/substrate/index.js +2 -0
  13. package/chaintypes/substrate/json-rpc.d.ts +3 -0
  14. package/chaintypes/substrate/json-rpc.js +2 -0
  15. package/chaintypes/substrate/query.d.ts +3829 -0
  16. package/chaintypes/substrate/query.js +2 -0
  17. package/chaintypes/substrate/runtime.d.ts +850 -0
  18. package/chaintypes/substrate/runtime.js +2 -0
  19. package/chaintypes/substrate/tx.d.ts +14269 -0
  20. package/chaintypes/substrate/tx.js +2 -0
  21. package/chaintypes/substrate/types.d.ts +30457 -0
  22. package/chaintypes/substrate/types.js +2 -0
  23. package/cjs/chaintypes/index.js +17 -0
  24. package/cjs/chaintypes/substrate/consts.js +3 -0
  25. package/cjs/chaintypes/substrate/errors.js +3 -0
  26. package/cjs/chaintypes/substrate/events.js +3 -0
  27. package/cjs/chaintypes/substrate/index.js +18 -0
  28. package/cjs/chaintypes/substrate/json-rpc.js +3 -0
  29. package/cjs/chaintypes/substrate/query.js +3 -0
  30. package/cjs/chaintypes/substrate/runtime.js +3 -0
  31. package/cjs/chaintypes/substrate/tx.js +3 -0
  32. package/cjs/chaintypes/substrate/types.js +3 -0
  33. package/cjs/client/BaseSubstrateClient.js +257 -0
  34. package/cjs/client/Dedot.js +250 -0
  35. package/cjs/client/DedotClient.js +186 -0
  36. package/cjs/client/index.js +18 -0
  37. package/cjs/executor/ConstantExecutor.js +20 -0
  38. package/cjs/executor/ErrorExecutor.js +46 -0
  39. package/cjs/executor/EventExecutor.js +52 -0
  40. package/cjs/executor/Executor.js +42 -0
  41. package/cjs/executor/RuntimeApiExecutor.js +121 -0
  42. package/cjs/executor/StorageQueryExecutor.js +115 -0
  43. package/cjs/executor/TxExecutor.js +55 -0
  44. package/cjs/executor/index.js +26 -0
  45. package/cjs/executor/v2/RuntimeApiExecutorV2.js +21 -0
  46. package/cjs/executor/v2/StorageQueryExecutorV2.js +65 -0
  47. package/cjs/executor/v2/TxExecutorV2.js +20 -0
  48. package/cjs/extrinsic/extensions/ExtraSignedExtension.js +87 -0
  49. package/cjs/extrinsic/extensions/SignedExtension.js +41 -0
  50. package/cjs/extrinsic/extensions/index.js +19 -0
  51. package/cjs/extrinsic/extensions/known/ChargeAssetTxPayment.js +43 -0
  52. package/cjs/extrinsic/extensions/known/ChargeTransactionPayment.js +16 -0
  53. package/cjs/extrinsic/extensions/known/CheckGenesis.js +19 -0
  54. package/cjs/extrinsic/extensions/known/CheckMortality.js +90 -0
  55. package/cjs/extrinsic/extensions/known/CheckNonZeroSender.js +10 -0
  56. package/cjs/extrinsic/extensions/known/CheckNonce.js +33 -0
  57. package/cjs/extrinsic/extensions/known/CheckSpecVersion.js +19 -0
  58. package/cjs/extrinsic/extensions/known/CheckTxVersion.js +19 -0
  59. package/cjs/extrinsic/extensions/known/CheckWeight.js +10 -0
  60. package/cjs/extrinsic/extensions/known/PrevalidateAttests.js +11 -0
  61. package/cjs/extrinsic/extensions/known/index.js +25 -0
  62. package/cjs/extrinsic/index.js +18 -0
  63. package/cjs/extrinsic/submittable/BaseSubmittableExtrinsic.js +70 -0
  64. package/cjs/extrinsic/submittable/SubmittableExtrinsic.js +47 -0
  65. package/cjs/extrinsic/submittable/SubmittableExtrinsicV2.js +204 -0
  66. package/cjs/extrinsic/submittable/SubmittableResult.js +33 -0
  67. package/cjs/extrinsic/submittable/errors.js +16 -0
  68. package/cjs/extrinsic/submittable/fakeSigner.js +13 -0
  69. package/cjs/extrinsic/submittable/index.js +20 -0
  70. package/cjs/extrinsic/submittable/utils.js +20 -0
  71. package/cjs/index.js +21 -0
  72. package/cjs/json-rpc/JsonRpcClient.js +165 -0
  73. package/cjs/json-rpc/group/ChainHead/BlockUsage.js +24 -0
  74. package/cjs/json-rpc/group/ChainHead/ChainHead.js +603 -0
  75. package/cjs/json-rpc/group/ChainHead/error.js +59 -0
  76. package/cjs/json-rpc/group/ChainHead/index.js +18 -0
  77. package/cjs/json-rpc/group/ChainSpec.js +19 -0
  78. package/cjs/json-rpc/group/JsonRpcGroup.js +89 -0
  79. package/cjs/json-rpc/group/Transaction.js +25 -0
  80. package/cjs/json-rpc/group/TransactionWatch.js +17 -0
  81. package/cjs/json-rpc/group/index.js +21 -0
  82. package/cjs/json-rpc/index.js +20 -0
  83. package/cjs/json-rpc/scaledResponses.js +15 -0
  84. package/cjs/json-rpc/subscriptionsInfo.js +20 -0
  85. package/cjs/package.json +1 -0
  86. package/cjs/proxychain.js +27 -0
  87. package/cjs/storage/QueryableStorage.js +161 -0
  88. package/cjs/storage/index.js +17 -0
  89. package/cjs/types.js +2 -0
  90. package/client/BaseSubstrateClient.d.ts +65 -0
  91. package/client/BaseSubstrateClient.js +252 -0
  92. package/client/Dedot.d.ts +131 -0
  93. package/client/Dedot.js +246 -0
  94. package/client/DedotClient.d.ts +61 -0
  95. package/client/DedotClient.js +182 -0
  96. package/client/index.d.ts +2 -0
  97. package/client/index.js +2 -0
  98. package/executor/ConstantExecutor.d.ts +10 -0
  99. package/executor/ConstantExecutor.js +16 -0
  100. package/executor/ErrorExecutor.d.ts +10 -0
  101. package/executor/ErrorExecutor.js +42 -0
  102. package/executor/EventExecutor.d.ts +10 -0
  103. package/executor/EventExecutor.js +48 -0
  104. package/executor/Executor.d.ts +149 -0
  105. package/executor/Executor.js +38 -0
  106. package/executor/RuntimeApiExecutor.d.ts +27 -0
  107. package/executor/RuntimeApiExecutor.js +117 -0
  108. package/executor/StorageQueryExecutor.d.ts +14 -0
  109. package/executor/StorageQueryExecutor.js +111 -0
  110. package/executor/TxExecutor.d.ts +10 -0
  111. package/executor/TxExecutor.js +51 -0
  112. package/executor/index.d.ts +10 -0
  113. package/executor/index.js +10 -0
  114. package/executor/v2/RuntimeApiExecutorV2.d.ts +14 -0
  115. package/executor/v2/RuntimeApiExecutorV2.js +17 -0
  116. package/executor/v2/StorageQueryExecutorV2.d.ts +17 -0
  117. package/executor/v2/StorageQueryExecutorV2.js +61 -0
  118. package/executor/v2/TxExecutorV2.d.ts +11 -0
  119. package/executor/v2/TxExecutorV2.js +16 -0
  120. package/extrinsic/extensions/ExtraSignedExtension.d.ts +14 -0
  121. package/extrinsic/extensions/ExtraSignedExtension.js +60 -0
  122. package/extrinsic/extensions/SignedExtension.d.ts +40 -0
  123. package/extrinsic/extensions/SignedExtension.js +37 -0
  124. package/extrinsic/extensions/index.d.ts +3 -0
  125. package/extrinsic/extensions/index.js +3 -0
  126. package/extrinsic/extensions/known/ChargeAssetTxPayment.d.ts +14 -0
  127. package/extrinsic/extensions/known/ChargeAssetTxPayment.js +39 -0
  128. package/extrinsic/extensions/known/ChargeTransactionPayment.d.ts +6 -0
  129. package/extrinsic/extensions/known/ChargeTransactionPayment.js +12 -0
  130. package/extrinsic/extensions/known/CheckGenesis.d.ts +10 -0
  131. package/extrinsic/extensions/known/CheckGenesis.js +15 -0
  132. package/extrinsic/extensions/known/CheckMortality.d.ts +15 -0
  133. package/extrinsic/extensions/known/CheckMortality.js +86 -0
  134. package/extrinsic/extensions/known/CheckNonZeroSender.d.ts +6 -0
  135. package/extrinsic/extensions/known/CheckNonZeroSender.js +6 -0
  136. package/extrinsic/extensions/known/CheckNonce.d.ts +10 -0
  137. package/extrinsic/extensions/known/CheckNonce.js +29 -0
  138. package/extrinsic/extensions/known/CheckSpecVersion.d.ts +9 -0
  139. package/extrinsic/extensions/known/CheckSpecVersion.js +15 -0
  140. package/extrinsic/extensions/known/CheckTxVersion.d.ts +9 -0
  141. package/extrinsic/extensions/known/CheckTxVersion.js +15 -0
  142. package/extrinsic/extensions/known/CheckWeight.d.ts +6 -0
  143. package/extrinsic/extensions/known/CheckWeight.js +6 -0
  144. package/extrinsic/extensions/known/PrevalidateAttests.d.ts +7 -0
  145. package/extrinsic/extensions/known/PrevalidateAttests.js +7 -0
  146. package/extrinsic/extensions/known/index.d.ts +3 -0
  147. package/extrinsic/extensions/known/index.js +22 -0
  148. package/extrinsic/index.d.ts +2 -0
  149. package/extrinsic/index.js +2 -0
  150. package/extrinsic/submittable/BaseSubmittableExtrinsic.d.ts +17 -0
  151. package/extrinsic/submittable/BaseSubmittableExtrinsic.js +66 -0
  152. package/extrinsic/submittable/SubmittableExtrinsic.d.ts +12 -0
  153. package/extrinsic/submittable/SubmittableExtrinsic.js +43 -0
  154. package/extrinsic/submittable/SubmittableExtrinsicV2.d.ts +15 -0
  155. package/extrinsic/submittable/SubmittableExtrinsicV2.js +200 -0
  156. package/extrinsic/submittable/SubmittableResult.d.ts +19 -0
  157. package/extrinsic/submittable/SubmittableResult.js +29 -0
  158. package/extrinsic/submittable/errors.d.ts +11 -0
  159. package/extrinsic/submittable/errors.js +12 -0
  160. package/extrinsic/submittable/fakeSigner.d.ts +2 -0
  161. package/extrinsic/submittable/fakeSigner.js +10 -0
  162. package/extrinsic/submittable/index.d.ts +4 -0
  163. package/extrinsic/submittable/index.js +4 -0
  164. package/extrinsic/submittable/utils.d.ts +10 -0
  165. package/extrinsic/submittable/utils.js +15 -0
  166. package/index.d.ts +6 -0
  167. package/index.js +5 -0
  168. package/json-rpc/JsonRpcClient.d.ts +50 -0
  169. package/json-rpc/JsonRpcClient.js +160 -0
  170. package/json-rpc/group/ChainHead/BlockUsage.d.ts +11 -0
  171. package/json-rpc/group/ChainHead/BlockUsage.js +20 -0
  172. package/json-rpc/group/ChainHead/ChainHead.d.ts +70 -0
  173. package/json-rpc/group/ChainHead/ChainHead.js +599 -0
  174. package/json-rpc/group/ChainHead/error.d.ts +47 -0
  175. package/json-rpc/group/ChainHead/error.js +48 -0
  176. package/json-rpc/group/ChainHead/index.d.ts +2 -0
  177. package/json-rpc/group/ChainHead/index.js +2 -0
  178. package/json-rpc/group/ChainSpec.d.ts +10 -0
  179. package/json-rpc/group/ChainSpec.js +15 -0
  180. package/json-rpc/group/JsonRpcGroup.d.ts +74 -0
  181. package/json-rpc/group/JsonRpcGroup.js +85 -0
  182. package/json-rpc/group/Transaction.d.ts +11 -0
  183. package/json-rpc/group/Transaction.js +21 -0
  184. package/json-rpc/group/TransactionWatch.d.ts +10 -0
  185. package/json-rpc/group/TransactionWatch.js +13 -0
  186. package/json-rpc/group/index.d.ts +5 -0
  187. package/json-rpc/group/index.js +5 -0
  188. package/json-rpc/index.d.ts +4 -0
  189. package/json-rpc/index.js +4 -0
  190. package/json-rpc/scaledResponses.d.ts +2 -0
  191. package/json-rpc/scaledResponses.js +12 -0
  192. package/json-rpc/subscriptionsInfo.d.ts +2 -0
  193. package/json-rpc/subscriptionsInfo.js +17 -0
  194. package/package.json +54 -0
  195. package/proxychain.d.ts +14 -0
  196. package/proxychain.js +23 -0
  197. package/storage/QueryableStorage.d.ts +35 -0
  198. package/storage/QueryableStorage.js +157 -0
  199. package/storage/index.d.ts +1 -0
  200. package/storage/index.js +1 -0
  201. package/types.d.ts +120 -0
  202. package/types.js +1 -0
@@ -0,0 +1,3829 @@
1
+ import type { AccountId32, AccountId32Like, Bytes, BytesLike, Data, Digest, FixedBytes, FixedU128, FixedU64, H256, Perbill, Percent, Phase } from '@dedot/codecs';
2
+ import type { GenericChainStorage, GenericStorageQuery, RpcVersion } from '@dedot/types';
3
+ import type { FrameSupportDispatchPerDispatchClass, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, KitchensinkRuntimeRuntimeCall, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsBitFlagsCollectionRole, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletReferendaReferendumInfoTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpConsensusSlotsSlot, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } from './types.js';
4
+ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
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<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
16
+ /**
17
+ * Total extrinsics count for the current block.
18
+ *
19
+ * @param {Callback<number | undefined> =} callback
20
+ **/
21
+ extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
22
+ /**
23
+ * Whether all inherents have been applied.
24
+ *
25
+ * @param {Callback<boolean> =} callback
26
+ **/
27
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
28
+ /**
29
+ * The current weight for the block.
30
+ *
31
+ * @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
32
+ **/
33
+ blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
34
+ /**
35
+ * Total length (in bytes) for all extrinsics put together, for the current block.
36
+ *
37
+ * @param {Callback<number | undefined> =} callback
38
+ **/
39
+ allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
40
+ /**
41
+ * Map of block numbers to block hashes.
42
+ *
43
+ * @param {number} arg
44
+ * @param {Callback<H256> =} callback
45
+ **/
46
+ blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
47
+ /**
48
+ * Extrinsics data for the current block (maps an extrinsic's index to its data).
49
+ *
50
+ * @param {number} arg
51
+ * @param {Callback<Bytes> =} callback
52
+ **/
53
+ extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
54
+ /**
55
+ * The current block number being processed. Set by `execute_block`.
56
+ *
57
+ * @param {Callback<number> =} callback
58
+ **/
59
+ number: GenericStorageQuery<Rv, () => number>;
60
+ /**
61
+ * Hash of the previous block.
62
+ *
63
+ * @param {Callback<H256> =} callback
64
+ **/
65
+ parentHash: GenericStorageQuery<Rv, () => H256>;
66
+ /**
67
+ * Digest of the current block, also part of the block header.
68
+ *
69
+ * @param {Callback<Digest> =} callback
70
+ **/
71
+ digest: GenericStorageQuery<Rv, () => Digest>;
72
+ /**
73
+ * Events deposited for the current block.
74
+ *
75
+ * NOTE: The item is unbound and should therefore never be read on chain.
76
+ * It could otherwise inflate the PoV size of a block.
77
+ *
78
+ * Events have a large in-memory size. Box the events to not go out-of-memory
79
+ * just in case someone still reads them from within the runtime.
80
+ *
81
+ * @param {Callback<Array<FrameSystemEventRecord>> =} callback
82
+ **/
83
+ events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
84
+ /**
85
+ * The number of events in the `Events<T>` list.
86
+ *
87
+ * @param {Callback<number> =} callback
88
+ **/
89
+ eventCount: GenericStorageQuery<Rv, () => number>;
90
+ /**
91
+ * Mapping between a topic (represented by T::Hash) and a vector of indexes
92
+ * of events in the `<Events<T>>` list.
93
+ *
94
+ * All topic vectors have deterministic storage locations depending on the topic. This
95
+ * allows light-clients to leverage the changes trie storage tracking mechanism and
96
+ * in case of changes fetch the list of events of interest.
97
+ *
98
+ * The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
99
+ * the `EventIndex` then in case if the topic has the same contents on the next block
100
+ * no notification will be triggered thus the event might be lost.
101
+ *
102
+ * @param {H256} arg
103
+ * @param {Callback<Array<[number, number]>> =} callback
104
+ **/
105
+ eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
106
+ /**
107
+ * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
108
+ *
109
+ * @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
110
+ **/
111
+ lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
112
+ /**
113
+ * True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
114
+ *
115
+ * @param {Callback<boolean> =} callback
116
+ **/
117
+ upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
118
+ /**
119
+ * True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
120
+ * (default) if not.
121
+ *
122
+ * @param {Callback<boolean> =} callback
123
+ **/
124
+ upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
125
+ /**
126
+ * The execution phase of the block.
127
+ *
128
+ * @param {Callback<Phase | undefined> =} callback
129
+ **/
130
+ executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
131
+ /**
132
+ * `Some` if a code upgrade has been authorized.
133
+ *
134
+ * @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
135
+ **/
136
+ authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
137
+ /**
138
+ * Generic pallet storage query
139
+ **/
140
+ [storage: string]: GenericStorageQuery<Rv>;
141
+ };
142
+ /**
143
+ * Pallet `Babe`'s storage queries
144
+ **/
145
+ babe: {
146
+ /**
147
+ * Current epoch index.
148
+ *
149
+ * @param {Callback<bigint> =} callback
150
+ **/
151
+ epochIndex: GenericStorageQuery<Rv, () => bigint>;
152
+ /**
153
+ * Current epoch authorities.
154
+ *
155
+ * @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
156
+ **/
157
+ authorities: GenericStorageQuery<Rv, () => Array<[SpConsensusBabeAppPublic, bigint]>>;
158
+ /**
159
+ * The slot at which the first epoch actually started. This is 0
160
+ * until the first block of the chain.
161
+ *
162
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
163
+ **/
164
+ genesisSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
165
+ /**
166
+ * Current slot number.
167
+ *
168
+ * @param {Callback<SpConsensusSlotsSlot> =} callback
169
+ **/
170
+ currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
171
+ /**
172
+ * The epoch randomness for the *current* epoch.
173
+ *
174
+ * # Security
175
+ *
176
+ * This MUST NOT be used for gambling, as it can be influenced by a
177
+ * malicious validator in the short term. It MAY be used in many
178
+ * cryptographic protocols, however, so long as one remembers that this
179
+ * (like everything else on-chain) it is public. For example, it can be
180
+ * used where a number is needed that cannot have been chosen by an
181
+ * adversary, for purposes such as public-coin zero-knowledge proofs.
182
+ *
183
+ * @param {Callback<FixedBytes<32>> =} callback
184
+ **/
185
+ randomness: GenericStorageQuery<Rv, () => FixedBytes<32>>;
186
+ /**
187
+ * Pending epoch configuration change that will be applied when the next epoch is enacted.
188
+ *
189
+ * @param {Callback<SpConsensusBabeDigestsNextConfigDescriptor | undefined> =} callback
190
+ **/
191
+ pendingEpochConfigChange: GenericStorageQuery<Rv, () => SpConsensusBabeDigestsNextConfigDescriptor | undefined>;
192
+ /**
193
+ * Next epoch randomness.
194
+ *
195
+ * @param {Callback<FixedBytes<32>> =} callback
196
+ **/
197
+ nextRandomness: GenericStorageQuery<Rv, () => FixedBytes<32>>;
198
+ /**
199
+ * Next epoch authorities.
200
+ *
201
+ * @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
202
+ **/
203
+ nextAuthorities: GenericStorageQuery<Rv, () => Array<[SpConsensusBabeAppPublic, bigint]>>;
204
+ /**
205
+ * Randomness under construction.
206
+ *
207
+ * We make a trade-off between storage accesses and list length.
208
+ * We store the under-construction randomness in segments of up to
209
+ * `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
210
+ *
211
+ * Once a segment reaches this length, we begin the next one.
212
+ * We reset all segments and return to `0` at the beginning of every
213
+ * epoch.
214
+ *
215
+ * @param {Callback<number> =} callback
216
+ **/
217
+ segmentIndex: GenericStorageQuery<Rv, () => number>;
218
+ /**
219
+ * TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
220
+ *
221
+ * @param {number} arg
222
+ * @param {Callback<Array<FixedBytes<32>>> =} callback
223
+ **/
224
+ underConstruction: GenericStorageQuery<Rv, (arg: number) => Array<FixedBytes<32>>, number>;
225
+ /**
226
+ * Temporary value (cleared at block finalization) which is `Some`
227
+ * if per-block initialization has already been called for current block.
228
+ *
229
+ * @param {Callback<SpConsensusBabeDigestsPreDigest | undefined | undefined> =} callback
230
+ **/
231
+ initialized: GenericStorageQuery<Rv, () => SpConsensusBabeDigestsPreDigest | undefined | undefined>;
232
+ /**
233
+ * This field should always be populated during block processing unless
234
+ * secondary plain slots are enabled (which don't contain a VRF output).
235
+ *
236
+ * It is set in `on_finalize`, before it will contain the value from the last block.
237
+ *
238
+ * @param {Callback<FixedBytes<32> | undefined> =} callback
239
+ **/
240
+ authorVrfRandomness: GenericStorageQuery<Rv, () => FixedBytes<32> | undefined>;
241
+ /**
242
+ * The block numbers when the last and current epoch have started, respectively `N-1` and
243
+ * `N`.
244
+ * NOTE: We track this is in order to annotate the block number when a given pool of
245
+ * entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
246
+ * slots, which may be skipped, the block numbers may not line up with the slot numbers.
247
+ *
248
+ * @param {Callback<[number, number]> =} callback
249
+ **/
250
+ epochStart: GenericStorageQuery<Rv, () => [number, number]>;
251
+ /**
252
+ * How late the current block is compared to its parent.
253
+ *
254
+ * This entry is populated as part of block execution and is cleaned up
255
+ * on block finalization. Querying this storage entry outside of block
256
+ * execution context should always yield zero.
257
+ *
258
+ * @param {Callback<number> =} callback
259
+ **/
260
+ lateness: GenericStorageQuery<Rv, () => number>;
261
+ /**
262
+ * The configuration for the current epoch. Should never be `None` as it is initialized in
263
+ * genesis.
264
+ *
265
+ * @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
266
+ **/
267
+ epochConfig: GenericStorageQuery<Rv, () => SpConsensusBabeBabeEpochConfiguration | undefined>;
268
+ /**
269
+ * The configuration for the next epoch, `None` if the config will not change
270
+ * (you can fallback to `EpochConfig` instead in that case).
271
+ *
272
+ * @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
273
+ **/
274
+ nextEpochConfig: GenericStorageQuery<Rv, () => SpConsensusBabeBabeEpochConfiguration | undefined>;
275
+ /**
276
+ * A list of the last 100 skipped epochs and the corresponding session index
277
+ * when the epoch was skipped.
278
+ *
279
+ * This is only used for validating equivocation proofs. An equivocation proof
280
+ * must contains a key-ownership proof for a given session, therefore we need a
281
+ * way to tie together sessions and epoch indices, i.e. we need to validate that
282
+ * a validator was the owner of a given key on a given session, and what the
283
+ * active epoch index was during that session.
284
+ *
285
+ * @param {Callback<Array<[bigint, number]>> =} callback
286
+ **/
287
+ skippedEpochs: GenericStorageQuery<Rv, () => Array<[bigint, number]>>;
288
+ /**
289
+ * Generic pallet storage query
290
+ **/
291
+ [storage: string]: GenericStorageQuery<Rv>;
292
+ };
293
+ /**
294
+ * Pallet `Timestamp`'s storage queries
295
+ **/
296
+ timestamp: {
297
+ /**
298
+ * The current time for the current block.
299
+ *
300
+ * @param {Callback<bigint> =} callback
301
+ **/
302
+ now: GenericStorageQuery<Rv, () => bigint>;
303
+ /**
304
+ * Whether the timestamp has been updated in this block.
305
+ *
306
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
307
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
308
+ *
309
+ * @param {Callback<boolean> =} callback
310
+ **/
311
+ didUpdate: GenericStorageQuery<Rv, () => boolean>;
312
+ /**
313
+ * Generic pallet storage query
314
+ **/
315
+ [storage: string]: GenericStorageQuery<Rv>;
316
+ };
317
+ /**
318
+ * Pallet `Authorship`'s storage queries
319
+ **/
320
+ authorship: {
321
+ /**
322
+ * Author of current block.
323
+ *
324
+ * @param {Callback<AccountId32 | undefined> =} callback
325
+ **/
326
+ author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
327
+ /**
328
+ * Generic pallet storage query
329
+ **/
330
+ [storage: string]: GenericStorageQuery<Rv>;
331
+ };
332
+ /**
333
+ * Pallet `Indices`'s storage queries
334
+ **/
335
+ indices: {
336
+ /**
337
+ * The lookup from index to account.
338
+ *
339
+ * @param {number} arg
340
+ * @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
341
+ **/
342
+ accounts: GenericStorageQuery<Rv, (arg: number) => [AccountId32, bigint, boolean] | undefined, number>;
343
+ /**
344
+ * Generic pallet storage query
345
+ **/
346
+ [storage: string]: GenericStorageQuery<Rv>;
347
+ };
348
+ /**
349
+ * Pallet `Balances`'s storage queries
350
+ **/
351
+ balances: {
352
+ /**
353
+ * The total units issued in the system.
354
+ *
355
+ * @param {Callback<bigint> =} callback
356
+ **/
357
+ totalIssuance: GenericStorageQuery<Rv, () => bigint>;
358
+ /**
359
+ * The total units of outstanding deactivated balance in the system.
360
+ *
361
+ * @param {Callback<bigint> =} callback
362
+ **/
363
+ inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
364
+ /**
365
+ * The Balances pallet example of storing the balance of an account.
366
+ *
367
+ * # Example
368
+ *
369
+ * ```nocompile
370
+ * impl pallet_balances::Config for Runtime {
371
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
372
+ * }
373
+ * ```
374
+ *
375
+ * You can also store the balance of an account in the `System` pallet.
376
+ *
377
+ * # Example
378
+ *
379
+ * ```nocompile
380
+ * impl pallet_balances::Config for Runtime {
381
+ * type AccountStore = System
382
+ * }
383
+ * ```
384
+ *
385
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
386
+ * `frame_system` data alongside the account data contrary to storing account balances in the
387
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
388
+ * NOTE: This is only used in the case that this pallet is used to store balances.
389
+ *
390
+ * @param {AccountId32Like} arg
391
+ * @param {Callback<PalletBalancesAccountData> =} callback
392
+ **/
393
+ account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
394
+ /**
395
+ * Any liquidity locks on some account balances.
396
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
397
+ *
398
+ * @param {AccountId32Like} arg
399
+ * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
400
+ **/
401
+ locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
402
+ /**
403
+ * Named reserves on some account balances.
404
+ *
405
+ * @param {AccountId32Like} arg
406
+ * @param {Callback<Array<PalletBalancesReserveData>> =} callback
407
+ **/
408
+ reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
409
+ /**
410
+ * Holds on account balances.
411
+ *
412
+ * @param {AccountId32Like} arg
413
+ * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
414
+ **/
415
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
416
+ /**
417
+ * Freeze locks on account balances.
418
+ *
419
+ * @param {AccountId32Like} arg
420
+ * @param {Callback<Array<PalletBalancesIdAmountRuntimeFreezeReason>> =} callback
421
+ **/
422
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmountRuntimeFreezeReason>, AccountId32>;
423
+ /**
424
+ * Generic pallet storage query
425
+ **/
426
+ [storage: string]: GenericStorageQuery<Rv>;
427
+ };
428
+ /**
429
+ * Pallet `TransactionPayment`'s storage queries
430
+ **/
431
+ transactionPayment: {
432
+ /**
433
+ *
434
+ * @param {Callback<FixedU128> =} callback
435
+ **/
436
+ nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
437
+ /**
438
+ *
439
+ * @param {Callback<PalletTransactionPaymentReleases> =} callback
440
+ **/
441
+ storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
442
+ /**
443
+ * Generic pallet storage query
444
+ **/
445
+ [storage: string]: GenericStorageQuery<Rv>;
446
+ };
447
+ /**
448
+ * Pallet `ElectionProviderMultiPhase`'s storage queries
449
+ **/
450
+ electionProviderMultiPhase: {
451
+ /**
452
+ * Internal counter for the number of rounds.
453
+ *
454
+ * This is useful for de-duplication of transactions submitted to the pool, and general
455
+ * diagnostics of the pallet.
456
+ *
457
+ * This is merely incremented once per every time that an upstream `elect` is called.
458
+ *
459
+ * @param {Callback<number> =} callback
460
+ **/
461
+ round: GenericStorageQuery<Rv, () => number>;
462
+ /**
463
+ * Current phase.
464
+ *
465
+ * @param {Callback<PalletElectionProviderMultiPhasePhase> =} callback
466
+ **/
467
+ currentPhase: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhasePhase>;
468
+ /**
469
+ * Current best solution, signed or unsigned, queued to be returned upon `elect`.
470
+ *
471
+ * Always sorted by score.
472
+ *
473
+ * @param {Callback<PalletElectionProviderMultiPhaseReadySolution | undefined> =} callback
474
+ **/
475
+ queuedSolution: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseReadySolution | undefined>;
476
+ /**
477
+ * Snapshot data of the round.
478
+ *
479
+ * This is created at the beginning of the signed phase and cleared upon calling `elect`.
480
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
481
+ *
482
+ * @param {Callback<PalletElectionProviderMultiPhaseRoundSnapshot | undefined> =} callback
483
+ **/
484
+ snapshot: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseRoundSnapshot | undefined>;
485
+ /**
486
+ * Desired number of targets to elect for this round.
487
+ *
488
+ * Only exists when [`Snapshot`] is present.
489
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
490
+ *
491
+ * @param {Callback<number | undefined> =} callback
492
+ **/
493
+ desiredTargets: GenericStorageQuery<Rv, () => number | undefined>;
494
+ /**
495
+ * The metadata of the [`RoundSnapshot`]
496
+ *
497
+ * Only exists when [`Snapshot`] is present.
498
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
499
+ *
500
+ * @param {Callback<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined> =} callback
501
+ **/
502
+ snapshotMetadata: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined>;
503
+ /**
504
+ * The next index to be assigned to an incoming signed submission.
505
+ *
506
+ * Every accepted submission is assigned a unique index; that index is bound to that particular
507
+ * submission for the duration of the election. On election finalization, the next index is
508
+ * reset to 0.
509
+ *
510
+ * We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
511
+ * capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
512
+ * because iteration is slow. Instead, we store the value here.
513
+ *
514
+ * @param {Callback<number> =} callback
515
+ **/
516
+ signedSubmissionNextIndex: GenericStorageQuery<Rv, () => number>;
517
+ /**
518
+ * A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
519
+ * value in `SignedSubmissions`.
520
+ *
521
+ * We never need to process more than a single signed submission at a time. Signed submissions
522
+ * can be quite large, so we're willing to pay the cost of multiple database accesses to access
523
+ * them one at a time instead of reading and decoding all of them at once.
524
+ *
525
+ * @param {Callback<Array<[SpNposElectionsElectionScore, number, number]>> =} callback
526
+ **/
527
+ signedSubmissionIndices: GenericStorageQuery<Rv, () => Array<[SpNposElectionsElectionScore, number, number]>>;
528
+ /**
529
+ * Unchecked, signed solutions.
530
+ *
531
+ * Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
532
+ * allowing us to keep only a single one in memory at a time.
533
+ *
534
+ * Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
535
+ * affect; we shouldn't need a cryptographically secure hasher.
536
+ *
537
+ * @param {number} arg
538
+ * @param {Callback<PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined> =} callback
539
+ **/
540
+ signedSubmissionsMap: GenericStorageQuery<Rv, (arg: number) => PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined, number>;
541
+ /**
542
+ * The minimum score that each 'untrusted' solution must attain in order to be considered
543
+ * feasible.
544
+ *
545
+ * Can be set via `set_minimum_untrusted_score`.
546
+ *
547
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
548
+ **/
549
+ minimumUntrustedScore: GenericStorageQuery<Rv, () => SpNposElectionsElectionScore | undefined>;
550
+ /**
551
+ * Generic pallet storage query
552
+ **/
553
+ [storage: string]: GenericStorageQuery<Rv>;
554
+ };
555
+ /**
556
+ * Pallet `Staking`'s storage queries
557
+ **/
558
+ staking: {
559
+ /**
560
+ * The ideal number of active validators.
561
+ *
562
+ * @param {Callback<number> =} callback
563
+ **/
564
+ validatorCount: GenericStorageQuery<Rv, () => number>;
565
+ /**
566
+ * Minimum number of staking participants before emergency conditions are imposed.
567
+ *
568
+ * @param {Callback<number> =} callback
569
+ **/
570
+ minimumValidatorCount: GenericStorageQuery<Rv, () => number>;
571
+ /**
572
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
573
+ * easy to initialize and the performance hit is minimal (we expect no more than four
574
+ * invulnerables) and restricted to testnets.
575
+ *
576
+ * @param {Callback<Array<AccountId32>> =} callback
577
+ **/
578
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
579
+ /**
580
+ * Map from all locked "stash" accounts to the controller account.
581
+ *
582
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
583
+ *
584
+ * @param {AccountId32Like} arg
585
+ * @param {Callback<AccountId32 | undefined> =} callback
586
+ **/
587
+ bonded: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
588
+ /**
589
+ * The minimum active bond to become and maintain the role of a nominator.
590
+ *
591
+ * @param {Callback<bigint> =} callback
592
+ **/
593
+ minNominatorBond: GenericStorageQuery<Rv, () => bigint>;
594
+ /**
595
+ * The minimum active bond to become and maintain the role of a validator.
596
+ *
597
+ * @param {Callback<bigint> =} callback
598
+ **/
599
+ minValidatorBond: GenericStorageQuery<Rv, () => bigint>;
600
+ /**
601
+ * The minimum active nominator stake of the last successful election.
602
+ *
603
+ * @param {Callback<bigint> =} callback
604
+ **/
605
+ minimumActiveStake: GenericStorageQuery<Rv, () => bigint>;
606
+ /**
607
+ * The minimum amount of commission that validators can set.
608
+ *
609
+ * If set to `0`, no limit exists.
610
+ *
611
+ * @param {Callback<Perbill> =} callback
612
+ **/
613
+ minCommission: GenericStorageQuery<Rv, () => Perbill>;
614
+ /**
615
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
616
+ *
617
+ * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
618
+ * by [`StakingLedger`] to ensure data and lock consistency.
619
+ *
620
+ * @param {AccountId32Like} arg
621
+ * @param {Callback<PalletStakingStakingLedger | undefined> =} callback
622
+ **/
623
+ ledger: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingStakingLedger | undefined, AccountId32>;
624
+ /**
625
+ * Where the reward payment should be made. Keyed by stash.
626
+ *
627
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
628
+ *
629
+ * @param {AccountId32Like} arg
630
+ * @param {Callback<PalletStakingRewardDestination | undefined> =} callback
631
+ **/
632
+ payee: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingRewardDestination | undefined, AccountId32>;
633
+ /**
634
+ * The map from (wannabe) validator stash key to the preferences of that validator.
635
+ *
636
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
637
+ *
638
+ * @param {AccountId32Like} arg
639
+ * @param {Callback<PalletStakingValidatorPrefs> =} callback
640
+ **/
641
+ validators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingValidatorPrefs, AccountId32>;
642
+ /**
643
+ * Counter for the related counted storage map
644
+ *
645
+ * @param {Callback<number> =} callback
646
+ **/
647
+ counterForValidators: GenericStorageQuery<Rv, () => number>;
648
+ /**
649
+ * The maximum validator count before we stop allowing new validators to join.
650
+ *
651
+ * When this value is not set, no limits are enforced.
652
+ *
653
+ * @param {Callback<number | undefined> =} callback
654
+ **/
655
+ maxValidatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
656
+ /**
657
+ * The map from nominator stash key to their nomination preferences, namely the validators that
658
+ * they wish to support.
659
+ *
660
+ * Note that the keys of this storage map might become non-decodable in case the
661
+ * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
662
+ * In this rare case, these nominators
663
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
664
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
665
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
666
+ * is within the bounds of the newly set `Config::MaxNominations`.
667
+ *
668
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
669
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
670
+ * number of keys that exist.
671
+ *
672
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
673
+ * [`Call::chill_other`] dispatchable by anyone.
674
+ *
675
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
676
+ *
677
+ * @param {AccountId32Like} arg
678
+ * @param {Callback<PalletStakingNominations | undefined> =} callback
679
+ **/
680
+ nominators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingNominations | undefined, AccountId32>;
681
+ /**
682
+ * Counter for the related counted storage map
683
+ *
684
+ * @param {Callback<number> =} callback
685
+ **/
686
+ counterForNominators: GenericStorageQuery<Rv, () => number>;
687
+ /**
688
+ * The maximum nominator count before we stop allowing new validators to join.
689
+ *
690
+ * When this value is not set, no limits are enforced.
691
+ *
692
+ * @param {Callback<number | undefined> =} callback
693
+ **/
694
+ maxNominatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
695
+ /**
696
+ * The current era index.
697
+ *
698
+ * This is the latest planned era, depending on how the Session pallet queues the validator
699
+ * set, it might be active or not.
700
+ *
701
+ * @param {Callback<number | undefined> =} callback
702
+ **/
703
+ currentEra: GenericStorageQuery<Rv, () => number | undefined>;
704
+ /**
705
+ * The active era information, it holds index and start.
706
+ *
707
+ * The active era is the era being currently rewarded. Validator set of this era must be
708
+ * equal to [`SessionInterface::validators`].
709
+ *
710
+ * @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
711
+ **/
712
+ activeEra: GenericStorageQuery<Rv, () => PalletStakingActiveEraInfo | undefined>;
713
+ /**
714
+ * The session index at which the era start for the last [`Config::HistoryDepth`] eras.
715
+ *
716
+ * Note: This tracks the starting session (i.e. session index when era start being active)
717
+ * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
718
+ *
719
+ * @param {number} arg
720
+ * @param {Callback<number | undefined> =} callback
721
+ **/
722
+ erasStartSessionIndex: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
723
+ /**
724
+ * Exposure of validator at era.
725
+ *
726
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
727
+ *
728
+ * Is it removed after [`Config::HistoryDepth`] eras.
729
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
730
+ *
731
+ * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
732
+ *
733
+ * @param {[number, AccountId32Like]} arg
734
+ * @param {Callback<SpStakingExposure> =} callback
735
+ **/
736
+ erasStakers: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => SpStakingExposure, [number, AccountId32]>;
737
+ /**
738
+ * Summary of validator exposure at a given era.
739
+ *
740
+ * This contains the total stake in support of the validator and their own stake. In addition,
741
+ * it can also be used to get the number of nominators backing this validator and the number of
742
+ * exposure pages they are divided into. The page count is useful to determine the number of
743
+ * pages of rewards that needs to be claimed.
744
+ *
745
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
746
+ * Should only be accessed through `EraInfo`.
747
+ *
748
+ * Is it removed after [`Config::HistoryDepth`] eras.
749
+ * If stakers hasn't been set or has been removed then empty overview is returned.
750
+ *
751
+ * @param {[number, AccountId32Like]} arg
752
+ * @param {Callback<SpStakingPagedExposureMetadata | undefined> =} callback
753
+ **/
754
+ erasStakersOverview: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => SpStakingPagedExposureMetadata | undefined, [
755
+ number,
756
+ AccountId32
757
+ ]>;
758
+ /**
759
+ * Clipped Exposure of validator at era.
760
+ *
761
+ * Note: This is deprecated, should be used as read-only and will be removed in the future.
762
+ * New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
763
+ *
764
+ * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
765
+ * `T::MaxExposurePageSize` biggest stakers.
766
+ * (Note: the field `total` and `own` of the exposure remains unchanged).
767
+ * This is used to limit the i/o cost for the nominator payout.
768
+ *
769
+ * This is keyed fist by the era index to allow bulk deletion and then the stash account.
770
+ *
771
+ * It is removed after [`Config::HistoryDepth`] eras.
772
+ * If stakers hasn't been set or has been removed then empty exposure is returned.
773
+ *
774
+ * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
775
+ *
776
+ * @param {[number, AccountId32Like]} arg
777
+ * @param {Callback<SpStakingExposure> =} callback
778
+ **/
779
+ erasStakersClipped: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => SpStakingExposure, [
780
+ number,
781
+ AccountId32
782
+ ]>;
783
+ /**
784
+ * Paginated exposure of a validator at given era.
785
+ *
786
+ * This is keyed first by the era index to allow bulk deletion, then stash account and finally
787
+ * the page. Should only be accessed through `EraInfo`.
788
+ *
789
+ * This is cleared after [`Config::HistoryDepth`] eras.
790
+ *
791
+ * @param {[number, AccountId32Like, number]} arg
792
+ * @param {Callback<SpStakingExposurePage | undefined> =} callback
793
+ **/
794
+ erasStakersPaged: GenericStorageQuery<Rv, (arg: [number, AccountId32Like, number]) => SpStakingExposurePage | undefined, [
795
+ number,
796
+ AccountId32,
797
+ number
798
+ ]>;
799
+ /**
800
+ * History of claimed paged rewards by era and validator.
801
+ *
802
+ * This is keyed by era and validator stash which maps to the set of page indexes which have
803
+ * been claimed.
804
+ *
805
+ * It is removed after [`Config::HistoryDepth`] eras.
806
+ *
807
+ * @param {[number, AccountId32Like]} arg
808
+ * @param {Callback<Array<number>> =} callback
809
+ **/
810
+ claimedRewards: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => Array<number>, [number, AccountId32]>;
811
+ /**
812
+ * Similar to `ErasStakers`, this holds the preferences of validators.
813
+ *
814
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
815
+ *
816
+ * Is it removed after [`Config::HistoryDepth`] eras.
817
+ *
818
+ * @param {[number, AccountId32Like]} arg
819
+ * @param {Callback<PalletStakingValidatorPrefs> =} callback
820
+ **/
821
+ erasValidatorPrefs: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs, [
822
+ number,
823
+ AccountId32
824
+ ]>;
825
+ /**
826
+ * The total validator era payout for the last [`Config::HistoryDepth`] eras.
827
+ *
828
+ * Eras that haven't finished yet or has been removed doesn't have reward.
829
+ *
830
+ * @param {number} arg
831
+ * @param {Callback<bigint | undefined> =} callback
832
+ **/
833
+ erasValidatorReward: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
834
+ /**
835
+ * Rewards for the last [`Config::HistoryDepth`] eras.
836
+ * If reward hasn't been set or has been removed then 0 reward is returned.
837
+ *
838
+ * @param {number} arg
839
+ * @param {Callback<PalletStakingEraRewardPoints> =} callback
840
+ **/
841
+ erasRewardPoints: GenericStorageQuery<Rv, (arg: number) => PalletStakingEraRewardPoints, number>;
842
+ /**
843
+ * The total amount staked for the last [`Config::HistoryDepth`] eras.
844
+ * If total hasn't been set or has been removed then 0 stake is returned.
845
+ *
846
+ * @param {number} arg
847
+ * @param {Callback<bigint> =} callback
848
+ **/
849
+ erasTotalStake: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
850
+ /**
851
+ * Mode of era forcing.
852
+ *
853
+ * @param {Callback<PalletStakingForcing> =} callback
854
+ **/
855
+ forceEra: GenericStorageQuery<Rv, () => PalletStakingForcing>;
856
+ /**
857
+ * Maximum staked rewards, i.e. the percentage of the era inflation that
858
+ * is used for stake rewards.
859
+ * See [Era payout](./index.html#era-payout).
860
+ *
861
+ * @param {Callback<Percent | undefined> =} callback
862
+ **/
863
+ maxStakedRewards: GenericStorageQuery<Rv, () => Percent | undefined>;
864
+ /**
865
+ * The percentage of the slash that is distributed to reporters.
866
+ *
867
+ * The rest of the slashed value is handled by the `Slash`.
868
+ *
869
+ * @param {Callback<Perbill> =} callback
870
+ **/
871
+ slashRewardFraction: GenericStorageQuery<Rv, () => Perbill>;
872
+ /**
873
+ * The amount of currency given to reporters of a slash event which was
874
+ * canceled by extraordinary circumstances (e.g. governance).
875
+ *
876
+ * @param {Callback<bigint> =} callback
877
+ **/
878
+ canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
879
+ /**
880
+ * All unapplied slashes that are queued for later.
881
+ *
882
+ * @param {number} arg
883
+ * @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
884
+ **/
885
+ unappliedSlashes: GenericStorageQuery<Rv, (arg: number) => Array<PalletStakingUnappliedSlash>, number>;
886
+ /**
887
+ * A mapping from still-bonded eras to the first session index of that era.
888
+ *
889
+ * Must contains information for eras for the range:
890
+ * `[active_era - bounding_duration; active_era]`
891
+ *
892
+ * @param {Callback<Array<[number, number]>> =} callback
893
+ **/
894
+ bondedEras: GenericStorageQuery<Rv, () => Array<[number, number]>>;
895
+ /**
896
+ * All slashing events on validators, mapped by era to the highest slash proportion
897
+ * and slash value of the era.
898
+ *
899
+ * @param {[number, AccountId32Like]} arg
900
+ * @param {Callback<[Perbill, bigint] | undefined> =} callback
901
+ **/
902
+ validatorSlashInEra: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined, [
903
+ number,
904
+ AccountId32
905
+ ]>;
906
+ /**
907
+ * All slashing events on nominators, mapped by era to the highest slash value of the era.
908
+ *
909
+ * @param {[number, AccountId32Like]} arg
910
+ * @param {Callback<bigint | undefined> =} callback
911
+ **/
912
+ nominatorSlashInEra: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => bigint | undefined, [
913
+ number,
914
+ AccountId32
915
+ ]>;
916
+ /**
917
+ * Slashing spans for stash accounts.
918
+ *
919
+ * @param {AccountId32Like} arg
920
+ * @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
921
+ **/
922
+ slashingSpans: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined, AccountId32>;
923
+ /**
924
+ * Records information about the maximum slash of a stash within a slashing span,
925
+ * as well as how much reward has been paid out.
926
+ *
927
+ * @param {[AccountId32Like, number]} arg
928
+ * @param {Callback<PalletStakingSlashingSpanRecord> =} callback
929
+ **/
930
+ spanSlash: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord, [
931
+ AccountId32,
932
+ number
933
+ ]>;
934
+ /**
935
+ * The last planned session scheduled by the session pallet.
936
+ *
937
+ * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
938
+ *
939
+ * @param {Callback<number> =} callback
940
+ **/
941
+ currentPlannedSession: GenericStorageQuery<Rv, () => number>;
942
+ /**
943
+ * Indices of validators that have offended in the active era and whether they are currently
944
+ * disabled.
945
+ *
946
+ * This value should be a superset of disabled validators since not all offences lead to the
947
+ * validator being disabled (if there was no slash). This is needed to track the percentage of
948
+ * validators that have offended in the current era, ensuring a new era is forced if
949
+ * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
950
+ * whether a given validator has previously offended using binary search. It gets cleared when
951
+ * the era ends.
952
+ *
953
+ * @param {Callback<Array<[number, boolean]>> =} callback
954
+ **/
955
+ offendingValidators: GenericStorageQuery<Rv, () => Array<[number, boolean]>>;
956
+ /**
957
+ * The threshold for when users can start calling `chill_other` for other validators /
958
+ * nominators. The threshold is compared to the actual number of validators / nominators
959
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
960
+ *
961
+ * @param {Callback<Percent | undefined> =} callback
962
+ **/
963
+ chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
964
+ /**
965
+ * Generic pallet storage query
966
+ **/
967
+ [storage: string]: GenericStorageQuery<Rv>;
968
+ };
969
+ /**
970
+ * Pallet `Session`'s storage queries
971
+ **/
972
+ session: {
973
+ /**
974
+ * The current set of validators.
975
+ *
976
+ * @param {Callback<Array<AccountId32>> =} callback
977
+ **/
978
+ validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
979
+ /**
980
+ * Current index of the session.
981
+ *
982
+ * @param {Callback<number> =} callback
983
+ **/
984
+ currentIndex: GenericStorageQuery<Rv, () => number>;
985
+ /**
986
+ * True if the underlying economic identities or weighting behind the validators
987
+ * has changed in the queued validator set.
988
+ *
989
+ * @param {Callback<boolean> =} callback
990
+ **/
991
+ queuedChanged: GenericStorageQuery<Rv, () => boolean>;
992
+ /**
993
+ * The queued keys for the next session. When the next session begins, these keys
994
+ * will be used to determine the validator's session keys.
995
+ *
996
+ * @param {Callback<Array<[AccountId32, KitchensinkRuntimeSessionKeys]>> =} callback
997
+ **/
998
+ queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, KitchensinkRuntimeSessionKeys]>>;
999
+ /**
1000
+ * Indices of disabled validators.
1001
+ *
1002
+ * The vec is always kept sorted so that we can find whether a given validator is
1003
+ * disabled using binary search. It gets cleared when `on_session_ending` returns
1004
+ * a new set of identities.
1005
+ *
1006
+ * @param {Callback<Array<number>> =} callback
1007
+ **/
1008
+ disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
1009
+ /**
1010
+ * The next session keys for a validator.
1011
+ *
1012
+ * @param {AccountId32Like} arg
1013
+ * @param {Callback<KitchensinkRuntimeSessionKeys | undefined> =} callback
1014
+ **/
1015
+ nextKeys: GenericStorageQuery<Rv, (arg: AccountId32Like) => KitchensinkRuntimeSessionKeys | undefined, AccountId32>;
1016
+ /**
1017
+ * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1018
+ *
1019
+ * @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
1020
+ * @param {Callback<AccountId32 | undefined> =} callback
1021
+ **/
1022
+ keyOwner: GenericStorageQuery<Rv, (arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined, [
1023
+ SpCoreCryptoKeyTypeId,
1024
+ Bytes
1025
+ ]>;
1026
+ /**
1027
+ * Generic pallet storage query
1028
+ **/
1029
+ [storage: string]: GenericStorageQuery<Rv>;
1030
+ };
1031
+ /**
1032
+ * Pallet `Democracy`'s storage queries
1033
+ **/
1034
+ democracy: {
1035
+ /**
1036
+ * The number of (public) proposals that have been made so far.
1037
+ *
1038
+ * @param {Callback<number> =} callback
1039
+ **/
1040
+ publicPropCount: GenericStorageQuery<Rv, () => number>;
1041
+ /**
1042
+ * The public proposals. Unsorted. The second item is the proposal.
1043
+ *
1044
+ * @param {Callback<Array<[number, FrameSupportPreimagesBounded, AccountId32]>> =} callback
1045
+ **/
1046
+ publicProps: GenericStorageQuery<Rv, () => Array<[number, FrameSupportPreimagesBounded, AccountId32]>>;
1047
+ /**
1048
+ * Those who have locked a deposit.
1049
+ *
1050
+ * TWOX-NOTE: Safe, as increasing integer keys are safe.
1051
+ *
1052
+ * @param {number} arg
1053
+ * @param {Callback<[Array<AccountId32>, bigint] | undefined> =} callback
1054
+ **/
1055
+ depositOf: GenericStorageQuery<Rv, (arg: number) => [Array<AccountId32>, bigint] | undefined, number>;
1056
+ /**
1057
+ * The next free referendum index, aka the number of referenda started so far.
1058
+ *
1059
+ * @param {Callback<number> =} callback
1060
+ **/
1061
+ referendumCount: GenericStorageQuery<Rv, () => number>;
1062
+ /**
1063
+ * The lowest referendum index representing an unbaked referendum. Equal to
1064
+ * `ReferendumCount` if there isn't a unbaked referendum.
1065
+ *
1066
+ * @param {Callback<number> =} callback
1067
+ **/
1068
+ lowestUnbaked: GenericStorageQuery<Rv, () => number>;
1069
+ /**
1070
+ * Information concerning any given referendum.
1071
+ *
1072
+ * TWOX-NOTE: SAFE as indexes are not under an attacker’s control.
1073
+ *
1074
+ * @param {number} arg
1075
+ * @param {Callback<PalletDemocracyReferendumInfo | undefined> =} callback
1076
+ **/
1077
+ referendumInfoOf: GenericStorageQuery<Rv, (arg: number) => PalletDemocracyReferendumInfo | undefined, number>;
1078
+ /**
1079
+ * All votes for a particular voter. We store the balance for the number of votes that we
1080
+ * have recorded. The second item is the total amount of delegations, that will be added.
1081
+ *
1082
+ * TWOX-NOTE: SAFE as `AccountId`s are crypto hashes anyway.
1083
+ *
1084
+ * @param {AccountId32Like} arg
1085
+ * @param {Callback<PalletDemocracyVoteVoting> =} callback
1086
+ **/
1087
+ votingOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletDemocracyVoteVoting, AccountId32>;
1088
+ /**
1089
+ * True if the last referendum tabled was submitted externally. False if it was a public
1090
+ * proposal.
1091
+ *
1092
+ * @param {Callback<boolean> =} callback
1093
+ **/
1094
+ lastTabledWasExternal: GenericStorageQuery<Rv, () => boolean>;
1095
+ /**
1096
+ * The referendum to be tabled whenever it would be valid to table an external proposal.
1097
+ * This happens when a referendum needs to be tabled and one of two conditions are met:
1098
+ * - `LastTabledWasExternal` is `false`; or
1099
+ * - `PublicProps` is empty.
1100
+ *
1101
+ * @param {Callback<[FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined> =} callback
1102
+ **/
1103
+ nextExternal: GenericStorageQuery<Rv, () => [FrameSupportPreimagesBounded, PalletDemocracyVoteThreshold] | undefined>;
1104
+ /**
1105
+ * A record of who vetoed what. Maps proposal hash to a possible existent block number
1106
+ * (until when it may not be resubmitted) and who vetoed it.
1107
+ *
1108
+ * @param {H256} arg
1109
+ * @param {Callback<[number, Array<AccountId32>] | undefined> =} callback
1110
+ **/
1111
+ blacklist: GenericStorageQuery<Rv, (arg: H256) => [number, Array<AccountId32>] | undefined, H256>;
1112
+ /**
1113
+ * Record of all proposals that have been subject to emergency cancellation.
1114
+ *
1115
+ * @param {H256} arg
1116
+ * @param {Callback<boolean> =} callback
1117
+ **/
1118
+ cancellations: GenericStorageQuery<Rv, (arg: H256) => boolean, H256>;
1119
+ /**
1120
+ * General information concerning any proposal or referendum.
1121
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1122
+ * dump or IPFS hash of a JSON file.
1123
+ *
1124
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1125
+ * large preimages.
1126
+ *
1127
+ * @param {PalletDemocracyMetadataOwner} arg
1128
+ * @param {Callback<H256 | undefined> =} callback
1129
+ **/
1130
+ metadataOf: GenericStorageQuery<Rv, (arg: PalletDemocracyMetadataOwner) => H256 | undefined, PalletDemocracyMetadataOwner>;
1131
+ /**
1132
+ * Generic pallet storage query
1133
+ **/
1134
+ [storage: string]: GenericStorageQuery<Rv>;
1135
+ };
1136
+ /**
1137
+ * Pallet `Council`'s storage queries
1138
+ **/
1139
+ council: {
1140
+ /**
1141
+ * The hashes of the active proposals.
1142
+ *
1143
+ * @param {Callback<Array<H256>> =} callback
1144
+ **/
1145
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
1146
+ /**
1147
+ * Actual proposal for a given hash, if it's current.
1148
+ *
1149
+ * @param {H256} arg
1150
+ * @param {Callback<KitchensinkRuntimeRuntimeCall | undefined> =} callback
1151
+ **/
1152
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>;
1153
+ /**
1154
+ * Votes on a given proposal, if it is ongoing.
1155
+ *
1156
+ * @param {H256} arg
1157
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1158
+ **/
1159
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
1160
+ /**
1161
+ * Proposals so far.
1162
+ *
1163
+ * @param {Callback<number> =} callback
1164
+ **/
1165
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1166
+ /**
1167
+ * The current members of the collective. This is stored sorted (just by value).
1168
+ *
1169
+ * @param {Callback<Array<AccountId32>> =} callback
1170
+ **/
1171
+ members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
1172
+ /**
1173
+ * The prime member that helps determine the default vote behavior in case of absentations.
1174
+ *
1175
+ * @param {Callback<AccountId32 | undefined> =} callback
1176
+ **/
1177
+ prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1178
+ /**
1179
+ * Generic pallet storage query
1180
+ **/
1181
+ [storage: string]: GenericStorageQuery<Rv>;
1182
+ };
1183
+ /**
1184
+ * Pallet `TechnicalCommittee`'s storage queries
1185
+ **/
1186
+ technicalCommittee: {
1187
+ /**
1188
+ * The hashes of the active proposals.
1189
+ *
1190
+ * @param {Callback<Array<H256>> =} callback
1191
+ **/
1192
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
1193
+ /**
1194
+ * Actual proposal for a given hash, if it's current.
1195
+ *
1196
+ * @param {H256} arg
1197
+ * @param {Callback<KitchensinkRuntimeRuntimeCall | undefined> =} callback
1198
+ **/
1199
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>;
1200
+ /**
1201
+ * Votes on a given proposal, if it is ongoing.
1202
+ *
1203
+ * @param {H256} arg
1204
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
1205
+ **/
1206
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
1207
+ /**
1208
+ * Proposals so far.
1209
+ *
1210
+ * @param {Callback<number> =} callback
1211
+ **/
1212
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1213
+ /**
1214
+ * The current members of the collective. This is stored sorted (just by value).
1215
+ *
1216
+ * @param {Callback<Array<AccountId32>> =} callback
1217
+ **/
1218
+ members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
1219
+ /**
1220
+ * The prime member that helps determine the default vote behavior in case of absentations.
1221
+ *
1222
+ * @param {Callback<AccountId32 | undefined> =} callback
1223
+ **/
1224
+ prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1225
+ /**
1226
+ * Generic pallet storage query
1227
+ **/
1228
+ [storage: string]: GenericStorageQuery<Rv>;
1229
+ };
1230
+ /**
1231
+ * Pallet `Elections`'s storage queries
1232
+ **/
1233
+ elections: {
1234
+ /**
1235
+ * The current elected members.
1236
+ *
1237
+ * Invariant: Always sorted based on account id.
1238
+ *
1239
+ * @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
1240
+ **/
1241
+ members: GenericStorageQuery<Rv, () => Array<PalletElectionsPhragmenSeatHolder>>;
1242
+ /**
1243
+ * The current reserved runners-up.
1244
+ *
1245
+ * Invariant: Always sorted based on rank (worse to best). Upon removal of a member, the
1246
+ * last (i.e. _best_) runner-up will be replaced.
1247
+ *
1248
+ * @param {Callback<Array<PalletElectionsPhragmenSeatHolder>> =} callback
1249
+ **/
1250
+ runnersUp: GenericStorageQuery<Rv, () => Array<PalletElectionsPhragmenSeatHolder>>;
1251
+ /**
1252
+ * The present candidate list. A current member or runner-up can never enter this vector
1253
+ * and is always implicitly assumed to be a candidate.
1254
+ *
1255
+ * Second element is the deposit.
1256
+ *
1257
+ * Invariant: Always sorted based on account id.
1258
+ *
1259
+ * @param {Callback<Array<[AccountId32, bigint]>> =} callback
1260
+ **/
1261
+ candidates: GenericStorageQuery<Rv, () => Array<[AccountId32, bigint]>>;
1262
+ /**
1263
+ * The total number of vote rounds that have happened, excluding the upcoming one.
1264
+ *
1265
+ * @param {Callback<number> =} callback
1266
+ **/
1267
+ electionRounds: GenericStorageQuery<Rv, () => number>;
1268
+ /**
1269
+ * Votes and locked stake of a particular voter.
1270
+ *
1271
+ * TWOX-NOTE: SAFE as `AccountId` is a crypto hash.
1272
+ *
1273
+ * @param {AccountId32Like} arg
1274
+ * @param {Callback<PalletElectionsPhragmenVoter> =} callback
1275
+ **/
1276
+ voting: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletElectionsPhragmenVoter, AccountId32>;
1277
+ /**
1278
+ * Generic pallet storage query
1279
+ **/
1280
+ [storage: string]: GenericStorageQuery<Rv>;
1281
+ };
1282
+ /**
1283
+ * Pallet `TechnicalMembership`'s storage queries
1284
+ **/
1285
+ technicalMembership: {
1286
+ /**
1287
+ * The current membership, stored as an ordered Vec.
1288
+ *
1289
+ * @param {Callback<Array<AccountId32>> =} callback
1290
+ **/
1291
+ members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
1292
+ /**
1293
+ * The current prime member, if one exists.
1294
+ *
1295
+ * @param {Callback<AccountId32 | undefined> =} callback
1296
+ **/
1297
+ prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1298
+ /**
1299
+ * Generic pallet storage query
1300
+ **/
1301
+ [storage: string]: GenericStorageQuery<Rv>;
1302
+ };
1303
+ /**
1304
+ * Pallet `Grandpa`'s storage queries
1305
+ **/
1306
+ grandpa: {
1307
+ /**
1308
+ * State of the current authority set.
1309
+ *
1310
+ * @param {Callback<PalletGrandpaStoredState> =} callback
1311
+ **/
1312
+ state: GenericStorageQuery<Rv, () => PalletGrandpaStoredState>;
1313
+ /**
1314
+ * Pending change: (signaled at, scheduled change).
1315
+ *
1316
+ * @param {Callback<PalletGrandpaStoredPendingChange | undefined> =} callback
1317
+ **/
1318
+ pendingChange: GenericStorageQuery<Rv, () => PalletGrandpaStoredPendingChange | undefined>;
1319
+ /**
1320
+ * next block number where we can force a change.
1321
+ *
1322
+ * @param {Callback<number | undefined> =} callback
1323
+ **/
1324
+ nextForced: GenericStorageQuery<Rv, () => number | undefined>;
1325
+ /**
1326
+ * `true` if we are currently stalled.
1327
+ *
1328
+ * @param {Callback<[number, number] | undefined> =} callback
1329
+ **/
1330
+ stalled: GenericStorageQuery<Rv, () => [number, number] | undefined>;
1331
+ /**
1332
+ * The number of changes (both in terms of keys and underlying economic responsibilities)
1333
+ * in the "set" of Grandpa validators from genesis.
1334
+ *
1335
+ * @param {Callback<bigint> =} callback
1336
+ **/
1337
+ currentSetId: GenericStorageQuery<Rv, () => bigint>;
1338
+ /**
1339
+ * A mapping from grandpa set ID to the index of the *most recent* session for which its
1340
+ * members were responsible.
1341
+ *
1342
+ * This is only used for validating equivocation proofs. An equivocation proof must
1343
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
1344
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
1345
+ * was the owner of a given key on a given session, and what the active set ID was
1346
+ * during that session.
1347
+ *
1348
+ * TWOX-NOTE: `SetId` is not under user control.
1349
+ *
1350
+ * @param {bigint} arg
1351
+ * @param {Callback<number | undefined> =} callback
1352
+ **/
1353
+ setIdSession: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
1354
+ /**
1355
+ * The current list of authorities.
1356
+ *
1357
+ * @param {Callback<Array<[SpConsensusGrandpaAppPublic, bigint]>> =} callback
1358
+ **/
1359
+ authorities: GenericStorageQuery<Rv, () => Array<[SpConsensusGrandpaAppPublic, bigint]>>;
1360
+ /**
1361
+ * Generic pallet storage query
1362
+ **/
1363
+ [storage: string]: GenericStorageQuery<Rv>;
1364
+ };
1365
+ /**
1366
+ * Pallet `Treasury`'s storage queries
1367
+ **/
1368
+ treasury: {
1369
+ /**
1370
+ * Number of proposals that have been made.
1371
+ *
1372
+ * @param {Callback<number> =} callback
1373
+ **/
1374
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1375
+ /**
1376
+ * Proposals that have been made.
1377
+ *
1378
+ * @param {number} arg
1379
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1380
+ **/
1381
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
1382
+ /**
1383
+ * The amount which has been reported as inactive to Currency.
1384
+ *
1385
+ * @param {Callback<bigint> =} callback
1386
+ **/
1387
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
1388
+ /**
1389
+ * Proposal indices that have been approved but not yet awarded.
1390
+ *
1391
+ * @param {Callback<Array<number>> =} callback
1392
+ **/
1393
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
1394
+ /**
1395
+ * The count of spends that have been made.
1396
+ *
1397
+ * @param {Callback<number> =} callback
1398
+ **/
1399
+ spendCount: GenericStorageQuery<Rv, () => number>;
1400
+ /**
1401
+ * Spends that have been approved and being processed.
1402
+ *
1403
+ * @param {number} arg
1404
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
1405
+ **/
1406
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
1407
+ /**
1408
+ * Generic pallet storage query
1409
+ **/
1410
+ [storage: string]: GenericStorageQuery<Rv>;
1411
+ };
1412
+ /**
1413
+ * Pallet `AssetRate`'s storage queries
1414
+ **/
1415
+ assetRate: {
1416
+ /**
1417
+ * Maps an asset to its fixed point representation in the native balance.
1418
+ *
1419
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
1420
+ *
1421
+ * @param {number} arg
1422
+ * @param {Callback<FixedU128 | undefined> =} callback
1423
+ **/
1424
+ conversionRateToNative: GenericStorageQuery<Rv, (arg: number) => FixedU128 | undefined, number>;
1425
+ /**
1426
+ * Generic pallet storage query
1427
+ **/
1428
+ [storage: string]: GenericStorageQuery<Rv>;
1429
+ };
1430
+ /**
1431
+ * Pallet `Contracts`'s storage queries
1432
+ **/
1433
+ contracts: {
1434
+ /**
1435
+ * A mapping from a contract's code hash to its code.
1436
+ *
1437
+ * @param {H256} arg
1438
+ * @param {Callback<Bytes | undefined> =} callback
1439
+ **/
1440
+ pristineCode: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
1441
+ /**
1442
+ * A mapping from a contract's code hash to its code info.
1443
+ *
1444
+ * @param {H256} arg
1445
+ * @param {Callback<PalletContractsWasmCodeInfo | undefined> =} callback
1446
+ **/
1447
+ codeInfoOf: GenericStorageQuery<Rv, (arg: H256) => PalletContractsWasmCodeInfo | undefined, H256>;
1448
+ /**
1449
+ * This is a **monotonic** counter incremented on contract instantiation.
1450
+ *
1451
+ * This is used in order to generate unique trie ids for contracts.
1452
+ * The trie id of a new contract is calculated from hash(account_id, nonce).
1453
+ * The nonce is required because otherwise the following sequence would lead to
1454
+ * a possible collision of storage:
1455
+ *
1456
+ * 1. Create a new contract.
1457
+ * 2. Terminate the contract.
1458
+ * 3. Immediately recreate the contract with the same account_id.
1459
+ *
1460
+ * This is bad because the contents of a trie are deleted lazily and there might be
1461
+ * storage of the old instantiation still in it when the new contract is created. Please
1462
+ * note that we can't replace the counter by the block number because the sequence above
1463
+ * can happen in the same block. We also can't keep the account counter in memory only
1464
+ * because storage is the only way to communicate across different extrinsics in the
1465
+ * same block.
1466
+ *
1467
+ * # Note
1468
+ *
1469
+ * Do not use it to determine the number of contracts. It won't be decremented if
1470
+ * a contract is destroyed.
1471
+ *
1472
+ * @param {Callback<bigint> =} callback
1473
+ **/
1474
+ nonce: GenericStorageQuery<Rv, () => bigint>;
1475
+ /**
1476
+ * The code associated with a given account.
1477
+ *
1478
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1479
+ *
1480
+ * @param {AccountId32Like} arg
1481
+ * @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
1482
+ **/
1483
+ contractInfoOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined, AccountId32>;
1484
+ /**
1485
+ * Evicted contracts that await child trie deletion.
1486
+ *
1487
+ * Child trie deletion is a heavy operation depending on the amount of storage items
1488
+ * stored in said trie. Therefore this operation is performed lazily in `on_idle`.
1489
+ *
1490
+ * @param {number} arg
1491
+ * @param {Callback<Bytes | undefined> =} callback
1492
+ **/
1493
+ deletionQueue: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
1494
+ /**
1495
+ * A pair of monotonic counters used to track the latest contract marked for deletion
1496
+ * and the latest deleted contract in queue.
1497
+ *
1498
+ * @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
1499
+ **/
1500
+ deletionQueueCounter: GenericStorageQuery<Rv, () => PalletContractsStorageDeletionQueueManager>;
1501
+ /**
1502
+ * A migration can span across multiple blocks. This storage defines a cursor to track the
1503
+ * progress of the migration, enabling us to resume from the last completed position.
1504
+ *
1505
+ * @param {Callback<Bytes | undefined> =} callback
1506
+ **/
1507
+ migrationInProgress: GenericStorageQuery<Rv, () => Bytes | undefined>;
1508
+ /**
1509
+ * Generic pallet storage query
1510
+ **/
1511
+ [storage: string]: GenericStorageQuery<Rv>;
1512
+ };
1513
+ /**
1514
+ * Pallet `Sudo`'s storage queries
1515
+ **/
1516
+ sudo: {
1517
+ /**
1518
+ * The `AccountId` of the sudo key.
1519
+ *
1520
+ * @param {Callback<AccountId32 | undefined> =} callback
1521
+ **/
1522
+ key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1523
+ /**
1524
+ * Generic pallet storage query
1525
+ **/
1526
+ [storage: string]: GenericStorageQuery<Rv>;
1527
+ };
1528
+ /**
1529
+ * Pallet `ImOnline`'s storage queries
1530
+ **/
1531
+ imOnline: {
1532
+ /**
1533
+ * The block number after which it's ok to send heartbeats in the current
1534
+ * session.
1535
+ *
1536
+ * At the beginning of each session we set this to a value that should fall
1537
+ * roughly in the middle of the session duration. The idea is to first wait for
1538
+ * the validators to produce a block in the current session, so that the
1539
+ * heartbeat later on will not be necessary.
1540
+ *
1541
+ * This value will only be used as a fallback if we fail to get a proper session
1542
+ * progress estimate from `NextSessionRotation`, as those estimates should be
1543
+ * more accurate then the value we calculate for `HeartbeatAfter`.
1544
+ *
1545
+ * @param {Callback<number> =} callback
1546
+ **/
1547
+ heartbeatAfter: GenericStorageQuery<Rv, () => number>;
1548
+ /**
1549
+ * The current set of keys that may issue a heartbeat.
1550
+ *
1551
+ * @param {Callback<Array<PalletImOnlineSr25519AppSr25519Public>> =} callback
1552
+ **/
1553
+ keys: GenericStorageQuery<Rv, () => Array<PalletImOnlineSr25519AppSr25519Public>>;
1554
+ /**
1555
+ * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
1556
+ *
1557
+ * @param {[number, number]} arg
1558
+ * @param {Callback<boolean | undefined> =} callback
1559
+ **/
1560
+ receivedHeartbeats: GenericStorageQuery<Rv, (arg: [number, number]) => boolean | undefined, [number, number]>;
1561
+ /**
1562
+ * For each session index, we keep a mapping of `ValidatorId<T>` to the
1563
+ * number of blocks authored by the given authority.
1564
+ *
1565
+ * @param {[number, AccountId32Like]} arg
1566
+ * @param {Callback<number> =} callback
1567
+ **/
1568
+ authoredBlocks: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => number, [number, AccountId32]>;
1569
+ /**
1570
+ * Generic pallet storage query
1571
+ **/
1572
+ [storage: string]: GenericStorageQuery<Rv>;
1573
+ };
1574
+ /**
1575
+ * Pallet `AuthorityDiscovery`'s storage queries
1576
+ **/
1577
+ authorityDiscovery: {
1578
+ /**
1579
+ * Keys of the current authority set.
1580
+ *
1581
+ * @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
1582
+ **/
1583
+ keys: GenericStorageQuery<Rv, () => Array<SpAuthorityDiscoveryAppPublic>>;
1584
+ /**
1585
+ * Keys of the next authority set.
1586
+ *
1587
+ * @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
1588
+ **/
1589
+ nextKeys: GenericStorageQuery<Rv, () => Array<SpAuthorityDiscoveryAppPublic>>;
1590
+ /**
1591
+ * Generic pallet storage query
1592
+ **/
1593
+ [storage: string]: GenericStorageQuery<Rv>;
1594
+ };
1595
+ /**
1596
+ * Pallet `Offences`'s storage queries
1597
+ **/
1598
+ offences: {
1599
+ /**
1600
+ * The primary structure that holds all offence records keyed by report identifiers.
1601
+ *
1602
+ * @param {H256} arg
1603
+ * @param {Callback<SpStakingOffenceOffenceDetails | undefined> =} callback
1604
+ **/
1605
+ reports: GenericStorageQuery<Rv, (arg: H256) => SpStakingOffenceOffenceDetails | undefined, H256>;
1606
+ /**
1607
+ * A vector of reports of the same kind that happened at the same time slot.
1608
+ *
1609
+ * @param {[FixedBytes<16>, BytesLike]} arg
1610
+ * @param {Callback<Array<H256>> =} callback
1611
+ **/
1612
+ concurrentReportsIndex: GenericStorageQuery<Rv, (arg: [FixedBytes<16>, BytesLike]) => Array<H256>, [
1613
+ FixedBytes<16>,
1614
+ Bytes
1615
+ ]>;
1616
+ /**
1617
+ * Generic pallet storage query
1618
+ **/
1619
+ [storage: string]: GenericStorageQuery<Rv>;
1620
+ };
1621
+ /**
1622
+ * Pallet `Historical`'s storage queries
1623
+ **/
1624
+ historical: {
1625
+ /**
1626
+ * Mapping from historical session indices to session-data root hash and validator count.
1627
+ *
1628
+ * @param {number} arg
1629
+ * @param {Callback<[H256, number] | undefined> =} callback
1630
+ **/
1631
+ historicalSessions: GenericStorageQuery<Rv, (arg: number) => [H256, number] | undefined, number>;
1632
+ /**
1633
+ * The range of historical sessions we store. [first, last)
1634
+ *
1635
+ * @param {Callback<[number, number] | undefined> =} callback
1636
+ **/
1637
+ storedRange: GenericStorageQuery<Rv, () => [number, number] | undefined>;
1638
+ /**
1639
+ * Generic pallet storage query
1640
+ **/
1641
+ [storage: string]: GenericStorageQuery<Rv>;
1642
+ };
1643
+ /**
1644
+ * Pallet `RandomnessCollectiveFlip`'s storage queries
1645
+ **/
1646
+ randomnessCollectiveFlip: {
1647
+ /**
1648
+ * Series of block headers from the last 81 blocks that acts as random seed material. This
1649
+ * is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
1650
+ * the oldest hash.
1651
+ *
1652
+ * @param {Callback<Array<H256>> =} callback
1653
+ **/
1654
+ randomMaterial: GenericStorageQuery<Rv, () => Array<H256>>;
1655
+ /**
1656
+ * Generic pallet storage query
1657
+ **/
1658
+ [storage: string]: GenericStorageQuery<Rv>;
1659
+ };
1660
+ /**
1661
+ * Pallet `Identity`'s storage queries
1662
+ **/
1663
+ identity: {
1664
+ /**
1665
+ * Information that is pertinent to identify the entity behind an account. First item is the
1666
+ * registration, second is the account's primary username.
1667
+ *
1668
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1669
+ *
1670
+ * @param {AccountId32Like} arg
1671
+ * @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
1672
+ **/
1673
+ identityOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined, AccountId32>;
1674
+ /**
1675
+ * The super-identity of an alternative "sub" identity together with its name, within that
1676
+ * context. If the account is not some other account's sub-identity, then just `None`.
1677
+ *
1678
+ * @param {AccountId32Like} arg
1679
+ * @param {Callback<[AccountId32, Data] | undefined> =} callback
1680
+ **/
1681
+ superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
1682
+ /**
1683
+ * Alternative "sub" identities of this account.
1684
+ *
1685
+ * The first item is the deposit, the second is a vector of the accounts.
1686
+ *
1687
+ * TWOX-NOTE: OK ― `AccountId` is a secure hash.
1688
+ *
1689
+ * @param {AccountId32Like} arg
1690
+ * @param {Callback<[bigint, Array<AccountId32>]> =} callback
1691
+ **/
1692
+ subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
1693
+ /**
1694
+ * The set of registrars. Not expected to get very big as can only be added through a
1695
+ * special origin (likely a council motion).
1696
+ *
1697
+ * The index into this can be cast to `RegistrarIndex` to get a valid value.
1698
+ *
1699
+ * @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
1700
+ **/
1701
+ registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
1702
+ /**
1703
+ * A map of the accounts who are authorized to grant usernames.
1704
+ *
1705
+ * @param {AccountId32Like} arg
1706
+ * @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
1707
+ **/
1708
+ usernameAuthorities: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined, AccountId32>;
1709
+ /**
1710
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
1711
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
1712
+ *
1713
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
1714
+ * primary username.
1715
+ *
1716
+ * @param {BytesLike} arg
1717
+ * @param {Callback<AccountId32 | undefined> =} callback
1718
+ **/
1719
+ accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
1720
+ /**
1721
+ * Usernames that an authority has granted, but that the account controller has not confirmed
1722
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
1723
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
1724
+ * [`Call::accept_username`].
1725
+ *
1726
+ * First tuple item is the account and second is the acceptance deadline.
1727
+ *
1728
+ * @param {BytesLike} arg
1729
+ * @param {Callback<[AccountId32, number] | undefined> =} callback
1730
+ **/
1731
+ pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
1732
+ /**
1733
+ * Generic pallet storage query
1734
+ **/
1735
+ [storage: string]: GenericStorageQuery<Rv>;
1736
+ };
1737
+ /**
1738
+ * Pallet `Society`'s storage queries
1739
+ **/
1740
+ society: {
1741
+ /**
1742
+ * The max number of members for the society at one time.
1743
+ *
1744
+ * @param {Callback<PalletSocietyGroupParams | undefined> =} callback
1745
+ **/
1746
+ parameters: GenericStorageQuery<Rv, () => PalletSocietyGroupParams | undefined>;
1747
+ /**
1748
+ * Amount of our account balance that is specifically for the next round's bid(s).
1749
+ *
1750
+ * @param {Callback<bigint> =} callback
1751
+ **/
1752
+ pot: GenericStorageQuery<Rv, () => bigint>;
1753
+ /**
1754
+ * The first member.
1755
+ *
1756
+ * @param {Callback<AccountId32 | undefined> =} callback
1757
+ **/
1758
+ founder: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1759
+ /**
1760
+ * The most primary from the most recently approved rank 0 members in the society.
1761
+ *
1762
+ * @param {Callback<AccountId32 | undefined> =} callback
1763
+ **/
1764
+ head: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1765
+ /**
1766
+ * A hash of the rules of this society concerning membership. Can only be set once and
1767
+ * only by the founder.
1768
+ *
1769
+ * @param {Callback<H256 | undefined> =} callback
1770
+ **/
1771
+ rules: GenericStorageQuery<Rv, () => H256 | undefined>;
1772
+ /**
1773
+ * The current members and their rank. Doesn't include `SuspendedMembers`.
1774
+ *
1775
+ * @param {AccountId32Like} arg
1776
+ * @param {Callback<PalletSocietyMemberRecord | undefined> =} callback
1777
+ **/
1778
+ members: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletSocietyMemberRecord | undefined, AccountId32>;
1779
+ /**
1780
+ * Information regarding rank-0 payouts, past and future.
1781
+ *
1782
+ * @param {AccountId32Like} arg
1783
+ * @param {Callback<PalletSocietyPayoutRecord> =} callback
1784
+ **/
1785
+ payouts: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletSocietyPayoutRecord, AccountId32>;
1786
+ /**
1787
+ * The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)
1788
+ *
1789
+ * @param {Callback<number> =} callback
1790
+ **/
1791
+ memberCount: GenericStorageQuery<Rv, () => number>;
1792
+ /**
1793
+ * The current items in `Members` keyed by their unique index. Keys are densely populated
1794
+ * `0..MemberCount` (does not include `MemberCount`).
1795
+ *
1796
+ * @param {number} arg
1797
+ * @param {Callback<AccountId32 | undefined> =} callback
1798
+ **/
1799
+ memberByIndex: GenericStorageQuery<Rv, (arg: number) => AccountId32 | undefined, number>;
1800
+ /**
1801
+ * The set of suspended members, with their old membership record.
1802
+ *
1803
+ * @param {AccountId32Like} arg
1804
+ * @param {Callback<PalletSocietyMemberRecord | undefined> =} callback
1805
+ **/
1806
+ suspendedMembers: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletSocietyMemberRecord | undefined, AccountId32>;
1807
+ /**
1808
+ * The number of rounds which have passed.
1809
+ *
1810
+ * @param {Callback<number> =} callback
1811
+ **/
1812
+ roundCount: GenericStorageQuery<Rv, () => number>;
1813
+ /**
1814
+ * The current bids, stored ordered by the value of the bid.
1815
+ *
1816
+ * @param {Callback<Array<PalletSocietyBid>> =} callback
1817
+ **/
1818
+ bids: GenericStorageQuery<Rv, () => Array<PalletSocietyBid>>;
1819
+ /**
1820
+ *
1821
+ * @param {AccountId32Like} arg
1822
+ * @param {Callback<PalletSocietyCandidacy | undefined> =} callback
1823
+ **/
1824
+ candidates: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletSocietyCandidacy | undefined, AccountId32>;
1825
+ /**
1826
+ * The current skeptic.
1827
+ *
1828
+ * @param {Callback<AccountId32 | undefined> =} callback
1829
+ **/
1830
+ skeptic: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
1831
+ /**
1832
+ * Double map from Candidate -> Voter -> (Maybe) Vote.
1833
+ *
1834
+ * @param {[AccountId32Like, AccountId32Like]} arg
1835
+ * @param {Callback<PalletSocietyVote | undefined> =} callback
1836
+ **/
1837
+ votes: GenericStorageQuery<Rv, (arg: [AccountId32Like, AccountId32Like]) => PalletSocietyVote | undefined, [
1838
+ AccountId32,
1839
+ AccountId32
1840
+ ]>;
1841
+ /**
1842
+ * Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor.
1843
+ *
1844
+ * @param {AccountId32Like} arg
1845
+ * @param {Callback<Bytes | undefined> =} callback
1846
+ **/
1847
+ voteClearCursor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Bytes | undefined, AccountId32>;
1848
+ /**
1849
+ * At the end of the claim period, this contains the most recently approved members (along with
1850
+ * their bid and round ID) who is from the most recent round with the lowest bid. They will
1851
+ * become the new `Head`.
1852
+ *
1853
+ * @param {Callback<PalletSocietyIntakeRecord | undefined> =} callback
1854
+ **/
1855
+ nextHead: GenericStorageQuery<Rv, () => PalletSocietyIntakeRecord | undefined>;
1856
+ /**
1857
+ * The number of challenge rounds there have been. Used to identify stale DefenderVotes.
1858
+ *
1859
+ * @param {Callback<number> =} callback
1860
+ **/
1861
+ challengeRoundCount: GenericStorageQuery<Rv, () => number>;
1862
+ /**
1863
+ * The defending member currently being challenged, along with a running tally of votes.
1864
+ *
1865
+ * @param {Callback<[AccountId32, AccountId32, PalletSocietyTally] | undefined> =} callback
1866
+ **/
1867
+ defending: GenericStorageQuery<Rv, () => [AccountId32, AccountId32, PalletSocietyTally] | undefined>;
1868
+ /**
1869
+ * Votes for the defender, keyed by challenge round.
1870
+ *
1871
+ * @param {[number, AccountId32Like]} arg
1872
+ * @param {Callback<PalletSocietyVote | undefined> =} callback
1873
+ **/
1874
+ defenderVotes: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => PalletSocietyVote | undefined, [
1875
+ number,
1876
+ AccountId32
1877
+ ]>;
1878
+ /**
1879
+ * Generic pallet storage query
1880
+ **/
1881
+ [storage: string]: GenericStorageQuery<Rv>;
1882
+ };
1883
+ /**
1884
+ * Pallet `Recovery`'s storage queries
1885
+ **/
1886
+ recovery: {
1887
+ /**
1888
+ * The set of recoverable accounts and their recovery configuration.
1889
+ *
1890
+ * @param {AccountId32Like} arg
1891
+ * @param {Callback<PalletRecoveryRecoveryConfig | undefined> =} callback
1892
+ **/
1893
+ recoverable: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletRecoveryRecoveryConfig | undefined, AccountId32>;
1894
+ /**
1895
+ * Active recovery attempts.
1896
+ *
1897
+ * First account is the account to be recovered, and the second account
1898
+ * is the user trying to recover the account.
1899
+ *
1900
+ * @param {[AccountId32Like, AccountId32Like]} arg
1901
+ * @param {Callback<PalletRecoveryActiveRecovery | undefined> =} callback
1902
+ **/
1903
+ activeRecoveries: GenericStorageQuery<Rv, (arg: [AccountId32Like, AccountId32Like]) => PalletRecoveryActiveRecovery | undefined, [
1904
+ AccountId32,
1905
+ AccountId32
1906
+ ]>;
1907
+ /**
1908
+ * The list of allowed proxy accounts.
1909
+ *
1910
+ * Map from the user who can access it to the recovered account.
1911
+ *
1912
+ * @param {AccountId32Like} arg
1913
+ * @param {Callback<AccountId32 | undefined> =} callback
1914
+ **/
1915
+ proxy: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
1916
+ /**
1917
+ * Generic pallet storage query
1918
+ **/
1919
+ [storage: string]: GenericStorageQuery<Rv>;
1920
+ };
1921
+ /**
1922
+ * Pallet `Vesting`'s storage queries
1923
+ **/
1924
+ vesting: {
1925
+ /**
1926
+ * Information regarding the vesting of a given account.
1927
+ *
1928
+ * @param {AccountId32Like} arg
1929
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
1930
+ **/
1931
+ vesting: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined, AccountId32>;
1932
+ /**
1933
+ * Storage version of the pallet.
1934
+ *
1935
+ * New networks start with latest version, as determined by the genesis build.
1936
+ *
1937
+ * @param {Callback<PalletVestingReleases> =} callback
1938
+ **/
1939
+ storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
1940
+ /**
1941
+ * Generic pallet storage query
1942
+ **/
1943
+ [storage: string]: GenericStorageQuery<Rv>;
1944
+ };
1945
+ /**
1946
+ * Pallet `Scheduler`'s storage queries
1947
+ **/
1948
+ scheduler: {
1949
+ /**
1950
+ *
1951
+ * @param {Callback<number | undefined> =} callback
1952
+ **/
1953
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
1954
+ /**
1955
+ * Items to be executed, indexed by the block number that they should be executed on.
1956
+ *
1957
+ * @param {number} arg
1958
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
1959
+ **/
1960
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
1961
+ /**
1962
+ * Retry configurations for items to be executed, indexed by task address.
1963
+ *
1964
+ * @param {[number, number]} arg
1965
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
1966
+ **/
1967
+ retries: GenericStorageQuery<Rv, (arg: [number, number]) => PalletSchedulerRetryConfig | undefined, [
1968
+ number,
1969
+ number
1970
+ ]>;
1971
+ /**
1972
+ * Lookup from a name to the block number and index of the task.
1973
+ *
1974
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
1975
+ * identities.
1976
+ *
1977
+ * @param {FixedBytes<32>} arg
1978
+ * @param {Callback<[number, number] | undefined> =} callback
1979
+ **/
1980
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
1981
+ /**
1982
+ * Generic pallet storage query
1983
+ **/
1984
+ [storage: string]: GenericStorageQuery<Rv>;
1985
+ };
1986
+ /**
1987
+ * Pallet `Glutton`'s storage queries
1988
+ **/
1989
+ glutton: {
1990
+ /**
1991
+ * The proportion of the remaining `ref_time` to consume during `on_idle`.
1992
+ *
1993
+ * `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
1994
+ * over `1.0` could stall the chain.
1995
+ *
1996
+ * @param {Callback<FixedU64> =} callback
1997
+ **/
1998
+ compute: GenericStorageQuery<Rv, () => FixedU64>;
1999
+ /**
2000
+ * The proportion of the remaining `proof_size` to consume during `on_idle`.
2001
+ *
2002
+ * `1.0` is mapped to `100%`. Must be at most [`crate::RESOURCE_HARD_LIMIT`]. Setting this to
2003
+ * over `1.0` could stall the chain.
2004
+ *
2005
+ * @param {Callback<FixedU64> =} callback
2006
+ **/
2007
+ storage: GenericStorageQuery<Rv, () => FixedU64>;
2008
+ /**
2009
+ * Storage map used for wasting proof size.
2010
+ *
2011
+ * It contains no meaningful data - hence the name "Trash". The maximal number of entries is
2012
+ * set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof
2013
+ * size benchmarking overestimate. The assumption here is that we won't have more than 65k *
2014
+ * 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the
2015
+ * pallet would also work out of the box with more entries, but its benchmarked proof weight
2016
+ * would possibly be underestimated in that case.
2017
+ *
2018
+ * @param {number} arg
2019
+ * @param {Callback<FixedBytes<1024> | undefined> =} callback
2020
+ **/
2021
+ trashData: GenericStorageQuery<Rv, (arg: number) => FixedBytes<1024> | undefined, number>;
2022
+ /**
2023
+ * The current number of entries in `TrashData`.
2024
+ *
2025
+ * @param {Callback<number> =} callback
2026
+ **/
2027
+ trashDataCount: GenericStorageQuery<Rv, () => number>;
2028
+ /**
2029
+ * Generic pallet storage query
2030
+ **/
2031
+ [storage: string]: GenericStorageQuery<Rv>;
2032
+ };
2033
+ /**
2034
+ * Pallet `Preimage`'s storage queries
2035
+ **/
2036
+ preimage: {
2037
+ /**
2038
+ * The request status of a given hash.
2039
+ *
2040
+ * @param {H256} arg
2041
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
2042
+ **/
2043
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
2044
+ /**
2045
+ * The request status of a given hash.
2046
+ *
2047
+ * @param {H256} arg
2048
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
2049
+ **/
2050
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
2051
+ /**
2052
+ *
2053
+ * @param {[H256, number]} arg
2054
+ * @param {Callback<Bytes | undefined> =} callback
2055
+ **/
2056
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
2057
+ /**
2058
+ * Generic pallet storage query
2059
+ **/
2060
+ [storage: string]: GenericStorageQuery<Rv>;
2061
+ };
2062
+ /**
2063
+ * Pallet `Proxy`'s storage queries
2064
+ **/
2065
+ proxy: {
2066
+ /**
2067
+ * The set of account proxies. Maps the account which has delegated to the accounts
2068
+ * which are being delegated to, together with the amount held on deposit.
2069
+ *
2070
+ * @param {AccountId32Like} arg
2071
+ * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
2072
+ **/
2073
+ proxies: GenericStorageQuery<Rv, (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint], AccountId32>;
2074
+ /**
2075
+ * The announcements made by the proxy (key).
2076
+ *
2077
+ * @param {AccountId32Like} arg
2078
+ * @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
2079
+ **/
2080
+ announcements: GenericStorageQuery<Rv, (arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint], AccountId32>;
2081
+ /**
2082
+ * Generic pallet storage query
2083
+ **/
2084
+ [storage: string]: GenericStorageQuery<Rv>;
2085
+ };
2086
+ /**
2087
+ * Pallet `Multisig`'s storage queries
2088
+ **/
2089
+ multisig: {
2090
+ /**
2091
+ * The set of open multisig operations.
2092
+ *
2093
+ * @param {[AccountId32Like, FixedBytes<32>]} arg
2094
+ * @param {Callback<PalletMultisigMultisig | undefined> =} callback
2095
+ **/
2096
+ multisigs: GenericStorageQuery<Rv, (arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined, [
2097
+ AccountId32,
2098
+ FixedBytes<32>
2099
+ ]>;
2100
+ /**
2101
+ * Generic pallet storage query
2102
+ **/
2103
+ [storage: string]: GenericStorageQuery<Rv>;
2104
+ };
2105
+ /**
2106
+ * Pallet `Bounties`'s storage queries
2107
+ **/
2108
+ bounties: {
2109
+ /**
2110
+ * Number of bounty proposals that have been made.
2111
+ *
2112
+ * @param {Callback<number> =} callback
2113
+ **/
2114
+ bountyCount: GenericStorageQuery<Rv, () => number>;
2115
+ /**
2116
+ * Bounties that have been made.
2117
+ *
2118
+ * @param {number} arg
2119
+ * @param {Callback<PalletBountiesBounty | undefined> =} callback
2120
+ **/
2121
+ bounties: GenericStorageQuery<Rv, (arg: number) => PalletBountiesBounty | undefined, number>;
2122
+ /**
2123
+ * The description of each bounty.
2124
+ *
2125
+ * @param {number} arg
2126
+ * @param {Callback<Bytes | undefined> =} callback
2127
+ **/
2128
+ bountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
2129
+ /**
2130
+ * Bounty indices that have been approved but not yet funded.
2131
+ *
2132
+ * @param {Callback<Array<number>> =} callback
2133
+ **/
2134
+ bountyApprovals: GenericStorageQuery<Rv, () => Array<number>>;
2135
+ /**
2136
+ * Generic pallet storage query
2137
+ **/
2138
+ [storage: string]: GenericStorageQuery<Rv>;
2139
+ };
2140
+ /**
2141
+ * Pallet `Tips`'s storage queries
2142
+ **/
2143
+ tips: {
2144
+ /**
2145
+ * TipsMap that are not yet completed. Keyed by the hash of `(reason, who)` from the value.
2146
+ * This has the insecure enumerable hash function since the key itself is already
2147
+ * guaranteed to be a secure hash.
2148
+ *
2149
+ * @param {H256} arg
2150
+ * @param {Callback<PalletTipsOpenTip | undefined> =} callback
2151
+ **/
2152
+ tips: GenericStorageQuery<Rv, (arg: H256) => PalletTipsOpenTip | undefined, H256>;
2153
+ /**
2154
+ * Simple preimage lookup from the reason's hash to the original data. Again, has an
2155
+ * insecure enumerable hash since the key is guaranteed to be the result of a secure hash.
2156
+ *
2157
+ * @param {H256} arg
2158
+ * @param {Callback<Bytes | undefined> =} callback
2159
+ **/
2160
+ reasons: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
2161
+ /**
2162
+ * Generic pallet storage query
2163
+ **/
2164
+ [storage: string]: GenericStorageQuery<Rv>;
2165
+ };
2166
+ /**
2167
+ * Pallet `Assets`'s storage queries
2168
+ **/
2169
+ assets: {
2170
+ /**
2171
+ * Details of an asset.
2172
+ *
2173
+ * @param {number} arg
2174
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
2175
+ **/
2176
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
2177
+ /**
2178
+ * The holdings of a specific account for a specific asset.
2179
+ *
2180
+ * @param {[number, AccountId32Like]} arg
2181
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
2182
+ **/
2183
+ account: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, [
2184
+ number,
2185
+ AccountId32
2186
+ ]>;
2187
+ /**
2188
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
2189
+ * is the amount of `T::Currency` reserved for storing this.
2190
+ * First key is the asset ID, second key is the owner and third key is the delegate.
2191
+ *
2192
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
2193
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
2194
+ **/
2195
+ approvals: GenericStorageQuery<Rv, (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, [
2196
+ number,
2197
+ AccountId32,
2198
+ AccountId32
2199
+ ]>;
2200
+ /**
2201
+ * Metadata of an asset.
2202
+ *
2203
+ * @param {number} arg
2204
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
2205
+ **/
2206
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
2207
+ /**
2208
+ * Generic pallet storage query
2209
+ **/
2210
+ [storage: string]: GenericStorageQuery<Rv>;
2211
+ };
2212
+ /**
2213
+ * Pallet `PoolAssets`'s storage queries
2214
+ **/
2215
+ poolAssets: {
2216
+ /**
2217
+ * Details of an asset.
2218
+ *
2219
+ * @param {number} arg
2220
+ * @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
2221
+ **/
2222
+ asset: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetDetails | undefined, number>;
2223
+ /**
2224
+ * The holdings of a specific account for a specific asset.
2225
+ *
2226
+ * @param {[number, AccountId32Like]} arg
2227
+ * @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
2228
+ **/
2229
+ account: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => PalletAssetsAssetAccount | undefined, [
2230
+ number,
2231
+ AccountId32
2232
+ ]>;
2233
+ /**
2234
+ * Approved balance transfers. First balance is the amount approved for transfer. Second
2235
+ * is the amount of `T::Currency` reserved for storing this.
2236
+ * First key is the asset ID, second key is the owner and third key is the delegate.
2237
+ *
2238
+ * @param {[number, AccountId32Like, AccountId32Like]} arg
2239
+ * @param {Callback<PalletAssetsApproval | undefined> =} callback
2240
+ **/
2241
+ approvals: GenericStorageQuery<Rv, (arg: [number, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined, [
2242
+ number,
2243
+ AccountId32,
2244
+ AccountId32
2245
+ ]>;
2246
+ /**
2247
+ * Metadata of an asset.
2248
+ *
2249
+ * @param {number} arg
2250
+ * @param {Callback<PalletAssetsAssetMetadata> =} callback
2251
+ **/
2252
+ metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
2253
+ /**
2254
+ * Generic pallet storage query
2255
+ **/
2256
+ [storage: string]: GenericStorageQuery<Rv>;
2257
+ };
2258
+ /**
2259
+ * Pallet `Beefy`'s storage queries
2260
+ **/
2261
+ beefy: {
2262
+ /**
2263
+ * The current authorities set
2264
+ *
2265
+ * @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
2266
+ **/
2267
+ authorities: GenericStorageQuery<Rv, () => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
2268
+ /**
2269
+ * The current validator set id
2270
+ *
2271
+ * @param {Callback<bigint> =} callback
2272
+ **/
2273
+ validatorSetId: GenericStorageQuery<Rv, () => bigint>;
2274
+ /**
2275
+ * Authorities set scheduled to be used with the next session
2276
+ *
2277
+ * @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
2278
+ **/
2279
+ nextAuthorities: GenericStorageQuery<Rv, () => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
2280
+ /**
2281
+ * A mapping from BEEFY set ID to the index of the *most recent* session for which its
2282
+ * members were responsible.
2283
+ *
2284
+ * This is only used for validating equivocation proofs. An equivocation proof must
2285
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
2286
+ * together sessions and BEEFY set ids, i.e. we need to validate that a validator
2287
+ * was the owner of a given key on a given session, and what the active set ID was
2288
+ * during that session.
2289
+ *
2290
+ * TWOX-NOTE: `ValidatorSetId` is not under user control.
2291
+ *
2292
+ * @param {bigint} arg
2293
+ * @param {Callback<number | undefined> =} callback
2294
+ **/
2295
+ setIdSession: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
2296
+ /**
2297
+ * Block number where BEEFY consensus is enabled/started.
2298
+ * By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
2299
+ * restarted from the newly set block number.
2300
+ *
2301
+ * @param {Callback<number | undefined> =} callback
2302
+ **/
2303
+ genesisBlock: GenericStorageQuery<Rv, () => number | undefined>;
2304
+ /**
2305
+ * Generic pallet storage query
2306
+ **/
2307
+ [storage: string]: GenericStorageQuery<Rv>;
2308
+ };
2309
+ /**
2310
+ * Pallet `Mmr`'s storage queries
2311
+ **/
2312
+ mmr: {
2313
+ /**
2314
+ * Latest MMR Root hash.
2315
+ *
2316
+ * @param {Callback<H256> =} callback
2317
+ **/
2318
+ rootHash: GenericStorageQuery<Rv, () => H256>;
2319
+ /**
2320
+ * Current size of the MMR (number of leaves).
2321
+ *
2322
+ * @param {Callback<bigint> =} callback
2323
+ **/
2324
+ numberOfLeaves: GenericStorageQuery<Rv, () => bigint>;
2325
+ /**
2326
+ * Hashes of the nodes in the MMR.
2327
+ *
2328
+ * Note this collection only contains MMR peaks, the inner nodes (and leaves)
2329
+ * are pruned and only stored in the Offchain DB.
2330
+ *
2331
+ * @param {bigint} arg
2332
+ * @param {Callback<H256 | undefined> =} callback
2333
+ **/
2334
+ nodes: GenericStorageQuery<Rv, (arg: bigint) => H256 | undefined, bigint>;
2335
+ /**
2336
+ * Generic pallet storage query
2337
+ **/
2338
+ [storage: string]: GenericStorageQuery<Rv>;
2339
+ };
2340
+ /**
2341
+ * Pallet `MmrLeaf`'s storage queries
2342
+ **/
2343
+ mmrLeaf: {
2344
+ /**
2345
+ * Details of current BEEFY authority set.
2346
+ *
2347
+ * @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
2348
+ **/
2349
+ beefyAuthorities: GenericStorageQuery<Rv, () => SpConsensusBeefyMmrBeefyAuthoritySet>;
2350
+ /**
2351
+ * Details of next BEEFY authority set.
2352
+ *
2353
+ * This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
2354
+ *
2355
+ * @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
2356
+ **/
2357
+ beefyNextAuthorities: GenericStorageQuery<Rv, () => SpConsensusBeefyMmrBeefyAuthoritySet>;
2358
+ /**
2359
+ * Generic pallet storage query
2360
+ **/
2361
+ [storage: string]: GenericStorageQuery<Rv>;
2362
+ };
2363
+ /**
2364
+ * Pallet `Lottery`'s storage queries
2365
+ **/
2366
+ lottery: {
2367
+ /**
2368
+ *
2369
+ * @param {Callback<number> =} callback
2370
+ **/
2371
+ lotteryIndex: GenericStorageQuery<Rv, () => number>;
2372
+ /**
2373
+ * The configuration for the current lottery.
2374
+ *
2375
+ * @param {Callback<PalletLotteryLotteryConfig | undefined> =} callback
2376
+ **/
2377
+ lottery: GenericStorageQuery<Rv, () => PalletLotteryLotteryConfig | undefined>;
2378
+ /**
2379
+ * Users who have purchased a ticket. (Lottery Index, Tickets Purchased)
2380
+ *
2381
+ * @param {AccountId32Like} arg
2382
+ * @param {Callback<[number, Array<[number, number]>]> =} callback
2383
+ **/
2384
+ participants: GenericStorageQuery<Rv, (arg: AccountId32Like) => [number, Array<[number, number]>], AccountId32>;
2385
+ /**
2386
+ * Total number of tickets sold.
2387
+ *
2388
+ * @param {Callback<number> =} callback
2389
+ **/
2390
+ ticketsCount: GenericStorageQuery<Rv, () => number>;
2391
+ /**
2392
+ * Each ticket's owner.
2393
+ *
2394
+ * May have residual storage from previous lotteries. Use `TicketsCount` to see which ones
2395
+ * are actually valid ticket mappings.
2396
+ *
2397
+ * @param {number} arg
2398
+ * @param {Callback<AccountId32 | undefined> =} callback
2399
+ **/
2400
+ tickets: GenericStorageQuery<Rv, (arg: number) => AccountId32 | undefined, number>;
2401
+ /**
2402
+ * The calls stored in this pallet to be used in an active lottery if configured
2403
+ * by `Config::ValidateCall`.
2404
+ *
2405
+ * @param {Callback<Array<[number, number]>> =} callback
2406
+ **/
2407
+ callIndices: GenericStorageQuery<Rv, () => Array<[number, number]>>;
2408
+ /**
2409
+ * Generic pallet storage query
2410
+ **/
2411
+ [storage: string]: GenericStorageQuery<Rv>;
2412
+ };
2413
+ /**
2414
+ * Pallet `Nis`'s storage queries
2415
+ **/
2416
+ nis: {
2417
+ /**
2418
+ * The totals of items and balances within each queue. Saves a lot of storage reads in the
2419
+ * case of sparsely packed queues.
2420
+ *
2421
+ * The vector is indexed by duration in `Period`s, offset by one, so information on the queue
2422
+ * whose duration is one `Period` would be storage `0`.
2423
+ *
2424
+ * @param {Callback<Array<[number, bigint]>> =} callback
2425
+ **/
2426
+ queueTotals: GenericStorageQuery<Rv, () => Array<[number, bigint]>>;
2427
+ /**
2428
+ * The queues of bids. Indexed by duration (in `Period`s).
2429
+ *
2430
+ * @param {number} arg
2431
+ * @param {Callback<Array<PalletNisBid>> =} callback
2432
+ **/
2433
+ queues: GenericStorageQuery<Rv, (arg: number) => Array<PalletNisBid>, number>;
2434
+ /**
2435
+ * Summary information over the general state.
2436
+ *
2437
+ * @param {Callback<PalletNisSummaryRecord> =} callback
2438
+ **/
2439
+ summary: GenericStorageQuery<Rv, () => PalletNisSummaryRecord>;
2440
+ /**
2441
+ * The currently outstanding receipts, indexed according to the order of creation.
2442
+ *
2443
+ * @param {number} arg
2444
+ * @param {Callback<PalletNisReceiptRecord | undefined> =} callback
2445
+ **/
2446
+ receipts: GenericStorageQuery<Rv, (arg: number) => PalletNisReceiptRecord | undefined, number>;
2447
+ /**
2448
+ * Generic pallet storage query
2449
+ **/
2450
+ [storage: string]: GenericStorageQuery<Rv>;
2451
+ };
2452
+ /**
2453
+ * Pallet `Uniques`'s storage queries
2454
+ **/
2455
+ uniques: {
2456
+ /**
2457
+ * Details of a collection.
2458
+ *
2459
+ * @param {number} arg
2460
+ * @param {Callback<PalletUniquesCollectionDetails | undefined> =} callback
2461
+ **/
2462
+ class: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionDetails | undefined, number>;
2463
+ /**
2464
+ * The collection, if any, of which an account is willing to take ownership.
2465
+ *
2466
+ * @param {AccountId32Like} arg
2467
+ * @param {Callback<number | undefined> =} callback
2468
+ **/
2469
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
2470
+ /**
2471
+ * The items held by any given account; set out this way so that items owned by a single
2472
+ * account can be enumerated.
2473
+ *
2474
+ * @param {[AccountId32Like, number, number]} arg
2475
+ * @param {Callback<[] | undefined> =} callback
2476
+ **/
2477
+ account: GenericStorageQuery<Rv, (arg: [AccountId32Like, number, number]) => [] | undefined, [
2478
+ AccountId32,
2479
+ number,
2480
+ number
2481
+ ]>;
2482
+ /**
2483
+ * The collections owned by any given account; set out this way so that collections owned by
2484
+ * a single account can be enumerated.
2485
+ *
2486
+ * @param {[AccountId32Like, number]} arg
2487
+ * @param {Callback<[] | undefined> =} callback
2488
+ **/
2489
+ classAccount: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => [] | undefined, [AccountId32, number]>;
2490
+ /**
2491
+ * The items in existence and their ownership details.
2492
+ *
2493
+ * @param {[number, number]} arg
2494
+ * @param {Callback<PalletUniquesItemDetails | undefined> =} callback
2495
+ **/
2496
+ asset: GenericStorageQuery<Rv, (arg: [number, number]) => PalletUniquesItemDetails | undefined, [number, number]>;
2497
+ /**
2498
+ * Metadata of a collection.
2499
+ *
2500
+ * @param {number} arg
2501
+ * @param {Callback<PalletUniquesCollectionMetadata | undefined> =} callback
2502
+ **/
2503
+ classMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletUniquesCollectionMetadata | undefined, number>;
2504
+ /**
2505
+ * Metadata of an item.
2506
+ *
2507
+ * @param {[number, number]} arg
2508
+ * @param {Callback<PalletUniquesItemMetadata | undefined> =} callback
2509
+ **/
2510
+ instanceMetadataOf: GenericStorageQuery<Rv, (arg: [number, number]) => PalletUniquesItemMetadata | undefined, [
2511
+ number,
2512
+ number
2513
+ ]>;
2514
+ /**
2515
+ * Attributes of a collection.
2516
+ *
2517
+ * @param {[number, number | undefined, BytesLike]} arg
2518
+ * @param {Callback<[Bytes, bigint] | undefined> =} callback
2519
+ **/
2520
+ attribute: GenericStorageQuery<Rv, (arg: [number, number | undefined, BytesLike]) => [Bytes, bigint] | undefined, [
2521
+ number,
2522
+ number | undefined,
2523
+ Bytes
2524
+ ]>;
2525
+ /**
2526
+ * Price of an asset instance.
2527
+ *
2528
+ * @param {[number, number]} arg
2529
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
2530
+ **/
2531
+ itemPriceOf: GenericStorageQuery<Rv, (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, [
2532
+ number,
2533
+ number
2534
+ ]>;
2535
+ /**
2536
+ * Keeps track of the number of items a collection might have.
2537
+ *
2538
+ * @param {number} arg
2539
+ * @param {Callback<number | undefined> =} callback
2540
+ **/
2541
+ collectionMaxSupply: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
2542
+ /**
2543
+ * Generic pallet storage query
2544
+ **/
2545
+ [storage: string]: GenericStorageQuery<Rv>;
2546
+ };
2547
+ /**
2548
+ * Pallet `Nfts`'s storage queries
2549
+ **/
2550
+ nfts: {
2551
+ /**
2552
+ * Details of a collection.
2553
+ *
2554
+ * @param {number} arg
2555
+ * @param {Callback<PalletNftsCollectionDetails | undefined> =} callback
2556
+ **/
2557
+ collection: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionDetails | undefined, number>;
2558
+ /**
2559
+ * The collection, if any, of which an account is willing to take ownership.
2560
+ *
2561
+ * @param {AccountId32Like} arg
2562
+ * @param {Callback<number | undefined> =} callback
2563
+ **/
2564
+ ownershipAcceptance: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
2565
+ /**
2566
+ * The items held by any given account; set out this way so that items owned by a single
2567
+ * account can be enumerated.
2568
+ *
2569
+ * @param {[AccountId32Like, number, number]} arg
2570
+ * @param {Callback<[] | undefined> =} callback
2571
+ **/
2572
+ account: GenericStorageQuery<Rv, (arg: [AccountId32Like, number, number]) => [] | undefined, [
2573
+ AccountId32,
2574
+ number,
2575
+ number
2576
+ ]>;
2577
+ /**
2578
+ * The collections owned by any given account; set out this way so that collections owned by
2579
+ * a single account can be enumerated.
2580
+ *
2581
+ * @param {[AccountId32Like, number]} arg
2582
+ * @param {Callback<[] | undefined> =} callback
2583
+ **/
2584
+ collectionAccount: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => [] | undefined, [
2585
+ AccountId32,
2586
+ number
2587
+ ]>;
2588
+ /**
2589
+ * The items in existence and their ownership details.
2590
+ * Stores collection roles as per account.
2591
+ *
2592
+ * @param {[number, AccountId32Like]} arg
2593
+ * @param {Callback<PalletNftsBitFlagsCollectionRole | undefined> =} callback
2594
+ **/
2595
+ collectionRoleOf: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => PalletNftsBitFlagsCollectionRole | undefined, [
2596
+ number,
2597
+ AccountId32
2598
+ ]>;
2599
+ /**
2600
+ * The items in existence and their ownership details.
2601
+ *
2602
+ * @param {[number, number]} arg
2603
+ * @param {Callback<PalletNftsItemDetails | undefined> =} callback
2604
+ **/
2605
+ item: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftsItemDetails | undefined, [number, number]>;
2606
+ /**
2607
+ * Metadata of a collection.
2608
+ *
2609
+ * @param {number} arg
2610
+ * @param {Callback<PalletNftsCollectionMetadata | undefined> =} callback
2611
+ **/
2612
+ collectionMetadataOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionMetadata | undefined, number>;
2613
+ /**
2614
+ * Metadata of an item.
2615
+ *
2616
+ * @param {[number, number]} arg
2617
+ * @param {Callback<PalletNftsItemMetadata | undefined> =} callback
2618
+ **/
2619
+ itemMetadataOf: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftsItemMetadata | undefined, [
2620
+ number,
2621
+ number
2622
+ ]>;
2623
+ /**
2624
+ * Attributes of a collection.
2625
+ *
2626
+ * @param {[number, number | undefined, PalletNftsAttributeNamespace, BytesLike]} arg
2627
+ * @param {Callback<[Bytes, PalletNftsAttributeDeposit] | undefined> =} callback
2628
+ **/
2629
+ attribute: GenericStorageQuery<Rv, (arg: [number, number | undefined, PalletNftsAttributeNamespace, BytesLike]) => [Bytes, PalletNftsAttributeDeposit] | undefined, [
2630
+ number,
2631
+ number | undefined,
2632
+ PalletNftsAttributeNamespace,
2633
+ Bytes
2634
+ ]>;
2635
+ /**
2636
+ * A price of an item.
2637
+ *
2638
+ * @param {[number, number]} arg
2639
+ * @param {Callback<[bigint, AccountId32 | undefined] | undefined> =} callback
2640
+ **/
2641
+ itemPriceOf: GenericStorageQuery<Rv, (arg: [number, number]) => [bigint, AccountId32 | undefined] | undefined, [
2642
+ number,
2643
+ number
2644
+ ]>;
2645
+ /**
2646
+ * Item attribute approvals.
2647
+ *
2648
+ * @param {[number, number]} arg
2649
+ * @param {Callback<Array<AccountId32>> =} callback
2650
+ **/
2651
+ itemAttributesApprovalsOf: GenericStorageQuery<Rv, (arg: [number, number]) => Array<AccountId32>, [number, number]>;
2652
+ /**
2653
+ * Stores the `CollectionId` that is going to be used for the next collection.
2654
+ * This gets incremented whenever a new collection is created.
2655
+ *
2656
+ * @param {Callback<number | undefined> =} callback
2657
+ **/
2658
+ nextCollectionId: GenericStorageQuery<Rv, () => number | undefined>;
2659
+ /**
2660
+ * Handles all the pending swaps.
2661
+ *
2662
+ * @param {[number, number]} arg
2663
+ * @param {Callback<PalletNftsPendingSwap | undefined> =} callback
2664
+ **/
2665
+ pendingSwapOf: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftsPendingSwap | undefined, [
2666
+ number,
2667
+ number
2668
+ ]>;
2669
+ /**
2670
+ * Config of a collection.
2671
+ *
2672
+ * @param {number} arg
2673
+ * @param {Callback<PalletNftsCollectionConfig | undefined> =} callback
2674
+ **/
2675
+ collectionConfigOf: GenericStorageQuery<Rv, (arg: number) => PalletNftsCollectionConfig | undefined, number>;
2676
+ /**
2677
+ * Config of an item.
2678
+ *
2679
+ * @param {[number, number]} arg
2680
+ * @param {Callback<PalletNftsItemConfig | undefined> =} callback
2681
+ **/
2682
+ itemConfigOf: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftsItemConfig | undefined, [
2683
+ number,
2684
+ number
2685
+ ]>;
2686
+ /**
2687
+ * Generic pallet storage query
2688
+ **/
2689
+ [storage: string]: GenericStorageQuery<Rv>;
2690
+ };
2691
+ /**
2692
+ * Pallet `NftFractionalization`'s storage queries
2693
+ **/
2694
+ nftFractionalization: {
2695
+ /**
2696
+ * Keeps track of the corresponding NFT ID, asset ID and amount minted.
2697
+ *
2698
+ * @param {[number, number]} arg
2699
+ * @param {Callback<PalletNftFractionalizationDetails | undefined> =} callback
2700
+ **/
2701
+ nftToAsset: GenericStorageQuery<Rv, (arg: [number, number]) => PalletNftFractionalizationDetails | undefined, [
2702
+ number,
2703
+ number
2704
+ ]>;
2705
+ /**
2706
+ * Generic pallet storage query
2707
+ **/
2708
+ [storage: string]: GenericStorageQuery<Rv>;
2709
+ };
2710
+ /**
2711
+ * Pallet `Salary`'s storage queries
2712
+ **/
2713
+ salary: {
2714
+ /**
2715
+ * The overall status of the system.
2716
+ *
2717
+ * @param {Callback<PalletSalaryStatusType | undefined> =} callback
2718
+ **/
2719
+ status: GenericStorageQuery<Rv, () => PalletSalaryStatusType | undefined>;
2720
+ /**
2721
+ * The status of a claimant.
2722
+ *
2723
+ * @param {AccountId32Like} arg
2724
+ * @param {Callback<PalletSalaryClaimantStatus | undefined> =} callback
2725
+ **/
2726
+ claimant: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletSalaryClaimantStatus | undefined, AccountId32>;
2727
+ /**
2728
+ * Generic pallet storage query
2729
+ **/
2730
+ [storage: string]: GenericStorageQuery<Rv>;
2731
+ };
2732
+ /**
2733
+ * Pallet `CoreFellowship`'s storage queries
2734
+ **/
2735
+ coreFellowship: {
2736
+ /**
2737
+ * The overall status of the system.
2738
+ *
2739
+ * @param {Callback<PalletCoreFellowshipParamsType> =} callback
2740
+ **/
2741
+ params: GenericStorageQuery<Rv, () => PalletCoreFellowshipParamsType>;
2742
+ /**
2743
+ * The status of a claimant.
2744
+ *
2745
+ * @param {AccountId32Like} arg
2746
+ * @param {Callback<PalletCoreFellowshipMemberStatus | undefined> =} callback
2747
+ **/
2748
+ member: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletCoreFellowshipMemberStatus | undefined, AccountId32>;
2749
+ /**
2750
+ * Some evidence together with the desired outcome for which it was presented.
2751
+ *
2752
+ * @param {AccountId32Like} arg
2753
+ * @param {Callback<[PalletCoreFellowshipWish, Bytes] | undefined> =} callback
2754
+ **/
2755
+ memberEvidence: GenericStorageQuery<Rv, (arg: AccountId32Like) => [PalletCoreFellowshipWish, Bytes] | undefined, AccountId32>;
2756
+ /**
2757
+ * Generic pallet storage query
2758
+ **/
2759
+ [storage: string]: GenericStorageQuery<Rv>;
2760
+ };
2761
+ /**
2762
+ * Pallet `TransactionStorage`'s storage queries
2763
+ **/
2764
+ transactionStorage: {
2765
+ /**
2766
+ * Collection of transaction metadata by block number.
2767
+ *
2768
+ * @param {number} arg
2769
+ * @param {Callback<Array<PalletTransactionStorageTransactionInfo> | undefined> =} callback
2770
+ **/
2771
+ transactions: GenericStorageQuery<Rv, (arg: number) => Array<PalletTransactionStorageTransactionInfo> | undefined, number>;
2772
+ /**
2773
+ * Count indexed chunks for each block.
2774
+ *
2775
+ * @param {number} arg
2776
+ * @param {Callback<number> =} callback
2777
+ **/
2778
+ chunkCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
2779
+ /**
2780
+ * Storage fee per byte.
2781
+ *
2782
+ * @param {Callback<bigint | undefined> =} callback
2783
+ **/
2784
+ byteFee: GenericStorageQuery<Rv, () => bigint | undefined>;
2785
+ /**
2786
+ * Storage fee per transaction.
2787
+ *
2788
+ * @param {Callback<bigint | undefined> =} callback
2789
+ **/
2790
+ entryFee: GenericStorageQuery<Rv, () => bigint | undefined>;
2791
+ /**
2792
+ * Storage period for data in blocks. Should match `sp_storage_proof::DEFAULT_STORAGE_PERIOD`
2793
+ * for block authoring.
2794
+ *
2795
+ * @param {Callback<number> =} callback
2796
+ **/
2797
+ storagePeriod: GenericStorageQuery<Rv, () => number>;
2798
+ /**
2799
+ *
2800
+ * @param {Callback<Array<PalletTransactionStorageTransactionInfo>> =} callback
2801
+ **/
2802
+ blockTransactions: GenericStorageQuery<Rv, () => Array<PalletTransactionStorageTransactionInfo>>;
2803
+ /**
2804
+ * Was the proof checked in this block?
2805
+ *
2806
+ * @param {Callback<boolean> =} callback
2807
+ **/
2808
+ proofChecked: GenericStorageQuery<Rv, () => boolean>;
2809
+ /**
2810
+ * Generic pallet storage query
2811
+ **/
2812
+ [storage: string]: GenericStorageQuery<Rv>;
2813
+ };
2814
+ /**
2815
+ * Pallet `VoterList`'s storage queries
2816
+ **/
2817
+ voterList: {
2818
+ /**
2819
+ * A single node, within some bag.
2820
+ *
2821
+ * Nodes store links forward and back within their respective bags.
2822
+ *
2823
+ * @param {AccountId32Like} arg
2824
+ * @param {Callback<PalletBagsListListNode | undefined> =} callback
2825
+ **/
2826
+ listNodes: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBagsListListNode | undefined, AccountId32>;
2827
+ /**
2828
+ * Counter for the related counted storage map
2829
+ *
2830
+ * @param {Callback<number> =} callback
2831
+ **/
2832
+ counterForListNodes: GenericStorageQuery<Rv, () => number>;
2833
+ /**
2834
+ * A bag stored in storage.
2835
+ *
2836
+ * Stores a `Bag` struct, which stores head and tail pointers to itself.
2837
+ *
2838
+ * @param {bigint} arg
2839
+ * @param {Callback<PalletBagsListListBag | undefined> =} callback
2840
+ **/
2841
+ listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
2842
+ /**
2843
+ * Generic pallet storage query
2844
+ **/
2845
+ [storage: string]: GenericStorageQuery<Rv>;
2846
+ };
2847
+ /**
2848
+ * Pallet `StateTrieMigration`'s storage queries
2849
+ **/
2850
+ stateTrieMigration: {
2851
+ /**
2852
+ * Migration progress.
2853
+ *
2854
+ * This stores the snapshot of the last migrated keys. It can be set into motion and move
2855
+ * forward by any of the means provided by this pallet.
2856
+ *
2857
+ * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
2858
+ **/
2859
+ migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
2860
+ /**
2861
+ * The limits that are imposed on automatic migrations.
2862
+ *
2863
+ * If set to None, then no automatic migration happens.
2864
+ *
2865
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2866
+ **/
2867
+ autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2868
+ /**
2869
+ * The maximum limits that the signed migration could use.
2870
+ *
2871
+ * If not set, no signed submission is allowed.
2872
+ *
2873
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2874
+ **/
2875
+ signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2876
+ /**
2877
+ * Generic pallet storage query
2878
+ **/
2879
+ [storage: string]: GenericStorageQuery<Rv>;
2880
+ };
2881
+ /**
2882
+ * Pallet `ChildBounties`'s storage queries
2883
+ **/
2884
+ childBounties: {
2885
+ /**
2886
+ * Number of total child bounties.
2887
+ *
2888
+ * @param {Callback<number> =} callback
2889
+ **/
2890
+ childBountyCount: GenericStorageQuery<Rv, () => number>;
2891
+ /**
2892
+ * Number of child bounties per parent bounty.
2893
+ * Map of parent bounty index to number of child bounties.
2894
+ *
2895
+ * @param {number} arg
2896
+ * @param {Callback<number> =} callback
2897
+ **/
2898
+ parentChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
2899
+ /**
2900
+ * Child bounties that have been added.
2901
+ *
2902
+ * @param {[number, number]} arg
2903
+ * @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
2904
+ **/
2905
+ childBounties: GenericStorageQuery<Rv, (arg: [number, number]) => PalletChildBountiesChildBounty | undefined, [
2906
+ number,
2907
+ number
2908
+ ]>;
2909
+ /**
2910
+ * The description of each child-bounty.
2911
+ *
2912
+ * @param {number} arg
2913
+ * @param {Callback<Bytes | undefined> =} callback
2914
+ **/
2915
+ childBountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
2916
+ /**
2917
+ * The cumulative child-bounty curator fee for each parent bounty.
2918
+ *
2919
+ * @param {number} arg
2920
+ * @param {Callback<bigint> =} callback
2921
+ **/
2922
+ childrenCuratorFees: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
2923
+ /**
2924
+ * Generic pallet storage query
2925
+ **/
2926
+ [storage: string]: GenericStorageQuery<Rv>;
2927
+ };
2928
+ /**
2929
+ * Pallet `Referenda`'s storage queries
2930
+ **/
2931
+ referenda: {
2932
+ /**
2933
+ * The next free referendum index, aka the number of referenda started so far.
2934
+ *
2935
+ * @param {Callback<number> =} callback
2936
+ **/
2937
+ referendumCount: GenericStorageQuery<Rv, () => number>;
2938
+ /**
2939
+ * Information concerning any given referendum.
2940
+ *
2941
+ * @param {number} arg
2942
+ * @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
2943
+ **/
2944
+ referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfo | undefined, number>;
2945
+ /**
2946
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
2947
+ * conviction-weighted approvals.
2948
+ *
2949
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
2950
+ *
2951
+ * @param {number} arg
2952
+ * @param {Callback<Array<[number, bigint]>> =} callback
2953
+ **/
2954
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
2955
+ /**
2956
+ * The number of referenda being decided currently.
2957
+ *
2958
+ * @param {number} arg
2959
+ * @param {Callback<number> =} callback
2960
+ **/
2961
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
2962
+ /**
2963
+ * The metadata is a general information concerning the referendum.
2964
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
2965
+ * dump or IPFS hash of a JSON file.
2966
+ *
2967
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
2968
+ * large preimages.
2969
+ *
2970
+ * @param {number} arg
2971
+ * @param {Callback<H256 | undefined> =} callback
2972
+ **/
2973
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
2974
+ /**
2975
+ * Generic pallet storage query
2976
+ **/
2977
+ [storage: string]: GenericStorageQuery<Rv>;
2978
+ };
2979
+ /**
2980
+ * Pallet `ConvictionVoting`'s storage queries
2981
+ **/
2982
+ convictionVoting: {
2983
+ /**
2984
+ * All voting for a particular voter in a particular voting class. We store the balance for the
2985
+ * number of votes that we have recorded.
2986
+ *
2987
+ * @param {[AccountId32Like, number]} arg
2988
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
2989
+ **/
2990
+ votingFor: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting, [
2991
+ AccountId32,
2992
+ number
2993
+ ]>;
2994
+ /**
2995
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
2996
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
2997
+ * this list.
2998
+ *
2999
+ * @param {AccountId32Like} arg
3000
+ * @param {Callback<Array<[number, bigint]>> =} callback
3001
+ **/
3002
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
3003
+ /**
3004
+ * Generic pallet storage query
3005
+ **/
3006
+ [storage: string]: GenericStorageQuery<Rv>;
3007
+ };
3008
+ /**
3009
+ * Pallet `Whitelist`'s storage queries
3010
+ **/
3011
+ whitelist: {
3012
+ /**
3013
+ *
3014
+ * @param {H256} arg
3015
+ * @param {Callback<[] | undefined> =} callback
3016
+ **/
3017
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
3018
+ /**
3019
+ * Generic pallet storage query
3020
+ **/
3021
+ [storage: string]: GenericStorageQuery<Rv>;
3022
+ };
3023
+ /**
3024
+ * Pallet `AllianceMotion`'s storage queries
3025
+ **/
3026
+ allianceMotion: {
3027
+ /**
3028
+ * The hashes of the active proposals.
3029
+ *
3030
+ * @param {Callback<Array<H256>> =} callback
3031
+ **/
3032
+ proposals: GenericStorageQuery<Rv, () => Array<H256>>;
3033
+ /**
3034
+ * Actual proposal for a given hash, if it's current.
3035
+ *
3036
+ * @param {H256} arg
3037
+ * @param {Callback<KitchensinkRuntimeRuntimeCall | undefined> =} callback
3038
+ **/
3039
+ proposalOf: GenericStorageQuery<Rv, (arg: H256) => KitchensinkRuntimeRuntimeCall | undefined, H256>;
3040
+ /**
3041
+ * Votes on a given proposal, if it is ongoing.
3042
+ *
3043
+ * @param {H256} arg
3044
+ * @param {Callback<PalletCollectiveVotes | undefined> =} callback
3045
+ **/
3046
+ voting: GenericStorageQuery<Rv, (arg: H256) => PalletCollectiveVotes | undefined, H256>;
3047
+ /**
3048
+ * Proposals so far.
3049
+ *
3050
+ * @param {Callback<number> =} callback
3051
+ **/
3052
+ proposalCount: GenericStorageQuery<Rv, () => number>;
3053
+ /**
3054
+ * The current members of the collective. This is stored sorted (just by value).
3055
+ *
3056
+ * @param {Callback<Array<AccountId32>> =} callback
3057
+ **/
3058
+ members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
3059
+ /**
3060
+ * The prime member that helps determine the default vote behavior in case of absentations.
3061
+ *
3062
+ * @param {Callback<AccountId32 | undefined> =} callback
3063
+ **/
3064
+ prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
3065
+ /**
3066
+ * Generic pallet storage query
3067
+ **/
3068
+ [storage: string]: GenericStorageQuery<Rv>;
3069
+ };
3070
+ /**
3071
+ * Pallet `Alliance`'s storage queries
3072
+ **/
3073
+ alliance: {
3074
+ /**
3075
+ * The IPFS CID of the alliance rule.
3076
+ * Fellows can propose a new rule with a super-majority.
3077
+ *
3078
+ * @param {Callback<PalletAllianceCid | undefined> =} callback
3079
+ **/
3080
+ rule: GenericStorageQuery<Rv, () => PalletAllianceCid | undefined>;
3081
+ /**
3082
+ * The current IPFS CIDs of any announcements.
3083
+ *
3084
+ * @param {Callback<Array<PalletAllianceCid>> =} callback
3085
+ **/
3086
+ announcements: GenericStorageQuery<Rv, () => Array<PalletAllianceCid>>;
3087
+ /**
3088
+ * Maps members to their candidacy deposit.
3089
+ *
3090
+ * @param {AccountId32Like} arg
3091
+ * @param {Callback<bigint | undefined> =} callback
3092
+ **/
3093
+ depositOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint | undefined, AccountId32>;
3094
+ /**
3095
+ * Maps member type to members of each type.
3096
+ *
3097
+ * @param {PalletAllianceMemberRole} arg
3098
+ * @param {Callback<Array<AccountId32>> =} callback
3099
+ **/
3100
+ members: GenericStorageQuery<Rv, (arg: PalletAllianceMemberRole) => Array<AccountId32>, PalletAllianceMemberRole>;
3101
+ /**
3102
+ * A set of members who gave a retirement notice. They can retire after the end of retirement
3103
+ * period stored as a future block number.
3104
+ *
3105
+ * @param {AccountId32Like} arg
3106
+ * @param {Callback<number | undefined> =} callback
3107
+ **/
3108
+ retiringMembers: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
3109
+ /**
3110
+ * The current list of accounts deemed unscrupulous. These accounts non grata cannot submit
3111
+ * candidacy.
3112
+ *
3113
+ * @param {Callback<Array<AccountId32>> =} callback
3114
+ **/
3115
+ unscrupulousAccounts: GenericStorageQuery<Rv, () => Array<AccountId32>>;
3116
+ /**
3117
+ * The current list of websites deemed unscrupulous.
3118
+ *
3119
+ * @param {Callback<Array<Bytes>> =} callback
3120
+ **/
3121
+ unscrupulousWebsites: GenericStorageQuery<Rv, () => Array<Bytes>>;
3122
+ /**
3123
+ * Generic pallet storage query
3124
+ **/
3125
+ [storage: string]: GenericStorageQuery<Rv>;
3126
+ };
3127
+ /**
3128
+ * Pallet `NominationPools`'s storage queries
3129
+ **/
3130
+ nominationPools: {
3131
+ /**
3132
+ * The sum of funds across all pools.
3133
+ *
3134
+ * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
3135
+ * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
3136
+ * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
3137
+ *
3138
+ * @param {Callback<bigint> =} callback
3139
+ **/
3140
+ totalValueLocked: GenericStorageQuery<Rv, () => bigint>;
3141
+ /**
3142
+ * Minimum amount to bond to join a pool.
3143
+ *
3144
+ * @param {Callback<bigint> =} callback
3145
+ **/
3146
+ minJoinBond: GenericStorageQuery<Rv, () => bigint>;
3147
+ /**
3148
+ * Minimum bond required to create a pool.
3149
+ *
3150
+ * This is the amount that the depositor must put as their initial stake in the pool, as an
3151
+ * indication of "skin in the game".
3152
+ *
3153
+ * This is the value that will always exist in the staking ledger of the pool bonded account
3154
+ * while all other accounts leave.
3155
+ *
3156
+ * @param {Callback<bigint> =} callback
3157
+ **/
3158
+ minCreateBond: GenericStorageQuery<Rv, () => bigint>;
3159
+ /**
3160
+ * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
3161
+ * pools can exist.
3162
+ *
3163
+ * @param {Callback<number | undefined> =} callback
3164
+ **/
3165
+ maxPools: GenericStorageQuery<Rv, () => number | undefined>;
3166
+ /**
3167
+ * Maximum number of members that can exist in the system. If `None`, then the count
3168
+ * members are not bound on a system wide basis.
3169
+ *
3170
+ * @param {Callback<number | undefined> =} callback
3171
+ **/
3172
+ maxPoolMembers: GenericStorageQuery<Rv, () => number | undefined>;
3173
+ /**
3174
+ * Maximum number of members that may belong to pool. If `None`, then the count of
3175
+ * members is not bound on a per pool basis.
3176
+ *
3177
+ * @param {Callback<number | undefined> =} callback
3178
+ **/
3179
+ maxPoolMembersPerPool: GenericStorageQuery<Rv, () => number | undefined>;
3180
+ /**
3181
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
3182
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
3183
+ * `GlobalMaxCommission` is lower than some current pool commissions.
3184
+ *
3185
+ * @param {Callback<Perbill | undefined> =} callback
3186
+ **/
3187
+ globalMaxCommission: GenericStorageQuery<Rv, () => Perbill | undefined>;
3188
+ /**
3189
+ * Active members.
3190
+ *
3191
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
3192
+ *
3193
+ * @param {AccountId32Like} arg
3194
+ * @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
3195
+ **/
3196
+ poolMembers: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined, AccountId32>;
3197
+ /**
3198
+ * Counter for the related counted storage map
3199
+ *
3200
+ * @param {Callback<number> =} callback
3201
+ **/
3202
+ counterForPoolMembers: GenericStorageQuery<Rv, () => number>;
3203
+ /**
3204
+ * Storage for bonded pools.
3205
+ *
3206
+ * @param {number} arg
3207
+ * @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
3208
+ **/
3209
+ bondedPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
3210
+ /**
3211
+ * Counter for the related counted storage map
3212
+ *
3213
+ * @param {Callback<number> =} callback
3214
+ **/
3215
+ counterForBondedPools: GenericStorageQuery<Rv, () => number>;
3216
+ /**
3217
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
3218
+ * claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
3219
+ *
3220
+ * @param {number} arg
3221
+ * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
3222
+ **/
3223
+ rewardPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
3224
+ /**
3225
+ * Counter for the related counted storage map
3226
+ *
3227
+ * @param {Callback<number> =} callback
3228
+ **/
3229
+ counterForRewardPools: GenericStorageQuery<Rv, () => number>;
3230
+ /**
3231
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
3232
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
3233
+ *
3234
+ * @param {number} arg
3235
+ * @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
3236
+ **/
3237
+ subPoolsStorage: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsSubPools | undefined, number>;
3238
+ /**
3239
+ * Counter for the related counted storage map
3240
+ *
3241
+ * @param {Callback<number> =} callback
3242
+ **/
3243
+ counterForSubPoolsStorage: GenericStorageQuery<Rv, () => number>;
3244
+ /**
3245
+ * Metadata for the pool.
3246
+ *
3247
+ * @param {number} arg
3248
+ * @param {Callback<Bytes> =} callback
3249
+ **/
3250
+ metadata: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
3251
+ /**
3252
+ * Counter for the related counted storage map
3253
+ *
3254
+ * @param {Callback<number> =} callback
3255
+ **/
3256
+ counterForMetadata: GenericStorageQuery<Rv, () => number>;
3257
+ /**
3258
+ * Ever increasing number of all pools created so far.
3259
+ *
3260
+ * @param {Callback<number> =} callback
3261
+ **/
3262
+ lastPoolId: GenericStorageQuery<Rv, () => number>;
3263
+ /**
3264
+ * A reverse lookup from the pool's account id to its id.
3265
+ *
3266
+ * This is only used for slashing and on automatic withdraw update. In all other instances, the
3267
+ * pool id is used, and the accounts are deterministically derived from it.
3268
+ *
3269
+ * @param {AccountId32Like} arg
3270
+ * @param {Callback<number | undefined> =} callback
3271
+ **/
3272
+ reversePoolIdLookup: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
3273
+ /**
3274
+ * Counter for the related counted storage map
3275
+ *
3276
+ * @param {Callback<number> =} callback
3277
+ **/
3278
+ counterForReversePoolIdLookup: GenericStorageQuery<Rv, () => number>;
3279
+ /**
3280
+ * Map from a pool member account to their opted claim permission.
3281
+ *
3282
+ * @param {AccountId32Like} arg
3283
+ * @param {Callback<PalletNominationPoolsClaimPermission> =} callback
3284
+ **/
3285
+ claimPermissions: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletNominationPoolsClaimPermission, AccountId32>;
3286
+ /**
3287
+ * Generic pallet storage query
3288
+ **/
3289
+ [storage: string]: GenericStorageQuery<Rv>;
3290
+ };
3291
+ /**
3292
+ * Pallet `RankedPolls`'s storage queries
3293
+ **/
3294
+ rankedPolls: {
3295
+ /**
3296
+ * The next free referendum index, aka the number of referenda started so far.
3297
+ *
3298
+ * @param {Callback<number> =} callback
3299
+ **/
3300
+ referendumCount: GenericStorageQuery<Rv, () => number>;
3301
+ /**
3302
+ * Information concerning any given referendum.
3303
+ *
3304
+ * @param {number} arg
3305
+ * @param {Callback<PalletReferendaReferendumInfoTally | undefined> =} callback
3306
+ **/
3307
+ referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfoTally | undefined, number>;
3308
+ /**
3309
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
3310
+ * conviction-weighted approvals.
3311
+ *
3312
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
3313
+ *
3314
+ * @param {number} arg
3315
+ * @param {Callback<Array<[number, number]>> =} callback
3316
+ **/
3317
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, number]>, number>;
3318
+ /**
3319
+ * The number of referenda being decided currently.
3320
+ *
3321
+ * @param {number} arg
3322
+ * @param {Callback<number> =} callback
3323
+ **/
3324
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
3325
+ /**
3326
+ * The metadata is a general information concerning the referendum.
3327
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
3328
+ * dump or IPFS hash of a JSON file.
3329
+ *
3330
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
3331
+ * large preimages.
3332
+ *
3333
+ * @param {number} arg
3334
+ * @param {Callback<H256 | undefined> =} callback
3335
+ **/
3336
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
3337
+ /**
3338
+ * Generic pallet storage query
3339
+ **/
3340
+ [storage: string]: GenericStorageQuery<Rv>;
3341
+ };
3342
+ /**
3343
+ * Pallet `RankedCollective`'s storage queries
3344
+ **/
3345
+ rankedCollective: {
3346
+ /**
3347
+ * The number of members in the collective who have at least the rank according to the index
3348
+ * of the vec.
3349
+ *
3350
+ * @param {number} arg
3351
+ * @param {Callback<number> =} callback
3352
+ **/
3353
+ memberCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
3354
+ /**
3355
+ * The current members of the collective.
3356
+ *
3357
+ * @param {AccountId32Like} arg
3358
+ * @param {Callback<PalletRankedCollectiveMemberRecord | undefined> =} callback
3359
+ **/
3360
+ members: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletRankedCollectiveMemberRecord | undefined, AccountId32>;
3361
+ /**
3362
+ * The index of each ranks's member into the group of members who have at least that rank.
3363
+ *
3364
+ * @param {[number, AccountId32Like]} arg
3365
+ * @param {Callback<number | undefined> =} callback
3366
+ **/
3367
+ idToIndex: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => number | undefined, [number, AccountId32]>;
3368
+ /**
3369
+ * The members in the collective by index. All indices in the range `0..MemberCount` will
3370
+ * return `Some`, however a member's index is not guaranteed to remain unchanged over time.
3371
+ *
3372
+ * @param {[number, number]} arg
3373
+ * @param {Callback<AccountId32 | undefined> =} callback
3374
+ **/
3375
+ indexToId: GenericStorageQuery<Rv, (arg: [number, number]) => AccountId32 | undefined, [number, number]>;
3376
+ /**
3377
+ * Votes on a given proposal, if it is ongoing.
3378
+ *
3379
+ * @param {[number, AccountId32Like]} arg
3380
+ * @param {Callback<PalletRankedCollectiveVoteRecord | undefined> =} callback
3381
+ **/
3382
+ voting: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => PalletRankedCollectiveVoteRecord | undefined, [
3383
+ number,
3384
+ AccountId32
3385
+ ]>;
3386
+ /**
3387
+ *
3388
+ * @param {number} arg
3389
+ * @param {Callback<Bytes | undefined> =} callback
3390
+ **/
3391
+ votingCleanup: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
3392
+ /**
3393
+ * Generic pallet storage query
3394
+ **/
3395
+ [storage: string]: GenericStorageQuery<Rv>;
3396
+ };
3397
+ /**
3398
+ * Pallet `AssetConversion`'s storage queries
3399
+ **/
3400
+ assetConversion: {
3401
+ /**
3402
+ * Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
3403
+ * created rather than people sending tokens directly to a pool's public account.
3404
+ *
3405
+ * @param {[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]} arg
3406
+ * @param {Callback<PalletAssetConversionPoolInfo | undefined> =} callback
3407
+ **/
3408
+ pools: GenericStorageQuery<Rv, (arg: [FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]) => PalletAssetConversionPoolInfo | undefined, [
3409
+ FrameSupportTokensFungibleUnionOfNativeOrWithId,
3410
+ FrameSupportTokensFungibleUnionOfNativeOrWithId
3411
+ ]>;
3412
+ /**
3413
+ * Stores the `PoolAssetId` that is going to be used for the next lp token.
3414
+ * This gets incremented whenever a new lp pool is created.
3415
+ *
3416
+ * @param {Callback<number | undefined> =} callback
3417
+ **/
3418
+ nextPoolAssetId: GenericStorageQuery<Rv, () => number | undefined>;
3419
+ /**
3420
+ * Generic pallet storage query
3421
+ **/
3422
+ [storage: string]: GenericStorageQuery<Rv>;
3423
+ };
3424
+ /**
3425
+ * Pallet `FastUnstake`'s storage queries
3426
+ **/
3427
+ fastUnstake: {
3428
+ /**
3429
+ * The current "head of the queue" being unstaked.
3430
+ *
3431
+ * The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
3432
+ *
3433
+ * @param {Callback<PalletFastUnstakeUnstakeRequest | undefined> =} callback
3434
+ **/
3435
+ head: GenericStorageQuery<Rv, () => PalletFastUnstakeUnstakeRequest | undefined>;
3436
+ /**
3437
+ * The map of all accounts wishing to be unstaked.
3438
+ *
3439
+ * Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
3440
+ *
3441
+ * @param {AccountId32Like} arg
3442
+ * @param {Callback<bigint | undefined> =} callback
3443
+ **/
3444
+ queue: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint | undefined, AccountId32>;
3445
+ /**
3446
+ * Counter for the related counted storage map
3447
+ *
3448
+ * @param {Callback<number> =} callback
3449
+ **/
3450
+ counterForQueue: GenericStorageQuery<Rv, () => number>;
3451
+ /**
3452
+ * Number of eras to check per block.
3453
+ *
3454
+ * If set to 0, this pallet does absolutely nothing. Cannot be set to more than
3455
+ * [`Config::MaxErasToCheckPerBlock`].
3456
+ *
3457
+ * Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
3458
+ * checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
3459
+ * stored in [`Head`].
3460
+ *
3461
+ * @param {Callback<number> =} callback
3462
+ **/
3463
+ erasToCheckPerBlock: GenericStorageQuery<Rv, () => number>;
3464
+ /**
3465
+ * Generic pallet storage query
3466
+ **/
3467
+ [storage: string]: GenericStorageQuery<Rv>;
3468
+ };
3469
+ /**
3470
+ * Pallet `MessageQueue`'s storage queries
3471
+ **/
3472
+ messageQueue: {
3473
+ /**
3474
+ * The index of the first and last (non-empty) pages.
3475
+ *
3476
+ * @param {number} arg
3477
+ * @param {Callback<PalletMessageQueueBookState> =} callback
3478
+ **/
3479
+ bookStateFor: GenericStorageQuery<Rv, (arg: number) => PalletMessageQueueBookState, number>;
3480
+ /**
3481
+ * The origin at which we should begin servicing.
3482
+ *
3483
+ * @param {Callback<number | undefined> =} callback
3484
+ **/
3485
+ serviceHead: GenericStorageQuery<Rv, () => number | undefined>;
3486
+ /**
3487
+ * The map of page indices to pages.
3488
+ *
3489
+ * @param {[number, number]} arg
3490
+ * @param {Callback<PalletMessageQueuePage | undefined> =} callback
3491
+ **/
3492
+ pages: GenericStorageQuery<Rv, (arg: [number, number]) => PalletMessageQueuePage | undefined, [number, number]>;
3493
+ /**
3494
+ * Generic pallet storage query
3495
+ **/
3496
+ [storage: string]: GenericStorageQuery<Rv>;
3497
+ };
3498
+ /**
3499
+ * Pallet `Pov`'s storage queries
3500
+ **/
3501
+ pov: {
3502
+ /**
3503
+ *
3504
+ * @param {Callback<number | undefined> =} callback
3505
+ **/
3506
+ value: GenericStorageQuery<Rv, () => number | undefined>;
3507
+ /**
3508
+ *
3509
+ * @param {Callback<number | undefined> =} callback
3510
+ **/
3511
+ value2: GenericStorageQuery<Rv, () => number | undefined>;
3512
+ /**
3513
+ * A value without a MEL bound.
3514
+ *
3515
+ * @param {Callback<Bytes | undefined> =} callback
3516
+ **/
3517
+ unboundedValue: GenericStorageQuery<Rv, () => Bytes | undefined>;
3518
+ /**
3519
+ * A value with a MEL bound of 32 byte.
3520
+ *
3521
+ * @param {Callback<Bytes | undefined> =} callback
3522
+ **/
3523
+ boundedValue: GenericStorageQuery<Rv, () => Bytes | undefined>;
3524
+ /**
3525
+ * 4MiB value.
3526
+ *
3527
+ * @param {Callback<Bytes | undefined> =} callback
3528
+ **/
3529
+ largeValue: GenericStorageQuery<Rv, () => Bytes | undefined>;
3530
+ /**
3531
+ *
3532
+ * @param {Callback<Bytes | undefined> =} callback
3533
+ **/
3534
+ largeValue2: GenericStorageQuery<Rv, () => Bytes | undefined>;
3535
+ /**
3536
+ * A map with a maximum of 1M entries.
3537
+ *
3538
+ * @param {number} arg
3539
+ * @param {Callback<number | undefined> =} callback
3540
+ **/
3541
+ map1M: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
3542
+ /**
3543
+ * A map with a maximum of 16M entries.
3544
+ *
3545
+ * @param {number} arg
3546
+ * @param {Callback<number | undefined> =} callback
3547
+ **/
3548
+ map16M: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
3549
+ /**
3550
+ *
3551
+ * @param {[number, number]} arg
3552
+ * @param {Callback<number | undefined> =} callback
3553
+ **/
3554
+ doubleMap1M: GenericStorageQuery<Rv, (arg: [number, number]) => number | undefined, [number, number]>;
3555
+ /**
3556
+ *
3557
+ * @param {number} arg
3558
+ * @param {Callback<Array<number> | undefined> =} callback
3559
+ **/
3560
+ unboundedMap: GenericStorageQuery<Rv, (arg: number) => Array<number> | undefined, number>;
3561
+ /**
3562
+ *
3563
+ * @param {number} arg
3564
+ * @param {Callback<Array<number> | undefined> =} callback
3565
+ **/
3566
+ unboundedMap2: GenericStorageQuery<Rv, (arg: number) => Array<number> | undefined, number>;
3567
+ /**
3568
+ *
3569
+ * @param {number} arg
3570
+ * @param {Callback<Array<number> | undefined> =} callback
3571
+ **/
3572
+ unboundedMapTwox: GenericStorageQuery<Rv, (arg: number) => Array<number> | undefined, number>;
3573
+ /**
3574
+ * Generic pallet storage query
3575
+ **/
3576
+ [storage: string]: GenericStorageQuery<Rv>;
3577
+ };
3578
+ /**
3579
+ * Pallet `TxPause`'s storage queries
3580
+ **/
3581
+ txPause: {
3582
+ /**
3583
+ * The set of calls that are explicitly paused.
3584
+ *
3585
+ * @param {[BytesLike, BytesLike]} arg
3586
+ * @param {Callback<[] | undefined> =} callback
3587
+ **/
3588
+ pausedCalls: GenericStorageQuery<Rv, (arg: [BytesLike, BytesLike]) => [] | undefined, [Bytes, Bytes]>;
3589
+ /**
3590
+ * Generic pallet storage query
3591
+ **/
3592
+ [storage: string]: GenericStorageQuery<Rv>;
3593
+ };
3594
+ /**
3595
+ * Pallet `SafeMode`'s storage queries
3596
+ **/
3597
+ safeMode: {
3598
+ /**
3599
+ * Contains the last block number that the safe-mode will remain entered in.
3600
+ *
3601
+ * Set to `None` when safe-mode is exited.
3602
+ *
3603
+ * Safe-mode is automatically exited when the current block number exceeds this value.
3604
+ *
3605
+ * @param {Callback<number | undefined> =} callback
3606
+ **/
3607
+ enteredUntil: GenericStorageQuery<Rv, () => number | undefined>;
3608
+ /**
3609
+ * Holds the reserve that was taken from an account at a specific block number.
3610
+ *
3611
+ * This helps governance to have an overview of outstanding deposits that should be returned or
3612
+ * slashed.
3613
+ *
3614
+ * @param {[AccountId32Like, number]} arg
3615
+ * @param {Callback<bigint | undefined> =} callback
3616
+ **/
3617
+ deposits: GenericStorageQuery<Rv, (arg: [AccountId32Like, number]) => bigint | undefined, [AccountId32, number]>;
3618
+ /**
3619
+ * Generic pallet storage query
3620
+ **/
3621
+ [storage: string]: GenericStorageQuery<Rv>;
3622
+ };
3623
+ /**
3624
+ * Pallet `MultiBlockMigrations`'s storage queries
3625
+ **/
3626
+ multiBlockMigrations: {
3627
+ /**
3628
+ * The currently active migration to run and its cursor.
3629
+ *
3630
+ * `None` indicates that no migration is running.
3631
+ *
3632
+ * @param {Callback<PalletMigrationsMigrationCursor | undefined> =} callback
3633
+ **/
3634
+ cursor: GenericStorageQuery<Rv, () => PalletMigrationsMigrationCursor | undefined>;
3635
+ /**
3636
+ * Set of all successfully executed migrations.
3637
+ *
3638
+ * This is used as blacklist, to not re-execute migrations that have not been removed from the
3639
+ * codebase yet. Governance can regularly clear this out via `clear_historic`.
3640
+ *
3641
+ * @param {BytesLike} arg
3642
+ * @param {Callback<[] | undefined> =} callback
3643
+ **/
3644
+ historic: GenericStorageQuery<Rv, (arg: BytesLike) => [] | undefined, Bytes>;
3645
+ /**
3646
+ * Generic pallet storage query
3647
+ **/
3648
+ [storage: string]: GenericStorageQuery<Rv>;
3649
+ };
3650
+ /**
3651
+ * Pallet `Broker`'s storage queries
3652
+ **/
3653
+ broker: {
3654
+ /**
3655
+ * The current configuration of this pallet.
3656
+ *
3657
+ * @param {Callback<PalletBrokerConfigRecord | undefined> =} callback
3658
+ **/
3659
+ configuration: GenericStorageQuery<Rv, () => PalletBrokerConfigRecord | undefined>;
3660
+ /**
3661
+ * The Polkadot Core reservations (generally tasked with the maintenance of System Chains).
3662
+ *
3663
+ * @param {Callback<Array<Array<PalletBrokerScheduleItem>>> =} callback
3664
+ **/
3665
+ reservations: GenericStorageQuery<Rv, () => Array<Array<PalletBrokerScheduleItem>>>;
3666
+ /**
3667
+ * The Polkadot Core legacy leases.
3668
+ *
3669
+ * @param {Callback<Array<PalletBrokerLeaseRecordItem>> =} callback
3670
+ **/
3671
+ leases: GenericStorageQuery<Rv, () => Array<PalletBrokerLeaseRecordItem>>;
3672
+ /**
3673
+ * The current status of miscellaneous subsystems of this pallet.
3674
+ *
3675
+ * @param {Callback<PalletBrokerStatusRecord | undefined> =} callback
3676
+ **/
3677
+ status: GenericStorageQuery<Rv, () => PalletBrokerStatusRecord | undefined>;
3678
+ /**
3679
+ * The details of the current sale, including its properties and status.
3680
+ *
3681
+ * @param {Callback<PalletBrokerSaleInfoRecord | undefined> =} callback
3682
+ **/
3683
+ saleInfo: GenericStorageQuery<Rv, () => PalletBrokerSaleInfoRecord | undefined>;
3684
+ /**
3685
+ * Records of allowed renewals.
3686
+ *
3687
+ * @param {PalletBrokerAllowedRenewalId} arg
3688
+ * @param {Callback<PalletBrokerAllowedRenewalRecord | undefined> =} callback
3689
+ **/
3690
+ allowedRenewals: GenericStorageQuery<Rv, (arg: PalletBrokerAllowedRenewalId) => PalletBrokerAllowedRenewalRecord | undefined, PalletBrokerAllowedRenewalId>;
3691
+ /**
3692
+ * The current (unassigned) Regions.
3693
+ *
3694
+ * @param {PalletBrokerRegionId} arg
3695
+ * @param {Callback<PalletBrokerRegionRecord | undefined> =} callback
3696
+ **/
3697
+ regions: GenericStorageQuery<Rv, (arg: PalletBrokerRegionId) => PalletBrokerRegionRecord | undefined, PalletBrokerRegionId>;
3698
+ /**
3699
+ * The work we plan on having each core do at a particular time in the future.
3700
+ *
3701
+ * @param {[number, number]} arg
3702
+ * @param {Callback<Array<PalletBrokerScheduleItem> | undefined> =} callback
3703
+ **/
3704
+ workplan: GenericStorageQuery<Rv, (arg: [number, number]) => Array<PalletBrokerScheduleItem> | undefined, [
3705
+ number,
3706
+ number
3707
+ ]>;
3708
+ /**
3709
+ * The current workload of each core. This gets updated with workplan as timeslices pass.
3710
+ *
3711
+ * @param {number} arg
3712
+ * @param {Callback<Array<PalletBrokerScheduleItem>> =} callback
3713
+ **/
3714
+ workload: GenericStorageQuery<Rv, (arg: number) => Array<PalletBrokerScheduleItem>, number>;
3715
+ /**
3716
+ * Record of a single contribution to the Instantaneous Coretime Pool.
3717
+ *
3718
+ * @param {PalletBrokerRegionId} arg
3719
+ * @param {Callback<PalletBrokerContributionRecord | undefined> =} callback
3720
+ **/
3721
+ instaPoolContribution: GenericStorageQuery<Rv, (arg: PalletBrokerRegionId) => PalletBrokerContributionRecord | undefined, PalletBrokerRegionId>;
3722
+ /**
3723
+ * Record of Coretime entering or leaving the Instantaneous Coretime Pool.
3724
+ *
3725
+ * @param {number} arg
3726
+ * @param {Callback<PalletBrokerPoolIoRecord> =} callback
3727
+ **/
3728
+ instaPoolIo: GenericStorageQuery<Rv, (arg: number) => PalletBrokerPoolIoRecord, number>;
3729
+ /**
3730
+ * Total InstaPool rewards for each Timeslice and the number of core parts which contributed.
3731
+ *
3732
+ * @param {number} arg
3733
+ * @param {Callback<PalletBrokerInstaPoolHistoryRecord | undefined> =} callback
3734
+ **/
3735
+ instaPoolHistory: GenericStorageQuery<Rv, (arg: number) => PalletBrokerInstaPoolHistoryRecord | undefined, number>;
3736
+ /**
3737
+ * Received core count change from the relay chain.
3738
+ *
3739
+ * @param {Callback<number | undefined> =} callback
3740
+ **/
3741
+ coreCountInbox: GenericStorageQuery<Rv, () => number | undefined>;
3742
+ /**
3743
+ * Generic pallet storage query
3744
+ **/
3745
+ [storage: string]: GenericStorageQuery<Rv>;
3746
+ };
3747
+ /**
3748
+ * Pallet `TasksExample`'s storage queries
3749
+ **/
3750
+ tasksExample: {
3751
+ /**
3752
+ * Some running total.
3753
+ *
3754
+ * @param {Callback<[number, number]> =} callback
3755
+ **/
3756
+ total: GenericStorageQuery<Rv, () => [number, number]>;
3757
+ /**
3758
+ * Numbers to be added into the total.
3759
+ *
3760
+ * @param {number} arg
3761
+ * @param {Callback<number | undefined> =} callback
3762
+ **/
3763
+ numbers: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
3764
+ /**
3765
+ * Generic pallet storage query
3766
+ **/
3767
+ [storage: string]: GenericStorageQuery<Rv>;
3768
+ };
3769
+ /**
3770
+ * Pallet `Mixnet`'s storage queries
3771
+ **/
3772
+ mixnet: {
3773
+ /**
3774
+ * Index of the current session. This may be offset relative to the session index tracked by
3775
+ * eg `pallet_session`; mixnet session indices are independent.
3776
+ *
3777
+ * @param {Callback<number> =} callback
3778
+ **/
3779
+ currentSessionIndex: GenericStorageQuery<Rv, () => number>;
3780
+ /**
3781
+ * Block in which the current session started.
3782
+ *
3783
+ * @param {Callback<number> =} callback
3784
+ **/
3785
+ currentSessionStartBlock: GenericStorageQuery<Rv, () => number>;
3786
+ /**
3787
+ * Authority list for the next session.
3788
+ *
3789
+ * @param {number} arg
3790
+ * @param {Callback<SpMixnetAppPublic | undefined> =} callback
3791
+ **/
3792
+ nextAuthorityIds: GenericStorageQuery<Rv, (arg: number) => SpMixnetAppPublic | undefined, number>;
3793
+ /**
3794
+ * Mixnode sets by session index. Only the mixnode sets for the previous, current, and next
3795
+ * sessions are kept; older sets are discarded.
3796
+ *
3797
+ * The mixnodes in each set are keyed by authority index so we can easily check if an
3798
+ * authority has registered a mixnode. The authority indices should only be used during
3799
+ * registration; the authority indices for the very first session are made up.
3800
+ *
3801
+ * @param {[number, number]} arg
3802
+ * @param {Callback<PalletMixnetBoundedMixnode | undefined> =} callback
3803
+ **/
3804
+ mixnodes: GenericStorageQuery<Rv, (arg: [number, number]) => PalletMixnetBoundedMixnode | undefined, [
3805
+ number,
3806
+ number
3807
+ ]>;
3808
+ /**
3809
+ * Generic pallet storage query
3810
+ **/
3811
+ [storage: string]: GenericStorageQuery<Rv>;
3812
+ };
3813
+ /**
3814
+ * Pallet `Parameters`'s storage queries
3815
+ **/
3816
+ parameters: {
3817
+ /**
3818
+ * Stored parameters.
3819
+ *
3820
+ * @param {KitchensinkRuntimeRuntimeParametersKey} arg
3821
+ * @param {Callback<KitchensinkRuntimeRuntimeParametersValue | undefined> =} callback
3822
+ **/
3823
+ parameters: GenericStorageQuery<Rv, (arg: KitchensinkRuntimeRuntimeParametersKey) => KitchensinkRuntimeRuntimeParametersValue | undefined, KitchensinkRuntimeRuntimeParametersKey>;
3824
+ /**
3825
+ * Generic pallet storage query
3826
+ **/
3827
+ [storage: string]: GenericStorageQuery<Rv>;
3828
+ };
3829
+ }