@dedot/chaintypes 0.104.0 → 0.106.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.
@@ -3,12 +3,11 @@
3
3
  import type {
4
4
  Phase,
5
5
  H256,
6
- DispatchInfo,
7
6
  DispatchError,
8
7
  AccountId32,
9
8
  FixedBytes,
10
- FixedArray,
11
9
  Bytes,
10
+ FixedArray,
12
11
  Result,
13
12
  BytesLike,
14
13
  MultiAddress,
@@ -50,6 +49,7 @@ export type FrameSystemEventRecord = { phase: Phase; event: PeopleKusamaRuntimeR
50
49
  export type PeopleKusamaRuntimeRuntimeEvent =
51
50
  | { pallet: 'System'; palletEvent: FrameSystemEvent }
52
51
  | { pallet: 'ParachainSystem'; palletEvent: CumulusPalletParachainSystemEvent }
52
+ | { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent }
53
53
  | { pallet: 'Balances'; palletEvent: PalletBalancesEvent }
54
54
  | { pallet: 'TransactionPayment'; palletEvent: PalletTransactionPaymentEvent }
55
55
  | { pallet: 'CollatorSelection'; palletEvent: PalletCollatorSelectionEvent }
@@ -70,11 +70,11 @@ export type FrameSystemEvent =
70
70
  /**
71
71
  * An extrinsic completed successfully.
72
72
  **/
73
- | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: DispatchInfo } }
73
+ | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: FrameSystemDispatchEventInfo } }
74
74
  /**
75
75
  * An extrinsic failed.
76
76
  **/
77
- | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: DispatchInfo } }
77
+ | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo } }
78
78
  /**
79
79
  * `:code` was updated.
80
80
  **/
@@ -96,10 +96,32 @@ export type FrameSystemEvent =
96
96
  **/
97
97
  | { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } };
98
98
 
99
+ export type FrameSystemDispatchEventInfo = {
100
+ weight: SpWeightsWeightV2Weight;
101
+ class: FrameSupportDispatchDispatchClass;
102
+ paysFee: FrameSupportDispatchPays;
103
+ };
104
+
99
105
  export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory';
100
106
 
101
107
  export type FrameSupportDispatchPays = 'Yes' | 'No';
102
108
 
109
+ export type SpRuntimeProvingTrieTrieError =
110
+ | 'InvalidStateRoot'
111
+ | 'IncompleteDatabase'
112
+ | 'ValueAtIncompleteKey'
113
+ | 'DecoderError'
114
+ | 'InvalidHash'
115
+ | 'DuplicateKey'
116
+ | 'ExtraneousNode'
117
+ | 'ExtraneousValue'
118
+ | 'ExtraneousHashReference'
119
+ | 'InvalidChildReference'
120
+ | 'ValueMismatch'
121
+ | 'IncompleteProof'
122
+ | 'RootMismatch'
123
+ | 'DecodeError';
124
+
103
125
  /**
104
126
  * The `Event` enum of this pallet
105
127
  **/
@@ -129,6 +151,117 @@ export type CumulusPalletParachainSystemEvent =
129
151
  **/
130
152
  | { name: 'UpwardMessageSent'; data: { messageHash?: FixedBytes<32> | undefined } };
131
153
 
154
+ /**
155
+ * The `Event` enum of this pallet
156
+ **/
157
+ export type PalletMigrationsEvent =
158
+ /**
159
+ * A Runtime upgrade started.
160
+ *
161
+ * Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
162
+ **/
163
+ | {
164
+ name: 'UpgradeStarted';
165
+ data: {
166
+ /**
167
+ * The number of migrations that this upgrade contains.
168
+ *
169
+ * This can be used to design a progress indicator in combination with counting the
170
+ * `MigrationCompleted` and `MigrationSkipped` events.
171
+ **/
172
+ migrations: number;
173
+ };
174
+ }
175
+ /**
176
+ * The current runtime upgrade completed.
177
+ *
178
+ * This implies that all of its migrations completed successfully as well.
179
+ **/
180
+ | { name: 'UpgradeCompleted' }
181
+ /**
182
+ * Runtime upgrade failed.
183
+ *
184
+ * This is very bad and will require governance intervention.
185
+ **/
186
+ | { name: 'UpgradeFailed' }
187
+ /**
188
+ * A migration was skipped since it was already executed in the past.
189
+ **/
190
+ | {
191
+ name: 'MigrationSkipped';
192
+ data: {
193
+ /**
194
+ * The index of the skipped migration within the [`Config::Migrations`] list.
195
+ **/
196
+ index: number;
197
+ };
198
+ }
199
+ /**
200
+ * A migration progressed.
201
+ **/
202
+ | {
203
+ name: 'MigrationAdvanced';
204
+ data: {
205
+ /**
206
+ * The index of the migration within the [`Config::Migrations`] list.
207
+ **/
208
+ index: number;
209
+
210
+ /**
211
+ * The number of blocks that this migration took so far.
212
+ **/
213
+ took: number;
214
+ };
215
+ }
216
+ /**
217
+ * A Migration completed.
218
+ **/
219
+ | {
220
+ name: 'MigrationCompleted';
221
+ data: {
222
+ /**
223
+ * The index of the migration within the [`Config::Migrations`] list.
224
+ **/
225
+ index: number;
226
+
227
+ /**
228
+ * The number of blocks that this migration took so far.
229
+ **/
230
+ took: number;
231
+ };
232
+ }
233
+ /**
234
+ * A Migration failed.
235
+ *
236
+ * This implies that the whole upgrade failed and governance intervention is required.
237
+ **/
238
+ | {
239
+ name: 'MigrationFailed';
240
+ data: {
241
+ /**
242
+ * The index of the migration within the [`Config::Migrations`] list.
243
+ **/
244
+ index: number;
245
+
246
+ /**
247
+ * The number of blocks that this migration took so far.
248
+ **/
249
+ took: number;
250
+ };
251
+ }
252
+ /**
253
+ * The set of historical migrations has been cleared.
254
+ **/
255
+ | {
256
+ name: 'HistoricCleared';
257
+ data: {
258
+ /**
259
+ * Should be passed to `clear_historic` in a successive call.
260
+ **/
261
+ nextCursor?: Bytes | undefined;
262
+ };
263
+ };
264
+
132
265
  /**
133
266
  * The `Event` enum of this pallet
134
267
  **/
@@ -316,16 +449,16 @@ export type PalletXcmEvent =
316
449
  /**
317
450
  * Execution of an XCM message was attempted.
318
451
  **/
319
- | { name: 'Attempted'; data: { outcome: StagingXcmV4TraitsOutcome } }
452
+ | { name: 'Attempted'; data: { outcome: StagingXcmV5TraitsOutcome } }
320
453
  /**
321
454
  * A XCM message was sent.
322
455
  **/
323
456
  | {
324
457
  name: 'Sent';
325
458
  data: {
326
- origin: StagingXcmV4Location;
327
- destination: StagingXcmV4Location;
328
- message: StagingXcmV4Xcm;
459
+ origin: StagingXcmV5Location;
460
+ destination: StagingXcmV5Location;
461
+ message: StagingXcmV5Xcm;
329
462
  messageId: FixedBytes<32>;
330
463
  };
331
464
  }
@@ -334,12 +467,12 @@ export type PalletXcmEvent =
334
467
  * matching query was never registered, it may be because it is a duplicate response, or
335
468
  * because the query timed out.
336
469
  **/
337
- | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV4Location; queryId: bigint } }
470
+ | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV5Location; queryId: bigint } }
338
471
  /**
339
472
  * Query response has been received and is ready for taking with `take_response`. There is
340
473
  * no registered notification call.
341
474
  **/
342
- | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV4Response } }
475
+ | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV5Response } }
343
476
  /**
344
477
  * Query response has been received and query is removed. The registered notification has
345
478
  * been dispatched and executed successfully.
@@ -378,7 +511,7 @@ export type PalletXcmEvent =
378
511
  **/
379
512
  | {
380
513
  name: 'InvalidResponder';
381
- data: { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined };
514
+ data: { origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined };
382
515
  }
383
516
  /**
384
517
  * Expected query response has been received but the expected origin location placed in
@@ -389,7 +522,7 @@ export type PalletXcmEvent =
389
522
  * valid response will be dropped. Manual governance intervention is probably going to be
390
523
  * needed.
391
524
  **/
392
- | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } }
525
+ | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV5Location; queryId: bigint } }
393
526
  /**
394
527
  * Received query response has been read and removed.
395
528
  **/
@@ -397,7 +530,7 @@ export type PalletXcmEvent =
397
530
  /**
398
531
  * Some assets have been placed in an asset trap.
399
532
  **/
