@dedot/chaintypes 0.62.0 → 0.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,11 +5,11 @@ import type {
5
5
  H256,
6
6
  DispatchError,
7
7
  AccountId32,
8
+ Result,
8
9
  Perbill,
9
10
  FixedBytes,
10
11
  Bytes,
11
12
  Perquintill,
12
- Result,
13
13
  BytesLike,
14
14
  Header,
15
15
  MultiAddress,
@@ -307,11 +307,6 @@ export type PalletStakingPalletEvent =
307
307
  * A staker (validator or nominator) has been slashed by the given amount.
308
308
  **/
309
309
  | { name: 'Slashed'; data: { staker: AccountId32; amount: bigint } }
310
- /**
311
- * A slash for the given validator, for the given percentage of their stake, at the given
312
- * era as been reported.
313
- **/
314
- | { name: 'SlashReported'; data: { validator: AccountId32; fraction: Perbill; slashEra: number } }
315
310
  /**
316
311
  * An old slashing report from a prior era was discarded because it could
317
312
  * not be processed.
@@ -368,14 +363,41 @@ export type PalletStakingPalletEvent =
368
363
  * Targets size limit reached.
369
364
  **/
370
365
  | { name: 'SnapshotTargetsSizeExceeded'; data: { size: number } }
371
- /**
372
- * A new force era mode was set.
373
- **/
374
366
  | { name: 'ForceEra'; data: { mode: PalletStakingForcing } }
375
367
  /**
376
368
  * Report of a controller batch deprecation.
377
369
  **/
378
- | { name: 'ControllerBatchDeprecated'; data: { failures: number } };
370
+ | { name: 'ControllerBatchDeprecated'; data: { failures: number } }
371
+ /**
372
+ * Staking balance migrated from locks to holds, with any balance that could not be held
373
+ * is force withdrawn.
374
+ **/
375
+ | { name: 'CurrencyMigrated'; data: { stash: AccountId32; forceWithdraw: bigint } }
376
+ /**
377
+ * A page from a multi-page election was fetched. A number of these are followed by
378
+ * `StakersElected`.
379
+ *
380
+ * `Ok(count)` indicates the give number of stashes were added.
381
+ * `Err(index)` indicates that the stashes after index were dropped.
382
+ * `Err(0)` indicates that an error happened but no stashes were dropped nor added.
383
+ *
384
+ * The error indicates that a number of validators were dropped due to excess size, but
385
+ * the overall election will continue.
386
+ **/
387
+ | { name: 'PagedElectionProceeded'; data: { page: number; result: Result<number, number> } }
388
+ /**
389
+ * An offence for the given validator, for the given percentage of their stake, at the
390
+ * given era as been reported.
391
+ **/
392
+ | { name: 'OffenceReported'; data: { offenceEra: number; validator: AccountId32; fraction: Perbill } }
393
+ /**
394
+ * An offence has been processed and the corresponding slash has been computed.
395
+ **/
396
+ | { name: 'SlashComputed'; data: { offenceEra: number; slashEra: number; offender: AccountId32; page: number } }
397
+ /**
398
+ * An unapplied slash has been cancelled.
399
+ **/
400
+ | { name: 'SlashCancelled'; data: { slashEra: number; slashKey: [AccountId32, Perbill, number]; payout: bigint } };
379
401
 
380
402
  export type PalletStakingRewardDestination =
381
403
  | { type: 'Staked' }
@@ -470,7 +492,15 @@ export type PalletSessionEvent =
470
492
  * New session has happened. Note that the argument is the session index, not the
471
493
  * block number as the type might suggest.
472
494
  **/
473
- { name: 'NewSession'; data: { sessionIndex: number } };
495
+ | { name: 'NewSession'; data: { sessionIndex: number } }
496
+ /**
497
+ * Validator has been disabled.
498
+ **/
499
+ | { name: 'ValidatorDisabled'; data: { validator: AccountId32 } }
500
+ /**
501
+ * Validator has been re-enabled.
502
+ **/
503
+ | { name: 'ValidatorReenabled'; data: { validator: AccountId32 } };
474
504
 
475
505
  /**
476
506
  * The `Event` enum of this pallet
@@ -519,7 +549,15 @@ export type PalletUtilityEvent =
519
549
  /**
520
550
  * A call was dispatched.
521
551
  **/
522
- | { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } };
552
+ | { name: 'DispatchedAs'; data: { result: Result<[], DispatchError> } }
553
+ /**
554
+ * Main call was dispatched.
555
+ **/
556
+ | { name: 'IfElseMainSuccess' }
557
+ /**
558
+ * The fallback call was dispatched.
559
+ **/
560
+ | { name: 'IfElseFallbackCalled'; data: { mainError: DispatchError } };
523
561
 
524
562
  /**
525
563
  * The `Event` enum of this pallet
@@ -818,7 +856,8 @@ export type WestendRuntimeProxyType =
818
856
  | 'IdentityJudgement'
819
857
  | 'CancelProxy'
820
858
  | 'Auction'
821
- | 'NominationPools';
859
+ | 'NominationPools'
860
+ | 'ParaRegistration';
822
861
 
823
862
  /**
824
863
  * The `Event` enum of this pallet
@@ -1050,7 +1089,41 @@ export type PalletNominationPoolsEvent =
1050
1089
  /**
1051
1090
  * Claimed excess frozen ED of af the reward pool.
1052
1091
  **/
1053
- | { name: 'MinBalanceExcessAdjusted'; data: { poolId: number; amount: bigint } };
1092
+ | { name: 'MinBalanceExcessAdjusted'; data: { poolId: number; amount: bigint } }
1093
+ /**
1094
+ * A pool member's claim permission has been updated.
1095
+ **/
1096
+ | {
1097
+ name: 'MemberClaimPermissionUpdated';
1098
+ data: { member: AccountId32; permission: PalletNominationPoolsClaimPermission };
1099
+ }
1100
+ /**
1101
+ * A pool's metadata was updated.
1102
+ **/
1103
+ | { name: 'MetadataUpdated'; data: { poolId: number; caller: AccountId32 } }
1104
+ /**
1105
+ * A pool's nominating account (or the pool's root account) has nominated a validator set
1106
+ * on behalf of the pool.
1107
+ **/
1108
+ | { name: 'PoolNominationMade'; data: { poolId: number; caller: AccountId32 } }
1109
+ /**
1110
+ * The pool is chilled i.e. no longer nominating.
1111
+ **/
1112
+ | { name: 'PoolNominatorChilled'; data: { poolId: number; caller: AccountId32 } }
1113
+ /**
1114
+ * Global parameters regulating nomination pools have been updated.
1115
+ **/
1116
+ | {
1117
+ name: 'GlobalParamsUpdated';
1118
+ data: {
1119
+ minJoinBond: bigint;
1120
+ minCreateBond: bigint;
1121
+ maxPools?: number | undefined;
1122
+ maxMembers?: number | undefined;
1123
+ maxMembersPerPool?: number | undefined;
1124
+ globalMaxCommission?: Perbill | undefined;
1125
+ };
1126
+ };
1054
1127
 
