@dedot/chaintypes 0.114.0 → 0.116.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,7 +3,6 @@
3
3
  import type {
4
4
  Phase,
5
5
  H256,
6
- DispatchInfo,
7
6
  DispatchError,
8
7
  AccountId32,
9
8
  FixedBytes,
@@ -81,11 +80,11 @@ export type FrameSystemEvent =
81
80
  /**
82
81
  * An extrinsic completed successfully.
83
82
  **/
84
- | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: DispatchInfo } }
83
+ | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: FrameSystemDispatchEventInfo } }
85
84
  /**
86
85
  * An extrinsic failed.
87
86
  **/
88
- | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: DispatchInfo } }
87
+ | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo } }
89
88
  /**
90
89
  * `:code` was updated.
91
90
  **/
@@ -107,10 +106,32 @@ export type FrameSystemEvent =
107
106
  **/
108
107
  | { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } };
109
108
 
109
+ export type FrameSystemDispatchEventInfo = {
110
+ weight: SpWeightsWeightV2Weight;
111
+ class: FrameSupportDispatchDispatchClass;
112
+ paysFee: FrameSupportDispatchPays;
113
+ };
114
+
110
115
  export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory';
111
116
 
112
117
  export type FrameSupportDispatchPays = 'Yes' | 'No';
113
118
 
119
+ export type SpRuntimeProvingTrieTrieError =
120
+ | 'InvalidStateRoot'
121
+ | 'IncompleteDatabase'
122
+ | 'ValueAtIncompleteKey'
123
+ | 'DecoderError'
124
+ | 'InvalidHash'
125
+ | 'DuplicateKey'
126
+ | 'ExtraneousNode'
127
+ | 'ExtraneousValue'
128
+ | 'ExtraneousHashReference'
129
+ | 'InvalidChildReference'
130
+ | 'ValueMismatch'
131
+ | 'IncompleteProof'
132
+ | 'RootMismatch'
133
+ | 'DecodeError';
134
+
114
135
  /**
115
136
  * The `Event` enum of this pallet
116
137
  **/
@@ -415,16 +436,16 @@ export type PalletXcmEvent =
415
436
  /**
416
437
  * Execution of an XCM message was attempted.
417
438
  **/
418
- | { name: 'Attempted'; data: { outcome: StagingXcmV4TraitsOutcome } }
439
+ | { name: 'Attempted'; data: { outcome: StagingXcmV5TraitsOutcome } }
419
440
  /**
420
441
  * A XCM message was sent.
421
442
  **/
422
443
  | {
423
444
  name: 'Sent';
424
445
  data: {
425
- origin: StagingXcmV4Location;
426
- destination: StagingXcmV4Location;
427
- message: StagingXcmV4Xcm;
446
+ origin: StagingXcmV5Location;
447
+ destination: StagingXcmV5Location;
448
+ message: StagingXcmV5Xcm;
428
449
  messageId: FixedBytes<32>;
429
450
  };
430
451
  }
@@ -433,12 +454,12 @@ export type PalletXcmEvent =
433
454
  * matching query was never registered, it may be because it is a duplicate response, or
434
455
  * because the query timed out.
435
456
  **/
436
- | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV4Location; queryId: bigint } }
457
+ | { name: 'UnexpectedResponse'; data: { origin: StagingXcmV5Location; queryId: bigint } }
437
458
  /**
438
459
  * Query response has been received and is ready for taking with `take_response`. There is
439
460
  * no registered notification call.
440
461
  **/
441
- | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV4Response } }
462
+ | { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV5Response } }
442
463
  /**
443
464
  * Query response has been received and query is removed. The registered notification has
444
465
  * been dispatched and executed successfully.
@@ -477,7 +498,7 @@ export type PalletXcmEvent =
477
498
  **/
478
499
  | {
479
500
  name: 'InvalidResponder';
480
- data: { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined };
501
+ data: { origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined };
481
502
  }
482
503
  /**
483
504
  * Expected query response has been received but the expected origin location placed in
@@ -488,7 +509,7 @@ export type PalletXcmEvent =
488
509
  * valid response will be dropped. Manual governance intervention is probably going to be
489
510
  * needed.
490
511
  **/
491
- | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } }
512
+ | { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV5Location; queryId: bigint } }
492
513
  /**
493
514
  * Received query response has been read and removed.
494
515
  **/
@@ -496,7 +517,7 @@ export type PalletXcmEvent =
496
517
  /**
497
518
  * Some assets have been placed in an asset trap.
498
519
  **/
499
- | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } }
520
+ | { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets } }
500
521
  /**
501
522
  * An XCM version change notification message has been attempted to be sent.
502
523
  *
@@ -505,9 +526,9 @@ export type PalletXcmEvent =
505
526
  | {
506
527
  name: 'VersionChangeNotified';
507
528
  data: {
508
- destination: StagingXcmV4Location;
529
+ destination: StagingXcmV5Location;
509
530
  result: number;
510
- cost: StagingXcmV4AssetAssets;
531
+ cost: StagingXcmV5AssetAssets;
511
532
  messageId: FixedBytes<32>;
512
533
  };
513
534
  }
@@ -515,12 +536,12 @@ export type PalletXcmEvent =
515
536
  * The supported version of a location has been changed. This might be through an
516
537
  * automatic notification or a manual intervention.
517
538
  **/
518
- | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV4Location; version: number } }
539
+ | { name: 'SupportedVersionChanged'; data: { location: StagingXcmV5Location; version: number } }
519
540
  /**
520
541
  * A given location which had a version change subscription was dropped owing to an error
521
542
  * sending the notification to it.
522
543
  **/