400
- | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } }
533
+ | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets } }
401
534
  /**
402
535
  * An XCM version change notification message has been attempted to be sent.
403
536
  *
@@ -406,9 +539,9 @@ export type PalletXcmEvent =
406
539
  | {
407
540
  name: 'VersionChangeNotified';
408
541
  data: {
409
- destination: StagingXcmV4Location;
542
+ destination: StagingXcmV5Location;
410
543
  result: number;
411
- cost: StagingXcmV4AssetAssets;
544
+ cost: StagingXcmV5AssetAssets;
412
545
  messageId: FixedBytes<32>;
413
546
  };
414
547
  }
@@ -416,12 +549,12 @@ export type PalletXcmEvent =
416
549
  * The supported version of a location has been changed. This might be through an
417
550
  * automatic notification or a manual intervention.
418
551
  **/
419
- | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV4Location; version: number } }
552
+ | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV5Location; version: number } }
420
553
  /**
421
554
  * A given location which had a version change subscription was dropped owing to an error
422
555
  * sending the notification to it.
423
556
  **/
424
- | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } }
557
+ | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError } }
425
558
  /**
426
559
  * A given location which had a version change subscription was dropped owing to an error
427
560
  * migrating the location to our new XCM format.
@@ -436,7 +569,7 @@ export type PalletXcmEvent =
436
569
  * valid response will be dropped. Manual governance intervention is probably going to be
437
570
  * needed.
438
571
  **/
439
- | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } }
572
+ | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV5Location; queryId: bigint } }
440
573
  /**
441
574
  * Expected query response has been received but the querier location of the response does
442
575
  * not match the expected. The query remains registered for a later, valid, response to
@@ -445,10 +578,10 @@ export type PalletXcmEvent =
445
578
  | {
446
579
  name: 'InvalidQuerier';
447
580
  data: {
448
- origin: StagingXcmV4Location;
581
+ origin: StagingXcmV5Location;
449
582
  queryId: bigint;
450
- expectedQuerier: StagingXcmV4Location;
451
- maybeActualQuerier?: StagingXcmV4Location | undefined;
583
+ expectedQuerier: StagingXcmV5Location;
584
+ maybeActualQuerier?: StagingXcmV5Location | undefined;
452
585
  };
453
586
  }
454
587
  /**
@@ -457,14 +590,14 @@ export type PalletXcmEvent =
457
590
  **/
458
591
  | {
459
592
  name: 'VersionNotifyStarted';
460
- data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> };
593
+ data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
461
594
  }
462
595
  /**
463
596
  * We have requested that a remote chain send us XCM version change notifications.
464
597
  **/
465
598
  | {
466
599
  name: 'VersionNotifyRequested';
467
- data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> };
600
+ data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
468
601
  }
469
602
  /**
470
603
  * We have requested that a remote chain stops sending us XCM version change
@@ -472,27 +605,27 @@ export type PalletXcmEvent =
472
605
  **/
473
606
  | {
474
607
  name: 'VersionNotifyUnrequested';
475
- data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> };
608
+ data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
476
609
  }
477
610
  /**
478
611
  * Fees were paid from a location for an operation (often for using `SendXcm`).
479
612
  **/
480
- | { name: 'FeesPaid'; data: { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } }
613
+ | { name: 'FeesPaid'; data: { paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets } }
481
614
  /**
482
615
  * Some assets have been claimed from an asset trap
483
616
  **/
484
- | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } }
617
+ | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets } }
485
618
  /**
486
619
  * A XCM version migration finished.
487
620
  **/
488
621
  | { name: 'VersionMigrationFinished'; data: { version: number } };
489
622
 
490
- export type StagingXcmV4TraitsOutcome =
623
+ export type StagingXcmV5TraitsOutcome =
491
624
  | { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } }
492
- | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV3TraitsError } }
493
- | { type: 'Error'; value: { error: XcmV3TraitsError } };
625
+ | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV5TraitsError } }
626
+ | { type: 'Error'; value: { error: XcmV5TraitsError } };
494
627
 
495
- export type XcmV3TraitsError =
628
+ export type XcmV5TraitsError =
496
629
  | { type: 'Overflow' }
497
630
  | { type: 'Unimplemented' }
498
631
  | { type: 'UntrustedReserveLocation' }
@@ -528,45 +661,43 @@ export type XcmV3TraitsError =
528
661
  | { type: 'NoPermission' }
529
662
  | { type: 'Unanchored' }
530
663
  | { type: 'NotDepositable' }
664
+ | { type: 'TooManyAssets' }
531
665
  | { type: 'UnhandledXcmVersion' }
532
666
  | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
533
667
  | { type: 'Barrier' }
534
668
  | { type: 'WeightNotComputable' }
535
669
  | { type: 'ExceedsStackLimit' };
536
670
 
537
- export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions };
671
+ export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
538
672
 
539
- export type StagingXcmV4Junctions =
673
+ export type StagingXcmV5Junctions =
540
674
  | { type: 'Here' }
541
- | { type: 'X1'; value: FixedArray<StagingXcmV4Junction, 1> }
542
- | { type: 'X2'; value: FixedArray<StagingXcmV4Junction, 2> }
543
- | { type: 'X3'; value: FixedArray<StagingXcmV4Junction, 3> }
544
- | { type: 'X4'; value: FixedArray<StagingXcmV4Junction, 4> }
545
- | { type: 'X5'; value: FixedArray<StagingXcmV4Junction, 5> }
546
- | { type: 'X6'; value: FixedArray<StagingXcmV4Junction, 6> }
547
- | { type: 'X7'; value: FixedArray<StagingXcmV4Junction, 7> }
548
- | { type: 'X8'; value: FixedArray<StagingXcmV4Junction, 8> };
549
-
550
- export type StagingXcmV4Junction =
675
+ | { type: 'X1'; value: FixedArray<StagingXcmV5Junction, 1> }
676
+ | { type: 'X2'; value: FixedArray<StagingXcmV5Junction, 2> }
677
+ | { type: 'X3'; value: FixedArray<StagingXcmV5Junction, 3> }
678
+ | { type: 'X4'; value: FixedArray<StagingXcmV5Junction, 4> }
679
+ | { type: 'X5'; value: FixedArray<StagingXcmV5Junction, 5> }
680
+ | { type: 'X6'; value: FixedArray<StagingXcmV5Junction, 6> }
681
+ | { type: 'X7'; value: FixedArray<StagingXcmV5Junction, 7> }
682
+ | { type: 'X8'; value: FixedArray<StagingXcmV5Junction, 8> };
683
+
684
+ export type StagingXcmV5Junction =
551
685
  | { type: 'Parachain'; value: number }
552
- | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } }
553
- | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } }
554
- | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } }
686
+ | { type: 'AccountId32'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; id: FixedBytes<32> } }
687
+ | { type: 'AccountIndex64'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; index: bigint } }
688
+ | { type: 'AccountKey20'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; key: FixedBytes<20> } }
555
689
  | { type: 'PalletInstance'; value: number }
556
690
  | { type: 'GeneralIndex'; value: bigint }
557
691
  | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
558
692
  | { type: 'OnlyChild' }
559
693
  | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
560
- | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId };
694
+ | { type: 'GlobalConsensus'; value: StagingXcmV5JunctionNetworkId };
561
695
 
562
- export type StagingXcmV4JunctionNetworkId =
696
+ export type StagingXcmV5JunctionNetworkId =
563
697
  | { type: 'ByGenesis'; value: FixedBytes<32> }
564
698
  | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
565
699
  | { type: 'Polkadot' }
566
700
  | { type: 'Kusama' }
567
- | { type: 'Westend' }
568
- | { type: 'Rococo' }
569
- | { type: 'Wococo' }
570
701
  | { type: 'Ethereum'; value: { chainId: bigint } }
571
702
  | { type: 'BitcoinCore' }
572
703
  | { type: 'BitcoinCash' }
@@ -591,107 +722,124 @@ export type XcmV3JunctionBodyPart =
591
722
  | { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
592
723
  | { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
593
724
 
594
- export type StagingXcmV4Xcm = Array<StagingXcmV4Instruction>;
725
+ export type StagingXcmV5Xcm = Array<StagingXcmV5Instruction>;
595
726
 
596
- export type StagingXcmV4Instruction =
597
- | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets }
598
- | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets }
599
- | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets }
727
+ export type StagingXcmV5Instruction =
728
+ | { type: 'WithdrawAsset'; value: StagingXcmV5AssetAssets }
729
+ | { type: 'ReserveAssetDeposited'; value: StagingXcmV5AssetAssets }
730
+ | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV5AssetAssets }
600
731
  | {
601
732
  type: 'QueryResponse';
602
733
  value: {
603
734
  queryId: bigint;
604
- response: StagingXcmV4Response;
735
+ response: StagingXcmV5Response;
605
736
  maxWeight: SpWeightsWeightV2Weight;
606
- querier?: StagingXcmV4Location | undefined;
737
+ querier?: StagingXcmV5Location | undefined;
607
738
  };
608
739
  }
