@dedot/chaintypes 0.142.0 → 0.144.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.
@@ -9,8 +9,12 @@ import type {
9
9
  Digest,
10
10
  Phase,
11
11
  FixedU128,
12
- BytesLike,
13
12
  FixedBytes,
13
+ EthereumAddress,
14
+ EthereumAddressLike,
15
+ BytesLike,
16
+ Perbill,
17
+ Percent,
14
18
  } from 'dedot/codecs';
15
19
  import type {
16
20
  FrameSystemAccountInfo,
@@ -18,6 +22,7 @@ import type {
18
22
  FrameSystemEventRecord,
19
23
  FrameSystemLastRuntimeUpgradeInfo,
20
24
  FrameSystemCodeUpgradeAuthorization,
25
+ SpWeightsWeightV2Weight,
21
26
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
22
27
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
23
28
  PolkadotPrimitivesV8PersistedValidationData,
@@ -29,17 +34,22 @@ import type {
29
34
  CumulusPrimitivesParachainInherentMessageQueueChain,
30
35
  PolkadotParachainPrimitivesPrimitivesId,
31
36
  PolkadotCorePrimitivesOutboundHrmpMessage,
32
- SpWeightsWeightV2Weight,
37
+ PalletPreimageOldRequestStatus,
38
+ PalletPreimageRequestStatus,
39
+ PalletSchedulerScheduled,
40
+ PalletSchedulerRetryConfig,
33
41
  PalletBalancesAccountData,
34
42
  PalletBalancesBalanceLock,
35
43
  PalletBalancesReserveData,
36
- FrameSupportTokensMiscIdAmount,
37
- FrameSupportTokensMiscIdAmount002,
44
+ FrameSupportTokensMiscIdAmountRuntimeHoldReason,
45
+ FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
38
46
  PalletTransactionPaymentReleases,
39
47
  PalletVestingVestingInfo,
40
48
  PalletVestingReleases,
49
+ PolkadotRuntimeCommonClaimsStatementKind,
41
50
  PalletCollatorSelectionCandidateInfo,
42
51
  AssetHubPaseoRuntimeSessionKeys,
52
+ SpStakingOffenceOffenceSeverity,
43
53
  SpCoreCryptoKeyTypeId,
44
54
  SpConsensusAuraSr25519AppSr25519Public,
45
55
  SpConsensusSlotsSlot,
@@ -51,12 +61,13 @@ import type {
51
61
  PalletXcmRemoteLockedFungibleRecord,
52
62
  XcmVersionedAssetId,
53
63
  StagingXcmV5Xcm,
64
+ PalletXcmAuthorizedAliasesEntry,
54
65
  BpXcmBridgeHubRouterBridgeState,
55
66
  PalletMessageQueueBookState,
56
67
  CumulusPrimitivesCoreAggregateMessageOrigin,
57
68
  PalletMessageQueuePage,
58
69
  PalletMultisigMultisig,
59
- PalletProxyProxyDefinition,
70
+ PalletProxyProxyDefinitionProxyType,
60
71
  PalletProxyAnnouncement,
61
72
  PalletAssetsAssetDetails,
62
73
  PalletAssetsAssetAccount,
@@ -78,8 +89,49 @@ import type {
78
89
  PalletNftsItemConfig,
79
90
  StagingXcmV4Location,
80
91
  PalletAssetConversionPoolInfo,
92
+ PalletTreasuryProposal,
93
+ PalletTreasurySpendStatus,
94
+ PalletConvictionVotingVoteVoting,
95
+ PalletReferendaReferendumInfoOriginCaller,
96
+ PalletBountiesBounty,
97
+ PalletChildBountiesChildBounty,
98
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset,
81
99
  PalletStateTrieMigrationMigrationTask,
82
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
+ PalletBagsListListNode,
119
+ PalletBagsListListBag,
120
+ PalletDelegatedStakingDelegation,
121
+ PalletDelegatedStakingAgentLedger,
122
+ PalletStakingAsyncRcClientSessionReport,
123
+ PalletElectionProviderMultiBlockPhase,
124
+ FrameElectionProviderSupportBoundedSupports,
125
+ PalletElectionProviderMultiBlockVerifierImplsValidSolution,
126
+ PalletElectionProviderMultiBlockVerifierImplsPartialBackings,
127
+ SpNposElectionsElectionScore,
128
+ PalletElectionProviderMultiBlockVerifierImplsStatus,
129
+ AssetHubPaseoRuntimeStakingNposCompactSolution16,
130
+ PalletElectionProviderMultiBlockSignedSubmissionMetadata,
131
+ PalletRcMigratorAccountsAccount,
132
+ PalletAhMigratorMigrationStage,
133
+ PalletAhMigratorBalancesBefore,
134
+ PalletRcMigratorQueuePriority,
83
135
  } from './types.js';
84
136
 
85
137
  export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
@@ -233,6 +285,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
233
285
  **/
234
286
  authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
235
287
 
288
+ /**
289
+ * The weight reclaimed for the extrinsic.
290
+ *
291
+ * This information is available until the end of the extrinsic execution.
292
+ * More precisely this information is removed in `note_applied_extrinsic`.
293
+ *
294
+ * Logic doing some post dispatch weight reduction must update this storage to avoid duplicate
295
+ * reduction.
296
+ *
297
+ * @param {Callback<SpWeightsWeightV2Weight> =} callback
298
+ **/
299
+ extrinsicWeightReclaimed: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight>;
300
+
236
301
  /**
237
302
  * Generic pallet storage query
238
303
  **/
@@ -530,6 +595,85 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
530
595
  **/
531
596
  [storage: string]: GenericStorageQuery<Rv>;
532
597
  };
598
+ /**
599
+ * Pallet `Preimage`'s storage queries
600
+ **/
601
+ preimage: {
602
+ /**
603
+ * The request status of a given hash.
604
+ *
605
+ * @param {H256} arg
606
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
607
+ **/
608
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
609
+
610
+ /**
611
+ * The request status of a given hash.
612
+ *
613
+ * @param {H256} arg
614
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
615
+ **/
616
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
617
+
618
+ /**
619
+ *
620
+ * @param {[H256, number]} arg
621
+ * @param {Callback<Bytes | undefined> =} callback
622
+ **/
623
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
624
+
625
+ /**
626
+ * Generic pallet storage query
627
+ **/
628
+ [storage: string]: GenericStorageQuery<Rv>;
629
+ };
630
+ /**
631
+ * Pallet `Scheduler`'s storage queries
632
+ **/
633
+ scheduler: {
634
+ /**
635
+ * Block number at which the agenda began incomplete execution.
636
+ *
637
+ * @param {Callback<number | undefined> =} callback
638
+ **/
639
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
640
+
641
+ /**
642
+ * Items to be executed, indexed by the block number that they should be executed on.
643
+ *
644
+ * @param {number} arg
645
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
646
+ **/
647
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
648
+
649
+ /**
650
+ * Retry configurations for items to be executed, indexed by task address.
651
+ *
652
+ * @param {[number, number]} arg
653
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
654
+ **/
655
+ retries: GenericStorageQuery<
656
+ Rv,
657
+ (arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
658
+ [number, number]
659
+ >;
660
+
661
+ /**
662
+ * Lookup from a name to the block number and index of the task.
663
+ *
664
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
665
+ * identities.
666
+ *
667
+ * @param {FixedBytes<32>} arg
668
+ * @param {Callback<[number, number] | undefined> =} callback
669
+ **/
670
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
671
+
672
+ /**
673
+ * Generic pallet storage query
674
+ **/
675
+ [storage: string]: GenericStorageQuery<Rv>;
676
+ };
533
677
  /**
534
678
  * Pallet `Balances`'s storage queries
535
679
  **/
@@ -604,17 +748,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
604
748
  * Holds on account balances.
605
749
  *
606
750
  * @param {AccountId32Like} arg
607
- * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
751
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeHoldReason>> =} callback
608
752
  **/
609
- holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
753
+ holds: GenericStorageQuery<
754
+ Rv,
755
+ (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeHoldReason>,
756
+ AccountId32
757
+ >;
610
758
 
611
759
  /**
612
760
  * Freeze locks on account balances.
613
761
  *
614
762
  * @param {AccountId32Like} arg
615
- * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
763
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
616
764
  **/
617
- freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
765
+ freezes: GenericStorageQuery<
766
+ Rv,
767
+ (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
768
+ AccountId32
769
+ >;
618
770
 
619
771
  /**
620
772
  * Generic pallet storage query
@@ -672,6 +824,63 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
672
824
  **/
673
825
  [storage: string]: GenericStorageQuery<Rv>;
674
826
  };
827
+ /**
828
+ * Pallet `Claims`'s storage queries
829
+ **/
830
+ claims: {
831
+ /**
832
+ *
833
+ * @param {EthereumAddressLike} arg
834
+ * @param {Callback<bigint | undefined> =} callback
835
+ **/
836
+ claims: GenericStorageQuery<Rv, (arg: EthereumAddressLike) => bigint | undefined, EthereumAddress>;
837
+
838
+ /**
839
+ *
840
+ * @param {Callback<bigint> =} callback
841
+ **/
842
+ total: GenericStorageQuery<Rv, () => bigint>;
843
+
844
+ /**
845
+ * Vesting schedule for a claim.
846
+ * First balance is the total amount that should be held for vesting.
847
+ * Second balance is how much should be unlocked per block.
848
+ * The block number is when the vesting should start.
849
+ *
850
+ * @param {EthereumAddressLike} arg
851
+ * @param {Callback<[bigint, bigint, number] | undefined> =} callback
852
+ **/
853
+ vesting: GenericStorageQuery<
854
+ Rv,
855
+ (arg: EthereumAddressLike) => [bigint, bigint, number] | undefined,
856
+ EthereumAddress
857
+ >;
858
+
859
+ /**
860
+ * The statement kind that must be signed, if any.
861
+ *
862
+ * @param {EthereumAddressLike} arg
863
+ * @param {Callback<PolkadotRuntimeCommonClaimsStatementKind | undefined> =} callback
864
+ **/
865
+ signing: GenericStorageQuery<
866
+ Rv,
867
+ (arg: EthereumAddressLike) => PolkadotRuntimeCommonClaimsStatementKind | undefined,
868
+ EthereumAddress
869
+ >;
870
+
871
+ /**
872
+ * Pre-claimed Ethereum accounts, by the Account ID that they are claimed to.
873
+ *
874
+ * @param {AccountId32Like} arg
875
+ * @param {Callback<EthereumAddress | undefined> =} callback
876
+ **/
877
+ preclaims: GenericStorageQuery<Rv, (arg: AccountId32Like) => EthereumAddress | undefined, AccountId32>;
878
+
879
+ /**
880
+ * Generic pallet storage query
881
+ **/
882
+ [storage: string]: GenericStorageQuery<Rv>;
883
+ };
675
884
  /**
676
885
  * Pallet `Authorship`'s storage queries
677
886
  **/
@@ -782,9 +991,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
782
991
  * disabled using binary search. It gets cleared when `on_session_ending` returns
783
992
  * a new set of identities.
784
993
  *
785
- * @param {Callback<Array<number>> =} callback
994
+ * @param {Callback<Array<[number, SpStakingOffenceOffenceSeverity]>> =} callback
786
995
  **/
787
- disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
996
+ disabledValidators: GenericStorageQuery<Rv, () => Array<[number, SpStakingOffenceOffenceSeverity]>>;
788
997
 
789
998
  /**
790
999
  * The next session keys for a validator.
@@ -856,13 +1065,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
856
1065
  authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
857
1066
 
858
1067
  /**
859
- * Current slot paired with a number of authored blocks.
1068
+ * Current relay chain slot paired with a number of authored blocks.
860
1069
  *
861
- * Updated on each block initialization.
1070
+ * This is updated in [`FixedVelocityConsensusHook::on_state_proof`] with the current relay
1071
+ * chain slot as provided by the relay chain state proof.
862
1072
  *
863
1073
  * @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
864
1074
  **/
865
- slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
1075
+ relaySlotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
866
1076
 
867
1077
  /**
868
1078
  * Generic pallet storage query
@@ -1101,6 +1311,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1101
1311
  **/
1102
1312
  recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
1103
1313
 
1314
+ /**
1315
+ * Map of authorized aliasers of local origins. Each local location can authorize a list of
1316
+ * other locations to alias into it. Each aliaser is only valid until its inner `expiry`
1317
+ * block number.
1318
+ *
1319
+ * @param {XcmVersionedLocation} arg
1320
+ * @param {Callback<PalletXcmAuthorizedAliasesEntry | undefined> =} callback
1321
+ **/
1322
+ authorizedAliases: GenericStorageQuery<
1323
+ Rv,
1324
+ (arg: XcmVersionedLocation) => PalletXcmAuthorizedAliasesEntry | undefined,
1325
+ XcmVersionedLocation
1326
+ >;
1327
+
1104
1328
  /**
1105
1329
  * Generic pallet storage query
1106
1330
  **/
@@ -1198,11 +1422,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1198
1422
  * which are being delegated to, together with the amount held on deposit.
1199
1423
  *
1200
1424
  * @param {AccountId32Like} arg
1201
- * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1425
+ * @param {Callback<[Array<PalletProxyProxyDefinitionProxyType>, bigint]> =} callback
1202
1426
  **/
1203
1427
  proxies: GenericStorageQuery<
1204
1428
  Rv,
1205
- (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1429
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinitionProxyType>, bigint],
1206
1430
  AccountId32
1207
1431
  >;
1208
1432
 
@@ -1223,6 +1447,23 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1223
1447
  **/
1224
1448
  [storage: string]: GenericStorageQuery<Rv>;
1225
1449
  };
1450
+ /**
1451
+ * Pallet `Indices`'s storage queries
1452
+ **/
1453
+ indices: {
1454
+ /**
1455
+ * The lookup from index to account.
1456
+ *
1457
+ * @param {number} arg
1458
+ * @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
1459
+ **/
1460
+ accounts: GenericStorageQuery<Rv, (arg: number) => [AccountId32, bigint, boolean] | undefined, number>;
1461
+
1462
+ /**
1463
+ * Generic pallet storage query
1464
+ **/
1465
+ [storage: string]: GenericStorageQuery<Rv>;
1466
+ };
1226
1467
  /**
1227
1468
  * Pallet `Assets`'s storage queries
1228
1469
  **/
@@ -1729,36 +1970,68 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1729
1970
  [storage: string]: GenericStorageQuery<Rv>;
1730
1971
  };
1731
1972
  /**
1732
- * Pallet `StateTrieMigration`'s storage queries
1973
+ * Pallet `Treasury`'s storage queries
1733
1974
  **/
1734
- stateTrieMigration: {
1975
+ treasury: {
1735
1976
  /**
1736
- * Migration progress.
1977
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1978
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1737
1979
  *
1738
- * This stores the snapshot of the last migrated keys. It can be set into motion and move
1739
- * forward by any of the means provided by this pallet.
1980
+ * Number of proposals that have been made.
1740
1981
  *
1741
- * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
1982
+ * @param {Callback<number> =} callback
1742
1983
  **/
1743
- migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
1984
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1744
1985
 
1745
1986
  /**
1746
- * The limits that are imposed on automatic migrations.
1987
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1988
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1747
1989
  *
1748
- * If set to None, then no automatic migration happens.
1990
+ * Proposals that have been made.
1749
1991
  *
1750
- * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
1992
+ * @param {number} arg
1993
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1751
1994
  **/
1752
- autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
1995
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
1753
1996
 
1754
1997
  /**
1755
- * The maximum limits that the signed migration could use.
1998
+ * The amount which has been reported as inactive to Currency.
1756
1999
  *
1757
- * If not set, no signed submission is allowed.
2000
+ * @param {Callback<bigint> =} callback
2001
+ **/
2002
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
2003
+
2004
+ /**
2005
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
2006
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1758
2007
  *
1759
- * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2008
+ * Proposal indices that have been approved but not yet awarded.
2009
+ *
2010
+ * @param {Callback<Array<number>> =} callback
1760
2011
  **/
1761
- signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2012
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
2013
+
2014
+ /**
2015
+ * The count of spends that have been made.
2016
+ *
2017
+ * @param {Callback<number> =} callback
2018
+ **/
2019
+ spendCount: GenericStorageQuery<Rv, () => number>;
2020
+
2021
+ /**
2022
+ * Spends that have been approved and being processed.
2023
+ *
2024
+ * @param {number} arg
2025
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
2026
+ **/
2027
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
2028
+
2029
+ /**
2030
+ * The blocknumber for the last triggered spend period.
2031
+ *
2032
+ * @param {Callback<number | undefined> =} callback
2033
+ **/
2034
+ lastSpendPeriod: GenericStorageQuery<Rv, () => number | undefined>;
1762
2035
 
1763
2036
  /**
1764
2037
  * Generic pallet storage query
@@ -1766,15 +2039,1488 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1766
2039
  [storage: string]: GenericStorageQuery<Rv>;
1767
2040
  };
1768
2041
  /**
1769
- * Pallet `Sudo`'s storage queries
2042
+ * Pallet `ConvictionVoting`'s storage queries
1770
2043
  **/
1771
- sudo: {
2044
+ convictionVoting: {
1772
2045
  /**
1773
- * The `AccountId` of the sudo key.
2046
+ * All voting for a particular voter in a particular voting class. We store the balance for the
2047
+ * number of votes that we have recorded.
1774
2048
  *
1775
- * @param {Callback<AccountId32 | undefined> =} callback
2049
+ * @param {[AccountId32Like, number]} arg
2050
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
1776
2051
  **/
1777
- key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
2052
+ votingFor: GenericStorageQuery<
2053
+ Rv,
2054
+ (arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
2055
+ [AccountId32, number]
2056
+ >;
2057
+
2058
+ /**
2059
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
2060
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
2061
+ * this list.
2062
+ *
2063
+ * @param {AccountId32Like} arg
2064
+ * @param {Callback<Array<[number, bigint]>> =} callback
2065
+ **/
2066
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
2067
+
2068
+ /**
2069
+ * Generic pallet storage query
2070
+ **/
2071
+ [storage: string]: GenericStorageQuery<Rv>;
2072
+ };
2073
+ /**
2074
+ * Pallet `Referenda`'s storage queries
2075
+ **/
2076
+ referenda: {
2077
+ /**
2078
+ * The next free referendum index, aka the number of referenda started so far.
2079
+ *
2080
+ * @param {Callback<number> =} callback
2081
+ **/
2082
+ referendumCount: GenericStorageQuery<Rv, () => number>;
2083
+
2084
+ /**
2085
+ * Information concerning any given referendum.
2086
+ *
2087
+ * @param {number} arg
2088
+ * @param {Callback<PalletReferendaReferendumInfoOriginCaller | undefined> =} callback
2089
+ **/
2090
+ referendumInfoFor: GenericStorageQuery<
2091
+ Rv,
2092
+ (arg: number) => PalletReferendaReferendumInfoOriginCaller | undefined,
2093
+ number
2094
+ >;
2095
+
2096
+ /**
2097
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
2098
+ * conviction-weighted approvals.
2099
+ *
2100
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
2101
+ *
2102
+ * @param {number} arg
2103
+ * @param {Callback<Array<[number, bigint]>> =} callback
2104
+ **/
2105
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
2106
+
2107
+ /**
2108
+ * The number of referenda being decided currently.
2109
+ *
2110
+ * @param {number} arg
2111
+ * @param {Callback<number> =} callback
2112
+ **/
2113
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
2114
+
2115
+ /**
2116
+ * The metadata is a general information concerning the referendum.
2117
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
2118
+ * dump or IPFS hash of a JSON file.
2119
+ *
2120
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
2121
+ * large preimages.
2122
+ *
2123
+ * @param {number} arg
2124
+ * @param {Callback<H256 | undefined> =} callback
2125
+ **/
2126
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
2127
+
2128
+ /**
2129
+ * Generic pallet storage query
2130
+ **/
2131
+ [storage: string]: GenericStorageQuery<Rv>;
2132
+ };
2133
+ /**
2134
+ * Pallet `Whitelist`'s storage queries
2135
+ **/
2136
+ whitelist: {
2137
+ /**
2138
+ *
2139
+ * @param {H256} arg
2140
+ * @param {Callback<[] | undefined> =} callback
2141
+ **/
2142
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
2143
+
2144
+ /**
2145
+ * Generic pallet storage query
2146
+ **/
2147
+ [storage: string]: GenericStorageQuery<Rv>;
2148
+ };
2149
+ /**
2150
+ * Pallet `Bounties`'s storage queries
2151
+ **/
2152
+ bounties: {
2153
+ /**
2154
+ * Number of bounty proposals that have been made.
2155
+ *
2156
+ * @param {Callback<number> =} callback
2157
+ **/
2158
+ bountyCount: GenericStorageQuery<Rv, () => number>;
2159
+
2160
+ /**
2161
+ * Bounties that have been made.
2162
+ *
2163
+ * @param {number} arg
2164
+ * @param {Callback<PalletBountiesBounty | undefined> =} callback
2165
+ **/
2166
+ bounties: GenericStorageQuery<Rv, (arg: number) => PalletBountiesBounty | undefined, number>;
2167
+
2168
+ /**
2169
+ * The description of each bounty.
2170
+ *
2171
+ * @param {number} arg
2172
+ * @param {Callback<Bytes | undefined> =} callback
2173
+ **/
2174
+ bountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
2175
+
2176
+ /**
2177
+ * Bounty indices that have been approved but not yet funded.
2178
+ *
2179
+ * @param {Callback<Array<number>> =} callback
2180
+ **/
2181
+ bountyApprovals: GenericStorageQuery<Rv, () => Array<number>>;
2182
+
2183
+ /**
2184
+ * Generic pallet storage query
2185
+ **/
2186
+ [storage: string]: GenericStorageQuery<Rv>;
2187
+ };
2188
+ /**
2189
+ * Pallet `ChildBounties`'s storage queries
2190
+ **/
2191
+ childBounties: {
2192
+ /**
2193
+ * DEPRECATED: Replaced with `ParentTotalChildBounties` storage item keeping dedicated counts
2194
+ * for each parent bounty. Number of total child bounties. Will be removed in May 2025.
2195
+ *
2196
+ * @param {Callback<number> =} callback
2197
+ **/
2198
+ childBountyCount: GenericStorageQuery<Rv, () => number>;
2199
+
2200
+ /**
2201
+ * Number of active child bounties per parent bounty.
2202
+ * Map of parent bounty index to number of child bounties.
2203
+ *
2204
+ * @param {number} arg
2205
+ * @param {Callback<number> =} callback
2206
+ **/
2207
+ parentChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
2208
+
2209
+ /**
2210
+ * Number of total child bounties per parent bounty, including completed bounties.
2211
+ *
2212
+ * @param {number} arg
2213
+ * @param {Callback<number> =} callback
2214
+ **/
2215
+ parentTotalChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
2216
+
2217
+ /**
2218
+ * Child bounties that have been added.
2219
+ *
2220
+ * @param {[number, number]} arg
2221
+ * @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
2222
+ **/
2223
+ childBounties: GenericStorageQuery<
2224
+ Rv,
2225
+ (arg: [number, number]) => PalletChildBountiesChildBounty | undefined,
2226
+ [number, number]
2227
+ >;
2228
+
2229
+ /**
2230
+ * The description of each child-bounty. Indexed by `(parent_id, child_id)`.
2231
+ *
2232
+ * This item replaces the `ChildBountyDescriptions` storage item from the V0 storage version.
2233
+ *
2234
+ * @param {[number, number]} arg
2235
+ * @param {Callback<Bytes | undefined> =} callback
2236
+ **/
2237
+ childBountyDescriptionsV1: GenericStorageQuery<Rv, (arg: [number, number]) => Bytes | undefined, [number, number]>;
2238
+
2239
+ /**
2240
+ * The mapping of the child bounty ids from storage version `V0` to the new `V1` version.
2241
+ *
2242
+ * The `V0` ids based on total child bounty count [`ChildBountyCount`]`. The `V1` version ids
2243
+ * based on the child bounty count per parent bounty [`ParentTotalChildBounties`].
2244
+ * The item intended solely for client convenience and not used in the pallet's core logic.
2245
+ *
2246
+ * @param {number} arg
2247
+ * @param {Callback<[number, number] | undefined> =} callback
2248
+ **/
2249
+ v0ToV1ChildBountyIds: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
2250
+
2251
+ /**
2252
+ * The cumulative child-bounty curator fee for each parent bounty.
2253
+ *
2254
+ * @param {number} arg
2255
+ * @param {Callback<bigint> =} callback
2256
+ **/
2257
+ childrenCuratorFees: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
2258
+
2259
+ /**
2260
+ * Generic pallet storage query
2261
+ **/
2262
+ [storage: string]: GenericStorageQuery<Rv>;
2263
+ };
2264
+ /**
2265
+ * Pallet `AssetRate`'s storage queries
2266
+ **/
2267
+ assetRate: {
2268
+ /**
2269
+ * Maps an asset to its fixed point representation in the native balance.
2270
+ *
2271
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
2272
+ *
2273
+ * @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} arg
2274
+ * @param {Callback<FixedU128 | undefined> =} callback
2275
+ **/
2276
+ conversionRateToNative: GenericStorageQuery<
2277
+ Rv,
2278
+ (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset) => FixedU128 | undefined,
2279
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset
2280
+ >;
2281
+
2282
+ /**
2283
+ * Generic pallet storage query
2284
+ **/
2285
+ [storage: string]: GenericStorageQuery<Rv>;
2286
+ };
2287
+ /**
2288
+ * Pallet `StateTrieMigration`'s storage queries
2289
+ **/
2290
+ stateTrieMigration: {
2291
+ /**
2292
+ * Migration progress.
2293
+ *
2294
+ * This stores the snapshot of the last migrated keys. It can be set into motion and move
2295
+ * forward by any of the means provided by this pallet.
2296
+ *
2297
+ * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
2298
+ **/
2299
+ migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
2300
+
2301
+ /**
2302
+ * The limits that are imposed on automatic migrations.
2303
+ *
2304
+ * If set to None, then no automatic migration happens.
2305
+ *
2306
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2307
+ **/
2308
+ autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2309
+
2310
+ /**
2311
+ * The maximum limits that the signed migration could use.
2312
+ *
2313
+ * If not set, no signed submission is allowed.
2314
+ *
2315
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2316
+ **/
2317
+ signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2318
+
2319
+ /**
2320
+ * Generic pallet storage query
2321
+ **/
2322
+ [storage: string]: GenericStorageQuery<Rv>;
2323
+ };
2324
+ /**
2325
+ * Pallet `Staking`'s storage queries
2326
+ **/
2327
+ staking: {
2328
+ /**
2329
+ * The ideal number of active validators.
2330
+ *
2331
+ * @param {Callback<number> =} callback
2332
+ **/
2333
+ validatorCount: GenericStorageQuery<Rv, () => number>;
2334
+
2335
+ /**
2336
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
2337
+ * easy to initialize and the performance hit is minimal (we expect no more than four
2338
+ * invulnerables) and restricted to testnets.
2339
+ *
2340
+ * @param {Callback<Array<AccountId32>> =} callback
2341
+ **/
2342
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
2343
+
2344
+ /**
2345
+ * Map from all locked "stash" accounts to the controller account.
2346
+ *
2347
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2348
+ *
2349
+ * @param {AccountId32Like} arg
2350
+ * @param {Callback<AccountId32 | undefined> =} callback
2351
+ **/
2352
+ bonded: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
2353
+
2354
+ /**
2355
+ * The minimum active bond to become and maintain the role of a nominator.
2356
+ *
2357
+ * @param {Callback<bigint> =} callback
2358
+ **/
2359
+ minNominatorBond: GenericStorageQuery<Rv, () => bigint>;
2360
+
2361
+ /**
2362
+ * The minimum active bond to become and maintain the role of a validator.
2363
+ *
2364
+ * @param {Callback<bigint> =} callback
2365
+ **/
2366
+ minValidatorBond: GenericStorageQuery<Rv, () => bigint>;
2367
+
2368
+ /**
2369
+ * The minimum active nominator stake of the last successful election.
2370
+ *
2371
+ * @param {Callback<bigint> =} callback
2372
+ **/
2373
+ minimumActiveStake: GenericStorageQuery<Rv, () => bigint>;
2374
+
2375
+ /**
2376
+ * The minimum amount of commission that validators can set.
2377
+ *
2378
+ * If set to `0`, no limit exists.
2379
+ *
2380
+ * @param {Callback<Perbill> =} callback
2381
+ **/
2382
+ minCommission: GenericStorageQuery<Rv, () => Perbill>;
2383
+
2384
+ /**
2385
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
2386
+ *
2387
+ * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
2388
+ * by [`StakingLedger`] to ensure data and lock consistency.
2389
+ *
2390
+ * @param {AccountId32Like} arg
2391
+ * @param {Callback<PalletStakingAsyncLedgerStakingLedger | undefined> =} callback
2392
+ **/
2393
+ ledger: GenericStorageQuery<
2394
+ Rv,
2395
+ (arg: AccountId32Like) => PalletStakingAsyncLedgerStakingLedger | undefined,
2396
+ AccountId32
2397
+ >;
2398
+
2399
+ /**
2400
+ * Where the reward payment should be made. Keyed by stash.
2401
+ *
2402
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2403
+ *
2404
+ * @param {AccountId32Like} arg
2405
+ * @param {Callback<PalletStakingAsyncRewardDestination | undefined> =} callback
2406
+ **/
2407
+ payee: GenericStorageQuery<
2408
+ Rv,
2409
+ (arg: AccountId32Like) => PalletStakingAsyncRewardDestination | undefined,
2410
+ AccountId32
2411
+ >;
2412
+
2413
+ /**
2414
+ * The map from (wannabe) validator stash key to the preferences of that validator.
2415
+ *
2416
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2417
+ *
2418
+ * @param {AccountId32Like} arg
2419
+ * @param {Callback<PalletStakingAsyncValidatorPrefs> =} callback
2420
+ **/
2421
+ validators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingAsyncValidatorPrefs, AccountId32>;
2422
+
2423
+ /**
2424
+ * Counter for the related counted storage map
2425
+ *
2426
+ * @param {Callback<number> =} callback
2427
+ **/
2428
+ counterForValidators: GenericStorageQuery<Rv, () => number>;
2429
+
2430
+ /**
2431
+ * The maximum validator count before we stop allowing new validators to join.
2432
+ *
2433
+ * When this value is not set, no limits are enforced.
2434
+ *
2435
+ * @param {Callback<number | undefined> =} callback
2436
+ **/
2437
+ maxValidatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
2438
+
2439
+ /**
2440
+ * The map from nominator stash key to their nomination preferences, namely the validators that
2441
+ * they wish to support.
2442
+ *
2443
+ * Note that the keys of this storage map might become non-decodable in case the
2444
+ * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
2445
+ * In this rare case, these nominators
2446
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
2447
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
2448
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
2449
+ * is within the bounds of the newly set `Config::MaxNominations`.
2450
+ *
2451
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
2452
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
2453
+ * number of keys that exist.
2454
+ *
2455
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
2456
+ * [`Call::chill_other`] dispatchable by anyone.
2457
+ *
2458
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2459
+ *
2460
+ * @param {AccountId32Like} arg
2461
+ * @param {Callback<PalletStakingAsyncNominations | undefined> =} callback
2462
+ **/
2463
+ nominators: GenericStorageQuery<
2464
+ Rv,
2465
+ (arg: AccountId32Like) => PalletStakingAsyncNominations | undefined,
2466
+ AccountId32
2467
+ >;
2468
+
2469
+ /**
2470
+ * Counter for the related counted storage map
2471
+ *
2472
+ * @param {Callback<number> =} callback
2473
+ **/
2474
+ counterForNominators: GenericStorageQuery<Rv, () => number>;
2475
+
2476
+ /**
2477
+ * Stakers whose funds are managed by other pallets.
2478
+ *
2479
+ * This pallet does not apply any locks on them, therefore they are only virtually bonded. They
2480
+ * are expected to be keyless accounts and hence should not be allowed to mutate their ledger
2481
+ * directly via this pallet. Instead, these accounts are managed by other pallets and accessed
2482
+ * via low level apis. We keep track of them to do minimal integrity checks.
2483
+ *
2484
+ * @param {AccountId32Like} arg
2485
+ * @param {Callback<[] | undefined> =} callback
2486
+ **/
2487
+ virtualStakers: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
2488
+
2489
+ /**
2490
+ * Counter for the related counted storage map
2491
+ *
2492
+ * @param {Callback<number> =} callback
2493
+ **/
2494
+ counterForVirtualStakers: GenericStorageQuery<Rv, () => number>;
2495
+
2496
+ /**
2497
+ * The maximum nominator count before we stop allowing new validators to join.
2498
+ *
2499
+ * When this value is not set, no limits are enforced.
2500
+ *
2501
+ * @param {Callback<number | undefined> =} callback
2502
+ **/
2503
+ maxNominatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
2504
+
2505
+ /**
2506
+ * The current planned era index.
2507
+ *
2508
+ * This is the latest planned era, depending on how the Session pallet queues the validator
2509
+ * set, it might be active or not.
2510
+ *
2511
+ * @param {Callback<number | undefined> =} callback
2512
+ **/
2513
+ currentEra: GenericStorageQuery<Rv, () => number | undefined>;
2514
+
2515
+ /**
2516
+ * The active era information, it holds index and start.
2517
+ *
2518
+ * The active era is the era being currently rewarded. Validator set of this era must be
2519
+ * equal to what is RC's session pallet.
2520
+ *
2521
+ * @param {Callback<PalletStakingAsyncActiveEraInfo | undefined> =} callback
2522
+ **/
2523
+ activeEra: GenericStorageQuery<Rv, () => PalletStakingAsyncActiveEraInfo | undefined>;
2524
+
2525
+ /**
2526
+ * A mapping from still-bonded eras to the first session index of that era.
2527
+ *
2528
+ * Must contains information for eras for the range:
2529
+ * `[active_era - bounding_duration; active_era]`
2530
+ *
2531
+ * @param {Callback<Array<[number, number]>> =} callback
2532
+ **/
2533
+ bondedEras: GenericStorageQuery<Rv, () => Array<[number, number]>>;
2534
+
2535
+ /**
2536
+ * Summary of validator exposure at a given era.
2537
+ *
2538
+ * This contains the total stake in support of the validator and their own stake. In addition,
2539
+ * it can also be used to get the number of nominators backing this validator and the number of
2540
+ * exposure pages they are divided into. The page count is useful to determine the number of
2541
+ * pages of rewards that needs to be claimed.
2542
+ *
2543
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
2544
+ * Should only be accessed through `Eras`.
2545
+ *
2546
+ * Is it removed after [`Config::HistoryDepth`] eras.
2547
+ * If stakers hasn't been set or has been removed then empty overview is returned.
2548
+ *
2549
+ * @param {[number, AccountId32Like]} arg
2550
+ * @param {Callback<SpStakingPagedExposureMetadata | undefined> =} callback
2551
+ **/
2552
+ erasStakersOverview: GenericStorageQuery<
2553
+ Rv,
2554
+ (arg: [number, AccountId32Like]) => SpStakingPagedExposureMetadata | undefined,
2555
+ [number, AccountId32]
2556
+ >;
2557
+
2558
+ /**
2559
+ * Paginated exposure of a validator at given era.
2560
+ *
2561
+ * This is keyed first by the era index to allow bulk deletion, then stash account and finally
2562
+ * the page. Should only be accessed through `Eras`.
2563
+ *
2564
+ * This is cleared after [`Config::HistoryDepth`] eras.
2565
+ *
2566
+ * @param {[number, AccountId32Like, number]} arg
2567
+ * @param {Callback<PalletStakingAsyncPalletBoundedExposurePage | undefined> =} callback
2568
+ **/
2569
+ erasStakersPaged: GenericStorageQuery<
2570
+ Rv,
2571
+ (arg: [number, AccountId32Like, number]) => PalletStakingAsyncPalletBoundedExposurePage | undefined,
2572
+ [number, AccountId32, number]
2573
+ >;
2574
+
2575
+ /**
2576
+ * History of claimed paged rewards by era and validator.
2577
+ *
2578
+ * This is keyed by era and validator stash which maps to the set of page indexes which have
2579
+ * been claimed.
2580
+ *
2581
+ * It is removed after [`Config::HistoryDepth`] eras.
2582
+ *
2583
+ * @param {[number, AccountId32Like]} arg
2584
+ * @param {Callback<Array<number>> =} callback
2585
+ **/
2586
+ claimedRewards: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => Array<number>, [number, AccountId32]>;
2587
+
2588
+ /**
2589
+ * Exposure of validator at era with the preferences of validators.
2590
+ *
2591
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
2592
+ *
2593
+ * Is it removed after [`Config::HistoryDepth`] eras.
2594
+ *
2595
+ * @param {[number, AccountId32Like]} arg
2596
+ * @param {Callback<PalletStakingAsyncValidatorPrefs> =} callback
2597
+ **/
2598
+ erasValidatorPrefs: GenericStorageQuery<
2599
+ Rv,
2600
+ (arg: [number, AccountId32Like]) => PalletStakingAsyncValidatorPrefs,
2601
+ [number, AccountId32]
2602
+ >;
2603
+
2604
+ /**
2605
+ * The total validator era payout for the last [`Config::HistoryDepth`] eras.
2606
+ *
2607
+ * Eras that haven't finished yet or has been removed doesn't have reward.
2608
+ *
2609
+ * @param {number} arg
2610
+ * @param {Callback<bigint | undefined> =} callback
2611
+ **/
2612
+ erasValidatorReward: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
2613
+
2614
+ /**
2615
+ * Rewards for the last [`Config::HistoryDepth`] eras.
2616
+ * If reward hasn't been set or has been removed then 0 reward is returned.
2617
+ *
2618
+ * @param {number} arg
2619
+ * @param {Callback<PalletStakingAsyncEraRewardPoints> =} callback
2620
+ **/
2621
+ erasRewardPoints: GenericStorageQuery<Rv, (arg: number) => PalletStakingAsyncEraRewardPoints, number>;
2622
+
2623
+ /**
2624
+ * The total amount staked for the last [`Config::HistoryDepth`] eras.
2625
+ * If total hasn't been set or has been removed then 0 stake is returned.
2626
+ *
2627
+ * @param {number} arg
2628
+ * @param {Callback<bigint> =} callback
2629
+ **/
2630
+ erasTotalStake: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
2631
+
2632
+ /**
2633
+ * Mode of era forcing.
2634
+ *
2635
+ * @param {Callback<PalletStakingAsyncForcing> =} callback
2636
+ **/
2637
+ forceEra: GenericStorageQuery<Rv, () => PalletStakingAsyncForcing>;
2638
+
2639
+ /**
2640
+ * Maximum staked rewards, i.e. the percentage of the era inflation that
2641
+ * is used for stake rewards.
2642
+ * See [Era payout](./index.html#era-payout).
2643
+ *
2644
+ * @param {Callback<Percent | undefined> =} callback
2645
+ **/
2646
+ maxStakedRewards: GenericStorageQuery<Rv, () => Percent | undefined>;
2647
+
2648
+ /**
2649
+ * The percentage of the slash that is distributed to reporters.
2650
+ *
2651
+ * The rest of the slashed value is handled by the `Slash`.
2652
+ *
2653
+ * @param {Callback<Perbill> =} callback
2654
+ **/
2655
+ slashRewardFraction: GenericStorageQuery<Rv, () => Perbill>;
2656
+
2657
+ /**
2658
+ * The amount of currency given to reporters of a slash event which was
2659
+ * canceled by extraordinary circumstances (e.g. governance).
2660
+ *
2661
+ * @param {Callback<bigint> =} callback
2662
+ **/
2663
+ canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
2664
+
2665
+ /**
2666
+ * Stores reported offences in a queue until they are processed in subsequent blocks.
2667
+ *
2668
+ * Each offence is recorded under the corresponding era index and the offending validator's
2669
+ * account. If an offence spans multiple pages, only one page is processed at a time. Offences
2670
+ * are handled sequentially, with their associated slashes computed and stored in
2671
+ * `UnappliedSlashes`. These slashes are then applied in a future era as determined by
2672
+ * `SlashDeferDuration`.
2673
+ *
2674
+ * Any offences tied to an era older than `BondingDuration` are automatically dropped.
2675
+ * Processing always prioritizes the oldest era first.
2676
+ *
2677
+ * @param {[number, AccountId32Like]} arg
2678
+ * @param {Callback<PalletStakingAsyncSlashingOffenceRecord | undefined> =} callback
2679
+ **/
2680
+ offenceQueue: GenericStorageQuery<
2681
+ Rv,
2682
+ (arg: [number, AccountId32Like]) => PalletStakingAsyncSlashingOffenceRecord | undefined,
2683
+ [number, AccountId32]
2684
+ >;
2685
+
2686
+ /**
2687
+ * Tracks the eras that contain offences in `OffenceQueue`, sorted from **earliest to latest**.
2688
+ *
2689
+ * - This ensures efficient retrieval of the oldest offence without iterating through
2690
+ * `OffenceQueue`.
2691
+ * - When a new offence is added to `OffenceQueue`, its era is **inserted in sorted order**
2692
+ * if not already present.
2693
+ * - When all offences for an era are processed, it is **removed** from this list.
2694
+ * - The maximum length of this vector is bounded by `BondingDuration`.
2695
+ *
2696
+ * This eliminates the need for expensive iteration and sorting when fetching the next offence
2697
+ * to process.
2698
+ *
2699
+ * @param {Callback<Array<number> | undefined> =} callback
2700
+ **/
2701
+ offenceQueueEras: GenericStorageQuery<Rv, () => Array<number> | undefined>;
2702
+
2703
+ /**
2704
+ * Tracks the currently processed offence record from the `OffenceQueue`.
2705
+ *
2706
+ * - When processing offences, an offence record is **popped** from the oldest era in
2707
+ * `OffenceQueue` and stored here.
2708
+ * - The function `process_offence` reads from this storage, processing one page of exposure at
2709
+ * a time.
2710
+ * - After processing a page, the `exposure_page` count is **decremented** until it reaches
2711
+ * zero.
2712
+ * - Once fully processed, the offence record is removed from this storage.
2713
+ *
2714
+ * This ensures that offences are processed incrementally, preventing excessive computation
2715
+ * in a single block while maintaining correct slashing behavior.
2716
+ *
2717
+ * @param {Callback<[number, AccountId32, PalletStakingAsyncSlashingOffenceRecord] | undefined> =} callback
2718
+ **/
2719
+ processingOffence: GenericStorageQuery<
2720
+ Rv,
2721
+ () => [number, AccountId32, PalletStakingAsyncSlashingOffenceRecord] | undefined
2722
+ >;
2723
+
2724
+ /**
2725
+ * All unapplied slashes that are queued for later.
2726
+ *
2727
+ * @param {[number, [AccountId32Like, Perbill, number]]} arg
2728
+ * @param {Callback<PalletStakingAsyncUnappliedSlash | undefined> =} callback
2729
+ **/
2730
+ unappliedSlashes: GenericStorageQuery<
2731
+ Rv,
2732
+ (arg: [number, [AccountId32Like, Perbill, number]]) => PalletStakingAsyncUnappliedSlash | undefined,
2733
+ [number, [AccountId32, Perbill, number]]
2734
+ >;
2735
+
2736
+ /**
2737
+ * All slashing events on validators, mapped by era to the highest slash proportion
2738
+ * and slash value of the era.
2739
+ *
2740
+ * @param {[number, AccountId32Like]} arg
2741
+ * @param {Callback<[Perbill, bigint] | undefined> =} callback
2742
+ **/
2743
+ validatorSlashInEra: GenericStorageQuery<
2744
+ Rv,
2745
+ (arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined,
2746
+ [number, AccountId32]
2747
+ >;
2748
+
2749
+ /**
2750
+ * The threshold for when users can start calling `chill_other` for other validators /
2751
+ * nominators. The threshold is compared to the actual number of validators / nominators
2752
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
2753
+ *
2754
+ * @param {Callback<Percent | undefined> =} callback
2755
+ **/
2756
+ chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
2757
+
2758
+ /**
2759
+ * Voter snapshot progress status.
2760
+ *
2761
+ * If the status is `Ongoing`, it keeps a cursor of the last voter retrieved to proceed when
2762
+ * creating the next snapshot page.
2763
+ *
2764
+ * @param {Callback<PalletStakingAsyncSnapshotStatus> =} callback
2765
+ **/
2766
+ voterSnapshotStatus: GenericStorageQuery<Rv, () => PalletStakingAsyncSnapshotStatus>;
2767
+
2768
+ /**
2769
+ * Keeps track of an ongoing multi-page election solution request.
2770
+ *
2771
+ * If `Some(_)``, it is the next page that we intend to elect. If `None`, we are not in the
2772
+ * election process.
2773
+ *
2774
+ * This is only set in multi-block elections. Should always be `None` otherwise.
2775
+ *
2776
+ * @param {Callback<number | undefined> =} callback
2777
+ **/
2778
+ nextElectionPage: GenericStorageQuery<Rv, () => number | undefined>;
2779
+
2780
+ /**
2781
+ * A bounded list of the "electable" stashes that resulted from a successful election.
2782
+ *
2783
+ * @param {Callback<Array<AccountId32>> =} callback
2784
+ **/
2785
+ electableStashes: GenericStorageQuery<Rv, () => Array<AccountId32>>;
2786
+
2787
+ /**
2788
+ * Generic pallet storage query
2789
+ **/
2790
+ [storage: string]: GenericStorageQuery<Rv>;
2791
+ };
2792
+ /**
2793
+ * Pallet `NominationPools`'s storage queries
2794
+ **/
2795
+ nominationPools: {
2796
+ /**
2797
+ * The sum of funds across all pools.
2798
+ *
2799
+ * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
2800
+ * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
2801
+ * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
2802
+ *
2803
+ * @param {Callback<bigint> =} callback
2804
+ **/
2805
+ totalValueLocked: GenericStorageQuery<Rv, () => bigint>;
2806
+
2807
+ /**
2808
+ * Minimum amount to bond to join a pool.
2809
+ *
2810
+ * @param {Callback<bigint> =} callback
2811
+ **/
2812
+ minJoinBond: GenericStorageQuery<Rv, () => bigint>;
2813
+
2814
+ /**
2815
+ * Minimum bond required to create a pool.
2816
+ *
2817
+ * This is the amount that the depositor must put as their initial stake in the pool, as an
2818
+ * indication of "skin in the game".
2819
+ *
2820
+ * This is the value that will always exist in the staking ledger of the pool bonded account
2821
+ * while all other accounts leave.
2822
+ *
2823
+ * @param {Callback<bigint> =} callback
2824
+ **/
2825
+ minCreateBond: GenericStorageQuery<Rv, () => bigint>;
2826
+
2827
+ /**
2828
+ * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
2829
+ * pools can exist.
2830
+ *
2831
+ * @param {Callback<number | undefined> =} callback
2832
+ **/
2833
+ maxPools: GenericStorageQuery<Rv, () => number | undefined>;
2834
+
2835
+ /**
2836
+ * Maximum number of members that can exist in the system. If `None`, then the count
2837
+ * members are not bound on a system wide basis.
2838
+ *
2839
+ * @param {Callback<number | undefined> =} callback
2840
+ **/
2841
+ maxPoolMembers: GenericStorageQuery<Rv, () => number | undefined>;
2842
+
2843
+ /**
2844
+ * Maximum number of members that may belong to pool. If `None`, then the count of
2845
+ * members is not bound on a per pool basis.
2846
+ *
2847
+ * @param {Callback<number | undefined> =} callback
2848
+ **/
2849
+ maxPoolMembersPerPool: GenericStorageQuery<Rv, () => number | undefined>;
2850
+
2851
+ /**
2852
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
2853
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
2854
+ * `GlobalMaxCommission` is lower than some current pool commissions.
2855
+ *
2856
+ * @param {Callback<Perbill | undefined> =} callback
2857
+ **/
2858
+ globalMaxCommission: GenericStorageQuery<Rv, () => Perbill | undefined>;
2859
+
2860
+ /**
2861
+ * Active members.
2862
+ *
2863
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2864
+ *
2865
+ * @param {AccountId32Like} arg
2866
+ * @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
2867
+ **/
2868
+ poolMembers: GenericStorageQuery<
2869
+ Rv,
2870
+ (arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined,
2871
+ AccountId32
2872
+ >;
2873
+
2874
+ /**
2875
+ * Counter for the related counted storage map
2876
+ *
2877
+ * @param {Callback<number> =} callback
2878
+ **/
2879
+ counterForPoolMembers: GenericStorageQuery<Rv, () => number>;
2880
+
2881
+ /**
2882
+ * Storage for bonded pools.
2883
+ *
2884
+ * @param {number} arg
2885
+ * @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
2886
+ **/
2887
+ bondedPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
2888
+
2889
+ /**
2890
+ * Counter for the related counted storage map
2891
+ *
2892
+ * @param {Callback<number> =} callback
2893
+ **/
2894
+ counterForBondedPools: GenericStorageQuery<Rv, () => number>;
2895
+
2896
+ /**
2897
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
2898
+ * claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
2899
+ *
2900
+ * @param {number} arg
2901
+ * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
2902
+ **/
2903
+ rewardPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
2904
+
2905
+ /**
2906
+ * Counter for the related counted storage map
2907
+ *
2908
+ * @param {Callback<number> =} callback
2909
+ **/
2910
+ counterForRewardPools: GenericStorageQuery<Rv, () => number>;
2911
+
2912
+ /**
2913
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
2914
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
2915
+ *
2916
+ * @param {number} arg
2917
+ * @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
2918
+ **/
2919
+ subPoolsStorage: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsSubPools | undefined, number>;
2920
+
2921
+ /**
2922
+ * Counter for the related counted storage map
2923
+ *
2924
+ * @param {Callback<number> =} callback
2925
+ **/
2926
+ counterForSubPoolsStorage: GenericStorageQuery<Rv, () => number>;
2927
+
2928
+ /**
2929
+ * Metadata for the pool.
2930
+ *
2931
+ * @param {number} arg
2932
+ * @param {Callback<Bytes> =} callback
2933
+ **/
2934
+ metadata: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
2935
+
2936
+ /**
2937
+ * Counter for the related counted storage map
2938
+ *
2939
+ * @param {Callback<number> =} callback
2940
+ **/
2941
+ counterForMetadata: GenericStorageQuery<Rv, () => number>;
2942
+
2943
+ /**
2944
+ * Ever increasing number of all pools created so far.
2945
+ *
2946
+ * @param {Callback<number> =} callback
2947
+ **/
2948
+ lastPoolId: GenericStorageQuery<Rv, () => number>;
2949
+
2950
+ /**
2951
+ * A reverse lookup from the pool's account id to its id.
2952
+ *
2953
+ * This is only used for slashing and on automatic withdraw update. In all other instances, the
2954
+ * pool id is used, and the accounts are deterministically derived from it.
2955
+ *
2956
+ * @param {AccountId32Like} arg
2957
+ * @param {Callback<number | undefined> =} callback
2958
+ **/
2959
+ reversePoolIdLookup: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
2960
+
2961
+ /**
2962
+ * Counter for the related counted storage map
2963
+ *
2964
+ * @param {Callback<number> =} callback
2965
+ **/
2966
+ counterForReversePoolIdLookup: GenericStorageQuery<Rv, () => number>;
2967
+
2968
+ /**
2969
+ * Map from a pool member account to their opted claim permission.
2970
+ *
2971
+ * @param {AccountId32Like} arg
2972
+ * @param {Callback<PalletNominationPoolsClaimPermission> =} callback
2973
+ **/
2974
+ claimPermissions: GenericStorageQuery<
2975
+ Rv,
2976
+ (arg: AccountId32Like) => PalletNominationPoolsClaimPermission,
2977
+ AccountId32
2978
+ >;
2979
+
2980
+ /**
2981
+ * Generic pallet storage query
2982
+ **/
2983
+ [storage: string]: GenericStorageQuery<Rv>;
2984
+ };
2985
+ /**
2986
+ * Pallet `VoterList`'s storage queries
2987
+ **/
2988
+ voterList: {
2989
+ /**
2990
+ * A single node, within some bag.
2991
+ *
2992
+ * Nodes store links forward and back within their respective bags.
2993
+ *
2994
+ * @param {AccountId32Like} arg
2995
+ * @param {Callback<PalletBagsListListNode | undefined> =} callback
2996
+ **/
2997
+ listNodes: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBagsListListNode | undefined, AccountId32>;
2998
+
2999
+ /**
3000
+ * Counter for the related counted storage map
3001
+ *
3002
+ * @param {Callback<number> =} callback
3003
+ **/
3004
+ counterForListNodes: GenericStorageQuery<Rv, () => number>;
3005
+
3006
+ /**
3007
+ * A bag stored in storage.
3008
+ *
3009
+ * Stores a `Bag` struct, which stores head and tail pointers to itself.
3010
+ *
3011
+ * @param {bigint} arg
3012
+ * @param {Callback<PalletBagsListListBag | undefined> =} callback
3013
+ **/
3014
+ listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
3015
+
3016
+ /**
3017
+ * Pointer that remembers the next node that will be auto-rebagged.
3018
+ * When `None`, the next scan will start from the list head again.
3019
+ *
3020
+ * @param {Callback<AccountId32 | undefined> =} callback
3021
+ **/
3022
+ nextNodeAutoRebagged: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
3023
+
3024
+ /**
3025
+ * Lock all updates to this pallet.
3026
+ *
3027
+ * If any nodes needs updating, removal or addition due to a temporary lock, the
3028
+ * [`Call::rebag`] can be used.
3029
+ *
3030
+ * @param {Callback<[] | undefined> =} callback
3031
+ **/
3032
+ lock: GenericStorageQuery<Rv, () => [] | undefined>;
3033
+
3034
+ /**
3035
+ * Generic pallet storage query
3036
+ **/
3037
+ [storage: string]: GenericStorageQuery<Rv>;
3038
+ };
3039
+ /**
3040
+ * Pallet `DelegatedStaking`'s storage queries
3041
+ **/
3042
+ delegatedStaking: {
3043
+ /**
3044
+ * Map of Delegators to their `Delegation`.
3045
+ *
3046
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
3047
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
3048
+ *
3049
+ * @param {AccountId32Like} arg
3050
+ * @param {Callback<PalletDelegatedStakingDelegation | undefined> =} callback
3051
+ **/
3052
+ delegators: GenericStorageQuery<
3053
+ Rv,
3054
+ (arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined,
3055
+ AccountId32
3056
+ >;
3057
+
3058
+ /**
3059
+ * Counter for the related counted storage map
3060
+ *
3061
+ * @param {Callback<number> =} callback
3062
+ **/
3063
+ counterForDelegators: GenericStorageQuery<Rv, () => number>;
3064
+
3065
+ /**
3066
+ * Map of `Agent` to their `Ledger`.
3067
+ *
3068
+ * @param {AccountId32Like} arg
3069
+ * @param {Callback<PalletDelegatedStakingAgentLedger | undefined> =} callback
3070
+ **/
3071
+ agents: GenericStorageQuery<
3072
+ Rv,
3073
+ (arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined,
3074
+ AccountId32
3075
+ >;
3076
+
3077
+ /**
3078
+ * Counter for the related counted storage map
3079
+ *
3080
+ * @param {Callback<number> =} callback
3081
+ **/
3082
+ counterForAgents: GenericStorageQuery<Rv, () => number>;
3083
+
3084
+ /**
3085
+ * Generic pallet storage query
3086
+ **/
3087
+ [storage: string]: GenericStorageQuery<Rv>;
3088
+ };
3089
+ /**
3090
+ * Pallet `StakingRcClient`'s storage queries
3091
+ **/
3092
+ stakingRcClient: {
3093
+ /**
3094
+ * An incomplete incoming session report that we have not acted upon yet.
3095
+ *
3096
+ * @param {Callback<PalletStakingAsyncRcClientSessionReport | undefined> =} callback
3097
+ **/
3098
+ incompleteSessionReport: GenericStorageQuery<Rv, () => PalletStakingAsyncRcClientSessionReport | undefined>;
3099
+
3100
+ /**
3101
+ * The last session report's `end_index` that we have acted upon.
3102
+ *
3103
+ * This allows this pallet to ensure a sequentially increasing sequence of session reports
3104
+ * passed to staking.
3105
+ *
3106
+ * Note that with the XCM being the backbone of communication, we have a guarantee on the
3107
+ * ordering of messages. As long as the RC sends session reports in order, we _eventually_
3108
+ * receive them in the same correct order as well.
3109
+ *
3110
+ * @param {Callback<number | undefined> =} callback
3111
+ **/
3112
+ lastSessionReportEndingIndex: GenericStorageQuery<Rv, () => number | undefined>;
3113
+
3114
+ /**
3115
+ * Generic pallet storage query
3116
+ **/
3117
+ [storage: string]: GenericStorageQuery<Rv>;
3118
+ };
3119
+ /**
3120
+ * Pallet `MultiBlockElection`'s storage queries
3121
+ **/
3122
+ multiBlockElection: {
3123
+ /**
3124
+ * Internal counter for the number of rounds.
3125
+ *
3126
+ * This is useful for de-duplication of transactions submitted to the pool, and general
3127
+ * diagnostics of the pallet.
3128
+ *
3129
+ * This is merely incremented once per every time that an upstream `elect` is called.
3130
+ *
3131
+ * @param {Callback<number> =} callback
3132
+ **/
3133
+ round: GenericStorageQuery<Rv, () => number>;
3134
+
3135
+ /**
3136
+ * Current phase.
3137
+ *
3138
+ * @param {Callback<PalletElectionProviderMultiBlockPhase> =} callback
3139
+ **/
3140
+ currentPhase: GenericStorageQuery<Rv, () => PalletElectionProviderMultiBlockPhase>;
3141
+
3142
+ /**
3143
+ * Desired number of targets to elect for this round.
3144
+ *
3145
+ * @param {number} arg
3146
+ * @param {Callback<number | undefined> =} callback
3147
+ **/
3148
+ desiredTargets: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
3149
+
3150
+ /**
3151
+ * Paginated voter snapshot. At most [`T::Pages`] keys will exist.
3152
+ *
3153
+ * @param {[number, number]} arg
3154
+ * @param {Callback<Array<[AccountId32, bigint, Array<AccountId32>]> | undefined> =} callback
3155
+ **/
3156
+ pagedVoterSnapshot: GenericStorageQuery<
3157
+ Rv,
3158
+ (arg: [number, number]) => Array<[AccountId32, bigint, Array<AccountId32>]> | undefined,
3159
+ [number, number]
3160
+ >;
3161
+
3162
+ /**
3163
+ * Same as [`PagedVoterSnapshot`], but it will store the hash of the snapshot.
3164
+ *
3165
+ * The hash is generated using [`frame_system::Config::Hashing`].
3166
+ *
3167
+ * @param {[number, number]} arg
3168
+ * @param {Callback<H256 | undefined> =} callback
3169
+ **/
3170
+ pagedVoterSnapshotHash: GenericStorageQuery<Rv, (arg: [number, number]) => H256 | undefined, [number, number]>;
3171
+
3172
+ /**
3173
+ * Paginated target snapshot.
3174
+ *
3175
+ * For the time being, since we assume one pages of targets, at most ONE key will exist.
3176
+ *
3177
+ * @param {[number, number]} arg
3178
+ * @param {Callback<Array<AccountId32> | undefined> =} callback
3179
+ **/
3180
+ pagedTargetSnapshot: GenericStorageQuery<
3181
+ Rv,
3182
+ (arg: [number, number]) => Array<AccountId32> | undefined,
3183
+ [number, number]
3184
+ >;
3185
+
3186
+ /**
3187
+ * Same as [`PagedTargetSnapshot`], but it will store the hash of the snapshot.
3188
+ *
3189
+ * The hash is generated using [`frame_system::Config::Hashing`].
3190
+ *
3191
+ * @param {[number, number]} arg
3192
+ * @param {Callback<H256 | undefined> =} callback
3193
+ **/
3194
+ pagedTargetSnapshotHash: GenericStorageQuery<Rv, (arg: [number, number]) => H256 | undefined, [number, number]>;
3195
+
3196
+ /**
3197
+ * Generic pallet storage query
3198
+ **/
3199
+ [storage: string]: GenericStorageQuery<Rv>;
3200
+ };
3201
+ /**
3202
+ * Pallet `MultiBlockElectionVerifier`'s storage queries
3203
+ **/
3204
+ multiBlockElectionVerifier: {
3205
+ /**
3206
+ * The `X` variant of the current queued solution. Might be the valid one or not.
3207
+ *
3208
+ * The two variants of this storage item is to avoid the need of copying. Recall that once a
3209
+ * `VerifyingSolution` is being processed, it needs to write its partial supports *somewhere*.
3210
+ * Writing theses supports on top of a *good* queued supports is wrong, since we might bail.
3211
+ * Writing them to a bugger and copying at the ned is slightly better, but expensive. This flag
3212
+ * system is best of both worlds.
3213
+ *
3214
+ * @param {[number, number]} arg
3215
+ * @param {Callback<FrameElectionProviderSupportBoundedSupports | undefined> =} callback
3216
+ **/
3217
+ queuedSolutionX: GenericStorageQuery<
3218
+ Rv,
3219
+ (arg: [number, number]) => FrameElectionProviderSupportBoundedSupports | undefined,
3220
+ [number, number]
3221
+ >;
3222
+
3223
+ /**
3224
+ * The `Y` variant of the current queued solution. Might be the valid one or not.
3225
+ *
3226
+ * @param {[number, number]} arg
3227
+ * @param {Callback<FrameElectionProviderSupportBoundedSupports | undefined> =} callback
3228
+ **/
3229
+ queuedSolutionY: GenericStorageQuery<
3230
+ Rv,
3231
+ (arg: [number, number]) => FrameElectionProviderSupportBoundedSupports | undefined,
3232
+ [number, number]
3233
+ >;
3234
+
3235
+ /**
3236
+ * Pointer to the variant of [`QueuedSolutionX`] or [`QueuedSolutionY`] that is currently
3237
+ * valid.
3238
+ *
3239
+ * @param {number} arg
3240
+ * @param {Callback<PalletElectionProviderMultiBlockVerifierImplsValidSolution> =} callback
3241
+ **/
3242
+ queuedValidVariant: GenericStorageQuery<
3243
+ Rv,
3244
+ (arg: number) => PalletElectionProviderMultiBlockVerifierImplsValidSolution,
3245
+ number
3246
+ >;
3247
+
3248
+ /**
3249
+ * The `(amount, count)` of backings, divided per page.
3250
+ *
3251
+ * This is stored because in the last block of verification we need them to compute the score,
3252
+ * and check `MaxBackersPerWinnerFinal`.
3253
+ *
3254
+ * This can only ever live for the invalid variant of the solution. Once it is valid, we don't
3255
+ * need this information anymore; the score is already computed once in
3256
+ * [`QueuedSolutionScore`], and the backing counts are checked.
3257
+ *
3258
+ * @param {[number, number]} arg
3259
+ * @param {Callback<Array<[AccountId32, PalletElectionProviderMultiBlockVerifierImplsPartialBackings]> | undefined> =} callback
3260
+ **/
3261
+ queuedSolutionBackings: GenericStorageQuery<
3262
+ Rv,
3263
+ (
3264
+ arg: [number, number],
3265
+ ) => Array<[AccountId32, PalletElectionProviderMultiBlockVerifierImplsPartialBackings]> | undefined,
3266
+ [number, number]
3267
+ >;
3268
+
3269
+ /**
3270
+ * The score of the valid variant of [`QueuedSolution`].
3271
+ *
3272
+ * This only ever lives for the `valid` variant.
3273
+ *
3274
+ * @param {number} arg
3275
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
3276
+ **/
3277
+ queuedSolutionScore: GenericStorageQuery<Rv, (arg: number) => SpNposElectionsElectionScore | undefined, number>;
3278
+
3279
+ /**
3280
+ * The minimum score that each solution must attain in order to be considered feasible.
3281
+ *
3282
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
3283
+ **/
3284
+ minimumScore: GenericStorageQuery<Rv, () => SpNposElectionsElectionScore | undefined>;
3285
+
3286
+ /**
3287
+ * Storage item for [`Status`].
3288
+ *
3289
+ * @param {Callback<PalletElectionProviderMultiBlockVerifierImplsStatus> =} callback
3290
+ **/
3291
+ statusStorage: GenericStorageQuery<Rv, () => PalletElectionProviderMultiBlockVerifierImplsStatus>;
3292
+
3293
+ /**
3294
+ * Generic pallet storage query
3295
+ **/
3296
+ [storage: string]: GenericStorageQuery<Rv>;
3297
+ };
3298
+ /**
3299
+ * Pallet `MultiBlockElectionSigned`'s storage queries
3300
+ **/
3301
+ multiBlockElectionSigned: {
3302
+ /**
3303
+ * Accounts whitelisted by governance to always submit their solutions.
3304
+ *
3305
+ * They are different in that:
3306
+ *
3307
+ * * They always pay a fixed deposit for submission, specified by
3308
+ * [`Config::InvulnerableDeposit`]. They pay no page deposit.
3309
+ * * If _ejected_ by better solution from [`SortedScores`], they will get their full deposit
3310
+ * back.
3311
+ * * They always get their tx-fee back even if they are _discarded_.
3312
+ *
3313
+ * @param {Callback<Array<AccountId32>> =} callback
3314
+ **/
3315
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
3316
+
3317
+ /**
3318
+ *
3319
+ * @param {number} arg
3320
+ * @param {Callback<Array<[AccountId32, SpNposElectionsElectionScore]>> =} callback
3321
+ **/
3322
+ sortedScores: GenericStorageQuery<Rv, (arg: number) => Array<[AccountId32, SpNposElectionsElectionScore]>, number>;
3323
+
3324
+ /**
3325
+ * Triple map from (round, account, page) to a solution page.
3326
+ *
3327
+ * @param {[number, AccountId32Like, number]} arg
3328
+ * @param {Callback<AssetHubPaseoRuntimeStakingNposCompactSolution16 | undefined> =} callback
3329
+ **/
3330
+ submissionStorage: GenericStorageQuery<
3331
+ Rv,
3332
+ (arg: [number, AccountId32Like, number]) => AssetHubPaseoRuntimeStakingNposCompactSolution16 | undefined,
3333
+ [number, AccountId32, number]
3334
+ >;
3335
+
3336
+ /**
3337
+ * Map from account to the metadata of their submission.
3338
+ *
3339
+ * invariant: for any Key1 of type `AccountId` in [`Submissions`], this storage map also has a
3340
+ * value.
3341
+ *
3342
+ * @param {[number, AccountId32Like]} arg
3343
+ * @param {Callback<PalletElectionProviderMultiBlockSignedSubmissionMetadata | undefined> =} callback
3344
+ **/
3345
+ submissionMetadataStorage: GenericStorageQuery<
3346
+ Rv,
3347
+ (arg: [number, AccountId32Like]) => PalletElectionProviderMultiBlockSignedSubmissionMetadata | undefined,
3348
+ [number, AccountId32]
3349
+ >;
3350
+
3351
+ /**
3352
+ * Generic pallet storage query
3353
+ **/
3354
+ [storage: string]: GenericStorageQuery<Rv>;
3355
+ };
3356
+ /**
3357
+ * Pallet `Sudo`'s storage queries
3358
+ **/
3359
+ sudo: {
3360
+ /**
3361
+ * The `AccountId` of the sudo key.
3362
+ *
3363
+ * @param {Callback<AccountId32 | undefined> =} callback
3364
+ **/
3365
+ key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
3366
+
3367
+ /**
3368
+ * Generic pallet storage query
3369
+ **/
3370
+ [storage: string]: GenericStorageQuery<Rv>;
3371
+ };
3372
+ /**
3373
+ * Pallet `AhOps`'s storage queries
3374
+ **/
3375
+ ahOps: {
3376
+ /**
3377
+ * Amount of balance that was reserved for winning a lease auction.
3378
+ *
3379
+ * `unreserve_lease_deposit` can be permissionlessly called once the block number passed to
3380
+ * unreserve the deposit. It is implicitly called by `withdraw_crowdloan_contribution`.
3381
+ *
3382
+ * The account here can either be a crowdloan account or a solo bidder. If it is a crowdloan
3383
+ * account, then the summed up contributions for it in the contributions map will equate the
3384
+ * reserved balance here.
3385
+ *
3386
+ * The keys are as follows:
3387
+ * - Block number after which the deposit can be unreserved.
3388
+ * - The para_id of the lease slot.
3389
+ * - The account that will have the balance unreserved.
3390
+ * - The balance to be unreserved.
3391
+ *
3392
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3393
+ * @param {Callback<bigint | undefined> =} callback
3394
+ **/
3395
+ rcLeaseReserve: GenericStorageQuery<
3396
+ Rv,
3397
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => bigint | undefined,
3398
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3399
+ >;
3400
+
3401
+ /**
3402
+ * Amount of balance that a contributor made towards a crowdloan.
3403
+ *
3404
+ * `withdraw_crowdloan_contribution` can be permissionlessly called once the block number
3405
+ * passed to unlock the balance for a specific account.
3406
+ *
3407
+ * The keys are as follows:
3408
+ * - Block number after which the balance can be unlocked.
3409
+ * - The para_id of the crowdloan.
3410
+ * - The account that made the contribution.
3411
+ *
3412
+ * The value is (fund_pot, balance). The contribution pot is the second key in the
3413
+ * `RcCrowdloanContribution` storage.
3414
+ *
3415
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3416
+ * @param {Callback<[AccountId32, bigint] | undefined> =} callback
3417
+ **/
3418
+ rcCrowdloanContribution: GenericStorageQuery<
3419
+ Rv,
3420
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => [AccountId32, bigint] | undefined,
3421
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3422
+ >;
3423
+
3424
+ /**
3425
+ * The reserve that was taken to create a crowdloan.
3426
+ *
3427
+ * This is normally 500 DOT and can be refunded as last step after all
3428
+ * `RcCrowdloanContribution`s of this loan have been withdrawn.
3429
+ *
3430
+ * Keys:
3431
+ * - Block number after which this can be unreserved
3432
+ * - The para_id of the crowdloan
3433
+ * - The account that will have the balance unreserved
3434
+ *
3435
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3436
+ * @param {Callback<bigint | undefined> =} callback
3437
+ **/
3438
+ rcCrowdloanReserve: GenericStorageQuery<
3439
+ Rv,
3440
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => bigint | undefined,
3441
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3442
+ >;
3443
+
3444
+ /**
3445
+ * Generic pallet storage query
3446
+ **/
3447
+ [storage: string]: GenericStorageQuery<Rv>;
3448
+ };
3449
+ /**
3450
+ * Pallet `AhMigrator`'s storage queries
3451
+ **/
3452
+ ahMigrator: {
3453
+ /**
3454
+ * RC accounts that failed to migrate when were received on the Asset Hub.
3455
+ *
3456
+ * This is unlikely to happen, since we dry run the migration, but we keep it for completeness.
3457
+ *
3458
+ * @param {AccountId32Like} arg
3459
+ * @param {Callback<PalletRcMigratorAccountsAccount | undefined> =} callback
3460
+ **/
3461
+ rcAccounts: GenericStorageQuery<
3462
+ Rv,
3463
+ (arg: AccountId32Like) => PalletRcMigratorAccountsAccount | undefined,
3464
+ AccountId32
3465
+ >;
3466
+
3467
+ /**
3468
+ * The Asset Hub migration state.
3469
+ *
3470
+ * @param {Callback<PalletAhMigratorMigrationStage> =} callback
3471
+ **/
3472
+ ahMigrationStage: GenericStorageQuery<Rv, () => PalletAhMigratorMigrationStage>;
3473
+
3474
+ /**
3475
+ * Helper storage item to store the total balance / total issuance of native token at the start
3476
+ * of the migration. Since teleports are disabled during migration, the total issuance will not
3477
+ * change for other reason than the migration itself.
3478
+ *
3479
+ * @param {Callback<PalletAhMigratorBalancesBefore> =} callback
3480
+ **/
3481
+ ahBalancesBefore: GenericStorageQuery<Rv, () => PalletAhMigratorBalancesBefore>;
3482
+
3483
+ /**
3484
+ * The priority of the DMP queue during migration.
3485
+ *
3486
+ * Controls how the DMP (Downward Message Passing) queue is processed relative to other queues
3487
+ * during the migration process. This helps ensure timely processing of migration messages.
3488
+ * The default priority pattern is defined in the pallet configuration, but can be overridden
3489
+ * by a storage value of this type.
3490
+ *
3491
+ * @param {Callback<PalletRcMigratorQueuePriority> =} callback
3492
+ **/
3493
+ dmpQueuePriorityConfig: GenericStorageQuery<Rv, () => PalletRcMigratorQueuePriority>;
3494
+
3495
+ /**
3496
+ * An optional account id of a manager.
3497
+ *
3498
+ * The manager has the similar to [`Config::AdminOrigin`] privileges except that it
3499
+ * can not set the manager account id via `set_manager` call.
3500
+ *
3501
+ * @param {Callback<AccountId32 | undefined> =} callback
3502
+ **/
3503
+ manager: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
3504
+
3505
+ /**
3506
+ * The block number at which the migration began and the pallet's extrinsics were locked.
3507
+ *
3508
+ * This value is set when entering the `WaitingForAh` stage, i.e., when
3509
+ * `RcMigrationStage::is_ongoing()` becomes `true`.
3510
+ *
3511
+ * @param {Callback<number | undefined> =} callback
3512
+ **/
3513
+ migrationStartBlock: GenericStorageQuery<Rv, () => number | undefined>;
3514
+
3515
+ /**
3516
+ * Block number when migration finished and extrinsics were unlocked.
3517
+ *
3518
+ * This is set when entering the `MigrationDone` stage hence when
3519
+ * `RcMigrationStage::is_finished()` becomes `true`.
3520
+ *
3521
+ * @param {Callback<number | undefined> =} callback
3522
+ **/
3523
+ migrationEndBlock: GenericStorageQuery<Rv, () => number | undefined>;
1778
3524
 
1779
3525
  /**
1780
3526
  * Generic pallet storage query