523
- | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError } }
544
+ | { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError } }
524
545
  /**
525
546
  * A given location which had a version change subscription was dropped owing to an error
526
547
  * migrating the location to our new XCM format.
@@ -535,7 +556,7 @@ export type PalletXcmEvent =
535
556
  * valid response will be dropped. Manual governance intervention is probably going to be
536
557
  * needed.
537
558
  **/
538
- | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV4Location; queryId: bigint } }
559
+ | { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV5Location; queryId: bigint } }
539
560
  /**
540
561
  * Expected query response has been received but the querier location of the response does
541
562
  * not match the expected. The query remains registered for a later, valid, response to
@@ -544,10 +565,10 @@ export type PalletXcmEvent =
544
565
  | {
545
566
  name: 'InvalidQuerier';
546
567
  data: {
547
- origin: StagingXcmV4Location;
568
+ origin: StagingXcmV5Location;
548
569
  queryId: bigint;
549
- expectedQuerier: StagingXcmV4Location;
550
- maybeActualQuerier?: StagingXcmV4Location | undefined;
570
+ expectedQuerier: StagingXcmV5Location;
571
+ maybeActualQuerier?: StagingXcmV5Location | undefined;
551
572
  };
552
573
  }
553
574
  /**
@@ -556,14 +577,14 @@ export type PalletXcmEvent =
556
577
  **/
557
578
  | {
558
579
  name: 'VersionNotifyStarted';
559
- data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> };
580
+ data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
560
581
  }
561
582
  /**
562
583
  * We have requested that a remote chain send us XCM version change notifications.
563
584
  **/
564
585
  | {
565
586
  name: 'VersionNotifyRequested';
566
- data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> };
587
+ data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
567
588
  }
568
589
  /**
569
590
  * We have requested that a remote chain stops sending us XCM version change
@@ -571,27 +592,27 @@ export type PalletXcmEvent =
571
592
  **/
572
593
  | {
573
594
  name: 'VersionNotifyUnrequested';
574
- data: { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> };
595
+ data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
575
596
  }
576
597
  /**
577
598
  * Fees were paid from a location for an operation (often for using `SendXcm`).
578
599
  **/
579
- | { name: 'FeesPaid'; data: { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets } }
600
+ | { name: 'FeesPaid'; data: { paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets } }
580
601
  /**
581
602
  * Some assets have been claimed from an asset trap
582
603
  **/
583
- | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets } }
604
+ | { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets } }
584
605
  /**
585
606
  * A XCM version migration finished.
586
607
  **/
587
608
  | { name: 'VersionMigrationFinished'; data: { version: number } };
588
609
 
589
- export type StagingXcmV4TraitsOutcome =
610
+ export type StagingXcmV5TraitsOutcome =
590
611
  | { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } }
591
- | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV3TraitsError } }
592
- | { type: 'Error'; value: { error: XcmV3TraitsError } };
612
+ | { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV5TraitsError } }
613
+ | { type: 'Error'; value: { error: XcmV5TraitsError } };
593
614
 
594
- export type XcmV3TraitsError =
615
+ export type XcmV5TraitsError =
595
616
  | { type: 'Overflow' }
596
617
  | { type: 'Unimplemented' }
597
618
  | { type: 'UntrustedReserveLocation' }
@@ -627,113 +648,166 @@ export type XcmV3TraitsError =
627
648
  | { type: 'NoPermission' }
628
649
  | { type: 'Unanchored' }
629
650
  | { type: 'NotDepositable' }
651
+ | { type: 'TooManyAssets' }
630
652
  | { type: 'UnhandledXcmVersion' }
631
653
  | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
632
654
  | { type: 'Barrier' }
633
655
  | { type: 'WeightNotComputable' }
634
656
  | { type: 'ExceedsStackLimit' };
635
657
 
636
- export type StagingXcmV4Xcm = Array<StagingXcmV4Instruction>;
658
+ export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
637
659
 