609
- | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } }
740
+ | { type: 'TransferAsset'; value: { assets: StagingXcmV5AssetAssets; beneficiary: StagingXcmV5Location } }
610
741
  | {
611
742
  type: 'TransferReserveAsset';
612
- value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
743
+ value: { assets: StagingXcmV5AssetAssets; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
613
744
  }
614
745
  | {
615
746
  type: 'Transact';
616
- value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
747
+ value: {
748
+ originKind: XcmV3OriginKind;
749
+ fallbackMaxWeight?: SpWeightsWeightV2Weight | undefined;
750
+ call: XcmDoubleEncoded;
751
+ };
617
752
  }
618
753
  | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
619
754
  | { type: 'HrmpChannelAccepted'; value: { recipient: number } }
620
755
  | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
621
756
  | { type: 'ClearOrigin' }
622
- | { type: 'DescendOrigin'; value: StagingXcmV4Junctions }
623
- | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo }
624
- | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } }
757
+ | { type: 'DescendOrigin'; value: StagingXcmV5Junctions }
758
+ | { type: 'ReportError'; value: StagingXcmV5QueryResponseInfo }
759
+ | { type: 'DepositAsset'; value: { assets: StagingXcmV5AssetAssetFilter; beneficiary: StagingXcmV5Location } }
625
760
  | {
626
761
  type: 'DepositReserveAsset';
627
- value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
762
+ value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
628
763
  }
629
764
  | {
630
765
  type: 'ExchangeAsset';
631
- value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean };
766
+ value: { give: StagingXcmV5AssetAssetFilter; want: StagingXcmV5AssetAssets; maximal: boolean };
632
767
  }
633
768
  | {
634
769
  type: 'InitiateReserveWithdraw';
635
- value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
770
+ value: { assets: StagingXcmV5AssetAssetFilter; reserve: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
636
771
  }
637
772
  | {
638
773
  type: 'InitiateTeleport';
639
- value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
774
+ value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
640
775
  }
641
776
  | {
642
777
  type: 'ReportHolding';
643
- value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter };
778
+ value: { responseInfo: StagingXcmV5QueryResponseInfo; assets: StagingXcmV5AssetAssetFilter };
644
779
  }
645
- | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } }
780
+ | { type: 'BuyExecution'; value: { fees: StagingXcmV5Asset; weightLimit: XcmV3WeightLimit } }
646
781
  | { type: 'RefundSurplus' }
647
- | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm }
648
- | { type: 'SetAppendix'; value: StagingXcmV4Xcm }
782
+ | { type: 'SetErrorHandler'; value: StagingXcmV5Xcm }
783
+ | { type: 'SetAppendix'; value: StagingXcmV5Xcm }
649
784
  | { type: 'ClearError' }
650
- | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } }
785
+ | { type: 'ClaimAsset'; value: { assets: StagingXcmV5AssetAssets; ticket: StagingXcmV5Location } }
651
786
  | { type: 'Trap'; value: bigint }
652
787
  | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
653
788
  | { type: 'UnsubscribeVersion' }
654
- | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets }
655
- | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets }
656
- | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined }
657
- | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined }
789
+ | { type: 'BurnAsset'; value: StagingXcmV5AssetAssets }
790
+ | { type: 'ExpectAsset'; value: StagingXcmV5AssetAssets }
791
+ | { type: 'ExpectOrigin'; value?: StagingXcmV5Location | undefined }
792
+ | { type: 'ExpectError'; value?: [number, XcmV5TraitsError] | undefined }
658
793
  | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode }
659
- | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } }
794
+ | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV5QueryResponseInfo } }
660
795
  | {
661
796
  type: 'ExpectPallet';
662
797
  value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number };
663
798
  }
664
- | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo }
799
+ | { type: 'ReportTransactStatus'; value: StagingXcmV5QueryResponseInfo }
665
800
  | { type: 'ClearTransactStatus' }
666
- | { type: 'UniversalOrigin'; value: StagingXcmV4Junction }
801
+ | { type: 'UniversalOrigin'; value: StagingXcmV5Junction }
667
802
  | {
668
803
  type: 'ExportMessage';
669
- value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm };
804
+ value: { network: StagingXcmV5JunctionNetworkId; destination: StagingXcmV5Junctions; xcm: StagingXcmV5Xcm };
670
805
  }
671
- | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } }
672
- | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } }
673
- | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } }
674
- | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } }
806
+ | { type: 'LockAsset'; value: { asset: StagingXcmV5Asset; unlocker: StagingXcmV5Location } }
807
+ | { type: 'UnlockAsset'; value: { asset: StagingXcmV5Asset; target: StagingXcmV5Location } }
808
+ | { type: 'NoteUnlockable'; value: { asset: StagingXcmV5Asset; owner: StagingXcmV5Location } }
809
+ | { type: 'RequestUnlock'; value: { asset: StagingXcmV5Asset; locker: StagingXcmV5Location } }
675
810
  | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } }
676
811
  | { type: 'SetTopic'; value: FixedBytes<32> }
677
812
  | { type: 'ClearTopic' }
678
- | { type: 'AliasOrigin'; value: StagingXcmV4Location }
813
+ | { type: 'AliasOrigin'; value: StagingXcmV5Location }
679
814
  | {
680
815
  type: 'UnpaidExecution';
681
- value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined };
682
- };
816
+ value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV5Location | undefined };
817
+ }
818
+ | { type: 'PayFees'; value: { asset: StagingXcmV5Asset } }
819
+ | {
820
+ type: 'InitiateTransfer';
821
+ value: {
822
+ destination: StagingXcmV5Location;
823
+ remoteFees?: StagingXcmV5AssetAssetTransferFilter | undefined;
824
+ preserveOrigin: boolean;
825
+ assets: Array<StagingXcmV5AssetAssetTransferFilter>;
826
+ remoteXcm: StagingXcmV5Xcm;
827
+ };
828
+ }
829
+ | { type: 'ExecuteWithOrigin'; value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm } }
830
+ | { type: 'SetHints'; value: { hints: Array<StagingXcmV5Hint> } };
683
831
 
684
- export type StagingXcmV4AssetAssets = Array<StagingXcmV4Asset>;
832
+ export type StagingXcmV5AssetAssets = Array<StagingXcmV5Asset>;
685
833
 
686
- export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility };
834
+ export type StagingXcmV5Asset = { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetFungibility };
687
835
 
688
- export type StagingXcmV4AssetAssetId = StagingXcmV4Location;
836
+ export type StagingXcmV5AssetAssetId = StagingXcmV5Location;
689
837
 
690
- export type StagingXcmV4AssetFungibility =
838
+ export type StagingXcmV5AssetFungibility =
691
839
  | { type: 'Fungible'; value: bigint }
692
- | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance };
840
+ | { type: 'NonFungible'; value: StagingXcmV5AssetAssetInstance };
693
841
 
694
- export type StagingXcmV4AssetAssetInstance =
842
+ export type StagingXcmV5AssetAssetInstance =
695
843
  | { type: 'Undefined' }
696
844
  | { type: 'Index'; value: bigint }
697
845
  | { type: 'Array4'; value: FixedBytes<4> }
@@ -699,15 +847,15 @@ export type StagingXcmV4AssetAssetInstance =
699
847
  | { type: 'Array16'; value: FixedBytes<16> }
700
848
  | { type: 'Array32'; value: FixedBytes<32> };
701
849
 
702
- export type StagingXcmV4Response =
850
+ export type StagingXcmV5Response =
703
851
  | { type: 'Null' }
704
- | { type: 'Assets'; value: StagingXcmV4AssetAssets }
705
- | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
852
+ | { type: 'Assets'; value: StagingXcmV5AssetAssets }
853
+ | { type: 'ExecutionResult'; value?: [number, XcmV5TraitsError] | undefined }
706
854
  | { type: 'Version'; value: number }
707
- | { type: 'PalletsInfo'; value: Array<StagingXcmV4PalletInfo> }
855
+ | { type: 'PalletsInfo'; value: Array<StagingXcmV5PalletInfo> }
708
856
  | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
709
857
 
710
- export type StagingXcmV4PalletInfo = {
858
+ export type StagingXcmV5PalletInfo = {
711
859
  index: number;
712
860
  name: Bytes;
713
861
  moduleName: Bytes;
@@ -725,118 +873,40 @@ export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm
725
873
 
726
874
  export type XcmDoubleEncoded = { encoded: Bytes };
727
875
 
728
- export type StagingXcmV4QueryResponseInfo = {
729
- destination: StagingXcmV4Location;
876
+ export type StagingXcmV5QueryResponseInfo = {
877
+ destination: StagingXcmV5Location;
730
878
  queryId: bigint;
731
879
  maxWeight: SpWeightsWeightV2Weight;
732
880
  };
733
881
 
734
- export type StagingXcmV4AssetAssetFilter =
735
- | { type: 'Definite'; value: StagingXcmV4AssetAssets }
736
- | { type: 'Wild'; value: StagingXcmV4AssetWildAsset };
882
+ export type StagingXcmV5AssetAssetFilter =
883
+ | { type: 'Definite'; value: StagingXcmV5AssetAssets }
884
+ | { type: 'Wild'; value: StagingXcmV5AssetWildAsset };
737
885
 
738
- export type StagingXcmV4AssetWildAsset =
886
+ export type StagingXcmV5AssetWildAsset =
739
887
  | { type: 'All' }
740
- | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } }
888
+ | { type: 'AllOf'; value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility } }
741
889
  | { type: 'AllCounted'; value: number }
