@dedot/chaintypes 0.96.0 → 0.98.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.
@@ -12,6 +12,8 @@ import type {
12
12
  BytesLike,
13
13
  FixedBytes,
14
14
  H160,
15
+ Perbill,
16
+ Percent,
15
17
  } from 'dedot/codecs';
16
18
  import type {
17
19
  FrameSystemAccountInfo,
@@ -32,12 +34,18 @@ import type {
32
34
  PolkadotParachainPrimitivesPrimitivesId,
33
35
  PolkadotCorePrimitivesOutboundHrmpMessage,
34
36
  PalletMigrationsMigrationCursor,
37
+ PalletPreimageOldRequestStatus,
38
+ PalletPreimageRequestStatus,
39
+ PalletSchedulerScheduled,
40
+ PalletSchedulerRetryConfig,
35
41
  PalletBalancesAccountData,
36
42
  PalletBalancesBalanceLock,
37
43
  PalletBalancesReserveData,
38
- FrameSupportTokensMiscIdAmount,
44
+ FrameSupportTokensMiscIdAmountRuntimeHoldReason,
39
45
  FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
40
46
  PalletTransactionPaymentReleases,
47
+ PalletVestingVestingInfo,
48
+ PalletVestingReleases,
41
49
  PalletCollatorSelectionCandidateInfo,
42
50
  AssetHubWestendRuntimeSessionKeys,
43
51
  SpStakingOffenceOffenceSeverity,
@@ -59,7 +67,7 @@ import type {
59
67
  PalletMessageQueuePage,
60
68
  SnowbridgeCoreOperatingModeBasicOperatingMode,
61
69
  PalletMultisigMultisig,
62
- PalletProxyProxyDefinition,
70
+ PalletProxyProxyDefinitionProxyType,
63
71
  PalletProxyAnnouncement,
64
72
  PalletAssetsAssetDetails,
65
73
  PalletAssetsAssetAccount,
@@ -90,6 +98,45 @@ import type {
90
98
  FrameSupportTokensFungibleHoldConsideration,
91
99
  PalletStateTrieMigrationMigrationTask,
92
100
  PalletStateTrieMigrationMigrationLimits,
101
+ PalletStakingAsyncLedgerStakingLedger,
102
+ PalletStakingAsyncRewardDestination,
103
+ PalletStakingAsyncValidatorPrefs,
104
+ PalletStakingAsyncNominations,
105
+ PalletStakingAsyncActiveEraInfo,
106
+ SpStakingPagedExposureMetadata,
107
+ PalletStakingAsyncPalletBoundedExposurePage,
108
+ PalletStakingAsyncEraRewardPoints,
109
+ PalletStakingAsyncForcing,
110
+ PalletStakingAsyncSlashingOffenceRecord,
111
+ PalletStakingAsyncUnappliedSlash,
112
+ PalletStakingAsyncSnapshotStatus,
113
+ PalletNominationPoolsPoolMember,
114
+ PalletNominationPoolsBondedPoolInner,
115
+ PalletNominationPoolsRewardPool,
116
+ PalletNominationPoolsSubPools,
117
+ PalletNominationPoolsClaimPermission,
118
+ PalletFastUnstakeUnstakeRequest,
119
+ PalletBagsListListNode,
120
+ PalletBagsListListBag,
121
+ PalletDelegatedStakingDelegation,
122
+ PalletDelegatedStakingAgentLedger,
123
+ PalletStakingAsyncRcClientSessionReport,
124
+ PalletElectionProviderMultiBlockPhase,
125
+ FrameElectionProviderSupportBoundedSupports,
126
+ PalletElectionProviderMultiBlockVerifierImplsValidSolution,
127
+ PalletElectionProviderMultiBlockVerifierImplsPartialBackings,
128
+ SpNposElectionsElectionScore,
129
+ PalletElectionProviderMultiBlockVerifierImplsStatus,
130
+ AssetHubWestendRuntimeStakingNposCompactSolution16,
131
+ PalletElectionProviderMultiBlockSignedSubmissionMetadata,
132
+ PalletConvictionVotingVoteVoting,
133
+ PalletReferendaReferendumInfoOriginCaller,
134
+ PalletTreasuryProposal,
135
+ PalletTreasurySpendStatus,
136
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset,
137
+ PalletRcMigratorAccountsAccount,
138
+ PalletAhMigratorMigrationStage,
139
+ PalletAhMigratorBalancesBefore,
93
140
  } from './types.js';
94
141
 
95
142
  export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
@@ -582,6 +629,101 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
582
629
  **/
583
630
  [storage: string]: GenericStorageQuery<Rv>;
584
631
  };
632
+ /**
633
+ * Pallet `Preimage`'s storage queries
634
+ **/
635
+ preimage: {
636
+ /**
637
+ * The request status of a given hash.
638
+ *
639
+ * @param {H256} arg
640
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
641
+ **/
642
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
643
+
644
+ /**
645
+ * The request status of a given hash.
646
+ *
647
+ * @param {H256} arg
648
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
649
+ **/
650
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
651
+
652
+ /**
653
+ *
654
+ * @param {[H256, number]} arg
655
+ * @param {Callback<Bytes | undefined> =} callback
656
+ **/
657
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
658
+
659
+ /**
660
+ * Generic pallet storage query
661
+ **/
662
+ [storage: string]: GenericStorageQuery<Rv>;
663
+ };
664
+ /**
665
+ * Pallet `Scheduler`'s storage queries
666
+ **/
667
+ scheduler: {
668
+ /**
669
+ * Block number at which the agenda began incomplete execution.
670
+ *
671
+ * @param {Callback<number | undefined> =} callback
672
+ **/
673
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
674
+
675
+ /**
676
+ * Items to be executed, indexed by the block number that they should be executed on.
677
+ *
678
+ * @param {number} arg
679
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
680
+ **/
681
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
682
+
683
+ /**
684
+ * Retry configurations for items to be executed, indexed by task address.
685
+ *
686
+ * @param {[number, number]} arg
687
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
688
+ **/
689
+ retries: GenericStorageQuery<
690
+ Rv,
691
+ (arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
692
+ [number, number]
693
+ >;
694
+
695
+ /**
696
+ * Lookup from a name to the block number and index of the task.
697
+ *
698
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
699
+ * identities.
700
+ *
701
+ * @param {FixedBytes<32>} arg
702
+ * @param {Callback<[number, number] | undefined> =} callback
703
+ **/
704
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
705
+
706
+ /**
707
+ * Generic pallet storage query
708
+ **/
709
+ [storage: string]: GenericStorageQuery<Rv>;
710
+ };
711
+ /**
712
+ * Pallet `Sudo`'s storage queries
713
+ **/
714
+ sudo: {
715
+ /**
716
+ * The `AccountId` of the sudo key.
717
+ *
718
+ * @param {Callback<AccountId32 | undefined> =} callback
719
+ **/
720
+ key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
721
+
722
+ /**
723
+ * Generic pallet storage query
724
+ **/
725
+ [storage: string]: GenericStorageQuery<Rv>;
726
+ };
585
727
  /**
586
728
  * Pallet `Balances`'s storage queries
587
729
  **/
@@ -656,9 +798,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
656
798
  * Holds on account balances.
657
799
  *
658
800
  * @param {AccountId32Like} arg
659
- * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
801
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeHoldReason>> =} callback
660
802
  **/
661
- holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
803
+ holds: GenericStorageQuery<
804
+ Rv,
805
+ (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeHoldReason>,
806
+ AccountId32
807
+ >;
662
808
 
663
809
  /**
664
810
  * Freeze locks on account balances.
@@ -698,6 +844,36 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
698
844
  **/
699
845
  [storage: string]: GenericStorageQuery<Rv>;
700
846
  };
847
+ /**
848
+ * Pallet `Vesting`'s storage queries
849
+ **/
850
+ vesting: {
851
+ /**
852
+ * Information regarding the vesting of a given account.
853
+ *
854
+ * @param {AccountId32Like} arg
855
+ * @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
856
+ **/
857
+ vesting: GenericStorageQuery<
858
+ Rv,
859
+ (arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
860
+ AccountId32
861
+ >;
862
+
863
+ /**
864
+ * Storage version of the pallet.
865
+ *
866
+ * New networks start with latest version, as determined by the genesis build.
867
+ *
868
+ * @param {Callback<PalletVestingReleases> =} callback
869
+ **/
870
+ storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
871
+
872
+ /**
873
+ * Generic pallet storage query
874
+ **/
875
+ [storage: string]: GenericStorageQuery<Rv>;
876
+ };
701
877
  /**
702
878
  * Pallet `Authorship`'s storage queries
703
879
  **/
@@ -1255,11 +1431,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1255
1431
  * which are being delegated to, together with the amount held on deposit.
1256
1432
  *
1257
1433
  * @param {AccountId32Like} arg
1258
- * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1434
+ * @param {Callback<[Array<PalletProxyProxyDefinitionProxyType>, bigint]> =} callback
1259
1435
  **/
1260
1436
  proxies: GenericStorageQuery<
1261
1437
  Rv,
1262
- (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1438
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinitionProxyType>, bigint],
1263
1439
  AccountId32
1264
1440
  >;
1265
1441
 
@@ -1280,6 +1456,23 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1280
1456
  **/
1281
1457
  [storage: string]: GenericStorageQuery<Rv>;
1282
1458
  };
1459
+ /**
1460
+ * Pallet `Indices`'s storage queries
1461
+ **/
1462
+ indices: {
1463
+ /**
1464
+ * The lookup from index to account.
1465
+ *
1466
+ * @param {number} arg
1467
+ * @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
1468
+ **/
1469
+ accounts: GenericStorageQuery<Rv, (arg: number) => [AccountId32, bigint, boolean] | undefined, number>;
1470
+
1471
+ /**
1472
+ * Generic pallet storage query
1473
+ **/
1474
+ [storage: string]: GenericStorageQuery<Rv>;
1475
+ };
1283
1476
  /**
1284
1477
  * Pallet `Assets`'s storage queries
1285
1478
  **/
@@ -2063,6 +2256,1404 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2063
2256
  **/
2064
2257
  signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2065
2258
 
2259
+ /**
2260
+ * Generic pallet storage query
2261
+ **/
2262
+ [storage: string]: GenericStorageQuery<Rv>;
2263
+ };
2264
+ /**
2265
+ * Pallet `Staking`'s storage queries
2266
+ **/
2267
+ staking: {
2268
+ /**
2269
+ * The ideal number of active validators.
2270
+ *
2271
+ * @param {Callback<number> =} callback
2272
+ **/
2273
+ validatorCount: GenericStorageQuery<Rv, () => number>;
2274
+
2275
+ /**
2276
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
2277
+ * easy to initialize and the performance hit is minimal (we expect no more than four
2278
+ * invulnerables) and restricted to testnets.
2279
+ *
2280
+ * @param {Callback<Array<AccountId32>> =} callback
2281
+ **/
2282
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
2283
+
2284
+ /**
2285
+ * Map from all locked "stash" accounts to the controller account.
2286
+ *
2287
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2288
+ *
2289
+ * @param {AccountId32Like} arg
2290
+ * @param {Callback<AccountId32 | undefined> =} callback
2291
+ **/
2292
+ bonded: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
2293
+
2294
+ /**
2295
+ * The minimum active bond to become and maintain the role of a nominator.
2296
+ *
2297
+ * @param {Callback<bigint> =} callback
2298
+ **/
2299
+ minNominatorBond: GenericStorageQuery<Rv, () => bigint>;
2300
+
2301
+ /**
2302
+ * The minimum active bond to become and maintain the role of a validator.
2303
+ *
2304
+ * @param {Callback<bigint> =} callback
2305
+ **/
2306
+ minValidatorBond: GenericStorageQuery<Rv, () => bigint>;
2307
+
2308
+ /**
2309
+ * The minimum active nominator stake of the last successful election.
2310
+ *
2311
+ * @param {Callback<bigint> =} callback
2312
+ **/
2313
+ minimumActiveStake: GenericStorageQuery<Rv, () => bigint>;
2314
+
2315
+ /**
2316
+ * The minimum amount of commission that validators can set.
2317
+ *
2318
+ * If set to `0`, no limit exists.
2319
+ *
2320
+ * @param {Callback<Perbill> =} callback
2321
+ **/
2322
+ minCommission: GenericStorageQuery<Rv, () => Perbill>;
2323
+
2324
+ /**
2325
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
2326
+ *
2327
+ * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
2328
+ * by [`StakingLedger`] to ensure data and lock consistency.
2329
+ *
2330
+ * @param {AccountId32Like} arg
2331
+ * @param {Callback<PalletStakingAsyncLedgerStakingLedger | undefined> =} callback
2332
+ **/
2333
+ ledger: GenericStorageQuery<
2334
+ Rv,
2335
+ (arg: AccountId32Like) => PalletStakingAsyncLedgerStakingLedger | undefined,
2336
+ AccountId32
2337
+ >;
2338
+
2339
+ /**
2340
+ * Where the reward payment should be made. Keyed by stash.
2341
+ *
2342
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2343
+ *
2344
+ * @param {AccountId32Like} arg
2345
+ * @param {Callback<PalletStakingAsyncRewardDestination | undefined> =} callback
2346
+ **/
2347
+ payee: GenericStorageQuery<
2348
+ Rv,
2349
+ (arg: AccountId32Like) => PalletStakingAsyncRewardDestination | undefined,
2350
+ AccountId32
2351
+ >;
2352
+
2353
+ /**
2354
+ * The map from (wannabe) validator stash key to the preferences of that validator.
2355
+ *
2356
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2357
+ *
2358
+ * @param {AccountId32Like} arg
2359
+ * @param {Callback<PalletStakingAsyncValidatorPrefs> =} callback
2360
+ **/
2361
+ validators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingAsyncValidatorPrefs, AccountId32>;
2362
+
2363
+ /**
2364
+ * Counter for the related counted storage map
2365
+ *
2366
+ * @param {Callback<number> =} callback
2367
+ **/
2368
+ counterForValidators: GenericStorageQuery<Rv, () => number>;
2369
+
2370
+ /**
2371
+ * The maximum validator count before we stop allowing new validators to join.
2372
+ *
2373
+ * When this value is not set, no limits are enforced.
2374
+ *
2375
+ * @param {Callback<number | undefined> =} callback
2376
+ **/
2377
+ maxValidatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
2378
+
2379
+ /**
2380
+ * The map from nominator stash key to their nomination preferences, namely the validators that
2381
+ * they wish to support.
2382
+ *
2383
+ * Note that the keys of this storage map might become non-decodable in case the
2384
+ * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
2385
+ * In this rare case, these nominators
2386
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
2387
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
2388
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
2389
+ * is within the bounds of the newly set `Config::MaxNominations`.
2390
+ *
2391
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
2392
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
2393
+ * number of keys that exist.
2394
+ *
2395
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
2396
+ * [`Call::chill_other`] dispatchable by anyone.
2397
+ *
2398
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2399
+ *
2400
+ * @param {AccountId32Like} arg
2401
+ * @param {Callback<PalletStakingAsyncNominations | undefined> =} callback
2402
+ **/
2403
+ nominators: GenericStorageQuery<
2404
+ Rv,
2405
+ (arg: AccountId32Like) => PalletStakingAsyncNominations | undefined,
2406
+ AccountId32
2407
+ >;
2408
+
2409
+ /**
2410
+ * Counter for the related counted storage map
2411
+ *
2412
+ * @param {Callback<number> =} callback
2413
+ **/
2414
+ counterForNominators: GenericStorageQuery<Rv, () => number>;
2415
+
2416
+ /**
2417
+ * Stakers whose funds are managed by other pallets.
2418
+ *
2419
+ * This pallet does not apply any locks on them, therefore they are only virtually bonded. They
2420
+ * are expected to be keyless accounts and hence should not be allowed to mutate their ledger
2421
+ * directly via this pallet. Instead, these accounts are managed by other pallets and accessed
2422
+ * via low level apis. We keep track of them to do minimal integrity checks.
2423
+ *
2424
+ * @param {AccountId32Like} arg
2425
+ * @param {Callback<[] | undefined> =} callback
2426
+ **/
2427
+ virtualStakers: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
2428
+
2429
+ /**
2430
+ * Counter for the related counted storage map
2431
+ *
2432
+ * @param {Callback<number> =} callback
2433
+ **/
2434
+ counterForVirtualStakers: GenericStorageQuery<Rv, () => number>;
2435
+
2436
+ /**
2437
+ * The maximum nominator count before we stop allowing new validators to join.
2438
+ *
2439
+ * When this value is not set, no limits are enforced.
2440
+ *
2441
+ * @param {Callback<number | undefined> =} callback
2442
+ **/
2443
+ maxNominatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
2444
+
2445
+ /**
2446
+ * The current planned era index.
2447
+ *
2448
+ * This is the latest planned era, depending on how the Session pallet queues the validator
2449
+ * set, it might be active or not.
2450
+ *
2451
+ * @param {Callback<number | undefined> =} callback
2452
+ **/
2453
+ currentEra: GenericStorageQuery<Rv, () => number | undefined>;
2454
+
2455
+ /**
2456
+ * The active era information, it holds index and start.
2457
+ *
2458
+ * The active era is the era being currently rewarded. Validator set of this era must be
2459
+ * equal to what is RC's session pallet.
2460
+ *
2461
+ * @param {Callback<PalletStakingAsyncActiveEraInfo | undefined> =} callback
2462
+ **/
2463
+ activeEra: GenericStorageQuery<Rv, () => PalletStakingAsyncActiveEraInfo | undefined>;
2464
+
2465
+ /**
2466
+ * A mapping from still-bonded eras to the first session index of that era.
2467
+ *
2468
+ * Must contains information for eras for the range:
2469
+ * `[active_era - bounding_duration; active_era]`
2470
+ *
2471
+ * @param {Callback<Array<[number, number]>> =} callback
2472
+ **/
2473
+ bondedEras: GenericStorageQuery<Rv, () => Array<[number, number]>>;
2474
+
2475
+ /**
2476
+ * Summary of validator exposure at a given era.
2477
+ *
2478
+ * This contains the total stake in support of the validator and their own stake. In addition,
2479
+ * it can also be used to get the number of nominators backing this validator and the number of
2480
+ * exposure pages they are divided into. The page count is useful to determine the number of
2481
+ * pages of rewards that needs to be claimed.
2482
+ *
2483
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
2484
+ * Should only be accessed through `Eras`.
2485
+ *
2486
+ * Is it removed after [`Config::HistoryDepth`] eras.
2487
+ * If stakers hasn't been set or has been removed then empty overview is returned.
2488
+ *
2489
+ * @param {[number, AccountId32Like]} arg
2490
+ * @param {Callback<SpStakingPagedExposureMetadata | undefined> =} callback
2491
+ **/
2492
+ erasStakersOverview: GenericStorageQuery<
2493
+ Rv,
2494
+ (arg: [number, AccountId32Like]) => SpStakingPagedExposureMetadata | undefined,
2495
+ [number, AccountId32]
2496
+ >;
2497
+
2498
+ /**
2499
+ * Paginated exposure of a validator at given era.
2500
+ *
2501
+ * This is keyed first by the era index to allow bulk deletion, then stash account and finally
2502
+ * the page. Should only be accessed through `Eras`.
2503
+ *
2504
+ * This is cleared after [`Config::HistoryDepth`] eras.
2505
+ *
2506
+ * @param {[number, AccountId32Like, number]} arg
2507
+ * @param {Callback<PalletStakingAsyncPalletBoundedExposurePage | undefined> =} callback
2508
+ **/
2509
+ erasStakersPaged: GenericStorageQuery<
2510
+ Rv,
2511
+ (arg: [number, AccountId32Like, number]) => PalletStakingAsyncPalletBoundedExposurePage | undefined,
2512
+ [number, AccountId32, number]
2513
+ >;
2514
+
2515
+ /**
2516
+ * History of claimed paged rewards by era and validator.
2517
+ *
2518
+ * This is keyed by era and validator stash which maps to the set of page indexes which have
2519
+ * been claimed.
2520
+ *
2521
+ * It is removed after [`Config::HistoryDepth`] eras.
2522
+ *
2523
+ * @param {[number, AccountId32Like]} arg
2524
+ * @param {Callback<Array<number>> =} callback
2525
+ **/
2526
+ erasClaimedRewards: GenericStorageQuery<
2527
+ Rv,
2528
+ (arg: [number, AccountId32Like]) => Array<number>,
2529
+ [number, AccountId32]
2530
+ >;
2531
+
2532
+ /**
2533
+ * Exposure of validator at era with the preferences of validators.
2534
+ *
2535
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
2536
+ *
2537
+ * Is it removed after [`Config::HistoryDepth`] eras.
2538
+ *
2539
+ * @param {[number, AccountId32Like]} arg
2540
+ * @param {Callback<PalletStakingAsyncValidatorPrefs> =} callback
2541
+ **/
2542
+ erasValidatorPrefs: GenericStorageQuery<
2543
+ Rv,
2544
+ (arg: [number, AccountId32Like]) => PalletStakingAsyncValidatorPrefs,
2545
+ [number, AccountId32]
2546
+ >;
2547
+
2548
+ /**
2549
+ * The total validator era payout for the last [`Config::HistoryDepth`] eras.
2550
+ *
2551
+ * Eras that haven't finished yet or has been removed doesn't have reward.
2552
+ *
2553
+ * @param {number} arg
2554
+ * @param {Callback<bigint | undefined> =} callback
2555
+ **/
2556
+ erasValidatorReward: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
2557
+
2558
+ /**
2559
+ * Rewards for the last [`Config::HistoryDepth`] eras.
2560
+ * If reward hasn't been set or has been removed then 0 reward is returned.
2561
+ *
2562
+ * @param {number} arg
2563
+ * @param {Callback<PalletStakingAsyncEraRewardPoints> =} callback
2564
+ **/
2565
+ erasRewardPoints: GenericStorageQuery<Rv, (arg: number) => PalletStakingAsyncEraRewardPoints, number>;
2566
+
2567
+ /**
2568
+ * The total amount staked for the last [`Config::HistoryDepth`] eras.
2569
+ * If total hasn't been set or has been removed then 0 stake is returned.
2570
+ *
2571
+ * @param {number} arg
2572
+ * @param {Callback<bigint> =} callback
2573
+ **/
2574
+ erasTotalStake: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
2575
+
2576
+ /**
2577
+ * Mode of era forcing.
2578
+ *
2579
+ * @param {Callback<PalletStakingAsyncForcing> =} callback
2580
+ **/
2581
+ forceEra: GenericStorageQuery<Rv, () => PalletStakingAsyncForcing>;
2582
+
2583
+ /**
2584
+ * Maximum staked rewards, i.e. the percentage of the era inflation that
2585
+ * is used for stake rewards.
2586
+ * See [Era payout](./index.html#era-payout).
2587
+ *
2588
+ * @param {Callback<Percent | undefined> =} callback
2589
+ **/
2590
+ maxStakedRewards: GenericStorageQuery<Rv, () => Percent | undefined>;
2591
+
2592
+ /**
2593
+ * The percentage of the slash that is distributed to reporters.
2594
+ *
2595
+ * The rest of the slashed value is handled by the `Slash`.
2596
+ *
2597
+ * @param {Callback<Perbill> =} callback
2598
+ **/
2599
+ slashRewardFraction: GenericStorageQuery<Rv, () => Perbill>;
2600
+
2601
+ /**
2602
+ * The amount of currency given to reporters of a slash event which was
2603
+ * canceled by extraordinary circumstances (e.g. governance).
2604
+ *
2605
+ * @param {Callback<bigint> =} callback
2606
+ **/
2607
+ canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
2608
+
2609
+ /**
2610
+ * Stores reported offences in a queue until they are processed in subsequent blocks.
2611
+ *
2612
+ * Each offence is recorded under the corresponding era index and the offending validator's
2613
+ * account. If an offence spans multiple pages, only one page is processed at a time. Offences
2614
+ * are handled sequentially, with their associated slashes computed and stored in
2615
+ * `UnappliedSlashes`. These slashes are then applied in a future era as determined by
2616
+ * `SlashDeferDuration`.
2617
+ *
2618
+ * Any offences tied to an era older than `BondingDuration` are automatically dropped.
2619
+ * Processing always prioritizes the oldest era first.
2620
+ *
2621
+ * @param {[number, AccountId32Like]} arg
2622
+ * @param {Callback<PalletStakingAsyncSlashingOffenceRecord | undefined> =} callback
2623
+ **/
2624
+ offenceQueue: GenericStorageQuery<
2625
+ Rv,
2626
+ (arg: [number, AccountId32Like]) => PalletStakingAsyncSlashingOffenceRecord | undefined,
2627
+ [number, AccountId32]
2628
+ >;
2629
+
2630
+ /**
2631
+ * Tracks the eras that contain offences in `OffenceQueue`, sorted from **earliest to latest**.
2632
+ *
2633
+ * - This ensures efficient retrieval of the oldest offence without iterating through
2634
+ * `OffenceQueue`.
2635
+ * - When a new offence is added to `OffenceQueue`, its era is **inserted in sorted order**
2636
+ * if not already present.
2637
+ * - When all offences for an era are processed, it is **removed** from this list.
2638
+ * - The maximum length of this vector is bounded by `BondingDuration`.
2639
+ *
2640
+ * This eliminates the need for expensive iteration and sorting when fetching the next offence
2641
+ * to process.
2642
+ *
2643
+ * @param {Callback<Array<number> | undefined> =} callback
2644
+ **/
2645
+ offenceQueueEras: GenericStorageQuery<Rv, () => Array<number> | undefined>;
2646
+
2647
+ /**
2648
+ * Tracks the currently processed offence record from the `OffenceQueue`.
2649
+ *
2650
+ * - When processing offences, an offence record is **popped** from the oldest era in
2651
+ * `OffenceQueue` and stored here.
2652
+ * - The function `process_offence` reads from this storage, processing one page of exposure at
2653
+ * a time.
2654
+ * - After processing a page, the `exposure_page` count is **decremented** until it reaches
2655
+ * zero.
2656
+ * - Once fully processed, the offence record is removed from this storage.
2657
+ *
2658
+ * This ensures that offences are processed incrementally, preventing excessive computation
2659
+ * in a single block while maintaining correct slashing behavior.
2660
+ *
2661
+ * @param {Callback<[number, AccountId32, PalletStakingAsyncSlashingOffenceRecord] | undefined> =} callback
2662
+ **/
2663
+ processingOffence: GenericStorageQuery<
2664
+ Rv,
2665
+ () => [number, AccountId32, PalletStakingAsyncSlashingOffenceRecord] | undefined
2666
+ >;
2667
+
2668
+ /**
2669
+ * All unapplied slashes that are queued for later.
2670
+ *
2671
+ * @param {[number, [AccountId32Like, Perbill, number]]} arg
2672
+ * @param {Callback<PalletStakingAsyncUnappliedSlash | undefined> =} callback
2673
+ **/
2674
+ unappliedSlashes: GenericStorageQuery<
2675
+ Rv,
2676
+ (arg: [number, [AccountId32Like, Perbill, number]]) => PalletStakingAsyncUnappliedSlash | undefined,
2677
+ [number, [AccountId32, Perbill, number]]
2678
+ >;
2679
+
2680
+ /**
2681
+ * All slashing events on validators, mapped by era to the highest slash proportion
2682
+ * and slash value of the era.
2683
+ *
2684
+ * @param {[number, AccountId32Like]} arg
2685
+ * @param {Callback<[Perbill, bigint] | undefined> =} callback
2686
+ **/
2687
+ validatorSlashInEra: GenericStorageQuery<
2688
+ Rv,
2689
+ (arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined,
2690
+ [number, AccountId32]
2691
+ >;
2692
+
2693
+ /**
2694
+ * All slashing events on nominators, mapped by era to the highest slash value of the era.
2695
+ *
2696
+ * @param {[number, AccountId32Like]} arg
2697
+ * @param {Callback<bigint | undefined> =} callback
2698
+ **/
2699
+ nominatorSlashInEra: GenericStorageQuery<
2700
+ Rv,
2701
+ (arg: [number, AccountId32Like]) => bigint | undefined,
2702
+ [number, AccountId32]
2703
+ >;
2704
+
2705
+ /**
2706
+ * The threshold for when users can start calling `chill_other` for other validators /
2707
+ * nominators. The threshold is compared to the actual number of validators / nominators
2708
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
2709
+ *
2710
+ * @param {Callback<Percent | undefined> =} callback
2711
+ **/
2712
+ chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
2713
+
2714
+ /**
2715
+ * Voter snapshot progress status.
2716
+ *
2717
+ * If the status is `Ongoing`, it keeps a cursor of the last voter retrieved to proceed when
2718
+ * creating the next snapshot page.
2719
+ *
2720
+ * @param {Callback<PalletStakingAsyncSnapshotStatus> =} callback
2721
+ **/
2722
+ voterSnapshotStatus: GenericStorageQuery<Rv, () => PalletStakingAsyncSnapshotStatus>;
2723
+
2724
+ /**
2725
+ * Keeps track of an ongoing multi-page election solution request.
2726
+ *
2727
+ * If `Some(_)``, it is the next page that we intend to elect. If `None`, we are not in the
2728
+ * election process.
2729
+ *
2730
+ * This is only set in multi-block elections. Should always be `None` otherwise.
2731
+ *
2732
+ * @param {Callback<number | undefined> =} callback
2733
+ **/
2734
+ nextElectionPage: GenericStorageQuery<Rv, () => number | undefined>;
2735
+
2736
+ /**
2737
+ * A bounded list of the "electable" stashes that resulted from a successful election.
2738
+ *
2739
+ * @param {Callback<Array<AccountId32>> =} callback
2740
+ **/
2741
+ electableStashes: GenericStorageQuery<Rv, () => Array<AccountId32>>;
2742
+
2743
+ /**
2744
+ * Generic pallet storage query
2745
+ **/
2746
+ [storage: string]: GenericStorageQuery<Rv>;
2747
+ };
2748
+ /**
2749
+ * Pallet `NominationPools`'s storage queries
2750
+ **/
2751
+ nominationPools: {
2752
+ /**
2753
+ * The sum of funds across all pools.
2754
+ *
2755
+ * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
2756
+ * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
2757
+ * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
2758
+ *
2759
+ * @param {Callback<bigint> =} callback
2760
+ **/
2761
+ totalValueLocked: GenericStorageQuery<Rv, () => bigint>;
2762
+
2763
+ /**
2764
+ * Minimum amount to bond to join a pool.
2765
+ *
2766
+ * @param {Callback<bigint> =} callback
2767
+ **/
2768
+ minJoinBond: GenericStorageQuery<Rv, () => bigint>;
2769
+
2770
+ /**
2771
+ * Minimum bond required to create a pool.
2772
+ *
2773
+ * This is the amount that the depositor must put as their initial stake in the pool, as an
2774
+ * indication of "skin in the game".
2775
+ *
2776
+ * This is the value that will always exist in the staking ledger of the pool bonded account
2777
+ * while all other accounts leave.
2778
+ *
2779
+ * @param {Callback<bigint> =} callback
2780
+ **/
2781
+ minCreateBond: GenericStorageQuery<Rv, () => bigint>;
2782
+
2783
+ /**
2784
+ * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
2785
+ * pools can exist.
2786
+ *
2787
+ * @param {Callback<number | undefined> =} callback
2788
+ **/
2789
+ maxPools: GenericStorageQuery<Rv, () => number | undefined>;
2790
+
2791
+ /**
2792
+ * Maximum number of members that can exist in the system. If `None`, then the count
2793
+ * members are not bound on a system wide basis.
2794
+ *
2795
+ * @param {Callback<number | undefined> =} callback
2796
+ **/
2797
+ maxPoolMembers: GenericStorageQuery<Rv, () => number | undefined>;
2798
+
2799
+ /**
2800
+ * Maximum number of members that may belong to pool. If `None`, then the count of
2801
+ * members is not bound on a per pool basis.
2802
+ *
2803
+ * @param {Callback<number | undefined> =} callback
2804
+ **/
2805
+ maxPoolMembersPerPool: GenericStorageQuery<Rv, () => number | undefined>;
2806
+
2807
+ /**
2808
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
2809
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
2810
+ * `GlobalMaxCommission` is lower than some current pool commissions.
2811
+ *
2812
+ * @param {Callback<Perbill | undefined> =} callback
2813
+ **/
2814
+ globalMaxCommission: GenericStorageQuery<Rv, () => Perbill | undefined>;
2815
+
2816
+ /**
2817
+ * Active members.
2818
+ *
2819
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2820
+ *
2821
+ * @param {AccountId32Like} arg
2822
+ * @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
2823
+ **/
2824
+ poolMembers: GenericStorageQuery<
2825
+ Rv,
2826
+ (arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined,
2827
+ AccountId32
2828
+ >;
2829
+
2830
+ /**
2831
+ * Counter for the related counted storage map
2832
+ *
2833
+ * @param {Callback<number> =} callback
2834
+ **/
2835
+ counterForPoolMembers: GenericStorageQuery<Rv, () => number>;
2836
+
2837
+ /**
2838
+ * Storage for bonded pools.
2839
+ *
2840
+ * @param {number} arg
2841
+ * @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
2842
+ **/
2843
+ bondedPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
2844
+
2845
+ /**
2846
+ * Counter for the related counted storage map
2847
+ *
2848
+ * @param {Callback<number> =} callback
2849
+ **/
2850
+ counterForBondedPools: GenericStorageQuery<Rv, () => number>;
2851
+
2852
+ /**
2853
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
2854
+ * claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
2855
+ *
2856
+ * @param {number} arg
2857
+ * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
2858
+ **/
2859
+ rewardPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
2860
+
2861
+ /**
2862
+ * Counter for the related counted storage map
2863
+ *
2864
+ * @param {Callback<number> =} callback
2865
+ **/
2866
+ counterForRewardPools: GenericStorageQuery<Rv, () => number>;
2867
+
2868
+ /**
2869
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
2870
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
2871
+ *
2872
+ * @param {number} arg
2873
+ * @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
2874
+ **/
2875
+ subPoolsStorage: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsSubPools | undefined, number>;
2876
+
2877
+ /**
2878
+ * Counter for the related counted storage map
2879
+ *
2880
+ * @param {Callback<number> =} callback
2881
+ **/
2882
+ counterForSubPoolsStorage: GenericStorageQuery<Rv, () => number>;
2883
+
2884
+ /**
2885
+ * Metadata for the pool.
2886
+ *
2887
+ * @param {number} arg
2888
+ * @param {Callback<Bytes> =} callback
2889
+ **/
2890
+ metadata: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
2891
+
2892
+ /**
2893
+ * Counter for the related counted storage map
2894
+ *
2895
+ * @param {Callback<number> =} callback
2896
+ **/
2897
+ counterForMetadata: GenericStorageQuery<Rv, () => number>;
2898
+
2899
+ /**
2900
+ * Ever increasing number of all pools created so far.
2901
+ *
2902
+ * @param {Callback<number> =} callback
2903
+ **/
2904
+ lastPoolId: GenericStorageQuery<Rv, () => number>;
2905
+
2906
+ /**
2907
+ * A reverse lookup from the pool's account id to its id.
2908
+ *
2909
+ * This is only used for slashing and on automatic withdraw update. In all other instances, the
2910
+ * pool id is used, and the accounts are deterministically derived from it.
2911
+ *
2912
+ * @param {AccountId32Like} arg
2913
+ * @param {Callback<number | undefined> =} callback
2914
+ **/
2915
+ reversePoolIdLookup: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
2916
+
2917
+ /**
2918
+ * Counter for the related counted storage map
2919
+ *
2920
+ * @param {Callback<number> =} callback
2921
+ **/
2922
+ counterForReversePoolIdLookup: GenericStorageQuery<Rv, () => number>;
2923
+
2924
+ /**
2925
+ * Map from a pool member account to their opted claim permission.
2926
+ *
2927
+ * @param {AccountId32Like} arg
2928
+ * @param {Callback<PalletNominationPoolsClaimPermission> =} callback
2929
+ **/
2930
+ claimPermissions: GenericStorageQuery<
2931
+ Rv,
2932
+ (arg: AccountId32Like) => PalletNominationPoolsClaimPermission,
2933
+ AccountId32
2934
+ >;
2935
+
2936
+ /**
2937
+ * Generic pallet storage query
2938
+ **/
2939
+ [storage: string]: GenericStorageQuery<Rv>;
2940
+ };
2941
+ /**
2942
+ * Pallet `FastUnstake`'s storage queries
2943
+ **/
2944
+ fastUnstake: {
2945
+ /**
2946
+ * The current "head of the queue" being unstaked.
2947
+ *
2948
+ * The head in itself can be a batch of up to [`Config::BatchSize`] stakers.
2949
+ *
2950
+ * @param {Callback<PalletFastUnstakeUnstakeRequest | undefined> =} callback
2951
+ **/
2952
+ head: GenericStorageQuery<Rv, () => PalletFastUnstakeUnstakeRequest | undefined>;
2953
+
2954
+ /**
2955
+ * The map of all accounts wishing to be unstaked.
2956
+ *
2957
+ * Keeps track of `AccountId` wishing to unstake and it's corresponding deposit.
2958
+ *
2959
+ * @param {AccountId32Like} arg
2960
+ * @param {Callback<bigint | undefined> =} callback
2961
+ **/
2962
+ queue: GenericStorageQuery<Rv, (arg: AccountId32Like) => bigint | undefined, AccountId32>;
2963
+
2964
+ /**
2965
+ * Counter for the related counted storage map
2966
+ *
2967
+ * @param {Callback<number> =} callback
2968
+ **/
2969
+ counterForQueue: GenericStorageQuery<Rv, () => number>;
2970
+
2971
+ /**
2972
+ * Number of eras to check per block.
2973
+ *
2974
+ * If set to 0, this pallet does absolutely nothing. Cannot be set to more than
2975
+ * [`Config::MaxErasToCheckPerBlock`].
2976
+ *
2977
+ * Based on the amount of weight available at [`Pallet::on_idle`], up to this many eras are
2978
+ * checked. The checking is represented by updating [`UnstakeRequest::checked`], which is
2979
+ * stored in [`Head`].
2980
+ *
2981
+ * @param {Callback<number> =} callback
2982
+ **/
2983
+ erasToCheckPerBlock: GenericStorageQuery<Rv, () => number>;
2984
+
2985
+ /**
2986
+ * Generic pallet storage query
2987
+ **/
2988
+ [storage: string]: GenericStorageQuery<Rv>;
2989
+ };
2990
+ /**
2991
+ * Pallet `VoterList`'s storage queries
2992
+ **/
2993
+ voterList: {
2994
+ /**
2995
+ * A single node, within some bag.
2996
+ *
2997
+ * Nodes store links forward and back within their respective bags.
2998
+ *
2999
+ * @param {AccountId32Like} arg
3000
+ * @param {Callback<PalletBagsListListNode | undefined> =} callback
3001
+ **/
3002
+ listNodes: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBagsListListNode | undefined, AccountId32>;
3003
+
3004
+ /**
3005
+ * Counter for the related counted storage map
3006
+ *
3007
+ * @param {Callback<number> =} callback
3008
+ **/
3009
+ counterForListNodes: GenericStorageQuery<Rv, () => number>;
3010
+
3011
+ /**
3012
+ * A bag stored in storage.
3013
+ *
3014
+ * Stores a `Bag` struct, which stores head and tail pointers to itself.
3015
+ *
3016
+ * @param {bigint} arg
3017
+ * @param {Callback<PalletBagsListListBag | undefined> =} callback
3018
+ **/
3019
+ listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
3020
+
3021
+ /**
3022
+ * Lock all updates to this pallet.
3023
+ *
3024
+ * If any nodes needs updating, removal or addition due to a temporary lock, the
3025
+ * [`Call::rebag`] can be used.
3026
+ *
3027
+ * @param {Callback<[] | undefined> =} callback
3028
+ **/
3029
+ lock: GenericStorageQuery<Rv, () => [] | undefined>;
3030
+
3031
+ /**
3032
+ * Generic pallet storage query
3033
+ **/
3034
+ [storage: string]: GenericStorageQuery<Rv>;
3035
+ };
3036
+ /**
3037
+ * Pallet `DelegatedStaking`'s storage queries
3038
+ **/
3039
+ delegatedStaking: {
3040
+ /**
3041
+ * Map of Delegators to their `Delegation`.
3042
+ *
3043
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
3044
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
3045
+ *
3046
+ * @param {AccountId32Like} arg
3047
+ * @param {Callback<PalletDelegatedStakingDelegation | undefined> =} callback
3048
+ **/
3049
+ delegators: GenericStorageQuery<
3050
+ Rv,
3051
+ (arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined,
3052
+ AccountId32
3053
+ >;
3054
+
3055
+ /**
3056
+ * Counter for the related counted storage map
3057
+ *
3058
+ * @param {Callback<number> =} callback
3059
+ **/
3060
+ counterForDelegators: GenericStorageQuery<Rv, () => number>;
3061
+
3062
+ /**
3063
+ * Map of `Agent` to their `Ledger`.
3064
+ *
3065
+ * @param {AccountId32Like} arg
3066
+ * @param {Callback<PalletDelegatedStakingAgentLedger | undefined> =} callback
3067
+ **/
3068
+ agents: GenericStorageQuery<
3069
+ Rv,
3070
+ (arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined,
3071
+ AccountId32
3072
+ >;
3073
+
3074
+ /**
3075
+ * Counter for the related counted storage map
3076
+ *
3077
+ * @param {Callback<number> =} callback
3078
+ **/
3079
+ counterForAgents: GenericStorageQuery<Rv, () => number>;
3080
+
3081
+ /**
3082
+ * Generic pallet storage query
3083
+ **/
3084
+ [storage: string]: GenericStorageQuery<Rv>;
3085
+ };
3086
+ /**
3087
+ * Pallet `StakingNextRcClient`'s storage queries
3088
+ **/
3089
+ stakingNextRcClient: {
3090
+ /**
3091
+ * An incomplete incoming session report that we have not acted upon yet.
3092
+ *
3093
+ * @param {Callback<PalletStakingAsyncRcClientSessionReport | undefined> =} callback
3094
+ **/
3095
+ incompleteSessionReport: GenericStorageQuery<Rv, () => PalletStakingAsyncRcClientSessionReport | undefined>;
3096
+
3097
+ /**
3098
+ * The last session report's `end_index` that we have acted upon.
3099
+ *
3100
+ * This allows this pallet to ensure a sequentially increasing sequence of session reports
3101
+ * passed to staking.
3102
+ *
3103
+ * Note that with the XCM being the backbone of communication, we have a guarantee on the
3104
+ * ordering of messages. As long as the RC sends session reports in order, we _eventually_
3105
+ * receive them in the same correct order as well.
3106
+ *
3107
+ * @param {Callback<number | undefined> =} callback
3108
+ **/
3109
+ lastSessionReportEndingIndex: GenericStorageQuery<Rv, () => number | undefined>;
3110
+
3111
+ /**
3112
+ * Generic pallet storage query
3113
+ **/
3114
+ [storage: string]: GenericStorageQuery<Rv>;
3115
+ };
3116
+ /**
3117
+ * Pallet `MultiBlock`'s storage queries
3118
+ **/
3119
+ multiBlock: {
3120
+ /**
3121
+ * Internal counter for the number of rounds.
3122
+ *
3123
+ * This is useful for de-duplication of transactions submitted to the pool, and general
3124
+ * diagnostics of the pallet.
3125
+ *
3126
+ * This is merely incremented once per every time that an upstream `elect` is called.
3127
+ *
3128
+ * @param {Callback<number> =} callback
3129
+ **/
3130
+ round: GenericStorageQuery<Rv, () => number>;
3131
+
3132
+ /**
3133
+ * Current phase.
3134
+ *
3135
+ * @param {Callback<PalletElectionProviderMultiBlockPhase> =} callback
3136
+ **/
3137
+ currentPhase: GenericStorageQuery<Rv, () => PalletElectionProviderMultiBlockPhase>;
3138
+
3139
+ /**
3140
+ * Desired number of targets to elect for this round.
3141
+ *
3142
+ * @param {number} arg
3143
+ * @param {Callback<number | undefined> =} callback
3144
+ **/
3145
+ desiredTargets: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
3146
+
3147
+ /**
3148
+ * Paginated voter snapshot. At most [`T::Pages`] keys will exist.
3149
+ *
3150
+ * @param {[number, number]} arg
3151
+ * @param {Callback<Array<[AccountId32, bigint, Array<AccountId32>]> | undefined> =} callback
3152
+ **/
3153
+ pagedVoterSnapshot: GenericStorageQuery<
3154
+ Rv,
3155
+ (arg: [number, number]) => Array<[AccountId32, bigint, Array<AccountId32>]> | undefined,
3156
+ [number, number]
3157
+ >;
3158
+
3159
+ /**
3160
+ * Same as [`PagedVoterSnapshot`], but it will store the hash of the snapshot.
3161
+ *
3162
+ * The hash is generated using [`frame_system::Config::Hashing`].
3163
+ *
3164
+ * @param {[number, number]} arg
3165
+ * @param {Callback<H256 | undefined> =} callback
3166
+ **/
3167
+ pagedVoterSnapshotHash: GenericStorageQuery<Rv, (arg: [number, number]) => H256 | undefined, [number, number]>;
3168
+
3169
+ /**
3170
+ * Paginated target snapshot.
3171
+ *
3172
+ * For the time being, since we assume one pages of targets, at most ONE key will exist.
3173
+ *
3174
+ * @param {[number, number]} arg
3175
+ * @param {Callback<Array<AccountId32> | undefined> =} callback
3176
+ **/
3177
+ pagedTargetSnapshot: GenericStorageQuery<
3178
+ Rv,
3179
+ (arg: [number, number]) => Array<AccountId32> | undefined,
3180
+ [number, number]
3181
+ >;
3182
+
3183
+ /**
3184
+ * Same as [`PagedTargetSnapshot`], but it will store the hash of the snapshot.
3185
+ *
3186
+ * The hash is generated using [`frame_system::Config::Hashing`].
3187
+ *
3188
+ * @param {[number, number]} arg
3189
+ * @param {Callback<H256 | undefined> =} callback
3190
+ **/
3191
+ pagedTargetSnapshotHash: GenericStorageQuery<Rv, (arg: [number, number]) => H256 | undefined, [number, number]>;
3192
+
3193
+ /**
3194
+ * Generic pallet storage query
3195
+ **/
3196
+ [storage: string]: GenericStorageQuery<Rv>;
3197
+ };
3198
+ /**
3199
+ * Pallet `MultiBlockVerifier`'s storage queries
3200
+ **/
3201
+ multiBlockVerifier: {
3202
+ /**
3203
+ * The `X` variant of the current queued solution. Might be the valid one or not.
3204
+ *
3205
+ * The two variants of this storage item is to avoid the need of copying. Recall that once a
3206
+ * `VerifyingSolution` is being processed, it needs to write its partial supports *somewhere*.
3207
+ * Writing theses supports on top of a *good* queued supports is wrong, since we might bail.
3208
+ * Writing them to a bugger and copying at the ned is slightly better, but expensive. This flag
3209
+ * system is best of both worlds.
3210
+ *
3211
+ * @param {[number, number]} arg
3212
+ * @param {Callback<FrameElectionProviderSupportBoundedSupports | undefined> =} callback
3213
+ **/
3214
+ queuedSolutionX: GenericStorageQuery<
3215
+ Rv,
3216
+ (arg: [number, number]) => FrameElectionProviderSupportBoundedSupports | undefined,
3217
+ [number, number]
3218
+ >;
3219
+
3220
+ /**
3221
+ * The `Y` variant of the current queued solution. Might be the valid one or not.
3222
+ *
3223
+ * @param {[number, number]} arg
3224
+ * @param {Callback<FrameElectionProviderSupportBoundedSupports | undefined> =} callback
3225
+ **/
3226
+ queuedSolutionY: GenericStorageQuery<
3227
+ Rv,
3228
+ (arg: [number, number]) => FrameElectionProviderSupportBoundedSupports | undefined,
3229
+ [number, number]
3230
+ >;
3231
+
3232
+ /**
3233
+ * Pointer to the variant of [`QueuedSolutionX`] or [`QueuedSolutionY`] that is currently
3234
+ * valid.
3235
+ *
3236
+ * @param {number} arg
3237
+ * @param {Callback<PalletElectionProviderMultiBlockVerifierImplsValidSolution> =} callback
3238
+ **/
3239
+ queuedValidVariant: GenericStorageQuery<
3240
+ Rv,
3241
+ (arg: number) => PalletElectionProviderMultiBlockVerifierImplsValidSolution,
3242
+ number
3243
+ >;
3244
+
3245
+ /**
3246
+ * The `(amount, count)` of backings, divided per page.
3247
+ *
3248
+ * This is stored because in the last block of verification we need them to compute the score,
3249
+ * and check `MaxBackersPerWinnerFinal`.
3250
+ *
3251
+ * This can only ever live for the invalid variant of the solution. Once it is valid, we don't
3252
+ * need this information anymore; the score is already computed once in
3253
+ * [`QueuedSolutionScore`], and the backing counts are checked.
3254
+ *
3255
+ * @param {[number, number]} arg
3256
+ * @param {Callback<Array<[AccountId32, PalletElectionProviderMultiBlockVerifierImplsPartialBackings]> | undefined> =} callback
3257
+ **/
3258
+ queuedSolutionBackings: GenericStorageQuery<
3259
+ Rv,
3260
+ (
3261
+ arg: [number, number],
3262
+ ) => Array<[AccountId32, PalletElectionProviderMultiBlockVerifierImplsPartialBackings]> | undefined,
3263
+ [number, number]
3264
+ >;
3265
+
3266
+ /**
3267
+ * The score of the valid variant of [`QueuedSolution`].
3268
+ *
3269
+ * This only ever lives for the `valid` variant.
3270
+ *
3271
+ * @param {number} arg
3272
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
3273
+ **/
3274
+ queuedSolutionScore: GenericStorageQuery<Rv, (arg: number) => SpNposElectionsElectionScore | undefined, number>;
3275
+
3276
+ /**
3277
+ * The minimum score that each solution must attain in order to be considered feasible.
3278
+ *
3279
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
3280
+ **/
3281
+ minimumScore: GenericStorageQuery<Rv, () => SpNposElectionsElectionScore | undefined>;
3282
+
3283
+ /**
3284
+ * Storage item for [`Status`].
3285
+ *
3286
+ * @param {Callback<PalletElectionProviderMultiBlockVerifierImplsStatus> =} callback
3287
+ **/
3288
+ statusStorage: GenericStorageQuery<Rv, () => PalletElectionProviderMultiBlockVerifierImplsStatus>;
3289
+
3290
+ /**
3291
+ * Generic pallet storage query
3292
+ **/
3293
+ [storage: string]: GenericStorageQuery<Rv>;
3294
+ };
3295
+ /**
3296
+ * Pallet `MultiBlockSigned`'s storage queries
3297
+ **/
3298
+ multiBlockSigned: {
3299
+ /**
3300
+ *
3301
+ * @param {number} arg
3302
+ * @param {Callback<Array<[AccountId32, SpNposElectionsElectionScore]>> =} callback
3303
+ **/
3304
+ sortedScores: GenericStorageQuery<Rv, (arg: number) => Array<[AccountId32, SpNposElectionsElectionScore]>, number>;
3305
+
3306
+ /**
3307
+ * Triple map from (round, account, page) to a solution page.
3308
+ *
3309
+ * @param {[number, AccountId32Like, number]} arg
3310
+ * @param {Callback<AssetHubWestendRuntimeStakingNposCompactSolution16 | undefined> =} callback
3311
+ **/
3312
+ submissionStorage: GenericStorageQuery<
3313
+ Rv,
3314
+ (arg: [number, AccountId32Like, number]) => AssetHubWestendRuntimeStakingNposCompactSolution16 | undefined,
3315
+ [number, AccountId32, number]
3316
+ >;
3317
+
3318
+ /**
3319
+ * Map from account to the metadata of their submission.
3320
+ *
3321
+ * invariant: for any Key1 of type `AccountId` in [`Submissions`], this storage map also has a
3322
+ * value.
3323
+ *
3324
+ * @param {[number, AccountId32Like]} arg
3325
+ * @param {Callback<PalletElectionProviderMultiBlockSignedSubmissionMetadata | undefined> =} callback
3326
+ **/
3327
+ submissionMetadataStorage: GenericStorageQuery<
3328
+ Rv,
3329
+ (arg: [number, AccountId32Like]) => PalletElectionProviderMultiBlockSignedSubmissionMetadata | undefined,
3330
+ [number, AccountId32]
3331
+ >;
3332
+
3333
+ /**
3334
+ * Generic pallet storage query
3335
+ **/
3336
+ [storage: string]: GenericStorageQuery<Rv>;
3337
+ };
3338
+ /**
3339
+ * Pallet `ConvictionVoting`'s storage queries
3340
+ **/
3341
+ convictionVoting: {
3342
+ /**
3343
+ * All voting for a particular voter in a particular voting class. We store the balance for the
3344
+ * number of votes that we have recorded.
3345
+ *
3346
+ * @param {[AccountId32Like, number]} arg
3347
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
3348
+ **/
3349
+ votingFor: GenericStorageQuery<
3350
+ Rv,
3351
+ (arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
3352
+ [AccountId32, number]
3353
+ >;
3354
+
3355
+ /**
3356
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
3357
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
3358
+ * this list.
3359
+ *
3360
+ * @param {AccountId32Like} arg
3361
+ * @param {Callback<Array<[number, bigint]>> =} callback
3362
+ **/
3363
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
3364
+
3365
+ /**
3366
+ * Generic pallet storage query
3367
+ **/
3368
+ [storage: string]: GenericStorageQuery<Rv>;
3369
+ };
3370
+ /**
3371
+ * Pallet `Referenda`'s storage queries
3372
+ **/
3373
+ referenda: {
3374
+ /**
3375
+ * The next free referendum index, aka the number of referenda started so far.
3376
+ *
3377
+ * @param {Callback<number> =} callback
3378
+ **/
3379
+ referendumCount: GenericStorageQuery<Rv, () => number>;
3380
+
3381
+ /**
3382
+ * Information concerning any given referendum.
3383
+ *
3384
+ * @param {number} arg
3385
+ * @param {Callback<PalletReferendaReferendumInfoOriginCaller | undefined> =} callback
3386
+ **/
3387
+ referendumInfoFor: GenericStorageQuery<
3388
+ Rv,
3389
+ (arg: number) => PalletReferendaReferendumInfoOriginCaller | undefined,
3390
+ number
3391
+ >;
3392
+
3393
+ /**
3394
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
3395
+ * conviction-weighted approvals.
3396
+ *
3397
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
3398
+ *
3399
+ * @param {number} arg
3400
+ * @param {Callback<Array<[number, bigint]>> =} callback
3401
+ **/
3402
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
3403
+
3404
+ /**
3405
+ * The number of referenda being decided currently.
3406
+ *
3407
+ * @param {number} arg
3408
+ * @param {Callback<number> =} callback
3409
+ **/
3410
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
3411
+
3412
+ /**
3413
+ * The metadata is a general information concerning the referendum.
3414
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
3415
+ * dump or IPFS hash of a JSON file.
3416
+ *
3417
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
3418
+ * large preimages.
3419
+ *
3420
+ * @param {number} arg
3421
+ * @param {Callback<H256 | undefined> =} callback
3422
+ **/
3423
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
3424
+
3425
+ /**
3426
+ * Generic pallet storage query
3427
+ **/
3428
+ [storage: string]: GenericStorageQuery<Rv>;
3429
+ };
3430
+ /**
3431
+ * Pallet `Whitelist`'s storage queries
3432
+ **/
3433
+ whitelist: {
3434
+ /**
3435
+ *
3436
+ * @param {H256} arg
3437
+ * @param {Callback<[] | undefined> =} callback
3438
+ **/
3439
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
3440
+
3441
+ /**
3442
+ * Generic pallet storage query
3443
+ **/
3444
+ [storage: string]: GenericStorageQuery<Rv>;
3445
+ };
3446
+ /**
3447
+ * Pallet `Treasury`'s storage queries
3448
+ **/
3449
+ treasury: {
3450
+ /**
3451
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
3452
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
3453
+ *
3454
+ * Number of proposals that have been made.
3455
+ *
3456
+ * @param {Callback<number> =} callback
3457
+ **/
3458
+ proposalCount: GenericStorageQuery<Rv, () => number>;
3459
+
3460
+ /**
3461
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
3462
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
3463
+ *
3464
+ * Proposals that have been made.
3465
+ *
3466
+ * @param {number} arg
3467
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
3468
+ **/
3469
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
3470
+
3471
+ /**
3472
+ * The amount which has been reported as inactive to Currency.
3473
+ *
3474
+ * @param {Callback<bigint> =} callback
3475
+ **/
3476
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
3477
+
3478
+ /**
3479
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
3480
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
3481
+ *
3482
+ * Proposal indices that have been approved but not yet awarded.
3483
+ *
3484
+ * @param {Callback<Array<number>> =} callback
3485
+ **/
3486
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
3487
+
3488
+ /**
3489
+ * The count of spends that have been made.
3490
+ *
3491
+ * @param {Callback<number> =} callback
3492
+ **/
3493
+ spendCount: GenericStorageQuery<Rv, () => number>;
3494
+
3495
+ /**
3496
+ * Spends that have been approved and being processed.
3497
+ *
3498
+ * @param {number} arg
3499
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
3500
+ **/
3501
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
3502
+
3503
+ /**
3504
+ * The blocknumber for the last triggered spend period.
3505
+ *
3506
+ * @param {Callback<number | undefined> =} callback
3507
+ **/
3508
+ lastSpendPeriod: GenericStorageQuery<Rv, () => number | undefined>;
3509
+
3510
+ /**
3511
+ * Generic pallet storage query
3512
+ **/
3513
+ [storage: string]: GenericStorageQuery<Rv>;
3514
+ };
3515
+ /**
3516
+ * Pallet `AssetRate`'s storage queries
3517
+ **/
3518
+ assetRate: {
3519
+ /**
3520
+ * Maps an asset to its fixed point representation in the native balance.
3521
+ *
3522
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
3523
+ *
3524
+ * @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} arg
3525
+ * @param {Callback<FixedU128 | undefined> =} callback
3526
+ **/
3527
+ conversionRateToNative: GenericStorageQuery<
3528
+ Rv,
3529
+ (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset) => FixedU128 | undefined,
3530
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset
3531
+ >;
3532
+
3533
+ /**
3534
+ * Generic pallet storage query
3535
+ **/
3536
+ [storage: string]: GenericStorageQuery<Rv>;
3537
+ };
3538
+ /**
3539
+ * Pallet `AhOps`'s storage queries
3540
+ **/
3541
+ ahOps: {
3542
+ /**
3543
+ * Amount of balance that was reserved for winning a lease auction.
3544
+ *
3545
+ * `unreserve_lease_deposit` can be permissionlessly called once the block number passed to
3546
+ * unreserve the deposit. It is implicitly called by `withdraw_crowdloan_contribution`.
3547
+ *
3548
+ * The account here can either be a crowdloan account or a solo bidder. If it is a crowdloan
3549
+ * account, then the summed up contributions for it in the contributions map will equate the
3550
+ * reserved balance here.
3551
+ *
3552
+ * The keys are as follows:
3553
+ * - Block number after which the deposit can be unreserved.
3554
+ * - The para_id of the lease slot.
3555
+ * - The account that will have the balance unreserved.
3556
+ * - The balance to be unreserved.
3557
+ *
3558
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3559
+ * @param {Callback<bigint | undefined> =} callback
3560
+ **/
3561
+ rcLeaseReserve: GenericStorageQuery<
3562
+ Rv,
3563
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => bigint | undefined,
3564
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3565
+ >;
3566
+
3567
+ /**
3568
+ * Amount of balance that a contributor made towards a crowdloan.
3569
+ *
3570
+ * `withdraw_crowdloan_contribution` can be permissionlessly called once the block number
3571
+ * passed to unlock the balance for a specific account.
3572
+ *
3573
+ * The keys are as follows:
3574
+ * - Block number after which the balance can be unlocked.
3575
+ * - The para_id of the crowdloan.
3576
+ * - The account that made the contribution.
3577
+ *
3578
+ * The value is (fund_pot, balance). The contribution pot is the second key in the
3579
+ * `RcCrowdloanContribution` storage.
3580
+ *
3581
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3582
+ * @param {Callback<[AccountId32, bigint] | undefined> =} callback
3583
+ **/
3584
+ rcCrowdloanContribution: GenericStorageQuery<
3585
+ Rv,
3586
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => [AccountId32, bigint] | undefined,
3587
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3588
+ >;
3589
+
3590
+ /**
3591
+ * The reserve that was taken to create a crowdloan.
3592
+ *
3593
+ * This is normally 500 DOT and can be refunded as last step after all
3594
+ * `RcCrowdloanContribution`s of this loan have been withdrawn.
3595
+ *
3596
+ * Keys:
3597
+ * - Block number after which this can be unreserved
3598
+ * - The para_id of the crowdloan
3599
+ * - The account that will have the balance unreserved
3600
+ *
3601
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3602
+ * @param {Callback<bigint | undefined> =} callback
3603
+ **/
3604
+ rcCrowdloanReserve: GenericStorageQuery<
3605
+ Rv,
3606
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => bigint | undefined,
3607
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3608
+ >;
3609
+
3610
+ /**
3611
+ * Generic pallet storage query
3612
+ **/
3613
+ [storage: string]: GenericStorageQuery<Rv>;
3614
+ };
3615
+ /**
3616
+ * Pallet `AhMigrator`'s storage queries
3617
+ **/
3618
+ ahMigrator: {
3619
+ /**
3620
+ * RC accounts that failed to migrate when were received on the Asset Hub.
3621
+ *
3622
+ * This is unlikely to happen, since we dry run the migration, but we keep it for completeness.
3623
+ *
3624
+ * @param {AccountId32Like} arg
3625
+ * @param {Callback<PalletRcMigratorAccountsAccount | undefined> =} callback
3626
+ **/
3627
+ rcAccounts: GenericStorageQuery<
3628
+ Rv,
3629
+ (arg: AccountId32Like) => PalletRcMigratorAccountsAccount | undefined,
3630
+ AccountId32
3631
+ >;
3632
+
3633
+ /**
3634
+ * The Asset Hub migration state.
3635
+ *
3636
+ * @param {Callback<PalletAhMigratorMigrationStage> =} callback
3637
+ **/
3638
+ ahMigrationStage: GenericStorageQuery<Rv, () => PalletAhMigratorMigrationStage>;
3639
+
3640
+ /**
3641
+ * The total number of XCM data messages processed from the Relay Chain and the number of XCM
3642
+ * messages that encountered an error during processing.
3643
+ *
3644
+ * @param {Callback<[number, number]> =} callback
3645
+ **/
3646
+ dmpDataMessageCounts: GenericStorageQuery<Rv, () => [number, number]>;
3647
+
3648
+ /**
3649
+ * Helper storage item to store the total balance / total issuance of native token at the start
3650
+ * of the migration. Since teleports are disabled during migration, the total issuance will not
3651
+ * change for other reason than the migration itself.
3652
+ *
3653
+ * @param {Callback<PalletAhMigratorBalancesBefore> =} callback
3654
+ **/
3655
+ ahBalancesBefore: GenericStorageQuery<Rv, () => PalletAhMigratorBalancesBefore>;
3656
+
2066
3657
  /**
2067
3658
  * Generic pallet storage query
2068
3659
  **/