@polkadot/api-augment 10.12.2 → 10.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/kusama/query.d.ts CHANGED
@@ -5,12 +5,28 @@ import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bo
5
5
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
7
  import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeRuntimeHoldReason, KusamaRuntimeSessionKeys, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5AssignmentAppPublic, PolkadotPrimitivesV5CandidateCommitments, PolkadotPrimitivesV5CoreOccupied, PolkadotPrimitivesV5DisputeState, PolkadotPrimitivesV5ExecutorParams, PolkadotPrimitivesV5ParasEntry, PolkadotPrimitivesV5ScrapedOnChainVotes, PolkadotPrimitivesV5SessionInfo, PolkadotPrimitivesV5SlashingPendingSlashes, PolkadotPrimitivesV5UpgradeGoAhead, PolkadotPrimitivesV5UpgradeRestriction, PolkadotPrimitivesV5ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
9
9
  import type { Observable } from '@polkadot/types/types';
10
10
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
11
11
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
12
12
  declare module '@polkadot/api-base/types/storage' {
13
13
  interface AugmentedQueries<ApiType extends ApiTypes> {
14
+ assetRate: {
15
+ /**
16
+ * Maps an asset to its fixed point representation in the native balance.
17
+ *
18
+ * E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
19
+ **/
20
+ conversionRateToNative: AugmentedQuery<ApiType, (arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset | {
21
+ V3: any;
22
+ } | {
23
+ V4: any;
24
+ } | string | Uint8Array) => Observable<Option<u128>>, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeCommonImplsVersionedLocatableAsset]>;
25
+ /**
26
+ * Generic query
27
+ **/
28
+ [key: string]: QueryableStorageEntry<ApiType>;
29
+ };
14
30
  auctions: {
15
31
  /**
16
32
  * Number of auctions started so far.
@@ -40,6 +56,20 @@ declare module '@polkadot/api-base/types/storage' {
40
56
  **/
41
57
  [key: string]: QueryableStorageEntry<ApiType>;
42
58
  };
59
+ authorityDiscovery: {
60
+ /**
61
+ * Keys of the current authority set.
62
+ **/
63
+ keys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
64
+ /**
65
+ * Keys of the next authority set.
66
+ **/
67
+ nextKeys: AugmentedQuery<ApiType, () => Observable<Vec<SpAuthorityDiscoveryAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
68
+ /**
69
+ * Generic query
70
+ **/
71
+ [key: string]: QueryableStorageEntry<ApiType>;
72
+ };
43
73
  authorship: {
44
74
  /**
45
75
  * Author of current block.
@@ -194,12 +224,15 @@ declare module '@polkadot/api-base/types/storage' {
194
224
  /**
195
225
  * Freeze locks on account balances.
196
226
  **/
197
- freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
227
+ freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
228
+ readonly id: StagingKusamaRuntimeRuntimeFreezeReason;
229
+ readonly amount: u128;
230
+ } & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
198
231
  /**
199
232
  * Holds on account balances.
200
233
  **/
201
234
  holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
202
- readonly id: KusamaRuntimeRuntimeHoldReason;
235
+ readonly id: StagingKusamaRuntimeRuntimeHoldReason;
203
236
  readonly amount: u128;
204
237
  } & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
205
238
  /**
@@ -231,8 +264,8 @@ declare module '@polkadot/api-base/types/storage' {
231
264
  authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
232
265
  /**
233
266
  * Block number where BEEFY consensus is enabled/started.
234
- * By changing this (through governance or sudo), BEEFY consensus is effectively
235
- * restarted from the new block number.
267
+ * By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
268
+ * restarted from the newly set block number.
236
269
  **/
237
270
  genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
238
271
  /**
@@ -391,6 +424,26 @@ declare module '@polkadot/api-base/types/storage' {
391
424
  **/
392
425
  [key: string]: QueryableStorageEntry<ApiType>;
393
426
  };