638
- export type StagingXcmV4Instruction =
639
- | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets }
640
- | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets }
641
- | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets }
660
+ export type StagingXcmV5Junctions =
661
+ | { type: 'Here' }
662
+ | { type: 'X1'; value: FixedArray<StagingXcmV5Junction, 1> }
663
+ | { type: 'X2'; value: FixedArray<StagingXcmV5Junction, 2> }
664
+ | { type: 'X3'; value: FixedArray<StagingXcmV5Junction, 3> }
665
+ | { type: 'X4'; value: FixedArray<StagingXcmV5Junction, 4> }
666
+ | { type: 'X5'; value: FixedArray<StagingXcmV5Junction, 5> }
667
+ | { type: 'X6'; value: FixedArray<StagingXcmV5Junction, 6> }
668
+ | { type: 'X7'; value: FixedArray<StagingXcmV5Junction, 7> }
669
+ | { type: 'X8'; value: FixedArray<StagingXcmV5Junction, 8> };
670
+
671
+ export type StagingXcmV5Junction =
672
+ | { type: 'Parachain'; value: number }
673
+ | { type: 'AccountId32'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; id: FixedBytes<32> } }
674
+ | { type: 'AccountIndex64'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; index: bigint } }
675
+ | { type: 'AccountKey20'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; key: FixedBytes<20> } }
676
+ | { type: 'PalletInstance'; value: number }
677
+ | { type: 'GeneralIndex'; value: bigint }
678
+ | { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
679
+ | { type: 'OnlyChild' }
680
+ | { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
681
+ | { type: 'GlobalConsensus'; value: StagingXcmV5JunctionNetworkId };
682
+
683
+ export type StagingXcmV5JunctionNetworkId =
684
+ | { type: 'ByGenesis'; value: FixedBytes<32> }
685
+ | { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
686
+ | { type: 'Polkadot' }
687
+ | { type: 'Kusama' }
688
+ | { type: 'Ethereum'; value: { chainId: bigint } }
689
+ | { type: 'BitcoinCore' }
690
+ | { type: 'BitcoinCash' }
691
+ | { type: 'PolkadotBulletin' };
692
+
693
+ export type StagingXcmV5Xcm = Array<StagingXcmV5Instruction>;
694
+
695
+ export type StagingXcmV5Instruction =
696
+ | { type: 'WithdrawAsset'; value: StagingXcmV5AssetAssets }
697
+ | { type: 'ReserveAssetDeposited'; value: StagingXcmV5AssetAssets }
698
+ | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV5AssetAssets }
642
699
  | {
643
700
  type: 'QueryResponse';
644
701
  value: {
645
702
  queryId: bigint;
646
- response: StagingXcmV4Response;
703
+ response: StagingXcmV5Response;
647
704
  maxWeight: SpWeightsWeightV2Weight;
648
- querier?: StagingXcmV4Location | undefined;
705
+ querier?: StagingXcmV5Location | undefined;
649
706
  };
650
707
  }
651
- | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } }
708
+ | { type: 'TransferAsset'; value: { assets: StagingXcmV5AssetAssets; beneficiary: StagingXcmV5Location } }
652
709
  | {
653
710
  type: 'TransferReserveAsset';
654
- value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
711
+ value: { assets: StagingXcmV5AssetAssets; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
655
712
  }
656
713
  | {
657
714
  type: 'Transact';
658
- value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
715
+ value: {
716
+ originKind: XcmV3OriginKind;
717
+ fallbackMaxWeight?: SpWeightsWeightV2Weight | undefined;
718
+ call: XcmDoubleEncoded;
719
+ };
659
720
  }
660
721
  | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
661
722
  | { type: 'HrmpChannelAccepted'; value: { recipient: number } }
662
723
  | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
663
724
  | { type: 'ClearOrigin' }
664
- | { type: 'DescendOrigin'; value: StagingXcmV4Junctions }
665
- | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo }
666
- | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } }
725
+ | { type: 'DescendOrigin'; value: StagingXcmV5Junctions }
726
+ | { type: 'ReportError'; value: StagingXcmV5QueryResponseInfo }
727
+ | { type: 'DepositAsset'; value: { assets: StagingXcmV5AssetAssetFilter; beneficiary: StagingXcmV5Location } }
667
728
  | {
668
729
  type: 'DepositReserveAsset';
669
- value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
730
+ value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
670
731
  }
671
732
  | {
672
733
  type: 'ExchangeAsset';
673
- value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean };
734
+ value: { give: StagingXcmV5AssetAssetFilter; want: StagingXcmV5AssetAssets; maximal: boolean };
674
735
  }
675
736
  | {
676
737
  type: 'InitiateReserveWithdraw';
677
- value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
738
+ value: { assets: StagingXcmV5AssetAssetFilter; reserve: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
678
739
  }
679
740
  | {
680
741
  type: 'InitiateTeleport';
681
- value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
742
+ value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
682
743
  }
683
744
  | {
684
745
  type: 'ReportHolding';
685
- value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter };
746
+ value: { responseInfo: StagingXcmV5QueryResponseInfo; assets: StagingXcmV5AssetAssetFilter };
686
747
  }
687
- | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } }
748
+ | { type: 'BuyExecution'; value: { fees: StagingXcmV5Asset; weightLimit: XcmV3WeightLimit } }
688
749
  | { type: 'RefundSurplus' }
689
- | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm }
690
- | { type: 'SetAppendix'; value: StagingXcmV4Xcm }
750
+ | { type: 'SetErrorHandler'; value: StagingXcmV5Xcm }
751
+ | { type: 'SetAppendix'; value: StagingXcmV5Xcm }
691
752
  | { type: 'ClearError' }
692
- | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } }
753
+ | { type: 'ClaimAsset'; value: { assets: StagingXcmV5AssetAssets; ticket: StagingXcmV5Location } }
693
754
  | { type: 'Trap'; value: bigint }
694
755
  | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
695
756
  | { type: 'UnsubscribeVersion' }
696
- | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets }
697
- | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets }
698
- | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined }
699
- | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined }
757
+ | { type: 'BurnAsset'; value: StagingXcmV5AssetAssets }
758
+ | { type: 'ExpectAsset'; value: StagingXcmV5AssetAssets }
759
+ | { type: 'ExpectOrigin'; value?: StagingXcmV5Location | undefined }
760
+ | { type: 'ExpectError'; value?: [number, XcmV5TraitsError] | undefined }
700
761
  | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode }
701
- | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } }
762
+ | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV5QueryResponseInfo } }
702
763
  | {
703
764
  type: 'ExpectPallet';
704
765
  value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number };
705
766
  }
706
- | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo }
767
+ | { type: 'ReportTransactStatus'; value: StagingXcmV5QueryResponseInfo }
707
768
  | { type: 'ClearTransactStatus' }
708
- | { type: 'UniversalOrigin'; value: StagingXcmV4Junction }
769
+ | { type: 'UniversalOrigin'; value: StagingXcmV5Junction }
709
770
  | {
710
771
  type: 'ExportMessage';
711
- value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm };
772
+ value: { network: StagingXcmV5JunctionNetworkId; destination: StagingXcmV5Junctions; xcm: StagingXcmV5Xcm };
712
773
  }