1055
1128
  export type PalletNominationPoolsPoolState = 'Open' | 'Blocked' | 'Destroying';
1056
1129
 
@@ -1060,6 +1133,12 @@ export type PalletNominationPoolsCommissionClaimPermission =
1060
1133
  | { type: 'Permissionless' }
1061
1134
  | { type: 'Account'; value: AccountId32 };
1062
1135
 
1136
+ export type PalletNominationPoolsClaimPermission =
1137
+ | 'Permissioned'
1138
+ | 'PermissionlessCompound'
1139
+ | 'PermissionlessWithdraw'
1140
+ | 'PermissionlessAll';
1141
+
1063
1142
  /**
1064
1143
  * The `Event` enum of this pallet
1065
1144
  **/
@@ -1101,13 +1180,17 @@ export type PalletConvictionVotingEvent =
1101
1180
  **/
1102
1181
  | { name: 'Undelegated'; data: AccountId32 }
1103
1182
  /**
1104
- * An account that has voted
1183
+ * An account has voted
1105
1184
  **/
1106
1185
  | { name: 'Voted'; data: { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote } }
1107
1186
  /**
1108
- * A vote that been removed
1187
+ * A vote has been removed
1188
+ **/
1189
+ | { name: 'VoteRemoved'; data: { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote } }
1190
+ /**
1191
+ * The lockup period of a conviction vote expired, and the funds have been unlocked.
1109
1192
  **/
1110
- | { name: 'VoteRemoved'; data: { who: AccountId32; vote: PalletConvictionVotingVoteAccountVote } };
1193
+ | { name: 'VoteUnlocked'; data: { who: AccountId32; class: number } };
1111
1194
 
1112
1195
  export type PalletConvictionVotingVoteAccountVote =
1113
1196
  | { type: 'Standard'; value: { vote: PalletConvictionVotingVote; balance: bigint } }
@@ -2300,7 +2383,7 @@ export type PalletStakingPalletCall =
2300
2383
  | { name: 'SetValidatorCount'; params: { new: number } }
2301
2384
  /**
2302
2385
  * Increments the ideal number of validators up to maximum of
2303
- * `ElectionProviderBase::MaxWinners`.
2386
+ * `T::MaxValidatorSet`.
2304
2387
  *
2305
2388
  * The dispatch origin must be Root.
2306
2389
  *
@@ -2310,7 +2393,7 @@ export type PalletStakingPalletCall =
2310
2393
  | { name: 'IncreaseValidatorCount'; params: { additional: number } }
2311
2394
  /**
2312
2395
  * Scale up the ideal number of validators by a factor up to maximum of
2313
- * `ElectionProviderBase::MaxWinners`.
2396
+ * `T::MaxValidatorSet`.
2314
2397
  *
2315
2398
  * The dispatch origin must be Root.
2316
2399
  *
@@ -2381,13 +2464,17 @@ export type PalletStakingPalletCall =
2381
2464
  **/
2382
2465
  | { name: 'ForceNewEraAlways' }
2383
2466
  /**
2384
- * Cancel enactment of a deferred slash.
2467
+ * Cancels scheduled slashes for a given era before they are applied.
2385
2468
  *
2386
- * Can be called by the `T::AdminOrigin`.
2469
+ * This function allows `T::AdminOrigin` to selectively remove pending slashes from
2470
+ * the `UnappliedSlashes` storage, preventing their enactment.
2387
2471
  *
2388
- * Parameters: era and indices of the slashes for that era to kill.
2472
+ * ## Parameters
2473
+ * - `era`: The staking era for which slashes were deferred.
2474
+ * - `slash_keys`: A list of slash keys identifying the slashes to remove. This is a tuple
2475
+ * of `(stash, slash_fraction, page_index)`.
2389
2476
  **/
2390
- | { name: 'CancelDeferredSlash'; params: { era: number; slashIndices: Array<number> } }
2477
+ | { name: 'CancelDeferredSlash'; params: { era: number; slashKeys: Array<[AccountId32, Perbill, number]> } }
2391
2478
  /**
2392
2479
  * Pay out next page of the stakers behind a validator for the given era.
2393
2480
  *
@@ -2582,7 +2669,51 @@ export type PalletStakingPalletCall =
2582
2669
  maybeTotal?: bigint | undefined;
2583
2670
  maybeUnlocking?: Array<PalletStakingUnlockChunk> | undefined;
2584
2671
  };
2585
- };
2672
+ }
2673
+ /**
2674
+ * Migrates permissionlessly a stash from locks to holds.
2675
+ *
2676
+ * This removes the old lock on the stake and creates a hold on it atomically. If all
2677
+ * stake cannot be held, the best effort is made to hold as much as possible. The remaining
2678
+ * stake is removed from the ledger.
2679
+ *
2680
+ * The fee is waived if the migration is successful.
2681
+ **/
2682
+ | { name: 'MigrateCurrency'; params: { stash: AccountId32 } }
2683
+ /**
2684
+ * Manually applies a deferred slash for a given era.
2685
+ *
2686
+ * Normally, slashes are automatically applied shortly after the start of the `slash_era`.
2687
+ * This function exists as a **fallback mechanism** in case slashes were not applied due to
2688
+ * unexpected reasons. It allows anyone to manually apply an unapplied slash.
2689
+ *
2690
+ * ## Parameters
2691
+ * - `slash_era`: The staking era in which the slash was originally scheduled.
2692
+ * - `slash_key`: A unique identifier for the slash, represented as a tuple:
2693
+ * - `stash`: The stash account of the validator being slashed.
2694
+ * - `slash_fraction`: The fraction of the stake that was slashed.
2695
+ * - `page_index`: The index of the exposure page being processed.
2696
+ *
2697
+ * ## Behavior
2698
+ * - The function is **permissionless**—anyone can call it.
2699
+ * - The `slash_era` **must be the current era or a past era**. If it is in the future, the
2700
+ * call fails with `EraNotStarted`.
2701
+ * - The fee is waived if the slash is successfully applied.
2702
+ *
2703
+ * ## TODO: Future Improvement
2704
+ * - Implement an **off-chain worker (OCW) task** to automatically apply slashes when there
2705
+ * is unused block space, improving efficiency.
2706
+ **/
2707
+ | { name: 'ApplySlash'; params: { slashEra: number; slashKey: [AccountId32, Perbill, number] } }
2708
+ /**
2709
+ * Adjusts the staking ledger by withdrawing any excess staked amount.
2710
+ *
2711
+ * This function corrects cases where a user's recorded stake in the ledger
2712
+ * exceeds their actual staked funds. This situation can arise due to cases such as
2713
+ * external slashing by another pallet, leading to an inconsistency between the ledger
2714
+ * and the actual stake.
2715
+ **/
2716
+ | { name: 'WithdrawOverstake'; params: { stash: AccountId32 } };
2586
2717
 