427
+ coretimeAssignmentProvider: {
428
+ /**
429
+ * Assignments which are currently active.
430
+ *
431
+ * They will be picked from `PendingAssignments` once we reach the scheduled block number in
432
+ * `PendingAssignments`.
433
+ **/
434
+ coreDescriptors: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
435
+ /**
436
+ * Scheduled assignment sets.
437
+ *
438
+ * Assignments as of the given block number. They will go into state once the block number is
439
+ * reached (and replace whatever was in there before).
440
+ **/
441
+ coreSchedules: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PolkadotRuntimeParachainsAssignerCoretimeSchedule>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
442
+ /**
443
+ * Generic query
444
+ **/
445
+ [key: string]: QueryableStorageEntry<ApiType>;
446
+ };
394
447
  crowdloan: {
395
448
  /**
396
449
  * The number of auctions that have entered into their ending period so far.
@@ -416,7 +469,7 @@ declare module '@polkadot/api-base/types/storage' {
416
469
  };
417
470
  dmp: {
418
471
  /**
419
- * The number to multiply the base delivery fee by.
472
+ * The factor to multiply the base delivery fee by.
420
473
  **/
421
474
  deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
422
475
  /**
@@ -447,6 +500,7 @@ declare module '@polkadot/api-base/types/storage' {
447
500
  * Desired number of targets to elect for this round.
448
501
  *
449
502
  * Only exists when [`Snapshot`] is present.
503
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
450
504
  **/
451
505
  desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
452
506
  /**
@@ -506,12 +560,14 @@ declare module '@polkadot/api-base/types/storage' {
506
560
  * Snapshot data of the round.
507
561
  *
508
562
  * This is created at the beginning of the signed phase and cleared upon calling `elect`.
563
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
509
564
  **/
510
565
  snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
511
566
  /**
512
567
  * The metadata of the [`RoundSnapshot`]
513
568
  *
514
569
  * Only exists when [`Snapshot`] is present.
570
+ * Note: This storage type must only be mutated through [`SnapshotWrapper`].
515
571
  **/
516
572
  snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
517
573
  /**
@@ -588,7 +644,7 @@ declare module '@polkadot/api-base/types/storage' {
588
644
  decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
589
645
  /**
590
646
  * The metadata is a general information concerning the referendum.
591
- * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
647
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
592
648
  * dump or IPFS hash of a JSON file.
593
649
  *
594
650
  * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
@@ -616,6 +672,10 @@ declare module '@polkadot/api-base/types/storage' {
616
672
  [key: string]: QueryableStorageEntry<ApiType>;
617
673
  };
618
674
  grandpa: {
675
+ /**
676
+ * The current list of authorities.
677
+ **/
678
+ authorities: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>, []> & QueryableStorageEntry<ApiType, []>;
619
679
  /**
620
680
  * The number of changes (both in terms of keys and underlying economic responsibilities)
621
681
  * in the "set" of Grandpa validators from genesis.
@@ -655,6 +715,20 @@ declare module '@polkadot/api-base/types/storage' {
655
715
  **/
656
716
  [key: string]: QueryableStorageEntry<ApiType>;
657
717
  };
718
+ historical: {
719
+ /**
720
+ * Mapping from historical session indices to session-data root hash and validator count.
721
+ **/
722
+ historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
723
+ /**
724
+ * The range of historical sessions we store. [first, last)
725
+ **/
726
+ storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
727
+ /**
728
+ * Generic query
729
+ **/
730
+ [key: string]: QueryableStorageEntry<ApiType>;
731
+ };
658
732
  hrmp: {
659
733
  /**
660
734
  * This mapping tracks how many open channel requests were accepted by a given recipient para.
@@ -666,10 +740,10 @@ declare module '@polkadot/api-base/types/storage' {
666
740
  * Storage for the messages for each channel.
667
741
  * Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
668
742
  **/
669
- hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | {
743
+ hrmpChannelContents: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | {
670
744
  sender?: any;
671
745
  recipient?: any;
672
- } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
746
+ } | string | Uint8Array) => Observable<Vec<PolkadotCorePrimitivesInboundHrmpMessage>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
673
747
  /**
674
748
  * Maintains a mapping that can be used to answer the question: What paras sent a message at
675
749
  * the given block number for a given receiver. Invariants:
@@ -684,10 +758,10 @@ declare module '@polkadot/api-base/types/storage' {
684
758
  * Invariant:
685
759
  * - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
686
760
  **/