742
890
  | {
743
891
  type: 'AllOfCounted';
744
- value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number };
892
+ value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility; count: number };
745
893
  };
746
894
 
747
- export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible';
895
+ export type StagingXcmV5AssetWildFungibility = 'Fungible' | 'NonFungible';
748
896
 
749
897
  export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight };
750
898
 
751
- export type XcmVersionedAssets =
752
- | { type: 'V2'; value: XcmV2MultiassetMultiAssets }
753
- | { type: 'V3'; value: XcmV3MultiassetMultiAssets }
754
- | { type: 'V4'; value: StagingXcmV4AssetAssets };
755
-
756
- export type XcmV2MultiassetMultiAssets = Array<XcmV2MultiassetMultiAsset>;
757
-
758
- export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility };
759
-
760
- export type XcmV2MultiassetAssetId =
761
- | { type: 'Concrete'; value: XcmV2MultilocationMultiLocation }
762
- | { type: 'Abstract'; value: Bytes };
763
-
764
- export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions };
765
-
766
- export type XcmV2MultilocationJunctions =
767
- | { type: 'Here' }
768
- | { type: 'X1'; value: XcmV2Junction }
769
- | { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] }
770
- | { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] }
771
- | { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
772
- | { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
773
- | { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
774
- | {
775
- type: 'X7';
776
- value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction];
777
- }
778
- | {
779
- type: 'X8';
780
- value: [
781
- XcmV2Junction,
782
- XcmV2Junction,
783
- XcmV2Junction,
784
- XcmV2Junction,
785
- XcmV2Junction,
786
- XcmV2Junction,
787
- XcmV2Junction,
788
- XcmV2Junction,
789
- ];
790
- };
791
-
792
- export type XcmV2Junction =
793
- | { type: 'Parachain'; value: number }
794
- | { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } }
795
- | { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } }
796
- | { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } }
797
- | { type: 'PalletInstance'; value: number }
798
- | { type: 'GeneralIndex'; value: bigint }
799
- | { type: 'GeneralKey'; value: Bytes }
800
- | { type: 'OnlyChild' }
801
- | { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } };
802
-
803
- export type XcmV2NetworkId =
804
- | { type: 'Any' }
805
- | { type: 'Named'; value: Bytes }
806
- | { type: 'Polkadot' }
807
- | { type: 'Kusama' };
899
+ export type StagingXcmV5AssetAssetTransferFilter =
900
+ | { type: 'Teleport'; value: StagingXcmV5AssetAssetFilter }
901
+ | { type: 'ReserveDeposit'; value: StagingXcmV5AssetAssetFilter }
902
+ | { type: 'ReserveWithdraw'; value: StagingXcmV5AssetAssetFilter };
808
903
 
809
- export type XcmV2BodyId =
810
- | { type: 'Unit' }
811
- | { type: 'Named'; value: Bytes }
812
- | { type: 'Index'; value: number }
813
- | { type: 'Executive' }
814
- | { type: 'Technical' }
815
- | { type: 'Legislative' }
816
- | { type: 'Judicial' }
817
- | { type: 'Defense' }
818
- | { type: 'Administration' }
819
- | { type: 'Treasury' };
820
-
821
- export type XcmV2BodyPart =
822
- | { type: 'Voice' }
823
- | { type: 'Members'; value: { count: number } }
824
- | { type: 'Fraction'; value: { nom: number; denom: number } }
825
- | { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
826
- | { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
904
+ export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
827
905
 
828
- export type XcmV2MultiassetFungibility =
829
- | { type: 'Fungible'; value: bigint }
830
- | { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance };
831
-
832
- export type XcmV2MultiassetAssetInstance =
833
- | { type: 'Undefined' }
834
- | { type: 'Index'; value: bigint }
835
- | { type: 'Array4'; value: FixedBytes<4> }
836
- | { type: 'Array8'; value: FixedBytes<8> }
837
- | { type: 'Array16'; value: FixedBytes<16> }
838
- | { type: 'Array32'; value: FixedBytes<32> }
839
- | { type: 'Blob'; value: Bytes };
906
+ export type XcmVersionedAssets =
907
+ | { type: 'V3'; value: XcmV3MultiassetMultiAssets }
908
+ | { type: 'V4'; value: StagingXcmV4AssetAssets }
909
+ | { type: 'V5'; value: StagingXcmV5AssetAssets };
840
910
 
841
911
  export type XcmV3MultiassetMultiAssets = Array<XcmV3MultiassetMultiAsset>;
842
912
 
@@ -911,10 +981,66 @@ export type XcmV3MultiassetAssetInstance =
911
981
  | { type: 'Array16'; value: FixedBytes<16> }
912
982
  | { type: 'Array32'; value: FixedBytes<32> };
913
983
 
984
+ export type StagingXcmV4AssetAssets = Array<StagingXcmV4Asset>;
985
+
986
+ export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility };
987
+
988
+ export type StagingXcmV4AssetAssetId = StagingXcmV4Location;
989
+
990
+ export type StagingXcmV4Location = { parents: number; interior: StagingXcmV4Junctions };
991
+
992
+ export type StagingXcmV4Junctions =
993
+ | { type: 'Here' }
994
+ | { type: 'X1'; value: FixedArray<StagingXcmV4Junction, 1> }
995
+ | { type: 'X2'; value: FixedArray<StagingXcmV4Junction, 2> }
996
+ | { type: 'X3'; value: FixedArray<StagingXcmV4Junction, 3> }
997
+ | { type: 'X4'; value: FixedArray<StagingXcmV4Junction, 4> }
998
+ | { type: 'X5'; value: FixedArray<StagingXcmV4Junction, 5> }
999
+ | { type: 'X6'; value: FixedArray<StagingXcmV4Junction, 6> }
1000
+ | { type: 'X7'; value: FixedArray<StagingXcmV4Junction, 7> }
1001
+ | { type: 'X8'; value: FixedArray<StagingXcmV4Junction, 8> };
1002
+
1003
+ export type StagingXcmV4Junction =
1004
+ | { type: 'Parachain'; value: number }
1005
+ | { type: 'AccountId32'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; id: FixedBytes<32> } }
1006
+ | { type: 'AccountIndex64'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; index: bigint } }
1007
+ | { type: 'AccountKey20'; value: { network?: StagingXcmV4JunctionNetworkId | undefined; key: FixedBytes<20> } }
1008
+ | { type: 'PalletInstance'; value: number }
1009
+ | { type: 'GeneralIndex'; value: bigint }
1010
+ | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
1011
+ | { type: 'OnlyChild' }
1012
+ | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
1013
+ | { type: 'GlobalConsensus'; value: StagingXcmV4JunctionNetworkId };
1014
+
1015
+ export type StagingXcmV4JunctionNetworkId =
1016
+ | { type: 'ByGenesis'; value: FixedBytes<32> }
1017
+ | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
1018
+ | { type: 'Polkadot' }
1019
+ | { type: 'Kusama' }
1020
+ | { type: 'Westend' }
1021
+ | { type: 'Rococo' }
1022
+ | { type: 'Wococo' }
1023
+ | { type: 'Ethereum'; value: { chainId: bigint } }
1024
+ | { type: 'BitcoinCore' }
1025
+ | { type: 'BitcoinCash' }
1026
+ | { type: 'PolkadotBulletin' };
1027
+
1028
+ export type StagingXcmV4AssetFungibility =
1029
+ | { type: 'Fungible'; value: bigint }
1030
+ | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance };
1031
+
1032
+ export type StagingXcmV4AssetAssetInstance =
1033
+ | { type: 'Undefined' }
1034
+ | { type: 'Index'; value: bigint }
1035
+ | { type: 'Array4'; value: FixedBytes<4> }
1036
+ | { type: 'Array8'; value: FixedBytes<8> }
1037
+ | { type: 'Array16'; value: FixedBytes<16> }
1038
+ | { type: 'Array32'; value: FixedBytes<32> };
1039
+
914
1040
  export type XcmVersionedLocation =
915
- | { type: 'V2'; value: XcmV2MultilocationMultiLocation }
916
1041
  | { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation }
917
- | { type: 'V4'; value: StagingXcmV4Location };
1042
+ | { type: 'V4'; value: StagingXcmV4Location }
1043
+ | { type: 'V5'; value: StagingXcmV5Location };
918
1044
 
919
1045
  /**
920
1046
  * The `Event` enum of this pallet
@@ -934,7 +1060,7 @@ export type CumulusPalletXcmEvent =
934
1060
  * Downward message executed with the given outcome.
935
1061
  * \[ id, outcome \]
936
1062
  **/