713
- | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } }
714
- | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } }
715
- | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } }
716
- | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } }
774
+ | { type: 'LockAsset'; value: { asset: StagingXcmV5Asset; unlocker: StagingXcmV5Location } }
775
+ | { type: 'UnlockAsset'; value: { asset: StagingXcmV5Asset; target: StagingXcmV5Location } }
776
+ | { type: 'NoteUnlockable'; value: { asset: StagingXcmV5Asset; owner: StagingXcmV5Location } }
777
+ | { type: 'RequestUnlock'; value: { asset: StagingXcmV5Asset; locker: StagingXcmV5Location } }
717
778
  | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } }
718
779
  | { type: 'SetTopic'; value: FixedBytes<32> }
719
780
  | { type: 'ClearTopic' }
720
- | { type: 'AliasOrigin'; value: StagingXcmV4Location }
781
+ | { type: 'AliasOrigin'; value: StagingXcmV5Location }
721
782
  | {
722
783
  type: 'UnpaidExecution';
723
- value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined };
724
- };
784
+ value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV5Location | undefined };
785
+ }
786
+ | { type: 'PayFees'; value: { asset: StagingXcmV5Asset } }
787
+ | {
788
+ type: 'InitiateTransfer';
789
+ value: {
790
+ destination: StagingXcmV5Location;
791
+ remoteFees?: StagingXcmV5AssetAssetTransferFilter | undefined;
792
+ preserveOrigin: boolean;
793
+ assets: Array<StagingXcmV5AssetAssetTransferFilter>;
794
+ remoteXcm: StagingXcmV5Xcm;
795
+ };
796
+ }
797
+ | { type: 'ExecuteWithOrigin'; value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm } }
798
+ | { type: 'SetHints'; value: { hints: Array<StagingXcmV5Hint> } };
725
799
 
726
- export type StagingXcmV4AssetAssets = Array<StagingXcmV4Asset>;
800
+ export type StagingXcmV5AssetAssets = Array<StagingXcmV5Asset>;
727
801
 
728
- export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility };
802
+ export type StagingXcmV5Asset = { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetFungibility };
729
803
 
730
- export type StagingXcmV4AssetAssetId = StagingXcmV4Location;
804
+ export type StagingXcmV5AssetAssetId = StagingXcmV5Location;
731
805
 
732
- export type StagingXcmV4AssetFungibility =
806
+ export type StagingXcmV5AssetFungibility =
733
807
  | { type: 'Fungible'; value: bigint }
734
- | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance };
808
+ | { type: 'NonFungible'; value: StagingXcmV5AssetAssetInstance };
735
809
 
736
- export type StagingXcmV4AssetAssetInstance =
810
+ export type StagingXcmV5AssetAssetInstance =
737
811
  | { type: 'Undefined' }
738
812
  | { type: 'Index'; value: bigint }
739
813
  | { type: 'Array4'; value: FixedBytes<4> }
@@ -741,15 +815,15 @@ export type StagingXcmV4AssetAssetInstance =
741
815
  | { type: 'Array16'; value: FixedBytes<16> }
742
816
  | { type: 'Array32'; value: FixedBytes<32> };
743
817
 
744
- export type StagingXcmV4Response =
818
+ export type StagingXcmV5Response =
745
819
  | { type: 'Null' }
746
- | { type: 'Assets'; value: StagingXcmV4AssetAssets }
747
- | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
820
+ | { type: 'Assets'; value: StagingXcmV5AssetAssets }
821
+ | { type: 'ExecutionResult'; value?: [number, XcmV5TraitsError] | undefined }
748
822
  | { type: 'Version'; value: number }
749
- | { type: 'PalletsInfo'; value: Array<StagingXcmV4PalletInfo> }
823
+ | { type: 'PalletsInfo'; value: Array<StagingXcmV5PalletInfo> }
750
824
  | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
751
825
 
752
- export type StagingXcmV4PalletInfo = {
826
+ export type StagingXcmV5PalletInfo = {
753
827
  index: number;
754
828
  name: Bytes;
755
829
  moduleName: Bytes;
@@ -767,118 +841,40 @@ export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm
767
841
 
768
842
  export type XcmDoubleEncoded = { encoded: Bytes };
769
843
 
770
- export type StagingXcmV4QueryResponseInfo = {
771
- destination: StagingXcmV4Location;
844
+ export type StagingXcmV5QueryResponseInfo = {
845
+ destination: StagingXcmV5Location;
772
846
  queryId: bigint;
773
847
  maxWeight: SpWeightsWeightV2Weight;
774
848
  };
775
849
 
776
- export type StagingXcmV4AssetAssetFilter =
777
- | { type: 'Definite'; value: StagingXcmV4AssetAssets }
778
- | { type: 'Wild'; value: StagingXcmV4AssetWildAsset };
850
+ export type StagingXcmV5AssetAssetFilter =
851
+ | { type: 'Definite'; value: StagingXcmV5AssetAssets }
852
+ | { type: 'Wild'; value: StagingXcmV5AssetWildAsset };
779
853
 
780
- export type StagingXcmV4AssetWildAsset =
854
+ export type StagingXcmV5AssetWildAsset =
781
855
  | { type: 'All' }
782
- | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } }
856
+ | { type: 'AllOf'; value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility } }
783
857
  | { type: 'AllCounted'; value: number }
784
858
  | {
785
859
  type: 'AllOfCounted';
786
- value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number };
860
+ value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility; count: number };
787
861
  };