687
- hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | {
761
+ hrmpChannels: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | {
688
762
  sender?: any;
689
763
  recipient?: any;
690
- } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
764
+ } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpChannel>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
691
765
  /**
692
766
  * A set of pending HRMP close channel requests that are going to be closed during the session
693
767
  * change. Used for checking if a given channel is registered for closure.
@@ -697,11 +771,11 @@ declare module '@polkadot/api-base/types/storage' {
697
771
  * Invariant:
698
772
  * - There are no channels that exists in list but not in the set and vice versa.
699
773
  **/
700
- hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | {
774
+ hrmpCloseChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | {
701
775
  sender?: any;
702
776
  recipient?: any;
703
- } | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
704
- hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
777
+ } | string | Uint8Array) => Observable<Option<Null>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
778
+ hrmpCloseChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
705
779
  hrmpEgressChannelsIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
706
780
  /**
707
781
  * Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
@@ -733,11 +807,11 @@ declare module '@polkadot/api-base/types/storage' {
733
807
  * Invariant:
734
808
  * - There are no channels that exists in list but not in the set and vice versa.
735
809
  **/
736
- hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesHrmpChannelId | {
810
+ hrmpOpenChannelRequests: AugmentedQuery<ApiType, (arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId | {
737
811
  sender?: any;
738
812
  recipient?: any;
739
- } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesHrmpChannelId]>;
740
- hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
813
+ } | string | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>>, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]> & QueryableStorageEntry<ApiType, [PolkadotParachainPrimitivesPrimitivesHrmpChannelId]>;
814
+ hrmpOpenChannelRequestsList: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>>, []> & QueryableStorageEntry<ApiType, []>;
741
815
  /**
742
816
  * The HRMP watermark associated with each para.
743
817
  * Invariant:
@@ -752,11 +826,29 @@ declare module '@polkadot/api-base/types/storage' {
752
826
  };
753
827
  identity: {
754
828
  /**
755
- * Information that is pertinent to identify the entity behind an account.
829
+ * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
830
+ * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
831
+ *
832
+ * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
833
+ * primary username.
834
+ **/
835
+ accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
836
+ /**
837
+ * Information that is pertinent to identify the entity behind an account. First item is the
838
+ * registration, second is the account's primary username.
756
839
  *
757
840
  * TWOX-NOTE: OK ― `AccountId` is a secure hash.
758
841
  **/
759
- identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
842
+ identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
843
+ /**
844
+ * Usernames that an authority has granted, but that the account controller has not confirmed
845
+ * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
846
+ * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
847
+ * [`Call::accept_username`].
848
+ *
849
+ * First tuple item is the account and second is the acceptance deadline.
850
+ **/
851
+ pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
760
852
  /**
761
853
  * The set of registrars. Not expected to get very big as can only be added through a
762
854
  * special origin (likely a council motion).
@@ -778,38 +870,9 @@ declare module '@polkadot/api-base/types/storage' {
778
870
  **/
779
871
  superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
780
872
  /**
781
- * Generic query
873
+ * A map of the accounts who are authorized to grant usernames.
782
874
  **/
