@dedot/chaintypes 0.106.0 → 0.107.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.106.0",
3
+ "version": "0.107.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "f44d7793918906cb63b50b5f635ae3c234992162",
28
+ "gitHead": "b4c21dba46f17e3bf6f7b7bf83697944f4de0d2b",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -9,7 +9,7 @@ import type {
9
9
  SpWeightsWeightV2Weight,
10
10
  FrameSupportPalletId,
11
11
  PalletReferendaTrackInfo,
12
- StagingXcmV4Junctions,
12
+ StagingXcmV5Junctions,
13
13
  } from './types.js';
14
14
 
15
15
  export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
@@ -405,6 +405,9 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
405
405
  palletId: FrameSupportPalletId;
406
406
 
407
407
  /**
408
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
409
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
410
+ *
408
411
  * The maximum number of approvals that can wait in the spending queue.
409
412
  *
410
413
  * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
@@ -1160,7 +1163,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1160
1163
  /**
1161
1164
  * The coretime chain pot location.
1162
1165
  **/
1163
- brokerPotLocation: StagingXcmV4Junctions;
1166
+ brokerPotLocation: StagingXcmV5Junctions;
1164
1167
 
1165
1168
  /**
1166
1169
  * Generic pallet constant
@@ -439,12 +439,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
439
439
  **/
440
440
  VirtualStakerNotAllowed: GenericPalletError<Rv>;
441
441
 
442
- /**
443
- * Account is restricted from participation in staking. This may happen if the account is
444
- * staking in another way already, such as via pool.
445
- **/
446
- Restricted: GenericPalletError<Rv>;
447
-
448
442
  /**
449
443
  * Generic pallet error
450
444
  **/
@@ -1359,11 +1353,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1359
1353
  **/
1360
1354
  NothingToSlash: GenericPalletError<Rv>;
1361
1355
 
1362
- /**
1363
- * The slash amount is too low to be applied.
1364
- **/
1365
- SlashTooLow: GenericPalletError<Rv>;
1366
-
1367
1356
  /**
1368
1357
  * The pool or member delegation has already migrated to delegate stake.
1369
1358
  **/
@@ -1375,16 +1364,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1375
1364
  NotMigrated: GenericPalletError<Rv>;
1376
1365
 
1377
1366
  /**
1378
- * This call is not allowed in the current state of the pallet.
1367
+ * This call is not allowed in the current state of the pallet or an unspecific error
1368
+ * occurred.
1379
1369
  **/
1380
1370
  NotSupported: GenericPalletError<Rv>;
1381
1371
 
1382
- /**
1383
- * Account is restricted from participation in pools. This may happen if the account is
1384
- * staking in another way already.
1385
- **/
1386
- Restricted: GenericPalletError<Rv>;
1387
-
1388
1372
  /**
1389
1373
  * Generic pallet error
1390
1374
  **/
@@ -1631,15 +1615,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1631
1615
  InvalidParentHeader: GenericPalletError<Rv>;
1632
1616
 
1633
1617
  /**
1634
- * The data given to the inherent will result in an overweight block.
1635
- **/
1636
- InherentOverweight: GenericPalletError<Rv>;
1637
-
1638
- /**
1639
- * A candidate was filtered during inherent execution. This should have only been done
1618
+ * Inherent data was filtered during execution. This should have only been done
1640
1619
  * during creation.
1641
1620
  **/
1642
- CandidatesFilteredDuringExecution: GenericPalletError<Rv>;
1621
+ InherentDataFilteredDuringExecution: GenericPalletError<Rv>;
1643
1622
 
1644
1623
  /**
1645
1624
  * Too many candidates supplied.
@@ -1954,32 +1933,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1954
1933
  coretimeAssignmentProvider: {
1955
1934
  AssignmentsEmpty: GenericPalletError<Rv>;
1956
1935
 
1957
- /**
1958
- * Assignments together exceeded 57600.
1959
- **/
1960
- OverScheduled: GenericPalletError<Rv>;
1961
-
1962
- /**
1963
- * Assignments together less than 57600
1964
- **/
1965
- UnderScheduled: GenericPalletError<Rv>;
1966
-
1967
1936
  /**
1968
1937
  * assign_core is only allowed to append new assignments at the end of already existing
1969
- * ones.
1938
+ * ones or update the last entry.
1970
1939
  **/
1971
1940
  DisallowedInsert: GenericPalletError<Rv>;
