@dedot/chaintypes 0.115.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.116.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "5f5ba147e71282d26c91eae6ce592f04dfeba75a",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type { DispatchError, AccountId32, H256, FixedBytes, FixedU128, Result, Bytes, Permill } from 'dedot/codecs';
|
|
4
5
|
import type {
|
|
5
|
-
|
|
6
|
-
DispatchError,
|
|
7
|
-
AccountId32,
|
|
8
|
-
H256,
|
|
9
|
-
FixedBytes,
|
|
10
|
-
FixedU128,
|
|
11
|
-
Result,
|
|
12
|
-
Bytes,
|
|
13
|
-
Permill,
|
|
14
|
-
} from 'dedot/codecs';
|
|
15
|
-
import type {
|
|
6
|
+
FrameSystemDispatchEventInfo,
|
|
16
7
|
SpWeightsWeightV2Weight,
|
|
17
8
|
FrameSupportTokensMiscBalanceStatus,
|
|
18
9
|
StagingXcmV4Location,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
StagingXcmV5TraitsOutcome,
|
|
11
|
+
StagingXcmV5Location,
|
|
12
|
+
StagingXcmV5Xcm,
|
|
13
|
+
StagingXcmV5Response,
|
|
22
14
|
XcmVersionedAssets,
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
StagingXcmV5AssetAssets,
|
|
16
|
+
XcmV5TraitsError,
|
|
25
17
|
XcmVersionedLocation,
|
|
26
18
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
27
19
|
FrameSupportMessagesProcessMessageError,
|
|
@@ -42,7 +34,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
42
34
|
/**
|
|
43
35
|
* An extrinsic completed successfully.
|
|
44
36
|
**/
|
|
45
|
-
ExtrinsicSuccess: GenericPalletEvent<
|
|
37
|
+
ExtrinsicSuccess: GenericPalletEvent<
|
|
38
|
+
Rv,
|
|
39
|
+
'System',
|
|
40
|
+
'ExtrinsicSuccess',
|
|
41
|
+
{ dispatchInfo: FrameSystemDispatchEventInfo }
|
|
42
|
+
>;
|
|
46
43
|
|
|
47
44
|
/**
|
|
48
45
|
* An extrinsic failed.
|
|
@@ -51,7 +48,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
51
48
|
Rv,
|
|
52
49
|
'System',
|
|
53
50
|
'ExtrinsicFailed',
|
|
54
|
-
{ dispatchError: DispatchError; dispatchInfo:
|
|
51
|
+
{ dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo }
|
|
55
52
|
>;
|
|
56
53
|
|
|
57
54
|
/**
|
|
@@ -455,7 +452,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
455
452
|
/**
|
|
456
453
|
* Execution of an XCM message was attempted.
|
|
457
454
|
**/
|
|
458
|
-
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome:
|
|
455
|
+
Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
|
|
459
456
|
|
|
460
457
|
/**
|
|
461
458
|
* A XCM message was sent.
|
|
@@ -465,9 +462,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
465
462
|
'PolkadotXcm',
|
|
466
463
|
'Sent',
|
|
467
464
|
{
|
|
468
|
-
origin:
|
|
469
|
-
destination:
|
|
470
|
-
message:
|
|
465
|
+
origin: StagingXcmV5Location;
|
|
466
|
+
destination: StagingXcmV5Location;
|
|
467
|
+
message: StagingXcmV5Xcm;
|
|
471
468
|
messageId: FixedBytes<32>;
|
|
472
469
|
}
|
|
473
470
|
>;
|
|
@@ -481,7 +478,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
481
478
|
Rv,
|
|
482
479
|
'PolkadotXcm',
|
|
483
480
|
'UnexpectedResponse',
|
|
484
|
-
{ origin:
|
|
481
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
485
482
|
>;
|
|
486
483
|
|
|
487
484
|
/**
|
|
@@ -492,7 +489,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
492
489
|
Rv,
|
|
493
490
|
'PolkadotXcm',
|
|
494
491
|
'ResponseReady',
|
|
495
|
-
{ queryId: bigint; response:
|
|
492
|
+
{ queryId: bigint; response: StagingXcmV5Response }
|
|
496
493
|
>;
|
|
497
494
|
|
|
498
495
|
/**
|
|
@@ -556,7 +553,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
556
553
|
Rv,
|
|
557
554
|
'PolkadotXcm',
|
|
558
555
|
'InvalidResponder',
|
|
559
|
-
{ origin:
|
|
556
|
+
{ origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined }
|
|
560
557
|
>;
|
|
561
558
|
|
|
562
559
|
/**
|
|
@@ -572,7 +569,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
572
569
|
Rv,
|
|
573
570
|
'PolkadotXcm',
|
|
574
571
|
'InvalidResponderVersion',
|
|
575
|
-
{ origin:
|
|
572
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
576
573
|
>;
|
|
577
574
|
|
|
578
575
|
/**
|
|
@@ -587,7 +584,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
587
584
|
Rv,
|
|
588
585
|
'PolkadotXcm',
|
|
589
586
|
'AssetsTrapped',
|
|
590
|
-
{ hash: H256; origin:
|
|
587
|
+
{ hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
|
|
591
588
|
>;
|
|
592
589
|
|
|
593
590
|
/**
|
|
@@ -599,7 +596,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
599
596
|
Rv,
|
|
600
597
|
'PolkadotXcm',
|
|
601
598
|
'VersionChangeNotified',
|
|
602
|
-
{ destination:
|
|
599
|
+
{ destination: StagingXcmV5Location; result: number; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
603
600
|
>;
|
|
604
601
|
|
|
605
602
|
/**
|
|
@@ -610,7 +607,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
610
607
|
Rv,
|
|
611
608
|
'PolkadotXcm',
|
|
612
609
|
'SupportedVersionChanged',
|
|
613
|
-
{ location:
|
|
610
|
+
{ location: StagingXcmV5Location; version: number }
|
|
614
611
|
>;
|
|
615
612
|
|
|
616
613
|
/**
|
|
@@ -621,7 +618,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
621
618
|
Rv,
|
|
622
619
|
'PolkadotXcm',
|
|
623
620
|
'NotifyTargetSendFail',
|
|
624
|
-
{ location:
|
|
621
|
+
{ location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError }
|
|
625
622
|
>;
|
|
626
623
|
|
|
627
624
|
/**
|
|
@@ -648,7 +645,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
648
645
|
Rv,
|
|
649
646
|
'PolkadotXcm',
|
|
650
647
|
'InvalidQuerierVersion',
|
|
651
|
-
{ origin:
|
|
648
|
+
{ origin: StagingXcmV5Location; queryId: bigint }
|
|
652
649
|
>;
|
|
653
650
|
|
|
654
651
|
/**
|
|
@@ -661,10 +658,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
661
658
|
'PolkadotXcm',
|
|
662
659
|
'InvalidQuerier',
|
|
663
660
|
{
|
|
664
|
-
origin:
|
|
661
|
+
origin: StagingXcmV5Location;
|
|
665
662
|
queryId: bigint;
|
|
666
|
-
expectedQuerier:
|
|
667
|
-
maybeActualQuerier?:
|
|
663
|
+
expectedQuerier: StagingXcmV5Location;
|
|
664
|
+
maybeActualQuerier?: StagingXcmV5Location | undefined;
|
|
668
665
|
}
|
|
669
666
|
>;
|
|
670
667
|
|
|
@@ -676,7 +673,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
676
673
|
Rv,
|
|
677
674
|
'PolkadotXcm',
|
|
678
675
|
'VersionNotifyStarted',
|
|
679
|
-
{ destination:
|
|
676
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
680
677
|
>;
|
|
681
678
|
|
|
682
679
|
/**
|
|
@@ -686,7 +683,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
686
683
|
Rv,
|
|
687
684
|
'PolkadotXcm',
|
|
688
685
|
'VersionNotifyRequested',
|
|
689
|
-
{ destination:
|
|
686
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
690
687
|
>;
|
|
691
688
|
|
|
692
689
|
/**
|
|
@@ -697,7 +694,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
697
694
|
Rv,
|
|
698
695
|
'PolkadotXcm',
|
|
699
696
|
'VersionNotifyUnrequested',
|
|
700
|
-
{ destination:
|
|
697
|
+
{ destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
|
|
701
698
|
>;
|
|
702
699
|
|
|
703
700
|
/**
|
|
@@ -707,7 +704,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
707
704
|
Rv,
|
|
708
705
|
'PolkadotXcm',
|
|
709
706
|
'FeesPaid',
|
|
710
|
-
{ paying:
|
|
707
|
+
{ paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets }
|
|
711
708
|
>;
|
|
712
709
|
|
|
713
710
|
/**
|
|
@@ -717,7 +714,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
717
714
|
Rv,
|
|
718
715
|
'PolkadotXcm',
|
|
719
716
|
'AssetsClaimed',
|
|
720
|
-
{ hash: H256; origin:
|
|
717
|
+
{ hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
|
|
721
718
|
>;
|
|
722
719
|
|
|
723
720
|
/**
|
|
@@ -754,7 +751,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
754
751
|
Rv,
|
|
755
752
|
'CumulusXcm',
|
|
756
753
|
'ExecutedDownward',
|
|
757
|
-
[FixedBytes<32>,
|
|
754
|
+
[FixedBytes<32>, StagingXcmV5TraitsOutcome]
|
|
758
755
|
>;
|
|
759
756
|
|
|
760
757
|
/**
|
|
@@ -23,7 +23,7 @@ export interface VersionedPaseoAssetHubApi<Rv extends RpcVersion> extends Generi
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: PaseoAssetHubApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1005001
|
|
27
27
|
**/
|
|
28
28
|
export interface PaseoAssetHubApi {
|
|
29
29
|
legacy: VersionedPaseoAssetHubApi<RpcLegacy>;
|
|
@@ -50,7 +50,7 @@ import type {
|
|
|
50
50
|
PalletXcmVersionMigrationStage,
|
|
51
51
|
PalletXcmRemoteLockedFungibleRecord,
|
|
52
52
|
XcmVersionedAssetId,
|
|
53
|
-
|
|
53
|
+
StagingXcmV5Xcm,
|
|
54
54
|
BpXcmBridgeHubRouterBridgeState,
|
|
55
55
|
PalletMessageQueueBookState,
|
|
56
56
|
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
@@ -1097,9 +1097,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1097
1097
|
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
1098
1098
|
* implementation in the XCM executor configuration.
|
|
1099
1099
|
*
|
|
1100
|
-
* @param {Callback<
|
|
1100
|
+
* @param {Callback<StagingXcmV5Xcm | undefined> =} callback
|
|
1101
1101
|
**/
|
|
1102
|
-
recordedXcm: GenericStorageQuery<Rv, () =>
|
|
1102
|
+
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
|
|
1103
1103
|
|
|
1104
1104
|
/**
|
|
1105
1105
|
* Generic pallet storage query
|
|
@@ -609,9 +609,10 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
609
609
|
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
|
|
610
610
|
* storage.
|
|
611
611
|
*
|
|
612
|
-
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
613
|
-
*
|
|
614
|
-
* deserialization fails, an error
|
|
612
|
+
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
613
|
+
* `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
|
|
614
|
+
* provided JSON blob is incorrect or incomplete or the deserialization fails, an error
|
|
615
|
+
* is returned.
|
|
615
616
|
*
|
|
616
617
|
* Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
|
|
617
618
|
* defaults will be used.
|
|
@@ -625,7 +626,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
625
626
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
626
627
|
* `id`.
|
|
627
628
|
*
|
|
628
|
-
* If `id` is `None` the function
|
|
629
|
+
* If `id` is `None` the function should return JSON blob representation of the default
|
|
629
630
|
* `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
|
|
630
631
|
* `RuntimeGenesisConfig`.
|
|
631
632
|
*
|
package/paseo-asset-hub/tx.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import type {
|
|
|
23
23
|
XcmVersionedXcm,
|
|
24
24
|
XcmVersionedAssets,
|
|
25
25
|
SpWeightsWeightV2Weight,
|
|
26
|
-
|
|
26
|
+
StagingXcmV5Location,
|
|
27
27
|
XcmV3WeightLimit,
|
|
28
28
|
StagingXcmExecutorAssetTransferTransferType,
|
|
29
29
|
XcmVersionedAssetId,
|
|
@@ -44,6 +44,7 @@ import type {
|
|
|
44
44
|
PalletNftsPriceWithDirection,
|
|
45
45
|
PalletNftsPreSignedMint,
|
|
46
46
|
PalletNftsPreSignedAttributes,
|
|
47
|
+
StagingXcmV4Location,
|
|
47
48
|
PalletStateTrieMigrationMigrationLimits,
|
|
48
49
|
PalletStateTrieMigrationMigrationTask,
|
|
49
50
|
PalletStateTrieMigrationProgress,
|
|
@@ -1472,13 +1473,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1472
1473
|
* - `location`: The destination that is being described.
|
|
1473
1474
|
* - `xcm_version`: The latest version of XCM that `location` supports.
|
|
1474
1475
|
*
|
|
1475
|
-
* @param {
|
|
1476
|
+
* @param {StagingXcmV5Location} location
|
|
1476
1477
|
* @param {number} version
|
|
1477
1478
|
**/
|
|
1478
1479
|
forceXcmVersion: GenericTxCall<
|
|
1479
1480
|
Rv,
|
|
1480
1481
|
(
|
|
1481
|
-
location:
|
|
1482
|
+
location: StagingXcmV5Location,
|
|
1482
1483
|
version: number,
|
|
1483
1484
|
) => ChainSubmittableExtrinsic<
|
|
1484
1485
|
Rv,
|
|
@@ -1486,7 +1487,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
1486
1487
|
pallet: 'PolkadotXcm';
|
|
1487
1488
|
palletCall: {
|
|
1488
1489
|
name: 'ForceXcmVersion';
|
|
1489
|
-
params: { location:
|
|
1490
|
+
params: { location: StagingXcmV5Location; version: number };
|
|
1490
1491
|
};
|
|
1491
1492
|
}
|
|
1492
1493
|
>
|
|
@@ -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:
|
|
83
|
+
| { name: 'ExtrinsicSuccess'; data: { dispatchInfo: FrameSystemDispatchEventInfo } }
|
|
85
84
|
/**
|
|
86
85
|
* An extrinsic failed.
|
|
87
86
|
**/
|
|
88
|
-
| { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; 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:
|
|
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:
|
|
426
|
-
destination:
|
|
427
|
-
message:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
529
|
+
destination: StagingXcmV5Location;
|
|
509
530
|
result: number;
|
|
510
|
-
cost:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
568
|
+
origin: StagingXcmV5Location;
|
|
548
569
|
queryId: bigint;
|
|
549
|
-
expectedQuerier:
|
|
550
|
-
maybeActualQuerier?:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
610
|
+
export type StagingXcmV5TraitsOutcome =
|
|
590
611
|
| { type: 'Complete'; value: { used: SpWeightsWeightV2Weight } }
|
|
591
|
-
| { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error:
|
|
592
|
-
| { type: 'Error'; value: { error:
|
|
612
|
+
| { type: 'Incomplete'; value: { used: SpWeightsWeightV2Weight; error: XcmV5TraitsError } }
|
|
613
|
+
| { type: 'Error'; value: { error: XcmV5TraitsError } };
|
|
593
614
|
|
|
594
|
-
export type
|
|
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
|
|
658
|
+
export type StagingXcmV5Location = { parents: number; interior: StagingXcmV5Junctions };
|
|
637
659
|
|
|
638
|
-
export type
|
|
639
|
-
| { type: '
|
|
640
|
-
| { type: '
|
|
641
|
-
| { type: '
|
|
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:
|
|
703
|
+
response: StagingXcmV5Response;
|
|
647
704
|
maxWeight: SpWeightsWeightV2Weight;
|
|
648
|
-
querier?:
|
|
705
|
+
querier?: StagingXcmV5Location | undefined;
|
|
649
706
|
};
|
|
650
707
|
}
|
|
651
|
-
| { type: 'TransferAsset'; value: { assets:
|
|
708
|
+
| { type: 'TransferAsset'; value: { assets: StagingXcmV5AssetAssets; beneficiary: StagingXcmV5Location } }
|
|
652
709
|
| {
|
|
653
710
|
type: 'TransferReserveAsset';
|
|
654
|
-
value: { assets:
|
|
711
|
+
value: { assets: StagingXcmV5AssetAssets; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
655
712
|
}
|
|
656
713
|
| {
|
|
657
714
|
type: 'Transact';
|
|
658
|
-
value: {
|
|
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:
|
|
665
|
-
| { type: 'ReportError'; value:
|
|
666
|
-
| { type: 'DepositAsset'; value: { assets:
|
|
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:
|
|
730
|
+
value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
670
731
|
}
|
|
671
732
|
| {
|
|
672
733
|
type: 'ExchangeAsset';
|
|
673
|
-
value: { give:
|
|
734
|
+
value: { give: StagingXcmV5AssetAssetFilter; want: StagingXcmV5AssetAssets; maximal: boolean };
|
|
674
735
|
}
|
|
675
736
|
| {
|
|
676
737
|
type: 'InitiateReserveWithdraw';
|
|
677
|
-
value: { assets:
|
|
738
|
+
value: { assets: StagingXcmV5AssetAssetFilter; reserve: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
678
739
|
}
|
|
679
740
|
| {
|
|
680
741
|
type: 'InitiateTeleport';
|
|
681
|
-
value: { assets:
|
|
742
|
+
value: { assets: StagingXcmV5AssetAssetFilter; dest: StagingXcmV5Location; xcm: StagingXcmV5Xcm };
|
|
682
743
|
}
|
|
683
744
|
| {
|
|
684
745
|
type: 'ReportHolding';
|
|
685
|
-
value: { responseInfo:
|
|
746
|
+
value: { responseInfo: StagingXcmV5QueryResponseInfo; assets: StagingXcmV5AssetAssetFilter };
|
|
686
747
|
}
|
|
687
|
-
| { type: 'BuyExecution'; value: { fees:
|
|
748
|
+
| { type: 'BuyExecution'; value: { fees: StagingXcmV5Asset; weightLimit: XcmV3WeightLimit } }
|
|
688
749
|
| { type: 'RefundSurplus' }
|
|
689
|
-
| { type: 'SetErrorHandler'; value:
|
|
690
|
-
| { type: 'SetAppendix'; value:
|
|
750
|
+
| { type: 'SetErrorHandler'; value: StagingXcmV5Xcm }
|
|
751
|
+
| { type: 'SetAppendix'; value: StagingXcmV5Xcm }
|
|
691
752
|
| { type: 'ClearError' }
|
|
692
|
-
| { type: 'ClaimAsset'; value: { assets:
|
|
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:
|
|
697
|
-
| { type: 'ExpectAsset'; value:
|
|
698
|
-
| { type: 'ExpectOrigin'; value?:
|
|
699
|
-
| { type: 'ExpectError'; value?: [number,
|
|
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:
|
|
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:
|
|
767
|
+
| { type: 'ReportTransactStatus'; value: StagingXcmV5QueryResponseInfo }
|
|
707
768
|
| { type: 'ClearTransactStatus' }
|
|
708
|
-
| { type: 'UniversalOrigin'; value:
|
|
769
|
+
| { type: 'UniversalOrigin'; value: StagingXcmV5Junction }
|
|
709
770
|
| {
|
|
710
771
|
type: 'ExportMessage';
|
|
711
|
-
value: { network:
|
|
772
|
+
value: { network: StagingXcmV5JunctionNetworkId; destination: StagingXcmV5Junctions; xcm: StagingXcmV5Xcm };
|
|
712
773
|
}
|
|
713
|
-
| { type: 'LockAsset'; value: { asset:
|
|
714
|
-
| { type: 'UnlockAsset'; value: { asset:
|
|
715
|
-
| { type: 'NoteUnlockable'; value: { asset:
|
|
716
|
-
| { type: 'RequestUnlock'; value: { asset:
|
|
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:
|
|
781
|
+
| { type: 'AliasOrigin'; value: StagingXcmV5Location }
|
|
721
782
|
| {
|
|
722
783
|
type: 'UnpaidExecution';
|
|
723
|
-
value: { weightLimit: XcmV3WeightLimit; checkOrigin?:
|
|
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
|
|
800
|
+
export type StagingXcmV5AssetAssets = Array<StagingXcmV5Asset>;
|
|
727
801
|
|
|
728
|
-
export type
|
|
802
|
+
export type StagingXcmV5Asset = { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetFungibility };
|
|
729
803
|
|
|
730
|
-
export type
|
|
804
|
+
export type StagingXcmV5AssetAssetId = StagingXcmV5Location;
|
|
731
805
|
|
|
732
|
-
export type
|
|
806
|
+
export type StagingXcmV5AssetFungibility =
|
|
733
807
|
| { type: 'Fungible'; value: bigint }
|
|
734
|
-
| { type: 'NonFungible'; value:
|
|
808
|
+
| { type: 'NonFungible'; value: StagingXcmV5AssetAssetInstance };
|
|
735
809
|
|
|
736
|
-
export type
|
|
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
|
|
818
|
+
export type StagingXcmV5Response =
|
|
745
819
|
| { type: 'Null' }
|
|
746
|
-
| { type: 'Assets'; value:
|
|
747
|
-
| { type: 'ExecutionResult'; value?: [number,
|
|
820
|
+
| { type: 'Assets'; value: StagingXcmV5AssetAssets }
|
|
821
|
+
| { type: 'ExecutionResult'; value?: [number, XcmV5TraitsError] | undefined }
|
|
748
822
|
| { type: 'Version'; value: number }
|
|
749
|
-
| { type: 'PalletsInfo'; value: Array<
|
|
823
|
+
| { type: 'PalletsInfo'; value: Array<StagingXcmV5PalletInfo> }
|
|
750
824
|
| { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
|
|
751
825
|
|
|
752
|
-
export type
|
|
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
|
|
771
|
-
destination:
|
|
844
|
+
export type StagingXcmV5QueryResponseInfo = {
|
|
845
|
+
destination: StagingXcmV5Location;
|
|
772
846
|
queryId: bigint;
|
|
773
847
|
maxWeight: SpWeightsWeightV2Weight;
|
|
774
848
|
};
|
|
775
849
|
|
|
776
|
-
export type
|
|
777
|
-
| { type: 'Definite'; value:
|
|
778
|
-
| { type: 'Wild'; value:
|
|
850
|
+
export type StagingXcmV5AssetAssetFilter =
|
|
851
|
+
| { type: 'Definite'; value: StagingXcmV5AssetAssets }
|
|
852
|
+
| { type: 'Wild'; value: StagingXcmV5AssetWildAsset };
|
|
779
853
|
|
|
780
|
-
export type
|
|
854
|
+
export type StagingXcmV5AssetWildAsset =
|
|
781
855
|
| { type: 'All' }
|
|
782
|
-
| { type: 'AllOf'; value: { id:
|
|
856
|
+
| { type: 'AllOf'; value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility } }
|
|
783
857
|
| { type: 'AllCounted'; value: number }
|
|
784
858
|
| {
|
|
785
859
|
type: 'AllOfCounted';
|
|
786
|
-
value: { id:
|
|
860
|
+
value: { id: StagingXcmV5AssetAssetId; fun: StagingXcmV5AssetWildFungibility; count: number };
|
|
787
861
|
};
|
|
788
862
|
|
|
789
|
-
export type
|
|
863
|
+
export type StagingXcmV5AssetWildFungibility = 'Fungible' | 'NonFungible';
|
|
790
864
|
|
|
791
865
|
export type XcmV3WeightLimit = { type: 'Unlimited' } | { type: 'Limited'; value: SpWeightsWeightV2Weight };
|
|
792
866
|
|
|
793
|
-
export type
|
|
794
|
-
| { type: '
|
|
795
|
-
| { type: '
|
|
796
|
-
| { type: '
|
|
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
|
|
871
|
-
| { type: 'Fungible'; value: bigint }
|
|
872
|
-
| { type: 'NonFungible'; value: XcmV2MultiassetAssetInstance };
|
|
872
|
+
export type StagingXcmV5Hint = { type: 'AssetClaimer'; value: { location: StagingXcmV5Location } };
|
|
873
873
|
|
|
874
|
-
export type
|
|
875
|
-
| { type: '
|
|
876
|
-
| { type: '
|
|
877
|
-
| { type: '
|
|
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>,
|
|
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
|
|
3599
|
+
export type XcmV3Response =
|
|
3586
3600
|
| { type: 'Null' }
|
|
3587
|
-
| { type: 'Assets'; value:
|
|
3588
|
-
| { type: 'ExecutionResult'; value?: [number,
|
|
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
|
|
3607
|
+
export type XcmV3TraitsError =
|
|
3592
3608
|
| { type: 'Overflow' }
|
|
3593
3609
|
| { type: 'Unimplemented' }
|
|
3594
3610
|
| { type: 'UntrustedReserveLocation' }
|
|
3595
3611
|
| { type: 'UntrustedTeleportLocation' }
|
|
3596
|
-
| { type: '
|
|
3597
|
-
| { type: '
|
|
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:
|
|
3644
|
+
| { type: 'WeightLimitReached'; value: SpWeightsWeightV2Weight }
|
|
3616
3645
|
| { type: 'Barrier' }
|
|
3617
|
-
| { type: 'WeightNotComputable' }
|
|
3646
|
+
| { type: 'WeightNotComputable' }
|
|
3647
|
+
| { type: 'ExceedsStackLimit' };
|
|
3618
3648
|
|
|
3619
|
-
export type
|
|
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:
|
|
3660
|
+
| { type: 'Assets'; value: StagingXcmV4AssetAssets }
|
|
3622
3661
|
| { type: 'ExecutionResult'; value?: [number, XcmV3TraitsError] | undefined }
|
|
3623
3662
|
| { type: 'Version'; value: number }
|
|
3624
|
-
| { type: 'PalletsInfo'; value: Array<
|
|
3663
|
+
| { type: 'PalletsInfo'; value: Array<StagingXcmV4PalletInfo> }
|
|
3625
3664
|
| { type: 'DispatchResult'; value: XcmV3MaybeErrorCode };
|
|
3626
3665
|
|
|
3627
|
-
export type
|
|
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:
|
|
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:
|
|
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:
|
|
11879
|
-
| { type: 'Response'; value:
|
|
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:
|
|
12760
|
+
executionResult: StagingXcmV5TraitsOutcome;
|
|
12692
12761
|
emittedEvents: Array<AssetHubPaseoRuntimeRuntimeEvent>;
|
|
12693
12762
|
forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
|
|
12694
12763
|
};
|