@dedot/chaintypes 0.110.0 → 0.112.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.
- package/README.md +1 -0
- package/index.d.ts +1 -0
- package/package.json +5 -2
- package/vara/consts.d.ts +1218 -0
- package/vara/errors.d.ts +2013 -0
- package/vara/events.d.ts +2496 -0
- package/vara/index.d.ts +31 -0
- package/vara/json-rpc.d.ts +109 -0
- package/vara/query.d.ts +2706 -0
- package/vara/runtime.d.ts +889 -0
- package/vara/tx.d.ts +7512 -0
- package/vara/types.d.ts +11165 -0
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +36 -0
- package/westend-asset-hub/types.d.ts +2 -1
package/vara/query.d.ts
ADDED
|
@@ -0,0 +1,2706 @@
|
|
|
1
|
+
// Generated by dedot cli
|
|
2
|
+
|
|
3
|
+
import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type {
|
|
5
|
+
AccountId32,
|
|
6
|
+
AccountId32Like,
|
|
7
|
+
H256,
|
|
8
|
+
Bytes,
|
|
9
|
+
Digest,
|
|
10
|
+
Phase,
|
|
11
|
+
FixedBytes,
|
|
12
|
+
FixedU128,
|
|
13
|
+
BytesLike,
|
|
14
|
+
Perbill,
|
|
15
|
+
Percent,
|
|
16
|
+
Data,
|
|
17
|
+
Perquintill,
|
|
18
|
+
} from 'dedot/codecs';
|
|
19
|
+
import type {
|
|
20
|
+
FrameSystemAccountInfo,
|
|
21
|
+
FrameSupportDispatchPerDispatchClass,
|
|
22
|
+
FrameSystemEventRecord,
|
|
23
|
+
FrameSystemLastRuntimeUpgradeInfo,
|
|
24
|
+
FrameSystemCodeUpgradeAuthorization,
|
|
25
|
+
SpConsensusBabeAppPublic,
|
|
26
|
+
SpConsensusSlotsSlot,
|
|
27
|
+
SpConsensusBabeDigestsNextConfigDescriptor,
|
|
28
|
+
SpConsensusBabeDigestsPreDigest,
|
|
29
|
+
SpConsensusBabeBabeEpochConfiguration,
|
|
30
|
+
PalletGrandpaStoredState,
|
|
31
|
+
PalletGrandpaStoredPendingChange,
|
|
32
|
+
SpConsensusGrandpaAppPublic,
|
|
33
|
+
PalletBalancesAccountData,
|
|
34
|
+
PalletBalancesBalanceLock,
|
|
35
|
+
PalletBalancesReserveData,
|
|
36
|
+
FrameSupportTokensMiscIdAmount,
|
|
37
|
+
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
38
|
+
PalletTransactionPaymentReleases,
|
|
39
|
+
VaraRuntimeSessionKeys,
|
|
40
|
+
SpCoreCryptoKeyTypeId,
|
|
41
|
+
SpAuthorityDiscoveryAppPublic,
|
|
42
|
+
PalletVestingVestingInfo,
|
|
43
|
+
PalletVestingReleases,
|
|
44
|
+
PalletBagsListListNode,
|
|
45
|
+
PalletBagsListListBag,
|
|
46
|
+
PalletImOnlineSr25519AppSr25519Public,
|
|
47
|
+
PalletStakingStakingLedger,
|
|
48
|
+
PalletStakingRewardDestination,
|
|
49
|
+
PalletStakingValidatorPrefs,
|
|
50
|
+
PalletStakingNominations,
|
|
51
|
+
PalletStakingActiveEraInfo,
|
|
52
|
+
SpStakingExposure,
|
|
53
|
+
SpStakingPagedExposureMetadata,
|
|
54
|
+
SpStakingExposurePage,
|
|
55
|
+
PalletStakingEraRewardPoints,
|
|
56
|
+
PalletStakingForcing,
|
|
57
|
+
PalletStakingUnappliedSlash,
|
|
58
|
+
PalletStakingSlashingSlashingSpans,
|
|
59
|
+
PalletStakingSlashingSpanRecord,
|
|
60
|
+
PalletTreasuryProposal,
|
|
61
|
+
PalletTreasurySpendStatus,
|
|
62
|
+
PalletConvictionVotingVoteVoting,
|
|
63
|
+
PalletReferendaReferendumInfo,
|
|
64
|
+
PalletRankedCollectiveMemberRecord,
|
|
65
|
+
PalletRankedCollectiveVoteRecord,
|
|
66
|
+
PalletReferendaReferendumInfoTally,
|
|
67
|
+
PalletSchedulerScheduled,
|
|
68
|
+
PalletSchedulerRetryConfig,
|
|
69
|
+
PalletPreimageOldRequestStatus,
|
|
70
|
+
PalletPreimageRequestStatus,
|
|
71
|
+
PalletIdentityRegistration,
|
|
72
|
+
PalletIdentityRegistrarInfo,
|
|
73
|
+
PalletIdentityAuthorityProperties,
|
|
74
|
+
PalletProxyProxyDefinition,
|
|
75
|
+
PalletProxyAnnouncement,
|
|
76
|
+
PalletMultisigMultisig,
|
|
77
|
+
PalletElectionProviderMultiPhasePhase,
|
|
78
|
+
PalletElectionProviderMultiPhaseReadySolution,
|
|
79
|
+
PalletElectionProviderMultiPhaseRoundSnapshot,
|
|
80
|
+
PalletElectionProviderMultiPhaseSolutionOrSnapshotSize,
|
|
81
|
+
SpNposElectionsElectionScore,
|
|
82
|
+
PalletElectionProviderMultiPhaseSignedSignedSubmission,
|
|
83
|
+
SpStakingOffenceOffenceDetails,
|
|
84
|
+
PalletBountiesBounty,
|
|
85
|
+
PalletChildBountiesChildBounty,
|
|
86
|
+
PalletNominationPoolsPoolMember,
|
|
87
|
+
PalletNominationPoolsBondedPoolInner,
|
|
88
|
+
PalletNominationPoolsRewardPool,
|
|
89
|
+
PalletNominationPoolsSubPools,
|
|
90
|
+
PalletNominationPoolsClaimPermission,
|
|
91
|
+
GearCoreCodeInstrumentedInstrumentedCode,
|
|
92
|
+
GprimitivesCodeId,
|
|
93
|
+
GearCommonCodeMetadata,
|
|
94
|
+
NumeratedTreeIntervalsTree,
|
|
95
|
+
GprimitivesActorId,
|
|
96
|
+
GearCoreProgram,
|
|
97
|
+
GearCoreMemoryPageBuf,
|
|
98
|
+
GearCoreProgramMemoryInfix,
|
|
99
|
+
GearCorePagesPage,
|
|
100
|
+
GearCommonStorageComplicatedDequeueLinkedNode,
|
|
101
|
+
GprimitivesMessageId,
|
|
102
|
+
GearCoreMessageUserUserStoredMessage,
|
|
103
|
+
GearCommonStoragePrimitivesInterval,
|
|
104
|
+
GearCoreMessageStoredStoredDispatch,
|
|
105
|
+
GearCoreMessageStoredStoredDelayedDispatch,
|
|
106
|
+
GearCoreTasksScheduledTask,
|
|
107
|
+
GearCommonGasProviderNodeGasNode,
|
|
108
|
+
GearCommonGasProviderNodeGasNodeId,
|
|
109
|
+
PalletGearVoucherInternalVoucherInfo,
|
|
110
|
+
PalletGearVoucherInternalVoucherId,
|
|
111
|
+
PalletGearBankBankAccount,
|
|
112
|
+
} from './types.js';
|
|
113
|
+
|
|
114
|
+
export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
|
|
115
|
+
/**
|
|
116
|
+
* Pallet `System`'s storage queries
|
|
117
|
+
**/
|
|
118
|
+
system: {
|
|
119
|
+
/**
|
|
120
|
+
* The full account information for a particular account ID.
|
|
121
|
+
*
|
|
122
|
+
* @param {AccountId32Like} arg
|
|
123
|
+
* @param {Callback<FrameSystemAccountInfo> =} callback
|
|
124
|
+
**/
|
|
125
|
+
account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Total extrinsics count for the current block.
|
|
129
|
+
*
|
|
130
|
+
* @param {Callback<number | undefined> =} callback
|
|
131
|
+
**/
|
|
132
|
+
extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Whether all inherents have been applied.
|
|
136
|
+
*
|
|
137
|
+
* @param {Callback<boolean> =} callback
|
|
138
|
+
**/
|
|
139
|
+
inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The current weight for the block.
|
|
143
|
+
*
|
|
144
|
+
* @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
|
|
145
|
+
**/
|
|
146
|
+
blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
150
|
+
*
|
|
151
|
+
* @param {Callback<number | undefined> =} callback
|
|
152
|
+
**/
|
|
153
|
+
allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Map of block numbers to block hashes.
|
|
157
|
+
*
|
|
158
|
+
* @param {number} arg
|
|
159
|
+
* @param {Callback<H256> =} callback
|
|
160
|
+
**/
|
|
161
|
+
blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
165
|
+
*
|
|
166
|
+
* @param {number} arg
|
|
167
|
+
* @param {Callback<Bytes> =} callback
|
|
168
|
+
**/
|
|
169
|
+
extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The current block number being processed. Set by `execute_block`.
|
|
173
|
+
*
|
|
174
|
+
* @param {Callback<number> =} callback
|
|
175
|
+
**/
|
|
176
|
+
number: GenericStorageQuery<Rv, () => number>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Hash of the previous block.
|
|
180
|
+
*
|
|
181
|
+
* @param {Callback<H256> =} callback
|
|
182
|
+
**/
|
|
183
|
+
parentHash: GenericStorageQuery<Rv, () => H256>;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Digest of the current block, also part of the block header.
|
|
187
|
+
*
|
|
188
|
+
* @param {Callback<Digest> =} callback
|
|
189
|
+
**/
|
|
190
|
+
digest: GenericStorageQuery<Rv, () => Digest>;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Events deposited for the current block.
|
|
194
|
+
*
|
|
195
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
196
|
+
* It could otherwise inflate the PoV size of a block.
|
|
197
|
+
*
|
|
198
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
199
|
+
* just in case someone still reads them from within the runtime.
|
|
200
|
+
*
|
|
201
|
+
* @param {Callback<Array<FrameSystemEventRecord>> =} callback
|
|
202
|
+
**/
|
|
203
|
+
events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The number of events in the `Events<T>` list.
|
|
207
|
+
*
|
|
208
|
+
* @param {Callback<number> =} callback
|
|
209
|
+
**/
|
|
210
|
+
eventCount: GenericStorageQuery<Rv, () => number>;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
214
|
+
* of events in the `<Events<T>>` list.
|
|
215
|
+
*
|
|
216
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
217
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
218
|
+
* in case of changes fetch the list of events of interest.
|
|
219
|
+
*
|
|
220
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
221
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
222
|
+
* no notification will be triggered thus the event might be lost.
|
|
223
|
+
*
|
|
224
|
+
* @param {H256} arg
|
|
225
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
226
|
+
**/
|
|
227
|
+
eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
231
|
+
*
|
|
232
|
+
* @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
|
|
233
|
+
**/
|
|
234
|
+
lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
238
|
+
*
|
|
239
|
+
* @param {Callback<boolean> =} callback
|
|
240
|
+
**/
|
|
241
|
+
upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
245
|
+
* (default) if not.
|
|
246
|
+
*
|
|
247
|
+
* @param {Callback<boolean> =} callback
|
|
248
|
+
**/
|
|
249
|
+
upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The execution phase of the block.
|
|
253
|
+
*
|
|
254
|
+
* @param {Callback<Phase | undefined> =} callback
|
|
255
|
+
**/
|
|
256
|
+
executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* `Some` if a code upgrade has been authorized.
|
|
260
|
+
*
|
|
261
|
+
* @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
|
|
262
|
+
**/
|
|
263
|
+
authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Generic pallet storage query
|
|
267
|
+
**/
|
|
268
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Pallet `Timestamp`'s storage queries
|
|
272
|
+
**/
|
|
273
|
+
timestamp: {
|
|
274
|
+
/**
|
|
275
|
+
* The current time for the current block.
|
|
276
|
+
*
|
|
277
|
+
* @param {Callback<bigint> =} callback
|
|
278
|
+
**/
|
|
279
|
+
now: GenericStorageQuery<Rv, () => bigint>;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Whether the timestamp has been updated in this block.
|
|
283
|
+
*
|
|
284
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
285
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
286
|
+
*
|
|
287
|
+
* @param {Callback<boolean> =} callback
|
|
288
|
+
**/
|
|
289
|
+
didUpdate: GenericStorageQuery<Rv, () => boolean>;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Generic pallet storage query
|
|
293
|
+
**/
|
|
294
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Pallet `Authorship`'s storage queries
|
|
298
|
+
**/
|
|
299
|
+
authorship: {
|
|
300
|
+
/**
|
|
301
|
+
* Author of current block.
|
|
302
|
+
*
|
|
303
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
304
|
+
**/
|
|
305
|
+
author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Generic pallet storage query
|
|
309
|
+
**/
|
|
310
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Pallet `Babe`'s storage queries
|
|
314
|
+
**/
|
|
315
|
+
babe: {
|
|
316
|
+
/**
|
|
317
|
+
* Current epoch index.
|
|
318
|
+
*
|
|
319
|
+
* @param {Callback<bigint> =} callback
|
|
320
|
+
**/
|
|
321
|
+
epochIndex: GenericStorageQuery<Rv, () => bigint>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Current epoch authorities.
|
|
325
|
+
*
|
|
326
|
+
* @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
|
|
327
|
+
**/
|
|
328
|
+
authorities: GenericStorageQuery<Rv, () => Array<[SpConsensusBabeAppPublic, bigint]>>;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* The slot at which the first epoch actually started. This is 0
|
|
332
|
+
* until the first block of the chain.
|
|
333
|
+
*
|
|
334
|
+
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
335
|
+
**/
|
|
336
|
+
genesisSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Current slot number.
|
|
340
|
+
*
|
|
341
|
+
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
342
|
+
**/
|
|
343
|
+
currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* The epoch randomness for the *current* epoch.
|
|
347
|
+
*
|
|
348
|
+
* # Security
|
|
349
|
+
*
|
|
350
|
+
* This MUST NOT be used for gambling, as it can be influenced by a
|
|
351
|
+
* malicious validator in the short term. It MAY be used in many
|
|
352
|
+
* cryptographic protocols, however, so long as one remembers that this
|
|
353
|
+
* (like everything else on-chain) it is public. For example, it can be
|
|
354
|
+
* used where a number is needed that cannot have been chosen by an
|
|
355
|
+
* adversary, for purposes such as public-coin zero-knowledge proofs.
|
|
356
|
+
*
|
|
357
|
+
* @param {Callback<FixedBytes<32>> =} callback
|
|
358
|
+
**/
|
|
359
|
+
randomness: GenericStorageQuery<Rv, () => FixedBytes<32>>;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Pending epoch configuration change that will be applied when the next epoch is enacted.
|
|
363
|
+
*
|
|
364
|
+
* @param {Callback<SpConsensusBabeDigestsNextConfigDescriptor | undefined> =} callback
|
|
365
|
+
**/
|
|
366
|
+
pendingEpochConfigChange: GenericStorageQuery<Rv, () => SpConsensusBabeDigestsNextConfigDescriptor | undefined>;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Next epoch randomness.
|
|
370
|
+
*
|
|
371
|
+
* @param {Callback<FixedBytes<32>> =} callback
|
|
372
|
+
**/
|
|
373
|
+
nextRandomness: GenericStorageQuery<Rv, () => FixedBytes<32>>;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Next epoch authorities.
|
|
377
|
+
*
|
|
378
|
+
* @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
|
|
379
|
+
**/
|
|
380
|
+
nextAuthorities: GenericStorageQuery<Rv, () => Array<[SpConsensusBabeAppPublic, bigint]>>;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Randomness under construction.
|
|
384
|
+
*
|
|
385
|
+
* We make a trade-off between storage accesses and list length.
|
|
386
|
+
* We store the under-construction randomness in segments of up to
|
|
387
|
+
* `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
|
|
388
|
+
*
|
|
389
|
+
* Once a segment reaches this length, we begin the next one.
|
|
390
|
+
* We reset all segments and return to `0` at the beginning of every
|
|
391
|
+
* epoch.
|
|
392
|
+
*
|
|
393
|
+
* @param {Callback<number> =} callback
|
|
394
|
+
**/
|
|
395
|
+
segmentIndex: GenericStorageQuery<Rv, () => number>;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
399
|
+
*
|
|
400
|
+
* @param {number} arg
|
|
401
|
+
* @param {Callback<Array<FixedBytes<32>>> =} callback
|
|
402
|
+
**/
|
|
403
|
+
underConstruction: GenericStorageQuery<Rv, (arg: number) => Array<FixedBytes<32>>, number>;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Temporary value (cleared at block finalization) which is `Some`
|
|
407
|
+
* if per-block initialization has already been called for current block.
|
|
408
|
+
*
|
|
409
|
+
* @param {Callback<SpConsensusBabeDigestsPreDigest | undefined | undefined> =} callback
|
|
410
|
+
**/
|
|
411
|
+
initialized: GenericStorageQuery<Rv, () => SpConsensusBabeDigestsPreDigest | undefined | undefined>;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* This field should always be populated during block processing unless
|
|
415
|
+
* secondary plain slots are enabled (which don't contain a VRF output).
|
|
416
|
+
*
|
|
417
|
+
* It is set in `on_finalize`, before it will contain the value from the last block.
|
|
418
|
+
*
|
|
419
|
+
* @param {Callback<FixedBytes<32> | undefined> =} callback
|
|
420
|
+
**/
|
|
421
|
+
authorVrfRandomness: GenericStorageQuery<Rv, () => FixedBytes<32> | undefined>;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* The block numbers when the last and current epoch have started, respectively `N-1` and
|
|
425
|
+
* `N`.
|
|
426
|
+
* NOTE: We track this is in order to annotate the block number when a given pool of
|
|
427
|
+
* entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
|
|
428
|
+
* slots, which may be skipped, the block numbers may not line up with the slot numbers.
|
|
429
|
+
*
|
|
430
|
+
* @param {Callback<[number, number]> =} callback
|
|
431
|
+
**/
|
|
432
|
+
epochStart: GenericStorageQuery<Rv, () => [number, number]>;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* How late the current block is compared to its parent.
|
|
436
|
+
*
|
|
437
|
+
* This entry is populated as part of block execution and is cleaned up
|
|
438
|
+
* on block finalization. Querying this storage entry outside of block
|
|
439
|
+
* execution context should always yield zero.
|
|
440
|
+
*
|
|
441
|
+
* @param {Callback<number> =} callback
|
|
442
|
+
**/
|
|
443
|
+
lateness: GenericStorageQuery<Rv, () => number>;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* The configuration for the current epoch. Should never be `None` as it is initialized in
|
|
447
|
+
* genesis.
|
|
448
|
+
*
|
|
449
|
+
* @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
|
|
450
|
+
**/
|
|
451
|
+
epochConfig: GenericStorageQuery<Rv, () => SpConsensusBabeBabeEpochConfiguration | undefined>;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* The configuration for the next epoch, `None` if the config will not change
|
|
455
|
+
* (you can fallback to `EpochConfig` instead in that case).
|
|
456
|
+
*
|
|
457
|
+
* @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
|
|
458
|
+
**/
|
|
459
|
+
nextEpochConfig: GenericStorageQuery<Rv, () => SpConsensusBabeBabeEpochConfiguration | undefined>;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* A list of the last 100 skipped epochs and the corresponding session index
|
|
463
|
+
* when the epoch was skipped.
|
|
464
|
+
*
|
|
465
|
+
* This is only used for validating equivocation proofs. An equivocation proof
|
|
466
|
+
* must contains a key-ownership proof for a given session, therefore we need a
|
|
467
|
+
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
468
|
+
* a validator was the owner of a given key on a given session, and what the
|
|
469
|
+
* active epoch index was during that session.
|
|
470
|
+
*
|
|
471
|
+
* @param {Callback<Array<[bigint, number]>> =} callback
|
|
472
|
+
**/
|
|
473
|
+
skippedEpochs: GenericStorageQuery<Rv, () => Array<[bigint, number]>>;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Generic pallet storage query
|
|
477
|
+
**/
|
|
478
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
479
|
+
};
|
|
480
|
+
/**
|
|
481
|
+
* Pallet `Grandpa`'s storage queries
|
|
482
|
+
**/
|
|
483
|
+
grandpa: {
|
|
484
|
+
/**
|
|
485
|
+
* State of the current authority set.
|
|
486
|
+
*
|
|
487
|
+
* @param {Callback<PalletGrandpaStoredState> =} callback
|
|
488
|
+
**/
|
|
489
|
+
state: GenericStorageQuery<Rv, () => PalletGrandpaStoredState>;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Pending change: (signaled at, scheduled change).
|
|
493
|
+
*
|
|
494
|
+
* @param {Callback<PalletGrandpaStoredPendingChange | undefined> =} callback
|
|
495
|
+
**/
|
|
496
|
+
pendingChange: GenericStorageQuery<Rv, () => PalletGrandpaStoredPendingChange | undefined>;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* next block number where we can force a change.
|
|
500
|
+
*
|
|
501
|
+
* @param {Callback<number | undefined> =} callback
|
|
502
|
+
**/
|
|
503
|
+
nextForced: GenericStorageQuery<Rv, () => number | undefined>;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* `true` if we are currently stalled.
|
|
507
|
+
*
|
|
508
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
509
|
+
**/
|
|
510
|
+
stalled: GenericStorageQuery<Rv, () => [number, number] | undefined>;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
514
|
+
* in the "set" of Grandpa validators from genesis.
|
|
515
|
+
*
|
|
516
|
+
* @param {Callback<bigint> =} callback
|
|
517
|
+
**/
|
|
518
|
+
currentSetId: GenericStorageQuery<Rv, () => bigint>;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
522
|
+
* members were responsible.
|
|
523
|
+
*
|
|
524
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
525
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
526
|
+
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
527
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
528
|
+
* during that session.
|
|
529
|
+
*
|
|
530
|
+
* TWOX-NOTE: `SetId` is not under user control.
|
|
531
|
+
*
|
|
532
|
+
* @param {bigint} arg
|
|
533
|
+
* @param {Callback<number | undefined> =} callback
|
|
534
|
+
**/
|
|
535
|
+
setIdSession: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* The current list of authorities.
|
|
539
|
+
*
|
|
540
|
+
* @param {Callback<Array<[SpConsensusGrandpaAppPublic, bigint]>> =} callback
|
|
541
|
+
**/
|
|
542
|
+
authorities: GenericStorageQuery<Rv, () => Array<[SpConsensusGrandpaAppPublic, bigint]>>;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Generic pallet storage query
|
|
546
|
+
**/
|
|
547
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* Pallet `Balances`'s storage queries
|
|
551
|
+
**/
|
|
552
|
+
balances: {
|
|
553
|
+
/**
|
|
554
|
+
* The total units issued in the system.
|
|
555
|
+
*
|
|
556
|
+
* @param {Callback<bigint> =} callback
|
|
557
|
+
**/
|
|
558
|
+
totalIssuance: GenericStorageQuery<Rv, () => bigint>;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* The total units of outstanding deactivated balance in the system.
|
|
562
|
+
*
|
|
563
|
+
* @param {Callback<bigint> =} callback
|
|
564
|
+
**/
|
|
565
|
+
inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* The Balances pallet example of storing the balance of an account.
|
|
569
|
+
*
|
|
570
|
+
* # Example
|
|
571
|
+
*
|
|
572
|
+
* ```nocompile
|
|
573
|
+
* impl pallet_balances::Config for Runtime {
|
|
574
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
575
|
+
* }
|
|
576
|
+
* ```
|
|
577
|
+
*
|
|
578
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
579
|
+
*
|
|
580
|
+
* # Example
|
|
581
|
+
*
|
|
582
|
+
* ```nocompile
|
|
583
|
+
* impl pallet_balances::Config for Runtime {
|
|
584
|
+
* type AccountStore = System
|
|
585
|
+
* }
|
|
586
|
+
* ```
|
|
587
|
+
*
|
|
588
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
589
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
590
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
591
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
592
|
+
*
|
|
593
|
+
* @param {AccountId32Like} arg
|
|
594
|
+
* @param {Callback<PalletBalancesAccountData> =} callback
|
|
595
|
+
**/
|
|
596
|
+
account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Any liquidity locks on some account balances.
|
|
600
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
601
|
+
*
|
|
602
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
603
|
+
*
|
|
604
|
+
* @param {AccountId32Like} arg
|
|
605
|
+
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
606
|
+
**/
|
|
607
|
+
locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Named reserves on some account balances.
|
|
611
|
+
*
|
|
612
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
613
|
+
*
|
|
614
|
+
* @param {AccountId32Like} arg
|
|
615
|
+
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
616
|
+
**/
|
|
617
|
+
reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Holds on account balances.
|
|
621
|
+
*
|
|
622
|
+
* @param {AccountId32Like} arg
|
|
623
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
|
|
624
|
+
**/
|
|
625
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Freeze locks on account balances.
|
|
629
|
+
*
|
|
630
|
+
* @param {AccountId32Like} arg
|
|
631
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
632
|
+
**/
|
|
633
|
+
freezes: GenericStorageQuery<
|
|
634
|
+
Rv,
|
|
635
|
+
(arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
636
|
+
AccountId32
|
|
637
|
+
>;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Generic pallet storage query
|
|
641
|
+
**/
|
|
642
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
643
|
+
};
|
|
644
|
+
/**
|
|
645
|
+
* Pallet `TransactionPayment`'s storage queries
|
|
646
|
+
**/
|
|
647
|
+
transactionPayment: {
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @param {Callback<FixedU128> =} callback
|
|
651
|
+
**/
|
|
652
|
+
nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
*
|
|
656
|
+
* @param {Callback<PalletTransactionPaymentReleases> =} callback
|
|
657
|
+
**/
|
|
658
|
+
storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Generic pallet storage query
|
|
662
|
+
**/
|
|
663
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* Pallet `Session`'s storage queries
|
|
667
|
+
**/
|
|
668
|
+
session: {
|
|
669
|
+
/**
|
|
670
|
+
* The current set of validators.
|
|
671
|
+
*
|
|
672
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
673
|
+
**/
|
|
674
|
+
validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Current index of the session.
|
|
678
|
+
*
|
|
679
|
+
* @param {Callback<number> =} callback
|
|
680
|
+
**/
|
|
681
|
+
currentIndex: GenericStorageQuery<Rv, () => number>;
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
685
|
+
* has changed in the queued validator set.
|
|
686
|
+
*
|
|
687
|
+
* @param {Callback<boolean> =} callback
|
|
688
|
+
**/
|
|
689
|
+
queuedChanged: GenericStorageQuery<Rv, () => boolean>;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
693
|
+
* will be used to determine the validator's session keys.
|
|
694
|
+
*
|
|
695
|
+
* @param {Callback<Array<[AccountId32, VaraRuntimeSessionKeys]>> =} callback
|
|
696
|
+
**/
|
|
697
|
+
queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, VaraRuntimeSessionKeys]>>;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Indices of disabled validators.
|
|
701
|
+
*
|
|
702
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
703
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
704
|
+
* a new set of identities.
|
|
705
|
+
*
|
|
706
|
+
* @param {Callback<Array<number>> =} callback
|
|
707
|
+
**/
|
|
708
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* The next session keys for a validator.
|
|
712
|
+
*
|
|
713
|
+
* @param {AccountId32Like} arg
|
|
714
|
+
* @param {Callback<VaraRuntimeSessionKeys | undefined> =} callback
|
|
715
|
+
**/
|
|
716
|
+
nextKeys: GenericStorageQuery<Rv, (arg: AccountId32Like) => VaraRuntimeSessionKeys | undefined, AccountId32>;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
720
|
+
*
|
|
721
|
+
* @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
|
|
722
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
723
|
+
**/
|
|
724
|
+
keyOwner: GenericStorageQuery<
|
|
725
|
+
Rv,
|
|
726
|
+
(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
|
|
727
|
+
[SpCoreCryptoKeyTypeId, Bytes]
|
|
728
|
+
>;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Generic pallet storage query
|
|
732
|
+
**/
|
|
733
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
734
|
+
};
|
|
735
|
+
/**
|
|
736
|
+
* Pallet `AuthorityDiscovery`'s storage queries
|
|
737
|
+
**/
|
|
738
|
+
authorityDiscovery: {
|
|
739
|
+
/**
|
|
740
|
+
* Keys of the current authority set.
|
|
741
|
+
*
|
|
742
|
+
* @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
|
|
743
|
+
**/
|
|
744
|
+
keys: GenericStorageQuery<Rv, () => Array<SpAuthorityDiscoveryAppPublic>>;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Keys of the next authority set.
|
|
748
|
+
*
|
|
749
|
+
* @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
|
|
750
|
+
**/
|
|
751
|
+
nextKeys: GenericStorageQuery<Rv, () => Array<SpAuthorityDiscoveryAppPublic>>;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Generic pallet storage query
|
|
755
|
+
**/
|
|
756
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* Pallet `Vesting`'s storage queries
|
|
760
|
+
**/
|
|
761
|
+
vesting: {
|
|
762
|
+
/**
|
|
763
|
+
* Information regarding the vesting of a given account.
|
|
764
|
+
*
|
|
765
|
+
* @param {AccountId32Like} arg
|
|
766
|
+
* @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
|
|
767
|
+
**/
|
|
768
|
+
vesting: GenericStorageQuery<
|
|
769
|
+
Rv,
|
|
770
|
+
(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
|
|
771
|
+
AccountId32
|
|
772
|
+
>;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Storage version of the pallet.
|
|
776
|
+
*
|
|
777
|
+
* New networks start with latest version, as determined by the genesis build.
|
|
778
|
+
*
|
|
779
|
+
* @param {Callback<PalletVestingReleases> =} callback
|
|
780
|
+
**/
|
|
781
|
+
storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Generic pallet storage query
|
|
785
|
+
**/
|
|
786
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
787
|
+
};
|
|
788
|
+
/**
|
|
789
|
+
* Pallet `BagsList`'s storage queries
|
|
790
|
+
**/
|
|
791
|
+
bagsList: {
|
|
792
|
+
/**
|
|
793
|
+
* A single node, within some bag.
|
|
794
|
+
*
|
|
795
|
+
* Nodes store links forward and back within their respective bags.
|
|
796
|
+
*
|
|
797
|
+
* @param {AccountId32Like} arg
|
|
798
|
+
* @param {Callback<PalletBagsListListNode | undefined> =} callback
|
|
799
|
+
**/
|
|
800
|
+
listNodes: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBagsListListNode | undefined, AccountId32>;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Counter for the related counted storage map
|
|
804
|
+
*
|
|
805
|
+
* @param {Callback<number> =} callback
|
|
806
|
+
**/
|
|
807
|
+
counterForListNodes: GenericStorageQuery<Rv, () => number>;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* A bag stored in storage.
|
|
811
|
+
*
|
|
812
|
+
* Stores a `Bag` struct, which stores head and tail pointers to itself.
|
|
813
|
+
*
|
|
814
|
+
* @param {bigint} arg
|
|
815
|
+
* @param {Callback<PalletBagsListListBag | undefined> =} callback
|
|
816
|
+
**/
|
|
817
|
+
listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Generic pallet storage query
|
|
821
|
+
**/
|
|
822
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
823
|
+
};
|
|
824
|
+
/**
|
|
825
|
+
* Pallet `ImOnline`'s storage queries
|
|
826
|
+
**/
|
|
827
|
+
imOnline: {
|
|
828
|
+
/**
|
|
829
|
+
* The block number after which it's ok to send heartbeats in the current
|
|
830
|
+
* session.
|
|
831
|
+
*
|
|
832
|
+
* At the beginning of each session we set this to a value that should fall
|
|
833
|
+
* roughly in the middle of the session duration. The idea is to first wait for
|
|
834
|
+
* the validators to produce a block in the current session, so that the
|
|
835
|
+
* heartbeat later on will not be necessary.
|
|
836
|
+
*
|
|
837
|
+
* This value will only be used as a fallback if we fail to get a proper session
|
|
838
|
+
* progress estimate from `NextSessionRotation`, as those estimates should be
|
|
839
|
+
* more accurate then the value we calculate for `HeartbeatAfter`.
|
|
840
|
+
*
|
|
841
|
+
* @param {Callback<number> =} callback
|
|
842
|
+
**/
|
|
843
|
+
heartbeatAfter: GenericStorageQuery<Rv, () => number>;
|
|
844
|
+
|
|
845
|
+
/**
|
|
846
|
+
* The current set of keys that may issue a heartbeat.
|
|
847
|
+
*
|
|
848
|
+
* @param {Callback<Array<PalletImOnlineSr25519AppSr25519Public>> =} callback
|
|
849
|
+
**/
|
|
850
|
+
keys: GenericStorageQuery<Rv, () => Array<PalletImOnlineSr25519AppSr25519Public>>;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
|
|
854
|
+
*
|
|
855
|
+
* @param {[number, number]} arg
|
|
856
|
+
* @param {Callback<boolean | undefined> =} callback
|
|
857
|
+
**/
|
|
858
|
+
receivedHeartbeats: GenericStorageQuery<Rv, (arg: [number, number]) => boolean | undefined, [number, number]>;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* For each session index, we keep a mapping of `ValidatorId<T>` to the
|
|
862
|
+
* number of blocks authored by the given authority.
|
|
863
|
+
*
|
|
864
|
+
* @param {[number, AccountId32Like]} arg
|
|
865
|
+
* @param {Callback<number> =} callback
|
|
866
|
+
**/
|
|
867
|
+
authoredBlocks: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => number, [number, AccountId32]>;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Generic pallet storage query
|
|
871
|
+
**/
|
|
872
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
873
|
+
};
|
|
874
|
+
/**
|
|
875
|
+
* Pallet `Staking`'s storage queries
|
|
876
|
+
**/
|
|
877
|
+
staking: {
|
|
878
|
+
/**
|
|
879
|
+
* The ideal number of active validators.
|
|
880
|
+
*
|
|
881
|
+
* @param {Callback<number> =} callback
|
|
882
|
+
**/
|
|
883
|
+
validatorCount: GenericStorageQuery<Rv, () => number>;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* Minimum number of staking participants before emergency conditions are imposed.
|
|
887
|
+
*
|
|
888
|
+
* @param {Callback<number> =} callback
|
|
889
|
+
**/
|
|
890
|
+
minimumValidatorCount: GenericStorageQuery<Rv, () => number>;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
894
|
+
* easy to initialize and the performance hit is minimal (we expect no more than four
|
|
895
|
+
* invulnerables) and restricted to testnets.
|
|
896
|
+
*
|
|
897
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
898
|
+
**/
|
|
899
|
+
invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Map from all locked "stash" accounts to the controller account.
|
|
903
|
+
*
|
|
904
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
905
|
+
*
|
|
906
|
+
* @param {AccountId32Like} arg
|
|
907
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
908
|
+
**/
|
|
909
|
+
bonded: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* The minimum active bond to become and maintain the role of a nominator.
|
|
913
|
+
*
|
|
914
|
+
* @param {Callback<bigint> =} callback
|
|
915
|
+
**/
|
|
916
|
+
minNominatorBond: GenericStorageQuery<Rv, () => bigint>;
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* The minimum active bond to become and maintain the role of a validator.
|
|
920
|
+
*
|
|
921
|
+
* @param {Callback<bigint> =} callback
|
|
922
|
+
**/
|
|
923
|
+
minValidatorBond: GenericStorageQuery<Rv, () => bigint>;
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* The minimum active nominator stake of the last successful election.
|
|
927
|
+
*
|
|
928
|
+
* @param {Callback<bigint> =} callback
|
|
929
|
+
**/
|
|
930
|
+
minimumActiveStake: GenericStorageQuery<Rv, () => bigint>;
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* The minimum amount of commission that validators can set.
|
|
934
|
+
*
|
|
935
|
+
* If set to `0`, no limit exists.
|
|
936
|
+
*
|
|
937
|
+
* @param {Callback<Perbill> =} callback
|
|
938
|
+
**/
|
|
939
|
+
minCommission: GenericStorageQuery<Rv, () => Perbill>;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
943
|
+
*
|
|
944
|
+
* Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
|
|
945
|
+
* by [`StakingLedger`] to ensure data and lock consistency.
|
|
946
|
+
*
|
|
947
|
+
* @param {AccountId32Like} arg
|
|
948
|
+
* @param {Callback<PalletStakingStakingLedger | undefined> =} callback
|
|
949
|
+
**/
|
|
950
|
+
ledger: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingStakingLedger | undefined, AccountId32>;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Where the reward payment should be made. Keyed by stash.
|
|
954
|
+
*
|
|
955
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
956
|
+
*
|
|
957
|
+
* @param {AccountId32Like} arg
|
|
958
|
+
* @param {Callback<PalletStakingRewardDestination | undefined> =} callback
|
|
959
|
+
**/
|
|
960
|
+
payee: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingRewardDestination | undefined, AccountId32>;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* The map from (wannabe) validator stash key to the preferences of that validator.
|
|
964
|
+
*
|
|
965
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
966
|
+
*
|
|
967
|
+
* @param {AccountId32Like} arg
|
|
968
|
+
* @param {Callback<PalletStakingValidatorPrefs> =} callback
|
|
969
|
+
**/
|
|
970
|
+
validators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingValidatorPrefs, AccountId32>;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Counter for the related counted storage map
|
|
974
|
+
*
|
|
975
|
+
* @param {Callback<number> =} callback
|
|
976
|
+
**/
|
|
977
|
+
counterForValidators: GenericStorageQuery<Rv, () => number>;
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* The maximum validator count before we stop allowing new validators to join.
|
|
981
|
+
*
|
|
982
|
+
* When this value is not set, no limits are enforced.
|
|
983
|
+
*
|
|
984
|
+
* @param {Callback<number | undefined> =} callback
|
|
985
|
+
**/
|
|
986
|
+
maxValidatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* The map from nominator stash key to their nomination preferences, namely the validators that
|
|
990
|
+
* they wish to support.
|
|
991
|
+
*
|
|
992
|
+
* Note that the keys of this storage map might become non-decodable in case the
|
|
993
|
+
* account's [`NominationsQuota::MaxNominations`] configuration is decreased.
|
|
994
|
+
* In this rare case, these nominators
|
|
995
|
+
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
|
996
|
+
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
|
997
|
+
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
|
998
|
+
* is within the bounds of the newly set `Config::MaxNominations`.
|
|
999
|
+
*
|
|
1000
|
+
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
|
1001
|
+
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
|
1002
|
+
* number of keys that exist.
|
|
1003
|
+
*
|
|
1004
|
+
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
|
1005
|
+
* [`Call::chill_other`] dispatchable by anyone.
|
|
1006
|
+
*
|
|
1007
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1008
|
+
*
|
|
1009
|
+
* @param {AccountId32Like} arg
|
|
1010
|
+
* @param {Callback<PalletStakingNominations | undefined> =} callback
|
|
1011
|
+
**/
|
|
1012
|
+
nominators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingNominations | undefined, AccountId32>;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Counter for the related counted storage map
|
|
1016
|
+
*
|
|
1017
|
+
* @param {Callback<number> =} callback
|
|
1018
|
+
**/
|
|
1019
|
+
counterForNominators: GenericStorageQuery<Rv, () => number>;
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Stakers whose funds are managed by other pallets.
|
|
1023
|
+
*
|
|
1024
|
+
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
|
1025
|
+
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
|
1026
|
+
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
|
1027
|
+
* via low level apis. We keep track of them to do minimal integrity checks.
|
|
1028
|
+
*
|
|
1029
|
+
* @param {AccountId32Like} arg
|
|
1030
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1031
|
+
**/
|
|
1032
|
+
virtualStakers: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* Counter for the related counted storage map
|
|
1036
|
+
*
|
|
1037
|
+
* @param {Callback<number> =} callback
|
|
1038
|
+
**/
|
|
1039
|
+
counterForVirtualStakers: GenericStorageQuery<Rv, () => number>;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* The maximum nominator count before we stop allowing new validators to join.
|
|
1043
|
+
*
|
|
1044
|
+
* When this value is not set, no limits are enforced.
|
|
1045
|
+
*
|
|
1046
|
+
* @param {Callback<number | undefined> =} callback
|
|
1047
|
+
**/
|
|
1048
|
+
maxNominatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* The current era index.
|
|
1052
|
+
*
|
|
1053
|
+
* This is the latest planned era, depending on how the Session pallet queues the validator
|
|
1054
|
+
* set, it might be active or not.
|
|
1055
|
+
*
|
|
1056
|
+
* @param {Callback<number | undefined> =} callback
|
|
1057
|
+
**/
|
|
1058
|
+
currentEra: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* The active era information, it holds index and start.
|
|
1062
|
+
*
|
|
1063
|
+
* The active era is the era being currently rewarded. Validator set of this era must be
|
|
1064
|
+
* equal to [`SessionInterface::validators`].
|
|
1065
|
+
*
|
|
1066
|
+
* @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
|
|
1067
|
+
**/
|
|
1068
|
+
activeEra: GenericStorageQuery<Rv, () => PalletStakingActiveEraInfo | undefined>;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* The session index at which the era start for the last [`Config::HistoryDepth`] eras.
|
|
1072
|
+
*
|
|
1073
|
+
* Note: This tracks the starting session (i.e. session index when era start being active)
|
|
1074
|
+
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
|
1075
|
+
*
|
|
1076
|
+
* @param {number} arg
|
|
1077
|
+
* @param {Callback<number | undefined> =} callback
|
|
1078
|
+
**/
|
|
1079
|
+
erasStartSessionIndex: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Exposure of validator at era.
|
|
1083
|
+
*
|
|
1084
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1085
|
+
*
|
|
1086
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1087
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
1088
|
+
*
|
|
1089
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
1090
|
+
*
|
|
1091
|
+
* @param {[number, AccountId32Like]} arg
|
|
1092
|
+
* @param {Callback<SpStakingExposure> =} callback
|
|
1093
|
+
**/
|
|
1094
|
+
erasStakers: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => SpStakingExposure, [number, AccountId32]>;
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Summary of validator exposure at a given era.
|
|
1098
|
+
*
|
|
1099
|
+
* This contains the total stake in support of the validator and their own stake. In addition,
|
|
1100
|
+
* it can also be used to get the number of nominators backing this validator and the number of
|
|
1101
|
+
* exposure pages they are divided into. The page count is useful to determine the number of
|
|
1102
|
+
* pages of rewards that needs to be claimed.
|
|
1103
|
+
*
|
|
1104
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1105
|
+
* Should only be accessed through `EraInfo`.
|
|
1106
|
+
*
|
|
1107
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1108
|
+
* If stakers hasn't been set or has been removed then empty overview is returned.
|
|
1109
|
+
*
|
|
1110
|
+
* @param {[number, AccountId32Like]} arg
|
|
1111
|
+
* @param {Callback<SpStakingPagedExposureMetadata | undefined> =} callback
|
|
1112
|
+
**/
|
|
1113
|
+
erasStakersOverview: GenericStorageQuery<
|
|
1114
|
+
Rv,
|
|
1115
|
+
(arg: [number, AccountId32Like]) => SpStakingPagedExposureMetadata | undefined,
|
|
1116
|
+
[number, AccountId32]
|
|
1117
|
+
>;
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Clipped Exposure of validator at era.
|
|
1121
|
+
*
|
|
1122
|
+
* Note: This is deprecated, should be used as read-only and will be removed in the future.
|
|
1123
|
+
* New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
|
|
1124
|
+
*
|
|
1125
|
+
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
|
1126
|
+
* `T::MaxExposurePageSize` biggest stakers.
|
|
1127
|
+
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
|
1128
|
+
* This is used to limit the i/o cost for the nominator payout.
|
|
1129
|
+
*
|
|
1130
|
+
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
|
1131
|
+
*
|
|
1132
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
1133
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
1134
|
+
*
|
|
1135
|
+
* Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
|
|
1136
|
+
*
|
|
1137
|
+
* @param {[number, AccountId32Like]} arg
|
|
1138
|
+
* @param {Callback<SpStakingExposure> =} callback
|
|
1139
|
+
**/
|
|
1140
|
+
erasStakersClipped: GenericStorageQuery<
|
|
1141
|
+
Rv,
|
|
1142
|
+
(arg: [number, AccountId32Like]) => SpStakingExposure,
|
|
1143
|
+
[number, AccountId32]
|
|
1144
|
+
>;
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* Paginated exposure of a validator at given era.
|
|
1148
|
+
*
|
|
1149
|
+
* This is keyed first by the era index to allow bulk deletion, then stash account and finally
|
|
1150
|
+
* the page. Should only be accessed through `EraInfo`.
|
|
1151
|
+
*
|
|
1152
|
+
* This is cleared after [`Config::HistoryDepth`] eras.
|
|
1153
|
+
*
|
|
1154
|
+
* @param {[number, AccountId32Like, number]} arg
|
|
1155
|
+
* @param {Callback<SpStakingExposurePage | undefined> =} callback
|
|
1156
|
+
**/
|
|
1157
|
+
erasStakersPaged: GenericStorageQuery<
|
|
1158
|
+
Rv,
|
|
1159
|
+
(arg: [number, AccountId32Like, number]) => SpStakingExposurePage | undefined,
|
|
1160
|
+
[number, AccountId32, number]
|
|
1161
|
+
>;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* History of claimed paged rewards by era and validator.
|
|
1165
|
+
*
|
|
1166
|
+
* This is keyed by era and validator stash which maps to the set of page indexes which have
|
|
1167
|
+
* been claimed.
|
|
1168
|
+
*
|
|
1169
|
+
* It is removed after [`Config::HistoryDepth`] eras.
|
|
1170
|
+
*
|
|
1171
|
+
* @param {[number, AccountId32Like]} arg
|
|
1172
|
+
* @param {Callback<Array<number>> =} callback
|
|
1173
|
+
**/
|
|
1174
|
+
claimedRewards: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => Array<number>, [number, AccountId32]>;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Similar to `ErasStakers`, this holds the preferences of validators.
|
|
1178
|
+
*
|
|
1179
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
1180
|
+
*
|
|
1181
|
+
* Is it removed after [`Config::HistoryDepth`] eras.
|
|
1182
|
+
*
|
|
1183
|
+
* @param {[number, AccountId32Like]} arg
|
|
1184
|
+
* @param {Callback<PalletStakingValidatorPrefs> =} callback
|
|
1185
|
+
**/
|
|
1186
|
+
erasValidatorPrefs: GenericStorageQuery<
|
|
1187
|
+
Rv,
|
|
1188
|
+
(arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs,
|
|
1189
|
+
[number, AccountId32]
|
|
1190
|
+
>;
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* The total validator era payout for the last [`Config::HistoryDepth`] eras.
|
|
1194
|
+
*
|
|
1195
|
+
* Eras that haven't finished yet or has been removed doesn't have reward.
|
|
1196
|
+
*
|
|
1197
|
+
* @param {number} arg
|
|
1198
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
1199
|
+
**/
|
|
1200
|
+
erasValidatorReward: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Rewards for the last [`Config::HistoryDepth`] eras.
|
|
1204
|
+
* If reward hasn't been set or has been removed then 0 reward is returned.
|
|
1205
|
+
*
|
|
1206
|
+
* @param {number} arg
|
|
1207
|
+
* @param {Callback<PalletStakingEraRewardPoints> =} callback
|
|
1208
|
+
**/
|
|
1209
|
+
erasRewardPoints: GenericStorageQuery<Rv, (arg: number) => PalletStakingEraRewardPoints, number>;
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* The total amount staked for the last [`Config::HistoryDepth`] eras.
|
|
1213
|
+
* If total hasn't been set or has been removed then 0 stake is returned.
|
|
1214
|
+
*
|
|
1215
|
+
* @param {number} arg
|
|
1216
|
+
* @param {Callback<bigint> =} callback
|
|
1217
|
+
**/
|
|
1218
|
+
erasTotalStake: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* Mode of era forcing.
|
|
1222
|
+
*
|
|
1223
|
+
* @param {Callback<PalletStakingForcing> =} callback
|
|
1224
|
+
**/
|
|
1225
|
+
forceEra: GenericStorageQuery<Rv, () => PalletStakingForcing>;
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
|
1229
|
+
* is used for stake rewards.
|
|
1230
|
+
* See [Era payout](./index.html#era-payout).
|
|
1231
|
+
*
|
|
1232
|
+
* @param {Callback<Percent | undefined> =} callback
|
|
1233
|
+
**/
|
|
1234
|
+
maxStakedRewards: GenericStorageQuery<Rv, () => Percent | undefined>;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* The percentage of the slash that is distributed to reporters.
|
|
1238
|
+
*
|
|
1239
|
+
* The rest of the slashed value is handled by the `Slash`.
|
|
1240
|
+
*
|
|
1241
|
+
* @param {Callback<Perbill> =} callback
|
|
1242
|
+
**/
|
|
1243
|
+
slashRewardFraction: GenericStorageQuery<Rv, () => Perbill>;
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* The amount of currency given to reporters of a slash event which was
|
|
1247
|
+
* canceled by extraordinary circumstances (e.g. governance).
|
|
1248
|
+
*
|
|
1249
|
+
* @param {Callback<bigint> =} callback
|
|
1250
|
+
**/
|
|
1251
|
+
canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* All unapplied slashes that are queued for later.
|
|
1255
|
+
*
|
|
1256
|
+
* @param {number} arg
|
|
1257
|
+
* @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
|
|
1258
|
+
**/
|
|
1259
|
+
unappliedSlashes: GenericStorageQuery<Rv, (arg: number) => Array<PalletStakingUnappliedSlash>, number>;
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* A mapping from still-bonded eras to the first session index of that era.
|
|
1263
|
+
*
|
|
1264
|
+
* Must contains information for eras for the range:
|
|
1265
|
+
* `[active_era - bounding_duration; active_era]`
|
|
1266
|
+
*
|
|
1267
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
1268
|
+
**/
|
|
1269
|
+
bondedEras: GenericStorageQuery<Rv, () => Array<[number, number]>>;
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* All slashing events on validators, mapped by era to the highest slash proportion
|
|
1273
|
+
* and slash value of the era.
|
|
1274
|
+
*
|
|
1275
|
+
* @param {[number, AccountId32Like]} arg
|
|
1276
|
+
* @param {Callback<[Perbill, bigint] | undefined> =} callback
|
|
1277
|
+
**/
|
|
1278
|
+
validatorSlashInEra: GenericStorageQuery<
|
|
1279
|
+
Rv,
|
|
1280
|
+
(arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined,
|
|
1281
|
+
[number, AccountId32]
|
|
1282
|
+
>;
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* All slashing events on nominators, mapped by era to the highest slash value of the era.
|
|
1286
|
+
*
|
|
1287
|
+
* @param {[number, AccountId32Like]} arg
|
|
1288
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
1289
|
+
**/
|
|
1290
|
+
nominatorSlashInEra: GenericStorageQuery<
|
|
1291
|
+
Rv,
|
|
1292
|
+
(arg: [number, AccountId32Like]) => bigint | undefined,
|
|
1293
|
+
[number, AccountId32]
|
|
1294
|
+
>;
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Slashing spans for stash accounts.
|
|
1298
|
+
*
|
|
1299
|
+
* @param {AccountId32Like} arg
|
|
1300
|
+
* @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
|
|
1301
|
+
**/
|
|
1302
|
+
slashingSpans: GenericStorageQuery<
|
|
1303
|
+
Rv,
|
|
1304
|
+
(arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined,
|
|
1305
|
+
AccountId32
|
|
1306
|
+
>;
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* Records information about the maximum slash of a stash within a slashing span,
|
|
1310
|
+
* as well as how much reward has been paid out.
|
|
1311
|
+
*
|
|
1312
|
+
* @param {[AccountId32Like, number]} arg
|
|
1313
|
+
* @param {Callback<PalletStakingSlashingSpanRecord> =} callback
|
|
1314
|
+
**/
|
|
1315
|
+
spanSlash: GenericStorageQuery<
|
|
1316
|
+
Rv,
|
|
1317
|
+
(arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord,
|
|
1318
|
+
[AccountId32, number]
|
|
1319
|
+
>;
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* The last planned session scheduled by the session pallet.
|
|
1323
|
+
*
|
|
1324
|
+
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
|
1325
|
+
*
|
|
1326
|
+
* @param {Callback<number> =} callback
|
|
1327
|
+
**/
|
|
1328
|
+
currentPlannedSession: GenericStorageQuery<Rv, () => number>;
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
|
1332
|
+
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
|
|
1333
|
+
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
|
|
1334
|
+
* implicitly means that the implementor also controls the max number of disabled validators.
|
|
1335
|
+
*
|
|
1336
|
+
* The vec is always kept sorted so that we can find whether a given validator has previously
|
|
1337
|
+
* offended using binary search.
|
|
1338
|
+
*
|
|
1339
|
+
* @param {Callback<Array<number>> =} callback
|
|
1340
|
+
**/
|
|
1341
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* The threshold for when users can start calling `chill_other` for other validators /
|
|
1345
|
+
* nominators. The threshold is compared to the actual number of validators / nominators
|
|
1346
|
+
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
|
1347
|
+
*
|
|
1348
|
+
* @param {Callback<Percent | undefined> =} callback
|
|
1349
|
+
**/
|
|
1350
|
+
chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Generic pallet storage query
|
|
1354
|
+
**/
|
|
1355
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1356
|
+
};
|
|
1357
|
+
/**
|
|
1358
|
+
* Pallet `Treasury`'s storage queries
|
|
1359
|
+
**/
|
|
1360
|
+
treasury: {
|
|
1361
|
+
/**
|
|
1362
|
+
* Number of proposals that have been made.
|
|
1363
|
+
*
|
|
1364
|
+
* @param {Callback<number> =} callback
|
|
1365
|
+
**/
|
|
1366
|
+
proposalCount: GenericStorageQuery<Rv, () => number>;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Proposals that have been made.
|
|
1370
|
+
*
|
|
1371
|
+
* @param {number} arg
|
|
1372
|
+
* @param {Callback<PalletTreasuryProposal | undefined> =} callback
|
|
1373
|
+
**/
|
|
1374
|
+
proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* The amount which has been reported as inactive to Currency.
|
|
1378
|
+
*
|
|
1379
|
+
* @param {Callback<bigint> =} callback
|
|
1380
|
+
**/
|
|
1381
|
+
deactivated: GenericStorageQuery<Rv, () => bigint>;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Proposal indices that have been approved but not yet awarded.
|
|
1385
|
+
*
|
|
1386
|
+
* @param {Callback<Array<number>> =} callback
|
|
1387
|
+
**/
|
|
1388
|
+
approvals: GenericStorageQuery<Rv, () => Array<number>>;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* The count of spends that have been made.
|
|
1392
|
+
*
|
|
1393
|
+
* @param {Callback<number> =} callback
|
|
1394
|
+
**/
|
|
1395
|
+
spendCount: GenericStorageQuery<Rv, () => number>;
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Spends that have been approved and being processed.
|
|
1399
|
+
*
|
|
1400
|
+
* @param {number} arg
|
|
1401
|
+
* @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
|
|
1402
|
+
**/
|
|
1403
|
+
spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* Generic pallet storage query
|
|
1407
|
+
**/
|
|
1408
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1409
|
+
};
|
|
1410
|
+
/**
|
|
1411
|
+
* Pallet `Historical`'s storage queries
|
|
1412
|
+
**/
|
|
1413
|
+
historical: {
|
|
1414
|
+
/**
|
|
1415
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
1416
|
+
*
|
|
1417
|
+
* @param {number} arg
|
|
1418
|
+
* @param {Callback<[H256, number] | undefined> =} callback
|
|
1419
|
+
**/
|
|
1420
|
+
historicalSessions: GenericStorageQuery<Rv, (arg: number) => [H256, number] | undefined, number>;
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* The range of historical sessions we store. [first, last)
|
|
1424
|
+
*
|
|
1425
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
1426
|
+
**/
|
|
1427
|
+
storedRange: GenericStorageQuery<Rv, () => [number, number] | undefined>;
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Generic pallet storage query
|
|
1431
|
+
**/
|
|
1432
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* Pallet `ConvictionVoting`'s storage queries
|
|
1436
|
+
**/
|
|
1437
|
+
convictionVoting: {
|
|
1438
|
+
/**
|
|
1439
|
+
* All voting for a particular voter in a particular voting class. We store the balance for the
|
|
1440
|
+
* number of votes that we have recorded.
|
|
1441
|
+
*
|
|
1442
|
+
* @param {[AccountId32Like, number]} arg
|
|
1443
|
+
* @param {Callback<PalletConvictionVotingVoteVoting> =} callback
|
|
1444
|
+
**/
|
|
1445
|
+
votingFor: GenericStorageQuery<
|
|
1446
|
+
Rv,
|
|
1447
|
+
(arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
|
|
1448
|
+
[AccountId32, number]
|
|
1449
|
+
>;
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* The voting classes which have a non-zero lock requirement and the lock amounts which they
|
|
1453
|
+
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
|
1454
|
+
* this list.
|
|
1455
|
+
*
|
|
1456
|
+
* @param {AccountId32Like} arg
|
|
1457
|
+
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
1458
|
+
**/
|
|
1459
|
+
classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
* Generic pallet storage query
|
|
1463
|
+
**/
|
|
1464
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1465
|
+
};
|
|
1466
|
+
/**
|
|
1467
|
+
* Pallet `Referenda`'s storage queries
|
|
1468
|
+
**/
|
|
1469
|
+
referenda: {
|
|
1470
|
+
/**
|
|
1471
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
1472
|
+
*
|
|
1473
|
+
* @param {Callback<number> =} callback
|
|
1474
|
+
**/
|
|
1475
|
+
referendumCount: GenericStorageQuery<Rv, () => number>;
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Information concerning any given referendum.
|
|
1479
|
+
*
|
|
1480
|
+
* @param {number} arg
|
|
1481
|
+
* @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
|
|
1482
|
+
**/
|
|
1483
|
+
referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfo | undefined, number>;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
1487
|
+
* conviction-weighted approvals.
|
|
1488
|
+
*
|
|
1489
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
1490
|
+
*
|
|
1491
|
+
* @param {number} arg
|
|
1492
|
+
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
1493
|
+
**/
|
|
1494
|
+
trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* The number of referenda being decided currently.
|
|
1498
|
+
*
|
|
1499
|
+
* @param {number} arg
|
|
1500
|
+
* @param {Callback<number> =} callback
|
|
1501
|
+
**/
|
|
1502
|
+
decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* The metadata is a general information concerning the referendum.
|
|
1506
|
+
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1507
|
+
* dump or IPFS hash of a JSON file.
|
|
1508
|
+
*
|
|
1509
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1510
|
+
* large preimages.
|
|
1511
|
+
*
|
|
1512
|
+
* @param {number} arg
|
|
1513
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
1514
|
+
**/
|
|
1515
|
+
metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* Generic pallet storage query
|
|
1519
|
+
**/
|
|
1520
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1521
|
+
};
|
|
1522
|
+
/**
|
|
1523
|
+
* Pallet `FellowshipCollective`'s storage queries
|
|
1524
|
+
**/
|
|
1525
|
+
fellowshipCollective: {
|
|
1526
|
+
/**
|
|
1527
|
+
* The number of members in the collective who have at least the rank according to the index
|
|
1528
|
+
* of the vec.
|
|
1529
|
+
*
|
|
1530
|
+
* @param {number} arg
|
|
1531
|
+
* @param {Callback<number> =} callback
|
|
1532
|
+
**/
|
|
1533
|
+
memberCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* The current members of the collective.
|
|
1537
|
+
*
|
|
1538
|
+
* @param {AccountId32Like} arg
|
|
1539
|
+
* @param {Callback<PalletRankedCollectiveMemberRecord | undefined> =} callback
|
|
1540
|
+
**/
|
|
1541
|
+
members: GenericStorageQuery<
|
|
1542
|
+
Rv,
|
|
1543
|
+
(arg: AccountId32Like) => PalletRankedCollectiveMemberRecord | undefined,
|
|
1544
|
+
AccountId32
|
|
1545
|
+
>;
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
* The index of each ranks's member into the group of members who have at least that rank.
|
|
1549
|
+
*
|
|
1550
|
+
* @param {[number, AccountId32Like]} arg
|
|
1551
|
+
* @param {Callback<number | undefined> =} callback
|
|
1552
|
+
**/
|
|
1553
|
+
idToIndex: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => number | undefined, [number, AccountId32]>;
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* The members in the collective by index. All indices in the range `0..MemberCount` will
|
|
1557
|
+
* return `Some`, however a member's index is not guaranteed to remain unchanged over time.
|
|
1558
|
+
*
|
|
1559
|
+
* @param {[number, number]} arg
|
|
1560
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1561
|
+
**/
|
|
1562
|
+
indexToId: GenericStorageQuery<Rv, (arg: [number, number]) => AccountId32 | undefined, [number, number]>;
|
|
1563
|
+
|
|
1564
|
+
/**
|
|
1565
|
+
* Votes on a given proposal, if it is ongoing.
|
|
1566
|
+
*
|
|
1567
|
+
* @param {[number, AccountId32Like]} arg
|
|
1568
|
+
* @param {Callback<PalletRankedCollectiveVoteRecord | undefined> =} callback
|
|
1569
|
+
**/
|
|
1570
|
+
voting: GenericStorageQuery<
|
|
1571
|
+
Rv,
|
|
1572
|
+
(arg: [number, AccountId32Like]) => PalletRankedCollectiveVoteRecord | undefined,
|
|
1573
|
+
[number, AccountId32]
|
|
1574
|
+
>;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @param {number} arg
|
|
1579
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1580
|
+
**/
|
|
1581
|
+
votingCleanup: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Generic pallet storage query
|
|
1585
|
+
**/
|
|
1586
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1587
|
+
};
|
|
1588
|
+
/**
|
|
1589
|
+
* Pallet `FellowshipReferenda`'s storage queries
|
|
1590
|
+
**/
|
|
1591
|
+
fellowshipReferenda: {
|
|
1592
|
+
/**
|
|
1593
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
1594
|
+
*
|
|
1595
|
+
* @param {Callback<number> =} callback
|
|
1596
|
+
**/
|
|
1597
|
+
referendumCount: GenericStorageQuery<Rv, () => number>;
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* Information concerning any given referendum.
|
|
1601
|
+
*
|
|
1602
|
+
* @param {number} arg
|
|
1603
|
+
* @param {Callback<PalletReferendaReferendumInfoTally | undefined> =} callback
|
|
1604
|
+
**/
|
|
1605
|
+
referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfoTally | undefined, number>;
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
1609
|
+
* conviction-weighted approvals.
|
|
1610
|
+
*
|
|
1611
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
1612
|
+
*
|
|
1613
|
+
* @param {number} arg
|
|
1614
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
1615
|
+
**/
|
|
1616
|
+
trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, number]>, number>;
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* The number of referenda being decided currently.
|
|
1620
|
+
*
|
|
1621
|
+
* @param {number} arg
|
|
1622
|
+
* @param {Callback<number> =} callback
|
|
1623
|
+
**/
|
|
1624
|
+
decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
1625
|
+
|
|
1626
|
+
/**
|
|
1627
|
+
* The metadata is a general information concerning the referendum.
|
|
1628
|
+
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1629
|
+
* dump or IPFS hash of a JSON file.
|
|
1630
|
+
*
|
|
1631
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1632
|
+
* large preimages.
|
|
1633
|
+
*
|
|
1634
|
+
* @param {number} arg
|
|
1635
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
1636
|
+
**/
|
|
1637
|
+
metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* Generic pallet storage query
|
|
1641
|
+
**/
|
|
1642
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1643
|
+
};
|
|
1644
|
+
/**
|
|
1645
|
+
* Pallet `Whitelist`'s storage queries
|
|
1646
|
+
**/
|
|
1647
|
+
whitelist: {
|
|
1648
|
+
/**
|
|
1649
|
+
*
|
|
1650
|
+
* @param {H256} arg
|
|
1651
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1652
|
+
**/
|
|
1653
|
+
whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* Generic pallet storage query
|
|
1657
|
+
**/
|
|
1658
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1659
|
+
};
|
|
1660
|
+
/**
|
|
1661
|
+
* Pallet `Scheduler`'s storage queries
|
|
1662
|
+
**/
|
|
1663
|
+
scheduler: {
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @param {Callback<number | undefined> =} callback
|
|
1667
|
+
**/
|
|
1668
|
+
incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Items to be executed, indexed by the block number that they should be executed on.
|
|
1672
|
+
*
|
|
1673
|
+
* @param {number} arg
|
|
1674
|
+
* @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
|
|
1675
|
+
**/
|
|
1676
|
+
agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
|
|
1677
|
+
|
|
1678
|
+
/**
|
|
1679
|
+
* Retry configurations for items to be executed, indexed by task address.
|
|
1680
|
+
*
|
|
1681
|
+
* @param {[number, number]} arg
|
|
1682
|
+
* @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
|
|
1683
|
+
**/
|
|
1684
|
+
retries: GenericStorageQuery<
|
|
1685
|
+
Rv,
|
|
1686
|
+
(arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
|
|
1687
|
+
[number, number]
|
|
1688
|
+
>;
|
|
1689
|
+
|
|
1690
|
+
/**
|
|
1691
|
+
* Lookup from a name to the block number and index of the task.
|
|
1692
|
+
*
|
|
1693
|
+
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
|
1694
|
+
* identities.
|
|
1695
|
+
*
|
|
1696
|
+
* @param {FixedBytes<32>} arg
|
|
1697
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
1698
|
+
**/
|
|
1699
|
+
lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* Generic pallet storage query
|
|
1703
|
+
**/
|
|
1704
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1705
|
+
};
|
|
1706
|
+
/**
|
|
1707
|
+
* Pallet `Preimage`'s storage queries
|
|
1708
|
+
**/
|
|
1709
|
+
preimage: {
|
|
1710
|
+
/**
|
|
1711
|
+
* The request status of a given hash.
|
|
1712
|
+
*
|
|
1713
|
+
* @param {H256} arg
|
|
1714
|
+
* @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
|
|
1715
|
+
**/
|
|
1716
|
+
statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* The request status of a given hash.
|
|
1720
|
+
*
|
|
1721
|
+
* @param {H256} arg
|
|
1722
|
+
* @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
|
|
1723
|
+
**/
|
|
1724
|
+
requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
*
|
|
1728
|
+
* @param {[H256, number]} arg
|
|
1729
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1730
|
+
**/
|
|
1731
|
+
preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Generic pallet storage query
|
|
1735
|
+
**/
|
|
1736
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1737
|
+
};
|
|
1738
|
+
/**
|
|
1739
|
+
* Pallet `Identity`'s storage queries
|
|
1740
|
+
**/
|
|
1741
|
+
identity: {
|
|
1742
|
+
/**
|
|
1743
|
+
* Information that is pertinent to identify the entity behind an account. First item is the
|
|
1744
|
+
* registration, second is the account's primary username.
|
|
1745
|
+
*
|
|
1746
|
+
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1747
|
+
*
|
|
1748
|
+
* @param {AccountId32Like} arg
|
|
1749
|
+
* @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
|
|
1750
|
+
**/
|
|
1751
|
+
identityOf: GenericStorageQuery<
|
|
1752
|
+
Rv,
|
|
1753
|
+
(arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
|
|
1754
|
+
AccountId32
|
|
1755
|
+
>;
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* The super-identity of an alternative "sub" identity together with its name, within that
|
|
1759
|
+
* context. If the account is not some other account's sub-identity, then just `None`.
|
|
1760
|
+
*
|
|
1761
|
+
* @param {AccountId32Like} arg
|
|
1762
|
+
* @param {Callback<[AccountId32, Data] | undefined> =} callback
|
|
1763
|
+
**/
|
|
1764
|
+
superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Alternative "sub" identities of this account.
|
|
1768
|
+
*
|
|
1769
|
+
* The first item is the deposit, the second is a vector of the accounts.
|
|
1770
|
+
*
|
|
1771
|
+
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1772
|
+
*
|
|
1773
|
+
* @param {AccountId32Like} arg
|
|
1774
|
+
* @param {Callback<[bigint, Array<AccountId32>]> =} callback
|
|
1775
|
+
**/
|
|
1776
|
+
subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* The set of registrars. Not expected to get very big as can only be added through a
|
|
1780
|
+
* special origin (likely a council motion).
|
|
1781
|
+
*
|
|
1782
|
+
* The index into this can be cast to `RegistrarIndex` to get a valid value.
|
|
1783
|
+
*
|
|
1784
|
+
* @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
|
|
1785
|
+
**/
|
|
1786
|
+
registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* A map of the accounts who are authorized to grant usernames.
|
|
1790
|
+
*
|
|
1791
|
+
* @param {AccountId32Like} arg
|
|
1792
|
+
* @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
|
|
1793
|
+
**/
|
|
1794
|
+
usernameAuthorities: GenericStorageQuery<
|
|
1795
|
+
Rv,
|
|
1796
|
+
(arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
|
|
1797
|
+
AccountId32
|
|
1798
|
+
>;
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
|
1802
|
+
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
|
1803
|
+
*
|
|
1804
|
+
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
|
1805
|
+
* primary username.
|
|
1806
|
+
*
|
|
1807
|
+
* @param {BytesLike} arg
|
|
1808
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1809
|
+
**/
|
|
1810
|
+
accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Usernames that an authority has granted, but that the account controller has not confirmed
|
|
1814
|
+
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
|
1815
|
+
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
|
1816
|
+
* [`Call::accept_username`].
|
|
1817
|
+
*
|
|
1818
|
+
* First tuple item is the account and second is the acceptance deadline.
|
|
1819
|
+
*
|
|
1820
|
+
* @param {BytesLike} arg
|
|
1821
|
+
* @param {Callback<[AccountId32, number] | undefined> =} callback
|
|
1822
|
+
**/
|
|
1823
|
+
pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
* Generic pallet storage query
|
|
1827
|
+
**/
|
|
1828
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1829
|
+
};
|
|
1830
|
+
/**
|
|
1831
|
+
* Pallet `Proxy`'s storage queries
|
|
1832
|
+
**/
|
|
1833
|
+
proxy: {
|
|
1834
|
+
/**
|
|
1835
|
+
* The set of account proxies. Maps the account which has delegated to the accounts
|
|
1836
|
+
* which are being delegated to, together with the amount held on deposit.
|
|
1837
|
+
*
|
|
1838
|
+
* @param {AccountId32Like} arg
|
|
1839
|
+
* @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
|
|
1840
|
+
**/
|
|
1841
|
+
proxies: GenericStorageQuery<
|
|
1842
|
+
Rv,
|
|
1843
|
+
(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
|
|
1844
|
+
AccountId32
|
|
1845
|
+
>;
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* The announcements made by the proxy (key).
|
|
1849
|
+
*
|
|
1850
|
+
* @param {AccountId32Like} arg
|
|
1851
|
+
* @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
|
|
1852
|
+
**/
|
|
1853
|
+
announcements: GenericStorageQuery<
|
|
1854
|
+
Rv,
|
|
1855
|
+
(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
|
|
1856
|
+
AccountId32
|
|
1857
|
+
>;
|
|
1858
|
+
|
|
1859
|
+
/**
|
|
1860
|
+
* Generic pallet storage query
|
|
1861
|
+
**/
|
|
1862
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1863
|
+
};
|
|
1864
|
+
/**
|
|
1865
|
+
* Pallet `Multisig`'s storage queries
|
|
1866
|
+
**/
|
|
1867
|
+
multisig: {
|
|
1868
|
+
/**
|
|
1869
|
+
* The set of open multisig operations.
|
|
1870
|
+
*
|
|
1871
|
+
* @param {[AccountId32Like, FixedBytes<32>]} arg
|
|
1872
|
+
* @param {Callback<PalletMultisigMultisig | undefined> =} callback
|
|
1873
|
+
**/
|
|
1874
|
+
multisigs: GenericStorageQuery<
|
|
1875
|
+
Rv,
|
|
1876
|
+
(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
|
|
1877
|
+
[AccountId32, FixedBytes<32>]
|
|
1878
|
+
>;
|
|
1879
|
+
|
|
1880
|
+
/**
|
|
1881
|
+
* Generic pallet storage query
|
|
1882
|
+
**/
|
|
1883
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1884
|
+
};
|
|
1885
|
+
/**
|
|
1886
|
+
* Pallet `ElectionProviderMultiPhase`'s storage queries
|
|
1887
|
+
**/
|
|
1888
|
+
electionProviderMultiPhase: {
|
|
1889
|
+
/**
|
|
1890
|
+
* Internal counter for the number of rounds.
|
|
1891
|
+
*
|
|
1892
|
+
* This is useful for de-duplication of transactions submitted to the pool, and general
|
|
1893
|
+
* diagnostics of the pallet.
|
|
1894
|
+
*
|
|
1895
|
+
* This is merely incremented once per every time that an upstream `elect` is called.
|
|
1896
|
+
*
|
|
1897
|
+
* @param {Callback<number> =} callback
|
|
1898
|
+
**/
|
|
1899
|
+
round: GenericStorageQuery<Rv, () => number>;
|
|
1900
|
+
|
|
1901
|
+
/**
|
|
1902
|
+
* Current phase.
|
|
1903
|
+
*
|
|
1904
|
+
* @param {Callback<PalletElectionProviderMultiPhasePhase> =} callback
|
|
1905
|
+
**/
|
|
1906
|
+
currentPhase: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhasePhase>;
|
|
1907
|
+
|
|
1908
|
+
/**
|
|
1909
|
+
* Current best solution, signed or unsigned, queued to be returned upon `elect`.
|
|
1910
|
+
*
|
|
1911
|
+
* Always sorted by score.
|
|
1912
|
+
*
|
|
1913
|
+
* @param {Callback<PalletElectionProviderMultiPhaseReadySolution | undefined> =} callback
|
|
1914
|
+
**/
|
|
1915
|
+
queuedSolution: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseReadySolution | undefined>;
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* Snapshot data of the round.
|
|
1919
|
+
*
|
|
1920
|
+
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
|
1921
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
1922
|
+
*
|
|
1923
|
+
* @param {Callback<PalletElectionProviderMultiPhaseRoundSnapshot | undefined> =} callback
|
|
1924
|
+
**/
|
|
1925
|
+
snapshot: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseRoundSnapshot | undefined>;
|
|
1926
|
+
|
|
1927
|
+
/**
|
|
1928
|
+
* Desired number of targets to elect for this round.
|
|
1929
|
+
*
|
|
1930
|
+
* Only exists when [`Snapshot`] is present.
|
|
1931
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
1932
|
+
*
|
|
1933
|
+
* @param {Callback<number | undefined> =} callback
|
|
1934
|
+
**/
|
|
1935
|
+
desiredTargets: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* The metadata of the [`RoundSnapshot`]
|
|
1939
|
+
*
|
|
1940
|
+
* Only exists when [`Snapshot`] is present.
|
|
1941
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
1942
|
+
*
|
|
1943
|
+
* @param {Callback<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined> =} callback
|
|
1944
|
+
**/
|
|
1945
|
+
snapshotMetadata: GenericStorageQuery<Rv, () => PalletElectionProviderMultiPhaseSolutionOrSnapshotSize | undefined>;
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* The next index to be assigned to an incoming signed submission.
|
|
1949
|
+
*
|
|
1950
|
+
* Every accepted submission is assigned a unique index; that index is bound to that particular
|
|
1951
|
+
* submission for the duration of the election. On election finalization, the next index is
|
|
1952
|
+
* reset to 0.
|
|
1953
|
+
*
|
|
1954
|
+
* We can't just use `SignedSubmissionIndices.len()`, because that's a bounded set; past its
|
|
1955
|
+
* capacity, it will simply saturate. We can't just iterate over `SignedSubmissionsMap`,
|
|
1956
|
+
* because iteration is slow. Instead, we store the value here.
|
|
1957
|
+
*
|
|
1958
|
+
* @param {Callback<number> =} callback
|
|
1959
|
+
**/
|
|
1960
|
+
signedSubmissionNextIndex: GenericStorageQuery<Rv, () => number>;
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* A sorted, bounded vector of `(score, block_number, index)`, where each `index` points to a
|
|
1964
|
+
* value in `SignedSubmissions`.
|
|
1965
|
+
*
|
|
1966
|
+
* We never need to process more than a single signed submission at a time. Signed submissions
|
|
1967
|
+
* can be quite large, so we're willing to pay the cost of multiple database accesses to access
|
|
1968
|
+
* them one at a time instead of reading and decoding all of them at once.
|
|
1969
|
+
*
|
|
1970
|
+
* @param {Callback<Array<[SpNposElectionsElectionScore, number, number]>> =} callback
|
|
1971
|
+
**/
|
|
1972
|
+
signedSubmissionIndices: GenericStorageQuery<Rv, () => Array<[SpNposElectionsElectionScore, number, number]>>;
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Unchecked, signed solutions.
|
|
1976
|
+
*
|
|
1977
|
+
* Together with `SubmissionIndices`, this stores a bounded set of `SignedSubmissions` while
|
|
1978
|
+
* allowing us to keep only a single one in memory at a time.
|
|
1979
|
+
*
|
|
1980
|
+
* Twox note: the key of the map is an auto-incrementing index which users cannot inspect or
|
|
1981
|
+
* affect; we shouldn't need a cryptographically secure hasher.
|
|
1982
|
+
*
|
|
1983
|
+
* @param {number} arg
|
|
1984
|
+
* @param {Callback<PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined> =} callback
|
|
1985
|
+
**/
|
|
1986
|
+
signedSubmissionsMap: GenericStorageQuery<
|
|
1987
|
+
Rv,
|
|
1988
|
+
(arg: number) => PalletElectionProviderMultiPhaseSignedSignedSubmission | undefined,
|
|
1989
|
+
number
|
|
1990
|
+
>;
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* The minimum score that each 'untrusted' solution must attain in order to be considered
|
|
1994
|
+
* feasible.
|
|
1995
|
+
*
|
|
1996
|
+
* Can be set via `set_minimum_untrusted_score`.
|
|
1997
|
+
*
|
|
1998
|
+
* @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
|
|
1999
|
+
**/
|
|
2000
|
+
minimumUntrustedScore: GenericStorageQuery<Rv, () => SpNposElectionsElectionScore | undefined>;
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Generic pallet storage query
|
|
2004
|
+
**/
|
|
2005
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2006
|
+
};
|
|
2007
|
+
/**
|
|
2008
|
+
* Pallet `Offences`'s storage queries
|
|
2009
|
+
**/
|
|
2010
|
+
offences: {
|
|
2011
|
+
/**
|
|
2012
|
+
* The primary structure that holds all offence records keyed by report identifiers.
|
|
2013
|
+
*
|
|
2014
|
+
* @param {H256} arg
|
|
2015
|
+
* @param {Callback<SpStakingOffenceOffenceDetails | undefined> =} callback
|
|
2016
|
+
**/
|
|
2017
|
+
reports: GenericStorageQuery<Rv, (arg: H256) => SpStakingOffenceOffenceDetails | undefined, H256>;
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* A vector of reports of the same kind that happened at the same time slot.
|
|
2021
|
+
*
|
|
2022
|
+
* @param {[FixedBytes<16>, BytesLike]} arg
|
|
2023
|
+
* @param {Callback<Array<H256>> =} callback
|
|
2024
|
+
**/
|
|
2025
|
+
concurrentReportsIndex: GenericStorageQuery<
|
|
2026
|
+
Rv,
|
|
2027
|
+
(arg: [FixedBytes<16>, BytesLike]) => Array<H256>,
|
|
2028
|
+
[FixedBytes<16>, Bytes]
|
|
2029
|
+
>;
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* Generic pallet storage query
|
|
2033
|
+
**/
|
|
2034
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2035
|
+
};
|
|
2036
|
+
/**
|
|
2037
|
+
* Pallet `Bounties`'s storage queries
|
|
2038
|
+
**/
|
|
2039
|
+
bounties: {
|
|
2040
|
+
/**
|
|
2041
|
+
* Number of bounty proposals that have been made.
|
|
2042
|
+
*
|
|
2043
|
+
* @param {Callback<number> =} callback
|
|
2044
|
+
**/
|
|
2045
|
+
bountyCount: GenericStorageQuery<Rv, () => number>;
|
|
2046
|
+
|
|
2047
|
+
/**
|
|
2048
|
+
* Bounties that have been made.
|
|
2049
|
+
*
|
|
2050
|
+
* @param {number} arg
|
|
2051
|
+
* @param {Callback<PalletBountiesBounty | undefined> =} callback
|
|
2052
|
+
**/
|
|
2053
|
+
bounties: GenericStorageQuery<Rv, (arg: number) => PalletBountiesBounty | undefined, number>;
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* The description of each bounty.
|
|
2057
|
+
*
|
|
2058
|
+
* @param {number} arg
|
|
2059
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
2060
|
+
**/
|
|
2061
|
+
bountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Bounty indices that have been approved but not yet funded.
|
|
2065
|
+
*
|
|
2066
|
+
* @param {Callback<Array<number>> =} callback
|
|
2067
|
+
**/
|
|
2068
|
+
bountyApprovals: GenericStorageQuery<Rv, () => Array<number>>;
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* Generic pallet storage query
|
|
2072
|
+
**/
|
|
2073
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2074
|
+
};
|
|
2075
|
+
/**
|
|
2076
|
+
* Pallet `ChildBounties`'s storage queries
|
|
2077
|
+
**/
|
|
2078
|
+
childBounties: {
|
|
2079
|
+
/**
|
|
2080
|
+
* Number of total child bounties.
|
|
2081
|
+
*
|
|
2082
|
+
* @param {Callback<number> =} callback
|
|
2083
|
+
**/
|
|
2084
|
+
childBountyCount: GenericStorageQuery<Rv, () => number>;
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* Number of child bounties per parent bounty.
|
|
2088
|
+
* Map of parent bounty index to number of child bounties.
|
|
2089
|
+
*
|
|
2090
|
+
* @param {number} arg
|
|
2091
|
+
* @param {Callback<number> =} callback
|
|
2092
|
+
**/
|
|
2093
|
+
parentChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
2094
|
+
|
|
2095
|
+
/**
|
|
2096
|
+
* Child bounties that have been added.
|
|
2097
|
+
*
|
|
2098
|
+
* @param {[number, number]} arg
|
|
2099
|
+
* @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
|
|
2100
|
+
**/
|
|
2101
|
+
childBounties: GenericStorageQuery<
|
|
2102
|
+
Rv,
|
|
2103
|
+
(arg: [number, number]) => PalletChildBountiesChildBounty | undefined,
|
|
2104
|
+
[number, number]
|
|
2105
|
+
>;
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* The description of each child-bounty.
|
|
2109
|
+
*
|
|
2110
|
+
* @param {number} arg
|
|
2111
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
2112
|
+
**/
|
|
2113
|
+
childBountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* The cumulative child-bounty curator fee for each parent bounty.
|
|
2117
|
+
*
|
|
2118
|
+
* @param {number} arg
|
|
2119
|
+
* @param {Callback<bigint> =} callback
|
|
2120
|
+
**/
|
|
2121
|
+
childrenCuratorFees: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* Generic pallet storage query
|
|
2125
|
+
**/
|
|
2126
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2127
|
+
};
|
|
2128
|
+
/**
|
|
2129
|
+
* Pallet `NominationPools`'s storage queries
|
|
2130
|
+
**/
|
|
2131
|
+
nominationPools: {
|
|
2132
|
+
/**
|
|
2133
|
+
* The sum of funds across all pools.
|
|
2134
|
+
*
|
|
2135
|
+
* This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
|
|
2136
|
+
* because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
|
|
2137
|
+
* `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
|
|
2138
|
+
*
|
|
2139
|
+
* @param {Callback<bigint> =} callback
|
|
2140
|
+
**/
|
|
2141
|
+
totalValueLocked: GenericStorageQuery<Rv, () => bigint>;
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* Minimum amount to bond to join a pool.
|
|
2145
|
+
*
|
|
2146
|
+
* @param {Callback<bigint> =} callback
|
|
2147
|
+
**/
|
|
2148
|
+
minJoinBond: GenericStorageQuery<Rv, () => bigint>;
|
|
2149
|
+
|
|
2150
|
+
/**
|
|
2151
|
+
* Minimum bond required to create a pool.
|
|
2152
|
+
*
|
|
2153
|
+
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
|
2154
|
+
* indication of "skin in the game".
|
|
2155
|
+
*
|
|
2156
|
+
* This is the value that will always exist in the staking ledger of the pool bonded account
|
|
2157
|
+
* while all other accounts leave.
|
|
2158
|
+
*
|
|
2159
|
+
* @param {Callback<bigint> =} callback
|
|
2160
|
+
**/
|
|
2161
|
+
minCreateBond: GenericStorageQuery<Rv, () => bigint>;
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
|
2165
|
+
* pools can exist.
|
|
2166
|
+
*
|
|
2167
|
+
* @param {Callback<number | undefined> =} callback
|
|
2168
|
+
**/
|
|
2169
|
+
maxPools: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Maximum number of members that can exist in the system. If `None`, then the count
|
|
2173
|
+
* members are not bound on a system wide basis.
|
|
2174
|
+
*
|
|
2175
|
+
* @param {Callback<number | undefined> =} callback
|
|
2176
|
+
**/
|
|
2177
|
+
maxPoolMembers: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* Maximum number of members that may belong to pool. If `None`, then the count of
|
|
2181
|
+
* members is not bound on a per pool basis.
|
|
2182
|
+
*
|
|
2183
|
+
* @param {Callback<number | undefined> =} callback
|
|
2184
|
+
**/
|
|
2185
|
+
maxPoolMembersPerPool: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2186
|
+
|
|
2187
|
+
/**
|
|
2188
|
+
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
|
2189
|
+
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
|
2190
|
+
* `GlobalMaxCommission` is lower than some current pool commissions.
|
|
2191
|
+
*
|
|
2192
|
+
* @param {Callback<Perbill | undefined> =} callback
|
|
2193
|
+
**/
|
|
2194
|
+
globalMaxCommission: GenericStorageQuery<Rv, () => Perbill | undefined>;
|
|
2195
|
+
|
|
2196
|
+
/**
|
|
2197
|
+
* Active members.
|
|
2198
|
+
*
|
|
2199
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
2200
|
+
*
|
|
2201
|
+
* @param {AccountId32Like} arg
|
|
2202
|
+
* @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
|
|
2203
|
+
**/
|
|
2204
|
+
poolMembers: GenericStorageQuery<
|
|
2205
|
+
Rv,
|
|
2206
|
+
(arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined,
|
|
2207
|
+
AccountId32
|
|
2208
|
+
>;
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* Counter for the related counted storage map
|
|
2212
|
+
*
|
|
2213
|
+
* @param {Callback<number> =} callback
|
|
2214
|
+
**/
|
|
2215
|
+
counterForPoolMembers: GenericStorageQuery<Rv, () => number>;
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
* Storage for bonded pools.
|
|
2219
|
+
*
|
|
2220
|
+
* @param {number} arg
|
|
2221
|
+
* @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
|
|
2222
|
+
**/
|
|
2223
|
+
bondedPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* Counter for the related counted storage map
|
|
2227
|
+
*
|
|
2228
|
+
* @param {Callback<number> =} callback
|
|
2229
|
+
**/
|
|
2230
|
+
counterForBondedPools: GenericStorageQuery<Rv, () => number>;
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
|
2234
|
+
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
|
|
2235
|
+
*
|
|
2236
|
+
* @param {number} arg
|
|
2237
|
+
* @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
|
|
2238
|
+
**/
|
|
2239
|
+
rewardPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* Counter for the related counted storage map
|
|
2243
|
+
*
|
|
2244
|
+
* @param {Callback<number> =} callback
|
|
2245
|
+
**/
|
|
2246
|
+
counterForRewardPools: GenericStorageQuery<Rv, () => number>;
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
|
2250
|
+
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
|
2251
|
+
*
|
|
2252
|
+
* @param {number} arg
|
|
2253
|
+
* @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
|
|
2254
|
+
**/
|
|
2255
|
+
subPoolsStorage: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsSubPools | undefined, number>;
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
* Counter for the related counted storage map
|
|
2259
|
+
*
|
|
2260
|
+
* @param {Callback<number> =} callback
|
|
2261
|
+
**/
|
|
2262
|
+
counterForSubPoolsStorage: GenericStorageQuery<Rv, () => number>;
|
|
2263
|
+
|
|
2264
|
+
/**
|
|
2265
|
+
* Metadata for the pool.
|
|
2266
|
+
*
|
|
2267
|
+
* @param {number} arg
|
|
2268
|
+
* @param {Callback<Bytes> =} callback
|
|
2269
|
+
**/
|
|
2270
|
+
metadata: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
|
|
2271
|
+
|
|
2272
|
+
/**
|
|
2273
|
+
* Counter for the related counted storage map
|
|
2274
|
+
*
|
|
2275
|
+
* @param {Callback<number> =} callback
|
|
2276
|
+
**/
|
|
2277
|
+
counterForMetadata: GenericStorageQuery<Rv, () => number>;
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* Ever increasing number of all pools created so far.
|
|
2281
|
+
*
|
|
2282
|
+
* @param {Callback<number> =} callback
|
|
2283
|
+
**/
|
|
2284
|
+
lastPoolId: GenericStorageQuery<Rv, () => number>;
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* A reverse lookup from the pool's account id to its id.
|
|
2288
|
+
*
|
|
2289
|
+
* This is only used for slashing and on automatic withdraw update. In all other instances, the
|
|
2290
|
+
* pool id is used, and the accounts are deterministically derived from it.
|
|
2291
|
+
*
|
|
2292
|
+
* @param {AccountId32Like} arg
|
|
2293
|
+
* @param {Callback<number | undefined> =} callback
|
|
2294
|
+
**/
|
|
2295
|
+
reversePoolIdLookup: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* Counter for the related counted storage map
|
|
2299
|
+
*
|
|
2300
|
+
* @param {Callback<number> =} callback
|
|
2301
|
+
**/
|
|
2302
|
+
counterForReversePoolIdLookup: GenericStorageQuery<Rv, () => number>;
|
|
2303
|
+
|
|
2304
|
+
/**
|
|
2305
|
+
* Map from a pool member account to their opted claim permission.
|
|
2306
|
+
*
|
|
2307
|
+
* @param {AccountId32Like} arg
|
|
2308
|
+
* @param {Callback<PalletNominationPoolsClaimPermission> =} callback
|
|
2309
|
+
**/
|
|
2310
|
+
claimPermissions: GenericStorageQuery<
|
|
2311
|
+
Rv,
|
|
2312
|
+
(arg: AccountId32Like) => PalletNominationPoolsClaimPermission,
|
|
2313
|
+
AccountId32
|
|
2314
|
+
>;
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* Generic pallet storage query
|
|
2318
|
+
**/
|
|
2319
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2320
|
+
};
|
|
2321
|
+
/**
|
|
2322
|
+
* Pallet `GearProgram`'s storage queries
|
|
2323
|
+
**/
|
|
2324
|
+
gearProgram: {
|
|
2325
|
+
/**
|
|
2326
|
+
*
|
|
2327
|
+
* @param {GprimitivesCodeId} arg
|
|
2328
|
+
* @param {Callback<GearCoreCodeInstrumentedInstrumentedCode | undefined> =} callback
|
|
2329
|
+
**/
|
|
2330
|
+
codeStorage: GenericStorageQuery<
|
|
2331
|
+
Rv,
|
|
2332
|
+
(arg: GprimitivesCodeId) => GearCoreCodeInstrumentedInstrumentedCode | undefined,
|
|
2333
|
+
GprimitivesCodeId
|
|
2334
|
+
>;
|
|
2335
|
+
|
|
2336
|
+
/**
|
|
2337
|
+
*
|
|
2338
|
+
* @param {GprimitivesCodeId} arg
|
|
2339
|
+
* @param {Callback<number | undefined> =} callback
|
|
2340
|
+
**/
|
|
2341
|
+
codeLenStorage: GenericStorageQuery<Rv, (arg: GprimitivesCodeId) => number | undefined, GprimitivesCodeId>;
|
|
2342
|
+
|
|
2343
|
+
/**
|
|
2344
|
+
*
|
|
2345
|
+
* @param {GprimitivesCodeId} arg
|
|
2346
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
2347
|
+
**/
|
|
2348
|
+
originalCodeStorage: GenericStorageQuery<Rv, (arg: GprimitivesCodeId) => Bytes | undefined, GprimitivesCodeId>;
|
|
2349
|
+
|
|
2350
|
+
/**
|
|
2351
|
+
*
|
|
2352
|
+
* @param {GprimitivesCodeId} arg
|
|
2353
|
+
* @param {Callback<GearCommonCodeMetadata | undefined> =} callback
|
|
2354
|
+
**/
|
|
2355
|
+
metadataStorage: GenericStorageQuery<
|
|
2356
|
+
Rv,
|
|
2357
|
+
(arg: GprimitivesCodeId) => GearCommonCodeMetadata | undefined,
|
|
2358
|
+
GprimitivesCodeId
|
|
2359
|
+
>;
|
|
2360
|
+
|
|
2361
|
+
/**
|
|
2362
|
+
*
|
|
2363
|
+
* @param {GprimitivesActorId} arg
|
|
2364
|
+
* @param {Callback<NumeratedTreeIntervalsTree | undefined> =} callback
|
|
2365
|
+
**/
|
|
2366
|
+
allocationsStorage: GenericStorageQuery<
|
|
2367
|
+
Rv,
|
|
2368
|
+
(arg: GprimitivesActorId) => NumeratedTreeIntervalsTree | undefined,
|
|
2369
|
+
GprimitivesActorId
|
|
2370
|
+
>;
|
|
2371
|
+
|
|
2372
|
+
/**
|
|
2373
|
+
*
|
|
2374
|
+
* @param {GprimitivesActorId} arg
|
|
2375
|
+
* @param {Callback<GearCoreProgram | undefined> =} callback
|
|
2376
|
+
**/
|
|
2377
|
+
programStorage: GenericStorageQuery<
|
|
2378
|
+
Rv,
|
|
2379
|
+
(arg: GprimitivesActorId) => GearCoreProgram | undefined,
|
|
2380
|
+
GprimitivesActorId
|
|
2381
|
+
>;
|
|
2382
|
+
|
|
2383
|
+
/**
|
|
2384
|
+
*
|
|
2385
|
+
* @param {[GprimitivesActorId, GearCoreProgramMemoryInfix, GearCorePagesPage]} arg
|
|
2386
|
+
* @param {Callback<GearCoreMemoryPageBuf | undefined> =} callback
|
|
2387
|
+
**/
|
|
2388
|
+
memoryPages: GenericStorageQuery<
|
|
2389
|
+
Rv,
|
|
2390
|
+
(arg: [GprimitivesActorId, GearCoreProgramMemoryInfix, GearCorePagesPage]) => GearCoreMemoryPageBuf | undefined,
|
|
2391
|
+
[GprimitivesActorId, GearCoreProgramMemoryInfix, GearCorePagesPage]
|
|
2392
|
+
>;
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* Generic pallet storage query
|
|
2396
|
+
**/
|
|
2397
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2398
|
+
};
|
|
2399
|
+
/**
|
|
2400
|
+
* Pallet `GearMessenger`'s storage queries
|
|
2401
|
+
**/
|
|
2402
|
+
gearMessenger: {
|
|
2403
|
+
/**
|
|
2404
|
+
*
|
|
2405
|
+
* @param {Callback<number | undefined> =} callback
|
|
2406
|
+
**/
|
|
2407
|
+
dequeued: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
*
|
|
2411
|
+
* @param {GprimitivesMessageId} arg
|
|
2412
|
+
* @param {Callback<GearCommonStorageComplicatedDequeueLinkedNode | undefined> =} callback
|
|
2413
|
+
**/
|
|
2414
|
+
dispatches: GenericStorageQuery<
|
|
2415
|
+
Rv,
|
|
2416
|
+
(arg: GprimitivesMessageId) => GearCommonStorageComplicatedDequeueLinkedNode | undefined,
|
|
2417
|
+
GprimitivesMessageId
|
|
2418
|
+
>;
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Counter for the related counted storage map
|
|
2422
|
+
*
|
|
2423
|
+
* @param {Callback<number> =} callback
|
|
2424
|
+
**/
|
|
2425
|
+
counterForDispatches: GenericStorageQuery<Rv, () => number>;
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
*
|
|
2429
|
+
* @param {Callback<GprimitivesMessageId | undefined> =} callback
|
|
2430
|
+
**/
|
|
2431
|
+
head: GenericStorageQuery<Rv, () => GprimitivesMessageId | undefined>;
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
*
|
|
2435
|
+
* @param {[AccountId32Like, GprimitivesMessageId]} arg
|
|
2436
|
+
* @param {Callback<[GearCoreMessageUserUserStoredMessage, GearCommonStoragePrimitivesInterval] | undefined> =} callback
|
|
2437
|
+
**/
|
|
2438
|
+
mailbox: GenericStorageQuery<
|
|
2439
|
+
Rv,
|
|
2440
|
+
(
|
|
2441
|
+
arg: [AccountId32Like, GprimitivesMessageId],
|
|
2442
|
+
) => [GearCoreMessageUserUserStoredMessage, GearCommonStoragePrimitivesInterval] | undefined,
|
|
2443
|
+
[AccountId32, GprimitivesMessageId]
|
|
2444
|
+
>;
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
*
|
|
2448
|
+
* @param {Callback<boolean | undefined> =} callback
|
|
2449
|
+
**/
|
|
2450
|
+
queueProcessing: GenericStorageQuery<Rv, () => boolean | undefined>;
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
*
|
|
2454
|
+
* @param {Callback<number | undefined> =} callback
|
|
2455
|
+
**/
|
|
2456
|
+
sent: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
*
|
|
2460
|
+
* @param {Callback<GprimitivesMessageId | undefined> =} callback
|
|
2461
|
+
**/
|
|
2462
|
+
tail: GenericStorageQuery<Rv, () => GprimitivesMessageId | undefined>;
|
|
2463
|
+
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @param {[GprimitivesActorId, GprimitivesMessageId]} arg
|
|
2467
|
+
* @param {Callback<[GearCoreMessageStoredStoredDispatch, GearCommonStoragePrimitivesInterval] | undefined> =} callback
|
|
2468
|
+
**/
|
|
2469
|
+
waitlist: GenericStorageQuery<
|
|
2470
|
+
Rv,
|
|
2471
|
+
(
|
|
2472
|
+
arg: [GprimitivesActorId, GprimitivesMessageId],
|
|
2473
|
+
) => [GearCoreMessageStoredStoredDispatch, GearCommonStoragePrimitivesInterval] | undefined,
|
|
2474
|
+
[GprimitivesActorId, GprimitivesMessageId]
|
|
2475
|
+
>;
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
*
|
|
2479
|
+
* @param {GprimitivesMessageId} arg
|
|
2480
|
+
* @param {Callback<[GearCoreMessageStoredStoredDelayedDispatch, GearCommonStoragePrimitivesInterval] | undefined> =} callback
|
|
2481
|
+
**/
|
|
2482
|
+
dispatchStash: GenericStorageQuery<
|
|
2483
|
+
Rv,
|
|
2484
|
+
(
|
|
2485
|
+
arg: GprimitivesMessageId,
|
|
2486
|
+
) => [GearCoreMessageStoredStoredDelayedDispatch, GearCommonStoragePrimitivesInterval] | undefined,
|
|
2487
|
+
GprimitivesMessageId
|
|
2488
|
+
>;
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* Generic pallet storage query
|
|
2492
|
+
**/
|
|
2493
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2494
|
+
};
|
|
2495
|
+
/**
|
|
2496
|
+
* Pallet `GearScheduler`'s storage queries
|
|
2497
|
+
**/
|
|
2498
|
+
gearScheduler: {
|
|
2499
|
+
/**
|
|
2500
|
+
*
|
|
2501
|
+
* @param {Callback<number | undefined> =} callback
|
|
2502
|
+
**/
|
|
2503
|
+
firstIncompleteTasksBlock: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2504
|
+
|
|
2505
|
+
/**
|
|
2506
|
+
*
|
|
2507
|
+
* @param {[number, GearCoreTasksScheduledTask]} arg
|
|
2508
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2509
|
+
**/
|
|
2510
|
+
taskPool: GenericStorageQuery<
|
|
2511
|
+
Rv,
|
|
2512
|
+
(arg: [number, GearCoreTasksScheduledTask]) => [] | undefined,
|
|
2513
|
+
[number, GearCoreTasksScheduledTask]
|
|
2514
|
+
>;
|
|
2515
|
+
|
|
2516
|
+
/**
|
|
2517
|
+
* Generic pallet storage query
|
|
2518
|
+
**/
|
|
2519
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2520
|
+
};
|
|
2521
|
+
/**
|
|
2522
|
+
* Pallet `GearGas`'s storage queries
|
|
2523
|
+
**/
|
|
2524
|
+
gearGas: {
|
|
2525
|
+
/**
|
|
2526
|
+
*
|
|
2527
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
2528
|
+
**/
|
|
2529
|
+
totalIssuance: GenericStorageQuery<Rv, () => bigint | undefined>;
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
*
|
|
2533
|
+
* @param {GearCommonGasProviderNodeGasNodeId} arg
|
|
2534
|
+
* @param {Callback<GearCommonGasProviderNodeGasNode | undefined> =} callback
|
|
2535
|
+
**/
|
|
2536
|
+
gasNodes: GenericStorageQuery<
|
|
2537
|
+
Rv,
|
|
2538
|
+
(arg: GearCommonGasProviderNodeGasNodeId) => GearCommonGasProviderNodeGasNode | undefined,
|
|
2539
|
+
GearCommonGasProviderNodeGasNodeId
|
|
2540
|
+
>;
|
|
2541
|
+
|
|
2542
|
+
/**
|
|
2543
|
+
*
|
|
2544
|
+
* @param {Callback<bigint> =} callback
|
|
2545
|
+
**/
|
|
2546
|
+
allowance: GenericStorageQuery<Rv, () => bigint>;
|
|
2547
|
+
|
|
2548
|
+
/**
|
|
2549
|
+
* Generic pallet storage query
|
|
2550
|
+
**/
|
|
2551
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2552
|
+
};
|
|
2553
|
+
/**
|
|
2554
|
+
* Pallet `Gear`'s storage queries
|
|
2555
|
+
**/
|
|
2556
|
+
gear: {
|
|
2557
|
+
/**
|
|
2558
|
+
* A flag indicating whether the message queue should be processed at the end of a block
|
|
2559
|
+
*
|
|
2560
|
+
* If not set, the inherent extrinsic that processes the queue will keep throwing an error
|
|
2561
|
+
* thereby making the block builder exclude it from the block.
|
|
2562
|
+
*
|
|
2563
|
+
* @param {Callback<boolean> =} callback
|
|
2564
|
+
**/
|
|
2565
|
+
executeInherent: GenericStorageQuery<Rv, () => boolean>;
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* The current block number being processed.
|
|
2569
|
+
*
|
|
2570
|
+
* It shows block number in which queue is processed.
|
|
2571
|
+
* May be less than system pallet block number if panic occurred previously.
|
|
2572
|
+
*
|
|
2573
|
+
* @param {Callback<number> =} callback
|
|
2574
|
+
**/
|
|
2575
|
+
blockNumber: GenericStorageQuery<Rv, () => number>;
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* A guard to prohibit all but the first execution of `pallet_gear::run()` call in a block.
|
|
2579
|
+
*
|
|
2580
|
+
* Set to `Some(())` if the extrinsic is executed for the first time in a block.
|
|
2581
|
+
* All subsequent attempts would fail with `Error::<T>::GearRunAlreadyInBlock` error.
|
|
2582
|
+
* Set back to `None` in the `on_finalize()` hook at the end of the block.
|
|
2583
|
+
*
|
|
2584
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2585
|
+
**/
|
|
2586
|
+
gearRunInBlock: GenericStorageQuery<Rv, () => [] | undefined>;
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
* Generic pallet storage query
|
|
2590
|
+
**/
|
|
2591
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2592
|
+
};
|
|
2593
|
+
/**
|
|
2594
|
+
* Pallet `StakingRewards`'s storage queries
|
|
2595
|
+
**/
|
|
2596
|
+
stakingRewards: {
|
|
2597
|
+
/**
|
|
2598
|
+
* Target inflation (at ideal stake)
|
|
2599
|
+
*
|
|
2600
|
+
* @param {Callback<Perquintill> =} callback
|
|
2601
|
+
**/
|
|
2602
|
+
targetInflation: GenericStorageQuery<Rv, () => Perquintill>;
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* Ideal staking ratio
|
|
2606
|
+
*
|
|
2607
|
+
* @param {Callback<Perquintill> =} callback
|
|
2608
|
+
**/
|
|
2609
|
+
idealStakingRatio: GenericStorageQuery<Rv, () => Perquintill>;
|
|
2610
|
+
|
|
2611
|
+
/**
|
|
2612
|
+
* The current share of issued tokens that cannot be staked (e.g. being vested)
|
|
2613
|
+
* This value is guaranteed to remain unchanged for the first year until vesting kicks in.
|
|
2614
|
+
* Subsequently, the non-stakeable share should be calculated based on the vesting balances.
|
|
2615
|
+
*
|
|
2616
|
+
* @param {Callback<Perquintill> =} callback
|
|
2617
|
+
**/
|
|
2618
|
+
nonStakeableShare: GenericStorageQuery<Rv, () => Perquintill>;
|
|
2619
|
+
|
|
2620
|
+
/**
|
|
2621
|
+
* List of accounts whose locked balance (due to incomplete vesting) should be excluded from
|
|
2622
|
+
* the total stakeable quantity.
|
|
2623
|
+
* During the 1st year the non-stakeable amount is accounted for as a fixed fraction of TTS.
|
|
2624
|
+
*
|
|
2625
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
2626
|
+
**/
|
|
2627
|
+
filteredAccounts: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
2628
|
+
|
|
2629
|
+
/**
|
|
2630
|
+
* Generic pallet storage query
|
|
2631
|
+
**/
|
|
2632
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2633
|
+
};
|
|
2634
|
+
/**
|
|
2635
|
+
* Pallet `GearVoucher`'s storage queries
|
|
2636
|
+
**/
|
|
2637
|
+
gearVoucher: {
|
|
2638
|
+
/**
|
|
2639
|
+
* Storage containing amount of the total vouchers issued.
|
|
2640
|
+
*
|
|
2641
|
+
* Used as nonce in voucher creation.
|
|
2642
|
+
*
|
|
2643
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
2644
|
+
**/
|
|
2645
|
+
issued: GenericStorageQuery<Rv, () => bigint | undefined>;
|
|
2646
|
+
|
|
2647
|
+
/**
|
|
2648
|
+
* Double map storage containing data of the voucher,
|
|
2649
|
+
* associated with some spender and voucher ids.
|
|
2650
|
+
*
|
|
2651
|
+
* @param {[AccountId32Like, PalletGearVoucherInternalVoucherId]} arg
|
|
2652
|
+
* @param {Callback<PalletGearVoucherInternalVoucherInfo | undefined> =} callback
|
|
2653
|
+
**/
|
|
2654
|
+
vouchers: GenericStorageQuery<
|
|
2655
|
+
Rv,
|
|
2656
|
+
(arg: [AccountId32Like, PalletGearVoucherInternalVoucherId]) => PalletGearVoucherInternalVoucherInfo | undefined,
|
|
2657
|
+
[AccountId32, PalletGearVoucherInternalVoucherId]
|
|
2658
|
+
>;
|
|
2659
|
+
|
|
2660
|
+
/**
|
|
2661
|
+
* Generic pallet storage query
|
|
2662
|
+
**/
|
|
2663
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2664
|
+
};
|
|
2665
|
+
/**
|
|
2666
|
+
* Pallet `GearBank`'s storage queries
|
|
2667
|
+
**/
|
|
2668
|
+
gearBank: {
|
|
2669
|
+
/**
|
|
2670
|
+
*
|
|
2671
|
+
* @param {AccountId32Like} arg
|
|
2672
|
+
* @param {Callback<PalletGearBankBankAccount | undefined> =} callback
|
|
2673
|
+
**/
|
|
2674
|
+
bank: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletGearBankBankAccount | undefined, AccountId32>;
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
*
|
|
2678
|
+
* @param {Callback<AccountId32> =} callback
|
|
2679
|
+
**/
|
|
2680
|
+
bankAddress: GenericStorageQuery<Rv, () => AccountId32>;
|
|
2681
|
+
|
|
2682
|
+
/**
|
|
2683
|
+
*
|
|
2684
|
+
* @param {Callback<bigint> =} callback
|
|
2685
|
+
**/
|
|
2686
|
+
unusedValue: GenericStorageQuery<Rv, () => bigint>;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
*
|
|
2690
|
+
* @param {AccountId32Like} arg
|
|
2691
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
2692
|
+
**/
|
|
2693
|
+
onFinalizeTransfers: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint | undefined, AccountId32>;
|
|
2694
|
+
|
|
2695
|
+
/**
|
|
2696
|
+
*
|
|
2697
|
+
* @param {Callback<bigint> =} callback
|
|
2698
|
+
**/
|
|
2699
|
+
onFinalizeValue: GenericStorageQuery<Rv, () => bigint>;
|
|
2700
|
+
|
|
2701
|
+
/**
|
|
2702
|
+
* Generic pallet storage query
|
|
2703
|
+
**/
|
|
2704
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2705
|
+
};
|
|
2706
|
+
}
|