@polkadot/api-augment 16.5.4 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/assetHubKusama/consts.d.ts +140 -53
  2. package/assetHubKusama/errors.d.ts +310 -111
  3. package/assetHubKusama/events.d.ts +420 -149
  4. package/assetHubKusama/query.d.ts +370 -92
  5. package/assetHubKusama/runtime.d.ts +157 -8
  6. package/assetHubKusama/tx.d.ts +690 -600
  7. package/cjs/assetHubKusama/consts.d.ts +140 -53
  8. package/cjs/assetHubKusama/errors.d.ts +310 -111
  9. package/cjs/assetHubKusama/events.d.ts +420 -149
  10. package/cjs/assetHubKusama/query.d.ts +370 -92
  11. package/cjs/assetHubKusama/runtime.d.ts +157 -8
  12. package/cjs/assetHubKusama/tx.d.ts +690 -600
  13. package/cjs/kusama/consts.d.ts +0 -40
  14. package/cjs/kusama/errors.d.ts +25 -151
  15. package/cjs/kusama/events.d.ts +93 -208
  16. package/cjs/kusama/query.d.ts +98 -177
  17. package/cjs/kusama/runtime.d.ts +86 -46
  18. package/cjs/kusama/tx.d.ts +108 -608
  19. package/cjs/packageInfo.js +1 -1
  20. package/cjs/polkadot/consts.d.ts +1 -1
  21. package/cjs/polkadot/errors.d.ts +25 -85
  22. package/cjs/polkadot/events.d.ts +103 -159
  23. package/cjs/polkadot/query.d.ts +108 -172
  24. package/cjs/polkadot/runtime.d.ts +72 -46
  25. package/cjs/polkadot/tx.d.ts +101 -351
  26. package/cjs/substrate/consts.d.ts +12 -3
  27. package/cjs/substrate/errors.d.ts +28 -14
  28. package/cjs/substrate/events.d.ts +66 -1
  29. package/cjs/substrate/query.d.ts +9 -0
  30. package/cjs/substrate/runtime.d.ts +5 -1
  31. package/cjs/substrate/tx.d.ts +81 -2
  32. package/kusama/consts.d.ts +0 -40
  33. package/kusama/errors.d.ts +25 -151
  34. package/kusama/events.d.ts +93 -208
  35. package/kusama/query.d.ts +98 -177
  36. package/kusama/runtime.d.ts +86 -46
  37. package/kusama/tx.d.ts +108 -608
  38. package/package.json +7 -7
  39. package/packageInfo.js +1 -1
  40. package/polkadot/consts.d.ts +1 -1
  41. package/polkadot/errors.d.ts +25 -85
  42. package/polkadot/events.d.ts +103 -159
  43. package/polkadot/query.d.ts +108 -172
  44. package/polkadot/runtime.d.ts +72 -46
  45. package/polkadot/tx.d.ts +101 -351
  46. package/substrate/consts.d.ts +12 -3
  47. package/substrate/errors.d.ts +28 -14
  48. package/substrate/events.d.ts +66 -1
  49. package/substrate/query.d.ts +9 -0
  50. package/substrate/runtime.d.ts +5 -1
  51. package/substrate/tx.d.ts +81 -2
@@ -1,67 +1,15 @@
1
1
  import '@polkadot/api-base/types/storage';
2
2
  import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