937
- | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] };
1063
+ | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV5TraitsOutcome] };
938
1064
 
939
1065
  /**
940
1066
  * The `Event` enum of this pallet
@@ -1219,6 +1345,14 @@ export type PalletIdentityEvent =
1219
1345
  * A sub-identity was added to an identity and the deposit paid.
1220
1346
  **/
1221
1347
  | { name: 'SubIdentityAdded'; data: { sub: AccountId32; main: AccountId32; deposit: bigint } }
1348
+ /**
1349
+ * An account's sub-identities were set (in bulk).
1350
+ **/
1351
+ | { name: 'SubIdentitiesSet'; data: { main: AccountId32; numberOfSubs: number; newDeposit: bigint } }
1352
+ /**
1353
+ * A given sub-account's associated name was changed by its super-identity.
1354
+ **/
1355
+ | { name: 'SubIdentityRenamed'; data: { sub: AccountId32; main: AccountId32 } }
1222
1356
  /**
1223
1357
  * A sub-identity was removed from an identity and the deposit freed.
1224
1358
  **/
@@ -1256,7 +1390,19 @@ export type PalletIdentityEvent =
1256
1390
  * A dangling username (as in, a username corresponding to an account that has removed its
1257
1391
  * identity) has been removed.
1258
1392
  **/
1259
- | { name: 'DanglingUsernameRemoved'; data: { who: AccountId32; username: Bytes } };
1393
+ | { name: 'DanglingUsernameRemoved'; data: { who: AccountId32; username: Bytes } }
1394
+ /**
1395
+ * A username has been unbound.
1396
+ **/
1397
+ | { name: 'UsernameUnbound'; data: { username: Bytes } }
1398
+ /**
1399
+ * A username has been removed.
1400
+ **/
1401
+ | { name: 'UsernameRemoved'; data: { username: Bytes } }
1402
+ /**
1403
+ * A username has been killed.
1404
+ **/
1405
+ | { name: 'UsernameKilled'; data: { username: Bytes } };
1260
1406
 
1261
1407
  export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
1262
1408
 
@@ -1669,38 +1815,134 @@ export type PalletTimestampCall =
1669
1815
  * `on_finalize`)
1670
1816
  * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
1671
1817
  **/
1672
- { name: 'Set'; params: { now: bigint } };
1818
+ { name: 'Set'; params: { now: bigint } };
1819
+
1820
+ export type PalletTimestampCallLike =
1821
+ /**
1822
+ * Set the current time.
1823
+ *
1824
+ * This call should be invoked exactly once per block. It will panic at the finalization
1825
+ * phase, if this call hasn't been invoked by that time.
1826
+ *
1827
+ * The timestamp should be greater than the previous one by the amount specified by
1828
+ * [`Config::MinimumPeriod`].
1829
+ *
1830
+ * The dispatch origin for this call must be _None_.
1831
+ *
1832
+ * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
1833
+ * that changing the complexity of this call could result exhausting the resources in a
1834
+ * block to execute any other calls.
1835
+ *
1836
+ * ## Complexity
1837
+ * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
1838
+ * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
1839
+ * `on_finalize`)
1840
+ * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
1841
+ **/
1842
+ { name: 'Set'; params: { now: bigint } };
1843
+
1844
+ /**
1845
+ * Contains a variant per dispatchable extrinsic that this pallet has.
1846
+ **/
1847
+ export type StagingParachainInfoCall = null;
1848
+
1849
+ export type StagingParachainInfoCallLike = null;
1850
+
1851
+ export type PalletMigrationsMigrationCursor =
1852
+ | { type: 'Active'; value: PalletMigrationsActiveCursor }
1853
+ | { type: 'Stuck' };
1854
+
1855
+ export type PalletMigrationsActiveCursor = { index: number; innerCursor?: Bytes | undefined; startedAt: number };
1856
+
1857
+ /**
1858
+ * Contains a variant per dispatchable extrinsic that this pallet has.
1859
+ **/
1860
+ export type PalletMigrationsCall =
1861
+ /**
1862
+ * Allows root to set a cursor to forcefully start, stop or forward the migration process.
1863
+ *
1864
+ * Should normally not be needed and is only in place as emergency measure. Note that
1865
+ * restarting the migration process in this manner will not call the
1866
+ * [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
1867
+ **/
1868
+ | { name: 'ForceSetCursor'; params: { cursor?: PalletMigrationsMigrationCursor | undefined } }
1869
+ /**
1870
+ * Allows root to set an active cursor to forcefully start/forward the migration process.
1871
+ *
1872
+ * This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
1873
+ * `started_at` value to the next block number. Otherwise this would not be possible, since
1874
+ * `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
1875
+ * indicates that the current block number plus one should be used.
1876
+ **/
1877
+ | {
1878
+ name: 'ForceSetActiveCursor';
1879
+ params: { index: number; innerCursor?: Bytes | undefined; startedAt?: number | undefined };
1880
+ }
1881
+ /**
1882
+ * Forces the onboarding of the migrations.
1883
+ *
1884
+ * This process happens automatically on a runtime upgrade. It is in place as an emergency
1885
+ * measurement. The cursor needs to be `None` for this to succeed.
1886
+ **/
1887
+ | { name: 'ForceOnboardMbms' }
1888
+ /**
1889
+ * Clears the `Historic` set.
1890
+ *
1891
+ * `map_cursor` must be set to the last value that was returned by the
1892
+ * `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
1893
+ * way that will result in a sensible weight.
1894
+ **/
1895
+ | { name: 'ClearHistoric'; params: { selector: PalletMigrationsHistoricCleanupSelector } };
1673
1896
 
1674
- export type PalletTimestampCallLike =
1897
+ export type PalletMigrationsCallLike =
1675
1898
  /**
1676
- * Set the current time.
1677
- *
1678
- * This call should be invoked exactly once per block. It will panic at the finalization
1679
- * phase, if this call hasn't been invoked by that time.
1899
+ * Allows root to set a cursor to forcefully start, stop or forward the migration process.
1680
1900
  *
1681
- * The timestamp should be greater than the previous one by the amount specified by
1682
- * [`Config::MinimumPeriod`].
1901
+ * Should normally not be needed and is only in place as emergency measure. Note that
1902
+ * restarting the migration process in this manner will not call the
1903
+ * [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
1904
+ **/
1905
+ | { name: 'ForceSetCursor'; params: { cursor?: PalletMigrationsMigrationCursor | undefined } }
1906
+ /**
1907
+ * Allows root to set an active cursor to forcefully start/forward the migration process.
1683
1908
  *
1684
- * The dispatch origin for this call must be _None_.
1909
+ * This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
1910
+ * `started_at` value to the next block number. Otherwise this would not be possible, since
1911
+ * `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
1912
+ * indicates that the current block number plus one should be used.
1913
+ **/
1914
+ | {
1915
+ name: 'ForceSetActiveCursor';
1916
+ params: { index: number; innerCursor?: BytesLike | undefined; startedAt?: number | undefined };
1917
+ }
1918
+ /**
1919
+ * Forces the onboarding of the migrations.
1685
1920
  *
1686
- * This dispatch class is _Mandatory_ to ensure it gets executed in the block. Be aware
1687
- * that changing the complexity of this call could result exhausting the resources in a
1688
- * block to execute any other calls.
1921
+ * This process happens automatically on a runtime upgrade. It is in place as an emergency
1922
+ * measurement. The cursor needs to be `None` for this to succeed.
1923
+ **/
1924
+ | { name: 'ForceOnboardMbms' }
1925
+ /**
1926
+ * Clears the `Historic` set.
1689
1927
  *
1690
- * ## Complexity
1691
- * - `O(1)` (Note that implementations of `OnTimestampSet` must also be `O(1)`)
1692
- * - 1 storage read and 1 storage mutation (codec `O(1)` because of `DidUpdate::take` in
1693
- * `on_finalize`)
1694
- * - 1 event handler `on_timestamp_set`. Must be `O(1)`.
1928
+ * `map_cursor` must be set to the last value that was returned by the
1929
+ * `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
1930
+ * way that will result in a sensible weight.
1695
1931
  **/
1696
- { name: 'Set'; params: { now: bigint } };
1932
+ | { name: 'ClearHistoric'; params: { selector: PalletMigrationsHistoricCleanupSelector } };
1933
+
1934
+ export type PalletMigrationsHistoricCleanupSelector =
1935
+ | { type: 'Specific'; value: Array<Bytes> }
1936
+ | { type: 'Wildcard'; value: { limit?: number | undefined; previousCursor?: Bytes | undefined } };
1697
1937
 
1698
1938
  /**
1699
- * Contains a variant per dispatchable extrinsic that this pallet has.
1939
+ * The `Error` enum of this pallet.
1700
1940
  **/
1701
- export type StagingParachainInfoCall = null;
1702
-
1703
- export type StagingParachainInfoCallLike = null;
1941
+ export type PalletMigrationsError =
1942
+ /**
1943
+ * The operation cannot complete since some MBMs are ongoing.
1944
+ **/
1945
+ 'Ongoing';
1704
1946
 