2587
2718
  export type PalletStakingPalletCallLike =
2588
2719
  /**
@@ -2746,7 +2877,7 @@ export type PalletStakingPalletCallLike =
2746
2877
  | { name: 'SetValidatorCount'; params: { new: number } }
2747
2878
  /**
2748
2879
  * Increments the ideal number of validators up to maximum of
2749
- * `ElectionProviderBase::MaxWinners`.
2880
+ * `T::MaxValidatorSet`.
2750
2881
  *
2751
2882
  * The dispatch origin must be Root.
2752
2883
  *
@@ -2756,7 +2887,7 @@ export type PalletStakingPalletCallLike =
2756
2887
  | { name: 'IncreaseValidatorCount'; params: { additional: number } }
2757
2888
  /**
2758
2889
  * Scale up the ideal number of validators by a factor up to maximum of
2759
- * `ElectionProviderBase::MaxWinners`.
2890
+ * `T::MaxValidatorSet`.
2760
2891
  *
2761
2892
  * The dispatch origin must be Root.
2762
2893
  *
@@ -2827,13 +2958,17 @@ export type PalletStakingPalletCallLike =
2827
2958
  **/
2828
2959
  | { name: 'ForceNewEraAlways' }
2829
2960
  /**
2830
- * Cancel enactment of a deferred slash.
2961
+ * Cancels scheduled slashes for a given era before they are applied.
2831
2962
  *
2832
- * Can be called by the `T::AdminOrigin`.
2963
+ * This function allows `T::AdminOrigin` to selectively remove pending slashes from
2964
+ * the `UnappliedSlashes` storage, preventing their enactment.
2833
2965
  *
2834
- * Parameters: era and indices of the slashes for that era to kill.
2966
+ * ## Parameters
2967
+ * - `era`: The staking era for which slashes were deferred.
2968
+ * - `slash_keys`: A list of slash keys identifying the slashes to remove. This is a tuple
2969
+ * of `(stash, slash_fraction, page_index)`.
2835
2970
  **/
2836
- | { name: 'CancelDeferredSlash'; params: { era: number; slashIndices: Array<number> } }
2971
+ | { name: 'CancelDeferredSlash'; params: { era: number; slashKeys: Array<[AccountId32Like, Perbill, number]> } }
2837
2972
  /**
2838
2973
  * Pay out next page of the stakers behind a validator for the given era.
2839
2974
  *
@@ -3028,7 +3163,51 @@ export type PalletStakingPalletCallLike =
3028
3163
  maybeTotal?: bigint | undefined;
3029
3164
  maybeUnlocking?: Array<PalletStakingUnlockChunk> | undefined;
3030
3165
  };
3031
- };
3166
+ }
3167
+ /**
3168
+ * Migrates permissionlessly a stash from locks to holds.
3169
+ *
3170
+ * This removes the old lock on the stake and creates a hold on it atomically. If all
3171
+ * stake cannot be held, the best effort is made to hold as much as possible. The remaining
3172
+ * stake is removed from the ledger.
3173
+ *
3174
+ * The fee is waived if the migration is successful.
3175
+ **/
3176
+ | { name: 'MigrateCurrency'; params: { stash: AccountId32Like } }
3177
+ /**
3178
+ * Manually applies a deferred slash for a given era.
3179
+ *
3180
+ * Normally, slashes are automatically applied shortly after the start of the `slash_era`.
3181
+ * This function exists as a **fallback mechanism** in case slashes were not applied due to
3182
+ * unexpected reasons. It allows anyone to manually apply an unapplied slash.
3183
+ *
3184
+ * ## Parameters
3185
+ * - `slash_era`: The staking era in which the slash was originally scheduled.
3186
+ * - `slash_key`: A unique identifier for the slash, represented as a tuple:
3187
+ * - `stash`: The stash account of the validator being slashed.
3188
+ * - `slash_fraction`: The fraction of the stake that was slashed.
3189
+ * - `page_index`: The index of the exposure page being processed.
3190
+ *
3191
+ * ## Behavior
3192
+ * - The function is **permissionless**—anyone can call it.
3193
+ * - The `slash_era` **must be the current era or a past era**. If it is in the future, the
3194
+ * call fails with `EraNotStarted`.
3195
+ * - The fee is waived if the slash is successfully applied.
3196
+ *
3197
+ * ## TODO: Future Improvement
3198
+ * - Implement an **off-chain worker (OCW) task** to automatically apply slashes when there
3199
+ * is unused block space, improving efficiency.
3200
+ **/
3201
+ | { name: 'ApplySlash'; params: { slashEra: number; slashKey: [AccountId32Like, Perbill, number] } }
3202
+ /**
3203
+ * Adjusts the staking ledger by withdrawing any excess staked amount.
3204
+ *
3205
+ * This function corrects cases where a user's recorded stake in the ledger
3206
+ * exceeds their actual staked funds. This situation can arise due to cases such as
3207
+ * external slashing by another pallet, leading to an inconsistency between the ledger
3208
+ * and the actual stake.
3209
+ **/
3210
+ | { name: 'WithdrawOverstake'; params: { stash: AccountId32Like } };
3032
3211
 
3033
3212
  export type PalletStakingPalletConfigOp = { type: 'Noop' } | { type: 'Set'; value: bigint } | { type: 'Remove' };
3034
3213
 
@@ -3360,7 +3539,41 @@ export type PalletUtilityCall =
3360
3539
  *
3361
3540
  * The dispatch origin for this call must be _Root_.
3362
3541
  **/