783
- [key: string]: QueryableStorageEntry<ApiType>;
784
- };
785
- imOnline: {
786
- /**
787
- * For each session index, we keep a mapping of `ValidatorId<T>` to the
788
- * number of blocks authored by the given authority.
789
- **/
790
- authoredBlocks: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<u32>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
791
- /**
792
- * The block number after which it's ok to send heartbeats in the current
793
- * session.
794
- *
795
- * At the beginning of each session we set this to a value that should fall
796
- * roughly in the middle of the session duration. The idea is to first wait for
797
- * the validators to produce a block in the current session, so that the
798
- * heartbeat later on will not be necessary.
799
- *
800
- * This value will only be used as a fallback if we fail to get a proper session
801
- * progress estimate from `NextSessionRotation`, as those estimates should be
802
- * more accurate then the value we calculate for `HeartbeatAfter`.
803
- **/
804
- heartbeatAfter: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
805
- /**
806
- * The current set of keys that may issue a heartbeat.
807
- **/
808
- keys: AugmentedQuery<ApiType, () => Observable<Vec<PalletImOnlineSr25519AppSr25519Public>>, []> & QueryableStorageEntry<ApiType, []>;
809
- /**
810
- * For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
811
- **/
812
- receivedHeartbeats: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<bool>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
875
+ usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
813
876
  /**
814
877
  * Generic query
815
878
  **/
@@ -967,7 +1030,7 @@ declare module '@polkadot/api-base/types/storage' {
967
1030
  * Holds on account balances.
968
1031
  **/
969
1032
  holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
970
- readonly id: KusamaRuntimeRuntimeHoldReason;
1033
+ readonly id: StagingKusamaRuntimeRuntimeHoldReason;
971
1034
  readonly amount: u128;
972
1035
  } & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
973
1036
  /**
@@ -1091,6 +1154,14 @@ declare module '@polkadot/api-base/types/storage' {
1091
1154
  * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
1092
1155
  **/
1093
1156
  subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1157
+ /**
1158
+ * The sum of funds across all pools.
1159
+ *
1160
+ * This might be lower but never higher than the sum of `total_balance` of all [`PoolMembers`]
1161
+ * because calling `pool_withdraw_unbonded` might decrease the total stake of the pool's
1162
+ * `bonded_account` without adjusting the pallet-internal `UnbondingPool`'s.
1163
+ **/
1164
+ totalValueLocked: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1094
1165
  /**
1095
1166
  * Generic query
1096
1167
  **/
@@ -1110,7 +1181,23 @@ declare module '@polkadot/api-base/types/storage' {
1110
1181
  **/
1111
1182
  [key: string]: QueryableStorageEntry<ApiType>;
1112
1183
  };
1113
- paraAssignmentProvider: {
1184
+ onDemandAssignmentProvider: {
1185
+ /**
1186
+ * The order storage entry. Uses a VecDeque to be able to push to the front of the
1187
+ * queue from the scheduler on session boundaries.
1188
+ **/
1189
+ onDemandQueue: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>>, []> & QueryableStorageEntry<ApiType, []>;
1190
+ /**
1191
+ * Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
1192
+ * it's lookahead. Keeping track of this affinity prevents parallel execution of the same
1193
+ * `ParaId` on two or more `CoreIndex`es.
1194
+ **/
1195
+ paraIdAffinity: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1196
+ /**
1197
+ * Keeps track of the multiplier used to calculate the current spot price for the on demand
1198
+ * assigner.
1199
+ **/
1200
+ spotTraffic: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1114
1201
  /**
1115
1202
  * Generic query
1116
1203
  **/
@@ -1128,7 +1215,7 @@ declare module '@polkadot/api-base/types/storage' {
1128
1215
  /**
1129
1216
  * The commitments of candidates pending availability, by `ParaId`.
1130
1217
  **/
1131
- pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1218
+ pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1132
1219
  /**
1133
1220
  * Generic query
1134
1221
  **/
@@ -1147,7 +1234,7 @@ declare module '@polkadot/api-base/types/storage' {
1147
1234
  /**
1148
1235
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
1149
1236
  **/
1150
- onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV5ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
1237
+ onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
1151
1238
  /**
1152
1239
  * Generic query
1153
1240
  **/
@@ -1271,7 +1358,7 @@ declare module '@polkadot/api-base/types/storage' {
1271
1358
  * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
1272
1359
  * the format will require migration of parachains.
1273
1360
  **/
1274
- upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1361
+ upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1275
1362
  /**
1276
1363
  * This is used by the relay-chain to communicate that there are restrictions for performing
1277
1364
  * an upgrade for this parachain.
@@ -1283,7 +1370,7 @@ declare module '@polkadot/api-base/types/storage' {
1283
1370
  * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
1284
1371
  * the format will require migration of parachains.
1285
1372
  **/
1286
- upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1373
+ upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1287
1374
  /**
1288
1375
  * Generic query
1289
1376
  **/
@@ -1300,7 +1387,7 @@ declare module '@polkadot/api-base/types/storage' {
1300
1387
  * * The number of parachains and parathread multiplexers
1301
1388
  * * The number of validators divided by `configuration.max_validators_per_core`.
1302
1389
  **/
1303
- availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5CoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
1390
+ availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
1304
1391
  /**
1305
1392
  * One entry for each availability core. The `VecDeque` represents the assignments to be
1306
1393
  * scheduled on that core. `None` is used to signal to not schedule the next para of the core
@@ -1308,7 +1395,7 @@ declare module '@polkadot/api-base/types/storage' {
1308
1395
  * `CoreState` in the runtime API. The value contained here will not be valid after the end of
1309
1396
  * a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
1310
1397
  **/
1311
- claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<Option<PolkadotPrimitivesV5ParasEntry>>>>, []> & QueryableStorageEntry<ApiType, []>;
1398
+ claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
1312
1399
  /**
1313
1400
  * The block number where the session start occurred. Used to track how many group rotations
1314
1401
  * have occurred.
@@ -1343,7 +1430,7 @@ declare module '@polkadot/api-base/types/storage' {
1343
1430
  /**
1344
1431
  * All ongoing or concluded disputes for the last several sessions.
1345
1432
  **/
1346
- disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1433
+ disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1347
1434
  /**
1348
1435
  * Whether the chain is frozen. Starts as `None`. When this is `Some`,
1349
1436
  * the chain will not accept any new parachain blocks for backing or inclusion,
@@ -1376,7 +1463,7 @@ declare module '@polkadot/api-base/types/storage' {
1376
1463
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
1377
1464
  * When in doubt, use `Sessions` API instead.
1378
1465
  **/
1379
- assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1466
+ assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1380
1467
  /**
1381
1468
  * The earliest session for which previous session info is stored.
1382
1469
  **/
@@ -1384,13 +1471,13 @@ declare module '@polkadot/api-base/types/storage' {
1384
1471
  /**
1385
1472
  * Executor parameter set for a given session index
1386
1473
  **/
1387
- sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1474
+ sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1388
1475
  /**
1389
1476
  * Session information in a rolling window.
1390
1477
  * Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
1391
1478
  * Does not have any entries before the session index in the first session change notification.
1392
1479
  **/
1393
- sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1480
+ sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1394
1481
  /**
1395
1482
  * Generic query
1396
1483
  **/
@@ -1406,7 +1493,7 @@ declare module '@polkadot/api-base/types/storage' {
1406
1493
  * The parachain attestation keys of the validators actively participating in parachain
1407
1494
  * consensus. This should be the same length as `ActiveValidatorIndices`.
1408
1495
  **/
1409
- activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV5ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1496
+ activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1410
1497
  /**
1411
1498
  * All allowed relay-parents.
1412
1499
  **/
@@ -1424,7 +1511,7 @@ declare module '@polkadot/api-base/types/storage' {
1424
1511
  /**
1425
1512
  * Validators pending dispute slashes.
1426
1513
  **/
1427
- unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV5SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1514
+ unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1428
1515
  /**
1429
1516
  * `ValidatorSetCount` per session.
1430
1517
  **/
@@ -1439,7 +1526,11 @@ declare module '@polkadot/api-base/types/storage' {
1439
1526
  /**
1440
1527
  * The request status of a given hash.
1441
1528
  **/
1442
- statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1529
+ requestStatusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1530
+ /**
1531
+ * The request status of a given hash.
1532
+ **/
1533
+ statusFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletPreimageOldRequestStatus>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
1443
1534
  /**
1444
1535
  * Generic query
1445
1536
  **/
@@ -1490,7 +1581,7 @@ declare module '@polkadot/api-base/types/storage' {
1490
1581
  decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
1491
1582
  /**
1492
1583
  * The metadata is a general information concerning the referendum.
1493
- * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
1584
+ * The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
1494
1585
  * dump or IPFS hash of a JSON file.
1495
1586
  *
1496
1587
  * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
@@ -1576,7 +1667,7 @@ declare module '@polkadot/api-base/types/storage' {
1576
1667
  /**
1577
1668
  * The next session keys for a validator.
1578
1669
  **/
1579
- nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<KusamaRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1670
+ nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<StagingKusamaRuntimeSessionKeys>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1580
1671
  /**
1581
1672
  * True if the underlying economic identities or weighting behind the validators
1582
1673
  * has changed in the queued validator set.
@@ -1586,7 +1677,7 @@ declare module '@polkadot/api-base/types/storage' {
1586
1677
  * The queued keys for the next session. When the next session begins, these keys
1587
1678
  * will be used to determine the validator's session keys.
1588
1679
  **/
1589
- queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, KusamaRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
1680
+ queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, StagingKusamaRuntimeSessionKeys]>>>, []> & QueryableStorageEntry<ApiType, []>;
1590
1681
  /**
1591
1682
  * The current set of validators.
1592
1683
  **/
@@ -1740,6 +1831,15 @@ declare module '@polkadot/api-base/types/storage' {
1740
1831
  * (`CountFor*`) in the system compared to the configured max (`Max*Count`).
1741
1832
  **/
1742
1833
  chillThreshold: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
1834
+ /**
1835
+ * History of claimed paged rewards by era and validator.
1836
+ *
1837
+ * This is keyed by era and validator stash which maps to the set of page indexes which have
1838
+ * been claimed.
1839
+ *
1840
+ * It is removed after [`Config::HistoryDepth`] eras.
1841
+ **/
1842
+ claimedRewards: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Vec<u32>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1743
1843
  /**
1744
1844
  * Counter for the related counted storage map
1745
1845
  **/
@@ -1762,7 +1862,7 @@ declare module '@polkadot/api-base/types/storage' {
1762
1862
  **/
1763
1863
  currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1764
1864
  /**
1765
- * Rewards for the last `HISTORY_DEPTH` eras.
1865
+ * Rewards for the last [`Config::HistoryDepth`] eras.
1766
1866
  * If reward hasn't been set or has been removed then 0 reward is returned.
1767
1867
  **/
1768
1868
  erasRewardPoints: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletStakingEraRewardPoints>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
@@ -1771,33 +1871,64 @@ declare module '@polkadot/api-base/types/storage' {
1771
1871
  *
1772
1872
  * This is keyed first by the era index to allow bulk deletion and then the stash account.
1773
1873
  *
1774
- * Is it removed after `HISTORY_DEPTH` eras.
1874
+ * Is it removed after [`Config::HistoryDepth`] eras.
1775
1875
  * If stakers hasn't been set or has been removed then empty exposure is returned.
1876
+ *
1877
+ * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
1776
1878
  **/
1777
- erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1879
+ erasStakers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1778
1880
  /**
1779
1881
  * Clipped Exposure of validator at era.
1780
1882
  *
1883
+ * Note: This is deprecated, should be used as read-only and will be removed in the future.
1884
+ * New `Exposure`s are stored in a paged manner in `ErasStakersPaged` instead.
1885
+ *
1781
1886
  * This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
1782
- * `T::MaxNominatorRewardedPerValidator` biggest stakers.
1887
+ * `T::MaxExposurePageSize` biggest stakers.
1783
1888
  * (Note: the field `total` and `own` of the exposure remains unchanged).
1784
1889
  * This is used to limit the i/o cost for the nominator payout.
1785
1890
  *
1786
1891
  * This is keyed fist by the era index to allow bulk deletion and then the stash account.
1787
1892
  *
1788
- * Is it removed after `HISTORY_DEPTH` eras.
1893
+ * It is removed after [`Config::HistoryDepth`] eras.
1789
1894
  * If stakers hasn't been set or has been removed then empty exposure is returned.
1895
+ *
1896
+ * Note: Deprecated since v14. Use `EraInfo` instead to work with exposures.
1897
+ **/
1898
+ erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<SpStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1899
+ /**
1900
+ * Summary of validator exposure at a given era.
1901
+ *
1902
+ * This contains the total stake in support of the validator and their own stake. In addition,
1903
+ * it can also be used to get the number of nominators backing this validator and the number of
1904
+ * exposure pages they are divided into. The page count is useful to determine the number of
1905
+ * pages of rewards that needs to be claimed.
1906
+ *
1907
+ * This is keyed first by the era index to allow bulk deletion and then the stash account.
1908
+ * Should only be accessed through `EraInfo`.
1909
+ *
1910
+ * Is it removed after [`Config::HistoryDepth`] eras.
1911
+ * If stakers hasn't been set or has been removed then empty overview is returned.
1912
+ **/
1913
+ erasStakersOverview: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<SpStakingPagedExposureMetadata>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1914
+ /**
1915
+ * Paginated exposure of a validator at given era.
1916
+ *
1917
+ * This is keyed first by the era index to allow bulk deletion, then stash account and finally
1918
+ * the page. Should only be accessed through `EraInfo`.
1919
+ *
1920
+ * This is cleared after [`Config::HistoryDepth`] eras.
1790
1921
  **/
1791
- erasStakersClipped: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingExposure>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1922
+ erasStakersPaged: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<SpStakingExposurePage>>, [u32, AccountId32, u32]> & QueryableStorageEntry<ApiType, [u32, AccountId32, u32]>;
1792
1923
  /**
1793
- * The session index at which the era start for the last `HISTORY_DEPTH` eras.
1924
+ * The session index at which the era start for the last [`Config::HistoryDepth`] eras.
1794
1925
  *
1795
1926
  * Note: This tracks the starting session (i.e. session index when era start being active)
1796
1927
  * for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
1797
1928
  **/
1798
1929
  erasStartSessionIndex: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1799
1930
  /**
1800
- * The total amount staked for the last `HISTORY_DEPTH` eras.
1931
+ * The total amount staked for the last [`Config::HistoryDepth`] eras.
1801
1932
  * If total hasn't been set or has been removed then 0 stake is returned.
1802
1933
  **/
1803
1934
  erasTotalStake: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
@@ -1806,11 +1937,11 @@ declare module '@polkadot/api-base/types/storage' {
1806
1937
  *
1807
1938
  * This is keyed first by the era index to allow bulk deletion and then the stash account.
1808
1939
  *
1809
- * Is it removed after `HISTORY_DEPTH` eras.
1940
+ * Is it removed after [`Config::HistoryDepth`] eras.
1810
1941
  **/
1811
1942
  erasValidatorPrefs: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<PalletStakingValidatorPrefs>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1812
1943
  /**
1813
- * The total validator era payout for the last `HISTORY_DEPTH` eras.
1944
+ * The total validator era payout for the last [`Config::HistoryDepth`] eras.
1814
1945
  *
1815
1946
  * Eras that haven't finished yet or has been removed doesn't have reward.
1816
1947
  **/
@@ -1827,6 +1958,9 @@ declare module '@polkadot/api-base/types/storage' {
1827
1958
  invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
1828
1959
  /**
1829
1960
  * Map from all (unlocked) "controller" accounts to the info regarding the staking.
1961
+ *
1962
+ * Note: All the reads and mutations to this storage *MUST* be done through the methods exposed
1963
+ * by [`StakingLedger`] to ensure data and lock consistency.
1830
1964
  **/
1831
1965
  ledger: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingStakingLedger>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1832
1966
  /**
@@ -1906,7 +2040,7 @@ declare module '@polkadot/api-base/types/storage' {
1906
2040
  *
1907
2041
  * TWOX-NOTE: SAFE since `AccountId` is a secure hash.
1908
2042
  **/
1909
- payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
2043
+ payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1910
2044
  /**
1911
2045
  * Slashing spans for stash accounts.
1912
2046
  **/
@@ -1980,6 +2114,10 @@ declare module '@polkadot/api-base/types/storage' {
1980
2114
  * Total length (in bytes) for all extrinsics put together, for the current block.
1981
2115
  **/
1982
2116
  allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
2117
+ /**
2118
+ * `Some` if a code upgrade has been authorized.
2119
+ **/
2120
+ authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
1983
2121
  /**
1984
2122
  * Map of block numbers to block hashes.
1985
2123
  **/
@@ -2059,11 +2197,14 @@ declare module '@polkadot/api-base/types/storage' {
2059
2197
  };
2060
2198
  timestamp: {
2061
2199
  /**
2062
- * Did the timestamp get updated in this block?
2200
+ * Whether the timestamp has been updated in this block.
2201
+ *
2202
+ * This value is updated to `true` upon successful submission of a timestamp by a node.
2203
+ * It is then checked at the end of each block execution in the `on_finalize` hook.
2063
2204
  **/
2064
2205
  didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
2065
2206
  /**
2066
- * Current time for the current block.
2207
+ * The current time for the current block.
2067
2208
  **/
2068
2209
  now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
2069
2210
  /**
@@ -2096,6 +2237,14 @@ declare module '@polkadot/api-base/types/storage' {
2096
2237
  * Proposals that have been made.
2097
2238
  **/
2098
2239
  proposals: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasuryProposal>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
2240
+ /**
2241
+ * The count of spends that have been made.
2242
+ **/
2243
+ spendCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
2244
+ /**
2245
+ * Spends that have been approved and being processed.
2246
+ **/
2247
+ spends: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletTreasurySpendStatus>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
2099
2248
  /**
2100
2249
  * Generic query
2101
2250
  **/
@@ -2150,7 +2299,7 @@ declare module '@polkadot/api-base/types/storage' {
2150
2299
  /**
2151
2300
  * The existing asset traps.
2152
2301
  *
2153
- * Key is the blake2 256 hash of (origin, versioned `MultiAssets`) pair. Value is the number of
2302
+ * Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
2154
2303
  * times this pair has been trapped (usually just 1 if it exists at all).
2155
2304
  **/
2156
2305
  assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
@@ -2161,7 +2310,7 @@ declare module '@polkadot/api-base/types/storage' {
2161
2310
  /**
2162
2311
  * Fungible assets which we know are locked on this chain.
2163
2312
  **/
2164
- lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedMultiLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
2313
+ lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedLocation]>>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
2165
2314
  /**
2166
2315
  * The ongoing queries.
2167
2316
  **/
@@ -2175,6 +2324,8 @@ declare module '@polkadot/api-base/types/storage' {
2175
2324
  **/
2176
2325
  remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | {
2177
2326
  V3: any;
2327
+ } | {
2328
+ V4: any;
2178
2329
  } | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [u32, AccountId32, XcmVersionedAssetId]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
2179
2330
  /**
2180
2331
  * Default version to encode XCM when latest version of destination is unknown. If `None`,
@@ -2184,34 +2335,40 @@ declare module '@polkadot/api-base/types/storage' {
2184
2335
  /**
2185
2336
  * The Latest versions that we know various locations support.
2186
2337
  **/
2187
- supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | {
2338
+ supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
2188
2339
  V2: any;
2189
2340
  } | {
2190
2341
  V3: any;
2191
- } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
2342
+ } | {
2343
+ V4: any;
2344
+ } | string | Uint8Array) => Observable<Option<u32>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
2192
2345
  /**
2193
2346
  * Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
2194
2347
  * the `u32` counter is the number of times that a send to the destination has been attempted,
2195
2348
  * which is used as a prioritization.
2196
2349
  **/
2197
- versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedMultiLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
2350
+ versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedLocation, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
2198
2351
  /**
2199
2352
  * All locations that we have requested version notifications from.
2200
2353
  **/
2201
- versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | {
2354
+ versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
2202
2355
  V2: any;
2203
2356
  } | {
2204
2357
  V3: any;
2205
- } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
2358
+ } | {
2359
+ V4: any;
2360
+ } | string | Uint8Array) => Observable<Option<u64>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
2206
2361
  /**
2207
2362
  * The target locations that are subscribed to our version changes, as well as the most recent
2208
2363
  * of our versions we informed them of.
2209
2364
  **/
2210
- versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedMultiLocation | {
2365
+ versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
2211
2366
  V2: any;
2212
2367
  } | {
2213
2368
  V3: any;
2214
- } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedMultiLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedMultiLocation]>;
2369
+ } | {
2370
+ V4: any;
2371
+ } | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [u32, XcmVersionedLocation]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
2215
2372
  /**
2216
2373
  * Global suspension state of the XCM executor.
2217
2374
  **/