@dedot/chaintypes 0.93.0 → 0.95.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.
@@ -9,7 +9,7 @@ import type {
9
9
  FrameSupportPalletId,
10
10
  PalletReferendaTrackInfo,
11
11
  SpWeightsWeightV2Weight,
12
- StagingXcmV4Junctions,
12
+ StagingXcmV5Junctions,
13
13
  } from './types.js';
14
14
 
15
15
  export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
@@ -373,6 +373,9 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
373
373
  palletId: FrameSupportPalletId;
374
374
 
375
375
  /**
376
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
377
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
378
+ *
376
379
  * The maximum number of approvals that can wait in the spending queue.
377
380
  *
378
381
  * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
@@ -1435,7 +1438,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1435
1438
  /**
1436
1439
  * The coretime chain pot location.
1437
1440
  **/
1438
- brokerPotLocation: StagingXcmV4Junctions;
1441
+ brokerPotLocation: StagingXcmV5Junctions;
1439
1442
 
1440
1443
  /**
1441
1444
  * Generic pallet constant
@@ -356,12 +356,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
356
356
  **/
357
357
  VirtualStakerNotAllowed: GenericPalletError<Rv>;
358
358
 
359
- /**
360
- * Account is restricted from participation in staking. This may happen if the account is
361
- * staking in another way already, such as via pool.
362
- **/
363
- Restricted: GenericPalletError<Rv>;
364
-
365
359
  /**
366
360
  * Generic pallet error
367
361
  **/
@@ -1914,11 +1908,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1914
1908
  **/
1915
1909
  NothingToSlash: GenericPalletError<Rv>;
1916
1910
 
1917
- /**
1918
- * The slash amount is too low to be applied.
1919
- **/
1920
- SlashTooLow: GenericPalletError<Rv>;
1921
-
1922
1911
  /**
1923
1912
  * The pool or member delegation has already migrated to delegate stake.
1924
1913
  **/
@@ -1934,12 +1923,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1934
1923
  **/
1935
1924
  NotSupported: GenericPalletError<Rv>;
1936
1925
 
1937
- /**
1938
- * Account is restricted from participation in pools. This may happen if the account is
1939
- * staking in another way already.
1940
- **/
1941
- Restricted: GenericPalletError<Rv>;
1942
-
1943
1926
  /**
1944
1927
  * Generic pallet error
1945
1928
  **/
@@ -2186,15 +2169,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2186
2169
  InvalidParentHeader: GenericPalletError<Rv>;
2187
2170
 
2188
2171
  /**
2189
- * The data given to the inherent will result in an overweight block.
2190
- **/
2191
- InherentOverweight: GenericPalletError<Rv>;
2192
-
2193
- /**
2194
- * A candidate was filtered during inherent execution. This should have only been done
2172
+ * Inherent data was filtered during execution. This should have only been done
2195
2173
  * during creation.
2196
2174
  **/
2197
- CandidatesFilteredDuringExecution: GenericPalletError<Rv>;
2175
+ InherentDataFilteredDuringExecution: GenericPalletError<Rv>;
2198
2176
 
2199
2177
  /**
2200
2178
  * Too many candidates supplied.
@@ -2509,32 +2487,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2509
2487
  coretimeAssignmentProvider: {
2510
2488
  AssignmentsEmpty: GenericPalletError<Rv>;
2511
2489
 
2512
- /**
2513
- * Assignments together exceeded 57600.
2514
- **/
2515
- OverScheduled: GenericPalletError<Rv>;
2516
-
2517
- /**
2518
- * Assignments together less than 57600
2519
- **/
2520
- UnderScheduled: GenericPalletError<Rv>;
2521
-
2522
2490
  /**
2523
2491
  * assign_core is only allowed to append new assignments at the end of already existing
2524
- * ones.
2492
+ * ones or update the last entry.
2525
2493
  **/
2526
2494
  DisallowedInsert: GenericPalletError<Rv>;
2527
2495
 
2528
- /**
2529
- * Tried to insert a schedule for the same core and block number as an existing schedule
2530
- **/
2531
- DuplicateInsert: GenericPalletError<Rv>;
2532
-
2533
- /**
2534
- * Tried to add an unsorted set of assignments
2535
- **/
2536
- AssignmentsNotSorted: GenericPalletError<Rv>;
2537
-
2538
2496
  /**
2539
2497
  * Generic pallet error
2540
2498
  **/