1972
1941
 
1973
- /**
1974
- * Tried to insert a schedule for the same core and block number as an existing schedule
1975
- **/
1976
- DuplicateInsert: GenericPalletError<Rv>;
1977
-
1978
- /**
1979
- * Tried to add an unsorted set of assignments
1980
- **/
1981
- AssignmentsNotSorted: GenericPalletError<Rv>;
1982
-
1983
1942
  /**
1984
1943
  * Generic pallet error
1985
1944
  **/
@@ -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,
@@ -14,6 +13,7 @@ import type {
14
13
  FixedU128,
15
14
  } from 'dedot/codecs';
16
15
  import type {
16
+ FrameSystemDispatchEventInfo,
17
17
  FrameSupportTokensMiscBalanceStatus,
18
18
  PalletStakingRewardDestination,
19
19
  PalletStakingValidatorPrefs,
@@ -26,7 +26,7 @@ import type {
26
26
  PalletConvictionVotingTally,
27
27
  FrameSupportDispatchPostDispatchInfo,
28
28
  SpRuntimeDispatchErrorWithPostInfo,
29
- PolkadotRuntimeProxyType,
29
+ PolkadotRuntimeConstantsProxyProxyType,
30
30
  PalletMultisigTimepoint,
31
31
  PalletElectionProviderMultiPhaseElectionCompute,
32
32
  SpNposElectionsElectionScore,
@@ -34,7 +34,7 @@ import type {
34
34
  PalletNominationPoolsPoolState,
35
35
  PalletNominationPoolsCommissionChangeRate,
36
36
  PalletNominationPoolsCommissionClaimPermission,
37
- PolkadotPrimitivesV8CandidateReceipt,
37
+ PolkadotPrimitivesVstagingCandidateReceiptV2,
38
38
  PolkadotParachainPrimitivesPrimitivesHeadData,
39
39
  PolkadotPrimitivesV8CoreIndex,
40
40
  PolkadotPrimitivesV8GroupIndex,
@@ -46,14 +46,14 @@ import type {
46
46
  PolkadotRuntimeParachainsDisputesDisputeResult,
47
47
  PalletStateTrieMigrationMigrationCompute,
48
48
  PalletStateTrieMigrationError,
49
- StagingXcmV4TraitsOutcome,
50
- StagingXcmV4Location,
51
- StagingXcmV4Xcm,
52
- StagingXcmV4Response,
49
+ StagingXcmV5TraitsOutcome,
50
+ StagingXcmV5Location,
51
+ StagingXcmV5Xcm,
52
+ StagingXcmV5Response,
53
53
  SpWeightsWeightV2Weight,
54
54
  XcmVersionedAssets,
55
- StagingXcmV4AssetAssets,
56
- XcmV3TraitsError,
55
+ StagingXcmV5AssetAssets,
56
+ XcmV5TraitsError,
57
57
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
58
58
  FrameSupportMessagesProcessMessageError,
59
59
  } from './types.js';
@@ -66,7 +66,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
66
66
  /**
67
67
  * An extrinsic completed successfully.
68
68
  **/
69
- ExtrinsicSuccess: GenericPalletEvent<Rv, 'System', 'ExtrinsicSuccess', { dispatchInfo: DispatchInfo }>;
69
+ ExtrinsicSuccess: GenericPalletEvent<
70
+ Rv,
71
+ 'System',
72
+ 'ExtrinsicSuccess',
73
+ { dispatchInfo: FrameSystemDispatchEventInfo }
74
+ >;
70
75
 
71
76
  /**
72
77
  * An extrinsic failed.
@@ -75,7 +80,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
75
80
  Rv,
76
81
  'System',
77
82
  'ExtrinsicFailed',
78
- { dispatchError: DispatchError; dispatchInfo: DispatchInfo }
83
+ { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo }
79
84
  >;
80
85
 
81
86
  /**
@@ -484,13 +489,13 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
484
489
  Chilled: GenericPalletEvent<Rv, 'Staking', 'Chilled', { stash: AccountId32 }>;
485
490
 
486
491
  /**
487
- * The stakers' rewards are getting paid.
492
+ * A Page of stakers rewards are getting paid. `next` is `None` if all pages are claimed.
488
493
  **/
489
494
  PayoutStarted: GenericPalletEvent<
490
495
  Rv,
491
496
  'Staking',
492
497
  'PayoutStarted',
493
- { eraIndex: number; validatorStash: AccountId32 }
498
+ { eraIndex: number; validatorStash: AccountId32; page: number; next?: number | undefined }
494
499
  >;
495
500
 
496
501
  /**
@@ -1174,7 +1179,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1174
1179
  Rv,
1175
1180
  'Proxy',
1176
1181
  'PureCreated',
1177
- { pure: AccountId32; who: AccountId32; proxyType: PolkadotRuntimeProxyType; disambiguationIndex: number }
1182
+ {
1183
+ pure: AccountId32;
1184
+ who: AccountId32;
1185
+ proxyType: PolkadotRuntimeConstantsProxyProxyType;
1186
+ disambiguationIndex: number;
1187
+ }
1178
1188
  >;
1179
1189
 
1180
1190
  /**
@@ -1189,7 +1199,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1189
1199
  Rv,
1190
1200
  'Proxy',
1191
1201
  'ProxyAdded',
1192
- { delegator: AccountId32; delegatee: AccountId32; proxyType: PolkadotRuntimeProxyType; delay: number }
1202
+ {
1203
+ delegator: AccountId32;
1204
+ delegatee: AccountId32;
1205
+ proxyType: PolkadotRuntimeConstantsProxyProxyType;
1206
+ delay: number;
1207
+ }
1193
1208
  >;
1194
1209
 
1195
1210
  /**
@@ -1199,7 +1214,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1199
1214
  Rv,
1200
1215
  'Proxy',
1201
1216
  'ProxyRemoved',
1202
- { delegator: AccountId32; delegatee: AccountId32; proxyType: PolkadotRuntimeProxyType; delay: number }
1217
+ {
1218
+ delegator: AccountId32;
1219
+ delegatee: AccountId32;
1220
+ proxyType: PolkadotRuntimeConstantsProxyProxyType;
1221
+ delay: number;
1222
+ }
1203
1223
  >;
1204
1224
 
1205
1225
  /**
@@ -1752,7 +1772,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1752
1772
  'ParaInclusion',
1753
1773
  'CandidateBacked',
1754
1774
  [
1755
- PolkadotPrimitivesV8CandidateReceipt,
1775
+ PolkadotPrimitivesVstagingCandidateReceiptV2,
1756
1776
  PolkadotParachainPrimitivesPrimitivesHeadData,
1757
1777
  PolkadotPrimitivesV8CoreIndex,
1758
1778
  PolkadotPrimitivesV8GroupIndex,
@@ -1767,7 +1787,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1767
1787
  'ParaInclusion',
1768
1788
  'CandidateIncluded',
1769
1789
  [
1770
- PolkadotPrimitivesV8CandidateReceipt,
1790
+ PolkadotPrimitivesVstagingCandidateReceiptV2,
1771
1791
  PolkadotParachainPrimitivesPrimitivesHeadData,
1772
1792
  PolkadotPrimitivesV8CoreIndex,
1773
1793
  PolkadotPrimitivesV8GroupIndex,
@@ -1782,7 +1802,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1782
1802
  'ParaInclusion',
1783
1803
  'CandidateTimedOut',
1784
1804
  [
1785
- PolkadotPrimitivesV8CandidateReceipt,
1805
+ PolkadotPrimitivesVstagingCandidateReceiptV2,
1786
1806
  PolkadotParachainPrimitivesPrimitivesHeadData,
1787
1807
  PolkadotPrimitivesV8CoreIndex,
1788
1808
  ]
@@ -2334,7 +2354,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2334
2354
  /**
2335
2355
  * Execution of an XCM message was attempted.
2336
2356
  **/
2337
- Attempted: GenericPalletEvent<Rv, 'XcmPallet', 'Attempted', { outcome: StagingXcmV4TraitsOutcome }>;
2357
+ Attempted: GenericPalletEvent<Rv, 'XcmPallet', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
2338
2358
 
2339
2359
  /**
2340
2360
  * A XCM message was sent.
@@ -2344,9 +2364,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2344
2364
  'XcmPallet',
2345
2365
  'Sent',
2346
2366
  {
2347
- origin: StagingXcmV4Location;
2348
- destination: StagingXcmV4Location;
2349
- message: StagingXcmV4Xcm;
2367
+ origin: StagingXcmV5Location;
2368
+ destination: StagingXcmV5Location;
2369
+ message: StagingXcmV5Xcm;
2350
2370
  messageId: FixedBytes<32>;
2351
2371
  }
2352
2372
  >;
@@ -2360,7 +2380,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2360
2380
  Rv,
2361
2381
  'XcmPallet',
2362
2382
  'UnexpectedResponse',
2363
- { origin: StagingXcmV4Location; queryId: bigint }
2383
+ { origin: StagingXcmV5Location; queryId: bigint }
2364
2384
  >;
2365
2385
 
2366
2386
  /**
@@ -2371,7 +2391,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2371
2391
  Rv,
2372
2392
  'XcmPallet',
2373
2393
  'ResponseReady',
2374
- { queryId: bigint; response: StagingXcmV4Response }
2394
+ { queryId: bigint; response: StagingXcmV5Response }
2375
2395
  >;
2376
2396
 
2377
2397
  /**
@@ -2435,7 +2455,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2435
2455
  Rv,
2436
2456
  'XcmPallet',
2437
2457
  'InvalidResponder',
2438
- { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }
2458
+ { origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined }
2439
2459
  >;
2440
2460
 
2441
2461
  /**
@@ -2451,7 +2471,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2451
2471
  Rv,
2452
2472
  'XcmPallet',
2453
2473
  'InvalidResponderVersion',
2454
- { origin: StagingXcmV4Location; queryId: bigint }
2474
+ { origin: StagingXcmV5Location; queryId: bigint }
2455
2475
  >;
2456
2476
 
2457
2477
  /**
@@ -2466,7 +2486,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2466
2486
  Rv,
2467
2487
  'XcmPallet',
2468
2488
  'AssetsTrapped',
2469
- { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets }
2489
+ { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
2470
2490
  >;
2471
2491
 
2472
2492
  /**
@@ -2478,7 +2498,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2478
2498
  Rv,
2479
2499
  'XcmPallet',
2480
2500
  'VersionChangeNotified',
2481
- { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
2501
+ { destination: StagingXcmV5Location; result: number; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
2482
2502
  >;
2483
2503
 
2484
2504
  /**
@@ -2489,7 +2509,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2489
2509
  Rv,
2490
2510
  'XcmPallet',
2491
2511
  'SupportedVersionChanged',
2492
- { location: StagingXcmV4Location; version: number }
2512
+ { location: StagingXcmV5Location; version: number }
2493
2513
  >;
2494
2514
 
2495
2515
  /**
@@ -2500,7 +2520,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2500
2520
  Rv,
2501
2521
  'XcmPallet',
2502
2522
  'NotifyTargetSendFail',
2503
- { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError }
2523
+ { location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError }
2504
2524
  >;
2505
2525
 
2506
2526
  /**
@@ -2527,7 +2547,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2527
2547
  Rv,
2528
2548
  'XcmPallet',
2529
2549
  'InvalidQuerierVersion',
2530
- { origin: StagingXcmV4Location; queryId: bigint }
2550
+ { origin: StagingXcmV5Location; queryId: bigint }
2531
2551
  >;
2532
2552
 
2533
2553
  /**
@@ -2540,10 +2560,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2540
2560
  'XcmPallet',
2541
2561
  'InvalidQuerier',
2542
2562
  {
2543
- origin: StagingXcmV4Location;
2563
+ origin: StagingXcmV5Location;
2544
2564
  queryId: bigint;
2545
- expectedQuerier: StagingXcmV4Location;
2546
- maybeActualQuerier?: StagingXcmV4Location | undefined;
2565
+ expectedQuerier: StagingXcmV5Location;
2566
+ maybeActualQuerier?: StagingXcmV5Location | undefined;
2547
2567
  }
2548
2568
  >;
2549
2569
 
@@ -2555,7 +2575,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2555
2575
  Rv,
2556
2576
  'XcmPallet',
2557
2577
  'VersionNotifyStarted',
2558
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
2578
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
2559
2579
  >;
2560
2580
 
2561
2581
  /**
@@ -2565,7 +2585,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2565
2585
  Rv,
2566
2586
  'XcmPallet',
2567
2587
  'VersionNotifyRequested',
2568
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
2588
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
2569
2589
  >;
2570
2590
 
2571
2591
  /**
@@ -2576,7 +2596,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2576
2596
  Rv,
2577
2597
  'XcmPallet',
2578
2598
  'VersionNotifyUnrequested',
2579
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
2599
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
2580
2600
  >;
2581
2601
 
2582
2602
  /**
@@ -2586,7 +2606,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2586
2606
  Rv,
2587
2607
  'XcmPallet',
2588
2608
  'FeesPaid',
2589
- { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets }
2609
+ { paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets }
2590
2610
  >;
2591
2611
 
2592
2612
  /**
@@ -2596,7 +2616,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2596
2616
  Rv,
2597
2617
  'XcmPallet',
2598
2618
  'AssetsClaimed',
2599
- { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets }
2619
+ { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
2600
2620
  >;
2601
2621
 
2602
2622
  /**
@@ -23,7 +23,7 @@ export interface VersionedPolkadotApi<Rv extends RpcVersion> extends GenericSubs
23
23
 
24
24
  /**
25
25
  * @name: PolkadotApi
26
- * @specVersion: 1004001
26
+ * @specVersion: 1005001
27
27
  **/
28
28
  export interface PolkadotApi {
29
29
  legacy: VersionedPolkadotApi<RpcLegacy>;
@@ -92,10 +92,9 @@ import type {
92
92
  PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
93
93
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
94
94
  PolkadotParachainPrimitivesPrimitivesId,
95
- PolkadotPrimitivesV8ScrapedOnChainVotes,
96
- PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
95
+ PolkadotPrimitivesVstagingScrapedOnChainVotes,
97
96
  PolkadotPrimitivesV8CoreIndex,
98
- PolkadotRuntimeParachainsSchedulerPalletParasEntry,
97
+ PolkadotRuntimeParachainsSchedulerCommonAssignment,
99
98
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
100
99
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
101
100
  PolkadotRuntimeParachainsParasParaLifecycle,
@@ -132,7 +131,7 @@ import type {
132
131
  PalletXcmVersionMigrationStage,
133
132
  PalletXcmRemoteLockedFungibleRecord,
134
133
  XcmVersionedAssetId,
135
- StagingXcmV4Xcm,
134
+ StagingXcmV5Xcm,
136
135
  PalletMessageQueueBookState,
137
136
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
138
137
  PalletMessageQueuePage,
@@ -1421,6 +1420,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1421
1420
  **/
1422
1421
  treasury: {
1423
1422
  /**
1423
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1424
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1425
+ *
1424
1426
  * Number of proposals that have been made.
1425
1427
  *
1426
1428
  * @param {Callback<number> =} callback
@@ -1428,6 +1430,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1428
1430
  proposalCount: GenericStorageQuery<Rv, () => number>;
1429
1431
 
1430
1432
  /**
1433
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1434
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1435
+ *
1431
1436
  * Proposals that have been made.
1432
1437
  *
1433
1438
  * @param {number} arg
@@ -1443,6 +1448,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1443
1448
  deactivated: GenericStorageQuery<Rv, () => bigint>;
1444
1449
 
1445
1450
  /**
1451
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1452
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1453
+ *
1446
1454
  * Proposal indices that have been approved but not yet awarded.
1447
1455
  *
1448
1456
  * @param {Callback<Array<number>> =} callback
@@ -1464,6 +1472,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1464
1472
  **/
1465
1473
  spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
1466
1474
 
1475
+ /**
1476
+ * The blocknumber for the last triggered spend period.
1477
+ *
1478
+ * @param {Callback<number | undefined> =} callback
1479
+ **/
1480
+ lastSpendPeriod: GenericStorageQuery<Rv, () => number | undefined>;
1481
+
1467
1482
  /**
1468
1483
  * Generic pallet storage query
1469
1484
  **/
@@ -1759,14 +1774,15 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1759
1774
  **/
1760
1775
  childBounties: {
1761
1776
  /**
1762
- * Number of total child bounties.
1777
+ * DEPRECATED: Replaced with `ParentTotalChildBounties` storage item keeping dedicated counts
1778
+ * for each parent bounty. Number of total child bounties. Will be removed in May 2025.
1763
1779
  *
1764
1780
  * @param {Callback<number> =} callback
1765
1781
  **/
1766
1782
  childBountyCount: GenericStorageQuery<Rv, () => number>;
1767
1783
 
1768
1784
  /**
1769
- * Number of child bounties per parent bounty.
1785
+ * Number of active child bounties per parent bounty.
1770
1786
  * Map of parent bounty index to number of child bounties.
1771
1787
  *
1772
1788
  * @param {number} arg
@@ -1774,6 +1790,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1774
1790
  **/
1775
1791
  parentChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
1776
1792
 
1793
+ /**
1794
+ * Number of total child bounties per parent bounty, including completed bounties.
1795
+ *
1796
+ * @param {number} arg
1797
+ * @param {Callback<number> =} callback
1798
+ **/
1799
+ parentTotalChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
1800
+
1777
1801
  /**
1778
1802
  * Child bounties that have been added.
1779
1803
  *
@@ -1787,12 +1811,26 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1787
1811
  >;
1788
1812
 
1789
1813
  /**
1790
- * The description of each child-bounty.
1814
+ * The description of each child-bounty. Indexed by `(parent_id, child_id)`.
1791
1815
  *
1792
- * @param {number} arg
1816
+ * This item replaces the `ChildBountyDescriptions` storage item from the V0 storage version.
1817
+ *
1818
+ * @param {[number, number]} arg
1793
1819
  * @param {Callback<Bytes | undefined> =} callback
1794
1820
  **/
1795
- childBountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
1821
+ childBountyDescriptionsV1: GenericStorageQuery<Rv, (arg: [number, number]) => Bytes | undefined, [number, number]>;
1822
+
1823
+ /**
1824
+ * The mapping of the child bounty ids from storage version `V0` to the new `V1` version.
1825
+ *
1826
+ * The `V0` ids based on total child bounty count [`ChildBountyCount`]`. The `V1` version ids
1827
+ * based on the child bounty count per parent bounty [`ParentTotalChildBounties`].
1828
+ * The item intended solely for client convenience and not used in the pallet's core logic.
1829
+ *
1830
+ * @param {number} arg
1831
+ * @param {Callback<[number, number] | undefined> =} callback
1832
+ **/
1833
+ v0ToV1ChildBountyIds: GenericStorageQuery<Rv, (arg: number) => [number, number] | undefined, number>;
1796
1834
 
1797
1835
  /**
1798
1836
  * The cumulative child-bounty curator fee for each parent bounty.
@@ -2382,9 +2420,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2382
2420
  /**
2383
2421
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
2384
2422
  *
2385
- * @param {Callback<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined> =} callback
2423
+ * @param {Callback<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined> =} callback
2386
2424
  **/
2387
- onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>;
2425
+ onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>;
2388
2426
 
2389
2427
  /**
2390
2428
  * Generic pallet storage query
@@ -2408,18 +2446,6 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2408
2446
  **/
2409
2447
  validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
2410
2448
 
2411
- /**
2412
- * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
2413
- * remaining cores all being on demand parachain multiplexers.
2414
- *
2415
- * Bounded by the maximum of either of these two values:
2416
- * * The number of parachains and parathread multiplexers
2417
- * * The number of validators divided by `configuration.max_validators_per_core`.
2418
- *
2419
- * @param {Callback<Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>> =} callback
2420
- **/
2421
- availabilityCores: GenericStorageQuery<Rv, () => Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>;
2422
-
2423
2449
  /**
2424
2450
  * The block number where the session start occurred. Used to track how many group rotations
2425
2451
  * have occurred.
@@ -2435,14 +2461,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2435
2461
 
2436
2462
  /**
2437
2463
  * One entry for each availability core. The `VecDeque` represents the assignments to be
2438
- * scheduled on that core. The value contained here will not be valid after the end of
2439
- * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
2464
+ * scheduled on that core.
2440
2465
  *
2441
- * @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2466
+ * @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>> =} callback
2442
2467
  **/
2443
2468
  claimQueue: GenericStorageQuery<
2444
2469
  Rv,
2445
- () => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2470
+ () => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>
2446
2471
  >;
2447
2472
 
2448
2473
  /**
@@ -2766,7 +2791,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2766
2791
  hasInitialized: GenericStorageQuery<Rv, () => [] | undefined>;
2767
2792
 
2768
2793
  /**
2769
- * Buffered session changes along with the block number at which they should be applied.
2794
+ * Buffered session changes.
2770
2795
  *
2771
2796
  * Typically this will be empty or one element long. Apart from that this item never hits
2772
2797
  * the storage.
@@ -3627,9 +3652,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3627
3652
  * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
3628
3653
  * implementation in the XCM executor configuration.
3629
3654
  *
3630
- * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
3655
+ * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
3631
3656
  **/
3632
- recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
3657
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
3633
3658
 
3634
3659
  /**
3635
3660
  * Generic pallet storage query