@dedot/chaintypes 0.14.0 → 0.16.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.
Files changed (51) hide show
  1. package/kusama/consts.d.ts +48 -30
  2. package/kusama/errors.d.ts +89 -100
  3. package/kusama/events.d.ts +87 -28
  4. package/kusama/index.d.ts +1 -1
  5. package/kusama/query.d.ts +241 -130
  6. package/kusama/runtime.d.ts +347 -95
  7. package/kusama/tx.d.ts +3309 -456
  8. package/kusama/types.d.ts +6341 -1092
  9. package/kusama-asset-hub/consts.d.ts +52 -3
  10. package/kusama-asset-hub/errors.d.ts +30 -5
  11. package/kusama-asset-hub/events.d.ts +61 -1
  12. package/kusama-asset-hub/index.d.ts +1 -1
  13. package/kusama-asset-hub/query.d.ts +100 -18
  14. package/kusama-asset-hub/runtime.d.ts +186 -15
  15. package/kusama-asset-hub/tx.d.ts +3074 -254
  16. package/kusama-asset-hub/types.d.ts +6190 -551
  17. package/package.json +2 -2
  18. package/paseo/index.d.ts +1 -1
  19. package/rococo/errors.d.ts +0 -10
  20. package/rococo/events.d.ts +33 -12
  21. package/rococo/index.d.ts +1 -1
  22. package/rococo/query.d.ts +52 -52
  23. package/rococo/runtime.d.ts +117 -58
  24. package/rococo/tx.d.ts +33 -33
  25. package/rococo/types.d.ts +191 -185
  26. package/rococo-asset-hub/consts.d.ts +2 -2
  27. package/rococo-asset-hub/events.d.ts +87 -80
  28. package/rococo-asset-hub/index.d.ts +1 -1
  29. package/rococo-asset-hub/query.d.ts +66 -54
  30. package/rococo-asset-hub/runtime.d.ts +12 -15
  31. package/rococo-asset-hub/tx.d.ts +250 -241
  32. package/rococo-asset-hub/types.d.ts +353 -404
  33. package/westend/consts.d.ts +9 -0
  34. package/westend/errors.d.ts +0 -10
  35. package/westend/events.d.ts +79 -13
  36. package/westend/index.d.ts +1 -1
  37. package/westend/query.d.ts +75 -52
  38. package/westend/runtime.d.ts +133 -58
  39. package/westend/tx.d.ts +72 -35
  40. package/westend/types.d.ts +308 -190
  41. package/westend-asset-hub/consts.d.ts +2 -2
  42. package/westend-asset-hub/events.d.ts +87 -80
  43. package/westend-asset-hub/index.d.ts +1 -1
  44. package/westend-asset-hub/query.d.ts +66 -54
  45. package/westend-asset-hub/runtime.d.ts +12 -15
  46. package/westend-asset-hub/tx.d.ts +250 -241
  47. package/westend-asset-hub/types.d.ts +353 -404
  48. package/westend-people/index.d.ts +1 -1
  49. package/westend-people/query.d.ts +12 -12
  50. package/westend-people/tx.d.ts +1 -58
  51. package/westend-people/types.d.ts +16 -62
@@ -6,6 +6,7 @@ import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
8
8
  SpWeightsRuntimeDbWeight,
9
+ PolkadotParachainPrimitivesPrimitivesId,
9
10
  SpWeightsWeightV2Weight,
10
11
  PalletNftsBitFlagsPalletFeature,
11
12
  FrameSupportPalletId,
@@ -38,7 +39,7 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
38
39
  dbWeight: SpWeightsRuntimeDbWeight;
39
40
 
40
41
  /**
41
- * Get the chain's current version.
42
+ * Get the chain's in-code version.
42
43
  **/
43
44
  version: RuntimeVersion;
44
45
 
@@ -60,6 +61,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
60
61
  * Pallet `ParachainSystem`'s constants
61
62
  **/