@@ -2,7 +2,6 @@
2
2
 
3
3
  import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
4
4
  import type {
5
- DispatchInfo,
6
5
  DispatchError,
7
6
  AccountId32,
8
7
  H256,
@@ -15,6 +14,7 @@ import type {
15
14
  FixedU128,
16
15
  } from 'dedot/codecs';
17
16
  import type {
17
+ FrameSystemDispatchEventInfo,
18
18
  FrameSupportTokensMiscBalanceStatus,
19
19
  PalletStakingRewardDestination,
20
20
  PalletStakingValidatorPrefs,
@@ -32,7 +32,7 @@ import type {
32
32
  StagingKusamaRuntimeRuntimeParametersKey,
33
33
  StagingKusamaRuntimeRuntimeParametersValue,
34
34
  PalletSocietyGroupParams,
35
- StagingKusamaRuntimeProxyType,
35
+ KusamaRuntimeConstantsProxyProxyType,
36
36
  PalletMultisigTimepoint,
37
37
  PalletElectionProviderMultiPhaseElectionCompute,
38
38
  SpNposElectionsElectionScore,
@@ -40,7 +40,7 @@ import type {
40
40
  PalletNominationPoolsPoolState,
41
41
  PalletNominationPoolsCommissionChangeRate,
42
42
  PalletNominationPoolsCommissionClaimPermission,
43
- PolkadotPrimitivesV8CandidateReceipt,
43
+ PolkadotPrimitivesVstagingCandidateReceiptV2,
44
44
  PolkadotParachainPrimitivesPrimitivesHeadData,
45
45
  PolkadotPrimitivesV8CoreIndex,
46
46
  PolkadotPrimitivesV8GroupIndex,
@@ -50,14 +50,14 @@ import type {
50
50
  PolkadotCorePrimitivesCandidateHash,
51
51
  PolkadotRuntimeParachainsDisputesDisputeLocation,
52
52
  PolkadotRuntimeParachainsDisputesDisputeResult,
53
- StagingXcmV4TraitsOutcome,
54
- StagingXcmV4Location,
55
- StagingXcmV4Xcm,
56
- StagingXcmV4Response,
53
+ StagingXcmV5TraitsOutcome,
54
+ StagingXcmV5Location,
55
+ StagingXcmV5Xcm,
56
+ StagingXcmV5Response,
57
57
  SpWeightsWeightV2Weight,
58
58
  XcmVersionedAssets,
59
- StagingXcmV4AssetAssets,
60
- XcmV3TraitsError,
59
+ StagingXcmV5AssetAssets,
60
+ XcmV5TraitsError,
61
61
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
62
62
  FrameSupportMessagesProcessMessageError,
63
63
  } from './types.js';
@@ -70,7 +70,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
70
70
  /**
71
71
  * An extrinsic completed successfully.
72
72
  **/
73
- ExtrinsicSuccess: GenericPalletEvent<Rv, 'System', 'ExtrinsicSuccess', { dispatchInfo: DispatchInfo }>;
73
+ ExtrinsicSuccess: GenericPalletEvent<
74
+ Rv,
75
+ 'System',
76
+ 'ExtrinsicSuccess',
77
+ { dispatchInfo: FrameSystemDispatchEventInfo }
78
+ >;
74
79
 
75
80
  /**
76
81
  * An extrinsic failed.
@@ -79,7 +84,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
79
84
  Rv,
80
85
  'System',
81
86
  'ExtrinsicFailed',
82
- { dispatchError: DispatchError; dispatchInfo: DispatchInfo }
87
+ { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo }
83
88
  >;
84
89
 
85
90
  /**
@@ -374,13 +379,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
374
379
  Chilled: GenericPalletEvent<Rv, 'Staking', 'Chilled', { stash: AccountId32 }>;
375
380
 
376
381
  /**
377
- * The stakers' rewards are getting paid.
382
+ * A Page of stakers rewards are getting paid. `next` is `None` if all pages are claimed.
378
383
  **/
379
384
  PayoutStarted: GenericPalletEvent<
380
385
  Rv,
381
386
  'Staking',
382
387
  'PayoutStarted',
383
- { eraIndex: number; validatorStash: AccountId32 }
388
+ { eraIndex: number; validatorStash: AccountId32; page: number; next?: number | undefined }
384
389
  >;
385
390
 
386
391
  /**
@@ -1737,7 +1742,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1737
1742
  Rv,
1738
1743
  'Proxy',
1739
1744
  'PureCreated',
1740
- { pure: AccountId32; who: AccountId32; proxyType: StagingKusamaRuntimeProxyType; disambiguationIndex: number }
1745
+ {
1746
+ pure: AccountId32;
1747
+ who: AccountId32;
1748
+ proxyType: KusamaRuntimeConstantsProxyProxyType;
1749
+ disambiguationIndex: number;
1750
+ }
1741
1751
  >;
1742
1752
 
1743
1753
  /**
@@ -1752,7 +1762,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1752
1762
  Rv,
1753
1763
  'Proxy',
1754
1764
  'ProxyAdded',
1755
- { delegator: AccountId32; delegatee: AccountId32; proxyType: StagingKusamaRuntimeProxyType; delay: number }
1765
+ { delegator: AccountId32; delegatee: AccountId32; proxyType: KusamaRuntimeConstantsProxyProxyType; delay: number }
1756
1766
  >;
1757
1767
 
1758
1768
  /**
@@ -1762,7 +1772,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1762
1772
  Rv,
1763
1773
  'Proxy',
1764
1774
  'ProxyRemoved',
1765
- { delegator: AccountId32; delegatee: AccountId32; proxyType: StagingKusamaRuntimeProxyType; delay: number }
1775
+ { delegator: AccountId32; delegatee: AccountId32; proxyType: KusamaRuntimeConstantsProxyProxyType; delay: number }
1766
1776
  >;
1767
1777
 
1768
1778
  /**
@@ -2579,7 +2589,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2579
2589
  'ParaInclusion',
2580
2590
  'CandidateBacked',
2581
2591
  [
2582
- PolkadotPrimitivesV8CandidateReceipt,
2592
+ PolkadotPrimitivesVstagingCandidateReceiptV2,
2583
2593
  PolkadotParachainPrimitivesPrimitivesHeadData,
2584
2594
  PolkadotPrimitivesV8CoreIndex,
2585
2595
  PolkadotPrimitivesV8GroupIndex,
@@ -2594,7 +2604,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2594
2604
  'ParaInclusion',
2595
2605
  'CandidateIncluded',
2596
2606
  [
2597
- PolkadotPrimitivesV8CandidateReceipt,
2607
+ PolkadotPrimitivesVstagingCandidateReceiptV2,
2598
2608
  PolkadotParachainPrimitivesPrimitivesHeadData,
2599
2609
  PolkadotPrimitivesV8CoreIndex,
2600
2610
  PolkadotPrimitivesV8GroupIndex,
@@ -2609,7 +2619,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2609
2619
  'ParaInclusion',
2610
2620
  'CandidateTimedOut',
2611
2621
  [
2612
- PolkadotPrimitivesV8CandidateReceipt,
2622
+ PolkadotPrimitivesVstagingCandidateReceiptV2,
2613
2623
  PolkadotParachainPrimitivesPrimitivesHeadData,
2614
2624
  PolkadotPrimitivesV8CoreIndex,
2615
2625
  ]
@@ -3126,7 +3136,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3126
3136
  /**
3127
3137
  * Execution of an XCM message was attempted.
3128
3138
  **/
3129
- Attempted: GenericPalletEvent<Rv, 'XcmPallet', 'Attempted', { outcome: StagingXcmV4TraitsOutcome }>;
3139
+ Attempted: GenericPalletEvent<Rv, 'XcmPallet', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
3130
3140
 
3131
3141
  /**
3132
3142
  * A XCM message was sent.
@@ -3136,9 +3146,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3136
3146
  'XcmPallet',
3137
3147
  'Sent',
3138
3148
  {
3139
- origin: StagingXcmV4Location;
3140
- destination: StagingXcmV4Location;
3141
- message: StagingXcmV4Xcm;
3149
+ origin: StagingXcmV5Location;
3150
+ destination: StagingXcmV5Location;
3151
+ message: StagingXcmV5Xcm;
3142
3152
  messageId: FixedBytes<32>;
3143
3153
  }
3144
3154
  >;
@@ -3152,7 +3162,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3152
3162
  Rv,
3153
3163
  'XcmPallet',
3154
3164
  'UnexpectedResponse',
3155
- { origin: StagingXcmV4Location; queryId: bigint }
3165
+ { origin: StagingXcmV5Location; queryId: bigint }
3156
3166
  >;
3157
3167
 
3158
3168
  /**
@@ -3163,7 +3173,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3163
3173
  Rv,
3164
3174
  'XcmPallet',
3165
3175
  'ResponseReady',
3166
- { queryId: bigint; response: StagingXcmV4Response }
3176
+ { queryId: bigint; response: StagingXcmV5Response }
3167
3177
  >;
3168
3178
 
3169
3179
  /**
@@ -3227,7 +3237,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3227
3237
  Rv,
3228
3238
  'XcmPallet',
3229
3239
  'InvalidResponder',
3230
- { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }
3240
+ { origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined }
3231
3241
  >;
3232
3242
 
3233
3243
  /**
@@ -3243,7 +3253,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3243
3253
  Rv,
3244
3254
  'XcmPallet',
3245
3255
  'InvalidResponderVersion',
3246
- { origin: StagingXcmV4Location; queryId: bigint }
3256
+ { origin: StagingXcmV5Location; queryId: bigint }
3247
3257
  >;
3248
3258
 
3249
3259
  /**
@@ -3258,7 +3268,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3258
3268
  Rv,
3259
3269
  'XcmPallet',
3260
3270
  'AssetsTrapped',
3261
- { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets }
3271
+ { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
3262
3272
  >;
3263
3273
 
3264
3274
  /**
@@ -3270,7 +3280,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3270
3280
  Rv,
3271
3281
  'XcmPallet',
3272
3282
  'VersionChangeNotified',
3273
- { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
3283
+ { destination: StagingXcmV5Location; result: number; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
3274
3284
  >;
3275
3285
 
3276
3286
  /**
@@ -3281,7 +3291,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3281
3291
  Rv,
3282
3292
  'XcmPallet',
3283
3293
  'SupportedVersionChanged',
3284
- { location: StagingXcmV4Location; version: number }
3294
+ { location: StagingXcmV5Location; version: number }
3285
3295
  >;
3286
3296
 
3287
3297
  /**
@@ -3292,7 +3302,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3292
3302
  Rv,
3293
3303
  'XcmPallet',
3294
3304
  'NotifyTargetSendFail',
3295
- { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError }
3305
+ { location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError }
3296
3306
  >;
3297
3307
 
3298
3308
  /**
@@ -3319,7 +3329,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3319
3329
  Rv,
3320
3330
  'XcmPallet',
3321
3331
  'InvalidQuerierVersion',
3322
- { origin: StagingXcmV4Location; queryId: bigint }
3332
+ { origin: StagingXcmV5Location; queryId: bigint }
3323
3333
  >;
3324
3334
 
3325
3335
  /**
@@ -3332,10 +3342,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3332
3342
  'XcmPallet',
3333
3343
  'InvalidQuerier',
3334
3344
  {
3335
- origin: StagingXcmV4Location;
3345
+ origin: StagingXcmV5Location;
3336
3346
  queryId: bigint;
3337
- expectedQuerier: StagingXcmV4Location;
3338
- maybeActualQuerier?: StagingXcmV4Location | undefined;
3347
+ expectedQuerier: StagingXcmV5Location;
3348
+ maybeActualQuerier?: StagingXcmV5Location | undefined;
3339
3349
  }
3340
3350
  >;
3341
3351
 
@@ -3347,7 +3357,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3347
3357
  Rv,
3348
3358
  'XcmPallet',
3349
3359
  'VersionNotifyStarted',
3350
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
3360
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
3351
3361
  >;
3352
3362
 
3353
3363
  /**
@@ -3357,7 +3367,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3357
3367
  Rv,
3358
3368
  'XcmPallet',
3359
3369
  'VersionNotifyRequested',
3360
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
3370
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
3361
3371
  >;
3362
3372
 
3363
3373
  /**
@@ -3368,7 +3378,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3368
3378
  Rv,
3369
3379
  'XcmPallet',
3370
3380
  'VersionNotifyUnrequested',
3371
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
3381
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
3372
3382
  >;
3373
3383
 
3374
3384
  /**
@@ -3378,7 +3388,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3378
3388
  Rv,
3379
3389
  'XcmPallet',
3380
3390
  'FeesPaid',
3381
- { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets }
3391
+ { paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets }
3382
3392
  >;
3383
3393
 
3384
3394
  /**
@@ -3388,7 +3398,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3388
3398
  Rv,
3389
3399
  'XcmPallet',
3390
3400
  'AssetsClaimed',
3391
- { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets }
3401
+ { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
3392
3402
  >;
3393
3403
 
3394
3404
  /**
package/kusama/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedKusamaApi<Rv extends RpcVersion> extends GenericSubstr
23
23
 
24
24
  /**
25
25
  * @name: KusamaApi
26
- * @specVersion: 1004001
26
+ * @specVersion: 1005000
27
27
  **/
28
28
  export interface KusamaApi {
29
29
  legacy: VersionedKusamaApi<RpcLegacy>;
package/kusama/query.d.ts CHANGED
@@ -111,10 +111,9 @@ import type {
111
111
  PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
112
112
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
113
113
  PolkadotParachainPrimitivesPrimitivesId,
114
- PolkadotPrimitivesV8ScrapedOnChainVotes,
115
- PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
114
+ PolkadotPrimitivesVstagingScrapedOnChainVotes,
116
115
  PolkadotPrimitivesV8CoreIndex,
117
- PolkadotRuntimeParachainsSchedulerPalletParasEntry,
116
+ PolkadotRuntimeParachainsSchedulerCommonAssignment,
118
117
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
119
118
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
120
119
  PolkadotRuntimeParachainsParasParaLifecycle,
@@ -149,7 +148,7 @@ import type {
149
148
  PalletXcmVersionMigrationStage,
150
149
  PalletXcmRemoteLockedFungibleRecord,
151
150
  XcmVersionedAssetId,
152
- StagingXcmV4Xcm,
151
+ StagingXcmV5Xcm,
153
152
  PalletMessageQueueBookState,
154
153
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
155
154
  PalletMessageQueuePage,
@@ -1364,6 +1363,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1364
1363
  **/
1365
1364
  treasury: {
1366
1365
  /**
1366
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1367
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1368
+ *
1367
1369
  * Number of proposals that have been made.
1368
1370
  *
1369
1371
  * @param {Callback<number> =} callback
@@ -1371,6 +1373,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1371
1373
  proposalCount: GenericStorageQuery<Rv, () => number>;
1372
1374
 
1373
1375
  /**
1376
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1377
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1378
+ *
1374
1379
  * Proposals that have been made.
1375
1380
  *
1376
1381
  * @param {number} arg
@@ -1386,6 +1391,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1386
1391
  deactivated: GenericStorageQuery<Rv, () => bigint>;
1387
1392
 
1388
1393
  /**
1394
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1395
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1396
+ *
1389
1397
  * Proposal indices that have been approved but not yet awarded.
1390
1398
  *
1391
1399
  * @param {Callback<Array<number>> =} callback
@@ -1407,6 +1415,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1407
1415
  **/
1408
1416
  spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
1409
1417
 
1418
+ /**
1419
+ * The blocknumber for the last triggered spend period.
1420
+ *
1421
+ * @param {Callback<number | undefined> =} callback
1422
+ **/
1423
+ lastSpendPeriod: GenericStorageQuery<Rv, () => number | undefined>;
1424
+
1410
1425
  /**
1411
1426
  * Generic pallet storage query
1412
1427
  **/
@@ -2141,14 +2156,15 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2141
2156
  **/
2142
2157
  childBounties: {
2143
2158
  /**
2144
- * Number of total child bounties.
2159
+ * DEPRECATED: Replaced with `ParentTotalChildBounties` storage item keeping dedicated counts
2160
+ * for each parent bounty. Number of total child bounties. Will be removed in May 2025.
2145
2161
  *
2146
2162
  * @param {Callback<number> =} callback
2147
2163
  **/
2148
2164
  childBountyCount: GenericStorageQuery<Rv, () => number>;
2149
2165
 
2150
2166
  /**
2151
- * Number of child bounties per parent bounty.
2167
+ * Number of active child bounties per parent bounty.
2152
2168
  * Map of parent bounty index to number of child bounties.
2153
2169
  *
2154
2170
  * @param {number} arg
@@ -2156,6 +2172,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2156
2172
  **/
2157
2173
  parentChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
2158
2174
 
2175
+ /**
2176
+ * Number of total child bounties per parent bounty, including completed bounties.
2177
+ *
2178
+ * @param {number} arg
2179
+ * @param {Callback<number> =} callback
2180
+ **/
2181
+ parentTotalChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
2182
+
2159
2183
  /**
2160
2184
  * Child bounties that have been added.
2161
2185
  *
@@ -2169,12 +2193,26 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2169
2193
  >;
2170
2194
 
2171
2195
  /**
2172
- * The description of each child-bounty.
2196
+ * The description of each child-bounty. Indexed by `(parent_id, child_id)`.
2173
2197
  *
2174
- * @param {number} arg
2198
+ * This item replaces the `ChildBountyDescriptions` storage item from the V0 storage version.
2199
+ *
2200
+ * @param {[number, number]} arg
2175
2201
  * @param {Callback<Bytes | undefined> =} callback
2176
2202
  **/
2177
- childBountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
2203
+ childBountyDescriptionsV1: GenericStorageQuery<Rv, (arg: [number, number]) => Bytes | undefined, [number, number]>;
2204
+
2205
+ /**
2206
+ * The mapping of the child bounty ids from storage version `V0` to the new `V1` version.
2207
+ *
2208
+ * The `V0` ids based on total child bounty count [`ChildBountyCount`]`. The `V1` version ids
2209
+ * based on the child bounty count per parent bounty [`ParentTotalChildBounties`].
2210
+ * The item intended solely for client convenience and not used in the pallet's core logic.
2211
+ *
2212
+ * @param {number} arg
2213
+ * @param {Callback<[number, number] | undefined> =} callback
2214
+ **/
2215
+ v0ToV1ChildBountyIds: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
2178
2216
 
2179
2217
  /**
2180
2218
  * The cumulative child-bounty curator fee for each parent bounty.
@@ -2898,9 +2936,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2898
2936
  /**
2899
2937
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
2900
2938
  *
2901
- * @param {Callback<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined> =} callback
2939
+ * @param {Callback<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined> =} callback
2902
2940
  **/
2903
- onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>;
2941
+ onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>;
2904
2942
 
2905
2943
  /**
2906
2944
  * Generic pallet storage query
@@ -2924,18 +2962,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2924
2962
  **/
2925
2963
  validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
2926
2964
 
2927
- /**
2928
- * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
2929
- * remaining cores all being on demand parachain multiplexers.
2930
- *
2931
- * Bounded by the maximum of either of these two values:
2932
- * * The number of parachains and parathread multiplexers
2933
- * * The number of validators divided by `configuration.max_validators_per_core`.
2934
- *
2935
- * @param {Callback<Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>> =} callback
2936
- **/
2937
- availabilityCores: GenericStorageQuery<Rv, () => Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>;
2938
-
2939
2965
  /**
2940
2966
  * The block number where the session start occurred. Used to track how many group rotations
2941
2967
  * have occurred.
@@ -2951,14 +2977,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2951
2977
 
2952
2978
  /**
2953
2979
  * One entry for each availability core. The `VecDeque` represents the assignments to be
2954
- * scheduled on that core. The value contained here will not be valid after the end of
2955
- * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
2980
+ * scheduled on that core.
2956
2981
  *
2957
- * @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2982
+ * @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>> =} callback
2958
2983
  **/
2959
2984
  claimQueue: GenericStorageQuery<
2960
2985
  Rv,
2961
- () => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2986
+ () => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>
2962
2987
  >;
2963
2988
 
2964
2989
  /**
@@ -3282,7 +3307,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3282
3307
  hasInitialized: GenericStorageQuery<Rv, () => [] | undefined>;
3283
3308
 
3284
3309
  /**
3285
- * Buffered session changes along with the block number at which they should be applied.
3310
+ * Buffered session changes.
3286
3311
  *
3287
3312
  * Typically this will be empty or one element long. Apart from that this item never hits
3288
3313
  * the storage.
@@ -4106,9 +4131,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
4106
4131
  * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
4107
4132
  * implementation in the XCM executor configuration.
4108
4133
  *
4109
- * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
4134
+ * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
4110
4135
  **/
4111
- recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
4136
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
4112
4137
 
4113
4138
  /**
4114
4139
  * Generic pallet storage query