@polkadot/api-augment 14.0.1 → 14.2.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 (40) hide show
  1. package/cjs/base.d.ts +2 -0
  2. package/cjs/bundle.d.ts +2 -0
  3. package/cjs/index.d.ts +2 -0
  4. package/cjs/kusama/consts.d.ts +1044 -0
  5. package/cjs/kusama/errors.d.ts +2355 -0
  6. package/cjs/kusama/events.d.ts +2543 -0
  7. package/cjs/kusama/index.d.ts +8 -0
  8. package/cjs/kusama/query.d.ts +2378 -0
  9. package/cjs/kusama/registry.d.ts +3 -0
  10. package/cjs/kusama/runtime.d.ts +683 -0
  11. package/cjs/kusama/tx.d.ts +5778 -0
  12. package/cjs/packageDetect.d.ts +1 -0
  13. package/cjs/packageInfo.d.ts +6 -0
  14. package/cjs/packageInfo.js +1 -1
  15. package/cjs/polkadot/consts.d.ts +864 -0
  16. package/cjs/polkadot/errors.d.ts +1954 -0
  17. package/cjs/polkadot/events.d.ts +2024 -0
  18. package/cjs/polkadot/index.d.ts +8 -0
  19. package/cjs/polkadot/query.d.ts +2133 -0
  20. package/cjs/polkadot/registry.d.ts +2 -0
  21. package/cjs/polkadot/runtime.d.ts +683 -0
  22. package/cjs/polkadot/tx.d.ts +4932 -0
  23. package/cjs/substrate/consts.d.ts +1763 -0
  24. package/cjs/substrate/errors.d.ts +3409 -0
  25. package/cjs/substrate/events.d.ts +4300 -0
  26. package/cjs/substrate/index.d.ts +8 -0
  27. package/cjs/substrate/query.d.ts +2582 -0
  28. package/cjs/substrate/registry.d.ts +1 -0
  29. package/cjs/substrate/runtime.d.ts +577 -0
  30. package/cjs/substrate/tx.d.ts +10200 -0
  31. package/kusama/runtime.d.ts +253 -212
  32. package/package.json +368 -128
  33. package/packageInfo.js +1 -1
  34. package/polkadot/consts.d.ts +50 -66
  35. package/polkadot/errors.d.ts +114 -183
  36. package/polkadot/events.d.ts +83 -144
  37. package/polkadot/query.d.ts +159 -100
  38. package/polkadot/runtime.d.ts +315 -179
  39. package/polkadot/tx.d.ts +2770 -636
  40. package/substrate/runtime.d.ts +217 -175
@@ -1,11 +1,10 @@
1
1
  import '@polkadot/api-base/types/storage';
2
2
  import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