62
63
  parachainSystem: {
64
+ /**
65
+ * Returns the parachain ID we are running with.
66
+ **/
67
+ selfParaId: PolkadotParachainPrimitivesPrimitivesId;
68
+
63
69
  /**
64
70
  * Generic pallet constant
65
71
  **/
@@ -112,11 +118,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
112
118
  /**
113
119
  * The maximum number of locks that should exist on an account.
114
120
  * Not strictly enforced, but used for weight estimation.
121
+ *
122
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
115
123
  **/
116
124
  maxLocks: number;
117
125
 
118
126
  /**
119
127
  * The maximum number of named reserves that can exist on an account.
128
+ *
129
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
120
130
  **/
121
131
  maxReserves: number;
122
132
 
@@ -219,6 +229,14 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
219
229
  * Pallet `Aura`'s constants
220
230
  **/
221
231
  aura: {
232
+ /**
233
+ * The slot duration Aura should run with, expressed in milliseconds.
234
+ * The effective value of this type should not change while the chain is running.
235
+ *
236
+ * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
237
+ **/
238
+ slotDuration: bigint;
239
+
222
240
  /**
223
241
  * Generic pallet constant
224
242
  **/
@@ -246,6 +264,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
246
264
  **/
247
265
  maxInboundSuspended: number;
248
266
 
267
+ /**
268
+ * Maximal number of outbound XCMP channels that can have messages queued at the same time.
269
+ *
270
+ * If this is reached, then no further messages can be sent to channels that do not yet
271
+ * have a message queued. This should be set to the expected maximum of outbound channels
272
+ * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
273
+ * since otherwise the congestion control protocol will not work as intended and messages
274
+ * may be dropped. This value increases the PoV and should therefore not be picked too
275
+ * high. Governance needs to pay attention to not open more channels than this value.
276
+ **/
277
+ maxActiveOutboundChannels: number;
278
+
279
+ /**
280
+ * The maximal page size for HRMP message pages.
281
+ *
282
+ * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
283
+ * benchmarking. The limit for the size of a message is slightly below this, since some
284
+ * overhead is incurred for encoding the format.
285
+ **/
286
+ maxPageSize: number;
287
+
249
288
  /**
250
289
  * Generic pallet constant
251
290
  **/
@@ -300,13 +339,23 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
300
339
 
301
340
  /**
302
341
  * The amount of weight (if any) which should be provided to the message queue for
303
- * servicing enqueued items.
342
+ * servicing enqueued items `on_initialize`.
304
343
  *
305
344
  * This may be legitimately `None` in the case that you will call
306
- * `ServiceQueues::service_queues` manually.
345
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
346
+ * it run in `on_idle`.
307
347
  **/
308
348
  serviceWeight: SpWeightsWeightV2Weight | undefined;
309
349
 
350
+ /**
351
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
352
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
353
+ * Useful for parachains to process messages at the same block they are received.
354
+ *
355
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
356
+ **/
357
+ idleMaxServiceWeight: SpWeightsWeightV2Weight | undefined;
358
+
310
359
  /**
311
360
  * Generic pallet constant
312
361
  **/
@@ -41,6 +41,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
41
41
  **/
42
42
  CallFiltered: GenericPalletError<Rv>;
43
43
 
44
+ /**
45
+ * A multi-block migration is ongoing and prevents the current code from being replaced.
46
+ **/
47
+ MultiBlockMigrationsOngoing: GenericPalletError<Rv>;
48
+
44
49
  /**
45
50
  * No upgrade authorized.
46
51
  **/
@@ -357,6 +362,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
357
362
  **/
358
363
  AlreadyResumed: GenericPalletError<Rv>;
359
364
 
365
+ /**
366
+ * There are too many active outbound channels.
367
+ **/
368
+ TooManyActiveOutboundChannels: GenericPalletError<Rv>;
369
+
370
+ /**
371
+ * The message is too big.
372
+ **/
373
+ TooBig: GenericPalletError<Rv>;
374
+
360
375
  /**
361
376
  * Generic pallet error
362
377
  **/
@@ -469,11 +484,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
469
484
  **/
470
485
  InUse: GenericPalletError<Rv>;
471
486
 
472
- /**
473
- * Invalid non-concrete asset.
474
- **/
475
- InvalidAssetNotConcrete: GenericPalletError<Rv>;
476
-
477
487
  /**
478
488
  * Invalid asset, reserve chain could not be determined for it.
479
489
  **/
@@ -808,6 +818,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
808
818
  **/
809
819
  CallbackFailed: GenericPalletError<Rv>;
810
820
 
821
+ /**
822
+ * The asset ID must be equal to the [`NextAssetId`].
823
+ **/
824
+ BadAssetId: GenericPalletError<Rv>;
825
+
811
826
  /**
812
827
  * Generic pallet error
813
828
  **/
@@ -1253,6 +1268,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1253
1268
  **/
1254
1269
  CallbackFailed: GenericPalletError<Rv>;
1255
1270
 
1271
+ /**
1272
+ * The asset ID must be equal to the [`NextAssetId`].
1273
+ **/
1274
+ BadAssetId: GenericPalletError<Rv>;
1275
+
1256
1276
  /**
1257
1277
  * Generic pallet error
1258
1278
  **/
@@ -1394,6 +1414,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1394
1414
  **/
1395
1415
  CallbackFailed: GenericPalletError<Rv>;
1396
1416
 
1417
+ /**
1418
+ * The asset ID must be equal to the [`NextAssetId`].
1419
+ **/
1420
+ BadAssetId: GenericPalletError<Rv>;
1421
+
1397
1422
  /**
1398
1423
  * Generic pallet error
1399
1424
  **/
@@ -1188,6 +1188,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1188
1188
  **/
1189
1189
  Blocked: GenericPalletEvent<Rv, 'Assets', 'Blocked', { assetId: number; who: AccountId32 }>;
1190
1190
 
1191
+ /**
1192
+ * Some assets were deposited (e.g. for transaction fees).
1193
+ **/
1194
+ Deposited: GenericPalletEvent<Rv, 'Assets', 'Deposited', { assetId: number; who: AccountId32; amount: bigint }>;
1195
+
1196
+ /**
1197
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
1198
+ **/
1199
+ Withdrawn: GenericPalletEvent<Rv, 'Assets', 'Withdrawn', { assetId: number; who: AccountId32; amount: bigint }>;
1200
+
1191
1201
  /**
1192
1202
  * Generic pallet event
1193
1203
  **/
@@ -2022,6 +2032,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2022
2032
  { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32 }
2023
2033
  >;
2024
2034
 
2035
+ /**
2036
+ * Some assets were deposited (e.g. for transaction fees).
2037
+ **/
2038
+ Deposited: GenericPalletEvent<
2039
+ Rv,
2040
+ 'ForeignAssets',
2041
+ 'Deposited',
2042
+ { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint }
2043
+ >;
2044
+
2045
+ /**
2046
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
2047
+ **/
2048
+ Withdrawn: GenericPalletEvent<
2049
+ Rv,
2050
+ 'ForeignAssets',
2051
+ 'Withdrawn',
2052
+ { assetId: StagingXcmV3MultilocationMultiLocation; who: AccountId32; amount: bigint }
2053
+ >;
2054
+
2025
2055
  /**
2026
2056
  * Generic pallet event
2027
2057
  **/
@@ -2236,6 +2266,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2236
2266
  **/
2237
2267
  Blocked: GenericPalletEvent<Rv, 'PoolAssets', 'Blocked', { assetId: number; who: AccountId32 }>;
2238
2268
 
2269
+ /**
2270
+ * Some assets were deposited (e.g. for transaction fees).
2271
+ **/
2272
+ Deposited: GenericPalletEvent<Rv, 'PoolAssets', 'Deposited', { assetId: number; who: AccountId32; amount: bigint }>;
2273
+
2274
+ /**
2275
+ * Some assets were withdrawn from the account (e.g. for transaction fees).
2276
+ **/
2277
+ Withdrawn: GenericPalletEvent<Rv, 'PoolAssets', 'Withdrawn', { assetId: number; who: AccountId32; amount: bigint }>;
2278
+
2239
2279
  /**
2240
2280
  * Generic pallet event
2241
2281
  **/
@@ -2246,7 +2286,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2246
2286
  **/
2247
2287
  assetConversion: {
2248
2288
  /**
2249
- * A successful call of the `CretaPool` extrinsic will create this event.
2289
+ * A successful call of the `CreatePool` extrinsic will create this event.
2250
2290
  **/
2251
2291
  PoolCreated: GenericPalletEvent<
2252
2292
  Rv,
@@ -2435,6 +2475,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2435
2475
  }
2436
2476
  >;
2437
2477
 
2478
+ /**
2479
+ * Pool has been touched in order to fulfill operational requirements.
2480
+ **/
2481
+ Touched: GenericPalletEvent<
2482
+ Rv,
2483
+ 'AssetConversion',
2484
+ 'Touched',
2485
+ {
2486
+ /**
2487
+ * The ID of the pool.
2488
+ **/
2489
+ poolId: [StagingXcmV3MultilocationMultiLocation, StagingXcmV3MultilocationMultiLocation];
2490
+
2491
+ /**
2492
+ * The account initiating the touch.
2493
+ **/
2494
+ who: AccountId32;
2495
+ }
2496
+ >;
2497
+
2438
2498
  /**
2439
2499
  * Generic pallet event
2440
2500
  **/
@@ -23,7 +23,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
23
23
 
24
24
  /**
25
25
  * @name: KusamaAssetHubApi
26
- * @specVersion: 1002006
26
+ * @specVersion: 1003000
27
27
  **/
28
28
  export interface KusamaAssetHubApi {
29
29
  legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
@@ -20,12 +20,12 @@ import type {
20
20
  FrameSystemCodeUpgradeAuthorization,
21
21
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
22
22
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
23
- PolkadotPrimitivesV6PersistedValidationData,
24
- PolkadotPrimitivesV6UpgradeRestriction,
25
- PolkadotPrimitivesV6UpgradeGoAhead,
23
+ PolkadotPrimitivesV7PersistedValidationData,
24
+ PolkadotPrimitivesV7UpgradeRestriction,
25
+ PolkadotPrimitivesV7UpgradeGoAhead,
26
26
  SpTrieStorageProof,
27
27
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
28
- PolkadotPrimitivesV6AbridgedHostConfiguration,
28
+ PolkadotPrimitivesV7AbridgedHostConfiguration,
29
29
  CumulusPrimitivesParachainInherentMessageQueueChain,
30
30
  PolkadotParachainPrimitivesPrimitivesId,
31
31
  PolkadotCorePrimitivesOutboundHrmpMessage,
@@ -33,8 +33,8 @@ import type {
33
33
  PalletBalancesAccountData,
34
34
  PalletBalancesBalanceLock,
35
35
  PalletBalancesReserveData,
36
- PalletBalancesIdAmount,
37
- PalletBalancesIdAmount002,
36
+ FrameSupportTokensMiscIdAmount,
37
+ FrameSupportTokensMiscIdAmount002,
38
38
  PalletTransactionPaymentReleases,
39
39
  PalletVestingVestingInfo,
40
40
  PalletVestingReleases,
@@ -50,6 +50,7 @@ import type {
50
50
  PalletXcmVersionMigrationStage,
51
51
  PalletXcmRemoteLockedFungibleRecord,
52
52
  XcmVersionedAssetId,
53
+ StagingXcmV4Xcm,
53
54
  BpXcmBridgeHubRouterBridgeState,
54
55
  PalletMessageQueueBookState,
55
56
  CumulusPrimitivesCoreAggregateMessageOrigin,
@@ -100,6 +101,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
100
101
  **/
101
102
  extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
102
103
 
104
+ /**
105
+ * Whether all inherents have been applied.
106
+ *
107
+ * @param {Callback<boolean> =} callback
108
+ **/
109
+ inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
110
+
103
111
  /**
104
112
  * The current weight for the block.
105
113
  *
@@ -285,9 +293,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
285
293
  * This value is expected to be set only once per block and it's never stored
286
294
  * in the trie.
287
295
  *
288
- * @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
296
+ * @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
289
297
  **/
290
- validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6PersistedValidationData | undefined>;
298
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7PersistedValidationData | undefined>;
291
299
 
292
300
  /**
293
301
  * Were the validation data set to notify the relay chain?
@@ -314,9 +322,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
314
322
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
315
323
  * set after the inherent.
316
324
  *
317
- * @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
325
+ * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
318
326
  **/
319
- upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
327
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
320
328
 
321
329
  /**
322
330
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -325,9 +333,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
325
333
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
326
334
  * set after the inherent.
327
335
  *
328
- * @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
336
+ * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
329
337
  **/
330
- upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
338
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
331
339
 
332
340
  /**
333
341
  * The state proof for the last relay parent block.
@@ -365,9 +373,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
365
373
  *
366
374
  * This data is also absent from the genesis.
367
375
  *
368
- * @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
376
+ * @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
369
377
  **/
370
- hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
378
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
371
379
 
372
380
  /**
373
381
  * The last downward message queue chain head we have observed.
@@ -574,6 +582,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
574
582
  * Any liquidity locks on some account balances.
575
583
  * NOTE: Should only be accessed when setting, changing and freeing a lock.
576
584
  *
585
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
586
+ *
577
587
  * @param {AccountId32Like} arg
578
588
  * @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
579
589
  **/
@@ -582,6 +592,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
582
592
  /**
583
593
  * Named reserves on some account balances.
584
594
  *
595
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
596
+ *
585
597
  * @param {AccountId32Like} arg
586
598
  * @param {Callback<Array<PalletBalancesReserveData>> =} callback
587
599
  **/
@@ -591,17 +603,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
591
603
  * Holds on account balances.
592
604
  *
593
605
  * @param {AccountId32Like} arg
594
- * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
606
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
595
607
  **/
596
- holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
608
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
597
609
 
598
610
  /**
599
611
  * Freeze locks on account balances.
600
612
  *
601
613
  * @param {AccountId32Like} arg
602
- * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
614
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
603
615
  **/
604
- freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
616
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
605
617
 
606
618
  /**
607
619
  * Generic pallet storage query
@@ -1063,6 +1075,31 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1063
1075
  **/
1064
1076
  xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
1065
1077
 
1078
+ /**
1079
+ * Whether or not incoming XCMs (both executed locally and received) should be recorded.
1080
+ * Only one XCM program will be recorded at a time.
1081
+ * This is meant to be used in runtime APIs, and it's advised it stays false
1082
+ * for all other use cases, so as to not degrade regular performance.
1083
+ *
1084
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1085
+ * implementation in the XCM executor configuration.
1086
+ *
1087
+ * @param {Callback<boolean> =} callback
1088
+ **/
1089
+ shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
1090
+
1091
+ /**
1092
+ * If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
1093
+ * will be stored here.
1094
+ * Runtime APIs can fetch the XCM that was executed by accessing this value.
1095
+ *
1096
+ * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1097
+ * implementation in the XCM executor configuration.
1098
+ *
1099
+ * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
1100
+ **/
1101
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
1102
+
1066
1103
  /**
1067
1104
  * Generic pallet storage query
1068
1105
  **/
@@ -1231,6 +1268,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1231
1268
  **/
1232
1269
  metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1233
1270
 
1271
+ /**
1272
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1273
+ * item has no effect.
1274
+ *
1275
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1276
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1277
+ * auto-increment model can be applied to all new asset IDs.
1278
+ *
1279
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1280
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1281
+ *
1282
+ * @param {Callback<number | undefined> =} callback
1283
+ **/
1284
+ nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1285
+
1234
1286
  /**
1235
1287
  * Generic pallet storage query
1236
1288
  **/
@@ -1565,6 +1617,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1565
1617
  StagingXcmV3MultilocationMultiLocation
1566
1618
  >;
1567
1619
 
1620
+ /**
1621
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1622
+ * item has no effect.
1623
+ *
1624
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1625
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1626
+ * auto-increment model can be applied to all new asset IDs.
1627
+ *
1628
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1629
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1630
+ *
1631
+ * @param {Callback<StagingXcmV3MultilocationMultiLocation | undefined> =} callback
1632
+ **/
1633
+ nextAssetId: GenericStorageQuery<Rv, () => StagingXcmV3MultilocationMultiLocation | undefined>;
1634
+
1568
1635
  /**
1569
1636
  * Generic pallet storage query
1570
1637
  **/
@@ -1637,6 +1704,21 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1637
1704
  **/
1638
1705
  metadata: GenericStorageQuery<Rv, (arg: number) => PalletAssetsAssetMetadata, number>;
1639
1706
 
1707
+ /**
1708
+ * The asset ID enforced for the next asset creation, if any present. Otherwise, this storage
1709
+ * item has no effect.
1710
+ *
1711
+ * This can be useful for setting up constraints for IDs of the new assets. For example, by
1712
+ * providing an initial [`NextAssetId`] and using the [`crate::AutoIncAssetId`] callback, an
1713
+ * auto-increment model can be applied to all new asset IDs.
1714
+ *
1715
+ * The initial next asset ID can be set using the [`GenesisConfig`] or the
1716
+ * [SetNextAssetId](`migration::next_asset_id::SetNextAssetId`) migration.
1717
+ *
1718
+ * @param {Callback<number | undefined> =} callback
1719
+ **/
1720
+ nextAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1721
+
1640
1722
  /**
1641
1723
  * Generic pallet storage query
1642
1724
  **/