788
862
 
789
- export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible';
863
+ export type StagingXcmV5AssetWildFungibility = 'Fungible' | 'NonFungible';
790
864
 
791
865
  export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight };
792
866
 
793
- export type XcmVersionedAssets =
794
- | { type: 'V2'; value: XcmV2MultiassetMultiAssets }
795
- | { type: 'V3'; value: XcmV3MultiassetMultiAssets }
796
- | { type: 'V4'; value: StagingXcmV4AssetAssets };
797
-
798
- export type XcmV2MultiassetMultiAssets = Array<XcmV2MultiassetMultiAsset>;
799
-
800
- export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility };
801
-
802
- export type XcmV2MultiassetAssetId =
803
- | { type: 'Concrete'; value: XcmV2MultilocationMultiLocation }
804
- | { type: 'Abstract'; value: Bytes };
805
-
806
- export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions };
807
-
808
- export type XcmV2MultilocationJunctions =
809
- | { type: 'Here' }
810
- | { type: 'X1'; value: XcmV2Junction }
811
- | { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] }
812
- | { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] }
813
- | { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
814
- | { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
815
- | { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
816
- | {
817
- type: 'X7';
818
- value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction];
819
- }
820
- | {
821
- type: 'X8';
822
- value: [
823
- XcmV2Junction,
824
- XcmV2Junction,
825
- XcmV2Junction,
826
- XcmV2Junction,
827
- XcmV2Junction,
828
- XcmV2Junction,
829
- XcmV2Junction,
830
- XcmV2Junction,
831
- ];
832
- };
833
-
834
- export type XcmV2Junction =
835
- | { type: 'Parachain'; value: number }
836
- | { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } }
837
- | { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } }
838
- | { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } }
839
- | { type: 'PalletInstance'; value: number }
840
- | { type: 'GeneralIndex'; value: bigint }
841
- | { type: 'GeneralKey'; value: Bytes }
842
- | { type: 'OnlyChild' }
843
- | { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } };
844
-
845
- export type XcmV2NetworkId =
846
- | { type: 'Any' }
847
- | { type: 'Named'; value: Bytes }
848
- | { type: 'Polkadot' }
849
- | { type: 'Kusama' };
850
-
851
- export type XcmV2BodyId =
852
- | { type: 'Unit' }
853
- | { type: 'Named'; value: Bytes }
854
- | { type: 'Index'; value: number }
855
- | { type: 'Executive' }
856
- | { type: 'Technical' }
857
- | { type: 'Legislative' }
858
- | { type: 'Judicial' }
859
- | { type: 'Defense' }
860
- | { type: 'Administration' }
861
- | { type: 'Treasury' };
862
-
863
- export type XcmV2BodyPart =
864
- | { type: 'Voice' }
865
- | { type: 'Members'; value: { count: number } }
866
- | { type: 'Fraction'; value: { nom: number; denom: number } }
867
- | { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
868
- | { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
867
+ export type StagingXcmV5AssetAssetTransferFilter =
868
+ | { type: 'Teleport'; value: StagingXcmV5AssetAssetFilter }
869
+ | { type: 'ReserveDeposit'; value: StagingXcmV5AssetAssetFilter }
870
+ | { type: 'ReserveWithdraw'; value: StagingXcmV5AssetAssetFilter };
869
871
 
870
- export type XcmV2MultiassetFungibility =
871
- | { type: 'Fungible'; value: bigint }
872
- | { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance };
872
+ export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
873
873
 
874
- export type XcmV2MultiassetAssetInstance =
875
- | { type: 'Undefined' }
876
- | { type: 'Index'; value: bigint }
877
- | { type: 'Array4'; value: FixedBytes<4> }
878
- | { type: 'Array8'; value: FixedBytes<8> }
879
- | { type: 'Array16'; value: FixedBytes<16> }
880
- | { type: 'Array32'; value: FixedBytes<32> }
881
- | { type: 'Blob'; value: Bytes };
874
+ export type XcmVersionedAssets =
875
+ | { type: 'V3'; value: XcmV3MultiassetMultiAssets }
876
+ | { type: 'V4'; value: StagingXcmV4AssetAssets }
877
+ | { type: 'V5'; value: StagingXcmV5AssetAssets };
882
878
 
883
879
  export type XcmV3MultiassetMultiAssets = Array<XcmV3MultiassetMultiAsset>;
884
880
 
@@ -953,10 +949,28 @@ export type XcmV3MultiassetAssetInstance =
953
949
  | { type: 'Array16'; value: FixedBytes<16> }
954
950
  | { type: 'Array32'; value: FixedBytes<32> };
955
951
 
952
+ export type StagingXcmV4AssetAssets = Array<StagingXcmV4Asset>;
953
+
954
+ export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility };
955
+
956
+ export type StagingXcmV4AssetAssetId = StagingXcmV4Location;
957
+
958
+ export type StagingXcmV4AssetFungibility =
959
+ | { type: 'Fungible'; value: bigint }
960
+ | { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance };
961
+
962
+ export type StagingXcmV4AssetAssetInstance =
963
+ | { type: 'Undefined' }
964
+ | { type: 'Index'; value: bigint }
965
+ | { type: 'Array4'; value: FixedBytes<4> }
966
+ | { type: 'Array8'; value: FixedBytes<8> }
967
+ | { type: 'Array16'; value: FixedBytes<16> }
968
+ | { type: 'Array32'; value: FixedBytes<32> };
969
+
956
970
  export type XcmVersionedLocation =
957
- | { type: 'V2'; value: XcmV2MultilocationMultiLocation }
958
971
  | { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation }
959
- | { type: 'V4'; value: StagingXcmV4Location };
972
+ | { type: 'V4'; value: StagingXcmV4Location }
973
+ | { type: 'V5'; value: StagingXcmV5Location };
960
974
 
961
975
  /**
962
976
  * The `Event` enum of this pallet
@@ -976,7 +990,7 @@ export type CumulusPalletXcmEvent =
976
990
  * Downward message executed with the given outcome.
977
991
  * \[ id, outcome \]
978
992
  **/
979
- | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV4TraitsOutcome] };
993
+ | { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV5TraitsOutcome] };
980
994
 