3
- import type { Data } from '@polkadot/types';
4
3
  import type { BTreeMap, BTreeSet, Bytes, Null, Option, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
5
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
6
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
6
  import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerScheduled, 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, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
7
+ import type { BinaryHeapEnqueuedOrder, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmountRuntimeFreezeReason, FrameSupportTokensMiscIdAmountRuntimeHoldReason, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletReferendaReferendumInfo, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV7AssignmentAppPublic, PolkadotPrimitivesV7DisputeState, PolkadotPrimitivesV7ExecutorParams, PolkadotPrimitivesV7ScrapedOnChainVotes, PolkadotPrimitivesV7SessionInfo, PolkadotPrimitivesV7SlashingPendingSlashes, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, PolkadotPrimitivesV7ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder, PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, PolkadotRuntimeRuntimeParametersKey, PolkadotRuntimeRuntimeParametersValue, PolkadotRuntimeSessionKeys, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingXcmV4Instruction, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
9
8
  import type { Observable } from '@polkadot/types/types';
10
9
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
11
10
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -224,11 +223,11 @@ declare module '@polkadot/api-base/types/storage' {
224
223
  /**
225
224
  * Freeze locks on account balances.
226
225
  **/
227
- freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
226
+ freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
228
227
  /**
229
228
  * Holds on account balances.
230
229
  **/
231
- holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
230
+ holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
232
231
  /**
233
232
  * The total units of outstanding deactivated balance in the system.
234
233
  **/
@@ -236,10 +235,14 @@ declare module '@polkadot/api-base/types/storage' {
236
235
  /**
237
236
  * Any liquidity locks on some account balances.
238
237
  * NOTE: Should only be accessed when setting, changing and freeing a lock.
238
+ *
239
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
239
240
  **/
240
241
  locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
241
242
  /**
242
243
  * Named reserves on some account balances.
244
+ *
245
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
243
246
  **/
244
247
  reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
245
248
  /**
@@ -418,6 +421,26 @@ declare module '@polkadot/api-base/types/storage' {
418
421
  **/
419
422
  [key: string]: QueryableStorageEntry<ApiType>;
420
423
  };
424
+ coretimeAssignmentProvider: {
425
+ /**
426
+ * Assignments which are currently active.
427
+ *
428
+ * They will be picked from `PendingAssignments` once we reach the scheduled block number in
429
+ * `PendingAssignments`.
430
+ **/
431
+ coreDescriptors: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
432
+ /**
433
+ * Scheduled assignment sets.
434
+ *
435
+ * Assignments as of the given block number. They will go into state once the block number is
436
+ * reached (and replace whatever was in there before).
437
+ **/
438
+ coreSchedules: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PolkadotRuntimeParachainsAssignerCoretimeSchedule>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
439
+ /**
440
+ * Generic query
441
+ **/
442
+ [key: string]: QueryableStorageEntry<ApiType>;
443
+ };
421
444
  crowdloan: {
422
445
  /**
423
446
  * The number of auctions that have entered into their ending period so far.
@@ -735,60 +758,6 @@ declare module '@polkadot/api-base/types/storage' {
735
758
  **/
736
759
  [key: string]: QueryableStorageEntry<ApiType>;
737
760
  };
738
- identity: {
739
- /**
740
- * Reverse lookup from `username` to the `AccountId` that has registered it. The value should
741
- * be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
742
- *
743
- * Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
744
- * primary username.
745
- **/
746
- accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
747
- /**
748
- * Information that is pertinent to identify the entity behind an account. First item is the
749
- * registration, second is the account's primary username.
750
- *
751
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
752
- **/
753
- identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
754
- /**
755
- * Usernames that an authority has granted, but that the account controller has not confirmed
756
- * that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
757
- * because they are a pure proxy, multisig, etc. In order to confirm it, they should call
758
- * [`Call::accept_username`].
759
- *
760
- * First tuple item is the account and second is the acceptance deadline.
761
- **/
762
- pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
763
- /**
764
- * The set of registrars. Not expected to get very big as can only be added through a
765
- * special origin (likely a council motion).
766
- *
767
- * The index into this can be cast to `RegistrarIndex` to get a valid value.
768
- **/
769
- registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
770
- /**
771
- * Alternative "sub" identities of this account.
772
- *
773
- * The first item is the deposit, the second is a vector of the accounts.
774
- *
775
- * TWOX-NOTE: OK ― `AccountId` is a secure hash.
776
- **/
777
- subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
778
- /**
779
- * The super-identity of an alternative "sub" identity together with its name, within that
780
- * context. If the account is not some other account's sub-identity, then just `None`.
781
- **/
782
- superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
783
- /**
784
- * A map of the accounts who are authorized to grant usernames.
785
- **/
786
- usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
787
- /**
788
- * Generic query
789
- **/
790
- [key: string]: QueryableStorageEntry<ApiType>;
791
- };
792
761
  indices: {
793
762
  /**
794
763
  * The lookup from index to account.
@@ -964,13 +933,13 @@ declare module '@polkadot/api-base/types/storage' {
964
933
  /**
965
934
  * A reverse lookup from the pool's account id to its id.
966
935
  *
967
- * This is only used for slashing. In all other instances, the pool id is used, and the
968
- * accounts are deterministically derived from it.
936
+ * This is only used for slashing and on automatic withdraw update. In all other instances, the
937
+ * pool id is used, and the accounts are deterministically derived from it.
969
938
  **/
970
939
  reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
971
940
  /**
972
941
  * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
973
- * claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
942
+ * claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
974
943
  **/
975
944
  rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
976
945
  /**
@@ -1005,19 +974,43 @@ declare module '@polkadot/api-base/types/storage' {
1005
974
  **/
1006
975
  [key: string]: QueryableStorageEntry<ApiType>;
1007
976
  };
1008
- paraInclusion: {
977
+ onDemand: {
978
+ /**
979
+ * Queue entries that are currently bound to a particular core due to core affinity.
980
+ **/
981
+ affinityEntries: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<BinaryHeapEnqueuedOrder>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
982
+ /**
983
+ * Priority queue for all orders which don't yet (or not any more) have any core affinity.
984
+ **/
985
+ freeEntries: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>>, []> & QueryableStorageEntry<ApiType, []>;
986
+ /**
987
+ * Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
988
+ * it's lookahead. Keeping track of this affinity prevents parallel execution of the same
989
+ * `ParaId` on two or more `CoreIndex`es.
990
+ **/
991
+ paraIdAffinity: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1009
992
  /**
1010
- * The latest bitfield for each validator, referred to by their index in the validator set.
993
+ * Overall status of queue (both free + affinity entries)
1011
994
  **/
1012
- availabilityBitfields: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
995
+ queueStatus: AugmentedQuery<ApiType, () => Observable<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>, []> & QueryableStorageEntry<ApiType, []>;
1013
996
  /**
1014
- * Candidates pending availability by `ParaId`.
997
+ * Keeps track of accumulated revenue from on demand order sales.
1015
998
  **/
1016
- pendingAvailability: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
999
+ revenue: AugmentedQuery<ApiType, () => Observable<Vec<u128>>, []> & QueryableStorageEntry<ApiType, []>;
1017
1000
  /**
1018
- * The commitments of candidates pending availability, by `ParaId`.
1001
+ * Generic query
1002
+ **/
1003
+ [key: string]: QueryableStorageEntry<ApiType>;
1004
+ };
1005
+ paraInclusion: {
1006
+ /**
1007
+ * Candidates pending availability by `ParaId`. They form a chain starting from the latest
1008
+ * included head of the para.
1009
+ * Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
1010
+ * would otherwise have the exact same prefix which could cause undefined behaviour when doing
1011
+ * the migration.
1019
1012
  **/
1020
- pendingAvailabilityCommitments: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6CandidateCommitments>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1013
+ v1: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1021
1014
  /**
1022
1015
  * Generic query
1023
1016
  **/
@@ -1036,7 +1029,19 @@ declare module '@polkadot/api-base/types/storage' {
1036
1029
  /**
1037
1030
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
1038
1031
  **/
1039
- onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV6ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
1032
+ onChainVotes: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7ScrapedOnChainVotes>>, []> & QueryableStorageEntry<ApiType, []>;
1033
+ /**
1034
+ * Generic query
1035
+ **/
1036
+ [key: string]: QueryableStorageEntry<ApiType>;
1037
+ };
1038
+ parameters: {
1039
+ /**
1040
+ * Stored parameters.
1041
+ **/
1042
+ parameters: AugmentedQuery<ApiType, (arg: PolkadotRuntimeRuntimeParametersKey | {
1043
+ Inflation: any;
1044
+ } | string | Uint8Array) => Observable<Option<PolkadotRuntimeRuntimeParametersValue>>, [PolkadotRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [PolkadotRuntimeRuntimeParametersKey]>;
1040
1045
  /**
1041
1046
  * Generic query
1042
1047
  **/
@@ -1071,11 +1076,23 @@ declare module '@polkadot/api-base/types/storage' {
1071
1076
  **/
1072
1077
  futureCodeHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1073
1078
  /**
1074
- * The block number at which the planned code change is expected for a para.
1079
+ * The block number at which the planned code change is expected for a parachain.
1080
+ *
1075
1081
  * The change will be applied after the first parablock for this ID included which executes
1076
1082
  * in the context of a relay chain block with a number >= `expected_at`.
1077
1083
  **/
1078
1084
  futureCodeUpgrades: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1085
+ /**
1086
+ * The list of upcoming future code upgrades.
1087
+ *
1088
+ * Each item is a pair of the parachain and the expected block at which the upgrade should be
1089
+ * applied. The upgrade will be applied at the given relay chain block. In contrast to
1090
+ * [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
1091
+ * progress or not.
1092
+ *
1093
+ * Ordered ascending by block number.
1094
+ **/
1095
+ futureCodeUpgradesAt: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
1079
1096
  /**
1080
1097
  * The head-data of every registered para.
1081
1098
  **/
@@ -1136,8 +1153,10 @@ declare module '@polkadot/api-base/types/storage' {
1136
1153
  **/
1137
1154
  upcomingParasGenesis: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotRuntimeParachainsParasParaGenesisArgs>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1138
1155
  /**
1139
- * The list of upcoming code upgrades. Each item is a pair of which para performs a code
1140
- * upgrade and at which relay-chain block it is expected at.
1156
+ * The list of upcoming code upgrades.
1157
+ *
1158
+ * Each item is a pair of which para performs a code upgrade and at which relay-chain block it
1159
+ * is expected at.
1141
1160
  *
1142
1161
  * Ordered ascending by block number.
1143
1162
  **/
@@ -1160,7 +1179,7 @@ declare module '@polkadot/api-base/types/storage' {
1160
1179
  * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
1161
1180
  * the format will require migration of parachains.
1162
1181
  **/
1163
- upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1182
+ upgradeGoAheadSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeGoAhead>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1164
1183
  /**
1165
1184
  * This is used by the relay-chain to communicate that there are restrictions for performing
1166
1185
  * an upgrade for this parachain.
@@ -1172,7 +1191,7 @@ declare module '@polkadot/api-base/types/storage' {
1172
1191
  * NOTE that this field is used by parachains via merkle storage proofs, therefore changing
1173
1192
  * the format will require migration of parachains.
1174
1193
  **/
1175
- upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1194
+ upgradeRestrictionSignal: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7UpgradeRestriction>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1176
1195
  /**
1177
1196
  * Generic query
1178
1197
  **/
@@ -1180,10 +1199,8 @@ declare module '@polkadot/api-base/types/storage' {
1180
1199
  };
1181
1200
  paraScheduler: {
1182
1201
  /**
1183
- * One entry for each availability core. Entries are `None` if the core is not currently
1184
- * occupied. Can be temporarily `Some` if scheduled but not occupied.
1185
- * The i'th parachain belongs to the i'th core, with the remaining cores all being
1186
- * parathread-multiplexers.
1202
+ * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
1203
+ * remaining cores all being on demand parachain multiplexers.
1187
1204
  *
1188
1205
  * Bounded by the maximum of either of these two values:
1189
1206
  * * The number of parachains and parathread multiplexers
@@ -1192,10 +1209,8 @@ declare module '@polkadot/api-base/types/storage' {
1192
1209
  availabilityCores: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>, []> & QueryableStorageEntry<ApiType, []>;
1193
1210
  /**
1194
1211
  * One entry for each availability core. The `VecDeque` represents the assignments to be
1195
- * scheduled on that core. `None` is used to signal to not schedule the next para of the core
1196
- * as there is one currently being scheduled. Not using `None` here would overwrite the
1197
- * `CoreState` in the runtime API. The value contained here will not be valid after the end of
1198
- * a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
1212
+ * scheduled on that core. The value contained here will not be valid after the end of
1213
+ * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
1199
1214
  **/
1200
1215
  claimQueue: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, Vec<PolkadotRuntimeParachainsSchedulerPalletParasEntry>>>, []> & QueryableStorageEntry<ApiType, []>;
1201
1216
  /**
@@ -1232,7 +1247,7 @@ declare module '@polkadot/api-base/types/storage' {
1232
1247
  /**
1233
1248
  * All ongoing or concluded disputes for the last several sessions.
1234
1249
  **/
1235
- disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1250
+ disputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7DisputeState>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1236
1251
  /**
1237
1252
  * Whether the chain is frozen. Starts as `None`. When this is `Some`,
1238
1253
  * the chain will not accept any new parachain blocks for backing or inclusion,
@@ -1265,7 +1280,7 @@ declare module '@polkadot/api-base/types/storage' {
1265
1280
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
1266
1281
  * When in doubt, use `Sessions` API instead.
1267
1282
  **/
1268
- assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1283
+ assignmentKeysUnsafe: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7AssignmentAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1269
1284
  /**
1270
1285
  * The earliest session for which previous session info is stored.
1271
1286
  **/
@@ -1273,13 +1288,13 @@ declare module '@polkadot/api-base/types/storage' {
1273
1288
  /**
1274
1289
  * Executor parameter set for a given session index
1275
1290
  **/
1276
- sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1291
+ sessionExecutorParams: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7ExecutorParams>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1277
1292
  /**
1278
1293
  * Session information in a rolling window.
1279
1294
  * Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
1280
1295
  * Does not have any entries before the session index in the first session change notification.
1281
1296
  **/
1282
- sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1297
+ sessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SessionInfo>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1283
1298
  /**
1284
1299
  * Generic query
1285
1300
  **/
@@ -1295,7 +1310,7 @@ declare module '@polkadot/api-base/types/storage' {
1295
1310
  * The parachain attestation keys of the validators actively participating in parachain
1296
1311
  * consensus. This should be the same length as `ActiveValidatorIndices`.
1297
1312
  **/
1298
- activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV6ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1313
+ activeValidatorKeys: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotPrimitivesV7ValidatorAppPublic>>, []> & QueryableStorageEntry<ApiType, []>;
1299
1314
  /**
1300
1315
  * All allowed relay-parents.
1301
1316
  **/
@@ -1313,7 +1328,7 @@ declare module '@polkadot/api-base/types/storage' {
1313
1328
  /**
1314
1329
  * Validators pending dispute slashes.
1315
1330
  **/
1316
- unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV6SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1331
+ unappliedSlashes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PolkadotPrimitivesV7SlashingPendingSlashes>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1317
1332
  /**
1318
1333
  * `ValidatorSetCount` per session.
1319
1334
  **/
@@ -1421,6 +1436,10 @@ declare module '@polkadot/api-base/types/storage' {
1421
1436
  * identities.
1422
1437
  **/
1423
1438
  lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
1439
+ /**
1440
+ * Retry configurations for items to be executed, indexed by task address.
1441
+ **/
1442
+ retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
1424
1443
  /**
1425
1444
  * Generic query
1426
1445
  **/
@@ -1540,6 +1559,10 @@ declare module '@polkadot/api-base/types/storage' {
1540
1559
  * Counter for the related counted storage map
1541
1560
  **/
1542
1561
  counterForValidators: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1562
+ /**
1563
+ * Counter for the related counted storage map
1564
+ **/
1565
+ counterForVirtualStakers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1543
1566
  /**
1544
1567
  * The current era index.
1545
1568
  *
@@ -1553,6 +1576,16 @@ declare module '@polkadot/api-base/types/storage' {
1553
1576
  * This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
1554
1577
  **/
1555
1578
  currentPlannedSession: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1579
+ /**
1580
+ * Indices of validators that have offended in the active era. The offenders are disabled for a
1581
+ * whole era. For this reason they are kept here - only staking pallet knows about eras. The
1582
+ * implementor of [`DisablingStrategy`] defines if a validator should be disabled which
1583
+ * implicitly means that the implementor also controls the max number of disabled validators.
1584
+ *
1585
+ * The vec is always kept sorted so that we can find whether a given validator has previously
1586
+ * offended using binary search.
1587
+ **/
1588
+ disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1556
1589
  /**
1557
1590
  * Rewards for the last [`Config::HistoryDepth`] eras.
1558
1591
  * If reward hasn't been set or has been removed then 0 reward is returned.
@@ -1661,6 +1694,12 @@ declare module '@polkadot/api-base/types/storage' {
1661
1694
  * When this value is not set, no limits are enforced.
1662
1695
  **/
1663
1696
  maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
1697
+ /**
1698
+ * Maximum staked rewards, i.e. the percentage of the era inflation that
1699
+ * is used for stake rewards.
1700
+ * See [Era payout](./index.html#era-payout).
1701
+ **/
1702
+ maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
1664
1703
  /**
1665
1704
  * The maximum validator count before we stop allowing new validators to join.
1666
1705
  *
@@ -1715,18 +1754,6 @@ declare module '@polkadot/api-base/types/storage' {
1715
1754
  * All slashing events on nominators, mapped by era to the highest slash value of the era.
1716
1755
  **/
1717
1756
  nominatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1718
- /**
1719
- * Indices of validators that have offended in the active era and whether they are currently
1720
- * disabled.
1721
- *
1722
- * This value should be a superset of disabled validators since not all offences lead to the
1723
- * validator being disabled (if there was no slash). This is needed to track the percentage of
1724
- * validators that have offended in the current era, ensuring a new era is forced if
1725
- * `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
1726
- * whether a given validator has previously offended using binary search. It gets cleared when
1727
- * the era ends.
1728
- **/
1729
- offendingValidators: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, bool]>>>, []> & QueryableStorageEntry<ApiType, []>;
1730
1757
  /**
1731
1758
  * Where the reward payment should be made. Keyed by stash.
1732
1759
  *
@@ -1767,6 +1794,15 @@ declare module '@polkadot/api-base/types/storage' {
1767
1794
  * and slash value of the era.
1768
1795
  **/
1769
1796
  validatorSlashInEra: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[Perbill, u128]>>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
1797
+ /**
1798
+ * Stakers whose funds are managed by other pallets.
1799
+ *
1800
+ * This pallet does not apply any locks on them, therefore they are only virtually bonded. They
1801
+ * are expected to be keyless accounts and hence should not be allowed to mutate their ledger
1802
+ * directly via this pallet. Instead, these accounts are managed by other pallets and accessed
1803
+ * via low level apis. We keep track of them to do minimal integrity checks.
1804
+ **/
1805
+ virtualStakers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Null>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1770
1806
  /**
1771
1807
  * Generic query
1772
1808
  **/
@@ -1861,6 +1897,10 @@ declare module '@polkadot/api-base/types/storage' {
1861
1897
  * Extrinsics data for the current block (maps an extrinsic's index to its data).
1862
1898
  **/
1863
1899
  extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1900
+ /**
1901
+ * Whether all inherents have been applied.
1902
+ **/
1903
+ inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
1864
1904
  /**
1865
1905
  * Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
1866
1906
  **/
@@ -2011,6 +2051,15 @@ declare module '@polkadot/api-base/types/storage' {
2011
2051
  * The latest available query index.
2012
2052
  **/
2013
2053
  queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
2054
+ /**
2055
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
2056
+ * will be stored here.
2057
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
2058
+ *
2059
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
2060
+ * implementation in the XCM executor configuration.
2061
+ **/
2062
+ recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV4Instruction>>>, []> & QueryableStorageEntry<ApiType, []>;
2014
2063
  /**
2015
2064
  * Fungible assets which we know are locked on a remote chain.
2016
2065
  **/
@@ -2024,6 +2073,16 @@ declare module '@polkadot/api-base/types/storage' {
2024
2073
  * then the destinations whose XCM version is unknown are considered unreachable.
2025
2074
  **/
2026
2075
  safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
2076
+ /**
2077
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
2078
+ * Only one XCM program will be recorded at a time.
2079
+ * This is meant to be used in runtime APIs, and it's advised it stays false
2080
+ * for all other use cases, so as to not degrade regular performance.
2081
+ *
2082
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
2083
+ * implementation in the XCM executor configuration.
2084
+ **/
2085
+ shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
2027
2086
  /**
2028
2087
  * The Latest versions that we know various locations support.
2029
2088
  **/