3363
- | { name: 'WithWeight'; params: { call: WestendRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } };
3542
+ | { name: 'WithWeight'; params: { call: WestendRuntimeRuntimeCall; weight: SpWeightsWeightV2Weight } }
3543
+ /**
3544
+ * Dispatch a fallback call in the event the main call fails to execute.
3545
+ * May be called from any origin except `None`.
3546
+ *
3547
+ * This function first attempts to dispatch the `main` call.
3548
+ * If the `main` call fails, the `fallback` is attemted.
3549
+ * if the fallback is successfully dispatched, the weights of both calls
3550
+ * are accumulated and an event containing the main call error is deposited.
3551
+ *
3552
+ * In the event of a fallback failure the whole call fails
3553
+ * with the weights returned.
3554
+ *
3555
+ * - `main`: The main call to be dispatched. This is the primary action to execute.
3556
+ * - `fallback`: The fallback call to be dispatched in case the `main` call fails.
3557
+ *
3558
+ * ## Dispatch Logic
3559
+ * - If the origin is `root`, both the main and fallback calls are executed without
3560
+ * applying any origin filters.
3561
+ * - If the origin is not `root`, the origin filter is applied to both the `main` and
3562
+ * `fallback` calls.
3563
+ *
3564
+ * ## Use Case
3565
+ * - Some use cases might involve submitting a `batch` type call in either main, fallback
3566
+ * or both.
3567
+ **/
3568
+ | { name: 'IfElse'; params: { main: WestendRuntimeRuntimeCall; fallback: WestendRuntimeRuntimeCall } }
3569
+ /**
3570
+ * Dispatches a function call with a provided origin.
3571
+ *
3572
+ * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
3573
+ *
3574
+ * The dispatch origin for this call must be _Root_.
3575
+ **/
3576
+ | { name: 'DispatchAsFallible'; params: { asOrigin: WestendRuntimeOriginCaller; call: WestendRuntimeRuntimeCall } };
3364
3577
 
3365
3578
  export type PalletUtilityCallLike =
3366
3579
  /**
@@ -3449,14 +3662,50 @@ export type PalletUtilityCallLike =
3449
3662
  *
3450
3663
  * The dispatch origin for this call must be _Root_.
3451
3664
  **/
3452
- | { name: 'WithWeight'; params: { call: WestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } };
3665
+ | { name: 'WithWeight'; params: { call: WestendRuntimeRuntimeCallLike; weight: SpWeightsWeightV2Weight } }
3666
+ /**
3667
+ * Dispatch a fallback call in the event the main call fails to execute.
3668
+ * May be called from any origin except `None`.
3669
+ *
3670
+ * This function first attempts to dispatch the `main` call.
3671
+ * If the `main` call fails, the `fallback` is attemted.
3672
+ * if the fallback is successfully dispatched, the weights of both calls
3673
+ * are accumulated and an event containing the main call error is deposited.
3674
+ *
3675
+ * In the event of a fallback failure the whole call fails
3676
+ * with the weights returned.
3677
+ *
3678
+ * - `main`: The main call to be dispatched. This is the primary action to execute.
3679
+ * - `fallback`: The fallback call to be dispatched in case the `main` call fails.
3680
+ *
3681
+ * ## Dispatch Logic
3682
+ * - If the origin is `root`, both the main and fallback calls are executed without
3683
+ * applying any origin filters.
3684
+ * - If the origin is not `root`, the origin filter is applied to both the `main` and
3685
+ * `fallback` calls.
3686
+ *
3687
+ * ## Use Case
3688
+ * - Some use cases might involve submitting a `batch` type call in either main, fallback
3689
+ * or both.
3690
+ **/
3691
+ | { name: 'IfElse'; params: { main: WestendRuntimeRuntimeCallLike; fallback: WestendRuntimeRuntimeCallLike } }
3692
+ /**
3693
+ * Dispatches a function call with a provided origin.
3694
+ *
3695
+ * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
3696
+ *
3697
+ * The dispatch origin for this call must be _Root_.
3698
+ **/
3699
+ | {
3700
+ name: 'DispatchAsFallible';
3701
+ params: { asOrigin: WestendRuntimeOriginCaller; call: WestendRuntimeRuntimeCallLike };
3702
+ };
3453
3703
 
3454
3704
  export type WestendRuntimeOriginCaller =
3455
3705
  | { type: 'System'; value: FrameSupportDispatchRawOrigin }
3456
3706
  | { type: 'Origins'; value: WestendRuntimeGovernanceOriginsPalletCustomOriginsOrigin }
3457
3707
  | { type: 'ParachainsOrigin'; value: PolkadotRuntimeParachainsOriginPalletOrigin }
3458
- | { type: 'XcmPallet'; value: PalletXcmOrigin }
3459
- | { type: 'Void'; value: SpCoreVoid };
3708
+ | { type: 'XcmPallet'; value: PalletXcmOrigin };
3460
3709
 
3461
3710
  export type FrameSupportDispatchRawOrigin =
3462
3711
  | { type: 'Root' }