981
995
  /**
982
996
  * The `Event` enum of this pallet
@@ -3578,23 +3592,25 @@ export type PalletXcmQueryStatus =
3578
3592
  | { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } };
3579
3593
 
3580
3594
  export type XcmVersionedResponse =
3581
- | { type: 'V2'; value: XcmV2Response }
3582
3595
  | { type: 'V3'; value: XcmV3Response }
3583
- | { type: 'V4'; value: StagingXcmV4Response };
3596
+ | { type: 'V4'; value: StagingXcmV4Response }
3597
+ | { type: 'V5'; value: StagingXcmV5Response };
3584
3598
 
3585
- export type XcmV2Response =
3599
+ export type XcmV3Response =
3586
3600
  | { type: 'Null' }
3587
- | { type: 'Assets'; value: XcmV2MultiassetMultiAssets }
3588
- | { type: 'ExecutionResult'; value?: [number, XcmV2TraitsError] | undefined }
3589
- | { type: 'Version'; value: number };
3601
+ | { type: 'Assets'; value: XcmV3MultiassetMultiAssets }
3602
+ | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
3603
+ | { type: 'Version'; value: number }
3604
+ | { type: 'PalletsInfo'; value: Array<XcmV3PalletInfo> }
3605
+ | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
3590
3606
 
3591
- export type XcmV2TraitsError =
3607
+ export type XcmV3TraitsError =
3592
3608
  | { type: 'Overflow' }
3593
3609
  | { type: 'Unimplemented' }
3594
3610
  | { type: 'UntrustedReserveLocation' }
3595
3611
  | { type: 'UntrustedTeleportLocation' }
3596
- | { type: 'MultiLocationFull' }
3597
- | { type: 'MultiLocationNotInvertible' }
3612
+ | { type: 'LocationFull' }
3613
+ | { type: 'LocationNotInvertible' }
3598
3614
  | { type: 'BadOrigin' }
3599
3615
  | { type: 'InvalidLocation' }
3600
3616
  | { type: 'AssetNotFound' }
@@ -3611,20 +3627,43 @@ export type XcmV2TraitsError =
3611
3627
  | { type: 'NotHoldingFees' }
3612
3628
  | { type: 'TooExpensive' }
3613
3629
  | { type: 'Trap'; value: bigint }
3630
+ | { type: 'ExpectationFalse' }
3631
+ | { type: 'PalletNotFound' }
3632
+ | { type: 'NameMismatch' }
3633
+ | { type: 'VersionIncompatible' }
3634
+ | { type: 'HoldingWouldOverflow' }
3635
+ | { type: 'ExportError' }
3636
+ | { type: 'ReanchorFailed' }
3637
+ | { type: 'NoDeal' }
3638
+ | { type: 'FeesNotMet' }
3639
+ | { type: 'LockError' }
3640
+ | { type: 'NoPermission' }
3641
+ | { type: 'Unanchored' }
3642
+ | { type: 'NotDepositable' }
3614
3643
  | { type: 'UnhandledXcmVersion' }
3615
- | { type: 'WeightLimitReached'; value: bigint }
3644
+ | { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
3616
3645
  | { type: 'Barrier' }
3617
- | { type: 'WeightNotComputable' };
3646
+ | { type: 'WeightNotComputable' }
3647
+ | { type: 'ExceedsStackLimit' };
3618
3648
 
3619
- export type XcmV3Response =
3649
+ export type XcmV3PalletInfo = {
3650
+ index: number;
3651
+ name: Bytes;
3652
+ moduleName: Bytes;
3653
+ major: number;
3654
+ minor: number;
3655
+ patch: number;
3656
+ };
3657
+
3658
+ export type StagingXcmV4Response =
3620
3659
  | { type: 'Null' }
3621
- | { type: 'Assets'; value: XcmV3MultiassetMultiAssets }
3660
+ | { type: 'Assets'; value: StagingXcmV4AssetAssets }
3622
3661
  | { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
3623
3662
  | { type: 'Version'; value: number }
3624
- | { type: 'PalletsInfo'; value: Array<XcmV3PalletInfo> }
3663
+ | { type: 'PalletsInfo'; value: Array<StagingXcmV4PalletInfo> }
3625
3664
  | { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
3626
3665
 
3627
- export type XcmV3PalletInfo = {
3666
+ export type StagingXcmV4PalletInfo = {
3628
3667
  index: number;
3629
3668
  name: Bytes;
3630
3669
  moduleName: Bytes;
@@ -3641,7 +3680,8 @@ export type PalletXcmVersionMigrationStage =
3641
3680
 
3642
3681
  export type XcmVersionedAssetId =
3643
3682
  | { type: 'V3'; value: XcmV3MultiassetAssetId }
3644
- | { type: 'V4'; value: StagingXcmV4AssetAssetId };
3683
+ | { type: 'V4'; value: StagingXcmV4AssetAssetId }
3684
+ | { type: 'V5'; value: StagingXcmV5AssetAssetId };
3645
3685
 
3646
3686
  export type PalletXcmRemoteLockedFungibleRecord = {
3647
3687
  amount: bigint;
@@ -3744,7 +3784,7 @@ export type PalletXcmCall =
3744
3784
  * - `location`: The destination that is being described.
3745
3785
  * - `xcm_version`: The latest version of XCM that `location` supports.
3746
3786
  **/