3
- import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
3
+ import type { BTreeMap, BTreeSet, Bytes, Compact, Null, Option, Struct, U256, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, H160, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { AssetHubKusamaRuntimeRuntimeParametersKey, AssetHubKusamaRuntimeRuntimeParametersValue, AssetHubKusamaRuntimeSessionKeys, AssetHubKusamaRuntimeStakingNposCompactSolution24, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemParachainInherentInboundMessageId, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameElectionProviderSupportBoundedSupports, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAhMigratorBalancesBefore, PalletAhMigratorMigrationStage, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollatorSelectionCandidateInfo, PalletConvictionVotingVoteVoting, PalletDelegatedStakingAgentLedger, PalletDelegatedStakingDelegation, PalletElectionProviderMultiBlockPhase, PalletElectionProviderMultiBlockSignedSubmissionMetadata, PalletElectionProviderMultiBlockVerifierImplsPartialBackings, PalletElectionProviderMultiBlockVerifierImplsStatus, PalletElectionProviderMultiBlockVerifierImplsValidSolution, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinitionAssetHubKusamaRuntimeProxyType, PalletRcMigratorAccountsAccount, PalletRcMigratorQueuePriority, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoOriginCaller, PalletReviveStorageAccountInfo, PalletReviveStorageDeletionQueueManager, PalletReviveVmCodeInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingAsyncActiveEraInfo, PalletStakingAsyncEraRewardPoints, PalletStakingAsyncForcing, PalletStakingAsyncLedgerStakingLedger, PalletStakingAsyncNominations, PalletStakingAsyncPalletBoundedExposurePage, PalletStakingAsyncPalletPruningStep, PalletStakingAsyncRcClientSessionReport, PalletStakingAsyncRcClientValidatorSetReport, PalletStakingAsyncRewardDestination, PalletStakingAsyncSlashingOffenceRecord, PalletStakingAsyncSnapshotStatus, PalletStakingAsyncUnappliedSlash, PalletStakingAsyncValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmAuthorizedAliasesEntry, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV8AbridgedHostConfiguration, PolkadotPrimitivesV8PersistedValidationData, PolkadotPrimitivesV8UpgradeGoAhead, PolkadotPrimitivesV8UpgradeRestriction, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingPagedExposureMetadata, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV5Instruction, StagingXcmV5Location, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
7
+ import type { AssetHubKusamaRuntimeRuntimeParametersKey, AssetHubKusamaRuntimeRuntimeParametersValue, AssetHubKusamaRuntimeSessionKeys, AssetHubKusamaRuntimeStakingNposCompactSolution24, AssetsCommonLocalAndForeignAssetsForeignAssetReserveData, BpXcmBridgeHubRouterBridgeState, CumulusPalletParachainSystemBlockWeightBlockWeightMode, CumulusPalletParachainSystemParachainInherentInboundMessageId, CumulusPalletParachainSystemPoVMessages, CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameElectionProviderSupportBoundedSupports, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensFungibleImbalance, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollatorSelectionCandidateInfo, PalletConvictionVotingVoteVoting, PalletDelegatedStakingAgentLedger, PalletDelegatedStakingDelegation, PalletElectionProviderMultiBlockPhase, PalletElectionProviderMultiBlockSignedSubmissionMetadata, PalletElectionProviderMultiBlockVerifierImplsPartialBackings, PalletElectionProviderMultiBlockVerifierImplsStatus, PalletElectionProviderMultiBlockVerifierImplsValidSolution, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMigrationsMigrationCursor, PalletMultiAssetBountiesBounty, PalletMultiAssetBountiesChildBounty, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryAttempt, PalletRecoveryFriendGroup, PalletRecoveryIdentifiedConsideration, PalletReferendaReferendumInfo, PalletReviveDebugDebugSettings, PalletReviveEvmApiRpcTypesGenBlock, PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR, PalletReviveEvmBlockHashReceiptGasInfo, PalletReviveStorageAccountInfo, PalletReviveStorageDeletionQueueItem, PalletReviveStorageDeletionQueueManager, PalletReviveVmCodeInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingAsyncActiveEraInfo, PalletStakingAsyncEraRewardPoints, PalletStakingAsyncForcing, PalletStakingAsyncLedgerStakingLedger, PalletStakingAsyncNominations, PalletStakingAsyncPalletBoundedExposurePage, PalletStakingAsyncPalletPruningStep, PalletStakingAsyncRcClientSessionReport, PalletStakingAsyncRcClientValidatorSetReport, PalletStakingAsyncRewardDestination, PalletStakingAsyncSlashingOffenceRecord, PalletStakingAsyncSnapshotStatus, PalletStakingAsyncUnappliedSlash, PalletStakingAsyncValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmAuthorizedAliasesEntry, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV9AbridgedHostConfiguration, PolkadotPrimitivesV9PersistedValidationData, PolkadotPrimitivesV9UpgradeGoAhead, PolkadotPrimitivesV9UpgradeRestriction, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonImplsVersionedLocatableAsset, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingPagedExposureMetadata, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV5Instruction, StagingXcmV5Location, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
9
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
10
10
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
11
11
  declare module '@polkadot/api-base/types/storage' {
12
12
  interface AugmentedQueries<ApiType extends ApiTypes> {
13
- ahMigrator: {
14
- /**
15
- * Helper storage item to store the total balance / total issuance of native token at the start
16
- * of the migration. Since teleports are disabled during migration, the total issuance will not
17
- * change for other reason than the migration itself.
18
- **/
19
- ahBalancesBefore: AugmentedQuery<ApiType, () => Observable<PalletAhMigratorBalancesBefore>, []> & QueryableStorageEntry<ApiType, []>;
20
- /**
21
- * The Asset Hub migration state.
22
- **/
23
- ahMigrationStage: AugmentedQuery<ApiType, () => Observable<PalletAhMigratorMigrationStage>, []> & QueryableStorageEntry<ApiType, []>;
24
- /**
25
- * The priority of the DMP queue during migration.
26
- *
27
- * Controls how the DMP (Downward Message Passing) queue is processed relative to other queues
28
- * during the migration process. This helps ensure timely processing of migration messages.
29
- * The default priority pattern is defined in the pallet configuration, but can be overridden
30
- * by a storage value of this type.
31
- **/
32
- dmpQueuePriorityConfig: AugmentedQuery<ApiType, () => Observable<PalletRcMigratorQueuePriority>, []> & QueryableStorageEntry<ApiType, []>;
33
- /**
34
- * An optional account id of a manager.
35
- *
36
- * This account id has similar privileges to [`Config::AdminOrigin`] except that it
37
- * can not set the manager account id via `set_manager` call.
38
- **/
39
- manager: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
40
- /**
41
- * Block number when migration finished and extrinsics were unlocked.
42
- *
43
- * This is set when entering the `MigrationDone` stage hence when
44
- * `RcMigrationStage::is_finished()` becomes `true`.
45
- **/
46
- migrationEndBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
47
- /**
48
- * The block number at which the migration began and the pallet's extrinsics were locked.
49
- *
50
- * This value is set when entering the `WaitingForAh` stage, i.e., when
51
- * `RcMigrationStage::is_ongoing()` becomes `true`.
52
- **/
53
- migrationStartBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
54
- /**
55
- * RC accounts that failed to migrate when were received on the Asset Hub.
56
- *
57
- * This is unlikely to happen, since we dry run the migration, but we keep it for completeness.
58
- **/
59
- rcAccounts: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRcMigratorAccountsAccount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
60
- /**
61
- * Generic query
62
- **/
63
- [key: string]: QueryableStorageEntry<ApiType>;
64
- };
65
13
  ahOps: {
66
14
  /**
67
15
  * Amount of balance that a contributor made towards a crowdloan.
@@ -189,6 +137,48 @@ declare module '@polkadot/api-base/types/storage' {
189
137
  * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
190
138
  **/
191
139
  nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
140
+ /**
141
+ * Maps an asset to a list of its configured reserve information.
142
+ **/
143
+ reserves: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Null>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
144
+ /**
145
+ * Generic query
146
+ **/
147
+ [key: string]: QueryableStorageEntry<ApiType>;
148
+ };
149
+ assetsPrecompiles: {
150
+ /**
151
+ * Mapping an asset index (derived from the precompile address) to a `ForeignAssetId`.
152
+ **/
153
+ assetIndexToForeignAssetId: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<StagingXcmV5Location>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
154
+ /**
155
+ * Mapping a `ForeignAssetId` to an asset index (used for deriving precompile addresses).
156
+ **/
157
+ foreignAssetIdToAssetIndex: AugmentedQuery<ApiType, (arg: StagingXcmV5Location | {
158
+ parents?: any;
159
+ interior?: any;
160
+ } | string | Uint8Array) => Observable<Option<u32>>, [StagingXcmV5Location]> & QueryableStorageEntry<ApiType, [StagingXcmV5Location]>;
161
+ /**
162
+ * The next available asset index for foreign assets.
163
+ * This is incremented each time a new foreign asset mapping is created.
164
+ **/
165
+ nextAssetIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
166
+ /**
167
+ * Generic query
168
+ **/
169
+ [key: string]: QueryableStorageEntry<ApiType>;
170
+ };
171
+ assetsPrecompilesPermit: {
172
+ /**
173
+ * Nonces for permit signatures.
174
+ * Mapping: (verifying_contract, owner_address) => nonce
175
+ *
176
+ * Uses Blake2_128Concat for the first key to prevent storage collision attacks
177
+ * when the verifying_contract address could be influenced by an attacker.
178
+ *
179
+ * Note: EIP-2612 specifies uint256 nonce. We store as U256 for compatibility.
180
+ **/
181
+ nonces: AugmentedQuery<ApiType, (arg1: H160 | string | Uint8Array, arg2: H160 | string | Uint8Array) => Observable<U256>, [H160, H160]> & QueryableStorageEntry<ApiType, [H160, H160]>;
192
182
  /**
193
183
  * Generic query
194
184
  **/
@@ -515,6 +505,13 @@ declare module '@polkadot/api-base/types/storage' {
515
505
  * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
516
506
  **/
517
507
  nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<StagingXcmV5Location>>, []> & QueryableStorageEntry<ApiType, []>;
508
+ /**
509
+ * Maps an asset to a list of its configured reserve information.
510
+ **/
511
+ reserves: AugmentedQuery<ApiType, (arg: StagingXcmV5Location | {
512
+ parents?: any;
513
+ interior?: any;
514
+ } | string | Uint8Array) => Observable<Vec<AssetsCommonLocalAndForeignAssetsForeignAssetReserveData>>, [StagingXcmV5Location]> & QueryableStorageEntry<ApiType, [StagingXcmV5Location]>;
518
515
  /**
519
516
  * Generic query
520
517
  **/
@@ -560,6 +557,59 @@ declare module '@polkadot/api-base/types/storage' {
560
557
  **/
561
558
  [key: string]: QueryableStorageEntry<ApiType>;
562
559
  };
560
+ multiAssetBounties: {
561
+ /**
562
+ * Bounties that have been made.
563
+ **/
564
+ bounties: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMultiAssetBountiesBounty>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
565
+ /**
566
+ * Number of bounty proposals that have been made.
567
+ **/
568
+ bountyCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
569
+ /**
570
+ * Child bounties that have been added.
571
+ *
572
+ * Indexed by `(parent_bounty_id, child_bounty_id)`.
573
+ **/
574
+ childBounties: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMultiAssetBountiesChildBounty>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
575
+ /**
576
+ * Number of active child bounties per parent bounty.
577
+ *
578
+ * Indexed by `parent_bounty_id`.
579
+ **/
580
+ childBountiesPerParent: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
581
+ /**
582
+ * The cumulative child-bounty value for each parent bounty. To be subtracted from the parent
583
+ * bounty payout when awarding bounty.
584
+ *
585
+ * Indexed by `parent_bounty_id`.
586
+ **/
587
+ childBountiesValuePerParent: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
588
+ /**
589
+ * The consideration cost incurred by the child-/bounty curator for committing to the role.
590
+ *
591
+ * Determined by [`pallet::Config::Consideration`]. It is created when the curator accepts the
592
+ * role, and is either burned if the curator misbehaves or consumed upon successful
593
+ * completion of the child-/bounty.
594
+ *
595
+ * Note: If the parent curator is also assigned to the child-bounty,
596
+ * the consideration cost is charged only once — when the curator
597
+ * accepts the role for the parent bounty.
598
+ *
599
+ * Indexed by `(parent_bounty_id, child_bounty_id)`.
600
+ **/
601
+ curatorDeposit: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber) => Observable<Option<u128>>, [u32, Option<u32>]> & QueryableStorageEntry<ApiType, [u32, Option<u32>]>;
602
+ /**
603
+ * Number of total child bounties per parent bounty, including completed bounties.
604
+ *
605
+ * Indexed by `parent_bounty_id`.
606
+ **/
607
+ totalChildBountiesPerParent: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u32>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
608
+ /**
609
+ * Generic query
610
+ **/
611
+ [key: string]: QueryableStorageEntry<ApiType>;
612
+ };
563
613
  multiBlockElection: {
564
614
  /**
565
615
  * Current phase.
@@ -933,6 +983,15 @@ declare module '@polkadot/api-base/types/storage' {
933
983
  * announcing the weight of `on_initialize` and `on_finalize`.
934
984
  **/
935
985
  announcedHrmpMessagesPerCandidate: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
986
+ /**
987
+ * The current block weight mode.
988
+ *
989
+ * This is used to determine what is the maximum allowed block weight, for more information see
990
+ * [`block_weight`].
991
+ *
992
+ * Killed in [`Self::on_initialize`] and set by the [`block_weight`] logic.
993
+ **/
994
+ blockWeightMode: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemBlockWeightBlockWeightMode>>, []> & QueryableStorageEntry<ApiType, []>;
936
995
  /**
937
996
  * A custom head data that should be returned as result of `validate_block`.
938
997
  *
@@ -951,7 +1010,7 @@ declare module '@polkadot/api-base/types/storage' {
951
1010
  *
952
1011
  * This data is also absent from the genesis.
953
1012
  **/
954
- hostConfiguration: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8AbridgedHostConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
1013
+ hostConfiguration: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV9AbridgedHostConfiguration>>, []> & QueryableStorageEntry<ApiType, []>;
955
1014
  /**
956
1015
  * HRMP messages that were sent in a block.
957
1016
  *
@@ -1003,18 +1062,40 @@ declare module '@polkadot/api-base/types/storage' {
1003
1062
  **/
1004
1063
  newValidationCode: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
1005
1064
  /**
1006
- * Upward messages that are still pending and not yet send to the relay chain.
1065
+ * The approved peer id to be sent as a UMP signal on the last block of the PoV.
1066
+ **/
1067
+ pendingApprovedPeer: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
1068
+ /**
1069
+ * Upward messages that are still pending and not yet sent to the relay chain.
1007
1070
  **/
1008
1071
  pendingUpwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
1072
+ /**
1073
+ * Upward signals that are still pending and not yet sent to the relay chain.
1074
+ *
1075
+ * This will be cleared in `on_finalize` for each block.
1076
+ **/
1077
+ pendingUpwardSignals: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
1009
1078
  /**
1010
1079
  * In case of a scheduled upgrade, this storage field contains the validation code to be
1011
1080
  * applied.
1012
1081
  *
1013
1082
  * As soon as the relay chain gives us the go-ahead signal, we will overwrite the
1014
- * [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
1015
- * with the new validation code. This concludes the upgrade process.
1083
+ * [`:pending_code`][sp_core::storage::well_known_keys::PENDING_CODE] which will result the
1084
+ * next block to be processed with the new validation code. This concludes the upgrade process.
1016
1085
  **/
1017
1086
  pendingValidationCode: AugmentedQuery<ApiType, () => Observable<Bytes>, []> & QueryableStorageEntry<ApiType, []>;
1087
+ /**
1088
+ * Tracks cumulative `UMP` and `HRMP` messages sent across blocks in the current `PoV`.
1089
+ *
1090
+ * Across different candidates/PoVs the budgets are tracked by [`AggregatedUnincludedSegment`].
1091
+ **/
1092
+ poVMessagesTracker: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemPoVMessages>>, []> & QueryableStorageEntry<ApiType, []>;
1093
+ /**
1094
+ * The core count available to the parachain in the previous block.
1095
+ *
1096
+ * This is mainly used for offchain functionality to calculate the correct target block weight.
1097
+ **/
1098
+ previousCoreCount: AugmentedQuery<ApiType, () => Observable<Option<Compact<u16>>>, []> & QueryableStorageEntry<ApiType, []>;
1018
1099
  /**
1019
1100
  * Number of downward messages processed in a block.
1020
1101
  *
@@ -1066,7 +1147,7 @@ declare module '@polkadot/api-base/types/storage' {
1066
1147
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
1067
1148
  * set after the inherent.
1068
1149
  **/
1069
- upgradeGoAhead: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8UpgradeGoAhead>>, []> & QueryableStorageEntry<ApiType, []>;
1150
+ upgradeGoAhead: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV9UpgradeGoAhead>>, []> & QueryableStorageEntry<ApiType, []>;
1070
1151
  /**
1071
1152
  * An option which indicates if the relay-chain restricts signalling a validation code upgrade.
1072
1153
  * In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
@@ -1076,7 +1157,7 @@ declare module '@polkadot/api-base/types/storage' {
1076
1157
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
1077
1158
  * set after the inherent.
1078
1159
  **/
1079
- upgradeRestrictionSignal: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8UpgradeRestriction>>, []> & QueryableStorageEntry<ApiType, []>;
1160
+ upgradeRestrictionSignal: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV9UpgradeRestriction>>, []> & QueryableStorageEntry<ApiType, []>;
1080
1161
  /**
1081
1162
  * The factor to multiply the base delivery fee by for UMP.
1082
1163
  **/
@@ -1084,15 +1165,15 @@ declare module '@polkadot/api-base/types/storage' {
1084
1165
  /**
1085
1166
  * Upward messages that were sent in a block.
1086
1167
  *
1087
- * This will be cleared in `on_initialize` of each new block.
1168
+ * This will be cleared in `on_initialize` for each new block.
1088
1169
  **/
1089
1170
  upwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
1090
1171
  /**
1091
1172
  * The [`PersistedValidationData`] set for this block.
1092
- * This value is expected to be set only once per block and it's never stored
1093
- * in the trie.
1173
+ *
1174
+ * This value is expected to be set only once by the [`Pallet::set_validation_data`] inherent.
1094
1175
  **/
1095
- validationData: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV8PersistedValidationData>>, []> & QueryableStorageEntry<ApiType, []>;
1176
+ validationData: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV9PersistedValidationData>>, []> & QueryableStorageEntry<ApiType, []>;
1096
1177
  /**
1097
1178
  * Generic query
1098
1179
  **/
@@ -1265,6 +1346,10 @@ declare module '@polkadot/api-base/types/storage' {
1265
1346
  * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1266
1347
  **/
1267
1348
  nextAssetId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1349
+ /**
1350
+ * Maps an asset to a list of its configured reserve information.
1351
+ **/
1352
+ reserves: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<Null>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1268
1353
  /**
1269
1354
  * Generic query
1270
1355
  **/
@@ -1278,6 +1363,8 @@ declare module '@polkadot/api-base/types/storage' {
1278
1363
  requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1279
1364
  /**
1280
1365
  * The request status of a given hash.
1366
+ *
1367
+ * @deprecated RequestStatusFor
1281
1368
  **/
1282
1369
  statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1283
1370
  /**
@@ -1294,7 +1381,7 @@ declare module '@polkadot/api-base/types/storage' {
1294
1381
  * The set of account proxies. Maps the account which has delegated to the accounts
1295
1382
  * which are being delegated to, together with the amount held on deposit.
1296
1383
  **/
1297
- proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinitionAssetHubKusamaRuntimeProxyType>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1384
+ proxies: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[Vec<PalletProxyProxyDefinition>, u128]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1298
1385
  /**
1299
1386
  * Generic query
1300
1387
  **/
@@ -1302,22 +1389,30 @@ declare module '@polkadot/api-base/types/storage' {
1302
1389
  };
1303
1390
  recovery: {
1304
1391
  /**
1305
- * Active recovery attempts.
1306
- *
1307
- * First account is the account to be recovered, and the second account
1308
- * is the user trying to recover the account.
1392
+ * Ongoing recovery attempts of a lost account indexed by `(lost, friend_group)`.
1309
1393
  **/
1310
- activeRecoveries: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletRecoveryActiveRecovery>>, [AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32, AccountId32]>;
1394
+ attempt: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[
1395
+ PalletRecoveryAttempt,
1396
+ {
1397
+ readonly depositor: AccountId32;
1398
+ readonly ticket: Option<u128>;
1399
+ } & Struct,
1400
+ u128
1401
+ ]>>>, [AccountId32, u32]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
1311
1402
  /**
1312
- * The list of allowed proxy accounts.
1403
+ * The friend groups of an account that can conduct recovery attempts.
1313
1404
  *
1314
- * Map from the user who can access it to the recovered account.
1405
+ * Modifying this storage is not possible while an account has ongoing recovery attempts.
1315
1406
  **/
1316
- proxy: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<AccountId32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1407
+ friendGroups: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Vec<PalletRecoveryFriendGroup>, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1317
1408
  /**
1318
- * The set of recoverable accounts and their recovery configuration.
1409
+ * The account that inherited full access to a lost account after successful recovery.
1410
+ *
1411
+ * The key is the lost account and the value is the inheritor account.
1412
+ *
1413
+ * NOTE: This could be a multisig or proxy account
1319
1414
  **/
1320
- recoverable: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRecoveryRecoveryConfig>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1415
+ inheritor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[u32, AccountId32, PalletRecoveryIdentifiedConsideration]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1321
1416
  /**
1322
1417
  * Generic query
1323
1418
  **/
@@ -1344,7 +1439,7 @@ declare module '@polkadot/api-base/types/storage' {
1344
1439
  /**
1345
1440
  * Information concerning any given referendum.
1346
1441
  **/
1347
- referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfoOriginCaller>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1442
+ referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1348
1443
  /**
1349
1444
  * The sorted list of referenda ready to be decided but not yet being decided, ordered by
1350
1445
  * conviction-weighted approvals.
@@ -1373,26 +1468,73 @@ declare module '@polkadot/api-base/types/storage' {
1373
1468
  * The data associated to a contract or externally owned account.
1374
1469
  **/
1375
1470
  accountInfoOf: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<PalletReviveStorageAccountInfo>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
1471
+ /**
1472
+ * Mapping for block number and hashes.
1473
+ *
1474
+ * The maximum number of elements stored is capped by the block hash count `BLOCK_HASH_COUNT`.
1475
+ **/
1476
+ blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1376
1477
  /**
1377
1478
  * A mapping from a contract's code hash to its code info.
1378
1479
  **/
1379
1480
  codeInfoOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletReviveVmCodeInfo>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1380
1481
  /**
1381
- * Evicted contracts that await child trie deletion.
1482
+ * Debugging settings that can be configured when DebugEnabled config is true.
1483
+ **/
1484
+ debugSettingsOf: AugmentedQuery<ApiType, () => Observable<PalletReviveDebugDebugSettings>, []> & QueryableStorageEntry<ApiType, []>;
1485
+ /**
1486
+ * Terminated contracts that await lazy cleanup.
1382
1487
  *
1383
- * Child trie deletion is a heavy operation depending on the amount of storage items
1384
- * stored in said trie. Therefore this operation is performed lazily in `on_idle`.
1488
+ * Each entry pairs a child trie ID with the contract account so that `on_idle` can
1489
+ * drain both the child trie and any [`NativeDepositOf`] entries that named the contract
1490
+ * as `holder`. Both can be arbitrarily large, so cleanup runs lazily in `on_idle`.
1385
1491
  **/
1386
- deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1492
+ deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReviveStorageDeletionQueueItem>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1387
1493
  /**
1388
1494
  * A pair of monotonic counters used to track the latest contract marked for deletion
1389
1495
  * and the latest deleted contract in queue.
1390
1496
  **/
1391
1497
  deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletReviveStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
1498
+ /**
1499
+ * The first transaction and receipt of the ethereum block.
1500
+ *
1501
+ * These values are moved out of the `EthBlockBuilderIR` to avoid serializing and
1502
+ * deserializing them on every transaction. Instead, they are loaded when needed.
1503
+ **/
1504
+ ethBlockBuilderFirstValues: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[Bytes, Bytes]>>>, []> & QueryableStorageEntry<ApiType, []>;
1505
+ /**
1506
+ * Incremental ethereum block builder.
1507
+ **/
1508
+ ethBlockBuilderIR: AugmentedQuery<ApiType, () => Observable<PalletReviveEvmBlockHashBlockBuilderEthereumBlockBuilderIR>, []> & QueryableStorageEntry<ApiType, []>;
1509
+ /**
1510
+ * The current Ethereum block that is stored in the `on_finalize` method.
1511
+ *
1512
+ * # Note
1513
+ *
1514
+ * This could be further optimized into the future to store only the minimum
1515
+ * information needed to reconstruct the Ethereum block at the RPC level.
1516
+ *
1517
+ * Since the block is convenient to have around, and the extra details are capped
1518
+ * by a few hashes and the vector of transaction hashes, we store the block here.
1519
+ **/
1520
+ ethereumBlock: AugmentedQuery<ApiType, () => Observable<PalletReviveEvmApiRpcTypesGenBlock>, []> & QueryableStorageEntry<ApiType, []>;
1392
1521
  /**
1393
1522
  * The immutable data associated with a given account.
1394
1523
  **/
1395
1524
  immutableDataOf: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<Bytes>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
1525
+ /**
1526
+ * Native currency storage deposit contributed by a user into a contract.
1527
+ *
1528
+ * Bounds how much native value the user can receive back from that contract's
1529
+ * storage deposit.
1530
+ *
1531
+ * Keys: `(holder, contributor) -> amount`
1532
+ * - `holder`: account on which the deposit is held (a contract, or the pallet's own account
1533
+ * for code-upload deposits).
1534
+ * - `contributor`: user that funded the deposit. Receives the native portion on refund, capped
1535
+ * at this entry's `amount`.
1536
+ **/
1537
+ nativeDepositOf: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u128>, [AccountId32, AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32, AccountId32]>;
1396
1538
  /**
1397
1539
  * Map a Ethereum address to its original `AccountId32`.
1398
1540
  *
@@ -1404,8 +1546,19 @@ declare module '@polkadot/api-base/types/storage' {
1404
1546
  originalAccount: AugmentedQuery<ApiType, (arg: H160 | string | Uint8Array) => Observable<Option<AccountId32>>, [H160]> & QueryableStorageEntry<ApiType, [H160]>;
1405
1547
  /**
1406
1548
  * A mapping from a contract's code hash to its code.
1549
+ * The code's size is bounded by [`crate::limits::BLOB_BYTES`] for PVM and
1550
+ * [`revm::primitives::eip170::MAX_CODE_SIZE`] for EVM bytecode.
1407
1551
  **/
1408
1552
  pristineCode: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Bytes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1553
+ /**
1554
+ * The details needed to reconstruct the receipt info offchain.
1555
+ *
1556
+ * This contains valuable information about the gas used by the transaction.
1557
+ *
1558
+ * NOTE: The item is unbound and should therefore never be read on chain.
1559
+ * It could otherwise inflate the PoV size of a block.
1560
+ **/
1561
+ receiptInfoData: AugmentedQuery<ApiType, () => Observable<Vec<PalletReviveEvmBlockHashReceiptGasInfo>>, []> & QueryableStorageEntry<ApiType, []>;
1409
1562
  /**
1410
1563
  * Generic query
1411
1564
  **/
@@ -1449,6 +1602,13 @@ declare module '@polkadot/api-base/types/storage' {
1449
1602
  * a new set of identities.
1450
1603
  **/
1451
1604
  disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, Perbill]>>>, []> & QueryableStorageEntry<ApiType, []>;
1605
+ /**
1606
+ * Accounts whose keys were set via `SessionInterface` (external path) without
1607
+ * incrementing the consumer reference or placing a key deposit. `do_purge_keys`
1608
+ * only decrements consumers for accounts that were registered through the local
1609
+ * session pallet.
1610
+ **/
1611
+ externallySetKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1452
1612
  /**
1453
1613
  * The owner of a key. The key is the `KeyTypeId` + the encoded key.
1454
1614
  **/
@@ -1579,6 +1739,16 @@ declare module '@polkadot/api-base/types/storage' {
1579
1739
  * equal to what is RC's session pallet.
1580
1740
  **/
1581
1741
  activeEra: AugmentedQuery<ApiType, () => Observable<Option<PalletStakingAsyncActiveEraInfo>>, []> & QueryableStorageEntry<ApiType, []>;
1742
+ /**
1743
+ * Whether nominators are slashable or not.
1744
+ *
1745
+ * - When set to `true` (default), nominators are slashed along with validators and must wait
1746
+ * the full [`Config::BondingDuration`] before withdrawing unbonded funds.
1747
+ * - When set to `false`, nominators are not slashed, and can unbond in
1748
+ * [`Config::NominatorFastUnbondDuration`] eras instead of the full
1749
+ * [`Config::BondingDuration`] (see [`StakingInterface::nominator_bonding_duration`]).
1750
+ **/
1751
+ areNominatorsSlashable: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1582
1752
  /**
1583
1753
  * Map from all locked "stash" accounts to the controller account.
1584
1754
  *
@@ -1639,6 +1809,16 @@ declare module '@polkadot/api-base/types/storage' {
1639
1809
  * set, it might be active or not.
1640
1810
  **/
1641
1811
  currentEra: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1812
+ /**
1813
+ * Safety guard: the era from which legacy minting is permanently disabled on the
1814
+ * payout side. **Irreversible** — once set, should never be cleared.
1815
+ *
1816
+ * Separate from [`Config::DisableMinting`] which controls the `end_era` path.
1817
+ * This storage guards against minting during payout for eras that were created
1818
+ * in DAP mode. Set automatically by `end_era_dap` on first successful pot snapshot.
1819
+ * In legacy mode (Kusama), this is never set and the guard is inactive.
1820
+ **/
1821
+ disableMintingGuard: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1642
1822
  /**
1643
1823
  * A bounded list of the "electable" stashes that resulted from a successful election.
1644
1824
  **/
@@ -1647,6 +1827,16 @@ declare module '@polkadot/api-base/types/storage' {
1647
1827
  * Tracks the current step of era pruning process for each era being lazily pruned.
1648
1828
  **/
1649
1829
  eraPruningState: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletStakingAsyncPalletPruningStep>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1830
+ /**
1831
+ * Per-era snapshot of whether nominators are slashable.
1832
+ *
1833
+ * This is copied from [`AreNominatorsSlashable`] at the start of each era. When processing
1834
+ * offences, we use the value from this storage for the offence era to ensure that the
1835
+ * slashing rules at the time of the offence are applied, not the current rules.
1836
+ *
1837
+ * If an entry does not exist for an era, nominators are assumed to be slashable (default).
1838
+ **/
1839
+ erasNominatorsSlashable: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1650
1840
  /**
1651
1841
  * Rewards for the last [`Config::HistoryDepth`] eras.
1652
1842
  * If reward hasn't been set or has been removed then 0 reward is returned.
@@ -1676,11 +1866,28 @@ declare module '@polkadot/api-base/types/storage' {
1676
1866
  * This is cleared after [`Config::HistoryDepth`] eras.
1677
1867
  **/
1678
1868
  erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletStakingAsyncPalletBoundedExposurePage>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
1869
+ /**
1870
+ * Sum of all validators' incentive weights for the era.
1871
+ *
1872
+ * Directly linked to [`ErasValidatorIncentiveWeight`].
1873
+ **/
1874
+ erasSumValidatorIncentiveWeight: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1679
1875
  /**
1680
1876
  * The total amount staked for the last [`Config::HistoryDepth`] eras.
1681
1877
  * If total hasn't been set or has been removed then 0 stake is returned.
1682
1878
  **/
1683
1879
  erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1880
+ /**
1881
+ * The total validator incentive budget for the given era, snapshotted at era end.
1882
+ *
1883
+ * This is the similar to [`ErasValidatorReward`] but for the self-stake incentive pot.
1884
+ **/
1885
+ erasValidatorIncentiveBudget: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1886
+ /**
1887
+ * Individual validator incentive weight per era.
1888
+ * Each validator's share of the incentive pot = `their_weight / sum_weight`.
1889
+ **/
1890
+ erasValidatorIncentiveWeight: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1684
1891
  /**
1685
1892
  * Exposure of validator at era with the preferences of validators.
1686
1893
  *
@@ -1690,9 +1897,11 @@ declare module '@polkadot/api-base/types/storage' {
1690
1897
  **/
1691
1898
  erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingAsyncValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1692
1899
  /**
1693
- * The total validator era payout for the last [`Config::HistoryDepth`] eras.
1900
+ * The total staker reward budget for each era within [`Config::HistoryDepth`].
1694
1901
  *
1695
- * Eras that haven't finished yet or has been removed doesn't have reward.
1902
+ * Set at era finalization:
1903
+ * - in non-minting mode this is the snapshot of the era pot balance before any payouts.
1904
+ * - in legacy mode it comes from `EraPayout`, with rewards minted on the fly.
1696
1905
  **/
1697
1906
  erasValidatorReward: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u128>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1698
1907
  /**
@@ -1700,11 +1909,26 @@ declare module '@polkadot/api-base/types/storage' {
1700
1909
  **/
1701
1910
  forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingAsyncForcing>, []> & QueryableStorageEntry<ApiType, []>;
1702
1911
  /**
1703
- * Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
1704
- * easy to initialize and the performance hit is minimal (we expect no more than four
1705
- * invulnerables) and restricted to testnets.
1912
+ * Hard cap on effective validator self-stake.
1913
+ *
1914
+ * Self-stake above this value receives no additional reward benefit (plateau).
1706
1915
  **/
1707
- invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1916
+ hardCapSelfStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1917
+ /**
1918
+ * Tracks the last era in which an account was active as a validator (included in the era's
1919
+ * exposure/snapshot).
1920
+ *
1921
+ * This is used to enforce that accounts who were recently validators must wait the full
1922
+ * [`Config::BondingDuration`] before their funds can be withdrawn, even if they switch to
1923
+ * nominator role. This prevents validators from:
1924
+ * 1. Committing a slashable offence in era N
1925
+ * 2. Switching to nominator role
1926
+ * 3. Using the shorter nominator unbonding duration to withdraw funds before being slashed
1927
+ *
1928
+ * Updated when era snapshots are created (in `ErasStakersPaged`/`ErasStakersOverview`).
1929
+ * Cleaned up when the stash is killed (fully withdrawn/reaped).
1930
+ **/
1931
+ lastValidatorEra: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1708
1932
  /**
1709
1933
  * Map from all (unlocked) "controller" accounts to the info regarding the staking.
1710
1934
  *
@@ -1712,6 +1936,12 @@ declare module '@polkadot/api-base/types/storage' {
1712
1936
  * by [`StakingLedger`] to ensure data and lock consistency.
1713
1937
  **/
1714
1938
  ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingAsyncLedgerStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1939
+ /**
1940
+ * The maximum commission that validators can set.
1941
+ *
1942
+ * If not set, defaults to `Perbill::one()` (100%), i.e. no upper limit.
1943
+ **/
1944
+ maxCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
1715
1945
  /**
1716
1946
  * The maximum nominator count before we stop allowing new validators to join.
1717
1947
  *
@@ -1721,7 +1951,8 @@ declare module '@polkadot/api-base/types/storage' {
1721
1951
  /**
1722
1952
  * Maximum staked rewards, i.e. the percentage of the era inflation that
1723
1953
  * is used for stake rewards.
1724
- * See [Era payout](./index.html#era-payout).
1954
+ *
1955
+ * Only used in legacy minting mode (`DisableMinting = false`).
1725
1956
  **/
1726
1957
  maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
1727
1958
  /**
@@ -1800,12 +2031,20 @@ declare module '@polkadot/api-base/types/storage' {
1800
2031
  * - When a new offence is added to `OffenceQueue`, its era is **inserted in sorted order**
1801
2032
  * if not already present.
1802
2033
  * - When all offences for an era are processed, it is **removed** from this list.
1803
- * - The maximum length of this vector is bounded by `BondingDuration`.
2034
+ * - The maximum length of this vector is bounded by `BondingDuration +
2035
+ * OFFENCE_QUEUE_ERAS_BOUND`.
1804
2036
  *
1805
2037
  * This eliminates the need for expensive iteration and sorting when fetching the next offence
1806
2038
  * to process.
1807
2039
  **/
1808
2040
  offenceQueueEras: AugmentedQuery<ApiType, () => Observable<Option<Vec<u32>>>, []> & QueryableStorageEntry<ApiType, []>;
2041
+ /**
2042
+ * Optimum self-stake threshold for validators.
2043
+ *
2044
+ * Below this threshold, the incentive weight grows as `sqrt(self_stake)`.
2045
+ * Above it, growth is dampened by [`SelfStakeSlopeFactor`].
2046
+ **/
2047
+ optimumSelfStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1809
2048
  /**
1810
2049
  * Where the reward payment should be made. Keyed by stash.
1811
2050
  *
@@ -1827,6 +2066,12 @@ declare module '@polkadot/api-base/types/storage' {
1827
2066
  * in a single block while maintaining correct slashing behavior.
1828
2067
  **/
1829
2068
  processingOffence: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, AccountId32, PalletStakingAsyncSlashingOffenceRecord]>>>, []> & QueryableStorageEntry<ApiType, []>;
2069
+ /**
2070
+ * Slope factor controlling the discouragement rate for self-stake between optimum and cap.
2071
+ *
2072
+ * Value between 0 and 1: k=1 means no discouragement, k=0 means immediate plateau.
2073
+ **/
2074
+ selfStakeSlopeFactor: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
1830
2075
  /**
1831
2076
  * The percentage of the slash that is distributed to reporters.
1832
2077
  *
@@ -1931,10 +2176,6 @@ declare module '@polkadot/api-base/types/storage' {
1931
2176
  * The full account information for a particular account ID.
1932
2177
  **/
1933
2178
  account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1934
- /**
1935
- * Total length (in bytes) for all extrinsics put together, for the current block.
1936
- **/
1937
- allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1938
2179
  /**
1939
2180
  * `Some` if a code upgrade has been authorized.
1940
2181
  **/
@@ -1943,6 +2184,16 @@ declare module '@polkadot/api-base/types/storage' {
1943
2184
  * Map of block numbers to block hashes.
1944
2185
  **/
1945
2186
  blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
2187
+ /**
2188
+ * Total size (in bytes) of the current block.
2189
+ *
2190
+ * Tracks the size of the header and all extrinsics.
2191
+ **/
2192
+ blockSize: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
2193
+ /**
2194
+ * Number of blocks till the pending code upgrade is applied.
2195
+ **/
2196
+ blocksTillUpgrade: AugmentedQuery<ApiType, () => Observable<Option<u8>>, []> & QueryableStorageEntry<ApiType, []>;
1946
2197
  /**
1947
2198
  * The current weight for the block.
1948
2199
  **/
@@ -2066,6 +2317,12 @@ declare module '@polkadot/api-base/types/storage' {
2066
2317
  transactionPayment: {
2067
2318
  nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
2068
2319
  storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, []> & QueryableStorageEntry<ApiType, []>;
2320
+ /**
2321
+ * The `OnChargeTransaction` stores the withdrawn tx fee here.
2322
+ *
2323
+ * Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
2324
+ **/
2325
+ txPaymentCredit: AugmentedQuery<ApiType, () => Observable<Option<FrameSupportTokensFungibleImbalance>>, []> & QueryableStorageEntry<ApiType, []>;
2069
2326
  /**
2070
2327
  * Generic query
2071
2328
  **/
@@ -2183,6 +2440,10 @@ declare module '@polkadot/api-base/types/storage' {
2183
2440
  * Counter for the related counted storage map
2184
2441
  **/
2185
2442
  counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
2443
+ /**
2444
+ * Counter for the related counted storage map
2445
+ **/
2446
+ counterForPendingRebag: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
2186
2447
  /**
2187
2448
  * A bag stored in storage.
2188
2449
  *
@@ -2207,6 +2468,23 @@ declare module '@polkadot/api-base/types/storage' {
2207
2468
  * When `None`, the next scan will start from the list head again.
2208
2469
  **/
2209
2470
  nextNodeAutoRebagged: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
2471
+ /**
2472
+ * Accounts that failed to be inserted into the bags-list due to locking.
2473
+ * These accounts will be processed with priority in `on_idle` or via `rebag` extrinsic.
2474
+ *
2475
+ * Note: This storage is intentionally unbounded. The following factors make bounding
2476
+ * unnecessary:
2477
+ * 1. The storage usage is temporary - accounts are processed and removed in `on_idle`
2478
+ * 2. The pallet is only locked during snapshot generation, which is weight-limited
2479
+ * 3. Processing happens at multiple accounts per block, clearing even large backlogs quickly
2480
+ * 4. An artificial limit could be exhausted by an attacker, preventing legitimate
2481
+ * auto-rebagging from putting accounts in the correct position
2482
+ *
2483
+ * We don't store the score here - it's always fetched from `ScoreProvider` when processing,
2484
+ * ensuring we use the most up-to-date score (accounts may have been slashed, rewarded, etc.
2485
+ * while waiting in the queue).
2486
+ **/
2487
+ pendingRebag: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
2210
2488
  /**
2211
2489
  * Generic query
2212
2490
  **/