@@ -3557,8 +3806,6 @@ export type XcmV3JunctionBodyPart =
3557
3806
  | { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
3558
3807
  | { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
3559
3808
 
3560
- export type SpCoreVoid = null;
3561
-
3562
3809
  /**
3563
3810
  * Identity pallet declaration.
3564
3811
  **/
@@ -4110,7 +4357,7 @@ export type PalletRecoveryCall =
4110
4357
  **/
4111
4358
  | { name: 'AsRecovered'; params: { account: MultiAddress; call: WestendRuntimeRuntimeCall } }
4112
4359
  /**
4113
- * Allow ROOT to bypass the recovery process and set an a rescuer account
4360
+ * Allow ROOT to bypass the recovery process and set a rescuer account
4114
4361
  * for a lost account directly.
4115
4362
  *
4116
4363
  * The dispatch origin for this call must be _ROOT_.
@@ -4232,7 +4479,7 @@ export type PalletRecoveryCallLike =
4232
4479
  **/
4233
4480
  | { name: 'AsRecovered'; params: { account: MultiAddressLike; call: WestendRuntimeRuntimeCallLike } }
4234
4481
  /**
4235
- * Allow ROOT to bypass the recovery process and set an a rescuer account
4482
+ * Allow ROOT to bypass the recovery process and set a rescuer account
4236
4483
  * for a lost account directly.
4237
4484
  *
4238
4485
  * The dispatch origin for this call must be _ROOT_.
@@ -4773,7 +5020,7 @@ export type PalletPreimageCall =
4773
5020
  **/
4774
5021
  | { name: 'UnrequestPreimage'; params: { hash: H256 } }
4775
5022
  /**
4776
- * Ensure that the a bulk of pre-images is upgraded.
5023
+ * Ensure that the bulk of pre-images is upgraded.
4777
5024
  *
4778
5025
  * The caller pays no fee if at least 90% of pre-images were successfully updated.
4779
5026
  **/
@@ -4810,7 +5057,7 @@ export type PalletPreimageCallLike =
4810
5057
  **/
4811
5058
  | { name: 'UnrequestPreimage'; params: { hash: H256 } }
4812
5059
  /**
4813
- * Ensure that the a bulk of pre-images is upgraded.
5060
+ * Ensure that the bulk of pre-images is upgraded.
4814
5061
  *
4815
5062
  * The caller pays no fee if at least 90% of pre-images were successfully updated.
4816
5063
  **/
@@ -5574,10 +5821,7 @@ export type PalletElectionProviderMultiPhaseCall =
5574
5821
  * This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
5575
5822
  * calling [`Call::set_emergency_election_result`].
5576
5823
  **/
5577
- | {
5578
- name: 'GovernanceFallback';
5579
- params: { maybeMaxVoters?: number | undefined; maybeMaxTargets?: number | undefined };
5580
- };
5824
+ | { name: 'GovernanceFallback' };
5581
5825
 
5582
5826
  export type PalletElectionProviderMultiPhaseCallLike =
5583
5827
  /**
@@ -5640,10 +5884,7 @@ export type PalletElectionProviderMultiPhaseCallLike =
5640
5884
  * This can only be called when [`Phase::Emergency`] is enabled, as an alternative to
5641
5885
  * calling [`Call::set_emergency_election_result`].
5642
5886
  **/
5643
- | {
5644
- name: 'GovernanceFallback';
5645
- params: { maybeMaxVoters?: number | undefined; maybeMaxTargets?: number | undefined };
5646
- };
5887
+ | { name: 'GovernanceFallback' };
5647
5888
 
5648
5889
  export type PalletElectionProviderMultiPhaseRawSolution = {
5649
5890
  solution: WestendRuntimeNposCompactSolution16;
@@ -5750,8 +5991,9 @@ export type PalletBagsListCallLike =
5750
5991
  **/
5751
5992
  export type PalletNominationPoolsCall =
5752
5993
  /**
5753
- * Stake funds with a pool. The amount to bond is transferred from the member to the pool
5754
- * account and immediately increases the pools bond.
5994
+ * Stake funds with a pool. The amount to bond is delegated (or transferred based on
5995
+ * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
5996
+ * increases the pool's bond.
5755
5997
  *
5756
5998
  * The method of transferring the amount to the pool account is determined by
5757
5999
  * [`adapter::StakeStrategyType`]. If the pool is configured to use
@@ -5894,13 +6136,13 @@ export type PalletNominationPoolsCall =
5894
6136
  * The dispatch origin of this call must be signed by the pool nominator or the pool
5895
6137
  * root role.
5896
6138
  *
5897
- * This directly forward the call to the staking pallet, on behalf of the pool bonded
5898
- * account.
6139
+ * This directly forwards the call to an implementation of `StakingInterface` (e.g.,
6140
+ * `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
5899
6141
  *
5900
6142
  * # Note
5901
6143
  *
5902
- * In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to have
5903
- * at least `depositor_min_bond` in the pool to start nominating.
6144
+ * In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
6145
+ * have at least `depositor_min_bond` in the pool to start nominating.
5904
6146
  **/
5905
6147
  | { name: 'Nominate'; params: { poolId: number; validators: Array<AccountId32> } }
5906
6148
  /**
@@ -5971,6 +6213,9 @@ export type PalletNominationPoolsCall =
5971
6213
  * The dispatch origin of this call can be signed by the pool nominator or the pool
5972
6214
  * root role, same as [`Pallet::nominate`].
5973
6215
  *
6216
+ * This directly forwards the call to an implementation of `StakingInterface` (e.g.,
6217
+ * `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
6218
+ *
5974
6219
  * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
5975
6220
  * account).
5976
6221
  *
@@ -5979,9 +6224,7 @@ export type PalletNominationPoolsCall =
5979
6224
  * are unable to unbond.
5980
6225
  *
5981
6226
  * # Conditions for permissioned dispatch:
5982
- * * The caller has a nominator or root role of the pool.
5983
- * This directly forward the call to the staking pallet, on behalf of the pool bonded
5984
- * account.
6227
+ * * The caller is the pool's nominator or root.
5985
6228
  **/
5986
6229
  | { name: 'Chill'; params: { poolId: number } }
5987
6230
  /**
@@ -6042,9 +6285,20 @@ export type PalletNominationPoolsCall =
6042
6285
  /**
6043
6286
  * Claim pending commission.
6044
6287
  *
6045
- * The dispatch origin of this call must be signed by the `root` role of the pool. Pending
6046
- * commission is paid out and added to total claimed commission`. Total pending commission
6047
- * is reset to zero. the current.
6288
+ * The `root` role of the pool is _always_ allowed to claim the pool's commission.
6289
+ *
6290
+ * If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
6291
+ * trigger the process of claiming the pool's commission.
6292
+ *
6293
+ * If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
6294
+ * accounts
6295
+ * * `acc`, and
6296
+ * * the pool's root account
6297
+ *
6298
+ * may call this extrinsic on behalf of the pool.
6299
+ *
6300
+ * Pending commissions are paid out and added to the total claimed commission.
6301
+ * The total pending commission is reset to zero.
6048
6302
  **/
6049
6303
  | { name: 'ClaimCommission'; params: { poolId: number } }
6050
6304
  /**
@@ -6073,8 +6327,10 @@ export type PalletNominationPoolsCall =
6073
6327
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
6074
6328
  * [`adapter::StakeStrategyType::Delegate`].
6075
6329
  *
6076
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
6077
- * slash to be applied, caller may be rewarded with the part of the slash.
6330
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
6331
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
6332
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
6333
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
6078
6334
  **/
6079
6335
  | { name: 'ApplySlash'; params: { memberAccount: MultiAddress } }
6080
6336
  /**
@@ -6104,8 +6360,9 @@ export type PalletNominationPoolsCall =
6104
6360
 
6105
6361
  export type PalletNominationPoolsCallLike =
6106
6362
  /**
6107
- * Stake funds with a pool. The amount to bond is transferred from the member to the pool
6108
- * account and immediately increases the pools bond.
6363
+ * Stake funds with a pool. The amount to bond is delegated (or transferred based on
6364
+ * [`adapter::StakeStrategyType`]) from the member to the pool account and immediately
6365
+ * increases the pool's bond.
6109
6366
  *
6110
6367
  * The method of transferring the amount to the pool account is determined by
6111
6368
  * [`adapter::StakeStrategyType`]. If the pool is configured to use
@@ -6257,13 +6514,13 @@ export type PalletNominationPoolsCallLike =
6257
6514
  * The dispatch origin of this call must be signed by the pool nominator or the pool
6258
6515
  * root role.
6259
6516
  *
6260
- * This directly forward the call to the staking pallet, on behalf of the pool bonded
6261
- * account.
6517
+ * This directly forwards the call to an implementation of `StakingInterface` (e.g.,
6518
+ * `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
6262
6519
  *
6263
6520
  * # Note
6264
6521
  *
6265
- * In addition to a `root` or `nominator` role of `origin`, pool's depositor needs to have
6266
- * at least `depositor_min_bond` in the pool to start nominating.
6522
+ * In addition to a `root` or `nominator` role of `origin`, the pool's depositor needs to
6523
+ * have at least `depositor_min_bond` in the pool to start nominating.
6267
6524
  **/
6268
6525
  | { name: 'Nominate'; params: { poolId: number; validators: Array<AccountId32Like> } }
6269
6526
  /**
@@ -6334,6 +6591,9 @@ export type PalletNominationPoolsCallLike =
6334
6591
  * The dispatch origin of this call can be signed by the pool nominator or the pool
6335
6592
  * root role, same as [`Pallet::nominate`].
6336
6593
  *
6594
+ * This directly forwards the call to an implementation of `StakingInterface` (e.g.,
6595
+ * `pallet-staking`) through [`Config::StakeAdapter`], on behalf of the bonded pool.
6596
+ *
6337
6597
  * Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
6338
6598
  * account).
6339
6599
  *
@@ -6342,9 +6602,7 @@ export type PalletNominationPoolsCallLike =
6342
6602
  * are unable to unbond.
6343
6603
  *
6344
6604
  * # Conditions for permissioned dispatch:
6345
- * * The caller has a nominator or root role of the pool.
6346
- * This directly forward the call to the staking pallet, on behalf of the pool bonded
6347
- * account.
6605
+ * * The caller is the pool's nominator or root.
6348
6606
  **/
6349
6607
  | { name: 'Chill'; params: { poolId: number } }
6350
6608
  /**
@@ -6405,9 +6663,20 @@ export type PalletNominationPoolsCallLike =
6405
6663
  /**
6406
6664
  * Claim pending commission.
6407
6665
  *
6408
- * The dispatch origin of this call must be signed by the `root` role of the pool. Pending
6409
- * commission is paid out and added to total claimed commission`. Total pending commission
6410
- * is reset to zero. the current.
6666
+ * The `root` role of the pool is _always_ allowed to claim the pool's commission.
6667
+ *
6668
+ * If the pool has set `CommissionClaimPermission::Permissionless`, then any account can
6669
+ * trigger the process of claiming the pool's commission.
6670
+ *
6671
+ * If the pool has set its `CommissionClaimPermission` to `Account(acc)`, then only
6672
+ * accounts
6673
+ * * `acc`, and
6674
+ * * the pool's root account
6675
+ *
6676
+ * may call this extrinsic on behalf of the pool.
6677
+ *
6678
+ * Pending commissions are paid out and added to the total claimed commission.
6679
+ * The total pending commission is reset to zero.
6411
6680
  **/
6412
6681
  | { name: 'ClaimCommission'; params: { poolId: number } }
6413
6682
  /**
@@ -6436,8 +6705,10 @@ export type PalletNominationPoolsCallLike =
6436
6705
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
6437
6706
  * [`adapter::StakeStrategyType::Delegate`].
6438
6707
  *
6439
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
6440
- * slash to be applied, caller may be rewarded with the part of the slash.
6708
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
6709
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
6710
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
6711
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
6441
6712
  **/
6442
6713
  | { name: 'ApplySlash'; params: { memberAccount: MultiAddressLike } }
6443
6714
  /**
@@ -6481,12 +6752,6 @@ export type PalletNominationPoolsConfigOp004 =
6481
6752
  | { type: 'Set'; value: AccountId32 }
6482
6753
  | { type: 'Remove' };
6483
6754
 
6484
- export type PalletNominationPoolsClaimPermission =
6485
- | 'Permissioned'
6486
- | 'PermissionlessCompound'
6487
- | 'PermissionlessWithdraw'
6488
- | 'PermissionlessAll';
6489
-
6490
6755
  /**
6491
6756
  * Contains a variant per dispatchable extrinsic that this pallet has.
6492
6757
  **/
@@ -8646,7 +8911,27 @@ export type PolkadotRuntimeParachainsOnDemandPalletCall =
8646
8911
  * Events:
8647
8912
  * - `OnDemandOrderPlaced`
8648
8913
  **/
8649
- | { name: 'PlaceOrderKeepAlive'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } };
8914
+ | { name: 'PlaceOrderKeepAlive'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } }
8915
+ /**
8916
+ * Create a single on demand core order with credits.
8917
+ * Will charge the owner's on-demand credit account the spot price for the current block.
8918
+ *
8919
+ * Parameters:
8920
+ * - `origin`: The sender of the call, on-demand credits will be withdrawn from this
8921
+ * account.
8922
+ * - `max_amount`: The maximum number of credits to spend from the origin to place an
8923
+ * order.
8924
+ * - `para_id`: A `ParaId` the origin wants to provide blockspace for.
8925
+ *
8926
+ * Errors:
8927
+ * - `InsufficientCredits`
8928
+ * - `QueueFull`
8929
+ * - `SpotPriceHigherThanMaxAmount`
8930
+ *
8931
+ * Events:
8932
+ * - `OnDemandOrderPlaced`
8933
+ **/
8934
+ | { name: 'PlaceOrderWithCredits'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } };
8650
8935
 