3747
- | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } }
3787
+ | { name: 'ForceXcmVersion'; params: { location: StagingXcmV5Location; version: number } }
3748
3788
  /**
3749
3789
  * Set a safe XCM version (the version that XCM should be encoded with if the most recent
3750
3790
  * version a destination can accept is unknown).
@@ -4056,7 +4096,7 @@ export type PalletXcmCallLike =
4056
4096
  * - `location`: The destination that is being described.
4057
4097
  * - `xcm_version`: The latest version of XCM that `location` supports.
4058
4098
  **/
4059
- | { name: 'ForceXcmVersion'; params: { location: StagingXcmV4Location; version: number } }
4099
+ | { name: 'ForceXcmVersion'; params: { location: StagingXcmV5Location; version: number } }
4060
4100
  /**
4061
4101
  * Set a safe XCM version (the version that XCM should be encoded with if the most recent
4062
4102
  * version a destination can accept is unknown).
@@ -4278,93 +4318,9 @@ export type PalletXcmCallLike =
4278
4318
  };
4279
4319
 
4280
4320
  export type XcmVersionedXcm =
4281
- | { type: 'V2'; value: XcmV2Xcm }
4282
4321
  | { type: 'V3'; value: XcmV3Xcm }
4283
- | { type: 'V4'; value: StagingXcmV4Xcm };
4284
-
4285
- export type XcmV2Xcm = Array<XcmV2Instruction>;
4286
-
4287
- export type XcmV2Instruction =
4288
- | { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets }
4289
- | { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets }
4290
- | { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets }
4291
- | { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } }
4292
- | {
4293
- type: 'TransferAsset';
4294
- value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation };
4295
- }
4296
- | {
4297
- type: 'TransferReserveAsset';
4298
- value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
4299
- }
4300
- | { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } }
4301
- | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
4302
- | { type: 'HrmpChannelAccepted'; value: { recipient: number } }
4303
- | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
4304
- | { type: 'ClearOrigin' }
4305
- | { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions }
4306
- | {
4307
- type: 'ReportError';
4308
- value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint };
4309
- }
4310
- | {
4311
- type: 'DepositAsset';
4312
- value: {
4313
- assets: XcmV2MultiassetMultiAssetFilter;
4314
- maxAssets: number;
4315
- beneficiary: XcmV2MultilocationMultiLocation;
4316
- };
4317
- }
4318
- | {
4319
- type: 'DepositReserveAsset';
4320
- value: {
4321
- assets: XcmV2MultiassetMultiAssetFilter;
4322
- maxAssets: number;
4323
- dest: XcmV2MultilocationMultiLocation;
4324
- xcm: XcmV2Xcm;
4325
- };
4326
- }
4327
- | { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } }
4328
- | {
4329
- type: 'InitiateReserveWithdraw';
4330
- value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
4331
- }
4332
- | {
4333
- type: 'InitiateTeleport';
4334
- value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
4335
- }
4336
- | {
4337
- type: 'QueryHolding';
4338
- value: {
4339
- queryId: bigint;
4340
- dest: XcmV2MultilocationMultiLocation;
4341
- assets: XcmV2MultiassetMultiAssetFilter;
4342
- maxResponseWeight: bigint;
4343
- };
4344
- }
4345
- | { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } }
4346
- | { type: 'RefundSurplus' }
4347
- | { type: 'SetErrorHandler'; value: XcmV2Xcm }
4348
- | { type: 'SetAppendix'; value: XcmV2Xcm }
4349
- | { type: 'ClearError' }
4350
- | { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } }
4351
- | { type: 'Trap'; value: bigint }
4352
- | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } }
4353
- | { type: 'UnsubscribeVersion' };
4354
-
4355
- export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
4356
-
4357
- export type XcmV2MultiassetMultiAssetFilter =
4358
- | { type: 'Definite'; value: XcmV2MultiassetMultiAssets }
4359
- | { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset };
4360
-
4361
- export type XcmV2MultiassetWildMultiAsset =
4362
- | { type: 'All' }
4363
- | { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } };
4364
-
4365
- export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible';
4366
-
4367
- export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint };
4322
+ | { type: 'V4'; value: StagingXcmV4Xcm }
4323
+ | { type: 'V5'; value: StagingXcmV5Xcm };
4368
4324
 
4369
4325
  export type XcmV3Xcm = Array<XcmV3Instruction>;
4370
4326
 
@@ -4487,6 +4443,117 @@ export type XcmV3MultiassetWildMultiAsset =
4487
4443
 
4488
4444
  export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible';
4489
4445
 
4446
+ export type StagingXcmV4Xcm = Array<StagingXcmV4Instruction>;
4447
+
4448
+ export type StagingXcmV4Instruction =
4449
+ | { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets }
4450
+ | { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets }
4451
+ | { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets }
4452
+ | {
4453
+ type: 'QueryResponse';
4454
+ value: {
4455
+ queryId: bigint;
4456
+ response: StagingXcmV4Response;
4457
+ maxWeight: SpWeightsWeightV2Weight;
4458
+ querier?: StagingXcmV4Location | undefined;
4459
+ };
4460
+ }
4461
+ | { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } }
4462
+ | {
4463
+ type: 'TransferReserveAsset';
4464
+ value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
4465
+ }
4466
+ | {
4467
+ type: 'Transact';
4468
+ value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
4469
+ }
4470
+ | { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
4471
+ | { type: 'HrmpChannelAccepted'; value: { recipient: number } }
4472
+ | { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
4473
+ | { type: 'ClearOrigin' }
4474
+ | { type: 'DescendOrigin'; value: StagingXcmV4Junctions }
4475
+ | { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo }
4476
+ | { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } }
4477
+ | {
4478
+ type: 'DepositReserveAsset';
4479
+ value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
4480
+ }
4481
+ | {
4482
+ type: 'ExchangeAsset';
4483
+ value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean };
4484
+ }
4485
+ | {
4486
+ type: 'InitiateReserveWithdraw';
4487
+ value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
4488
+ }
4489
+ | {
4490
+ type: 'InitiateTeleport';
4491
+ value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
4492
+ }
4493
+ | {
4494
+ type: 'ReportHolding';
4495
+ value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter };
4496
+ }
4497
+ | { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } }
4498
+ | { type: 'RefundSurplus' }
4499
+ | { type: 'SetErrorHandler'; value: StagingXcmV4Xcm }
4500
+ | { type: 'SetAppendix'; value: StagingXcmV4Xcm }
4501
+ | { type: 'ClearError' }
4502
+ | { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } }
4503
+ | { type: 'Trap'; value: bigint }
4504
+ | { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
4505
+ | { type: 'UnsubscribeVersion' }
4506
+ | { type: 'BurnAsset'; value: StagingXcmV4AssetAssets }
4507
+ | { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets }
4508
+ | { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined }
4509
+ | { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined }
4510
+ | { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode }
4511
+ | { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } }
4512
+ | {
4513
+ type: 'ExpectPallet';
4514
+ value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number };
4515
+ }
4516
+ | { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo }
4517
+ | { type: 'ClearTransactStatus' }
4518
+ | { type: 'UniversalOrigin'; value: StagingXcmV4Junction }
4519
+ | {
4520
+ type: 'ExportMessage';
4521
+ value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm };
4522
+ }
4523
+ | { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } }
4524
+ | { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } }
4525
+ | { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } }
4526
+ | { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } }
4527
+ | { type: 'SetFeesMode'; value: { jitWithdraw: boolean } }
4528
+ | { type: 'SetTopic'; value: FixedBytes<32> }
4529
+ | { type: 'ClearTopic' }
4530
+ | { type: 'AliasOrigin'; value: StagingXcmV4Location }
4531
+ | {
4532
+ type: 'UnpaidExecution';
4533
+ value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined };
4534
+ };
4535
+
4536
+ export type StagingXcmV4QueryResponseInfo = {
4537
+ destination: StagingXcmV4Location;
4538
+ queryId: bigint;
4539
+ maxWeight: SpWeightsWeightV2Weight;
4540
+ };
4541
+
4542
+ export type StagingXcmV4AssetAssetFilter =
4543
+ | { type: 'Definite'; value: StagingXcmV4AssetAssets }
4544
+ | { type: 'Wild'; value: StagingXcmV4AssetWildAsset };
4545
+
4546
+ export type StagingXcmV4AssetWildAsset =
4547
+ | { type: 'All' }
4548
+ | { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } }
4549
+ | { type: 'AllCounted'; value: number }
4550
+ | {
4551
+ type: 'AllOfCounted';
4552
+ value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number };
4553
+ };
4554
+
4555
+ export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible';
4556
+
4490
4557
  export type StagingXcmExecutorAssetTransferTransferType =
4491
4558
  | { type: 'Teleport' }
4492
4559
  | { type: 'LocalReserve' }
@@ -11875,8 +11942,8 @@ export type FrameSupportDispatchRawOrigin =
11875
11942
  | { type: 'None' };
11876
11943
 
11877
11944
  export type PalletXcmOrigin =
11878
- | { type: 'Xcm'; value: StagingXcmV4Location }
11879
- | { type: 'Response'; value: StagingXcmV4Location };
11945
+ | { type: 'Xcm'; value: StagingXcmV5Location }
11946
+ | { type: 'Response'; value: StagingXcmV5Location };
11880
11947
 
11881
11948
  export type CumulusPalletXcmOrigin =
11882
11949
  | { type: 'Relay' }
@@ -12626,7 +12693,9 @@ export type SpRuntimeTransactionValidityInvalidTransaction =
12626
12693
  | { type: 'Custom'; value: number }
12627
12694
  | { type: 'BadMandatory' }
12628
12695
  | { type: 'MandatoryValidation' }
12629
- | { type: 'BadSigner' };
12696
+ | { type: 'BadSigner' }
12697
+ | { type: 'IndeterminateImplicit' }
12698
+ | { type: 'UnknownOrigin' };
12630
12699
 
12631
12700
  export type SpRuntimeTransactionValidityUnknownTransaction =
12632
12701
  | { type: 'CannotLookup' }
@@ -12688,7 +12757,7 @@ export type SpRuntimeDispatchErrorWithPostInfo = {
12688
12757
  export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
12689
12758
 
12690
12759
  export type XcmRuntimeApisDryRunXcmDryRunEffects = {
12691
- executionResult: StagingXcmV4TraitsOutcome;
12760
+ executionResult: StagingXcmV5TraitsOutcome;
12692
12761
  emittedEvents: Array<AssetHubPaseoRuntimeRuntimeEvent>;
12693
12762
  forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
12694
12763
  };