@dedot/chaintypes 0.174.0 → 0.176.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,
@@ -31,14 +35,21 @@ import type {
31
35
  PolkadotParachainPrimitivesPrimitivesId,
32
36
  CumulusPalletParachainSystemParachainInherentInboundMessageId,
33
37
  PolkadotCorePrimitivesOutboundHrmpMessage,
38
+ PalletPreimageOldRequestStatus,
39
+ PalletPreimageRequestStatus,
40
+ PalletSchedulerScheduled,
41
+ PalletSchedulerRetryConfig,
42
+ AssetHubPolkadotRuntimeRuntimeParametersValue,
43
+ AssetHubPolkadotRuntimeRuntimeParametersKey,
34
44
  PalletBalancesAccountData,
35
45
  PalletBalancesBalanceLock,
36
46
  PalletBalancesReserveData,
37
- FrameSupportTokensMiscIdAmount,
38
- FrameSupportTokensMiscIdAmount002,
47
+ FrameSupportTokensMiscIdAmountRuntimeHoldReason,
48
+ FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
39
49
  PalletTransactionPaymentReleases,
40
50
  PalletVestingVestingInfo,
41
51
  PalletVestingReleases,
52
+ PolkadotRuntimeCommonClaimsStatementKind,
42
53
  PalletCollatorSelectionCandidateInfo,
43
54
  AssetHubPolkadotRuntimeSessionKeys,
44
55
  SpStakingOffenceOffenceSeverity,
@@ -60,7 +71,7 @@ import type {
60
71
  PalletMessageQueuePage,
61
72
  SnowbridgeCoreOperatingModeBasicOperatingMode,
62
73
  PalletMultisigMultisig,
63
- PalletProxyProxyDefinition,
74
+ PalletProxyProxyDefinitionProxyType,
64
75
  PalletProxyAnnouncement,
65
76
  PalletAssetsAssetDetails,
66
77
  PalletAssetsAssetAccount,
@@ -82,8 +93,51 @@ import type {
82
93
  PalletNftsItemConfig,
83
94
  StagingXcmV5Location,
84
95
  PalletAssetConversionPoolInfo,
96
+ PalletTreasuryProposal,
97
+ PalletTreasurySpendStatus,
98
+ PalletConvictionVotingVoteVoting,
99
+ PalletReferendaReferendumInfoOriginCaller,
100
+ PalletBountiesBounty,
101
+ PalletChildBountiesChildBounty,
102
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset,
85
103
  PalletStateTrieMigrationMigrationTask,
86
104
  PalletStateTrieMigrationMigrationLimits,
105
+ PalletNominationPoolsPoolMember,
106
+ PalletNominationPoolsBondedPoolInner,
107
+ PalletNominationPoolsRewardPool,
108
+ PalletNominationPoolsSubPools,
109
+ PalletNominationPoolsClaimPermission,
110
+ PalletBagsListListNode,
111
+ PalletBagsListListBag,
112
+ PalletDelegatedStakingDelegation,
113
+ PalletDelegatedStakingAgentLedger,
114
+ PalletStakingAsyncRcClientSessionReport,
115
+ PalletStakingAsyncRcClientValidatorSetReport,
116
+ PalletElectionProviderMultiBlockPhase,
117
+ FrameElectionProviderSupportBoundedSupports,
118
+ PalletElectionProviderMultiBlockVerifierImplsValidSolution,
119
+ PalletElectionProviderMultiBlockVerifierImplsPartialBackings,
120
+ SpNposElectionsElectionScore,
121
+ PalletElectionProviderMultiBlockVerifierImplsStatus,
122
+ AssetHubPolkadotRuntimeStakingNposCompactSolution16,
123
+ PalletElectionProviderMultiBlockSignedSubmissionMetadata,
124
+ PalletStakingAsyncLedgerStakingLedger,
125
+ PalletStakingAsyncRewardDestination,
126
+ PalletStakingAsyncValidatorPrefs,
127
+ PalletStakingAsyncNominations,
128
+ PalletStakingAsyncActiveEraInfo,
129
+ SpStakingPagedExposureMetadata,
130
+ PalletStakingAsyncPalletBoundedExposurePage,
131
+ PalletStakingAsyncEraRewardPoints,
132
+ PalletStakingAsyncForcing,
133
+ PalletStakingAsyncSlashingOffenceRecord,
134
+ PalletStakingAsyncUnappliedSlash,
135
+ PalletStakingAsyncSnapshotStatus,
136
+ PalletStakingAsyncPalletPruningStep,
137
+ PalletRcMigratorAccountsAccount,
138
+ PalletAhMigratorMigrationStage,
139
+ PalletAhMigratorBalancesBefore,
140
+ PalletRcMigratorQueuePriority,
87
141
  } from './types.js';
88
142
 
89
143
  export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
@@ -569,6 +623,108 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
569
623
  **/
570
624
  [storage: string]: GenericStorageQuery<Rv>;
571
625
  };
626
+ /**
627
+ * Pallet `Preimage`'s storage queries
628
+ **/
629
+ preimage: {
630
+ /**
631
+ * The request status of a given hash.
632
+ *
633
+ * @param {H256} arg
634
+ * @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
635
+ *
636
+ * @deprecated RequestStatusFor
637
+ **/
638
+ statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
639
+
640
+ /**
641
+ * The request status of a given hash.
642
+ *
643
+ * @param {H256} arg
644
+ * @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
645
+ **/
646
+ requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
647
+
648
+ /**
649
+ *
650
+ * @param {[H256, number]} arg
651
+ * @param {Callback<Bytes | undefined> =} callback
652
+ **/
653
+ preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
654
+
655
+ /**
656
+ * Generic pallet storage query
657
+ **/
658
+ [storage: string]: GenericStorageQuery<Rv>;
659
+ };
660
+ /**
661
+ * Pallet `Scheduler`'s storage queries
662
+ **/
663
+ scheduler: {
664
+ /**
665
+ * Block number at which the agenda began incomplete execution.
666
+ *
667
+ * @param {Callback<number | undefined> =} callback
668
+ **/
669
+ incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
670
+
671
+ /**
672
+ * Items to be executed, indexed by the block number that they should be executed on.
673
+ *
674
+ * @param {number} arg
675
+ * @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
676
+ **/
677
+ agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
678
+
679
+ /**
680
+ * Retry configurations for items to be executed, indexed by task address.
681
+ *
682
+ * @param {[number, number]} arg
683
+ * @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
684
+ **/
685
+ retries: GenericStorageQuery<
686
+ Rv,
687
+ (arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
688
+ [number, number]
689
+ >;
690
+
691
+ /**
692
+ * Lookup from a name to the block number and index of the task.
693
+ *
694
+ * For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
695
+ * identities.
696
+ *
697
+ * @param {FixedBytes<32>} arg
698
+ * @param {Callback<[number, number] | undefined> =} callback
699
+ **/
700
+ lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
701
+
702
+ /**
703
+ * Generic pallet storage query
704
+ **/
705
+ [storage: string]: GenericStorageQuery<Rv>;
706
+ };
707
+ /**
708
+ * Pallet `Parameters`'s storage queries
709
+ **/
710
+ parameters: {
711
+ /**
712
+ * Stored parameters.
713
+ *
714
+ * @param {AssetHubPolkadotRuntimeRuntimeParametersKey} arg
715
+ * @param {Callback<AssetHubPolkadotRuntimeRuntimeParametersValue | undefined> =} callback
716
+ **/
717
+ parameters: GenericStorageQuery<
718
+ Rv,
719
+ (arg: AssetHubPolkadotRuntimeRuntimeParametersKey) => AssetHubPolkadotRuntimeRuntimeParametersValue | undefined,
720
+ AssetHubPolkadotRuntimeRuntimeParametersKey
721
+ >;
722
+
723
+ /**
724
+ * Generic pallet storage query
725
+ **/
726
+ [storage: string]: GenericStorageQuery<Rv>;
727
+ };
572
728
  /**
573
729
  * Pallet `Balances`'s storage queries
574
730
  **/
@@ -643,17 +799,25 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
643
799
  * Holds on account balances.
644
800
  *
645
801
  * @param {AccountId32Like} arg
646
- * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
802
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeHoldReason>> =} callback
647
803
  **/
648
- holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
804
+ holds: GenericStorageQuery<
805
+ Rv,
806
+ (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeHoldReason>,
807
+ AccountId32
808
+ >;
649
809
 
650
810
  /**
651
811
  * Freeze locks on account balances.
652
812
  *
653
813
  * @param {AccountId32Like} arg
654
- * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
814
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
655
815
  **/
656
- freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
816
+ freezes: GenericStorageQuery<
817
+ Rv,
818
+ (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
819
+ AccountId32
820
+ >;
657
821
 
658
822
  /**
659
823
  * Generic pallet storage query
@@ -711,6 +875,63 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
711
875
  **/
712
876
  [storage: string]: GenericStorageQuery<Rv>;
713
877
  };
878
+ /**
879
+ * Pallet `Claims`'s storage queries
880
+ **/
881
+ claims: {
882
+ /**
883
+ *
884
+ * @param {EthereumAddressLike} arg
885
+ * @param {Callback<bigint | undefined> =} callback
886
+ **/
887
+ claims: GenericStorageQuery<Rv, (arg: EthereumAddressLike) => bigint | undefined, EthereumAddress>;
888
+
889
+ /**
890
+ *
891
+ * @param {Callback<bigint> =} callback
892
+ **/
893
+ total: GenericStorageQuery<Rv, () => bigint>;
894
+
895
+ /**
896
+ * Vesting schedule for a claim.
897
+ * First balance is the total amount that should be held for vesting.
898
+ * Second balance is how much should be unlocked per block.
899
+ * The block number is when the vesting should start.
900
+ *
901
+ * @param {EthereumAddressLike} arg
902
+ * @param {Callback<[bigint, bigint, number] | undefined> =} callback
903
+ **/
904
+ vesting: GenericStorageQuery<
905
+ Rv,
906
+ (arg: EthereumAddressLike) => [bigint, bigint, number] | undefined,
907
+ EthereumAddress
908
+ >;
909
+
910
+ /**
911
+ * The statement kind that must be signed, if any.
912
+ *
913
+ * @param {EthereumAddressLike} arg
914
+ * @param {Callback<PolkadotRuntimeCommonClaimsStatementKind | undefined> =} callback
915
+ **/
916
+ signing: GenericStorageQuery<
917
+ Rv,
918
+ (arg: EthereumAddressLike) => PolkadotRuntimeCommonClaimsStatementKind | undefined,
919
+ EthereumAddress
920
+ >;
921
+
922
+ /**
923
+ * Pre-claimed Ethereum accounts, by the Account ID that they are claimed to.
924
+ *
925
+ * @param {AccountId32Like} arg
926
+ * @param {Callback<EthereumAddress | undefined> =} callback
927
+ **/
928
+ preclaims: GenericStorageQuery<Rv, (arg: AccountId32Like) => EthereumAddress | undefined, AccountId32>;
929
+
930
+ /**
931
+ * Generic pallet storage query
932
+ **/
933
+ [storage: string]: GenericStorageQuery<Rv>;
934
+ };
714
935
  /**
715
936
  * Pallet `Authorship`'s storage queries
716
937
  **/
@@ -1268,11 +1489,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1268
1489
  * which are being delegated to, together with the amount held on deposit.
1269
1490
  *
1270
1491
  * @param {AccountId32Like} arg
1271
- * @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
1492
+ * @param {Callback<[Array<PalletProxyProxyDefinitionProxyType>, bigint]> =} callback
1272
1493
  **/
1273
1494
  proxies: GenericStorageQuery<
1274
1495
  Rv,
1275
- (arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
1496
+ (arg: AccountId32Like) => [Array<PalletProxyProxyDefinitionProxyType>, bigint],
1276
1497
  AccountId32
1277
1498
  >;
1278
1499
 
@@ -1293,6 +1514,23 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1293
1514
  **/
1294
1515
  [storage: string]: GenericStorageQuery<Rv>;
1295
1516
  };
1517
+ /**
1518
+ * Pallet `Indices`'s storage queries
1519
+ **/
1520
+ indices: {
1521
+ /**
1522
+ * The lookup from index to account.
1523
+ *
1524
+ * @param {number} arg
1525
+ * @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
1526
+ **/
1527
+ accounts: GenericStorageQuery<Rv, (arg: number) => [AccountId32, bigint, boolean] | undefined, number>;
1528
+
1529
+ /**
1530
+ * Generic pallet storage query
1531
+ **/
1532
+ [storage: string]: GenericStorageQuery<Rv>;
1533
+ };
1296
1534
  /**
1297
1535
  * Pallet `Assets`'s storage queries
1298
1536
  **/
@@ -1799,36 +2037,1574 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1799
2037
  [storage: string]: GenericStorageQuery<Rv>;
1800
2038
  };
1801
2039
  /**
1802
- * Pallet `StateTrieMigration`'s storage queries
2040
+ * Pallet `Treasury`'s storage queries
1803
2041
  **/
1804
- stateTrieMigration: {
2042
+ treasury: {
1805
2043
  /**
1806
- * Migration progress.
2044
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
2045
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1807
2046
  *
1808
- * This stores the snapshot of the last migrated keys. It can be set into motion and move
1809
- * forward by any of the means provided by this pallet.
2047
+ * Number of proposals that have been made.
1810
2048
  *
1811
- * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
2049
+ * @param {Callback<number> =} callback
1812
2050
  **/
1813
- migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
2051
+ proposalCount: GenericStorageQuery<Rv, () => number>;
1814
2052
 
1815
2053
  /**
1816
- * The limits that are imposed on automatic migrations.
2054
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
2055
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1817
2056
  *
1818
- * If set to None, then no automatic migration happens.
2057
+ * Proposals that have been made.
1819
2058
  *
1820
- * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2059
+ * @param {number} arg
2060
+ * @param {Callback<PalletTreasuryProposal | undefined> =} callback
1821
2061
  **/
1822
- autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2062
+ proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
1823
2063
 
1824
2064
  /**
1825
- * The maximum limits that the signed migration could use.
2065
+ * The amount which has been reported as inactive to Currency.
1826
2066
  *
1827
- * If not set, no signed submission is allowed.
2067
+ * @param {Callback<bigint> =} callback
2068
+ **/
2069
+ deactivated: GenericStorageQuery<Rv, () => bigint>;
2070
+
2071
+ /**
2072
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
2073
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1828
2074
  *
1829
- * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2075
+ * Proposal indices that have been approved but not yet awarded.
2076
+ *
2077
+ * @param {Callback<Array<number>> =} callback
1830
2078
  **/
1831
- signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2079
+ approvals: GenericStorageQuery<Rv, () => Array<number>>;
2080
+
2081
+ /**
2082
+ * The count of spends that have been made.
2083
+ *
2084
+ * @param {Callback<number> =} callback
2085
+ **/
2086
+ spendCount: GenericStorageQuery<Rv, () => number>;
2087
+
2088
+ /**
2089
+ * Spends that have been approved and being processed.
2090
+ *
2091
+ * @param {number} arg
2092
+ * @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
2093
+ **/
2094
+ spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
2095
+
2096
+ /**
2097
+ * The blocknumber for the last triggered spend period.
2098
+ *
2099
+ * @param {Callback<number | undefined> =} callback
2100
+ **/
2101
+ lastSpendPeriod: GenericStorageQuery<Rv, () => number | undefined>;
2102
+
2103
+ /**
2104
+ * Generic pallet storage query
2105
+ **/
2106
+ [storage: string]: GenericStorageQuery<Rv>;
2107
+ };
2108
+ /**
2109
+ * Pallet `ConvictionVoting`'s storage queries
2110
+ **/
2111
+ convictionVoting: {
2112
+ /**
2113
+ * All voting for a particular voter in a particular voting class. We store the balance for the
2114
+ * number of votes that we have recorded.
2115
+ *
2116
+ * @param {[AccountId32Like, number]} arg
2117
+ * @param {Callback<PalletConvictionVotingVoteVoting> =} callback
2118
+ **/
2119
+ votingFor: GenericStorageQuery<
2120
+ Rv,
2121
+ (arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
2122
+ [AccountId32, number]
2123
+ >;
2124
+
2125
+ /**
2126
+ * The voting classes which have a non-zero lock requirement and the lock amounts which they
2127
+ * require. The actual amount locked on behalf of this pallet should always be the maximum of
2128
+ * this list.
2129
+ *
2130
+ * @param {AccountId32Like} arg
2131
+ * @param {Callback<Array<[number, bigint]>> =} callback
2132
+ **/
2133
+ classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
2134
+
2135
+ /**
2136
+ * Generic pallet storage query
2137
+ **/
2138
+ [storage: string]: GenericStorageQuery<Rv>;
2139
+ };
2140
+ /**
2141
+ * Pallet `Referenda`'s storage queries
2142
+ **/
2143
+ referenda: {
2144
+ /**
2145
+ * The next free referendum index, aka the number of referenda started so far.
2146
+ *
2147
+ * @param {Callback<number> =} callback
2148
+ **/
2149
+ referendumCount: GenericStorageQuery<Rv, () => number>;
2150
+
2151
+ /**
2152
+ * Information concerning any given referendum.
2153
+ *
2154
+ * @param {number} arg
2155
+ * @param {Callback<PalletReferendaReferendumInfoOriginCaller | undefined> =} callback
2156
+ **/
2157
+ referendumInfoFor: GenericStorageQuery<
2158
+ Rv,
2159
+ (arg: number) => PalletReferendaReferendumInfoOriginCaller | undefined,
2160
+ number
2161
+ >;
2162
+
2163
+ /**
2164
+ * The sorted list of referenda ready to be decided but not yet being decided, ordered by
2165
+ * conviction-weighted approvals.
2166
+ *
2167
+ * This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
2168
+ *
2169
+ * @param {number} arg
2170
+ * @param {Callback<Array<[number, bigint]>> =} callback
2171
+ **/
2172
+ trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
2173
+
2174
+ /**
2175
+ * The number of referenda being decided currently.
2176
+ *
2177
+ * @param {number} arg
2178
+ * @param {Callback<number> =} callback
2179
+ **/
2180
+ decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
2181
+
2182
+ /**
2183
+ * The metadata is a general information concerning the referendum.
2184
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
2185
+ * dump or IPFS hash of a JSON file.
2186
+ *
2187
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
2188
+ * large preimages.
2189
+ *
2190
+ * @param {number} arg
2191
+ * @param {Callback<H256 | undefined> =} callback
2192
+ **/
2193
+ metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
2194
+
2195
+ /**
2196
+ * Generic pallet storage query
2197
+ **/
2198
+ [storage: string]: GenericStorageQuery<Rv>;
2199
+ };
2200
+ /**
2201
+ * Pallet `Whitelist`'s storage queries
2202
+ **/
2203
+ whitelist: {
2204
+ /**
2205
+ *
2206
+ * @param {H256} arg
2207
+ * @param {Callback<[] | undefined> =} callback
2208
+ **/
2209
+ whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
2210
+
2211
+ /**
2212
+ * Generic pallet storage query
2213
+ **/
2214
+ [storage: string]: GenericStorageQuery<Rv>;
2215
+ };
2216
+ /**
2217
+ * Pallet `Bounties`'s storage queries
2218
+ **/
2219
+ bounties: {
2220
+ /**
2221
+ * Number of bounty proposals that have been made.
2222
+ *
2223
+ * @param {Callback<number> =} callback
2224
+ **/
2225
+ bountyCount: GenericStorageQuery<Rv, () => number>;
2226
+
2227
+ /**
2228
+ * Bounties that have been made.
2229
+ *
2230
+ * @param {number} arg
2231
+ * @param {Callback<PalletBountiesBounty | undefined> =} callback
2232
+ **/
2233
+ bounties: GenericStorageQuery<Rv, (arg: number) => PalletBountiesBounty | undefined, number>;
2234
+
2235
+ /**
2236
+ * The description of each bounty.
2237
+ *
2238
+ * @param {number} arg
2239
+ * @param {Callback<Bytes | undefined> =} callback
2240
+ **/
2241
+ bountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
2242
+
2243
+ /**
2244
+ * Bounty indices that have been approved but not yet funded.
2245
+ *
2246
+ * @param {Callback<Array<number>> =} callback
2247
+ **/
2248
+ bountyApprovals: GenericStorageQuery<Rv, () => Array<number>>;
2249
+
2250
+ /**
2251
+ * Generic pallet storage query
2252
+ **/
2253
+ [storage: string]: GenericStorageQuery<Rv>;
2254
+ };
2255
+ /**
2256
+ * Pallet `ChildBounties`'s storage queries
2257
+ **/
2258
+ childBounties: {
2259
+ /**
2260
+ * DEPRECATED: Replaced with `ParentTotalChildBounties` storage item keeping dedicated counts
2261
+ * for each parent bounty. Number of total child bounties. Will be removed in May 2025.
2262
+ *
2263
+ * @param {Callback<number> =} callback
2264
+ **/
2265
+ childBountyCount: GenericStorageQuery<Rv, () => number>;
2266
+
2267
+ /**
2268
+ * Number of active child bounties per parent bounty.
2269
+ * Map of parent bounty index to number of child bounties.
2270
+ *
2271
+ * @param {number} arg
2272
+ * @param {Callback<number> =} callback
2273
+ **/
2274
+ parentChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
2275
+
2276
+ /**
2277
+ * Number of total child bounties per parent bounty, including completed bounties.
2278
+ *
2279
+ * @param {number} arg
2280
+ * @param {Callback<number> =} callback
2281
+ **/
2282
+ parentTotalChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
2283
+
2284
+ /**
2285
+ * Child bounties that have been added.
2286
+ *
2287
+ * @param {[number, number]} arg
2288
+ * @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
2289
+ **/
2290
+ childBounties: GenericStorageQuery<
2291
+ Rv,
2292
+ (arg: [number, number]) => PalletChildBountiesChildBounty | undefined,
2293
+ [number, number]
2294
+ >;
2295
+
2296
+ /**
2297
+ * The description of each child-bounty. Indexed by `(parent_id, child_id)`.
2298
+ *
2299
+ * This item replaces the `ChildBountyDescriptions` storage item from the V0 storage version.
2300
+ *
2301
+ * @param {[number, number]} arg
2302
+ * @param {Callback<Bytes | undefined> =} callback
2303
+ **/
2304
+ childBountyDescriptionsV1: GenericStorageQuery<Rv, (arg: [number, number]) => Bytes | undefined, [number, number]>;
2305
+
2306
+ /**
2307
+ * The mapping of the child bounty ids from storage version `V0` to the new `V1` version.
2308
+ *
2309
+ * The `V0` ids based on total child bounty count [`ChildBountyCount`]`. The `V1` version ids
2310
+ * based on the child bounty count per parent bounty [`ParentTotalChildBounties`].
2311
+ * The item intended solely for client convenience and not used in the pallet's core logic.
2312
+ *
2313
+ * @param {number} arg
2314
+ * @param {Callback<[number, number] | undefined> =} callback
2315
+ **/
2316
+ v0ToV1ChildBountyIds: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
2317
+
2318
+ /**
2319
+ * The cumulative child-bounty curator fee for each parent bounty.
2320
+ *
2321
+ * @param {number} arg
2322
+ * @param {Callback<bigint> =} callback
2323
+ **/
2324
+ childrenCuratorFees: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
2325
+
2326
+ /**
2327
+ * Generic pallet storage query
2328
+ **/
2329
+ [storage: string]: GenericStorageQuery<Rv>;
2330
+ };
2331
+ /**
2332
+ * Pallet `AssetRate`'s storage queries
2333
+ **/
2334
+ assetRate: {
2335
+ /**
2336
+ * Maps an asset to its fixed point representation in the native balance.
2337
+ *
2338
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
2339
+ *
2340
+ * @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} arg
2341
+ * @param {Callback<FixedU128 | undefined> =} callback
2342
+ **/
2343
+ conversionRateToNative: GenericStorageQuery<
2344
+ Rv,
2345
+ (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset) => FixedU128 | undefined,
2346
+ PolkadotRuntimeCommonImplsVersionedLocatableAsset
2347
+ >;
2348
+
2349
+ /**
2350
+ * Generic pallet storage query
2351
+ **/
2352
+ [storage: string]: GenericStorageQuery<Rv>;
2353
+ };
2354
+ /**
2355
+ * Pallet `StateTrieMigration`'s storage queries
2356
+ **/
2357
+ stateTrieMigration: {
2358
+ /**
2359
+ * Migration progress.
2360
+ *
2361
+ * This stores the snapshot of the last migrated keys. It can be set into motion and move
2362
+ * forward by any of the means provided by this pallet.
2363
+ *
2364
+ * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
2365
+ **/
2366
+ migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
2367
+
2368
+ /**
2369
+ * The limits that are imposed on automatic migrations.
2370
+ *
2371
+ * If set to None, then no automatic migration happens.
2372
+ *
2373
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2374
+ **/
2375
+ autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2376
+
2377
+ /**
2378
+ * The maximum limits that the signed migration could use.
2379
+ *
2380
+ * If not set, no signed submission is allowed.
2381
+ *
2382
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
2383
+ **/
2384
+ signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
2385
+
2386
+ /**
2387
+ * Generic pallet storage query
2388
+ **/
2389
+ [storage: string]: GenericStorageQuery<Rv>;
2390
+ };
2391
+ /**
2392
+ * Pallet `NominationPools`'s storage queries
2393
+ **/
2394
+ nominationPools: {
2395
+ /**
2396
+ * The sum of funds across all pools.
2397
+ *
2398
+ * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
2399
+ * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
2400
+ * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
2401
+ *
2402
+ * @param {Callback<bigint> =} callback
2403
+ **/
2404
+ totalValueLocked: GenericStorageQuery<Rv, () => bigint>;
2405
+
2406
+ /**
2407
+ * Minimum amount to bond to join a pool.
2408
+ *
2409
+ * @param {Callback<bigint> =} callback
2410
+ **/
2411
+ minJoinBond: GenericStorageQuery<Rv, () => bigint>;
2412
+
2413
+ /**
2414
+ * Minimum bond required to create a pool.
2415
+ *
2416
+ * This is the amount that the depositor must put as their initial stake in the pool, as an
2417
+ * indication of "skin in the game".
2418
+ *
2419
+ * This is the value that will always exist in the staking ledger of the pool bonded account
2420
+ * while all other accounts leave.
2421
+ *
2422
+ * @param {Callback<bigint> =} callback
2423
+ **/
2424
+ minCreateBond: GenericStorageQuery<Rv, () => bigint>;
2425
+
2426
+ /**
2427
+ * Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
2428
+ * pools can exist.
2429
+ *
2430
+ * @param {Callback<number | undefined> =} callback
2431
+ **/
2432
+ maxPools: GenericStorageQuery<Rv, () => number | undefined>;
2433
+
2434
+ /**
2435
+ * Maximum number of members that can exist in the system. If `None`, then the count
2436
+ * members are not bound on a system wide basis.
2437
+ *
2438
+ * @param {Callback<number | undefined> =} callback
2439
+ **/
2440
+ maxPoolMembers: GenericStorageQuery<Rv, () => number | undefined>;
2441
+
2442
+ /**
2443
+ * Maximum number of members that may belong to pool. If `None`, then the count of
2444
+ * members is not bound on a per pool basis.
2445
+ *
2446
+ * @param {Callback<number | undefined> =} callback
2447
+ **/
2448
+ maxPoolMembersPerPool: GenericStorageQuery<Rv, () => number | undefined>;
2449
+
2450
+ /**
2451
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
2452
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
2453
+ * `GlobalMaxCommission` is lower than some current pool commissions.
2454
+ *
2455
+ * @param {Callback<Perbill | undefined> =} callback
2456
+ **/
2457
+ globalMaxCommission: GenericStorageQuery<Rv, () => Perbill | undefined>;
2458
+
2459
+ /**
2460
+ * Active members.
2461
+ *
2462
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2463
+ *
2464
+ * @param {AccountId32Like} arg
2465
+ * @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
2466
+ **/
2467
+ poolMembers: GenericStorageQuery<
2468
+ Rv,
2469
+ (arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined,
2470
+ AccountId32
2471
+ >;
2472
+
2473
+ /**
2474
+ * Counter for the related counted storage map
2475
+ *
2476
+ * @param {Callback<number> =} callback
2477
+ **/
2478
+ counterForPoolMembers: GenericStorageQuery<Rv, () => number>;
2479
+
2480
+ /**
2481
+ * Storage for bonded pools.
2482
+ *
2483
+ * @param {number} arg
2484
+ * @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
2485
+ **/
2486
+ bondedPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsBondedPoolInner | undefined, number>;
2487
+
2488
+ /**
2489
+ * Counter for the related counted storage map
2490
+ *
2491
+ * @param {Callback<number> =} callback
2492
+ **/
2493
+ counterForBondedPools: GenericStorageQuery<Rv, () => number>;
2494
+
2495
+ /**
2496
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
2497
+ * claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
2498
+ *
2499
+ * @param {number} arg
2500
+ * @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
2501
+ **/
2502
+ rewardPools: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsRewardPool | undefined, number>;
2503
+
2504
+ /**
2505
+ * Counter for the related counted storage map
2506
+ *
2507
+ * @param {Callback<number> =} callback
2508
+ **/
2509
+ counterForRewardPools: GenericStorageQuery<Rv, () => number>;
2510
+
2511
+ /**
2512
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
2513
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
2514
+ *
2515
+ * @param {number} arg
2516
+ * @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
2517
+ **/
2518
+ subPoolsStorage: GenericStorageQuery<Rv, (arg: number) => PalletNominationPoolsSubPools | undefined, number>;
2519
+
2520
+ /**
2521
+ * Counter for the related counted storage map
2522
+ *
2523
+ * @param {Callback<number> =} callback
2524
+ **/
2525
+ counterForSubPoolsStorage: GenericStorageQuery<Rv, () => number>;
2526
+
2527
+ /**
2528
+ * Metadata for the pool.
2529
+ *
2530
+ * @param {number} arg
2531
+ * @param {Callback<Bytes> =} callback
2532
+ **/
2533
+ metadata: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
2534
+
2535
+ /**
2536
+ * Counter for the related counted storage map
2537
+ *
2538
+ * @param {Callback<number> =} callback
2539
+ **/
2540
+ counterForMetadata: GenericStorageQuery<Rv, () => number>;
2541
+
2542
+ /**
2543
+ * Ever increasing number of all pools created so far.
2544
+ *
2545
+ * @param {Callback<number> =} callback
2546
+ **/
2547
+ lastPoolId: GenericStorageQuery<Rv, () => number>;
2548
+
2549
+ /**
2550
+ * A reverse lookup from the pool's account id to its id.
2551
+ *
2552
+ * This is only used for slashing and on automatic withdraw update. In all other instances, the
2553
+ * pool id is used, and the accounts are deterministically derived from it.
2554
+ *
2555
+ * @param {AccountId32Like} arg
2556
+ * @param {Callback<number | undefined> =} callback
2557
+ **/
2558
+ reversePoolIdLookup: GenericStorageQuery<Rv, (arg: AccountId32Like) => number | undefined, AccountId32>;
2559
+
2560
+ /**
2561
+ * Counter for the related counted storage map
2562
+ *
2563
+ * @param {Callback<number> =} callback
2564
+ **/
2565
+ counterForReversePoolIdLookup: GenericStorageQuery<Rv, () => number>;
2566
+
2567
+ /**
2568
+ * Map from a pool member account to their opted claim permission.
2569
+ *
2570
+ * @param {AccountId32Like} arg
2571
+ * @param {Callback<PalletNominationPoolsClaimPermission> =} callback
2572
+ **/
2573
+ claimPermissions: GenericStorageQuery<
2574
+ Rv,
2575
+ (arg: AccountId32Like) => PalletNominationPoolsClaimPermission,
2576
+ AccountId32
2577
+ >;
2578
+
2579
+ /**
2580
+ * Generic pallet storage query
2581
+ **/
2582
+ [storage: string]: GenericStorageQuery<Rv>;
2583
+ };
2584
+ /**
2585
+ * Pallet `VoterList`'s storage queries
2586
+ **/
2587
+ voterList: {
2588
+ /**
2589
+ * A single node, within some bag.
2590
+ *
2591
+ * Nodes store links forward and back within their respective bags.
2592
+ *
2593
+ * @param {AccountId32Like} arg
2594
+ * @param {Callback<PalletBagsListListNode | undefined> =} callback
2595
+ **/
2596
+ listNodes: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBagsListListNode | undefined, AccountId32>;
2597
+
2598
+ /**
2599
+ * Counter for the related counted storage map
2600
+ *
2601
+ * @param {Callback<number> =} callback
2602
+ **/
2603
+ counterForListNodes: GenericStorageQuery<Rv, () => number>;
2604
+
2605
+ /**
2606
+ * A bag stored in storage.
2607
+ *
2608
+ * Stores a `Bag` struct, which stores head and tail pointers to itself.
2609
+ *
2610
+ * @param {bigint} arg
2611
+ * @param {Callback<PalletBagsListListBag | undefined> =} callback
2612
+ **/
2613
+ listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
2614
+
2615
+ /**
2616
+ * Pointer that remembers the next node that will be auto-rebagged.
2617
+ * When `None`, the next scan will start from the list head again.
2618
+ *
2619
+ * @param {Callback<AccountId32 | undefined> =} callback
2620
+ **/
2621
+ nextNodeAutoRebagged: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
2622
+
2623
+ /**
2624
+ * Lock all updates to this pallet.
2625
+ *
2626
+ * If any nodes needs updating, removal or addition due to a temporary lock, the
2627
+ * [`Call::rebag`] can be used.
2628
+ *
2629
+ * @param {Callback<[] | undefined> =} callback
2630
+ **/
2631
+ lock: GenericStorageQuery<Rv, () => [] | undefined>;
2632
+
2633
+ /**
2634
+ * Generic pallet storage query
2635
+ **/
2636
+ [storage: string]: GenericStorageQuery<Rv>;
2637
+ };
2638
+ /**
2639
+ * Pallet `DelegatedStaking`'s storage queries
2640
+ **/
2641
+ delegatedStaking: {
2642
+ /**
2643
+ * Map of Delegators to their `Delegation`.
2644
+ *
2645
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
2646
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
2647
+ *
2648
+ * @param {AccountId32Like} arg
2649
+ * @param {Callback<PalletDelegatedStakingDelegation | undefined> =} callback
2650
+ **/
2651
+ delegators: GenericStorageQuery<
2652
+ Rv,
2653
+ (arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined,
2654
+ AccountId32
2655
+ >;
2656
+
2657
+ /**
2658
+ * Counter for the related counted storage map
2659
+ *
2660
+ * @param {Callback<number> =} callback
2661
+ **/
2662
+ counterForDelegators: GenericStorageQuery<Rv, () => number>;
2663
+
2664
+ /**
2665
+ * Map of `Agent` to their `Ledger`.
2666
+ *
2667
+ * @param {AccountId32Like} arg
2668
+ * @param {Callback<PalletDelegatedStakingAgentLedger | undefined> =} callback
2669
+ **/
2670
+ agents: GenericStorageQuery<
2671
+ Rv,
2672
+ (arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined,
2673
+ AccountId32
2674
+ >;
2675
+
2676
+ /**
2677
+ * Counter for the related counted storage map
2678
+ *
2679
+ * @param {Callback<number> =} callback
2680
+ **/
2681
+ counterForAgents: GenericStorageQuery<Rv, () => number>;
2682
+
2683
+ /**
2684
+ * Generic pallet storage query
2685
+ **/
2686
+ [storage: string]: GenericStorageQuery<Rv>;
2687
+ };
2688
+ /**
2689
+ * Pallet `StakingRcClient`'s storage queries
2690
+ **/
2691
+ stakingRcClient: {
2692
+ /**
2693
+ * An incomplete incoming session report that we have not acted upon yet.
2694
+ *
2695
+ * @param {Callback<PalletStakingAsyncRcClientSessionReport | undefined> =} callback
2696
+ **/
2697
+ incompleteSessionReport: GenericStorageQuery<Rv, () => PalletStakingAsyncRcClientSessionReport | undefined>;
2698
+
2699
+ /**
2700
+ * The last session report's `end_index` that we have acted upon.
2701
+ *
2702
+ * This allows this pallet to ensure a sequentially increasing sequence of session reports
2703
+ * passed to staking.
2704
+ *
2705
+ * Note that with the XCM being the backbone of communication, we have a guarantee on the
2706
+ * ordering of messages. As long as the RC sends session reports in order, we _eventually_
2707
+ * receive them in the same correct order as well.
2708
+ *
2709
+ * @param {Callback<number | undefined> =} callback
2710
+ **/
2711
+ lastSessionReportEndingIndex: GenericStorageQuery<Rv, () => number | undefined>;
2712
+
2713
+ /**
2714
+ * A validator set that is outgoing, and should be sent.
2715
+ *
2716
+ * This will be attempted to be sent, possibly on every `on_initialize` call, until it is sent,
2717
+ * or the second value reaches zero, at which point we drop it.
2718
+ *
2719
+ * @param {Callback<[PalletStakingAsyncRcClientValidatorSetReport, number] | undefined> =} callback
2720
+ **/
2721
+ outgoingValidatorSet: GenericStorageQuery<
2722
+ Rv,
2723
+ () => [PalletStakingAsyncRcClientValidatorSetReport, number] | undefined
2724
+ >;
2725
+
2726
+ /**
2727
+ * Generic pallet storage query
2728
+ **/
2729
+ [storage: string]: GenericStorageQuery<Rv>;
2730
+ };
2731
+ /**
2732
+ * Pallet `MultiBlockElection`'s storage queries
2733
+ **/
2734
+ multiBlockElection: {
2735
+ /**
2736
+ * Internal counter for the number of rounds.
2737
+ *
2738
+ * This is useful for de-duplication of transactions submitted to the pool, and general
2739
+ * diagnostics of the pallet.
2740
+ *
2741
+ * This is merely incremented once per every time that an upstream `elect` is called.
2742
+ *
2743
+ * @param {Callback<number> =} callback
2744
+ **/
2745
+ round: GenericStorageQuery<Rv, () => number>;
2746
+
2747
+ /**
2748
+ * Current phase.
2749
+ *
2750
+ * @param {Callback<PalletElectionProviderMultiBlockPhase> =} callback
2751
+ **/
2752
+ currentPhase: GenericStorageQuery<Rv, () => PalletElectionProviderMultiBlockPhase>;
2753
+
2754
+ /**
2755
+ * Desired number of targets to elect for this round.
2756
+ *
2757
+ * @param {number} arg
2758
+ * @param {Callback<number | undefined> =} callback
2759
+ **/
2760
+ desiredTargets: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
2761
+
2762
+ /**
2763
+ * Paginated voter snapshot. At most [`T::Pages`] keys will exist.
2764
+ *
2765
+ * @param {[number, number]} arg
2766
+ * @param {Callback<Array<[AccountId32, bigint, Array<AccountId32>]> | undefined> =} callback
2767
+ **/
2768
+ pagedVoterSnapshot: GenericStorageQuery<
2769
+ Rv,
2770
+ (arg: [number, number]) => Array<[AccountId32, bigint, Array<AccountId32>]> | undefined,
2771
+ [number, number]
2772
+ >;
2773
+
2774
+ /**
2775
+ * Same as [`PagedVoterSnapshot`], but it will store the hash of the snapshot.
2776
+ *
2777
+ * The hash is generated using [`frame_system::Config::Hashing`].
2778
+ *
2779
+ * @param {[number, number]} arg
2780
+ * @param {Callback<H256 | undefined> =} callback
2781
+ **/
2782
+ pagedVoterSnapshotHash: GenericStorageQuery<Rv, (arg: [number, number]) => H256 | undefined, [number, number]>;
2783
+
2784
+ /**
2785
+ * Paginated target snapshot.
2786
+ *
2787
+ * For the time being, since we assume one pages of targets, at most ONE key will exist.
2788
+ *
2789
+ * @param {[number, number]} arg
2790
+ * @param {Callback<Array<AccountId32> | undefined> =} callback
2791
+ **/
2792
+ pagedTargetSnapshot: GenericStorageQuery<
2793
+ Rv,
2794
+ (arg: [number, number]) => Array<AccountId32> | undefined,
2795
+ [number, number]
2796
+ >;
2797
+
2798
+ /**
2799
+ * Same as [`PagedTargetSnapshot`], but it will store the hash of the snapshot.
2800
+ *
2801
+ * The hash is generated using [`frame_system::Config::Hashing`].
2802
+ *
2803
+ * @param {[number, number]} arg
2804
+ * @param {Callback<H256 | undefined> =} callback
2805
+ **/
2806
+ pagedTargetSnapshotHash: GenericStorageQuery<Rv, (arg: [number, number]) => H256 | undefined, [number, number]>;
2807
+
2808
+ /**
2809
+ * Generic pallet storage query
2810
+ **/
2811
+ [storage: string]: GenericStorageQuery<Rv>;
2812
+ };
2813
+ /**
2814
+ * Pallet `MultiBlockElectionVerifier`'s storage queries
2815
+ **/
2816
+ multiBlockElectionVerifier: {
2817
+ /**
2818
+ * The `X` variant of the current queued solution. Might be the valid one or not.
2819
+ *
2820
+ * The two variants of this storage item is to avoid the need of copying. Recall that once a
2821
+ * `VerifyingSolution` is being processed, it needs to write its partial supports *somewhere*.
2822
+ * Writing theses supports on top of a *good* queued supports is wrong, since we might bail.
2823
+ * Writing them to a bugger and copying at the ned is slightly better, but expensive. This flag
2824
+ * system is best of both worlds.
2825
+ *
2826
+ * @param {[number, number]} arg
2827
+ * @param {Callback<FrameElectionProviderSupportBoundedSupports | undefined> =} callback
2828
+ **/
2829
+ queuedSolutionX: GenericStorageQuery<
2830
+ Rv,
2831
+ (arg: [number, number]) => FrameElectionProviderSupportBoundedSupports | undefined,
2832
+ [number, number]
2833
+ >;
2834
+
2835
+ /**
2836
+ * The `Y` variant of the current queued solution. Might be the valid one or not.
2837
+ *
2838
+ * @param {[number, number]} arg
2839
+ * @param {Callback<FrameElectionProviderSupportBoundedSupports | undefined> =} callback
2840
+ **/
2841
+ queuedSolutionY: GenericStorageQuery<
2842
+ Rv,
2843
+ (arg: [number, number]) => FrameElectionProviderSupportBoundedSupports | undefined,
2844
+ [number, number]
2845
+ >;
2846
+
2847
+ /**
2848
+ * Pointer to the variant of [`QueuedSolutionX`] or [`QueuedSolutionY`] that is currently
2849
+ * valid.
2850
+ *
2851
+ * @param {number} arg
2852
+ * @param {Callback<PalletElectionProviderMultiBlockVerifierImplsValidSolution> =} callback
2853
+ **/
2854
+ queuedValidVariant: GenericStorageQuery<
2855
+ Rv,
2856
+ (arg: number) => PalletElectionProviderMultiBlockVerifierImplsValidSolution,
2857
+ number
2858
+ >;
2859
+
2860
+ /**
2861
+ * The `(amount, count)` of backings, divided per page.
2862
+ *
2863
+ * This is stored because in the last block of verification we need them to compute the score,
2864
+ * and check `MaxBackersPerWinnerFinal`.
2865
+ *
2866
+ * This can only ever live for the invalid variant of the solution. Once it is valid, we don't
2867
+ * need this information anymore; the score is already computed once in
2868
+ * [`QueuedSolutionScore`], and the backing counts are checked.
2869
+ *
2870
+ * @param {[number, number]} arg
2871
+ * @param {Callback<Array<[AccountId32, PalletElectionProviderMultiBlockVerifierImplsPartialBackings]> | undefined> =} callback
2872
+ **/
2873
+ queuedSolutionBackings: GenericStorageQuery<
2874
+ Rv,
2875
+ (
2876
+ arg: [number, number],
2877
+ ) => Array<[AccountId32, PalletElectionProviderMultiBlockVerifierImplsPartialBackings]> | undefined,
2878
+ [number, number]
2879
+ >;
2880
+
2881
+ /**
2882
+ * The score of the valid variant of [`QueuedSolution`].
2883
+ *
2884
+ * This only ever lives for the `valid` variant.
2885
+ *
2886
+ * @param {number} arg
2887
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
2888
+ **/
2889
+ queuedSolutionScore: GenericStorageQuery<Rv, (arg: number) => SpNposElectionsElectionScore | undefined, number>;
2890
+
2891
+ /**
2892
+ * The minimum score that each solution must attain in order to be considered feasible.
2893
+ *
2894
+ * @param {Callback<SpNposElectionsElectionScore | undefined> =} callback
2895
+ **/
2896
+ minimumScore: GenericStorageQuery<Rv, () => SpNposElectionsElectionScore | undefined>;
2897
+
2898
+ /**
2899
+ * Storage item for [`Status`].
2900
+ *
2901
+ * @param {Callback<PalletElectionProviderMultiBlockVerifierImplsStatus> =} callback
2902
+ **/
2903
+ statusStorage: GenericStorageQuery<Rv, () => PalletElectionProviderMultiBlockVerifierImplsStatus>;
2904
+
2905
+ /**
2906
+ * Generic pallet storage query
2907
+ **/
2908
+ [storage: string]: GenericStorageQuery<Rv>;
2909
+ };
2910
+ /**
2911
+ * Pallet `MultiBlockElectionSigned`'s storage queries
2912
+ **/
2913
+ multiBlockElectionSigned: {
2914
+ /**
2915
+ * Accounts whitelisted by governance to always submit their solutions.
2916
+ *
2917
+ * They are different in that:
2918
+ *
2919
+ * * They always pay a fixed deposit for submission, specified by
2920
+ * [`Config::InvulnerableDeposit`]. They pay no page deposit.
2921
+ * * If _ejected_ by better solution from [`SortedScores`], they will get their full deposit
2922
+ * back.
2923
+ * * They always get their tx-fee back even if they are _discarded_.
2924
+ *
2925
+ * @param {Callback<Array<AccountId32>> =} callback
2926
+ **/
2927
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
2928
+
2929
+ /**
2930
+ *
2931
+ * @param {number} arg
2932
+ * @param {Callback<Array<[AccountId32, SpNposElectionsElectionScore]>> =} callback
2933
+ **/
2934
+ sortedScores: GenericStorageQuery<Rv, (arg: number) => Array<[AccountId32, SpNposElectionsElectionScore]>, number>;
2935
+
2936
+ /**
2937
+ * Triple map from (round, account, page) to a solution page.
2938
+ *
2939
+ * @param {[number, AccountId32Like, number]} arg
2940
+ * @param {Callback<AssetHubPolkadotRuntimeStakingNposCompactSolution16 | undefined> =} callback
2941
+ **/
2942
+ submissionStorage: GenericStorageQuery<
2943
+ Rv,
2944
+ (arg: [number, AccountId32Like, number]) => AssetHubPolkadotRuntimeStakingNposCompactSolution16 | undefined,
2945
+ [number, AccountId32, number]
2946
+ >;
2947
+
2948
+ /**
2949
+ * Map from account to the metadata of their submission.
2950
+ *
2951
+ * invariant: for any Key1 of type `AccountId` in [`Submissions`], this storage map also has a
2952
+ * value.
2953
+ *
2954
+ * @param {[number, AccountId32Like]} arg
2955
+ * @param {Callback<PalletElectionProviderMultiBlockSignedSubmissionMetadata | undefined> =} callback
2956
+ **/
2957
+ submissionMetadataStorage: GenericStorageQuery<
2958
+ Rv,
2959
+ (arg: [number, AccountId32Like]) => PalletElectionProviderMultiBlockSignedSubmissionMetadata | undefined,
2960
+ [number, AccountId32]
2961
+ >;
2962
+
2963
+ /**
2964
+ * Generic pallet storage query
2965
+ **/
2966
+ [storage: string]: GenericStorageQuery<Rv>;
2967
+ };
2968
+ /**
2969
+ * Pallet `Staking`'s storage queries
2970
+ **/
2971
+ staking: {
2972
+ /**
2973
+ * The ideal number of active validators.
2974
+ *
2975
+ * @param {Callback<number> =} callback
2976
+ **/
2977
+ validatorCount: GenericStorageQuery<Rv, () => number>;
2978
+
2979
+ /**
2980
+ * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
2981
+ * easy to initialize and the performance hit is minimal (we expect no more than four
2982
+ * invulnerables) and restricted to testnets.
2983
+ *
2984
+ * @param {Callback<Array<AccountId32>> =} callback
2985
+ **/
2986
+ invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
2987
+
2988
+ /**
2989
+ * Map from all locked "stash" accounts to the controller account.
2990
+ *
2991
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
2992
+ *
2993
+ * @param {AccountId32Like} arg
2994
+ * @param {Callback<AccountId32 | undefined> =} callback
2995
+ **/
2996
+ bonded: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
2997
+
2998
+ /**
2999
+ * The minimum active bond to become and maintain the role of a nominator.
3000
+ *
3001
+ * @param {Callback<bigint> =} callback
3002
+ **/
3003
+ minNominatorBond: GenericStorageQuery<Rv, () => bigint>;
3004
+
3005
+ /**
3006
+ * The minimum active bond to become and maintain the role of a validator.
3007
+ *
3008
+ * @param {Callback<bigint> =} callback
3009
+ **/
3010
+ minValidatorBond: GenericStorageQuery<Rv, () => bigint>;
3011
+
3012
+ /**
3013
+ * The minimum active nominator stake of the last successful election.
3014
+ *
3015
+ * @param {Callback<bigint> =} callback
3016
+ **/
3017
+ minimumActiveStake: GenericStorageQuery<Rv, () => bigint>;
3018
+
3019
+ /**
3020
+ * The minimum amount of commission that validators can set.
3021
+ *
3022
+ * If set to `0`, no limit exists.
3023
+ *
3024
+ * @param {Callback<Perbill> =} callback
3025
+ **/
3026
+ minCommission: GenericStorageQuery<Rv, () => Perbill>;
3027
+
3028
+ /**
3029
+ * Map from all (unlocked) "controller" accounts to the info regarding the staking.
3030
+ *
3031
+ * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
3032
+ * by [`StakingLedger`] to ensure data and lock consistency.
3033
+ *
3034
+ * @param {AccountId32Like} arg
3035
+ * @param {Callback<PalletStakingAsyncLedgerStakingLedger | undefined> =} callback
3036
+ **/
3037
+ ledger: GenericStorageQuery<
3038
+ Rv,
3039
+ (arg: AccountId32Like) => PalletStakingAsyncLedgerStakingLedger | undefined,
3040
+ AccountId32
3041
+ >;
3042
+
3043
+ /**
3044
+ * Where the reward payment should be made. Keyed by stash.
3045
+ *
3046
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
3047
+ *
3048
+ * @param {AccountId32Like} arg
3049
+ * @param {Callback<PalletStakingAsyncRewardDestination | undefined> =} callback
3050
+ **/
3051
+ payee: GenericStorageQuery<
3052
+ Rv,
3053
+ (arg: AccountId32Like) => PalletStakingAsyncRewardDestination | undefined,
3054
+ AccountId32
3055
+ >;
3056
+
3057
+ /**
3058
+ * The map from (wannabe) validator stash key to the preferences of that validator.
3059
+ *
3060
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
3061
+ *
3062
+ * @param {AccountId32Like} arg
3063
+ * @param {Callback<PalletStakingAsyncValidatorPrefs> =} callback
3064
+ **/
3065
+ validators: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletStakingAsyncValidatorPrefs, AccountId32>;
3066
+
3067
+ /**
3068
+ * Counter for the related counted storage map
3069
+ *
3070
+ * @param {Callback<number> =} callback
3071
+ **/
3072
+ counterForValidators: GenericStorageQuery<Rv, () => number>;
3073
+
3074
+ /**
3075
+ * The maximum validator count before we stop allowing new validators to join.
3076
+ *
3077
+ * When this value is not set, no limits are enforced.
3078
+ *
3079
+ * @param {Callback<number | undefined> =} callback
3080
+ **/
3081
+ maxValidatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
3082
+
3083
+ /**
3084
+ * The map from nominator stash key to their nomination preferences, namely the validators that
3085
+ * they wish to support.
3086
+ *
3087
+ * Note that the keys of this storage map might become non-decodable in case the
3088
+ * account's [`NominationsQuota::MaxNominations`] configuration is decreased.
3089
+ * In this rare case, these nominators
3090
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
3091
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
3092
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
3093
+ * is within the bounds of the newly set `Config::MaxNominations`.
3094
+ *
3095
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
3096
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
3097
+ * number of keys that exist.
3098
+ *
3099
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
3100
+ * [`Call::chill_other`] dispatchable by anyone.
3101
+ *
3102
+ * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
3103
+ *
3104
+ * @param {AccountId32Like} arg
3105
+ * @param {Callback<PalletStakingAsyncNominations | undefined> =} callback
3106
+ **/
3107
+ nominators: GenericStorageQuery<
3108
+ Rv,
3109
+ (arg: AccountId32Like) => PalletStakingAsyncNominations | undefined,
3110
+ AccountId32
3111
+ >;
3112
+
3113
+ /**
3114
+ * Counter for the related counted storage map
3115
+ *
3116
+ * @param {Callback<number> =} callback
3117
+ **/
3118
+ counterForNominators: GenericStorageQuery<Rv, () => number>;
3119
+
3120
+ /**
3121
+ * Stakers whose funds are managed by other pallets.
3122
+ *
3123
+ * This pallet does not apply any locks on them, therefore they are only virtually bonded. They
3124
+ * are expected to be keyless accounts and hence should not be allowed to mutate their ledger
3125
+ * directly via this pallet. Instead, these accounts are managed by other pallets and accessed
3126
+ * via low level apis. We keep track of them to do minimal integrity checks.
3127
+ *
3128
+ * @param {AccountId32Like} arg
3129
+ * @param {Callback<[] | undefined> =} callback
3130
+ **/
3131
+ virtualStakers: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
3132
+
3133
+ /**
3134
+ * Counter for the related counted storage map
3135
+ *
3136
+ * @param {Callback<number> =} callback
3137
+ **/
3138
+ counterForVirtualStakers: GenericStorageQuery<Rv, () => number>;
3139
+
3140
+ /**
3141
+ * The maximum nominator count before we stop allowing new validators to join.
3142
+ *
3143
+ * When this value is not set, no limits are enforced.
3144
+ *
3145
+ * @param {Callback<number | undefined> =} callback
3146
+ **/
3147
+ maxNominatorsCount: GenericStorageQuery<Rv, () => number | undefined>;
3148
+
3149
+ /**
3150
+ * The current planned era index.
3151
+ *
3152
+ * This is the latest planned era, depending on how the Session pallet queues the validator
3153
+ * set, it might be active or not.
3154
+ *
3155
+ * @param {Callback<number | undefined> =} callback
3156
+ **/
3157
+ currentEra: GenericStorageQuery<Rv, () => number | undefined>;
3158
+
3159
+ /**
3160
+ * The active era information, it holds index and start.
3161
+ *
3162
+ * The active era is the era being currently rewarded. Validator set of this era must be
3163
+ * equal to what is RC's session pallet.
3164
+ *
3165
+ * @param {Callback<PalletStakingAsyncActiveEraInfo | undefined> =} callback
3166
+ **/
3167
+ activeEra: GenericStorageQuery<Rv, () => PalletStakingAsyncActiveEraInfo | undefined>;
3168
+
3169
+ /**
3170
+ * A mapping from still-bonded eras to the first session index of that era.
3171
+ *
3172
+ * Must contains information for eras for the range:
3173
+ * `[active_era - bounding_duration; active_era]`
3174
+ *
3175
+ * @param {Callback<Array<[number, number]>> =} callback
3176
+ **/
3177
+ bondedEras: GenericStorageQuery<Rv, () => Array<[number, number]>>;
3178
+
3179
+ /**
3180
+ * Summary of validator exposure at a given era.
3181
+ *
3182
+ * This contains the total stake in support of the validator and their own stake. In addition,
3183
+ * it can also be used to get the number of nominators backing this validator and the number of
3184
+ * exposure pages they are divided into. The page count is useful to determine the number of
3185
+ * pages of rewards that needs to be claimed.
3186
+ *
3187
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
3188
+ * Should only be accessed through `Eras`.
3189
+ *
3190
+ * Is it removed after [`Config::HistoryDepth`] eras.
3191
+ * If stakers hasn't been set or has been removed then empty overview is returned.
3192
+ *
3193
+ * @param {[number, AccountId32Like]} arg
3194
+ * @param {Callback<SpStakingPagedExposureMetadata | undefined> =} callback
3195
+ **/
3196
+ erasStakersOverview: GenericStorageQuery<
3197
+ Rv,
3198
+ (arg: [number, AccountId32Like]) => SpStakingPagedExposureMetadata | undefined,
3199
+ [number, AccountId32]
3200
+ >;
3201
+
3202
+ /**
3203
+ * Paginated exposure of a validator at given era.
3204
+ *
3205
+ * This is keyed first by the era index to allow bulk deletion, then stash account and finally
3206
+ * the page. Should only be accessed through `Eras`.
3207
+ *
3208
+ * This is cleared after [`Config::HistoryDepth`] eras.
3209
+ *
3210
+ * @param {[number, AccountId32Like, number]} arg
3211
+ * @param {Callback<PalletStakingAsyncPalletBoundedExposurePage | undefined> =} callback
3212
+ **/
3213
+ erasStakersPaged: GenericStorageQuery<
3214
+ Rv,
3215
+ (arg: [number, AccountId32Like, number]) => PalletStakingAsyncPalletBoundedExposurePage | undefined,
3216
+ [number, AccountId32, number]
3217
+ >;
3218
+
3219
+ /**
3220
+ * History of claimed paged rewards by era and validator.
3221
+ *
3222
+ * This is keyed by era and validator stash which maps to the set of page indexes which have
3223
+ * been claimed.
3224
+ *
3225
+ * It is removed after [`Config::HistoryDepth`] eras.
3226
+ *
3227
+ * @param {[number, AccountId32Like]} arg
3228
+ * @param {Callback<Array<number>> =} callback
3229
+ **/
3230
+ claimedRewards: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => Array<number>, [number, AccountId32]>;
3231
+
3232
+ /**
3233
+ * Exposure of validator at era with the preferences of validators.
3234
+ *
3235
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
3236
+ *
3237
+ * Is it removed after [`Config::HistoryDepth`] eras.
3238
+ *
3239
+ * @param {[number, AccountId32Like]} arg
3240
+ * @param {Callback<PalletStakingAsyncValidatorPrefs> =} callback
3241
+ **/
3242
+ erasValidatorPrefs: GenericStorageQuery<
3243
+ Rv,
3244
+ (arg: [number, AccountId32Like]) => PalletStakingAsyncValidatorPrefs,
3245
+ [number, AccountId32]
3246
+ >;
3247
+
3248
+ /**
3249
+ * The total validator era payout for the last [`Config::HistoryDepth`] eras.
3250
+ *
3251
+ * Eras that haven't finished yet or has been removed doesn't have reward.
3252
+ *
3253
+ * @param {number} arg
3254
+ * @param {Callback<bigint | undefined> =} callback
3255
+ **/
3256
+ erasValidatorReward: GenericStorageQuery<Rv, (arg: number) => bigint | undefined, number>;
3257
+
3258
+ /**
3259
+ * Rewards for the last [`Config::HistoryDepth`] eras.
3260
+ * If reward hasn't been set or has been removed then 0 reward is returned.
3261
+ *
3262
+ * @param {number} arg
3263
+ * @param {Callback<PalletStakingAsyncEraRewardPoints> =} callback
3264
+ **/
3265
+ erasRewardPoints: GenericStorageQuery<Rv, (arg: number) => PalletStakingAsyncEraRewardPoints, number>;
3266
+
3267
+ /**
3268
+ * The total amount staked for the last [`Config::HistoryDepth`] eras.
3269
+ * If total hasn't been set or has been removed then 0 stake is returned.
3270
+ *
3271
+ * @param {number} arg
3272
+ * @param {Callback<bigint> =} callback
3273
+ **/
3274
+ erasTotalStake: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
3275
+
3276
+ /**
3277
+ * Mode of era forcing.
3278
+ *
3279
+ * @param {Callback<PalletStakingAsyncForcing> =} callback
3280
+ **/
3281
+ forceEra: GenericStorageQuery<Rv, () => PalletStakingAsyncForcing>;
3282
+
3283
+ /**
3284
+ * Maximum staked rewards, i.e. the percentage of the era inflation that
3285
+ * is used for stake rewards.
3286
+ * See [Era payout](./index.html#era-payout).
3287
+ *
3288
+ * @param {Callback<Percent | undefined> =} callback
3289
+ **/
3290
+ maxStakedRewards: GenericStorageQuery<Rv, () => Percent | undefined>;
3291
+
3292
+ /**
3293
+ * The percentage of the slash that is distributed to reporters.
3294
+ *
3295
+ * The rest of the slashed value is handled by the `Slash`.
3296
+ *
3297
+ * @param {Callback<Perbill> =} callback
3298
+ **/
3299
+ slashRewardFraction: GenericStorageQuery<Rv, () => Perbill>;
3300
+
3301
+ /**
3302
+ * The amount of currency given to reporters of a slash event which was
3303
+ * canceled by extraordinary circumstances (e.g. governance).
3304
+ *
3305
+ * @param {Callback<bigint> =} callback
3306
+ **/
3307
+ canceledSlashPayout: GenericStorageQuery<Rv, () => bigint>;
3308
+
3309
+ /**
3310
+ * Stores reported offences in a queue until they are processed in subsequent blocks.
3311
+ *
3312
+ * Each offence is recorded under the corresponding era index and the offending validator's
3313
+ * account. If an offence spans multiple pages, only one page is processed at a time. Offences
3314
+ * are handled sequentially, with their associated slashes computed and stored in
3315
+ * `UnappliedSlashes`. These slashes are then applied in a future era as determined by
3316
+ * `SlashDeferDuration`.
3317
+ *
3318
+ * Any offences tied to an era older than `BondingDuration` are automatically dropped.
3319
+ * Processing always prioritizes the oldest era first.
3320
+ *
3321
+ * @param {[number, AccountId32Like]} arg
3322
+ * @param {Callback<PalletStakingAsyncSlashingOffenceRecord | undefined> =} callback
3323
+ **/
3324
+ offenceQueue: GenericStorageQuery<
3325
+ Rv,
3326
+ (arg: [number, AccountId32Like]) => PalletStakingAsyncSlashingOffenceRecord | undefined,
3327
+ [number, AccountId32]
3328
+ >;
3329
+
3330
+ /**
3331
+ * Tracks the eras that contain offences in `OffenceQueue`, sorted from **earliest to latest**.
3332
+ *
3333
+ * - This ensures efficient retrieval of the oldest offence without iterating through
3334
+ * `OffenceQueue`.
3335
+ * - When a new offence is added to `OffenceQueue`, its era is **inserted in sorted order**
3336
+ * if not already present.
3337
+ * - When all offences for an era are processed, it is **removed** from this list.
3338
+ * - The maximum length of this vector is bounded by `BondingDuration`.
3339
+ *
3340
+ * This eliminates the need for expensive iteration and sorting when fetching the next offence
3341
+ * to process.
3342
+ *
3343
+ * @param {Callback<Array<number> | undefined> =} callback
3344
+ **/
3345
+ offenceQueueEras: GenericStorageQuery<Rv, () => Array<number> | undefined>;
3346
+
3347
+ /**
3348
+ * Tracks the currently processed offence record from the `OffenceQueue`.
3349
+ *
3350
+ * - When processing offences, an offence record is **popped** from the oldest era in
3351
+ * `OffenceQueue` and stored here.
3352
+ * - The function `process_offence` reads from this storage, processing one page of exposure at
3353
+ * a time.
3354
+ * - After processing a page, the `exposure_page` count is **decremented** until it reaches
3355
+ * zero.
3356
+ * - Once fully processed, the offence record is removed from this storage.
3357
+ *
3358
+ * This ensures that offences are processed incrementally, preventing excessive computation
3359
+ * in a single block while maintaining correct slashing behavior.
3360
+ *
3361
+ * @param {Callback<[number, AccountId32, PalletStakingAsyncSlashingOffenceRecord] | undefined> =} callback
3362
+ **/
3363
+ processingOffence: GenericStorageQuery<
3364
+ Rv,
3365
+ () => [number, AccountId32, PalletStakingAsyncSlashingOffenceRecord] | undefined
3366
+ >;
3367
+
3368
+ /**
3369
+ * All unapplied slashes that are queued for later.
3370
+ *
3371
+ * @param {[number, [AccountId32Like, Perbill, number]]} arg
3372
+ * @param {Callback<PalletStakingAsyncUnappliedSlash | undefined> =} callback
3373
+ **/
3374
+ unappliedSlashes: GenericStorageQuery<
3375
+ Rv,
3376
+ (arg: [number, [AccountId32Like, Perbill, number]]) => PalletStakingAsyncUnappliedSlash | undefined,
3377
+ [number, [AccountId32, Perbill, number]]
3378
+ >;
3379
+
3380
+ /**
3381
+ * Cancelled slashes by era and validator with maximum slash fraction to be cancelled.
3382
+ *
3383
+ * When slashes are cancelled by governance, this stores the era and the validators
3384
+ * whose slashes should be cancelled, along with the maximum slash fraction that should
3385
+ * be cancelled for each validator.
3386
+ *
3387
+ * @param {number} arg
3388
+ * @param {Callback<Array<[AccountId32, Perbill]>> =} callback
3389
+ **/
3390
+ cancelledSlashes: GenericStorageQuery<Rv, (arg: number) => Array<[AccountId32, Perbill]>, number>;
3391
+
3392
+ /**
3393
+ * All slashing events on validators, mapped by era to the highest slash proportion
3394
+ * and slash value of the era.
3395
+ *
3396
+ * @param {[number, AccountId32Like]} arg
3397
+ * @param {Callback<[Perbill, bigint] | undefined> =} callback
3398
+ **/
3399
+ validatorSlashInEra: GenericStorageQuery<
3400
+ Rv,
3401
+ (arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined,
3402
+ [number, AccountId32]
3403
+ >;
3404
+
3405
+ /**
3406
+ * The threshold for when users can start calling `chill_other` for other validators /
3407
+ * nominators. The threshold is compared to the actual number of validators / nominators
3408
+ * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
3409
+ *
3410
+ * @param {Callback<Percent | undefined> =} callback
3411
+ **/
3412
+ chillThreshold: GenericStorageQuery<Rv, () => Percent | undefined>;
3413
+
3414
+ /**
3415
+ * Voter snapshot progress status.
3416
+ *
3417
+ * If the status is `Ongoing`, it keeps a cursor of the last voter retrieved to proceed when
3418
+ * creating the next snapshot page.
3419
+ *
3420
+ * @param {Callback<PalletStakingAsyncSnapshotStatus> =} callback
3421
+ **/
3422
+ voterSnapshotStatus: GenericStorageQuery<Rv, () => PalletStakingAsyncSnapshotStatus>;
3423
+
3424
+ /**
3425
+ * Keeps track of an ongoing multi-page election solution request.
3426
+ *
3427
+ * If `Some(_)``, it is the next page that we intend to elect. If `None`, we are not in the
3428
+ * election process.
3429
+ *
3430
+ * This is only set in multi-block elections. Should always be `None` otherwise.
3431
+ *
3432
+ * @param {Callback<number | undefined> =} callback
3433
+ **/
3434
+ nextElectionPage: GenericStorageQuery<Rv, () => number | undefined>;
3435
+
3436
+ /**
3437
+ * A bounded list of the "electable" stashes that resulted from a successful election.
3438
+ *
3439
+ * @param {Callback<Array<AccountId32>> =} callback
3440
+ **/
3441
+ electableStashes: GenericStorageQuery<Rv, () => Array<AccountId32>>;
3442
+
3443
+ /**
3444
+ * Tracks the current step of era pruning process for each era being lazily pruned.
3445
+ *
3446
+ * @param {number} arg
3447
+ * @param {Callback<PalletStakingAsyncPalletPruningStep | undefined> =} callback
3448
+ **/
3449
+ eraPruningState: GenericStorageQuery<Rv, (arg: number) => PalletStakingAsyncPalletPruningStep | undefined, number>;
3450
+
3451
+ /**
3452
+ * Generic pallet storage query
3453
+ **/
3454
+ [storage: string]: GenericStorageQuery<Rv>;
3455
+ };
3456
+ /**
3457
+ * Pallet `AhOps`'s storage queries
3458
+ **/
3459
+ ahOps: {
3460
+ /**
3461
+ * Amount of balance that was reserved for winning a lease auction.
3462
+ *
3463
+ * `unreserve_lease_deposit` can be permissionlessly called once the block number passed to
3464
+ * unreserve the deposit. It is implicitly called by `withdraw_crowdloan_contribution`.
3465
+ *
3466
+ * The account here can either be a crowdloan account or a solo bidder. If it is a crowdloan
3467
+ * account, then the summed up contributions for it in the contributions map will equate the
3468
+ * reserved balance here.
3469
+ *
3470
+ * The keys are as follows:
3471
+ * - Block number after which the deposit can be unreserved.
3472
+ * - The para_id of the lease slot.
3473
+ * - The account that will have the balance unreserved.
3474
+ * - The balance to be unreserved.
3475
+ *
3476
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3477
+ * @param {Callback<bigint | undefined> =} callback
3478
+ **/
3479
+ rcLeaseReserve: GenericStorageQuery<
3480
+ Rv,
3481
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => bigint | undefined,
3482
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3483
+ >;
3484
+
3485
+ /**
3486
+ * Amount of balance that a contributor made towards a crowdloan.
3487
+ *
3488
+ * `withdraw_crowdloan_contribution` can be permissionlessly called once the block number
3489
+ * passed to unlock the balance for a specific account.
3490
+ *
3491
+ * The keys are as follows:
3492
+ * - Block number after which the balance can be unlocked.
3493
+ * - The para_id of the crowdloan.
3494
+ * - The account that made the contribution.
3495
+ *
3496
+ * The value is (fund_pot, balance). The contribution pot is the second key in the
3497
+ * `RcCrowdloanContribution` storage.
3498
+ *
3499
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3500
+ * @param {Callback<[AccountId32, bigint] | undefined> =} callback
3501
+ **/
3502
+ rcCrowdloanContribution: GenericStorageQuery<
3503
+ Rv,
3504
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => [AccountId32, bigint] | undefined,
3505
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3506
+ >;
3507
+
3508
+ /**
3509
+ * The reserve that was taken to create a crowdloan.
3510
+ *
3511
+ * This is normally 500 DOT and can be refunded as last step after all
3512
+ * `RcCrowdloanContribution`s of this loan have been withdrawn.
3513
+ *
3514
+ * Keys:
3515
+ * - Block number after which this can be unreserved
3516
+ * - The para_id of the crowdloan
3517
+ * - The account that will have the balance unreserved
3518
+ *
3519
+ * @param {[number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]} arg
3520
+ * @param {Callback<bigint | undefined> =} callback
3521
+ **/
3522
+ rcCrowdloanReserve: GenericStorageQuery<
3523
+ Rv,
3524
+ (arg: [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32Like]) => bigint | undefined,
3525
+ [number, PolkadotParachainPrimitivesPrimitivesId, AccountId32]
3526
+ >;
3527
+
3528
+ /**
3529
+ * Generic pallet storage query
3530
+ **/
3531
+ [storage: string]: GenericStorageQuery<Rv>;
3532
+ };
3533
+ /**
3534
+ * Pallet `AhMigrator`'s storage queries
3535
+ **/
3536
+ ahMigrator: {
3537
+ /**
3538
+ * RC accounts that failed to migrate when were received on the Asset Hub.
3539
+ *
3540
+ * This is unlikely to happen, since we dry run the migration, but we keep it for completeness.
3541
+ *
3542
+ * @param {AccountId32Like} arg
3543
+ * @param {Callback<PalletRcMigratorAccountsAccount | undefined> =} callback
3544
+ **/
3545
+ rcAccounts: GenericStorageQuery<
3546
+ Rv,
3547
+ (arg: AccountId32Like) => PalletRcMigratorAccountsAccount | undefined,
3548
+ AccountId32
3549
+ >;
3550
+
3551
+ /**
3552
+ * The Asset Hub migration state.
3553
+ *
3554
+ * @param {Callback<PalletAhMigratorMigrationStage> =} callback
3555
+ **/
3556
+ ahMigrationStage: GenericStorageQuery<Rv, () => PalletAhMigratorMigrationStage>;
3557
+
3558
+ /**
3559
+ * Helper storage item to store the total balance / total issuance of native token at the start
3560
+ * of the migration. Since teleports are disabled during migration, the total issuance will not
3561
+ * change for other reason than the migration itself.
3562
+ *
3563
+ * @param {Callback<PalletAhMigratorBalancesBefore> =} callback
3564
+ **/
3565
+ ahBalancesBefore: GenericStorageQuery<Rv, () => PalletAhMigratorBalancesBefore>;
3566
+
3567
+ /**
3568
+ * The priority of the DMP queue during migration.
3569
+ *
3570
+ * Controls how the DMP (Downward Message Passing) queue is processed relative to other queues
3571
+ * during the migration process. This helps ensure timely processing of migration messages.
3572
+ * The default priority pattern is defined in the pallet configuration, but can be overridden
3573
+ * by a storage value of this type.
3574
+ *
3575
+ * @param {Callback<PalletRcMigratorQueuePriority> =} callback
3576
+ **/
3577
+ dmpQueuePriorityConfig: GenericStorageQuery<Rv, () => PalletRcMigratorQueuePriority>;
3578
+
3579
+ /**
3580
+ * An optional account id of a manager.
3581
+ *
3582
+ * This account id has similar privileges to [`Config::AdminOrigin`] except that it
3583
+ * can not set the manager account id via `set_manager` call.
3584
+ *
3585
+ * @param {Callback<AccountId32 | undefined> =} callback
3586
+ **/
3587
+ manager: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
3588
+
3589
+ /**
3590
+ * The block number at which the migration began and the pallet's extrinsics were locked.
3591
+ *
3592
+ * This value is set when entering the `WaitingForAh` stage, i.e., when
3593
+ * `RcMigrationStage::is_ongoing()` becomes `true`.
3594
+ *
3595
+ * @param {Callback<number | undefined> =} callback
3596
+ **/
3597
+ migrationStartBlock: GenericStorageQuery<Rv, () => number | undefined>;
3598
+
3599
+ /**
3600
+ * Block number when migration finished and extrinsics were unlocked.
3601
+ *
3602
+ * This is set when entering the `MigrationDone` stage hence when
3603
+ * `RcMigrationStage::is_finished()` becomes `true`.
3604
+ *
3605
+ * @param {Callback<number | undefined> =} callback
3606
+ **/
3607
+ migrationEndBlock: GenericStorageQuery<Rv, () => number | undefined>;
1832
3608
 
1833
3609
  /**
1834
3610
  * Generic pallet storage query