8651
8936
  export type PolkadotRuntimeParachainsOnDemandPalletCallLike =
8652
8937
  /**
@@ -8684,7 +8969,27 @@ export type PolkadotRuntimeParachainsOnDemandPalletCallLike =
8684
8969
  * Events:
8685
8970
  * - `OnDemandOrderPlaced`
8686
8971
  **/
8687
- | { name: 'PlaceOrderKeepAlive'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } };
8972
+ | { name: 'PlaceOrderKeepAlive'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } }
8973
+ /**
8974
+ * Create a single on demand core order with credits.
8975
+ * Will charge the owner's on-demand credit account the spot price for the current block.
8976
+ *
8977
+ * Parameters:
8978
+ * - `origin`: The sender of the call, on-demand credits will be withdrawn from this
8979
+ * account.
8980
+ * - `max_amount`: The maximum number of credits to spend from the origin to place an
8981
+ * order.
8982
+ * - `para_id`: A `ParaId` the origin wants to provide blockspace for.
8983
+ *
8984
+ * Errors:
8985
+ * - `InsufficientCredits`
8986
+ * - `QueueFull`
8987
+ * - `SpotPriceHigherThanMaxAmount`
8988
+ *
8989
+ * Events:
8990
+ * - `OnDemandOrderPlaced`
8991
+ **/
8992
+ | { name: 'PlaceOrderWithCredits'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } };
8688
8993
 
8689
8994
  /**
8690
8995
  * Contains a variant per dispatchable extrinsic that this pallet has.
@@ -10096,6 +10401,7 @@ export type PolkadotRuntimeParachainsCoretimePalletCall =
10096
10401
  * teleported to the Coretime chain.
10097
10402
  **/
10098
10403
  | { name: 'RequestRevenueAt'; params: { when: number } }
10404
+ | { name: 'CreditAccount'; params: { who: AccountId32; amount: bigint } }
10099
10405
  /**
10100
10406
  * Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is
10101
10407
  * to be used.
@@ -10136,6 +10442,7 @@ export type PolkadotRuntimeParachainsCoretimePalletCallLike =
10136
10442
  * teleported to the Coretime chain.
10137
10443
  **/
