@dedot/chaintypes 0.106.0 → 0.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/polkadot/consts.d.ts +5 -2
- package/polkadot/errors.d.ts +5 -46
- package/polkadot/events.d.ts +60 -40
- package/polkadot/index.d.ts +1 -1
- package/polkadot/query.d.ts +55 -30
- package/polkadot/runtime.d.ts +39 -19
- package/polkadot/tx.d.ts +66 -70
- package/polkadot/types.d.ts +457 -379
- package/polkadot-asset-hub/events.d.ts +37 -40
- package/polkadot-asset-hub/index.d.ts +1 -1
- package/polkadot-asset-hub/query.d.ts +3 -3
- package/polkadot-asset-hub/runtime.d.ts +8 -5
- package/polkadot-asset-hub/tx.d.ts +5 -4
- package/polkadot-asset-hub/types.d.ts +354 -288
- package/polkadot-people/consts.d.ts +37 -0
- package/polkadot-people/errors.d.ts +35 -0
- package/polkadot-people/events.d.ts +207 -31
- package/polkadot-people/index.d.ts +1 -1
- package/polkadot-people/query.d.ts +71 -23
- package/polkadot-people/runtime.d.ts +8 -5
- package/polkadot-people/tx.d.ts +178 -14
- package/polkadot-people/types.d.ts +713 -350
|
@@ -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,
|
|
@@ -80,11 +79,11 @@ export type FrameSystemEvent =
|
|
|
80
79
|
/**
|
|
81
80
|
* An extrinsic completed successfully.
|
|
82
81
|
**/
|
|
83
|
-
| { name: 'ExtrinsicSuccess'; data: { dispatchInfo:
|
|
82
|
+
| { name: 'ExtrinsicSuccess'; data: { dispatchInfo: FrameSystemDispatchEventInfo } }
|
|
84
83
|
/**
|
|
85
84
|
* An extrinsic failed.
|
|
86
85
|
**/
|
|
87
|
-
| { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo:
|
|
86
|
+
| { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo } }
|
|
88
87
|
/**
|
|
89
88
|
* `:code` was updated.
|
|
90
89
|
**/
|
|
@@ -106,10 +105,32 @@ export type FrameSystemEvent =
|
|
|
106
105
|
**/
|
|
107
106
|
| { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } };
|
|
108
107
|
|
|
108
|
+
export type FrameSystemDispatchEventInfo = {
|
|
109
|
+
weight: SpWeightsWeightV2Weight;
|
|
110
|
+
class: FrameSupportDispatchDispatchClass;
|
|
111
|
+
paysFee: FrameSupportDispatchPays;
|
|
112
|
+
};
|
|
113
|
+
|
|
109
114
|
export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory';
|
|
110
115
|
|
|
111
116
|
export type FrameSupportDispatchPays = 'Yes' | 'No';
|
|
112
117
|
|
|
118
|
+
export type SpRuntimeProvingTrieTrieError =
|
|
119
|
+
| 'InvalidStateRoot'
|
|
120
|
+
| 'IncompleteDatabase'
|
|
121
|
+
| 'ValueAtIncompleteKey'
|
|
122
|
+
| 'DecoderError'
|
|
123
|
+
| 'InvalidHash'
|
|
124
|
+
| 'DuplicateKey'
|
|
125
|
+
| 'ExtraneousNode'
|
|
126
|
+
| 'ExtraneousValue'
|
|
127
|
+
| 'ExtraneousHashReference'
|
|
128
|
+
| 'InvalidChildReference'
|
|
129
|
+
| 'ValueMismatch'
|
|
130
|
+
| 'IncompleteProof'
|
|
131
|
+
| 'RootMismatch'
|
|
132
|
+
| 'DecodeError';
|
|
133
|
+
|
|
113
134
|
/**
|
|
114
135
|
* The `Event` enum of this pallet
|
|
115
136
|
**/
|
|
@@ -414,16 +435,16 @@ export type PalletXcmEvent =
|
|
|
414
435
|
/**
|
|
415
436
|
* Execution of an XCM message was attempted.
|
|
416
437
|
**/
|
|
417
|
-
| { name: 'Attempted'; data: { outcome:
|
|
438
|
+
| { name: 'Attempted'; data: { outcome: StagingXcmV5TraitsOutcome } }
|
|
418
439
|
/**
|
|
419
440
|
* A XCM message was sent.
|
|
420
441
|
**/
|
|
421
442
|
| {
|
|
422
443
|
name: 'Sent';
|
|
423
444
|
data: {
|
|
424
|
-
origin:
|
|
425
|
-
destination:
|
|
426
|
-
message:
|
|
445
|
+
origin: StagingXcmV5Location;
|
|
446
|
+
destination: StagingXcmV5Location;
|
|
447
|
+
message: StagingXcmV5Xcm;
|
|
427
448
|
messageId: FixedBytes<32>;
|
|
428
449
|
};
|
|
429
450
|
}
|
|
@@ -432,12 +453,12 @@ export type PalletXcmEvent =
|
|
|
432
453
|
* matching query was never registered, it may be because it is a duplicate response, or
|
|
433
454
|
* because the query timed out.
|
|
434
455
|
**/
|
|
435
|
-
| { name: 'UnexpectedResponse'; data: { origin:
|
|
456
|
+
| { name: 'UnexpectedResponse'; data: { origin: StagingXcmV5Location; queryId: bigint } }
|
|
436
457
|
/**
|
|
437
458
|
* Query response has been received and is ready for taking with `take_response`. There is
|
|
438
459
|
* no registered notification call.
|
|
439
460
|
**/
|
|
440
|
-
| { name: 'ResponseReady'; data: { queryId: bigint; response:
|
|
461
|
+
| { name: 'ResponseReady'; data: { queryId: bigint; response: StagingXcmV5Response } }
|
|
441
462
|
/**
|
|
442
463
|
* Query response has been received and query is removed. The registered notification has
|
|
443
464
|
* been dispatched and executed successfully.
|
|
@@ -476,7 +497,7 @@ export type PalletXcmEvent =
|
|
|
476
497
|
**/
|
|
477
498
|
| {
|
|
478
499
|
name: 'InvalidResponder';
|
|
479
|
-
data: { origin:
|
|
500
|
+
data: { origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined };
|
|
480
501
|
}
|
|
481
502
|
/**
|
|
482
503
|
* Expected query response has been received but the expected origin location placed in
|
|
@@ -487,7 +508,7 @@ export type PalletXcmEvent =
|
|
|
487
508
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
|
488
509
|
* needed.
|
|
489
510
|
**/
|
|
490
|
-
| { name: 'InvalidResponderVersion'; data: { origin:
|
|
511
|
+
| { name: 'InvalidResponderVersion'; data: { origin: StagingXcmV5Location; queryId: bigint } }
|
|
491
512
|
/**
|
|
492
513
|
* Received query response has been read and removed.
|
|
493
514
|
**/
|
|
@@ -495,7 +516,7 @@ export type PalletXcmEvent =
|
|
|
495
516
|
/**
|
|
496
517
|
* Some assets have been placed in an asset trap.
|
|
497
518
|
**/
|
|
498
|
-
| { name: 'AssetsTrapped'; data: { hash: H256; origin:
|
|
519
|
+
| { name: 'AssetsTrapped'; data: { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets } }
|
|
499
520
|
/**
|
|
500
521
|
* An XCM version change notification message has been attempted to be sent.
|
|
501
522
|
*
|
|
@@ -504,9 +525,9 @@ export type PalletXcmEvent =
|
|
|
504
525
|
| {
|
|
505
526
|
name: 'VersionChangeNotified';
|
|
506
527
|
data: {
|
|
507
|
-
destination:
|
|
528
|
+
destination: StagingXcmV5Location;
|
|
508
529
|
result: number;
|
|
509
|
-
cost:
|
|
530
|
+
cost: StagingXcmV5AssetAssets;
|
|
510
531
|
messageId: FixedBytes<32>;
|
|
511
532
|
};
|
|
512
533
|
}
|
|
@@ -514,12 +535,12 @@ export type PalletXcmEvent =
|
|
|
514
535
|
* The supported version of a location has been changed. This might be through an
|
|
515
536
|
* automatic notification or a manual intervention.
|
|
516
537
|
**/
|
|
517
|
-
| { name: 'SupportedVersionChanged'; data: { location:
|
|
538
|
+
| { name: 'SupportedVersionChanged'; data: { location: StagingXcmV5Location; version: number } }
|
|
518
539
|
/**
|
|
519
540
|
* A given location which had a version change subscription was dropped owing to an error
|
|
520
541
|
* sending the notification to it.
|
|
521
542
|
**/
|
|
522
|
-
| { name: 'NotifyTargetSendFail'; data: { location:
|
|
543
|
+
| { name: 'NotifyTargetSendFail'; data: { location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError } }
|
|
523
544
|
/**
|
|
524
545
|
* A given location which had a version change subscription was dropped owing to an error
|
|
525
546
|
* migrating the location to our new XCM format.
|
|
@@ -534,7 +555,7 @@ export type PalletXcmEvent =
|
|
|
534
555
|
* valid response will be dropped. Manual governance intervention is probably going to be
|
|
535
556
|
* needed.
|
|
536
557
|
**/
|
|
537
|
-
| { name: 'InvalidQuerierVersion'; data: { origin:
|
|
558
|
+
| { name: 'InvalidQuerierVersion'; data: { origin: StagingXcmV5Location; queryId: bigint } }
|
|
538
559
|
/**
|
|
539
560
|
* Expected query response has been received but the querier location of the response does
|
|
540
561
|
* not match the expected. The query remains registered for a later, valid, response to
|
|
@@ -543,10 +564,10 @@ export type PalletXcmEvent =
|
|
|
543
564
|
| {
|
|
544
565
|
name: 'InvalidQuerier';
|
|
545
566
|
data: {
|
|
546
|
-
origin:
|
|
567
|
+
origin: StagingXcmV5Location;
|
|
547
568
|
queryId: bigint;
|
|
548
|
-
expectedQuerier:
|
|
549
|
-
maybeActualQuerier?:
|
|
569
|
+
expectedQuerier: StagingXcmV5Location;
|
|
570
|
+
maybeActualQuerier?: StagingXcmV5Location | undefined;
|
|
550
571
|
};
|
|
551
572
|
}
|
|
552
573
|
/**
|
|
@@ -555,14 +576,14 @@ export type PalletXcmEvent =
|
|
|
555
576
|
**/
|
|
556
577
|
| {
|
|
557
578
|
name: 'VersionNotifyStarted';
|
|
558
|
-
data: { destination:
|
|
579
|
+
data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
|
|
559
580
|
}
|
|
560
581
|
/**
|
|
561
582
|
* We have requested that a remote chain send us XCM version change notifications.
|
|
562
583
|
**/
|
|
563
584
|
| {
|
|
564
585
|
name: 'VersionNotifyRequested';
|
|
565
|
-
data: { destination:
|
|
586
|
+
data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
|
|
566
587
|
}
|
|
567
588
|
/**
|
|
568
589
|
* We have requested that a remote chain stops sending us XCM version change
|
|
@@ -570,27 +591,27 @@ export type PalletXcmEvent =
|
|
|
570
591
|
**/
|
|
571
592
|
| {
|
|
572
593
|
name: 'VersionNotifyUnrequested';
|
|
573
|
-
data: { destination:
|
|
594
|
+
data: { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> };
|
|
574
595
|
}
|
|
575
596
|
/**
|
|
576
597
|
* Fees were paid from a location for an operation (often for using `SendXcm`).
|
|
577
598
|
**/
|
|
578
|
-
| { name: 'FeesPaid'; data: { paying:
|
|
599
|
+
| { name: 'FeesPaid'; data: { paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets } }
|
|
579
600
|
/**
|
|
580
601
|
* Some assets have been claimed from an asset trap
|
|
581
602
|
**/
|
|
582
|
-
| { name: 'AssetsClaimed'; data: { hash: H256; origin:
|
|
603
|
+
| { name: 'AssetsClaimed'; data: { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets } }
|
|
583
604
|
/**
|
|
584
605
|
* A XCM version migration finished.
|
|
585
606
|
**/
|
|
586
607
|
| { name: 'VersionMigrationFinished'; data: { version: number } };
|
|
587
608
|
|
|
588
|
-
export type
|
|
609
|
+
export type StagingXcmV5TraitsOutcome =
|
|
589
610
|
| { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } }
|
|
590
|
-
| { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error:
|
|
591
|
-
| { type: 'Error'; value: { error:
|
|
611
|
+
| { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV5TraitsError } }
|
|
612
|
+
| { type: 'Error'; value: { error: XcmV5TraitsError } };
|
|
592
613
|
|
|
593
|
-
export type
|
|
614
|
+
export type XcmV5TraitsError =
|
|
594
615
|
| { type: 'Overflow' }
|
|
595
616
|
| { type: 'Unimplemented' }
|
|
596
617
|
| { type: 'UntrustedReserveLocation' }
|
|
@@ -626,113 +647,166 @@ export type XcmV3TraitsError =
|
|
|
626
647
|
| { type: 'NoPermission' }
|
|
627
648
|
| { type: 'Unanchored' }
|
|
628
649
|
| { type: 'NotDepositable' }
|
|
650
|
+
| { type: 'TooManyAssets' }
|
|
629
651
|
| { type: 'UnhandledXcmVersion' }
|
|
630
652
|
| { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
|
|
631
653
|
| { type: 'Barrier' }
|
|
632
654
|
| { type: 'WeightNotComputable' }
|
|
633
655
|
| { type: 'ExceedsStackLimit' };
|
|
634
656
|
|
|
635
|
-
export type
|
|
657
|
+
export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
|
|
636
658
|
|
|
637
|
-
export type
|
|
638
|
-
| { type: '
|
|
639
|
-
| { type: '
|
|
640
|
-
| { type: '
|
|
659
|
+
export type StagingXcmV5Junctions =
|
|
660
|
+
| { type: 'Here' }
|
|
661
|
+
| { type: 'X1'; value: FixedArray<StagingXcmV5Junction, 1> }
|
|
662
|
+
| { type: 'X2'; value: FixedArray<StagingXcmV5Junction, 2> }
|
|
663
|
+
| { type: 'X3'; value: FixedArray<StagingXcmV5Junction, 3> }
|
|
664
|
+
| { type: 'X4'; value: FixedArray<StagingXcmV5Junction, 4> }
|
|
665
|
+
| { type: 'X5'; value: FixedArray<StagingXcmV5Junction, 5> }
|
|
666
|
+
| { type: 'X6'; value: FixedArray<StagingXcmV5Junction, 6> }
|
|
667
|
+
| { type: 'X7'; value: FixedArray<StagingXcmV5Junction, 7> }
|
|
668
|
+
| { type: 'X8'; value: FixedArray<StagingXcmV5Junction, 8> };
|
|
669
|
+
|
|
670
|
+
export type StagingXcmV5Junction =
|
|
671
|
+
| { type: 'Parachain'; value: number }
|
|
672
|
+
| { type: 'AccountId32'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; id: FixedBytes<32> } }
|
|
673
|
+
| { type: 'AccountIndex64'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; index: bigint } }
|
|
674
|
+
| { type: 'AccountKey20'; value: { network?: StagingXcmV5JunctionNetworkId | undefined; key: FixedBytes<20> } }
|
|
675
|
+
| { type: 'PalletInstance'; value: number }
|
|
676
|
+
| { type: 'GeneralIndex'; value: bigint }
|
|
677
|
+
| { type: 'GeneralKey'; value: { length: number; data: FixedBytes<32> } }
|
|
678
|
+
| { type: 'OnlyChild' }
|
|
679
|
+
| { type: 'Plurality'; value: { id: XcmV3JunctionBodyId; part: XcmV3JunctionBodyPart } }
|
|
680
|
+
| { type: 'GlobalConsensus'; value: StagingXcmV5JunctionNetworkId };
|
|
681
|
+
|
|
682
|
+
export type StagingXcmV5JunctionNetworkId =
|
|
683
|
+
| { type: 'ByGenesis'; value: FixedBytes<32> }
|
|
684
|
+
| { type: 'ByFork'; value: { blockNumber: bigint; blockHash: FixedBytes<32> } }
|
|
685
|
+
| { type: 'Polkadot' }
|
|
686
|
+
| { type: 'Kusama' }
|
|
687
|
+
| { type: 'Ethereum'; value: { chainId: bigint } }
|
|
688
|
+
| { type: 'BitcoinCore' }
|
|
689
|
+
| { type: 'BitcoinCash' }
|
|
690
|
+
| { type: 'PolkadotBulletin' };
|
|
691
|
+
|
|
692
|
+
export type StagingXcmV5Xcm = Array<StagingXcmV5Instruction>;
|
|
693
|
+
|
|
694
|
+
export type StagingXcmV5Instruction =
|
|
695
|
+
| { type: 'WithdrawAsset'; value: StagingXcmV5AssetAssets }
|
|
696
|
+
| { type: 'ReserveAssetDeposited'; value: StagingXcmV5AssetAssets }
|
|
697
|
+
| { type: 'ReceiveTeleportedAsset'; value: StagingXcmV5AssetAssets }
|
|
641
698
|
| {
|
|
642
699
|
type: 'QueryResponse';
|
|
643
700
|
value: {
|
|
644
701
|
queryId: bigint;
|
|
645
|
-
response:
|
|
702
|
+
response: StagingXcmV5Response;
|
|
646
703
|
maxWeight: SpWeightsWeightV2Weight;
|
|
647
|
-
querier?:
|
|
704
|
+
querier?: StagingXcmV5Location | undefined;
|
|
648
705
|
};
|
|
649
706
|
}
|
|
650
|
-
| { type: 'TransferAsset'; value: { assets:
|
|
707
|
+
| { type: 'TransferAsset'; value: { assets: StagingXcmV5AssetAssets; beneficiary: StagingXcmV5Location } }
|
|
651
708
|
| {
|
|
652
709
|
type: 'TransferReserveAsset';
|
|
653
|
-
value: { assets:
|
|
710
|
+
value: { assets: StagingXcmV5AssetAssets; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
654
711
|
}
|
|
655
712
|
| {
|
|
656
713
|
type: 'Transact';
|
|
657
|
-
value: {
|
|
714
|
+
value: {
|
|
715
|
+
originKind: XcmV3OriginKind;
|
|
716
|
+
fallbackMaxWeight?: SpWeightsWeightV2Weight | undefined;
|
|
717
|
+
call: XcmDoubleEncoded;
|
|
718
|
+
};
|
|
658
719
|
}
|
|
659
720
|
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
660
721
|
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
661
722
|
| { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
|
|
662
723
|
| { type: 'ClearOrigin' }
|
|
663
|
-
| { type: 'DescendOrigin'; value:
|
|
664
|
-
| { type: 'ReportError'; value:
|
|
665
|
-
| { type: 'DepositAsset'; value: { assets:
|
|
724
|
+
| { type: 'DescendOrigin'; value: StagingXcmV5Junctions }
|
|
725
|
+
| { type: 'ReportError'; value: StagingXcmV5QueryResponseInfo }
|
|
726
|
+
| { type: 'DepositAsset'; value: { assets: StagingXcmV5AssetAssetFilter; beneficiary: StagingXcmV5Location } }
|
|
666
727
|
| {
|
|
667
728
|
type: 'DepositReserveAsset';
|
|
668
|
-
value: { assets:
|
|
729
|
+
value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
669
730
|
}
|
|
670
731
|
| {
|
|
671
732
|
type: 'ExchangeAsset';
|
|
672
|
-
value: { give:
|
|
733
|
+
value: { give: StagingXcmV5AssetAssetFilter; want: StagingXcmV5AssetAssets; maximal: boolean };
|
|
673
734
|
}
|
|
674
735
|
| {
|
|
675
736
|
type: 'InitiateReserveWithdraw';
|
|
676
|
-
value: { assets:
|
|
737
|
+
value: { assets: StagingXcmV5AssetAssetFilter; reserve: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
677
738
|
}
|
|
678
739
|
| {
|
|
679
740
|
type: 'InitiateTeleport';
|
|
680
|
-
value: { assets:
|
|
741
|
+
value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
681
742
|
}
|
|
682
743
|
| {
|
|
683
744
|
type: 'ReportHolding';
|
|
684
|
-
value: { responseInfo:
|
|
745
|
+
value: { responseInfo: StagingXcmV5QueryResponseInfo; assets: StagingXcmV5AssetAssetFilter };
|
|
685
746
|
}
|
|
686
|
-
| { type: 'BuyExecution'; value: { fees:
|
|
747
|
+
| { type: 'BuyExecution'; value: { fees: StagingXcmV5Asset; weightLimit: XcmV3WeightLimit } }
|
|
687
748
|
| { type: 'RefundSurplus' }
|
|
688
|
-
| { type: 'SetErrorHandler'; value:
|
|
689
|
-
| { type: 'SetAppendix'; value:
|
|
749
|
+
| { type: 'SetErrorHandler'; value: StagingXcmV5Xcm }
|
|
750
|
+
| { type: 'SetAppendix'; value: StagingXcmV5Xcm }
|
|
690
751
|
| { type: 'ClearError' }
|
|
691
|
-
| { type: 'ClaimAsset'; value: { assets:
|
|
752
|
+
| { type: 'ClaimAsset'; value: { assets: StagingXcmV5AssetAssets; ticket: StagingXcmV5Location } }
|
|
692
753
|
| { type: 'Trap'; value: bigint }
|
|
693
754
|
| { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
|
|
694
755
|
| { type: 'UnsubscribeVersion' }
|
|
695
|
-
| { type: 'BurnAsset'; value:
|
|
696
|
-
| { type: 'ExpectAsset'; value:
|
|
697
|
-
| { type: 'ExpectOrigin'; value?:
|
|
698
|
-
| { type: 'ExpectError'; value?: [number,
|
|
756
|
+
| { type: 'BurnAsset'; value: StagingXcmV5AssetAssets }
|
|
757
|
+
| { type: 'ExpectAsset'; value: StagingXcmV5AssetAssets }
|
|
758
|
+
| { type: 'ExpectOrigin'; value?: StagingXcmV5Location | undefined }
|
|
759
|
+
| { type: 'ExpectError'; value?: [number, XcmV5TraitsError] | undefined }
|
|
699
760
|
| { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode }
|
|
700
|
-
| { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo:
|
|
761
|
+
| { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV5QueryResponseInfo } }
|
|
701
762
|
| {
|
|
702
763
|
type: 'ExpectPallet';
|
|
703
764
|
value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number };
|
|
704
765
|
}
|
|
705
|
-
| { type: 'ReportTransactStatus'; value:
|
|
766
|
+
| { type: 'ReportTransactStatus'; value: StagingXcmV5QueryResponseInfo }
|
|
706
767
|
| { type: 'ClearTransactStatus' }
|
|
707
|
-
| { type: 'UniversalOrigin'; value:
|
|
768
|
+
| { type: 'UniversalOrigin'; value: StagingXcmV5Junction }
|
|
708
769
|
| {
|
|
709
770
|
type: 'ExportMessage';
|
|
710
|
-
value: { network:
|
|
771
|
+
value: { network: StagingXcmV5JunctionNetworkId; destination: StagingXcmV5Junctions; xcm: StagingXcmV5Xcm };
|
|
711
772
|
}
|
|
712
|
-
| { type: 'LockAsset'; value: { asset:
|
|
713
|
-
| { type: 'UnlockAsset'; value: { asset:
|
|
714
|
-
| { type: 'NoteUnlockable'; value: { asset:
|
|
715
|
-
| { type: 'RequestUnlock'; value: { asset:
|
|
773
|
+
| { type: 'LockAsset'; value: { asset: StagingXcmV5Asset; unlocker: StagingXcmV5Location } }
|
|
774
|
+
| { type: 'UnlockAsset'; value: { asset: StagingXcmV5Asset; target: StagingXcmV5Location } }
|
|
775
|
+
| { type: 'NoteUnlockable'; value: { asset: StagingXcmV5Asset; owner: StagingXcmV5Location } }
|
|
776
|
+
| { type: 'RequestUnlock'; value: { asset: StagingXcmV5Asset; locker: StagingXcmV5Location } }
|
|
716
777
|
| { type: 'SetFeesMode'; value: { jitWithdraw: boolean } }
|
|
717
778
|
| { type: 'SetTopic'; value: FixedBytes<32> }
|
|
718
779
|
| { type: 'ClearTopic' }
|
|
719
|
-
| { type: 'AliasOrigin'; value:
|
|
780
|
+
| { type: 'AliasOrigin'; value: StagingXcmV5Location }
|
|
720
781
|
| {
|
|
721
782
|
type: 'UnpaidExecution';
|
|
722
|
-
value: { weightLimit: XcmV3WeightLimit; checkOrigin?:
|
|
723
|
-
}
|
|
783
|
+
value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV5Location | undefined };
|
|
784
|
+
}
|
|
785
|
+
| { type: 'PayFees'; value: { asset: StagingXcmV5Asset } }
|
|
786
|
+
| {
|
|
787
|
+
type: 'InitiateTransfer';
|
|
788
|
+
value: {
|
|
789
|
+
destination: StagingXcmV5Location;
|
|
790
|
+
remoteFees?: StagingXcmV5AssetAssetTransferFilter | undefined;
|
|
791
|
+
preserveOrigin: boolean;
|
|
792
|
+
assets: Array<StagingXcmV5AssetAssetTransferFilter>;
|
|
793
|
+
remoteXcm: StagingXcmV5Xcm;
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
| { type: 'ExecuteWithOrigin'; value: { descendantOrigin?: StagingXcmV5Junctions | undefined; xcm: StagingXcmV5Xcm } }
|
|
797
|
+
| { type: 'SetHints'; value: { hints: Array<StagingXcmV5Hint> } };
|
|
724
798
|
|
|
725
|
-
export type
|
|
799
|
+
export type StagingXcmV5AssetAssets = Array<StagingXcmV5Asset>;
|
|
726
800
|
|
|
727
|
-
export type
|
|
801
|
+
export type StagingXcmV5Asset = { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetFungibility };
|
|
728
802
|
|
|
729
|
-
export type
|
|
803
|
+
export type StagingXcmV5AssetAssetId = StagingXcmV5Location;
|
|
730
804
|
|
|
731
|
-
export type
|
|
805
|
+
export type StagingXcmV5AssetFungibility =
|
|
732
806
|
| { type: 'Fungible'; value: bigint }
|
|
733
|
-
| { type: 'NonFungible'; value:
|
|
807
|
+
| { type: 'NonFungible'; value: StagingXcmV5AssetAssetInstance };
|
|
734
808
|
|
|
735
|
-
export type
|
|
809
|
+
export type StagingXcmV5AssetAssetInstance =
|
|
736
810
|
| { type: 'Undefined' }
|
|
737
811
|
| { type: 'Index'; value: bigint }
|
|
738
812
|
| { type: 'Array4'; value: FixedBytes<4> }
|
|
@@ -740,15 +814,15 @@ export type StagingXcmV4AssetAssetInstance =
|
|
|
740
814
|
| { type: 'Array16'; value: FixedBytes<16> }
|
|
741
815
|
| { type: 'Array32'; value: FixedBytes<32> };
|
|
742
816
|
|
|
743
|
-
export type
|
|
817
|
+
export type StagingXcmV5Response =
|
|
744
818
|
| { type: 'Null' }
|
|
745
|
-
| { type: 'Assets'; value:
|
|
746
|
-
| { type: 'ExecutionResult'; value?: [number,
|
|
819
|
+
| { type: 'Assets'; value: StagingXcmV5AssetAssets }
|
|
820
|
+
| { type: 'ExecutionResult'; value?: [number, XcmV5TraitsError] | undefined }
|
|
747
821
|
| { type: 'Version'; value: number }
|
|
748
|
-
| { type: 'PalletsInfo'; value: Array<
|
|
822
|
+
| { type: 'PalletsInfo'; value: Array<StagingXcmV5PalletInfo> }
|
|
749
823
|
| { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
|
|
750
824
|
|
|
751
|
-
export type
|
|
825
|
+
export type StagingXcmV5PalletInfo = {
|
|
752
826
|
index: number;
|
|
753
827
|
name: Bytes;
|
|
754
828
|
moduleName: Bytes;
|
|
@@ -766,118 +840,40 @@ export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm
|
|
|
766
840
|
|
|
767
841
|
export type XcmDoubleEncoded = { encoded: Bytes };
|
|
768
842
|
|
|
769
|
-
export type
|
|
770
|
-
destination:
|
|
843
|
+
export type StagingXcmV5QueryResponseInfo = {
|
|
844
|
+
destination: StagingXcmV5Location;
|
|
771
845
|
queryId: bigint;
|
|
772
846
|
maxWeight: SpWeightsWeightV2Weight;
|
|
773
847
|
};
|
|
774
848
|
|
|
775
|
-
export type
|
|
776
|
-
| { type: 'Definite'; value:
|
|
777
|
-
| { type: 'Wild'; value:
|
|
849
|
+
export type StagingXcmV5AssetAssetFilter =
|
|
850
|
+
| { type: 'Definite'; value: StagingXcmV5AssetAssets }
|
|
851
|
+
| { type: 'Wild'; value: StagingXcmV5AssetWildAsset };
|
|
778
852
|
|
|
779
|
-
export type
|
|
853
|
+
export type StagingXcmV5AssetWildAsset =
|
|
780
854
|
| { type: 'All' }
|
|
781
|
-
| { type: 'AllOf'; value: { id:
|
|
855
|
+
| { type: 'AllOf'; value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility } }
|
|
782
856
|
| { type: 'AllCounted'; value: number }
|
|
783
857
|
| {
|
|
784
858
|
type: 'AllOfCounted';
|
|
785
|
-
value: { id:
|
|
859
|
+
value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility; count: number };
|
|
786
860
|
};
|
|
787
861
|
|
|
788
|
-
export type
|
|
862
|
+
export type StagingXcmV5AssetWildFungibility = 'Fungible' | 'NonFungible';
|
|
789
863
|
|
|
790
864
|
export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight };
|
|
791
865
|
|
|
792
|
-
export type
|
|
793
|
-
| { type: '
|
|
794
|
-
| { type: '
|
|
795
|
-
| { type: '
|
|
796
|
-
|
|
797
|
-
export type XcmV2MultiassetMultiAssets = Array<XcmV2MultiassetMultiAsset>;
|
|
798
|
-
|
|
799
|
-
export type XcmV2MultiassetMultiAsset = { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetFungibility };
|
|
800
|
-
|
|
801
|
-
export type XcmV2MultiassetAssetId =
|
|
802
|
-
| { type: 'Concrete'; value: XcmV2MultilocationMultiLocation }
|
|
803
|
-
| { type: 'Abstract'; value: Bytes };
|
|
804
|
-
|
|
805
|
-
export type XcmV2MultilocationMultiLocation = { parents: number; interior: XcmV2MultilocationJunctions };
|
|
806
|
-
|
|
807
|
-
export type XcmV2MultilocationJunctions =
|
|
808
|
-
| { type: 'Here' }
|
|
809
|
-
| { type: 'X1'; value: XcmV2Junction }
|
|
810
|
-
| { type: 'X2'; value: [XcmV2Junction, XcmV2Junction] }
|
|
811
|
-
| { type: 'X3'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction] }
|
|
812
|
-
| { type: 'X4'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
|
|
813
|
-
| { type: 'X5'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
|
|
814
|
-
| { type: 'X6'; value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction] }
|
|
815
|
-
| {
|
|
816
|
-
type: 'X7';
|
|
817
|
-
value: [XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction, XcmV2Junction];
|
|
818
|
-
}
|
|
819
|
-
| {
|
|
820
|
-
type: 'X8';
|
|
821
|
-
value: [
|
|
822
|
-
XcmV2Junction,
|
|
823
|
-
XcmV2Junction,
|
|
824
|
-
XcmV2Junction,
|
|
825
|
-
XcmV2Junction,
|
|
826
|
-
XcmV2Junction,
|
|
827
|
-
XcmV2Junction,
|
|
828
|
-
XcmV2Junction,
|
|
829
|
-
XcmV2Junction,
|
|
830
|
-
];
|
|
831
|
-
};
|
|
832
|
-
|
|
833
|
-
export type XcmV2Junction =
|
|
834
|
-
| { type: 'Parachain'; value: number }
|
|
835
|
-
| { type: 'AccountId32'; value: { network: XcmV2NetworkId; id: FixedBytes<32> } }
|
|
836
|
-
| { type: 'AccountIndex64'; value: { network: XcmV2NetworkId; index: bigint } }
|
|
837
|
-
| { type: 'AccountKey20'; value: { network: XcmV2NetworkId; key: FixedBytes<20> } }
|
|
838
|
-
| { type: 'PalletInstance'; value: number }
|
|
839
|
-
| { type: 'GeneralIndex'; value: bigint }
|
|
840
|
-
| { type: 'GeneralKey'; value: Bytes }
|
|
841
|
-
| { type: 'OnlyChild' }
|
|
842
|
-
| { type: 'Plurality'; value: { id: XcmV2BodyId; part: XcmV2BodyPart } };
|
|
843
|
-
|
|
844
|
-
export type XcmV2NetworkId =
|
|
845
|
-
| { type: 'Any' }
|
|
846
|
-
| { type: 'Named'; value: Bytes }
|
|
847
|
-
| { type: 'Polkadot' }
|
|
848
|
-
| { type: 'Kusama' };
|
|
849
|
-
|
|
850
|
-
export type XcmV2BodyId =
|
|
851
|
-
| { type: 'Unit' }
|
|
852
|
-
| { type: 'Named'; value: Bytes }
|
|
853
|
-
| { type: 'Index'; value: number }
|
|
854
|
-
| { type: 'Executive' }
|
|
855
|
-
| { type: 'Technical' }
|
|
856
|
-
| { type: 'Legislative' }
|
|
857
|
-
| { type: 'Judicial' }
|
|
858
|
-
| { type: 'Defense' }
|
|
859
|
-
| { type: 'Administration' }
|
|
860
|
-
| { type: 'Treasury' };
|
|
861
|
-
|
|
862
|
-
export type XcmV2BodyPart =
|
|
863
|
-
| { type: 'Voice' }
|
|
864
|
-
| { type: 'Members'; value: { count: number } }
|
|
865
|
-
| { type: 'Fraction'; value: { nom: number; denom: number } }
|
|
866
|
-
| { type: 'AtLeastProportion'; value: { nom: number; denom: number } }
|
|
867
|
-
| { type: 'MoreThanProportion'; value: { nom: number; denom: number } };
|
|
866
|
+
export type StagingXcmV5AssetAssetTransferFilter =
|
|
867
|
+
| { type: 'Teleport'; value: StagingXcmV5AssetAssetFilter }
|
|
868
|
+
| { type: 'ReserveDeposit'; value: StagingXcmV5AssetAssetFilter }
|
|
869
|
+
| { type: 'ReserveWithdraw'; value: StagingXcmV5AssetAssetFilter };
|
|
868
870
|
|
|
869
|
-
export type
|
|
870
|
-
| { type: 'Fungible'; value: bigint }
|
|
871
|
-
| { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance };
|
|
871
|
+
export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
|
|
872
872
|
|
|
873
|
-
export type
|
|
874
|
-
| { type: '
|
|
875
|
-
| { type: '
|
|
876
|
-
| { type: '
|
|
877
|
-
| { type: 'Array8'; value: FixedBytes<8> }
|
|
878
|
-
| { type: 'Array16'; value: FixedBytes<16> }
|
|
879
|
-
| { type: 'Array32'; value: FixedBytes<32> }
|
|
880
|
-
| { type: 'Blob'; value: Bytes };
|
|
873
|
+
export type XcmVersionedAssets =
|
|
874
|
+
| { type: 'V3'; value: XcmV3MultiassetMultiAssets }
|
|
875
|
+
| { type: 'V4'; value: StagingXcmV4AssetAssets }
|
|
876
|
+
| { type: 'V5'; value: StagingXcmV5AssetAssets };
|
|
881
877
|
|
|
882
878
|
export type XcmV3MultiassetMultiAssets = Array<XcmV3MultiassetMultiAsset>;
|
|
883
879
|
|
|
@@ -952,10 +948,28 @@ export type XcmV3MultiassetAssetInstance =
|
|
|
952
948
|
| { type: 'Array16'; value: FixedBytes<16> }
|
|
953
949
|
| { type: 'Array32'; value: FixedBytes<32> };
|
|
954
950
|
|
|
951
|
+
export type StagingXcmV4AssetAssets = Array<StagingXcmV4Asset>;
|
|
952
|
+
|
|
953
|
+
export type StagingXcmV4Asset = { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetFungibility };
|
|
954
|
+
|
|
955
|
+
export type StagingXcmV4AssetAssetId = StagingXcmV4Location;
|
|
956
|
+
|
|
957
|
+
export type StagingXcmV4AssetFungibility =
|
|
958
|
+
| { type: 'Fungible'; value: bigint }
|
|
959
|
+
| { type: 'NonFungible'; value: StagingXcmV4AssetAssetInstance };
|
|
960
|
+
|
|
961
|
+
export type StagingXcmV4AssetAssetInstance =
|
|
962
|
+
| { type: 'Undefined' }
|
|
963
|
+
| { type: 'Index'; value: bigint }
|
|
964
|
+
| { type: 'Array4'; value: FixedBytes<4> }
|
|
965
|
+
| { type: 'Array8'; value: FixedBytes<8> }
|
|
966
|
+
| { type: 'Array16'; value: FixedBytes<16> }
|
|
967
|
+
| { type: 'Array32'; value: FixedBytes<32> };
|
|
968
|
+
|
|
955
969
|
export type XcmVersionedLocation =
|
|
956
|
-
| { type: 'V2'; value: XcmV2MultilocationMultiLocation }
|
|
957
970
|
| { type: 'V3'; value: StagingXcmV3MultilocationMultiLocation }
|
|
958
|
-
| { type: 'V4'; value: StagingXcmV4Location }
|
|
971
|
+
| { type: 'V4'; value: StagingXcmV4Location }
|
|
972
|
+
| { type: 'V5'; value: StagingXcmV5Location };
|
|
959
973
|
|
|
960
974
|
/**
|
|
961
975
|
* The `Event` enum of this pallet
|
|
@@ -975,7 +989,7 @@ export type CumulusPalletXcmEvent =
|
|
|
975
989
|
* Downward message executed with the given outcome.
|
|
976
990
|
* \[ id, outcome \]
|
|
977
991
|
**/
|
|
978
|
-
| { name: 'ExecutedDownward'; data: [FixedBytes<32>,
|
|
992
|
+
| { name: 'ExecutedDownward'; data: [FixedBytes<32>, StagingXcmV5TraitsOutcome] };
|
|
979
993
|
|
|
980
994
|
/**
|
|
981
995
|
* The `Event` enum of this pallet
|
|
@@ -3537,23 +3551,25 @@ export type PalletXcmQueryStatus =
|
|
|
3537
3551
|
| { type: 'Ready'; value: { response: XcmVersionedResponse; at: number } };
|
|
3538
3552
|
|
|
3539
3553
|
export type XcmVersionedResponse =
|
|
3540
|
-
| { type: 'V2'; value: XcmV2Response }
|
|
3541
3554
|
| { type: 'V3'; value: XcmV3Response }
|
|
3542
|
-
| { type: 'V4'; value: StagingXcmV4Response }
|
|
3555
|
+
| { type: 'V4'; value: StagingXcmV4Response }
|
|
3556
|
+
| { type: 'V5'; value: StagingXcmV5Response };
|
|
3543
3557
|
|
|
3544
|
-
export type
|
|
3558
|
+
export type XcmV3Response =
|
|
3545
3559
|
| { type: 'Null' }
|
|
3546
|
-
| { type: 'Assets'; value:
|
|
3547
|
-
| { type: 'ExecutionResult'; value?: [number,
|
|
3548
|
-
| { type: 'Version'; value: number }
|
|
3560
|
+
| { type: 'Assets'; value: XcmV3MultiassetMultiAssets }
|
|
3561
|
+
| { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
|
|
3562
|
+
| { type: 'Version'; value: number }
|
|
3563
|
+
| { type: 'PalletsInfo'; value: Array<XcmV3PalletInfo> }
|
|
3564
|
+
| { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
|
|
3549
3565
|
|
|
3550
|
-
export type
|
|
3566
|
+
export type XcmV3TraitsError =
|
|
3551
3567
|
| { type: 'Overflow' }
|
|
3552
3568
|
| { type: 'Unimplemented' }
|
|
3553
3569
|
| { type: 'UntrustedReserveLocation' }
|
|
3554
3570
|
| { type: 'UntrustedTeleportLocation' }
|
|
3555
|
-
| { type: '
|
|
3556
|
-
| { type: '
|
|
3571
|
+
| { type: 'LocationFull' }
|
|
3572
|
+
| { type: 'LocationNotInvertible' }
|
|
3557
3573
|
| { type: 'BadOrigin' }
|
|
3558
3574
|
| { type: 'InvalidLocation' }
|
|
3559
3575
|
| { type: 'AssetNotFound' }
|
|
@@ -3570,20 +3586,43 @@ export type XcmV2TraitsError =
|
|
|
3570
3586
|
| { type: 'NotHoldingFees' }
|
|
3571
3587
|
| { type: 'TooExpensive' }
|
|
3572
3588
|
| { type: 'Trap'; value: bigint }
|
|
3589
|
+
| { type: 'ExpectationFalse' }
|
|
3590
|
+
| { type: 'PalletNotFound' }
|
|
3591
|
+
| { type: 'NameMismatch' }
|
|
3592
|
+
| { type: 'VersionIncompatible' }
|
|
3593
|
+
| { type: 'HoldingWouldOverflow' }
|
|
3594
|
+
| { type: 'ExportError' }
|
|
3595
|
+
| { type: 'ReanchorFailed' }
|
|
3596
|
+
| { type: 'NoDeal' }
|
|
3597
|
+
| { type: 'FeesNotMet' }
|
|
3598
|
+
| { type: 'LockError' }
|
|
3599
|
+
| { type: 'NoPermission' }
|
|
3600
|
+
| { type: 'Unanchored' }
|
|
3601
|
+
| { type: 'NotDepositable' }
|
|
3573
3602
|
| { type: 'UnhandledXcmVersion' }
|
|
3574
|
-
| { type: 'WeightLimitReached'; value:
|
|
3603
|
+
| { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
|
|
3575
3604
|
| { type: 'Barrier' }
|
|
3576
|
-
| { type: 'WeightNotComputable' }
|
|
3605
|
+
| { type: 'WeightNotComputable' }
|
|
3606
|
+
| { type: 'ExceedsStackLimit' };
|
|
3577
3607
|
|
|
3578
|
-
export type
|
|
3608
|
+
export type XcmV3PalletInfo = {
|
|
3609
|
+
index: number;
|
|
3610
|
+
name: Bytes;
|
|
3611
|
+
moduleName: Bytes;
|
|
3612
|
+
major: number;
|
|
3613
|
+
minor: number;
|
|
3614
|
+
patch: number;
|
|
3615
|
+
};
|
|
3616
|
+
|
|
3617
|
+
export type StagingXcmV4Response =
|
|
3579
3618
|
| { type: 'Null' }
|
|
3580
|
-
| { type: 'Assets'; value:
|
|
3619
|
+
| { type: 'Assets'; value: StagingXcmV4AssetAssets }
|
|
3581
3620
|
| { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
|
|
3582
3621
|
| { type: 'Version'; value: number }
|
|
3583
|
-
| { type: 'PalletsInfo'; value: Array<
|
|
3622
|
+
| { type: 'PalletsInfo'; value: Array<StagingXcmV4PalletInfo> }
|
|
3584
3623
|
| { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
|
|
3585
3624
|
|
|
3586
|
-
export type
|
|
3625
|
+
export type StagingXcmV4PalletInfo = {
|
|
3587
3626
|
index: number;
|
|
3588
3627
|
name: Bytes;
|
|
3589
3628
|
moduleName: Bytes;
|
|
@@ -3600,7 +3639,8 @@ export type PalletXcmVersionMigrationStage =
|
|
|
3600
3639
|
|
|
3601
3640
|
export type XcmVersionedAssetId =
|
|
3602
3641
|
| { type: 'V3'; value: XcmV3MultiassetAssetId }
|
|
3603
|
-
| { type: 'V4'; value: StagingXcmV4AssetAssetId }
|
|
3642
|
+
| { type: 'V4'; value: StagingXcmV4AssetAssetId }
|
|
3643
|
+
| { type: 'V5'; value: StagingXcmV5AssetAssetId };
|
|
3604
3644
|
|
|
3605
3645
|
export type PalletXcmRemoteLockedFungibleRecord = {
|
|
3606
3646
|
amount: bigint;
|
|
@@ -3703,7 +3743,7 @@ export type PalletXcmCall =
|
|
|
3703
3743
|
* - `location`: The destination that is being described.
|
|
3704
3744
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
3705
3745
|
**/
|
|
3706
|
-
| { name: 'ForceXcmVersion'; params: { location:
|
|
3746
|
+
| { name: 'ForceXcmVersion'; params: { location: StagingXcmV5Location; version: number } }
|
|
3707
3747
|
/**
|
|
3708
3748
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
3709
3749
|
* version a destination can accept is unknown).
|
|
@@ -4015,7 +4055,7 @@ export type PalletXcmCallLike =
|
|
|
4015
4055
|
* - `location`: The destination that is being described.
|
|
4016
4056
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
4017
4057
|
**/
|
|
4018
|
-
| { name: 'ForceXcmVersion'; params: { location:
|
|
4058
|
+
| { name: 'ForceXcmVersion'; params: { location: StagingXcmV5Location; version: number } }
|
|
4019
4059
|
/**
|
|
4020
4060
|
* Set a safe XCM version (the version that XCM should be encoded with if the most recent
|
|
4021
4061
|
* version a destination can accept is unknown).
|
|
@@ -4237,93 +4277,9 @@ export type PalletXcmCallLike =
|
|
|
4237
4277
|
};
|
|
4238
4278
|
|
|
4239
4279
|
export type XcmVersionedXcm =
|
|
4240
|
-
| { type: 'V2'; value: XcmV2Xcm }
|
|
4241
4280
|
| { type: 'V3'; value: XcmV3Xcm }
|
|
4242
|
-
| { type: 'V4'; value: StagingXcmV4Xcm }
|
|
4243
|
-
|
|
4244
|
-
export type XcmV2Xcm = Array<XcmV2Instruction>;
|
|
4245
|
-
|
|
4246
|
-
export type XcmV2Instruction =
|
|
4247
|
-
| { type: 'WithdrawAsset'; value: XcmV2MultiassetMultiAssets }
|
|
4248
|
-
| { type: 'ReserveAssetDeposited'; value: XcmV2MultiassetMultiAssets }
|
|
4249
|
-
| { type: 'ReceiveTeleportedAsset'; value: XcmV2MultiassetMultiAssets }
|
|
4250
|
-
| { type: 'QueryResponse'; value: { queryId: bigint; response: XcmV2Response; maxWeight: bigint } }
|
|
4251
|
-
| {
|
|
4252
|
-
type: 'TransferAsset';
|
|
4253
|
-
value: { assets: XcmV2MultiassetMultiAssets; beneficiary: XcmV2MultilocationMultiLocation };
|
|
4254
|
-
}
|
|
4255
|
-
| {
|
|
4256
|
-
type: 'TransferReserveAsset';
|
|
4257
|
-
value: { assets: XcmV2MultiassetMultiAssets; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
|
|
4258
|
-
}
|
|
4259
|
-
| { type: 'Transact'; value: { originType: XcmV2OriginKind; requireWeightAtMost: bigint; call: XcmDoubleEncoded } }
|
|
4260
|
-
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
4261
|
-
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
4262
|
-
| { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
|
|
4263
|
-
| { type: 'ClearOrigin' }
|
|
4264
|
-
| { type: 'DescendOrigin'; value: XcmV2MultilocationJunctions }
|
|
4265
|
-
| {
|
|
4266
|
-
type: 'ReportError';
|
|
4267
|
-
value: { queryId: bigint; dest: XcmV2MultilocationMultiLocation; maxResponseWeight: bigint };
|
|
4268
|
-
}
|
|
4269
|
-
| {
|
|
4270
|
-
type: 'DepositAsset';
|
|
4271
|
-
value: {
|
|
4272
|
-
assets: XcmV2MultiassetMultiAssetFilter;
|
|
4273
|
-
maxAssets: number;
|
|
4274
|
-
beneficiary: XcmV2MultilocationMultiLocation;
|
|
4275
|
-
};
|
|
4276
|
-
}
|
|
4277
|
-
| {
|
|
4278
|
-
type: 'DepositReserveAsset';
|
|
4279
|
-
value: {
|
|
4280
|
-
assets: XcmV2MultiassetMultiAssetFilter;
|
|
4281
|
-
maxAssets: number;
|
|
4282
|
-
dest: XcmV2MultilocationMultiLocation;
|
|
4283
|
-
xcm: XcmV2Xcm;
|
|
4284
|
-
};
|
|
4285
|
-
}
|
|
4286
|
-
| { type: 'ExchangeAsset'; value: { give: XcmV2MultiassetMultiAssetFilter; receive: XcmV2MultiassetMultiAssets } }
|
|
4287
|
-
| {
|
|
4288
|
-
type: 'InitiateReserveWithdraw';
|
|
4289
|
-
value: { assets: XcmV2MultiassetMultiAssetFilter; reserve: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
|
|
4290
|
-
}
|
|
4291
|
-
| {
|
|
4292
|
-
type: 'InitiateTeleport';
|
|
4293
|
-
value: { assets: XcmV2MultiassetMultiAssetFilter; dest: XcmV2MultilocationMultiLocation; xcm: XcmV2Xcm };
|
|
4294
|
-
}
|
|
4295
|
-
| {
|
|
4296
|
-
type: 'QueryHolding';
|
|
4297
|
-
value: {
|
|
4298
|
-
queryId: bigint;
|
|
4299
|
-
dest: XcmV2MultilocationMultiLocation;
|
|
4300
|
-
assets: XcmV2MultiassetMultiAssetFilter;
|
|
4301
|
-
maxResponseWeight: bigint;
|
|
4302
|
-
};
|
|
4303
|
-
}
|
|
4304
|
-
| { type: 'BuyExecution'; value: { fees: XcmV2MultiassetMultiAsset; weightLimit: XcmV2WeightLimit } }
|
|
4305
|
-
| { type: 'RefundSurplus' }
|
|
4306
|
-
| { type: 'SetErrorHandler'; value: XcmV2Xcm }
|
|
4307
|
-
| { type: 'SetAppendix'; value: XcmV2Xcm }
|
|
4308
|
-
| { type: 'ClearError' }
|
|
4309
|
-
| { type: 'ClaimAsset'; value: { assets: XcmV2MultiassetMultiAssets; ticket: XcmV2MultilocationMultiLocation } }
|
|
4310
|
-
| { type: 'Trap'; value: bigint }
|
|
4311
|
-
| { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } }
|
|
4312
|
-
| { type: 'UnsubscribeVersion' };
|
|
4313
|
-
|
|
4314
|
-
export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
|
4315
|
-
|
|
4316
|
-
export type XcmV2MultiassetMultiAssetFilter =
|
|
4317
|
-
| { type: 'Definite'; value: XcmV2MultiassetMultiAssets }
|
|
4318
|
-
| { type: 'Wild'; value: XcmV2MultiassetWildMultiAsset };
|
|
4319
|
-
|
|
4320
|
-
export type XcmV2MultiassetWildMultiAsset =
|
|
4321
|
-
| { type: 'All' }
|
|
4322
|
-
| { type: 'AllOf'; value: { id: XcmV2MultiassetAssetId; fun: XcmV2MultiassetWildFungibility } };
|
|
4323
|
-
|
|
4324
|
-
export type XcmV2MultiassetWildFungibility = 'Fungible' | 'NonFungible';
|
|
4325
|
-
|
|
4326
|
-
export type XcmV2WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: bigint };
|
|
4281
|
+
| { type: 'V4'; value: StagingXcmV4Xcm }
|
|
4282
|
+
| { type: 'V5'; value: StagingXcmV5Xcm };
|
|
4327
4283
|
|
|
4328
4284
|
export type XcmV3Xcm = Array<XcmV3Instruction>;
|
|
4329
4285
|
|
|
@@ -4446,6 +4402,117 @@ export type XcmV3MultiassetWildMultiAsset =
|
|
|
4446
4402
|
|
|
4447
4403
|
export type XcmV3MultiassetWildFungibility = 'Fungible' | 'NonFungible';
|
|
4448
4404
|
|
|
4405
|
+
export type StagingXcmV4Xcm = Array<StagingXcmV4Instruction>;
|
|
4406
|
+
|
|
4407
|
+
export type StagingXcmV4Instruction =
|
|
4408
|
+
| { type: 'WithdrawAsset'; value: StagingXcmV4AssetAssets }
|
|
4409
|
+
| { type: 'ReserveAssetDeposited'; value: StagingXcmV4AssetAssets }
|
|
4410
|
+
| { type: 'ReceiveTeleportedAsset'; value: StagingXcmV4AssetAssets }
|
|
4411
|
+
| {
|
|
4412
|
+
type: 'QueryResponse';
|
|
4413
|
+
value: {
|
|
4414
|
+
queryId: bigint;
|
|
4415
|
+
response: StagingXcmV4Response;
|
|
4416
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
4417
|
+
querier?: StagingXcmV4Location | undefined;
|
|
4418
|
+
};
|
|
4419
|
+
}
|
|
4420
|
+
| { type: 'TransferAsset'; value: { assets: StagingXcmV4AssetAssets; beneficiary: StagingXcmV4Location } }
|
|
4421
|
+
| {
|
|
4422
|
+
type: 'TransferReserveAsset';
|
|
4423
|
+
value: { assets: StagingXcmV4AssetAssets; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
|
|
4424
|
+
}
|
|
4425
|
+
| {
|
|
4426
|
+
type: 'Transact';
|
|
4427
|
+
value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
|
|
4428
|
+
}
|
|
4429
|
+
| { type: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
4430
|
+
| { type: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
4431
|
+
| { type: 'HrmpChannelClosing'; value: { initiator: number; sender: number; recipient: number } }
|
|
4432
|
+
| { type: 'ClearOrigin' }
|
|
4433
|
+
| { type: 'DescendOrigin'; value: StagingXcmV4Junctions }
|
|
4434
|
+
| { type: 'ReportError'; value: StagingXcmV4QueryResponseInfo }
|
|
4435
|
+
| { type: 'DepositAsset'; value: { assets: StagingXcmV4AssetAssetFilter; beneficiary: StagingXcmV4Location } }
|
|
4436
|
+
| {
|
|
4437
|
+
type: 'DepositReserveAsset';
|
|
4438
|
+
value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
|
|
4439
|
+
}
|
|
4440
|
+
| {
|
|
4441
|
+
type: 'ExchangeAsset';
|
|
4442
|
+
value: { give: StagingXcmV4AssetAssetFilter; want: StagingXcmV4AssetAssets; maximal: boolean };
|
|
4443
|
+
}
|
|
4444
|
+
| {
|
|
4445
|
+
type: 'InitiateReserveWithdraw';
|
|
4446
|
+
value: { assets: StagingXcmV4AssetAssetFilter; reserve: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
|
|
4447
|
+
}
|
|
4448
|
+
| {
|
|
4449
|
+
type: 'InitiateTeleport';
|
|
4450
|
+
value: { assets: StagingXcmV4AssetAssetFilter; dest: StagingXcmV4Location; xcm: StagingXcmV4Xcm };
|
|
4451
|
+
}
|
|
4452
|
+
| {
|
|
4453
|
+
type: 'ReportHolding';
|
|
4454
|
+
value: { responseInfo: StagingXcmV4QueryResponseInfo; assets: StagingXcmV4AssetAssetFilter };
|
|
4455
|
+
}
|
|
4456
|
+
| { type: 'BuyExecution'; value: { fees: StagingXcmV4Asset; weightLimit: XcmV3WeightLimit } }
|
|
4457
|
+
| { type: 'RefundSurplus' }
|
|
4458
|
+
| { type: 'SetErrorHandler'; value: StagingXcmV4Xcm }
|
|
4459
|
+
| { type: 'SetAppendix'; value: StagingXcmV4Xcm }
|
|
4460
|
+
| { type: 'ClearError' }
|
|
4461
|
+
| { type: 'ClaimAsset'; value: { assets: StagingXcmV4AssetAssets; ticket: StagingXcmV4Location } }
|
|
4462
|
+
| { type: 'Trap'; value: bigint }
|
|
4463
|
+
| { type: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: SpWeightsWeightV2Weight } }
|
|
4464
|
+
| { type: 'UnsubscribeVersion' }
|
|
4465
|
+
| { type: 'BurnAsset'; value: StagingXcmV4AssetAssets }
|
|
4466
|
+
| { type: 'ExpectAsset'; value: StagingXcmV4AssetAssets }
|
|
4467
|
+
| { type: 'ExpectOrigin'; value?: StagingXcmV4Location | undefined }
|
|
4468
|
+
| { type: 'ExpectError'; value?: [number, XcmV3TraitsError] | undefined }
|
|
4469
|
+
| { type: 'ExpectTransactStatus'; value: XcmV3MaybeErrorCode }
|
|
4470
|
+
| { type: 'QueryPallet'; value: { moduleName: Bytes; responseInfo: StagingXcmV4QueryResponseInfo } }
|
|
4471
|
+
| {
|
|
4472
|
+
type: 'ExpectPallet';
|
|
4473
|
+
value: { index: number; name: Bytes; moduleName: Bytes; crateMajor: number; minCrateMinor: number };
|
|
4474
|
+
}
|
|
4475
|
+
| { type: 'ReportTransactStatus'; value: StagingXcmV4QueryResponseInfo }
|
|
4476
|
+
| { type: 'ClearTransactStatus' }
|
|
4477
|
+
| { type: 'UniversalOrigin'; value: StagingXcmV4Junction }
|
|
4478
|
+
| {
|
|
4479
|
+
type: 'ExportMessage';
|
|
4480
|
+
value: { network: StagingXcmV4JunctionNetworkId; destination: StagingXcmV4Junctions; xcm: StagingXcmV4Xcm };
|
|
4481
|
+
}
|
|
4482
|
+
| { type: 'LockAsset'; value: { asset: StagingXcmV4Asset; unlocker: StagingXcmV4Location } }
|
|
4483
|
+
| { type: 'UnlockAsset'; value: { asset: StagingXcmV4Asset; target: StagingXcmV4Location } }
|
|
4484
|
+
| { type: 'NoteUnlockable'; value: { asset: StagingXcmV4Asset; owner: StagingXcmV4Location } }
|
|
4485
|
+
| { type: 'RequestUnlock'; value: { asset: StagingXcmV4Asset; locker: StagingXcmV4Location } }
|
|
4486
|
+
| { type: 'SetFeesMode'; value: { jitWithdraw: boolean } }
|
|
4487
|
+
| { type: 'SetTopic'; value: FixedBytes<32> }
|
|
4488
|
+
| { type: 'ClearTopic' }
|
|
4489
|
+
| { type: 'AliasOrigin'; value: StagingXcmV4Location }
|
|
4490
|
+
| {
|
|
4491
|
+
type: 'UnpaidExecution';
|
|
4492
|
+
value: { weightLimit: XcmV3WeightLimit; checkOrigin?: StagingXcmV4Location | undefined };
|
|
4493
|
+
};
|
|
4494
|
+
|
|
4495
|
+
export type StagingXcmV4QueryResponseInfo = {
|
|
4496
|
+
destination: StagingXcmV4Location;
|
|
4497
|
+
queryId: bigint;
|
|
4498
|
+
maxWeight: SpWeightsWeightV2Weight;
|
|
4499
|
+
};
|
|
4500
|
+
|
|
4501
|
+
export type StagingXcmV4AssetAssetFilter =
|
|
4502
|
+
| { type: 'Definite'; value: StagingXcmV4AssetAssets }
|
|
4503
|
+
| { type: 'Wild'; value: StagingXcmV4AssetWildAsset };
|
|
4504
|
+
|
|
4505
|
+
export type StagingXcmV4AssetWildAsset =
|
|
4506
|
+
| { type: 'All' }
|
|
4507
|
+
| { type: 'AllOf'; value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility } }
|
|
4508
|
+
| { type: 'AllCounted'; value: number }
|
|
4509
|
+
| {
|
|
4510
|
+
type: 'AllOfCounted';
|
|
4511
|
+
value: { id: StagingXcmV4AssetAssetId; fun: StagingXcmV4AssetWildFungibility; count: number };
|
|
4512
|
+
};
|
|
4513
|
+
|
|
4514
|
+
export type StagingXcmV4AssetWildFungibility = 'Fungible' | 'NonFungible';
|
|
4515
|
+
|
|
4449
4516
|
export type StagingXcmExecutorAssetTransferTransferType =
|
|
4450
4517
|
| { type: 'Teleport' }
|
|
4451
4518
|
| { type: 'LocalReserve' }
|
|
@@ -11757,8 +11824,7 @@ export type PalletStateTrieMigrationProgress =
|
|
|
11757
11824
|
export type AssetHubPolkadotRuntimeOriginCaller =
|
|
11758
11825
|
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
11759
11826
|
| { type: 'PolkadotXcm'; value: PalletXcmOrigin }
|
|
11760
|
-
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin }
|
|
11761
|
-
| { type: 'Void'; value: SpCoreVoid };
|
|
11827
|
+
| { type: 'CumulusXcm'; value: CumulusPalletXcmOrigin };
|
|
11762
11828
|
|
|
11763
11829
|
export type FrameSupportDispatchRawOrigin =
|
|
11764
11830
|
| { type: 'Root' }
|
|
@@ -11766,15 +11832,13 @@ export type FrameSupportDispatchRawOrigin =
|
|
|
11766
11832
|
| { type: 'None' };
|
|
11767
11833
|
|
|
11768
11834
|
export type PalletXcmOrigin =
|
|
11769
|
-
| { type: 'Xcm'; value:
|
|
11770
|
-
| { type: 'Response'; value:
|
|
11835
|
+
| { type: 'Xcm'; value: StagingXcmV5Location }
|
|
11836
|
+
| { type: 'Response'; value: StagingXcmV5Location };
|
|
11771
11837
|
|
|
11772
11838
|
export type CumulusPalletXcmOrigin =
|
|
11773
11839
|
| { type: 'Relay' }
|
|
11774
11840
|
| { type: 'SiblingParachain'; value: PolkadotParachainPrimitivesPrimitivesId };
|
|
11775
11841
|
|
|
11776
|
-
export type SpCoreVoid = null;
|
|
11777
|
-
|
|
11778
11842
|
/**
|
|
11779
11843
|
* The `Error` enum of this pallet.
|
|
11780
11844
|
**/
|
|
@@ -12510,7 +12574,9 @@ export type SpRuntimeTransactionValidityInvalidTransaction =
|
|
|
12510
12574
|
| { type: 'Custom'; value: number }
|
|
12511
12575
|
| { type: 'BadMandatory' }
|
|
12512
12576
|
| { type: 'MandatoryValidation' }
|
|
12513
|
-
| { type: 'BadSigner' }
|
|
12577
|
+
| { type: 'BadSigner' }
|
|
12578
|
+
| { type: 'IndeterminateImplicit' }
|
|
12579
|
+
| { type: 'UnknownOrigin' };
|
|
12514
12580
|
|
|
12515
12581
|
export type SpRuntimeTransactionValidityUnknownTransaction =
|
|
12516
12582
|
| { type: 'CannotLookup' }
|
|
@@ -12572,7 +12638,7 @@ export type SpRuntimeDispatchErrorWithPostInfo = {
|
|
|
12572
12638
|
export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
|
|
12573
12639
|
|
|
12574
12640
|
export type XcmRuntimeApisDryRunXcmDryRunEffects = {
|
|
12575
|
-
executionResult:
|
|
12641
|
+
executionResult: StagingXcmV5TraitsOutcome;
|
|
12576
12642
|
emittedEvents: Array<AssetHubPolkadotRuntimeRuntimeEvent>;
|
|
12577
12643
|
forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
|
|
12578
12644
|
};
|