1705
1947
  export type PalletBalancesBalanceLock = { id: FixedBytes<8>; amount: bigint; reasons: PalletBalancesReasons };
1706
1948
 
@@ -2424,23 +2666,25 @@ export type PalletXcmQueryStatus =
2424
2666
  | { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } };
2425
2667
 
2426
2668
  export type XcmVersionedResponse =
2427
- | { type: 'V2'; value: XcmV2Response }
2428
2669
  | { type: 'V3'; value: XcmV3Response }
2429
- | { type: 'V4'; value: StagingXcmV4Response };
2670
+ | { type: 'V4'; value: StagingXcmV4Response }
2671
+ | { type: 'V5'; value: StagingXcmV5Response };
2430
2672
 
2431
- export type XcmV2Response =
2673
+ export type XcmV3Response =
2432
2674
  | { type: 'Null' }
2433
- | { type: 'Assets'; value: XcmV2MultiassetMultiAssets }
2434
- | { type: 'ExecutionResult'; value?: [number, XcmV2TraitsError] | undefined }
2435
- | { type: 'Version'; value: number };
2675
+ | { type: 'Assets'; value: XcmV3MultiassetMultiAssets }
2676
+ | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
2677
+ | { type: 'Version'; value: number }
2678
+ | { type: 'PalletsInfo'; value: Array<XcmV3PalletInfo> }
2679
+ | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
2436
2680
 
2437
- export type XcmV2TraitsError =
2681
+ export type XcmV3TraitsError =
2438
2682
  | { type: 'Overflow' }
2439
2683
  | { type: 'Unimplemented' }
2440
2684
  | { type: 'UntrustedReserveLocation' }
2441
2685
  | { type: 'UntrustedTeleportLocation' }
2442
- | { type: 'MultiLocationFull' }
2443
- | { type: 'MultiLocationNotInvertible' }
2686
+ | { type: 'LocationFull' }
2687
+ | { type: 'LocationNotInvertible' }
2444
2688
  | { type: 'BadOrigin' }
2445
2689
  | { type: 'InvalidLocation' }
2446
2690
  | { type: 'AssetNotFound' }
@@ -2457,20 +2701,43 @@ export type XcmV2TraitsError =
2457
2701
  | { type: 'NotHoldingFees' }
2458
2702
  | { type: 'TooExpensive' }
2459
2703
  | { type: 'Trap'; value: bigint }
2704
+ | { type: 'ExpectationFalse' }
2705
+ | { type: 'PalletNotFound' }
2706
+ | { type: 'NameMismatch' }
2707
+ | { type: 'VersionIncompatible' }
2708
+ | { type: 'HoldingWouldOverflow' }
2709
+ | { type: 'ExportError' }
2710
+ | { type: 'ReanchorFailed' }
2711
+ | { type: 'NoDeal' }
2712
+ | { type: 'FeesNotMet' }
2713
+ | { type: 'LockError' }
2714
+ | { type: 'NoPermission' }
2715
+ | { type: 'Unanchored' }
2716
+ | { type: 'NotDepositable' }
2460
2717
  | { type: 'UnhandledXcmVersion' }
2461
- | { type: 'WeightLimitReached'; value: bigint }
2718
+ | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
2462
2719
  | { type: 'Barrier' }
2463
- | { type: 'WeightNotComputable' };
2720
+ | { type: 'WeightNotComputable' }
2721
+ | { type: 'ExceedsStackLimit' };
2464
2722
 
2465
- export type XcmV3Response =
2723
+ export type XcmV3PalletInfo = {
2724
+ index: number;
2725
+ name: Bytes;
2726
+ moduleName: Bytes;
2727
+ major: number;
2728
+ minor: number;
2729
+ patch: number;
2730
+ };
2731
+
2732
+ export type StagingXcmV4Response =
2466
2733
  | { type: 'Null' }
2467
- | { type: 'Assets'; value: XcmV3MultiassetMultiAssets }
2734
+ | { type: 'Assets'; value: StagingXcmV4AssetAssets }
2468
2735
  | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
2469
2736
  | { type: 'Version'; value: number }
2470
- | { type: 'PalletsInfo'; value: Array<XcmV3PalletInfo> }
2737
+ | { type: 'PalletsInfo'; value: Array<StagingXcmV4PalletInfo> }
2471
2738
  | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
2472
2739
 