10138
10444
  | { name: 'RequestRevenueAt'; params: { when: number } }
10445
+ | { name: 'CreditAccount'; params: { who: AccountId32Like; amount: bigint } }
10139
10446
  /**
10140
10447
  * Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is
10141
10448
  * to be used.
@@ -11600,7 +11907,11 @@ export type PolkadotRuntimeParachainsOnDemandPalletEvent =
11600
11907
  /**
11601
11908
  * The value of the spot price has likely changed
11602
11909
  **/
11603
- | { name: 'SpotPriceSet'; data: { spotPrice: bigint } };
11910
+ | { name: 'SpotPriceSet'; data: { spotPrice: bigint } }
11911
+ /**
11912
+ * An account was given credits.
11913
+ **/
11914
+ | { name: 'AccountCredited'; data: { who: AccountId32; amount: bigint } };
11604
11915
 
11605
11916
  /**
11606
11917
  * The `Event` enum of this pallet
@@ -12371,9 +12682,12 @@ export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
12371
12682
  export type FrameSupportTokensMiscIdAmount = { id: WestendRuntimeRuntimeHoldReason; amount: bigint };
12372
12683
 
12373
12684
  export type WestendRuntimeRuntimeHoldReason =
12685
+ | { type: 'Staking'; value: PalletStakingPalletHoldReason }
12374
12686
  | { type: 'Preimage'; value: PalletPreimageHoldReason }
12375
12687
  | { type: 'DelegatedStaking'; value: PalletDelegatedStakingHoldReason };
12376
12688
 
12689
+ export type PalletStakingPalletHoldReason = 'Staking';
12690
+
12377
12691
  export type PalletPreimageHoldReason = 'Preimage';
12378
12692
 
12379
12693
  export type PalletDelegatedStakingHoldReason = 'StakingDelegation';
@@ -12454,21 +12768,27 @@ export type PalletStakingNominations = { targets: Array<AccountId32>; submittedI
12454
12768
 
12455
12769
  export type PalletStakingActiveEraInfo = { index: number; start?: bigint | undefined };
12456
12770
 
12457
- export type SpStakingExposure = { total: bigint; own: bigint; others: Array<SpStakingIndividualExposure> };
12458
-
12459
- export type SpStakingIndividualExposure = { who: AccountId32; value: bigint };
12460
-
12461
12771
  export type SpStakingPagedExposureMetadata = { total: bigint; own: bigint; nominatorCount: number; pageCount: number };
12462
12772
 
12463
12773
  export type SpStakingExposurePage = { pageTotal: bigint; others: Array<SpStakingIndividualExposure> };
12464
12774
 
12775
+ export type SpStakingIndividualExposure = { who: AccountId32; value: bigint };
12776
+
12465
12777
  export type PalletStakingEraRewardPoints = { total: number; individual: Array<[AccountId32, number]> };
12466
12778
 
12779
+ export type PalletStakingSlashingOffenceRecord = {
12780
+ reporter?: AccountId32 | undefined;
12781
+ reportedEra: number;
12782
+ exposurePage: number;
12783
+ slashFraction: Perbill;
12784
+ priorSlashFraction: Perbill;
12785
+ };
12786
+
12467
12787
  export type PalletStakingUnappliedSlash = {
12468
12788
  validator: AccountId32;
12469
12789
  own: bigint;
12470
12790
  others: Array<[AccountId32, bigint]>;
12471
- reporters: Array<AccountId32>;
12791
+ reporter?: AccountId32 | undefined;
12472
12792
  payout: bigint;
12473
12793
  };
12474
12794
 
@@ -12481,6 +12801,11 @@ export type PalletStakingSlashingSlashingSpans = {
12481
12801
 
12482
12802
  export type PalletStakingSlashingSpanRecord = { slashed: bigint; paidOut: bigint };
12483
12803
 
12804
+ export type PalletStakingSnapshotStatus =
12805
+ | { type: 'Ongoing'; value: AccountId32 }
12806
+ | { type: 'Consumed' }
12807
+ | { type: 'Waiting' };
12808
+
12484
12809
  /**
12485
12810
  * The `Error` enum of this pallet.
12486
12811
  **/
@@ -12510,9 +12835,9 @@ export type PalletStakingPalletError =
12510
12835
  **/
12511
12836
  | 'DuplicateIndex'
12512
12837
  /**
12513
- * Slash record index out of bounds.
12838
+ * Slash record not found.
12514
12839
  **/
12515
- | 'InvalidSlashIndex'
12840
+ | 'InvalidSlashRecord'
12516
12841
  /**
12517
12842
  * Cannot have a validator or nominator role, with value less than the minimum defined by
12518
12843
  * governance (see `MinValidatorBond` and `MinNominatorBond`). If unbonding is the
@@ -12539,10 +12864,6 @@ export type PalletStakingPalletError =
12539
12864
  * Invalid number of nominations.
12540
12865
  **/
12541
12866
  | 'InvalidNumberOfNominations'
12542
- /**
12543
- * Items are not sorted and unique.
12544
- **/
12545
- | 'NotSortedAndUnique'
12546
12867
  /**
12547
12868
  * Rewards for this era have already been claimed for this validator.
12548
12869
  **/
@@ -12612,13 +12933,34 @@ export type PalletStakingPalletError =
12612
12933
  /**
12613
12934
  * Operation not allowed for virtual stakers.
12614
12935
  **/
12615
- | 'VirtualStakerNotAllowed';
12936
+ | 'VirtualStakerNotAllowed'
12937
+ /**
12938
+ * Stash could not be reaped as other pallet might depend on it.
12939
+ **/
12940
+ | 'CannotReapStash'
12941
+ /**
12942
+ * The stake of this account is already migrated to `Fungible` holds.
12943
+ **/
12944
+ | 'AlreadyMigrated'
12945
+ /**
12946
+ * Era not yet started.
12947
+ **/
12948
+ | 'EraNotStarted'
12949
+ /**
12950
+ * Account is restricted from participation in staking. This may happen if the account is
12951
+ * staking in another way already, such as via pool.
12952
+ **/
12953
+ | 'Restricted';
12616
12954
 
12617
12955
  export type SpStakingOffenceOffenceDetails = {
12618
12956
  offender: [AccountId32, SpStakingExposure];
12619
12957
  reporters: Array<AccountId32>;
12620
12958
  };
12621
12959
 
12960
+ export type SpStakingExposure = { total: bigint; own: bigint; others: Array<SpStakingIndividualExposure> };
12961
+
12962
+ export type SpStakingOffenceOffenceSeverity = Perbill;
12963
+
12622
12964
  export type SpCoreCryptoKeyTypeId = FixedBytes<4>;
12623
12965
 
