dedot 0.0.1-next.fecbe32d.13 → 0.1.0

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