2473
- export type XcmV3PalletInfo = {
2740
+ export type StagingXcmV4PalletInfo = {
2474
2741
  index: number;
2475
2742
  name: Bytes;
2476
2743
  moduleName: Bytes;
@@ -2487,7 +2754,8 @@ export type PalletXcmVersionMigrationStage =
2487
2754
 
2488
2755
  export type XcmVersionedAssetId =
2489
2756
  | { type: 'V3'; value: XcmV3MultiassetAssetId }
2490
- | { type: 'V4'; value: StagingXcmV4AssetAssetId };
2757
+ | { type: 'V4'; value: StagingXcmV4AssetAssetId }
2758
+ | { type: 'V5'; value: StagingXcmV5AssetAssetId };
2491
2759
 
2492
2760
  export type PalletXcmRemoteLockedFungibleRecord = {
2493
2761
  amount: bigint;
@@ -2590,7 +2858,7 @@ export type PalletXcmCall =
2590
2858
  * - `location`: The destination that is being described.
2591
2859
  * - `xcm_version`: The latest version of XCM that `location` supports.
2592
2860
  **/
2593
- | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } }
2861
+ | { name: 'ForceXcmVersion'; params: { location: StagingXcmV5Location; version: number } }
2594
2862
  /**
2595
2863
  * Set a safe XCM version (the version that XCM should be encoded with if the most recent
2596
2864
  * version a destination can accept is unknown).
@@ -2902,7 +3170,7 @@ export type PalletXcmCallLike =
2902
3170
  * - `location`: The destination that is being described.
2903
3171
  * - `xcm_version`: The latest version of XCM that `location` supports.
2904
3172
  **/
2905
- | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } }
3173
+ | { name: 'ForceXcmVersion'; params: { location: StagingXcmV5Location; version: number } }
2906
3174
  /**
2907
3175
  * Set a safe XCM version (the version that XCM should be encoded with if the most recent
2908
3176
  * version a destination can accept is unknown).
@@ -3124,93 +3392,9 @@ export type PalletXcmCallLike =
3124
3392
  };
3125
3393
 
3126
3394
  export type XcmVersionedXcm =
3127
- | { type: 'V2'; value: XcmV2Xcm }
3128
3395
  | { type: 'V3'; value: XcmV3Xcm }
3129
- | { type: 'V4'; value: StagingXcmV4Xcm };
3130
-
3131
- export type XcmV2Xcm = Array<XcmV2Instruction>;
3132
-
3133
- export type XcmV2Instruction =
3134
- | { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets }
3135
- | { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets }
3136
- | { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets }
3137
- | { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } }
3138
- | {
3139
- type: 'TransferAsset';
3140
- value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation };
3141
- }
3142
- | {
3143
- type: 'TransferReserveAsset';
3144
- value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
3145
- }
3146
- | { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } }
3147
- | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
3148
- | { type: 'HrmpChannelAccepted'; value: { recipient: number } }
3149
- | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
3150
- | { type: 'ClearOrigin' }
3151
- | { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions }
3152
- | {
3153
- type: 'ReportError';
3154
- value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint };
3155
- }
3156
- | {
3157
- type: 'DepositAsset';
3158
- value: {
3159
- assets: XcmV2MultiassetMultiAssetFilter;
3160
- maxAssets: number;
3161
- beneficiary: XcmV2MultilocationMultiLocation;
3162
- };
3163
- }
3164
- | {
3165
- type: 'DepositReserveAsset';
3166
- value: {
3167
- assets: XcmV2MultiassetMultiAssetFilter;
3168
- maxAssets: number;
3169
- dest: XcmV2MultilocationMultiLocation;
3170
- xcm: XcmV2Xcm;
3171
- };
3172
- }
3173
- | { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } }
3174
- | {
3175
- type: 'InitiateReserveWithdraw';
3176
- value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
3177
- }
3178
- | {
3179
- type: 'InitiateTeleport';
3180
- value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
3181
- }
3182
- | {
3183
- type: 'QueryHolding';
3184
- value: {
3185
- queryId: bigint;
3186
- dest: XcmV2MultilocationMultiLocation;
3187
- assets: XcmV2MultiassetMultiAssetFilter;
3188
- maxResponseWeight: bigint;
3189
- };
3190
- }
3191
- | { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } }
3192
- | { type: 'RefundSurplus' }
3193
- | { type: 'SetErrorHandler'; value: XcmV2Xcm }
3194
- | { type: 'SetAppendix'; value: XcmV2Xcm }
3195
- | { type: 'ClearError' }
3196
- | { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } }
3197
- | { type: 'Trap'; value: bigint }
3198
- | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } }
3199
- | { type: 'UnsubscribeVersion' };
3200
-
3201
- export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
3202
-
3203
- export type XcmV2MultiassetMultiAssetFilter =
3204
- | { type: 'Definite'; value: XcmV2MultiassetMultiAssets }
3205
- | { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset };
3206
-
3207
- export type XcmV2MultiassetWildMultiAsset =
3208
- | { type: 'All' }
3209
- | { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } };
3210
-
3211
- export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible';
3212
-
3213
- export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint };
3396
+ | { type: 'V4'; value: StagingXcmV4Xcm }
3397
+ | { type: 'V5'; value: StagingXcmV5Xcm };
3214
3398
 
3215
3399
  export type XcmV3Xcm = Array<XcmV3Instruction>;
3216
3400
 
@@ -3333,6 +3517,117 @@ export type XcmV3MultiassetWildMultiAsset =
3333
3517
 
3334
3518
  export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible';
3335
3519
 
3520
+ export type StagingXcmV4Xcm = Array<StagingXcmV4Instruction>;
3521
+
3522
+ export type StagingXcmV4Instruction =
3523
+ | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets }
3524
+ | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets }
3525
+ | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets }
3526
+ | {
3527
+ type: 'QueryResponse';
3528
+ value: {
3529
+ queryId: bigint;
3530
+ response: StagingXcmV4Response;
3531
+ maxWeight: SpWeightsWeightV2Weight;
3532
+ querier?: StagingXcmV4Location | undefined;
3533
+ };
3534
+ }
3535
+ | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } }
3536
+ | {
3537
+ type: 'TransferReserveAsset';
3538
+ value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
3539
+ }
3540
+ | {
3541
+ type: 'Transact';
3542
+ value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
3543
+ }
3544
+ | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
3545
+ | { type: 'HrmpChannelAccepted'; value: { recipient: number } }
3546
+ | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
3547
+ | { type: 'ClearOrigin' }
3548
+ | { type: 'DescendOrigin'; value: StagingXcmV4Junctions }
3549
+ | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo }
3550
+ | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } }
3551
+ | {
3552
+ type: 'DepositReserveAsset';
3553
+ value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
3554
+ }
3555
+ | {
3556
+ type: 'ExchangeAsset';
3557
+ value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean };
3558
+ }
3559
+ | {
3560
+ type: 'InitiateReserveWithdraw';
3561
+ value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
3562
+ }
3563
+ | {
3564
+ type: 'InitiateTeleport';
3565
+ value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
3566
+ }
3567
+ | {
3568
+ type: 'ReportHolding';
3569
+ value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter };
3570
+ }
3571
+ | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } }
3572
+ | { type: 'RefundSurplus' }
3573
+ | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm }
3574
+ | { type: 'SetAppendix'; value: StagingXcmV4Xcm }
3575
+ | { type: 'ClearError' }
3576
+ | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } }
3577
+ | { type: 'Trap'; value: bigint }
3578
+ | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
3579
+ | { type: 'UnsubscribeVersion' }
3580
+ | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets }
3581
+ | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets }
3582
+ | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined }
3583
+ | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined }
3584
+ | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode }
3585
+ | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } }
3586
+ | {
3587
+ type: 'ExpectPallet';
3588
+ value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number };
3589
+ }
3590
+ | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo }
3591
+ | { type: 'ClearTransactStatus' }
3592
+ | { type: 'UniversalOrigin'; value: StagingXcmV4Junction }
3593
+ | {
3594
+ type: 'ExportMessage';
3595
+ value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm };
3596
+ }
3597
+ | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } }
3598
+ | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } }
3599
+ | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } }
3600
+ | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } }
3601
+ | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } }
3602
+ | { type: 'SetTopic'; value: FixedBytes<32> }
3603
+ | { type: 'ClearTopic' }
3604
+ | { type: 'AliasOrigin'; value: StagingXcmV4Location }
3605
+ | {
3606
+ type: 'UnpaidExecution';
3607
+ value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined };
3608
+ };
3609
+
3610
+ export type StagingXcmV4QueryResponseInfo = {
3611
+ destination: StagingXcmV4Location;
3612
+ queryId: bigint;
3613
+ maxWeight: SpWeightsWeightV2Weight;
3614
+ };
3615
+
3616
+ export type StagingXcmV4AssetAssetFilter =
3617
+ | { type: 'Definite'; value: StagingXcmV4AssetAssets }
3618
+ | { type: 'Wild'; value: StagingXcmV4AssetWildAsset };
3619
+
3620
+ export type StagingXcmV4AssetWildAsset =
3621
+ | { type: 'All' }
3622
+ | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } }
3623
+ | { type: 'AllCounted'; value: number }
3624
+ | {
3625
+ type: 'AllOfCounted';
3626
+ value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number };
3627
+ };
3628
+
3629
+ export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible';
3630
+
3336
3631
  export type StagingXcmExecutorAssetTransferTransferType =
3337
3632
  | { type: 'Teleport' }
3338
3633
  | { type: 'LocalReserve' }
@@ -3772,6 +4067,7 @@ export type PeopleKusamaRuntimeRuntimeCall =
3772
4067
  | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCall }
3773
4068
  | { pallet: 'Timestamp'; palletCall: PalletTimestampCall }
3774
4069
  | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCall }
4070
+ | { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCall }
3775
4071
  | { pallet: 'Balances'; palletCall: PalletBalancesCall }
3776
4072
  | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCall }
3777
4073
  | { pallet: 'Session'; palletCall: PalletSessionCall }
@@ -3789,6 +4085,7 @@ export type PeopleKusamaRuntimeRuntimeCallLike =
3789
4085
  | { pallet: 'ParachainSystem'; palletCall: CumulusPalletParachainSystemCallLike }
3790
4086
  | { pallet: 'Timestamp'; palletCall: PalletTimestampCallLike }
3791
4087
  | { pallet: 'ParachainInfo'; palletCall: StagingParachainInfoCallLike }
4088
+ | { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCallLike }
3792
4089
  | { pallet: 'Balances'; palletCall: PalletBalancesCallLike }
3793
4090
  | { pallet: 'CollatorSelection'; palletCall: PalletCollatorSelectionCallLike }
3794
4091
  | { pallet: 'Session'; palletCall: PalletSessionCallLike }
@@ -4625,18 +4922,23 @@ export type PalletIdentityCall =
4625
4922
  /**
4626
4923
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
4627
4924
  *
4628
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
4629
- * should just issue (or request via governance) a new `add_username_authority` call.
4925
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
4926
+ * change the account used to grant usernames, this call can be used with the updated
4927
+ * parameters to overwrite the existing configuration.
4630
4928
  **/
4631
4929
  | { name: 'AddUsernameAuthority'; params: { authority: MultiAddress; suffix: Bytes; allocation: number } }
4632
4930
  /**
4633
4931
  * Remove `authority` from the username authorities.
4634
4932
  **/
4635
- | { name: 'RemoveUsernameAuthority'; params: { authority: MultiAddress } }
4933
+ | { name: 'RemoveUsernameAuthority'; params: { suffix: Bytes; authority: MultiAddress } }
4636
4934
  /**
4637
4935
  * Set the username for `who`. Must be called by a username authority.
4638
4936
  *
4639
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
4937
+ * If `use_allocation` is set, the authority must have a username allocation available to
4938
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
4939
+ * username.
4940
+ *
4941
+ * Users can either pre-sign their usernames or
4640
4942
  * accept them later.
4641
4943
  *
4642
4944
  * Usernames must:
@@ -4646,7 +4948,12 @@ export type PalletIdentityCall =
4646
4948
  **/
4647
4949
  | {
4648
4950
  name: 'SetUsernameFor';
4649
- params: { who: MultiAddress; username: Bytes; signature?: SpRuntimeMultiSignature | undefined };
4951
+ params: {
4952
+ who: MultiAddress;
4953
+ username: Bytes;
4954
+ signature?: SpRuntimeMultiSignature | undefined;
4955
+ useAllocation: boolean;
4956
+ };
4650
4957
  }
4651
4958
  /**
4652
4959
  * Accept a given username that an `authority` granted. The call must include the full
@@ -4664,10 +4971,21 @@ export type PalletIdentityCall =
4664
4971
  **/
4665
4972
  | { name: 'SetPrimaryUsername'; params: { username: Bytes } }
4666
4973
  /**
4667
- * Remove a username that corresponds to an account with no identity. Exists when a user
4668
- * gets a username but then calls `clear_identity`.
4974
+ * Start the process of removing a username by placing it in the unbinding usernames map.
4975
+ * Once the grace period has passed, the username can be deleted by calling
4976
+ * [remove_username](crate::Call::remove_username).
4977
+ **/
4978
+ | { name: 'UnbindUsername'; params: { username: Bytes } }
4979
+ /**
4980
+ * Permanently delete a username which has been unbinding for longer than the grace period.
4981
+ * Caller is refunded the fee if the username expired and the removal was successful.
4669
4982
  **/