12624
12966
  /**
@@ -13163,11 +13505,17 @@ export type PalletMultisigError =
13163
13505
  | 'AlreadyStored';
13164
13506
 
13165
13507
  export type PalletElectionProviderMultiPhaseReadySolution = {
13166
- supports: Array<[AccountId32, SpNposElectionsSupport]>;
13508
+ supports: FrameElectionProviderSupportBoundedSupports;
13167
13509
  score: SpNposElectionsElectionScore;
13168
13510
  compute: PalletElectionProviderMultiPhaseElectionCompute;
13169
13511
  };
13170
13512
 
13513
+ export type FrameElectionProviderSupportBoundedSupports = Array<
13514
+ [AccountId32, FrameElectionProviderSupportBoundedSupport]
13515
+ >;
13516
+
13517
+ export type FrameElectionProviderSupportBoundedSupport = { total: bigint; voters: Array<[AccountId32, bigint]> };
13518
+
13171
13519
  export type PalletElectionProviderMultiPhaseRoundSnapshot = {
13172
13520
  voters: Array<[AccountId32, bigint, Array<AccountId32>]>;
13173
13521
  targets: Array<AccountId32>;
@@ -13457,6 +13805,10 @@ export type PalletNominationPoolsError =
13457
13805
  * No slash pending that can be applied to the member.
13458
13806
  **/
13459
13807
  | { name: 'NothingToSlash' }
13808
+ /**
13809
+ * The slash amount is too low to be applied.
13810
+ **/
13811
+ | { name: 'SlashTooLow' }
13460
13812
  /**
13461
13813
  * The pool or member delegation has already migrated to delegate stake.
13462
13814
  **/
@@ -13468,7 +13820,12 @@ export type PalletNominationPoolsError =
13468
13820
  /**
13469
13821
  * This call is not allowed in the current state of the pallet.
13470
13822
  **/
13471
- | { name: 'NotSupported' };
13823
+ | { name: 'NotSupported' }
13824
+ /**
13825
+ * Account is restricted from participation in pools. This may happen if the account is
13826
+ * staking in another way already.
13827
+ **/
13828
+ | { name: 'Restricted' };
13472
13829
 
13473
13830
  export type PalletNominationPoolsDefensiveError =
13474
13831
  | 'NotEnoughSpaceInUnbondPool'
@@ -13614,8 +13971,10 @@ export type PalletReferendaDeposit = { who: AccountId32; amount: bigint };
13614
13971
 
13615
13972
  export type PalletReferendaDecidingStatus = { since: number; confirming?: number | undefined };
13616
13973
 
13974
+ export type PalletReferendaTrack = { id: number; info: PalletReferendaTrackInfo };
13975
+
13617
13976
  export type PalletReferendaTrackInfo = {
13618
- name: string;
13977
+ name: FixedBytes<25>;
13619
13978
  maxDeciding: number;
13620
13979
  decisionDeposit: bigint;
13621
13980
  preparePeriod: number;
@@ -14389,7 +14748,11 @@ export type PolkadotRuntimeParachainsOnDemandPalletError =
14389
14748
  * The current spot price is higher than the max amount specified in the `place_order`
14390
14749
  * call, making it invalid.
14391
14750
  **/
14392
- | 'SpotPriceHigherThanMaxAmount';
14751
+ | 'SpotPriceHigherThanMaxAmount'
14752
+ /**
14753
+ * The account doesn't have enough credits to purchase on-demand coretime.
14754
+ **/
14755
+ | 'InsufficientCredits';
14393
14756
 
14394
14757
  export type PolkadotRuntimeParachainsAssignerCoretimeSchedule = {
14395
14758
  assignments: Array<
@@ -14530,6 +14893,10 @@ export type PolkadotRuntimeCommonParasSudoWrapperPalletError =
14530
14893
  * downward message.
14531
14894
  **/
14532
14895
  | 'ExceedsMaxMessageSize'
14896
+ /**
14897
+ * A DMP message couldn't be sent because the destination is unreachable.
14898
+ **/
14899
+ | 'Unroutable'
14533
14900
  /**
14534
14901
  * Could not schedule para cleanup.
14535
14902
  **/
@@ -15053,6 +15420,8 @@ export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataH
15053
15420
 
15054
15421
  export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
15055
15422
 
15423
+ export type FrameSystemExtensionsWeightReclaim = {};
15424
+
15056
15425
  export type WestendRuntimeRuntime = {};
15057
15426
 
15058
15427
  export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
@@ -15061,6 +15430,13 @@ export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
15061
15430
 
15062
15431
  export type SpCoreOpaqueMetadata = Bytes;
15063
15432
 
15433
+ export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
15434
+
15435
+ export type FrameSupportViewFunctionsViewFunctionDispatchError =
15436
+ | { type: 'NotImplemented' }
15437
+ | { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
15438
+ | { type: 'Codec' };
15439
+
15064
15440
  export type SpRuntimeTransactionValidityTransactionValidityError =
15065
15441
  | { type: 'Invalid'; value: SpRuntimeTransactionValidityInvalidTransaction }
15066
15442
  | { type: 'Unknown'; value: SpRuntimeTransactionValidityUnknownTransaction };
@@ -15206,6 +15582,26 @@ export type PolkadotPrimitivesVstagingAsyncBackingCandidatePendingAvailability =
15206
15582
  maxPovSize: number;
15207
15583
  };
15208
15584
 
15585
+ export type PolkadotPrimitivesVstagingAsyncBackingConstraints = {
15586
+ minRelayParentNumber: number;
15587
+ maxPovSize: number;
15588
+ maxCodeSize: number;
15589
+ maxHeadDataSize: number;
15590
+ umpRemaining: number;
15591
+ umpRemainingBytes: number;
15592
+ maxUmpNumPerCandidate: number;
15593
+ dmpRemainingMessages: Array<number>;
15594
+ hrmpInbound: PolkadotPrimitivesV8AsyncBackingInboundHrmpLimitations;
15595
+ hrmpChannelsOut: Array<
15596
+ [PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AsyncBackingOutboundHrmpChannelLimitations]
15597
+ >;
15598
+ maxHrmpNumPerCandidate: number;
15599
+ requiredParent: PolkadotParachainPrimitivesPrimitivesHeadData;
15600
+ validationCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
15601
+ upgradeRestriction?: PolkadotPrimitivesV8UpgradeRestriction | undefined;
15602
+ futureValidationCode?: [number, PolkadotParachainPrimitivesPrimitivesValidationCodeHash] | undefined;
15603
+ };
15604
+
15209
15605
  export type SpConsensusBeefyValidatorSet = { validators: Array<SpConsensusBeefyEcdsaCryptoPublic>; id: bigint };
15210
15606
 
15211
15607
  export type SpRuntimeOpaqueValue = Bytes;