@dedot/chaintypes 0.246.0 → 0.247.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/westend/consts.d.ts +18 -10
- package/westend/errors.d.ts +30 -18
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +84 -87
- package/westend/runtime.d.ts +21 -0
- package/westend/tx.d.ts +37 -11
- package/westend/types.d.ts +95 -93
- package/westend-asset-hub/consts.d.ts +30 -1
- package/westend-asset-hub/errors.d.ts +49 -0
- package/westend-asset-hub/events.d.ts +68 -0
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +112 -2
- package/westend-asset-hub/tx.d.ts +6 -7
- package/westend-asset-hub/types.d.ts +106 -17
- package/westend-people/consts.d.ts +19 -1
- package/westend-people/index.d.ts +3 -1
- package/westend-people/query.d.ts +52 -2
- package/westend-people/types.d.ts +26 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.247.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": "45f6c867254946003d3baaaecf24b4d66bd32edb",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/westend/consts.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ import type {
|
|
|
6
6
|
FrameSystemLimitsBlockWeights,
|
|
7
7
|
FrameSystemLimitsBlockLength,
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
|
-
SpWeightsWeightV2Weight,
|
|
10
9
|
FrameSupportPalletId,
|
|
10
|
+
SpWeightsWeightV2Weight,
|
|
11
11
|
PalletReferendaTrackDetails,
|
|
12
12
|
StagingXcmV5Junctions,
|
|
13
13
|
} from './types.js';
|
|
@@ -199,6 +199,23 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
199
199
|
**/
|
|
200
200
|
[name: string]: any;
|
|
201
201
|
};
|
|
202
|
+
/**
|
|
203
|
+
* Pallet `DapSatellite`'s constants
|
|
204
|
+
**/
|
|
205
|
+
dapSatellite: {
|
|
206
|
+
/**
|
|
207
|
+
* The pallet ID used to derive the satellite account.
|
|
208
|
+
*
|
|
209
|
+
* Each runtime should configure a unique ID to avoid collisions if multiple
|
|
210
|
+
* DAP satellite instances are used.
|
|
211
|
+
**/
|
|
212
|
+
palletId: FrameSupportPalletId;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Generic pallet constant
|
|
216
|
+
**/
|
|
217
|
+
[name: string]: any;
|
|
218
|
+
};
|
|
202
219
|
/**
|
|
203
220
|
* Pallet `Authorship`'s constants
|
|
204
221
|
**/
|
|
@@ -1125,15 +1142,6 @@ export interface ChainConsts extends GenericChainConsts {
|
|
|
1125
1142
|
**/
|
|
1126
1143
|
[name: string]: any;
|
|
1127
1144
|
};
|
|
1128
|
-
/**
|
|
1129
|
-
* Pallet `CoretimeAssignmentProvider`'s constants
|
|
1130
|
-
**/
|
|
1131
|
-
coretimeAssignmentProvider: {
|
|
1132
|
-
/**
|
|
1133
|
-
* Generic pallet constant
|
|
1134
|
-
**/
|
|
1135
|
-
[name: string]: any;
|
|
1136
|
-
};
|
|
1137
1145
|
/**
|
|
1138
1146
|
* Pallet `Registrar`'s constants
|
|
1139
1147
|
**/
|
package/westend/errors.d.ts
CHANGED
|
@@ -1703,9 +1703,14 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1703
1703
|
**/
|
|
1704
1704
|
DisallowedRelayParent: GenericPalletError;
|
|
1705
1705
|
|
|
1706
|
+
/**
|
|
1707
|
+
* The candidate's scheduling-parent was not allowed.
|
|
1708
|
+
**/
|
|
1709
|
+
DisallowedSchedulingParent: GenericPalletError;
|
|
1710
|
+
|
|
1706
1711
|
/**
|
|
1707
1712
|
* Failed to compute group index for the core: either it's out of bounds
|
|
1708
|
-
* or the
|
|
1713
|
+
* or the scheduling parent doesn't belong to the current session.
|
|
1709
1714
|
**/
|
|
1710
1715
|
InvalidAssignment: GenericPalletError;
|
|
1711
1716
|
|
|
@@ -1796,6 +1801,25 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1796
1801
|
**/
|
|
1797
1802
|
[error: string]: GenericPalletError;
|
|
1798
1803
|
};
|
|
1804
|
+
/**
|
|
1805
|
+
* Pallet `ParaScheduler`'s errors
|
|
1806
|
+
**/
|
|
1807
|
+
paraScheduler: {
|
|
1808
|
+
/**
|
|
1809
|
+
* assign_core was called with no assignments.
|
|
1810
|
+
**/
|
|
1811
|
+
AssignmentsEmpty: GenericPalletError;
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* assign_core with non allowed insertion.
|
|
1815
|
+
**/
|
|
1816
|
+
DisallowedInsert: GenericPalletError;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Generic pallet error
|
|
1820
|
+
**/
|
|
1821
|
+
[error: string]: GenericPalletError;
|
|
1822
|
+
};
|
|
1799
1823
|
/**
|
|
1800
1824
|
* Pallet `Paras`'s errors
|
|
1801
1825
|
**/
|
|
@@ -2113,23 +2137,6 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2113
2137
|
**/
|
|
2114
2138
|
[error: string]: GenericPalletError;
|
|
2115
2139
|
};
|
|
2116
|
-
/**
|
|
2117
|
-
* Pallet `CoretimeAssignmentProvider`'s errors
|
|
2118
|
-
**/
|
|
2119
|
-
coretimeAssignmentProvider: {
|
|
2120
|
-
AssignmentsEmpty: GenericPalletError;
|
|
2121
|
-
|
|
2122
|
-
/**
|
|
2123
|
-
* assign_core is only allowed to append new assignments at the end of already existing
|
|
2124
|
-
* ones or update the last entry.
|
|
2125
|
-
**/
|
|
2126
|
-
DisallowedInsert: GenericPalletError;
|
|
2127
|
-
|
|
2128
|
-
/**
|
|
2129
|
-
* Generic pallet error
|
|
2130
|
-
**/
|
|
2131
|
-
[error: string]: GenericPalletError;
|
|
2132
|
-
};
|
|
2133
2140
|
/**
|
|
2134
2141
|
* Pallet `Registrar`'s errors
|
|
2135
2142
|
**/
|
|
@@ -2833,6 +2840,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2833
2840
|
**/
|
|
2834
2841
|
Invalid: GenericPalletError;
|
|
2835
2842
|
|
|
2843
|
+
/**
|
|
2844
|
+
* The meta transaction length is invalid.
|
|
2845
|
+
**/
|
|
2846
|
+
InvalidLength: GenericPalletError;
|
|
2847
|
+
|
|
2836
2848
|
/**
|
|
2837
2849
|
* Generic pallet error
|
|
2838
2850
|
**/
|
package/westend/index.d.ts
CHANGED
package/westend/query.d.ts
CHANGED
|
@@ -97,12 +97,14 @@ import type {
|
|
|
97
97
|
PolkadotRuntimeParachainsConfigurationHostConfiguration,
|
|
98
98
|
PolkadotPrimitivesV9ValidatorIndex,
|
|
99
99
|
PolkadotPrimitivesV9ValidatorAppPublic,
|
|
100
|
-
|
|
100
|
+
PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker,
|
|
101
|
+
PolkadotPrimitivesVstagingRelayParentInfo,
|
|
101
102
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
|
|
102
103
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
103
104
|
PolkadotPrimitivesV9ScrapedOnChainVotes,
|
|
105
|
+
PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule,
|
|
104
106
|
PolkadotPrimitivesV9CoreIndex,
|
|
105
|
-
|
|
107
|
+
PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor,
|
|
106
108
|
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
|
|
107
109
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
108
110
|
PolkadotRuntimeParachainsParasParaLifecycle,
|
|
@@ -125,11 +127,7 @@ import type {
|
|
|
125
127
|
PolkadotPrimitivesV9DisputeState,
|
|
126
128
|
PolkadotCorePrimitivesCandidateHash,
|
|
127
129
|
PolkadotPrimitivesV9SlashingPendingSlashes,
|
|
128
|
-
|
|
129
|
-
PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
|
|
130
|
-
BinaryHeapEnqueuedOrder,
|
|
131
|
-
PolkadotRuntimeParachainsAssignerCoretimeSchedule,
|
|
132
|
-
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
130
|
+
PolkadotRuntimeParachainsOnDemandOrderStatus,
|
|
133
131
|
PolkadotRuntimeCommonParasRegistrarParaInfo,
|
|
134
132
|
PolkadotRuntimeCommonCrowdloanFundInfo,
|
|
135
133
|
PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot,
|
|
@@ -277,6 +275,13 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
277
275
|
**/
|
|
278
276
|
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
279
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Number of blocks till the pending code upgrade is applied.
|
|
280
|
+
*
|
|
281
|
+
* @param {Callback<number | undefined> =} callback
|
|
282
|
+
**/
|
|
283
|
+
blocksTillUpgrade: GenericStorageQuery<() => number | undefined>;
|
|
284
|
+
|
|
280
285
|
/**
|
|
281
286
|
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
282
287
|
*
|
|
@@ -1273,6 +1278,17 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1273
1278
|
[SpCoreCryptoKeyTypeId, Bytes]
|
|
1274
1279
|
>;
|
|
1275
1280
|
|
|
1281
|
+
/**
|
|
1282
|
+
* Accounts whose keys were set via `SessionInterface` (external path) without
|
|
1283
|
+
* incrementing the consumer reference or placing a key deposit. `do_purge_keys`
|
|
1284
|
+
* only decrements consumers for accounts that were registered through the local
|
|
1285
|
+
* session pallet.
|
|
1286
|
+
*
|
|
1287
|
+
* @param {AccountId32Like} arg
|
|
1288
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1289
|
+
**/
|
|
1290
|
+
externallySetKeys: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
1291
|
+
|
|
1276
1292
|
/**
|
|
1277
1293
|
* Generic pallet storage query
|
|
1278
1294
|
**/
|
|
@@ -2405,11 +2421,41 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2405
2421
|
activeValidatorKeys: GenericStorageQuery<() => Array<PolkadotPrimitivesV9ValidatorAppPublic>>;
|
|
2406
2422
|
|
|
2407
2423
|
/**
|
|
2408
|
-
* All allowed
|
|
2424
|
+
* All allowed scheduling parents.
|
|
2409
2425
|
*
|
|
2410
|
-
* @param {Callback<
|
|
2426
|
+
* @param {Callback<PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker> =} callback
|
|
2411
2427
|
**/
|
|
2412
|
-
|
|
2428
|
+
allowedSchedulingParents: GenericStorageQuery<() => PolkadotRuntimeParachainsSharedAllowedSchedulingParentsTracker>;
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* All allowed relay parents, keyed by (session_index, relay_parent_hash).
|
|
2432
|
+
*
|
|
2433
|
+
* @param {[number, H256]} arg
|
|
2434
|
+
* @param {Callback<PolkadotPrimitivesVstagingRelayParentInfo | undefined> =} callback
|
|
2435
|
+
**/
|
|
2436
|
+
allowedRelayParents: GenericStorageQuery<
|
|
2437
|
+
(arg: [number, H256]) => PolkadotPrimitivesVstagingRelayParentInfo | undefined,
|
|
2438
|
+
[number, H256]
|
|
2439
|
+
>;
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* The oldest session index for which we still have relay parent entries in
|
|
2443
|
+
* `AllowedRelayParents`. Used to efficiently prune all expired sessions
|
|
2444
|
+
* when `max_relay_parent_session_age` decreases.
|
|
2445
|
+
*
|
|
2446
|
+
* @param {Callback<number> =} callback
|
|
2447
|
+
**/
|
|
2448
|
+
oldestRelayParentSession: GenericStorageQuery<() => number>;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* The minimum relay parent block number for each session that has entries in
|
|
2452
|
+
* `AllowedRelayParents`. This is the block number of the first relay parent
|
|
2453
|
+
* added to each session.
|
|
2454
|
+
*
|
|
2455
|
+
* @param {number} arg
|
|
2456
|
+
* @param {Callback<number | undefined> =} callback
|
|
2457
|
+
**/
|
|
2458
|
+
minimumRelayParentNumber: GenericStorageQuery<(arg: number) => number | undefined, number>;
|
|
2413
2459
|
|
|
2414
2460
|
/**
|
|
2415
2461
|
* Generic pallet storage query
|
|
@@ -2501,13 +2547,34 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
2501
2547
|
sessionStartBlock: GenericStorageQuery<() => number>;
|
|
2502
2548
|
|
|
2503
2549
|
/**
|
|
2504
|
-
*
|
|
2505
|
-
* scheduled on that core.
|
|
2550
|
+
* Scheduled assignment sets for coretime cores.
|
|
2506
2551
|
*
|
|
2507
|
-
*
|
|
2552
|
+
* Assignments as of the given block number. They will go into state once the block number is
|
|
2553
|
+
* reached (and replace whatever was in there before).
|
|
2554
|
+
*
|
|
2555
|
+
* Managed by the `assigner_coretime` submodule.
|
|
2556
|
+
*
|
|
2557
|
+
* @param {[number, PolkadotPrimitivesV9CoreIndex]} arg
|
|
2558
|
+
* @param {Callback<PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule | undefined> =} callback
|
|
2508
2559
|
**/
|
|
2509
|
-
|
|
2510
|
-
(
|
|
2560
|
+
coreSchedules: GenericStorageQuery<
|
|
2561
|
+
(
|
|
2562
|
+
arg: [number, PolkadotPrimitivesV9CoreIndex],
|
|
2563
|
+
) => PolkadotRuntimeParachainsSchedulerAssignerCoretimeSchedule | undefined,
|
|
2564
|
+
[number, PolkadotPrimitivesV9CoreIndex]
|
|
2565
|
+
>;
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* Assignments which are currently active for each core.
|
|
2569
|
+
*
|
|
2570
|
+
* They will be picked from `CoreSchedules` once we reach the scheduled block number.
|
|
2571
|
+
*
|
|
2572
|
+
* Managed by the `assigner_coretime` submodule.
|
|
2573
|
+
*
|
|
2574
|
+
* @param {Callback<Array<[PolkadotPrimitivesV9CoreIndex, PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor]>> =} callback
|
|
2575
|
+
**/
|
|
2576
|
+
coreDescriptors: GenericStorageQuery<
|
|
2577
|
+
() => Array<[PolkadotPrimitivesV9CoreIndex, PolkadotRuntimeParachainsSchedulerAssignerCoretimeCoreDescriptor]>
|
|
2511
2578
|
>;
|
|
2512
2579
|
|
|
2513
2580
|
/**
|
|
@@ -3210,45 +3277,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
3210
3277
|
* Pallet `OnDemandAssignmentProvider`'s storage queries
|
|
3211
3278
|
**/
|
|
3212
3279
|
onDemandAssignmentProvider: {
|
|
3213
|
-
/**
|
|
3214
|
-
* Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
|
|
3215
|
-
* it's lookahead. Keeping track of this affinity prevents parallel execution of the same
|
|
3216
|
-
* `ParaId` on two or more `CoreIndex`es.
|
|
3217
|
-
*
|
|
3218
|
-
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3219
|
-
* @param {Callback<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined> =} callback
|
|
3220
|
-
**/
|
|
3221
|
-
paraIdAffinity: GenericStorageQuery<
|
|
3222
|
-
(
|
|
3223
|
-
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
3224
|
-
) => PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined,
|
|
3225
|
-
PolkadotParachainPrimitivesPrimitivesId
|
|
3226
|
-
>;
|
|
3227
|
-
|
|
3228
|
-
/**
|
|
3229
|
-
* Overall status of queue (both free + affinity entries)
|
|
3230
|
-
*
|
|
3231
|
-
* @param {Callback<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType> =} callback
|
|
3232
|
-
**/
|
|
3233
|
-
queueStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>;
|
|
3234
|
-
|
|
3235
3280
|
/**
|
|
3236
3281
|
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
|
|
3237
3282
|
*
|
|
3238
|
-
* @param {Callback<
|
|
3283
|
+
* @param {Callback<PolkadotRuntimeParachainsOnDemandOrderStatus> =} callback
|
|
3239
3284
|
**/
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
/**
|
|
3243
|
-
* Queue entries that are currently bound to a particular core due to core affinity.
|
|
3244
|
-
*
|
|
3245
|
-
* @param {PolkadotPrimitivesV9CoreIndex} arg
|
|
3246
|
-
* @param {Callback<BinaryHeapEnqueuedOrder> =} callback
|
|
3247
|
-
**/
|
|
3248
|
-
affinityEntries: GenericStorageQuery<
|
|
3249
|
-
(arg: PolkadotPrimitivesV9CoreIndex) => BinaryHeapEnqueuedOrder,
|
|
3250
|
-
PolkadotPrimitivesV9CoreIndex
|
|
3251
|
-
>;
|
|
3285
|
+
orderStatus: GenericStorageQuery<() => PolkadotRuntimeParachainsOnDemandOrderStatus>;
|
|
3252
3286
|
|
|
3253
3287
|
/**
|
|
3254
3288
|
* Keeps track of accumulated revenue from on demand order sales.
|
|
@@ -3270,43 +3304,6 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
3270
3304
|
**/
|
|
3271
3305
|
[storage: string]: GenericStorageQuery;
|
|
3272
3306
|
};
|
|
3273
|
-
/**
|
|
3274
|
-
* Pallet `CoretimeAssignmentProvider`'s storage queries
|
|
3275
|
-
**/
|
|
3276
|
-
coretimeAssignmentProvider: {
|
|
3277
|
-
/**
|
|
3278
|
-
* Scheduled assignment sets.
|
|
3279
|
-
*
|
|
3280
|
-
* Assignments as of the given block number. They will go into state once the block number is
|
|
3281
|
-
* reached (and replace whatever was in there before).
|
|
3282
|
-
*
|
|
3283
|
-
* @param {[number, PolkadotPrimitivesV9CoreIndex]} arg
|
|
3284
|
-
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
|
|
3285
|
-
**/
|
|
3286
|
-
coreSchedules: GenericStorageQuery<
|
|
3287
|
-
(arg: [number, PolkadotPrimitivesV9CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
|
|
3288
|
-
[number, PolkadotPrimitivesV9CoreIndex]
|
|
3289
|
-
>;
|
|
3290
|
-
|
|
3291
|
-
/**
|
|
3292
|
-
* Assignments which are currently active.
|
|
3293
|
-
*
|
|
3294
|
-
* They will be picked from `PendingAssignments` once we reach the scheduled block number in
|
|
3295
|
-
* `PendingAssignments`.
|
|
3296
|
-
*
|
|
3297
|
-
* @param {PolkadotPrimitivesV9CoreIndex} arg
|
|
3298
|
-
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
|
|
3299
|
-
**/
|
|
3300
|
-
coreDescriptors: GenericStorageQuery<
|
|
3301
|
-
(arg: PolkadotPrimitivesV9CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
3302
|
-
PolkadotPrimitivesV9CoreIndex
|
|
3303
|
-
>;
|
|
3304
|
-
|
|
3305
|
-
/**
|
|
3306
|
-
* Generic pallet storage query
|
|
3307
|
-
**/
|
|
3308
|
-
[storage: string]: GenericStorageQuery;
|
|
3309
|
-
};
|
|
3310
3307
|
/**
|
|
3311
3308
|
* Pallet `Registrar`'s storage queries
|
|
3312
3309
|
**/
|
package/westend/runtime.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ import type {
|
|
|
56
56
|
PolkadotPrimitivesV9CoreIndex,
|
|
57
57
|
PolkadotPrimitivesV9AsyncBackingConstraints,
|
|
58
58
|
PolkadotPrimitivesV9SlashingPendingSlashes,
|
|
59
|
+
PolkadotPrimitivesVstagingRelayParentInfo,
|
|
59
60
|
SpConsensusBeefyValidatorSet,
|
|
60
61
|
SpConsensusBeefyDoubleVotingProof,
|
|
61
62
|
SpRuntimeOpaqueValue,
|
|
@@ -687,6 +688,26 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
687
688
|
() => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV9SlashingPendingSlashes]>>
|
|
688
689
|
>;
|
|
689
690
|
|
|
691
|
+
/**
|
|
692
|
+
* Retrieve the maximum relay parent session age allowed for parachain blocks.
|
|
693
|
+
*
|
|
694
|
+
* @callname: ParachainHost_max_relay_parent_session_age
|
|
695
|
+
**/
|
|
696
|
+
maxRelayParentSessionAge: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Retrieve the relay parent info (block number and state root) for a given
|
|
700
|
+
* session index and relay parent hash. Returns `None` if the relay parent
|
|
701
|
+
* is not found in the allowed relay parents for that session.
|
|
702
|
+
*
|
|
703
|
+
* @callname: ParachainHost_allowed_relay_parent_info
|
|
704
|
+
* @param {number} session_index
|
|
705
|
+
* @param {H256} relay_parent
|
|
706
|
+
**/
|
|
707
|
+
allowedRelayParentInfo: GenericRuntimeApiMethod<
|
|
708
|
+
(sessionIndex: number, relayParent: H256) => Promise<PolkadotPrimitivesVstagingRelayParentInfo | undefined>
|
|
709
|
+
>;
|
|
710
|
+
|
|
690
711
|
/**
|
|
691
712
|
* Generic runtime api call
|
|
692
713
|
**/
|
package/westend/tx.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ import type {
|
|
|
67
67
|
PolkadotPrimitivesV9AsyncBackingAsyncBackingParams,
|
|
68
68
|
PolkadotPrimitivesV9ExecutorParams,
|
|
69
69
|
PolkadotPrimitivesV9ApprovalVotingParams,
|
|
70
|
-
|
|
70
|
+
PolkadotPrimitivesVstagingSchedulerParams,
|
|
71
71
|
PolkadotPrimitivesV9InherentData,
|
|
72
72
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
73
73
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
@@ -82,7 +82,7 @@ import type {
|
|
|
82
82
|
SpRuntimeMultiSigner,
|
|
83
83
|
PolkadotRuntimeCommonAssignedSlotsSlotLeasePeriodStart,
|
|
84
84
|
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
85
|
-
|
|
85
|
+
PolkadotRuntimeParachainsSchedulerAssignerCoretimePartsOf57600,
|
|
86
86
|
PalletStakingAsyncRcClientValidatorSetReport,
|
|
87
87
|
PalletStakingAsyncAhClientOperatingMode,
|
|
88
88
|
PalletMigrationsMigrationCursor,
|
|
@@ -1711,7 +1711,7 @@ export interface ChainTx<
|
|
|
1711
1711
|
*
|
|
1712
1712
|
* If a validator has more than [`Config::MaxExposurePageSize`] nominators backing
|
|
1713
1713
|
* them, then the list of nominators is paged, with each page being capped at
|
|
1714
|
-
* [`Config::MaxExposurePageSize
|
|
1714
|
+
* [`Config::MaxExposurePageSize`]. If a validator has more than one page of nominators,
|
|
1715
1715
|
* the call needs to be made for each page separately in order for all the nominators
|
|
1716
1716
|
* backing a validator to receive the reward. The nominators are not sorted across pages
|
|
1717
1717
|
* and so it should not be assumed the highest staker would be on the topmost page and vice
|
|
@@ -7475,15 +7475,33 @@ export interface ChainTx<
|
|
|
7475
7475
|
/**
|
|
7476
7476
|
* Set scheduler-params.
|
|
7477
7477
|
*
|
|
7478
|
-
* @param {
|
|
7478
|
+
* @param {PolkadotPrimitivesVstagingSchedulerParams} new_
|
|
7479
7479
|
**/
|
|
7480
7480
|
setSchedulerParams: GenericTxCall<
|
|
7481
|
-
(new_:
|
|
7481
|
+
(new_: PolkadotPrimitivesVstagingSchedulerParams) => ChainSubmittableExtrinsic<
|
|
7482
7482
|
{
|
|
7483
7483
|
pallet: 'Configuration';
|
|
7484
7484
|
palletCall: {
|
|
7485
7485
|
name: 'SetSchedulerParams';
|
|
7486
|
-
params: { new:
|
|
7486
|
+
params: { new: PolkadotPrimitivesVstagingSchedulerParams };
|
|
7487
|
+
};
|
|
7488
|
+
},
|
|
7489
|
+
ChainKnownTypes
|
|
7490
|
+
>
|
|
7491
|
+
>;
|
|
7492
|
+
|
|
7493
|
+
/**
|
|
7494
|
+
* Set the maximum relay parent session age.
|
|
7495
|
+
*
|
|
7496
|
+
* @param {number} new_
|
|
7497
|
+
**/
|
|
7498
|
+
setMaxRelayParentSessionAge: GenericTxCall<
|
|
7499
|
+
(new_: number) => ChainSubmittableExtrinsic<
|
|
7500
|
+
{
|
|
7501
|
+
pallet: 'Configuration';
|
|
7502
|
+
palletCall: {
|
|
7503
|
+
name: 'SetMaxRelayParentSessionAge';
|
|
7504
|
+
params: { new: number };
|
|
7487
7505
|
};
|
|
7488
7506
|
},
|
|
7489
7507
|
ChainKnownTypes
|
|
@@ -9473,7 +9491,7 @@ export interface ChainTx<
|
|
|
9473
9491
|
*
|
|
9474
9492
|
* @param {number} core
|
|
9475
9493
|
* @param {number} begin
|
|
9476
|
-
* @param {Array<[PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
9494
|
+
* @param {Array<[PalletBrokerCoretimeInterfaceCoreAssignment, PolkadotRuntimeParachainsSchedulerAssignerCoretimePartsOf57600]>} assignment
|
|
9477
9495
|
* @param {number | undefined} endHint
|
|
9478
9496
|
**/
|
|
9479
9497
|
assignCore: GenericTxCall<
|
|
@@ -9481,7 +9499,7 @@ export interface ChainTx<
|
|
|
9481
9499
|
core: number,
|
|
9482
9500
|
begin: number,
|
|
9483
9501
|
assignment: Array<
|
|
9484
|
-
[PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
9502
|
+
[PalletBrokerCoretimeInterfaceCoreAssignment, PolkadotRuntimeParachainsSchedulerAssignerCoretimePartsOf57600]
|
|
9485
9503
|
>,
|
|
9486
9504
|
endHint: number | undefined,
|
|
9487
9505
|
) => ChainSubmittableExtrinsic<
|
|
@@ -9493,7 +9511,10 @@ export interface ChainTx<
|
|
|
9493
9511
|
core: number;
|
|
9494
9512
|
begin: number;
|
|
9495
9513
|
assignment: Array<
|
|
9496
|
-
[
|
|
9514
|
+
[
|
|
9515
|
+
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
9516
|
+
PolkadotRuntimeParachainsSchedulerAssignerCoretimePartsOf57600,
|
|
9517
|
+
]
|
|
9497
9518
|
>;
|
|
9498
9519
|
endHint: number | undefined;
|
|
9499
9520
|
};
|
|
@@ -10570,16 +10591,21 @@ export interface ChainTx<
|
|
|
10570
10591
|
*
|
|
10571
10592
|
* - `_origin`: Can be any kind of origin.
|
|
10572
10593
|
* - `meta_tx`: Meta Transaction with a target call to be dispatched.
|
|
10594
|
+
* - `meta_tx_encoded_len`: The size of the encoded meta transaction in bytes.
|
|
10573
10595
|
*
|
|
10574
10596
|
* @param {PalletMetaTxMetaTx} metaTx
|
|
10597
|
+
* @param {number} metaTxEncodedLen
|
|
10575
10598
|
**/
|
|
10576
10599
|
dispatch: GenericTxCall<
|
|
10577
|
-
(
|
|
10600
|
+
(
|
|
10601
|
+
metaTx: PalletMetaTxMetaTx,
|
|
10602
|
+
metaTxEncodedLen: number,
|
|
10603
|
+
) => ChainSubmittableExtrinsic<
|
|
10578
10604
|
{
|
|
10579
10605
|
pallet: 'MetaTx';
|
|
10580
10606
|
palletCall: {
|
|
10581
10607
|
name: 'Dispatch';
|
|
10582
|
-
params: { metaTx: PalletMetaTxMetaTx };
|
|
10608
|
+
params: { metaTx: PalletMetaTxMetaTx; metaTxEncodedLen: number };
|
|
10583
10609
|
};
|
|
10584
10610
|
},
|
|
10585
10611
|
ChainKnownTypes
|