4670
- | { name: 'RemoveDanglingUsername'; params: { username: Bytes } };
4983
+ | { name: 'RemoveUsername'; params: { username: Bytes } }
4984
+ /**
4985
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
4986
+ * and slashes any deposit associated with it.
4987
+ **/
4988
+ | { name: 'KillUsername'; params: { username: Bytes } };
4671
4989
 
4672
4990
  export type PalletIdentityCallLike =
4673
4991
  /**
@@ -4857,18 +5175,23 @@ export type PalletIdentityCallLike =
4857
5175
  /**
4858
5176
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
4859
5177
  *
4860
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
4861
- * should just issue (or request via governance) a new `add_username_authority` call.
5178
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
5179
+ * change the account used to grant usernames, this call can be used with the updated
5180
+ * parameters to overwrite the existing configuration.
4862
5181
  **/
4863
5182
  | { name: 'AddUsernameAuthority'; params: { authority: MultiAddressLike; suffix: BytesLike; allocation: number } }
4864
5183
  /**
4865
5184
  * Remove `authority` from the username authorities.
4866
5185
  **/
4867
- | { name: 'RemoveUsernameAuthority'; params: { authority: MultiAddressLike } }
5186
+ | { name: 'RemoveUsernameAuthority'; params: { suffix: BytesLike; authority: MultiAddressLike } }
4868
5187
  /**
4869
5188
  * Set the username for `who`. Must be called by a username authority.
4870
5189
  *
4871
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
5190
+ * If `use_allocation` is set, the authority must have a username allocation available to
5191
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
5192
+ * username.
5193
+ *
5194
+ * Users can either pre-sign their usernames or
4872
5195
  * accept them later.
4873
5196
  *
4874
5197
  * Usernames must:
@@ -4878,7 +5201,12 @@ export type PalletIdentityCallLike =
4878
5201
  **/
4879
5202
  | {
4880
5203
  name: 'SetUsernameFor';
4881
- params: { who: MultiAddressLike; username: BytesLike; signature?: SpRuntimeMultiSignature | undefined };
5204
+ params: {
5205
+ who: MultiAddressLike;
5206
+ username: BytesLike;
5207
+ signature?: SpRuntimeMultiSignature | undefined;
5208
+ useAllocation: boolean;
5209
+ };
4882
5210
  }
4883
5211
  /**
4884
5212
  * Accept a given username that an `authority` granted. The call must include the full
@@ -4896,10 +5224,21 @@ export type PalletIdentityCallLike =
4896
5224
  **/
4897
5225
  | { name: 'SetPrimaryUsername'; params: { username: BytesLike } }
4898
5226
  /**
4899
- * Remove a username that corresponds to an account with no identity. Exists when a user
4900
- * gets a username but then calls `clear_identity`.
5227
+ * Start the process of removing a username by placing it in the unbinding usernames map.
5228
+ * Once the grace period has passed, the username can be deleted by calling
5229
+ * [remove_username](crate::Call::remove_username).
5230
+ **/
5231
+ | { name: 'UnbindUsername'; params: { username: BytesLike } }
5232
+ /**
5233
+ * Permanently delete a username which has been unbinding for longer than the grace period.
5234
+ * Caller is refunded the fee if the username expired and the removal was successful.
5235
+ **/
5236
+ | { name: 'RemoveUsername'; params: { username: BytesLike } }
5237
+ /**
5238
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
5239
+ * and slashes any deposit associated with it.
4901
5240
  **/
4902
- | { name: 'RemoveDanglingUsername'; params: { username: BytesLike } };
5241
+ | { name: 'KillUsername'; params: { username: BytesLike } };
4903
5242
 
4904
5243
  export type PeopleKusamaRuntimePeopleIdentityInfo = {
4905
5244
  display: Data;
@@ -4931,8 +5270,7 @@ export type SpRuntimeMultiSignature =
4931
5270
  export type PeopleKusamaRuntimeOriginCaller =
4932
5271
  | { type: 'System'; value: FrameSupportDispatchRawOrigin }
4933
5272
  | { type: 'PolkadotXcm'; value: PalletXcmOrigin }
4934
- | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin }
4935
- | { type: 'Void'; value: SpCoreVoid };
5273
+ | { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin };
4936
5274
 
4937
5275
  export type FrameSupportDispatchRawOrigin =
4938
5276
  | { type: 'Root' }
@@ -4940,15 +5278,13 @@ export type FrameSupportDispatchRawOrigin =
4940
5278
  | { type: 'None' };
4941
5279
 
4942
5280
  export type PalletXcmOrigin =
4943
- | { type: 'Xcm'; value: StagingXcmV4Location }
4944
- | { type: 'Response'; value: StagingXcmV4Location };
5281
+ | { type: 'Xcm'; value: StagingXcmV5Location }
5282
+ | { type: 'Response'; value: StagingXcmV5Location };
4945
5283
 
4946
5284
  export type CumulusPalletXcmOrigin =
4947
5285
  | { type: 'Relay' }
4948
5286
  | { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId };
4949
5287
 
4950
- export type SpCoreVoid = null;
4951
-
4952
5288
  /**
4953
5289
  * The `Error` enum of this pallet.
4954
5290
  **/
@@ -5079,7 +5415,14 @@ export type PalletIdentityRegistration = {
5079
5415
 
5080
5416
  export type PalletIdentityRegistrarInfo = { account: AccountId32; fee: bigint; fields: bigint };
5081
5417
 
5082
- export type PalletIdentityAuthorityProperties = { suffix: Bytes; allocation: number };
5418
+ export type PalletIdentityAuthorityProperties = { accountId: AccountId32; allocation: number };
5419
+
5420
+ export type PalletIdentityUsernameInformation = { owner: AccountId32; provider: PalletIdentityProvider };
5421
+
5422
+ export type PalletIdentityProvider =
5423
+ | { type: 'Allocation' }
5424
+ | { type: 'AuthorityDeposit'; value: bigint }
5425
+ | { type: 'System' };
5083
5426
 
5084
5427
  /**
5085
5428
  * The `Error` enum of this pallet.
@@ -5188,7 +5531,24 @@ export type PalletIdentityError =
5188
5531
  /**
5189
5532
  * The username cannot be forcefully removed because it can still be accepted.
5190
5533
  **/
5191
- | 'NotExpired';
5534
+ | 'NotExpired'
5535
+ /**
5536
+ * The username cannot be removed because it's still in the grace period.
5537
+ **/
5538
+ | 'TooEarly'
5539
+ /**
5540
+ * The username cannot be removed because it is not unbinding.
5541
+ **/
5542
+ | 'NotUnbinding'
5543
+ /**
5544
+ * The username cannot be unbound because it is already unbinding.
5545
+ **/
5546
+ | 'AlreadyUnbinding'
5547
+ /**
5548
+ * The action cannot be performed because of insufficient privileges (e.g. authority
5549
+ * trying to unbind a username provided by the system).
5550
+ **/
5551
+ | 'InsufficientPrivileges';
5192
5552
 
5193
5553
  export type FrameSystemExtensionsCheckNonZeroSender = {};
5194
5554
 
@@ -5235,7 +5595,9 @@ export type SpRuntimeTransactionValidityInvalidTransaction =
5235
5595
  | { type: 'Custom'; value: number }
5236
5596
  | { type: 'BadMandatory' }
5237
5597
  | { type: 'MandatoryValidation' }
5238
- | { type: 'BadSigner' };
5598
+ | { type: 'BadSigner' }
5599
+ | { type: 'IndeterminateImplicit' }
5600
+ | { type: 'UnknownOrigin' };
5239
5601
 
5240
5602
  export type SpRuntimeTransactionValidityUnknownTransaction =
5241
5603
  | { type: 'CannotLookup' }
@@ -5297,7 +5659,7 @@ export type SpRuntimeDispatchErrorWithPostInfo = {
5297
5659
  export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
5298
5660
 
5299
5661
  export type XcmRuntimeApisDryRunXcmDryRunEffects = {
5300
- executionResult: StagingXcmV4TraitsOutcome;
5662
+ executionResult: StagingXcmV5TraitsOutcome;
5301
5663
  emittedEvents: Array<PeopleKusamaRuntimeRuntimeEvent>;
5302
5664
  forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
5303
5665
  };
@@ -5318,6 +5680,7 @@ export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes;
5318
5680
  export type PeopleKusamaRuntimeRuntimeError =
5319
5681
  | { pallet: 'System'; palletError: FrameSystemError }
5320
5682
  | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError }
5683
+ | { pallet: 'MultiBlockMigrations'; palletError: PalletMigrationsError }
5321
5684
  | { pallet: 'Balances'; palletError: PalletBalancesError }
5322
5685
  | { pallet: 'CollatorSelection'; palletError: PalletCollatorSelectionError }
5323
5686
  | { pallet: 'Session'; palletError: PalletSessionError }