@polkadot/api-augment 7.6.2-2 → 7.6.2-6

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.
@@ -699,7 +699,6 @@ declare module '@polkadot/api-base/types/consts' {
699
699
  * Number of eras that staked funds must remain bonded for.
700
700
  **/
701
701
  bondingDuration: u32 & AugmentedConst<ApiType>;
702
- maxNominations: u32 & AugmentedConst<ApiType>;
703
702
  /**
704
703
  * The maximum number of nominators rewarded for each validator.
705
704
  *
@@ -499,6 +499,10 @@ declare module '@polkadot/api-base/types/errors' {
499
499
  * The call is not allowed at this point.
500
500
  **/
501
501
  CallNotAllowed: AugmentedError<ApiType>;
502
+ /**
503
+ * The fallback failed
504
+ **/
505
+ FallbackFailed: AugmentedError<ApiType>;
502
506
  /**
503
507
  * `Self::insert_submission` returned an invalid index.
504
508
  **/
package/kusama/query.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1DisputeState, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
9
  declare module '@polkadot/api-base/types/storage' {
10
10
  interface AugmentedQueries<ApiType extends ApiTypes> {
@@ -181,8 +181,29 @@ declare module '@polkadot/api-base/types/storage' {
181
181
  };
182
182
  balances: {
183
183
  /**
184
- * The balance of an account.
184
+ * The Balances pallet example of storing the balance of an account.
185
185
  *
186
+ * # Example
187
+ *
188
+ * ```nocompile
189
+ * impl pallet_balances::Config for Runtime {
190
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
191
+ * }
192
+ * ```
193
+ *
194
+ * You can also store the balance of an account in the `System` pallet.
195
+ *
196
+ * # Example
197
+ *
198
+ * ```nocompile
199
+ * impl pallet_balances::Config for Runtime {
200
+ * type AccountStore = System
201
+ * }
202
+ * ```
203
+ *
204
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
205
+ * `frame_system` data alongside the account data contrary to storing account balances in the
206
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
186
207
  * NOTE: This is only used in the case that this pallet is used to store balances.
187
208
  **/
188
209
  account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
@@ -1230,12 +1251,6 @@ declare module '@polkadot/api-base/types/storage' {
1230
1251
  * Lookup from identity to the block number and index of the task.
1231
1252
  **/
1232
1253
  lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
1233
- /**
1234
- * Storage version of the pallet.
1235
- *
1236
- * New networks start with last version.
1237
- **/
1238
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>;
1239
1254
  /**
1240
1255
  * Generic query
1241
1256
  **/
@@ -1541,7 +1556,22 @@ declare module '@polkadot/api-base/types/storage' {
1541
1556
  **/
1542
1557
  minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1543
1558
  /**
1544
- * The map from nominator stash key to the set of stash keys of all validators to nominate.
1559
+ * The map from nominator stash key to their nomination preferences, namely the validators that
1560
+ * they wish to support.
1561
+ *
1562
+ * Note that the keys of this storage map might become non-decodable in case the
1563
+ * [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
1564
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
1565
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
1566
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
1567
+ * is within the bounds of the newly set `Config::MaxNominations`.
1568
+ *
1569
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
1570
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
1571
+ * number of keys that exist.
1572
+ *
1573
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
1574
+ * [`Call::chill_other`] dispatchable by anyone.
1545
1575
  **/
1546
1576
  nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1547
1577
  /**
package/kusama/tx.d.ts CHANGED
@@ -1320,6 +1320,13 @@ declare module '@polkadot/api-base/types/submittable' {
1320
1320
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1321
1321
  };
1322
1322
  electionProviderMultiPhase: {
1323
+ /**
1324
+ * Trigger the governance fallback.
1325
+ *
1326
+ * This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
1327
+ * calling [`Call::set_emergency_election_result`].
1328
+ **/
1329
+ governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | object | string | Uint8Array, maybeMaxTargets: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
1323
1330
  /**
1324
1331
  * Set a solution in the queue, to be handed out to the client of this pallet in the next
1325
1332
  * call to `ElectionProvider::elect`.
@@ -3515,14 +3522,6 @@ declare module '@polkadot/api-base/types/submittable' {
3515
3522
  * Can be called by the `T::SlashCancelOrigin`.
3516
3523
  *
3517
3524
  * Parameters: era and indices of the slashes for that era to kill.
3518
- *
3519
- * # <weight>
3520
- * Complexity: O(U + S)
3521
- * with U unapplied slashes weighted with U=1000
3522
- * and S is the number of slash indices to be canceled.
3523
- * - Read: Unapplied Slashes
3524
- * - Write: Unapplied Slashes
3525
- * # </weight>
3526
3525
  **/
3527
3526
  cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
3528
3527
  /**
@@ -3551,6 +3550,11 @@ declare module '@polkadot/api-base/types/submittable' {
3551
3550
  *
3552
3551
  * If the caller is different than the controller being targeted, the following conditions
3553
3552
  * must be met:
3553
+ *
3554
+ * * `controller` must belong to a nominator who has become non-decodable,
3555
+ *
3556
+ * Or:
3557
+ *
3554
3558
  * * A `ChillThreshold` must be set and checked which defines how close to the max
3555
3559
  * nominators or validators we must reach before users can start chilling one-another.
3556
3560
  * * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
@@ -3592,11 +3596,6 @@ declare module '@polkadot/api-base/types/submittable' {
3592
3596
  * The election process starts multiple blocks before the end of the era.
3593
3597
  * If this is called just before a new era is triggered, the election process may not
3594
3598
  * have enough blocks to get a result.
3595
- *
3596
- * # <weight>
3597
- * - Weight: O(1)
3598
- * - Write: ForceEra
3599
- * # </weight>
3600
3599
  **/
3601
3600
  forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3602
3601
  /**
@@ -3621,13 +3620,6 @@ declare module '@polkadot/api-base/types/submittable' {
3621
3620
  * Force a current staker to become completely unstaked, immediately.
3622
3621
  *
3623
3622
  * The dispatch origin must be Root.
3624
- *
3625
- * # <weight>
3626
- * O(S) where S is the number of slashing spans to be removed
3627
- * Reads: Bonded, Slashing Spans, Account, Locks
3628
- * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
3629
- * Account, Locks Writes Each: SpanSlash * S
3630
- * # </weight>
3631
3623
  **/
3632
3624
  forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
3633
3625
  /**
@@ -3673,7 +3665,7 @@ declare module '@polkadot/api-base/types/submittable' {
3673
3665
  *
3674
3666
  * # <weight>
3675
3667
  * - The transaction's complexity is proportional to the size of `targets` (N)
3676
- * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
3668
+ * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
3677
3669
  * - Both the reads and writes follow a similar pattern.
3678
3670
  * # </weight>
3679
3671
  **/
@@ -3807,11 +3799,6 @@ declare module '@polkadot/api-base/types/submittable' {
3807
3799
  * Set the validators who cannot be slashed (if any).
3808
3800
  *
3809
3801
  * The dispatch origin must be Root.
3810
- *
3811
- * # <weight>
3812
- * - O(V)
3813
- * - Write: Invulnerables
3814
- * # </weight>
3815
3802
  **/
3816
3803
  setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
3817
3804
  /**
@@ -3956,11 +3943,6 @@ declare module '@polkadot/api-base/types/submittable' {
3956
3943
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
3957
3944
  /**
3958
3945
  * Make some on-chain remark and emit event.
3959
- *
3960
- * # <weight>
3961
- * - `O(b)` where b is the length of the remark.
3962
- * - 1 event.
3963
- * # </weight>
3964
3946
  **/
3965
3947
  remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
3966
3948
  /**
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.6.2-2",
23
+ "version": "7.6.2-6",
24
24
  "main": "index.cjs",
25
25
  "module": "index.js",
26
26
  "types": "index.d.ts",
@@ -151,11 +151,11 @@
151
151
  },
152
152
  "dependencies": {
153
153
  "@babel/runtime": "^7.16.7",
154
- "@polkadot/api-base": "7.6.2-2",
155
- "@polkadot/rpc-augment": "7.6.2-2",
156
- "@polkadot/types": "7.6.2-2",
157
- "@polkadot/types-augment": "7.6.2-2",
158
- "@polkadot/types-codec": "7.6.2-2",
154
+ "@polkadot/api-base": "7.6.2-6",
155
+ "@polkadot/rpc-augment": "7.6.2-6",
156
+ "@polkadot/types": "7.6.2-6",
157
+ "@polkadot/types-augment": "7.6.2-6",
158
+ "@polkadot/types-codec": "7.6.2-6",
159
159
  "@polkadot/util": "^8.3.3"
160
160
  }
161
161
  }
package/packageInfo.cjs CHANGED
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/api-augment',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '7.6.2-2'
14
+ version: '7.6.2-6'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/api-augment',
6
6
  path: new URL('.', import.meta.url).pathname,
7
7
  type: 'esm',
8
- version: '7.6.2-2'
8
+ version: '7.6.2-6'
9
9
  };
@@ -571,7 +571,6 @@ declare module '@polkadot/api-base/types/consts' {
571
571
  * Number of eras that staked funds must remain bonded for.
572
572
  **/
573
573
  bondingDuration: u32 & AugmentedConst<ApiType>;
574
- maxNominations: u32 & AugmentedConst<ApiType>;
575
574
  /**
576
575
  * The maximum number of nominators rewarded for each validator.
577
576
  *
@@ -499,6 +499,10 @@ declare module '@polkadot/api-base/types/errors' {
499
499
  * The call is not allowed at this point.
500
500
  **/
501
501
  CallNotAllowed: AugmentedError<ApiType>;
502
+ /**
503
+ * The fallback failed
504
+ **/
505
+ FallbackFailed: AugmentedError<ApiType>;
502
506
  /**
503
507
  * `Self::insert_submission` returned an invalid index.
504
508
  **/
@@ -4,7 +4,7 @@ import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, W
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletCollectiveVotes, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduledV3, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV0ValidatorAppPublic, PolkadotPrimitivesV1AssignmentAppPublic, PolkadotPrimitivesV1CandidateCommitments, PolkadotPrimitivesV1CoreOccupied, PolkadotPrimitivesV1ScrapedOnChainVotes, PolkadotPrimitivesV1UpgradeGoAhead, PolkadotPrimitivesV1UpgradeRestriction, PolkadotPrimitivesV2SessionInfo, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsConfigurationMigrationV1HostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  import type { Observable } from '@polkadot/types/types';
9
9
  declare module '@polkadot/api-base/types/storage' {
10
10
  interface AugmentedQueries<ApiType extends ApiTypes> {
@@ -181,8 +181,29 @@ declare module '@polkadot/api-base/types/storage' {
181
181
  };
182
182
  balances: {
183
183
  /**
184
- * The balance of an account.
184
+ * The Balances pallet example of storing the balance of an account.
185
185
  *
186
+ * # Example
187
+ *
188
+ * ```nocompile
189
+ * impl pallet_balances::Config for Runtime {
190
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
191
+ * }
192
+ * ```
193
+ *
194
+ * You can also store the balance of an account in the `System` pallet.
195
+ *
196
+ * # Example
197
+ *
198
+ * ```nocompile
199
+ * impl pallet_balances::Config for Runtime {
200
+ * type AccountStore = System
201
+ * }
202
+ * ```
203
+ *
204
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
205
+ * `frame_system` data alongside the account data contrary to storing account balances in the
206
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
186
207
  * NOTE: This is only used in the case that this pallet is used to store balances.
187
208
  **/
188
209
  account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
@@ -1146,12 +1167,6 @@ declare module '@polkadot/api-base/types/storage' {
1146
1167
  * Lookup from identity to the block number and index of the task.
1147
1168
  **/
1148
1169
  lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
1149
- /**
1150
- * Storage version of the pallet.
1151
- *
1152
- * New networks start with last version.
1153
- **/
1154
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>;
1155
1170
  /**
1156
1171
  * Generic query
1157
1172
  **/
@@ -1386,7 +1401,22 @@ declare module '@polkadot/api-base/types/storage' {
1386
1401
  **/
1387
1402
  minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1388
1403
  /**
1389
- * The map from nominator stash key to the set of stash keys of all validators to nominate.
1404
+ * The map from nominator stash key to their nomination preferences, namely the validators that
1405
+ * they wish to support.
1406
+ *
1407
+ * Note that the keys of this storage map might become non-decodable in case the
1408
+ * [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
1409
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
1410
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
1411
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
1412
+ * is within the bounds of the newly set `Config::MaxNominations`.
1413
+ *
1414
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
1415
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
1416
+ * number of keys that exist.
1417
+ *
1418
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
1419
+ * [`Call::chill_other`] dispatchable by anyone.
1390
1420
  **/
1391
1421
  nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1392
1422
  /**
package/polkadot/tx.d.ts CHANGED
@@ -1320,6 +1320,13 @@ declare module '@polkadot/api-base/types/submittable' {
1320
1320
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1321
1321
  };
1322
1322
  electionProviderMultiPhase: {
1323
+ /**
1324
+ * Trigger the governance fallback.
1325
+ *
1326
+ * This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
1327
+ * calling [`Call::set_emergency_election_result`].
1328
+ **/
1329
+ governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | object | string | Uint8Array, maybeMaxTargets: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
1323
1330
  /**
1324
1331
  * Set a solution in the queue, to be handed out to the client of this pallet in the next
1325
1332
  * call to `ElectionProvider::elect`.
@@ -2913,14 +2920,6 @@ declare module '@polkadot/api-base/types/submittable' {
2913
2920
  * Can be called by the `T::SlashCancelOrigin`.
2914
2921
  *
2915
2922
  * Parameters: era and indices of the slashes for that era to kill.
2916
- *
2917
- * # <weight>
2918
- * Complexity: O(U + S)
2919
- * with U unapplied slashes weighted with U=1000
2920
- * and S is the number of slash indices to be canceled.
2921
- * - Read: Unapplied Slashes
2922
- * - Write: Unapplied Slashes
2923
- * # </weight>
2924
2923
  **/
2925
2924
  cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
2926
2925
  /**
@@ -2949,6 +2948,11 @@ declare module '@polkadot/api-base/types/submittable' {
2949
2948
  *
2950
2949
  * If the caller is different than the controller being targeted, the following conditions
2951
2950
  * must be met:
2951
+ *
2952
+ * * `controller` must belong to a nominator who has become non-decodable,
2953
+ *
2954
+ * Or:
2955
+ *
2952
2956
  * * A `ChillThreshold` must be set and checked which defines how close to the max
2953
2957
  * nominators or validators we must reach before users can start chilling one-another.
2954
2958
  * * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
@@ -2990,11 +2994,6 @@ declare module '@polkadot/api-base/types/submittable' {
2990
2994
  * The election process starts multiple blocks before the end of the era.
2991
2995
  * If this is called just before a new era is triggered, the election process may not
2992
2996
  * have enough blocks to get a result.
2993
- *
2994
- * # <weight>
2995
- * - Weight: O(1)
2996
- * - Write: ForceEra
2997
- * # </weight>
2998
2997
  **/
2999
2998
  forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3000
2999
  /**
@@ -3019,13 +3018,6 @@ declare module '@polkadot/api-base/types/submittable' {
3019
3018
  * Force a current staker to become completely unstaked, immediately.
3020
3019
  *
3021
3020
  * The dispatch origin must be Root.
3022
- *
3023
- * # <weight>
3024
- * O(S) where S is the number of slashing spans to be removed
3025
- * Reads: Bonded, Slashing Spans, Account, Locks
3026
- * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
3027
- * Account, Locks Writes Each: SpanSlash * S
3028
- * # </weight>
3029
3021
  **/
3030
3022
  forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
3031
3023
  /**
@@ -3071,7 +3063,7 @@ declare module '@polkadot/api-base/types/submittable' {
3071
3063
  *
3072
3064
  * # <weight>
3073
3065
  * - The transaction's complexity is proportional to the size of `targets` (N)
3074
- * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
3066
+ * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
3075
3067
  * - Both the reads and writes follow a similar pattern.
3076
3068
  * # </weight>
3077
3069
  **/
@@ -3205,11 +3197,6 @@ declare module '@polkadot/api-base/types/submittable' {
3205
3197
  * Set the validators who cannot be slashed (if any).
3206
3198
  *
3207
3199
  * The dispatch origin must be Root.
3208
- *
3209
- * # <weight>
3210
- * - O(V)
3211
- * - Write: Invulnerables
3212
- * # </weight>
3213
3200
  **/
3214
3201
  setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
3215
3202
  /**
@@ -3354,11 +3341,6 @@ declare module '@polkadot/api-base/types/submittable' {
3354
3341
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
3355
3342
  /**
3356
3343
  * Make some on-chain remark and emit event.
3357
- *
3358
- * # <weight>
3359
- * - `O(b)` where b is the length of the remark.
3360
- * - 1 event.
3361
- * # </weight>
3362
3344
  **/
3363
3345
  remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
3364
3346
  /**
@@ -743,7 +743,6 @@ declare module '@polkadot/api-base/types/consts' {
743
743
  * Number of eras that staked funds must remain bonded for.
744
744
  **/
745
745
  bondingDuration: u32 & AugmentedConst<ApiType>;
746
- maxNominations: u32 & AugmentedConst<ApiType>;
747
746
  /**
748
747
  * The maximum number of nominators rewarded for each validator.
749
748
  *
@@ -547,6 +547,10 @@ declare module '@polkadot/api-base/types/errors' {
547
547
  * The call is not allowed at this point.
548
548
  **/
549
549
  CallNotAllowed: AugmentedError<ApiType>;
550
+ /**
551
+ * The fallback failed
552
+ **/
553
+ FallbackFailed: AugmentedError<ApiType>;
550
554
  /**
551
555
  * `Self::insert_submission` returned an invalid index.
552
556
  **/
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
3
3
  import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
6
- import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerReleases, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
6
+ import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
7
7
  import type { Observable } from '@polkadot/types/types';
8
8
  declare module '@polkadot/api-base/types/storage' {
9
9
  interface AugmentedQueries<ApiType extends ApiTypes> {
@@ -846,12 +846,6 @@ declare module '@polkadot/api-base/types/storage' {
846
846
  * Lookup from identity to the block number and index of the task.
847
847
  **/
848
848
  lookup: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
849
- /**
850
- * Storage version of the pallet.
851
- *
852
- * New networks start with last version.
853
- **/
854
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletSchedulerReleases>, []> & QueryableStorageEntry<ApiType, []>;
855
849
  /**
856
850
  * Generic query
857
851
  **/
@@ -1132,7 +1126,22 @@ declare module '@polkadot/api-base/types/storage' {
1132
1126
  **/
1133
1127
  minValidatorBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1134
1128
  /**
1135
- * The map from nominator stash key to the set of stash keys of all validators to nominate.
1129
+ * The map from nominator stash key to their nomination preferences, namely the validators that
1130
+ * they wish to support.
1131
+ *
1132
+ * Note that the keys of this storage map might become non-decodable in case the
1133
+ * [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
1134
+ * are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
1135
+ * indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
1136
+ * nominators will effectively not-exist, until they re-submit their preferences such that it
1137
+ * is within the bounds of the newly set `Config::MaxNominations`.
1138
+ *
1139
+ * This implies that `::iter_keys().count()` and `::iter().count()` might return different
1140
+ * values for this map. Moreover, the main `::count()` is aligned with the former, namely the
1141
+ * number of keys that exist.
1142
+ *
1143
+ * Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
1144
+ * [`Call::chill_other`] dispatchable by anyone.
1136
1145
  **/
1137
1146
  nominators: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingNominations>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1138
1147
  /**
package/substrate/tx.d.ts CHANGED
@@ -1873,6 +1873,13 @@ declare module '@polkadot/api-base/types/submittable' {
1873
1873
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
1874
1874
  };
1875
1875
  electionProviderMultiPhase: {
1876
+ /**
1877
+ * Trigger the governance fallback.
1878
+ *
1879
+ * This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
1880
+ * calling [`Call::set_emergency_election_result`].
1881
+ **/
1882
+ governanceFallback: AugmentedSubmittable<(maybeMaxVoters: Option<u32> | null | object | string | Uint8Array, maybeMaxTargets: Option<u32> | null | object | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<u32>, Option<u32>]>;
1876
1883
  /**
1877
1884
  * Set a solution in the queue, to be handed out to the client of this pallet in the next
1878
1885
  * call to `ElectionProvider::elect`.
@@ -3831,14 +3838,6 @@ declare module '@polkadot/api-base/types/submittable' {
3831
3838
  * Can be called by the `T::SlashCancelOrigin`.
3832
3839
  *
3833
3840
  * Parameters: era and indices of the slashes for that era to kill.
3834
- *
3835
- * # <weight>
3836
- * Complexity: O(U + S)
3837
- * with U unapplied slashes weighted with U=1000
3838
- * and S is the number of slash indices to be canceled.
3839
- * - Read: Unapplied Slashes
3840
- * - Write: Unapplied Slashes
3841
- * # </weight>
3842
3841
  **/
3843
3842
  cancelDeferredSlash: AugmentedSubmittable<(era: u32 | AnyNumber | Uint8Array, slashIndices: Vec<u32> | (u32 | AnyNumber | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<u32>]>;
3844
3843
  /**
@@ -3867,6 +3866,11 @@ declare module '@polkadot/api-base/types/submittable' {
3867
3866
  *
3868
3867
  * If the caller is different than the controller being targeted, the following conditions
3869
3868
  * must be met:
3869
+ *
3870
+ * * `controller` must belong to a nominator who has become non-decodable,
3871
+ *
3872
+ * Or:
3873
+ *
3870
3874
  * * A `ChillThreshold` must be set and checked which defines how close to the max
3871
3875
  * nominators or validators we must reach before users can start chilling one-another.
3872
3876
  * * A `MaxNominatorCount` and `MaxValidatorCount` must be set which is used to determine
@@ -3908,11 +3912,6 @@ declare module '@polkadot/api-base/types/submittable' {
3908
3912
  * The election process starts multiple blocks before the end of the era.
3909
3913
  * If this is called just before a new era is triggered, the election process may not
3910
3914
  * have enough blocks to get a result.
3911
- *
3912
- * # <weight>
3913
- * - Weight: O(1)
3914
- * - Write: ForceEra
3915
- * # </weight>
3916
3915
  **/
3917
3916
  forceNewEraAlways: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
3918
3917
  /**
@@ -3937,13 +3936,6 @@ declare module '@polkadot/api-base/types/submittable' {
3937
3936
  * Force a current staker to become completely unstaked, immediately.
3938
3937
  *
3939
3938
  * The dispatch origin must be Root.
3940
- *
3941
- * # <weight>
3942
- * O(S) where S is the number of slashing spans to be removed
3943
- * Reads: Bonded, Slashing Spans, Account, Locks
3944
- * Writes: Bonded, Slashing Spans (if S > 0), Ledger, Payee, Validators, Nominators,
3945
- * Account, Locks Writes Each: SpanSlash * S
3946
- * # </weight>
3947
3939
  **/
3948
3940
  forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
3949
3941
  /**
@@ -3989,7 +3981,7 @@ declare module '@polkadot/api-base/types/submittable' {
3989
3981
  *
3990
3982
  * # <weight>
3991
3983
  * - The transaction's complexity is proportional to the size of `targets` (N)
3992
- * which is capped at CompactAssignments::LIMIT (MAX_NOMINATIONS).
3984
+ * which is capped at CompactAssignments::LIMIT (T::MaxNominations).
3993
3985
  * - Both the reads and writes follow a similar pattern.
3994
3986
  * # </weight>
3995
3987
  **/
@@ -4123,11 +4115,6 @@ declare module '@polkadot/api-base/types/submittable' {
4123
4115
  * Set the validators who cannot be slashed (if any).
4124
4116
  *
4125
4117
  * The dispatch origin must be Root.
4126
- *
4127
- * # <weight>
4128
- * - O(V)
4129
- * - Write: Invulnerables
4130
- * # </weight>
4131
4118
  **/
4132
4119
  setInvulnerables: AugmentedSubmittable<(invulnerables: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
4133
4120
  /**
@@ -4360,11 +4347,6 @@ declare module '@polkadot/api-base/types/submittable' {
4360
4347
  remark: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4361
4348
  /**
4362
4349
  * Make some on-chain remark and emit event.
4363
- *
4364
- * # <weight>
4365
- * - `O(b)` where b is the length of the remark.
4366
- * - 1 event.
4367
- * # </weight>
4368
4350
  **/
4369
4351
  remarkWithEvent: AugmentedSubmittable<(remark: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Bytes]>;
4370
4352
  /**