@dedot/chaintypes 0.114.0 → 0.115.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 +2 -2
- package/paseo/consts.d.ts +5 -2
- package/paseo/errors.d.ts +5 -34
- package/paseo/events.d.ts +41 -36
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +55 -30
- package/paseo/runtime.d.ts +36 -18
- package/paseo/tx.d.ts +45 -48
- package/paseo/types.d.ts +402 -340
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.115.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": "
|
|
28
|
+
"gitHead": "25ff06803fb988a983d595a9ad392cd4e976f24d",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/paseo/consts.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import type {
|
|
|
9
9
|
SpWeightsWeightV2Weight,
|
|
10
10
|
FrameSupportPalletId,
|
|
11
11
|
PalletReferendaTrackInfo,
|
|
12
|
-
|
|
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:
|
|
1166
|
+
brokerPotLocation: StagingXcmV5Junctions;
|
|
1164
1167
|
|
|
1165
1168
|
/**
|
|
1166
1169
|
* Generic pallet constant
|
package/paseo/errors.d.ts
CHANGED
|
@@ -1353,11 +1353,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1353
1353
|
**/
|
|
1354
1354
|
NothingToSlash: GenericPalletError<Rv>;
|
|
1355
1355
|
|
|
1356
|
-
/**
|
|
1357
|
-
* The slash amount is too low to be applied.
|
|
1358
|
-
**/
|
|
1359
|
-
SlashTooLow: GenericPalletError<Rv>;
|
|
1360
|
-
|
|
1361
1356
|
/**
|
|
1362
1357
|
* The pool or member delegation has already migrated to delegate stake.
|
|
1363
1358
|
**/
|
|
@@ -1369,7 +1364,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1369
1364
|
NotMigrated: GenericPalletError<Rv>;
|
|
1370
1365
|
|
|
1371
1366
|
/**
|
|
1372
|
-
* 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.
|
|
1373
1369
|
**/
|
|
1374
1370
|
NotSupported: GenericPalletError<Rv>;
|
|
1375
1371
|
|
|
@@ -1619,15 +1615,10 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1619
1615
|
InvalidParentHeader: GenericPalletError<Rv>;
|
|
1620
1616
|
|
|
1621
1617
|
/**
|
|
1622
|
-
*
|
|
1623
|
-
**/
|
|
1624
|
-
InherentOverweight: GenericPalletError<Rv>;
|
|
1625
|
-
|
|
1626
|
-
/**
|
|
1627
|
-
* 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
|
|
1628
1619
|
* during creation.
|
|
1629
1620
|
**/
|
|
1630
|
-
|
|
1621
|
+
InherentDataFilteredDuringExecution: GenericPalletError<Rv>;
|
|
1631
1622
|
|
|
1632
1623
|
/**
|
|
1633
1624
|
* Too many candidates supplied.
|
|
@@ -1942,32 +1933,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1942
1933
|
coretimeAssignmentProvider: {
|
|
1943
1934
|
AssignmentsEmpty: GenericPalletError<Rv>;
|
|
1944
1935
|
|
|
1945
|
-
/**
|
|
1946
|
-
* Assignments together exceeded 57600.
|
|
1947
|
-
**/
|
|
1948
|
-
OverScheduled: GenericPalletError<Rv>;
|
|
1949
|
-
|
|
1950
|
-
/**
|
|
1951
|
-
* Assignments together less than 57600
|
|
1952
|
-
**/
|
|
1953
|
-
UnderScheduled: GenericPalletError<Rv>;
|
|
1954
|
-
|
|
1955
1936
|
/**
|
|
1956
1937
|
* assign_core is only allowed to append new assignments at the end of already existing
|
|
1957
|
-
* ones.
|
|
1938
|
+
* ones or update the last entry.
|
|
1958
1939
|
**/
|
|
1959
1940
|
DisallowedInsert: GenericPalletError<Rv>;
|
|
1960
1941
|
|
|
1961
|
-
/**
|
|
1962
|
-
* Tried to insert a schedule for the same core and block number as an existing schedule
|
|
1963
|
-
**/
|
|
1964
|
-
DuplicateInsert: GenericPalletError<Rv>;
|
|
1965
|
-
|
|
1966
|
-
/**
|
|
1967
|
-
* Tried to add an unsorted set of assignments
|
|
1968
|
-
**/
|
|
1969
|
-
AssignmentsNotSorted: GenericPalletError<Rv>;
|
|
1970
|
-
|
|
1971
1942
|
/**
|
|
1972
1943
|
* Generic pallet error
|
|
1973
1944
|
**/
|
package/paseo/events.d.ts
CHANGED
|
@@ -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,
|
|
@@ -34,7 +34,7 @@ import type {
|
|
|
34
34
|
PalletNominationPoolsPoolState,
|
|
35
35
|
PalletNominationPoolsCommissionChangeRate,
|
|
36
36
|
PalletNominationPoolsCommissionClaimPermission,
|
|
37
|
-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
StagingXcmV5TraitsOutcome,
|
|
50
|
+
StagingXcmV5Location,
|
|
51
|
+
StagingXcmV5Xcm,
|
|
52
|
+
StagingXcmV5Response,
|
|
53
53
|
SpWeightsWeightV2Weight,
|
|
54
54
|
XcmVersionedAssets,
|
|
55
|
-
|
|
56
|
-
|
|
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<
|
|
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:
|
|
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
|
-
*
|
|
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
|
/**
|
|
@@ -1757,7 +1762,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1757
1762
|
'ParaInclusion',
|
|
1758
1763
|
'CandidateBacked',
|
|
1759
1764
|
[
|
|
1760
|
-
|
|
1765
|
+
PolkadotPrimitivesVstagingCandidateReceiptV2,
|
|
1761
1766
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1762
1767
|
PolkadotPrimitivesV8CoreIndex,
|
|
1763
1768
|
PolkadotPrimitivesV8GroupIndex,
|
|
@@ -1772,7 +1777,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1772
1777
|
'ParaInclusion',
|
|
1773
1778
|
'CandidateIncluded',
|
|
1774
1779
|
[
|
|
1775
|
-
|
|
1780
|
+
PolkadotPrimitivesVstagingCandidateReceiptV2,
|
|
1776
1781
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1777
1782
|
PolkadotPrimitivesV8CoreIndex,
|
|
1778
1783
|
PolkadotPrimitivesV8GroupIndex,
|
|
@@ -1787,7 +1792,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1787
1792
|
'ParaInclusion',
|
|
1788
1793
|
'CandidateTimedOut',
|
|
1789
1794
|
[
|
|
1790
|
-
|
|
1795
|
+
PolkadotPrimitivesVstagingCandidateReceiptV2,
|
|
1791
1796
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
1792
1797
|
PolkadotPrimitivesV8CoreIndex,
|
|
1793
1798
|
]
|
|
@@ -2339,7 +2344,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2339
2344
|
/**
|
|
2340
2345
|
* Execution of an XCM message was attempted.
|
|
2341
2346
|
**/
|
|
2342
|
-
Attempted: GenericPalletEvent<Rv, 'XcmPallet', 'Attempted', { outcome:
|
|
2347
|
+
Attempted: GenericPalletEvent<Rv, 'XcmPallet', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
|
|
2343
2348
|
|
|
2344
2349
|
/**
|
|
2345
2350
|
* A XCM message was sent.
|
|
@@ -2349,9 +2354,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2349
2354
|
'XcmPallet',
|
|
2350
2355
|
'Sent',
|
|
2351
2356
|
{
|
|
2352
|
-
origin:
|
|
2353
|
-
destination:
|
|
2354
|
-
message:
|
|
2357
|
+
origin: StagingXcmV5Location;
|
|
2358
|
+
destination: StagingXcmV5Location;
|
|
2359
|
+
message: StagingXcmV5Xcm;
|
|
2355
2360
|
messageId: FixedBytes<32>;
|
|
2356
2361
|
}
|
|
2357
2362
|
>;
|
|
@@ -2365,7 +2370,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2365
2370
|
Rv,
|
|
2366
2371
|
'XcmPallet',
|
|
2367
2372
|
'UnexpectedResponse',
|
|
2368
|
-
{ origin:
|
|
2373
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
2369
2374
|
>;
|
|
2370
2375
|
|
|
2371
2376
|
/**
|
|
@@ -2376,7 +2381,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2376
2381
|
Rv,
|
|
2377
2382
|
'XcmPallet',
|
|
2378
2383
|
'ResponseReady',
|
|
2379
|
-
{ queryId: bigint; response:
|
|
2384
|
+
{ queryId: bigint; response: StagingXcmV5Response }
|
|
2380
2385
|
>;
|
|
2381
2386
|
|
|
2382
2387
|
/**
|
|
@@ -2440,7 +2445,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2440
2445
|
Rv,
|
|
2441
2446
|
'XcmPallet',
|
|
2442
2447
|
'InvalidResponder',
|
|
2443
|
-
{ origin:
|
|
2448
|
+
{ origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined }
|
|
2444
2449
|
>;
|
|
2445
2450
|
|
|
2446
2451
|
/**
|
|
@@ -2456,7 +2461,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2456
2461
|
Rv,
|
|
2457
2462
|
'XcmPallet',
|
|
2458
2463
|
'InvalidResponderVersion',
|
|
2459
|
-
{ origin:
|
|
2464
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
2460
2465
|
>;
|
|
2461
2466
|
|
|
2462
2467
|
/**
|
|
@@ -2471,7 +2476,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2471
2476
|
Rv,
|
|
2472
2477
|
'XcmPallet',
|
|
2473
2478
|
'AssetsTrapped',
|
|
2474
|
-
{ hash: H256; origin:
|
|
2479
|
+
{ hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
|
|
2475
2480
|
>;
|
|
2476
2481
|
|
|
2477
2482
|
/**
|
|
@@ -2483,7 +2488,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2483
2488
|
Rv,
|
|
2484
2489
|
'XcmPallet',
|
|
2485
2490
|
'VersionChangeNotified',
|
|
2486
|
-
{ destination:
|
|
2491
|
+
{ destination: StagingXcmV5Location; result: number; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
2487
2492
|
>;
|
|
2488
2493
|
|
|
2489
2494
|
/**
|
|
@@ -2494,7 +2499,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2494
2499
|
Rv,
|
|
2495
2500
|
'XcmPallet',
|
|
2496
2501
|
'SupportedVersionChanged',
|
|
2497
|
-
{ location:
|
|
2502
|
+
{ location: StagingXcmV5Location; version: number }
|
|
2498
2503
|
>;
|
|
2499
2504
|
|
|
2500
2505
|
/**
|
|
@@ -2505,7 +2510,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2505
2510
|
Rv,
|
|
2506
2511
|
'XcmPallet',
|
|
2507
2512
|
'NotifyTargetSendFail',
|
|
2508
|
-
{ location:
|
|
2513
|
+
{ location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError }
|
|
2509
2514
|
>;
|
|
2510
2515
|
|
|
2511
2516
|
/**
|
|
@@ -2532,7 +2537,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2532
2537
|
Rv,
|
|
2533
2538
|
'XcmPallet',
|
|
2534
2539
|
'InvalidQuerierVersion',
|
|
2535
|
-
{ origin:
|
|
2540
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
2536
2541
|
>;
|
|
2537
2542
|
|
|
2538
2543
|
/**
|
|
@@ -2545,10 +2550,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2545
2550
|
'XcmPallet',
|
|
2546
2551
|
'InvalidQuerier',
|
|
2547
2552
|
{
|
|
2548
|
-
origin:
|
|
2553
|
+
origin: StagingXcmV5Location;
|
|
2549
2554
|
queryId: bigint;
|
|
2550
|
-
expectedQuerier:
|
|
2551
|
-
maybeActualQuerier?:
|
|
2555
|
+
expectedQuerier: StagingXcmV5Location;
|
|
2556
|
+
maybeActualQuerier?: StagingXcmV5Location | undefined;
|
|
2552
2557
|
}
|
|
2553
2558
|
>;
|
|
2554
2559
|
|
|
@@ -2560,7 +2565,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2560
2565
|
Rv,
|
|
2561
2566
|
'XcmPallet',
|
|
2562
2567
|
'VersionNotifyStarted',
|
|
2563
|
-
{ destination:
|
|
2568
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
2564
2569
|
>;
|
|
2565
2570
|
|
|
2566
2571
|
/**
|
|
@@ -2570,7 +2575,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2570
2575
|
Rv,
|
|
2571
2576
|
'XcmPallet',
|
|
2572
2577
|
'VersionNotifyRequested',
|
|
2573
|
-
{ destination:
|
|
2578
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
2574
2579
|
>;
|
|
2575
2580
|
|
|
2576
2581
|
/**
|
|
@@ -2581,7 +2586,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2581
2586
|
Rv,
|
|
2582
2587
|
'XcmPallet',
|
|
2583
2588
|
'VersionNotifyUnrequested',
|
|
2584
|
-
{ destination:
|
|
2589
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
2585
2590
|
>;
|
|
2586
2591
|
|
|
2587
2592
|
/**
|
|
@@ -2591,7 +2596,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2591
2596
|
Rv,
|
|
2592
2597
|
'XcmPallet',
|
|
2593
2598
|
'FeesPaid',
|
|
2594
|
-
{ paying:
|
|
2599
|
+
{ paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets }
|
|
2595
2600
|
>;
|
|
2596
2601
|
|
|
2597
2602
|
/**
|
|
@@ -2601,7 +2606,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2601
2606
|
Rv,
|
|
2602
2607
|
'XcmPallet',
|
|
2603
2608
|
'AssetsClaimed',
|
|
2604
|
-
{ hash: H256; origin:
|
|
2609
|
+
{ hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
|
|
2605
2610
|
>;
|
|
2606
2611
|
|
|
2607
2612
|
/**
|
package/paseo/index.d.ts
CHANGED
package/paseo/query.d.ts
CHANGED
|
@@ -92,10 +92,9 @@ import type {
|
|
|
92
92
|
PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
|
|
93
93
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
|
|
94
94
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
95
|
-
|
|
96
|
-
PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
|
|
95
|
+
PolkadotPrimitivesVstagingScrapedOnChainVotes,
|
|
97
96
|
PolkadotPrimitivesV8CoreIndex,
|
|
98
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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<
|
|
2423
|
+
* @param {Callback<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined> =} callback
|
|
2386
2424
|
**/
|
|
2387
|
-
onChainVotes: GenericStorageQuery<Rv, () =>
|
|
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.
|
|
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<
|
|
2466
|
+
* @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerCommonAssignment>]>> =} callback
|
|
2442
2467
|
**/
|
|
2443
2468
|
claimQueue: GenericStorageQuery<
|
|
2444
2469
|
Rv,
|
|
2445
|
-
() => Array<[PolkadotPrimitivesV8CoreIndex, Array<
|
|
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
|
|
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<
|
|
3655
|
+
* @param {Callback<StagingXcmV5Xcm | undefined> =} callback
|
|
3631
3656
|
**/
|
|
3632
|
-
recordedXcm: GenericStorageQuery<Rv, () =>
|
|
3657
|
+
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
|
|
3633
3658
|
|
|
3634
3659
|
/**
|
|
3635
3660
|
* Generic pallet storage query
|