UNPKG

38.7 kBTypeScriptView Raw
1import type { Bytes, Compact, Enum, Null, Option, Result, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
2import type { ITuple } from '@polkadot/types-codec/types';
3import type { AccountId, BlockNumber, Weight } from '@polkadot/types/interfaces/runtime';
4/** @name AssetInstance */
5export interface AssetInstance extends AssetInstanceV2 {
6}
7/** @name AssetInstanceV0 */
8export interface AssetInstanceV0 extends Enum {
9 readonly isUndefined: boolean;
10 readonly isIndex8: boolean;
11 readonly asIndex8: u8;
12 readonly isIndex16: boolean;
13 readonly asIndex16: Compact<u16>;
14 readonly isIndex32: boolean;
15 readonly asIndex32: Compact<u32>;
16 readonly isIndex64: boolean;
17 readonly asIndex64: Compact<u64>;
18 readonly isIndex128: boolean;
19 readonly asIndex128: Compact<u128>;
20 readonly isArray4: boolean;
21 readonly asArray4: U8aFixed;
22 readonly isArray8: boolean;
23 readonly asArray8: U8aFixed;
24 readonly isArray16: boolean;
25 readonly asArray16: U8aFixed;
26 readonly isArray32: boolean;
27 readonly asArray32: U8aFixed;
28 readonly isBlob: boolean;
29 readonly asBlob: Bytes;
30 readonly type: 'Undefined' | 'Index8' | 'Index16' | 'Index32' | 'Index64' | 'Index128' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
31}
32/** @name AssetInstanceV1 */
33export interface AssetInstanceV1 extends Enum {
34 readonly isUndefined: boolean;
35 readonly isIndex: boolean;
36 readonly asIndex: Compact<u128>;
37 readonly isArray4: boolean;
38 readonly asArray4: U8aFixed;
39 readonly isArray8: boolean;
40 readonly asArray8: U8aFixed;
41 readonly isArray16: boolean;
42 readonly asArray16: U8aFixed;
43 readonly isArray32: boolean;
44 readonly asArray32: U8aFixed;
45 readonly isBlob: boolean;
46 readonly asBlob: Bytes;
47 readonly type: 'Undefined' | 'Index' | 'Array4' | 'Array8' | 'Array16' | 'Array32' | 'Blob';
48}
49/** @name AssetInstanceV2 */
50export interface AssetInstanceV2 extends AssetInstanceV1 {
51}
52/** @name BodyId */
53export interface BodyId extends Enum {
54 readonly isUnit: boolean;
55 readonly isNamed: boolean;
56 readonly asNamed: Bytes;
57 readonly isIndex: boolean;
58 readonly asIndex: Compact<u32>;
59 readonly isExecutive: boolean;
60 readonly isTechnical: boolean;
61 readonly isLegislative: boolean;
62 readonly isJudicial: boolean;
63 readonly type: 'Unit' | 'Named' | 'Index' | 'Executive' | 'Technical' | 'Legislative' | 'Judicial';
64}
65/** @name BodyPart */
66export interface BodyPart extends Enum {
67 readonly isVoice: boolean;
68 readonly isMembers: boolean;
69 readonly asMembers: Compact<u32>;
70 readonly isFraction: boolean;
71 readonly asFraction: {
72 readonly nom: Compact<u32>;
73 readonly denom: Compact<u32>;
74 } & Struct;
75 readonly isAtLeastProportion: boolean;
76 readonly asAtLeastProportion: {
77 readonly nom: Compact<u32>;
78 readonly denom: Compact<u32>;
79 } & Struct;
80 readonly isMoreThanProportion: boolean;
81 readonly asMoreThanProportion: {
82 readonly nom: Compact<u32>;
83 readonly denom: Compact<u32>;
84 } & Struct;
85 readonly type: 'Voice' | 'Members' | 'Fraction' | 'AtLeastProportion' | 'MoreThanProportion';
86}
87/** @name DoubleEncodedCall */
88export interface DoubleEncodedCall extends Struct {
89 readonly encoded: Bytes;
90}
91/** @name Fungibility */
92export interface Fungibility extends FungibilityV2 {
93}
94/** @name FungibilityV0 */
95export interface FungibilityV0 extends FungibilityV1 {
96}
97/** @name FungibilityV1 */
98export interface FungibilityV1 extends Enum {
99 readonly isFungible: boolean;
100 readonly asFungible: Compact<u128>;
101 readonly isNonFungible: boolean;
102 readonly asNonFungible: AssetInstanceV1;
103 readonly type: 'Fungible' | 'NonFungible';
104}
105/** @name FungibilityV2 */
106export interface FungibilityV2 extends FungibilityV1 {
107}
108/** @name InboundStatus */
109export interface InboundStatus extends Enum {
110 readonly isOk: boolean;
111 readonly isSuspended: boolean;
112 readonly type: 'Ok' | 'Suspended';
113}
114/** @name InstructionV2 */
115export interface InstructionV2 extends Enum {
116 readonly isWithdrawAsset: boolean;
117 readonly asWithdrawAsset: MultiAssetsV2;
118 readonly isReserveAssetDeposited: boolean;
119 readonly asReserveAssetDeposited: MultiAssetsV2;
120 readonly isReceiveTeleportedAsset: boolean;
121 readonly asReceiveTeleportedAsset: MultiAssetsV2;
122 readonly isQueryResponse: boolean;
123 readonly asQueryResponse: {
124 readonly queryId: Compact<u64>;
125 readonly response: ResponseV2;
126 readonly maxWeight: Compact<u64>;
127 } & Struct;
128 readonly isTransferAsset: boolean;
129 readonly asTransferAsset: {
130 readonly assets: MultiAssetsV2;
131 readonly beneficiary: MultiLocationV2;
132 } & Struct;
133 readonly isTransferReserveAsset: boolean;
134 readonly asTransferReserveAsset: {
135 readonly assets: MultiAssetsV2;
136 readonly dest: MultiLocationV2;
137 readonly xcm: XcmV2;
138 } & Struct;
139 readonly isTransact: boolean;
140 readonly asTransact: {
141 readonly originType: OriginKindV2;
142 readonly requireWeightAtMost: u64;
143 readonly call: DoubleEncodedCall;
144 } & Struct;
145 readonly isHrmpNewChannelOpenRequest: boolean;
146 readonly asHrmpNewChannelOpenRequest: {
147 readonly sender: Compact<u32>;
148 readonly maxMessageSize: Compact<u32>;
149 readonly maxCapacity: Compact<u32>;
150 } & Struct;
151 readonly isHrmpChannelAccepted: boolean;
152 readonly asHrmpChannelAccepted: {
153 readonly recipient: Compact<u32>;
154 } & Struct;
155 readonly isHrmpChannelClosing: boolean;
156 readonly asHrmpChannelClosing: {
157 readonly initiator: Compact<u32>;
158 readonly sender: Compact<u32>;
159 readonly recipient: Compact<u32>;
160 } & Struct;
161 readonly isClearOrigin: boolean;
162 readonly isDescendOrigin: boolean;
163 readonly asDescendOrigin: InteriorMultiLocation;
164 readonly isReportError: boolean;
165 readonly asReportError: {
166 readonly queryId: Compact<u64>;
167 readonly dest: MultiLocationV2;
168 readonly maxResponseWeight: Compact<u64>;
169 } & Struct;
170 readonly isDepositAsset: boolean;
171 readonly asDepositAsset: {
172 readonly assets: MultiAssetFilterV2;
173 readonly maxAssets: u32;
174 readonly beneficiary: MultiLocationV2;
175 } & Struct;
176 readonly isDepositReserveAsset: boolean;
177 readonly asDepositReserveAsset: {
178 readonly assets: MultiAssetFilterV2;
179 readonly maxAssets: u32;
180 readonly dest: MultiLocationV2;
181 readonly xcm: XcmV2;
182 } & Struct;
183 readonly isExchangeAsset: boolean;
184 readonly asExchangeAsset: {
185 readonly give: MultiAssetFilterV2;
186 readonly receive: MultiAssetsV2;
187 } & Struct;
188 readonly isInitiateReserveWithdraw: boolean;
189 readonly asInitiateReserveWithdraw: {
190 readonly assets: MultiAssetFilterV2;
191 readonly reserve: MultiLocationV2;
192 readonly xcm: XcmV2;
193 } & Struct;
194 readonly isInitiateTeleport: boolean;
195 readonly asInitiateTeleport: {
196 readonly assets: MultiAssetFilterV2;
197 readonly dest: MultiLocationV2;
198 readonly xcm: XcmV2;
199 } & Struct;
200 readonly isQueryHolding: boolean;
201 readonly asQueryHolding: {
202 readonly query_id: Compact<u64>;
203 readonly dest: MultiLocationV2;
204 readonly assets: MultiAssetFilterV2;
205 readonly maxResponse_Weight: Compact<u64>;
206 } & Struct;
207 readonly isBuyExecution: boolean;
208 readonly asBuyExecution: {
209 readonly fees: MultiAssetV2;
210 readonly weightLimit: WeightLimitV2;
211 } & Struct;
212 readonly isRefundSurplus: boolean;
213 readonly isSetErrorHandler: boolean;
214 readonly asSetErrorHandler: XcmV2;
215 readonly isSetAppendix: boolean;
216 readonly asSetAppendix: XcmV2;
217 readonly isClearError: boolean;
218 readonly isClaimAsset: boolean;
219 readonly asClaimAsset: {
220 readonly assets: MultiAssetsV2;
221 readonly ticket: MultiLocationV2;
222 } & Struct;
223 readonly isTrap: boolean;
224 readonly asTrap: u64;
225 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposited' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'ClearOrigin' | 'DescendOrigin' | 'ReportError' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution' | 'RefundSurplus' | 'SetErrorHandler' | 'SetAppendix' | 'ClearError' | 'ClaimAsset' | 'Trap';
226}
227/** @name InteriorMultiLocation */
228export interface InteriorMultiLocation extends Junctions {
229}
230/** @name Junction */
231export interface Junction extends JunctionV2 {
232}
233/** @name Junctions */
234export interface Junctions extends JunctionsV2 {
235}
236/** @name JunctionsV1 */
237export interface JunctionsV1 extends Enum {
238 readonly isHere: boolean;
239 readonly isX1: boolean;
240 readonly asX1: JunctionV1;
241 readonly isX2: boolean;
242 readonly asX2: ITuple<[JunctionV1, JunctionV1]>;
243 readonly isX3: boolean;
244 readonly asX3: ITuple<[JunctionV1, JunctionV1, JunctionV1]>;
245 readonly isX4: boolean;
246 readonly asX4: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
247 readonly isX5: boolean;
248 readonly asX5: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
249 readonly isX6: boolean;
250 readonly asX6: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
251 readonly isX7: boolean;
252 readonly asX7: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
253 readonly isX8: boolean;
254 readonly asX8: ITuple<[JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1]>;
255 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
256}
257/** @name JunctionsV2 */
258export interface JunctionsV2 extends JunctionsV1 {
259}
260/** @name JunctionV0 */
261export interface JunctionV0 extends Enum {
262 readonly isParent: boolean;
263 readonly isParachain: boolean;
264 readonly asParachain: Compact<u32>;
265 readonly isAccountId32: boolean;
266 readonly asAccountId32: {
267 readonly network: NetworkId;
268 readonly id: AccountId;
269 } & Struct;
270 readonly isAccountIndex64: boolean;
271 readonly asAccountIndex64: {
272 readonly network: NetworkId;
273 readonly index: Compact<u64>;
274 } & Struct;
275 readonly isAccountKey20: boolean;
276 readonly asAccountKey20: {
277 readonly network: NetworkId;
278 readonly key: U8aFixed;
279 } & Struct;
280 readonly isPalletInstance: boolean;
281 readonly asPalletInstance: u8;
282 readonly isGeneralIndex: boolean;
283 readonly asGeneralIndex: Compact<u128>;
284 readonly isGeneralKey: boolean;
285 readonly asGeneralKey: Bytes;
286 readonly isOnlyChild: boolean;
287 readonly isPlurality: boolean;
288 readonly asPlurality: {
289 readonly id: BodyId;
290 readonly part: BodyPart;
291 } & Struct;
292 readonly type: 'Parent' | 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
293}
294/** @name JunctionV1 */
295export interface JunctionV1 extends Enum {
296 readonly isParachain: boolean;
297 readonly asParachain: Compact<u32>;
298 readonly isAccountId32: boolean;
299 readonly asAccountId32: {
300 readonly network: NetworkId;
301 readonly id: AccountId;
302 } & Struct;
303 readonly isAccountIndex64: boolean;
304 readonly asAccountIndex64: {
305 readonly network: NetworkId;
306 readonly index: Compact<u64>;
307 } & Struct;
308 readonly isAccountKey20: boolean;
309 readonly asAccountKey20: {
310 readonly network: NetworkId;
311 readonly key: U8aFixed;
312 } & Struct;
313 readonly isPalletInstance: boolean;
314 readonly asPalletInstance: u8;
315 readonly isGeneralIndex: boolean;
316 readonly asGeneralIndex: Compact<u128>;
317 readonly isGeneralKey: boolean;
318 readonly asGeneralKey: Bytes;
319 readonly isOnlyChild: boolean;
320 readonly isPlurality: boolean;
321 readonly asPlurality: {
322 readonly id: BodyId;
323 readonly part: BodyPart;
324 } & Struct;
325 readonly type: 'Parachain' | 'AccountId32' | 'AccountIndex64' | 'AccountKey20' | 'PalletInstance' | 'GeneralIndex' | 'GeneralKey' | 'OnlyChild' | 'Plurality';
326}
327/** @name JunctionV2 */
328export interface JunctionV2 extends JunctionV1 {
329}
330/** @name MultiAsset */
331export interface MultiAsset extends MultiAssetV2 {
332}
333/** @name MultiAssetFilter */
334export interface MultiAssetFilter extends MultiAssetFilterV2 {
335}
336/** @name MultiAssetFilterV1 */
337export interface MultiAssetFilterV1 extends Enum {
338 readonly isDefinite: boolean;
339 readonly asDefinite: MultiAssetsV1;
340 readonly isWild: boolean;
341 readonly asWild: WildMultiAssetV1;
342 readonly type: 'Definite' | 'Wild';
343}
344/** @name MultiAssetFilterV2 */
345export interface MultiAssetFilterV2 extends MultiAssetFilterV1 {
346}
347/** @name MultiAssets */
348export interface MultiAssets extends Vec<MultiAsset> {
349}
350/** @name MultiAssetsV1 */
351export interface MultiAssetsV1 extends Vec<MultiAssetV1> {
352}
353/** @name MultiAssetsV2 */
354export interface MultiAssetsV2 extends MultiAssetsV1 {
355}
356/** @name MultiAssetV0 */
357export interface MultiAssetV0 extends Enum {
358 readonly isNone: boolean;
359 readonly isAll: boolean;
360 readonly isAllFungible: boolean;
361 readonly isAllNonFungible: boolean;
362 readonly isAllAbstractFungible: boolean;
363 readonly asAllAbstractFungible: Bytes;
364 readonly isAllAbstractNonFungible: boolean;
365 readonly asAllAbstractNonFungible: Bytes;
366 readonly isAllConcreteFungible: boolean;
367 readonly asAllConcreteFungible: MultiLocationV0;
368 readonly isAllConcreteNonFungible: boolean;
369 readonly asAllConcreteNonFungible: MultiLocationV0;
370 readonly isAbstractFungible: boolean;
371 readonly asAbstractFungible: {
372 readonly id: Bytes;
373 readonly instance: Compact<u128>;
374 } & Struct;
375 readonly isAbstractNonFungible: boolean;
376 readonly asAbstractNonFungible: {
377 readonly class: Bytes;
378 readonly instance: AssetInstanceV0;
379 } & Struct;
380 readonly isConcreteFungible: boolean;
381 readonly asConcreteFungible: {
382 readonly id: MultiLocationV0;
383 readonly amount: Compact<u128>;
384 } & Struct;
385 readonly isConcreteNonFungible: boolean;
386 readonly asConcreteNonFungible: {
387 readonly class: MultiLocationV0;
388 readonly instance: AssetInstanceV0;
389 } & Struct;
390 readonly type: 'None' | 'All' | 'AllFungible' | 'AllNonFungible' | 'AllAbstractFungible' | 'AllAbstractNonFungible' | 'AllConcreteFungible' | 'AllConcreteNonFungible' | 'AbstractFungible' | 'AbstractNonFungible' | 'ConcreteFungible' | 'ConcreteNonFungible';
391}
392/** @name MultiAssetV1 */
393export interface MultiAssetV1 extends Struct {
394 readonly id: XcmAssetId;
395 readonly fungibility: FungibilityV1;
396}
397/** @name MultiAssetV2 */
398export interface MultiAssetV2 extends MultiAssetV1 {
399}
400/** @name MultiLocation */
401export interface MultiLocation extends MultiLocationV2 {
402}
403/** @name MultiLocationV0 */
404export interface MultiLocationV0 extends Enum {
405 readonly isHere: boolean;
406 readonly isX1: boolean;
407 readonly asX1: JunctionV0;
408 readonly isX2: boolean;
409 readonly asX2: ITuple<[JunctionV0, JunctionV0]>;
410 readonly isX3: boolean;
411 readonly asX3: ITuple<[JunctionV0, JunctionV0, JunctionV0]>;
412 readonly isX4: boolean;
413 readonly asX4: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
414 readonly isX5: boolean;
415 readonly asX5: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
416 readonly isX6: boolean;
417 readonly asX6: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
418 readonly isX7: boolean;
419 readonly asX7: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
420 readonly isX8: boolean;
421 readonly asX8: ITuple<[JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0]>;
422 readonly type: 'Here' | 'X1' | 'X2' | 'X3' | 'X4' | 'X5' | 'X6' | 'X7' | 'X8';
423}
424/** @name MultiLocationV1 */
425export interface MultiLocationV1 extends Struct {
426 readonly parents: u8;
427 readonly interior: JunctionsV1;
428}
429/** @name MultiLocationV2 */
430export interface MultiLocationV2 extends MultiLocationV1 {
431}
432/** @name NetworkId */
433export interface NetworkId extends Enum {
434 readonly isAny: boolean;
435 readonly isNamed: boolean;
436 readonly asNamed: Bytes;
437 readonly isPolkadot: boolean;
438 readonly isKusama: boolean;
439 readonly type: 'Any' | 'Named' | 'Polkadot' | 'Kusama';
440}
441/** @name OriginKindV0 */
442export interface OriginKindV0 extends Enum {
443 readonly isNative: boolean;
444 readonly isSovereignAccount: boolean;
445 readonly isSuperuser: boolean;
446 readonly isXcm: boolean;
447 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
448}
449/** @name OriginKindV1 */
450export interface OriginKindV1 extends OriginKindV0 {
451}
452/** @name OriginKindV2 */
453export interface OriginKindV2 extends OriginKindV1 {
454}
455/** @name OutboundStatus */
456export interface OutboundStatus extends Enum {
457 readonly isOk: boolean;
458 readonly isSuspended: boolean;
459 readonly type: 'Ok' | 'Suspended';
460}
461/** @name Outcome */
462export interface Outcome extends Enum {
463 readonly isComplete: boolean;
464 readonly asComplete: Weight;
465 readonly isIncomplete: boolean;
466 readonly asIncomplete: ITuple<[Weight, XcmErrorV0]>;
467 readonly isError: boolean;
468 readonly asError: XcmErrorV0;
469 readonly type: 'Complete' | 'Incomplete' | 'Error';
470}
471/** @name QueryId */
472export interface QueryId extends u64 {
473}
474/** @name QueryStatus */
475export interface QueryStatus extends Enum {
476 readonly isPending: boolean;
477 readonly asPending: {
478 readonly responder: VersionedMultiLocation;
479 readonly maybeNotify: Option<ITuple<[u8, u8]>>;
480 readonly timeout: BlockNumber;
481 } & Struct;
482 readonly isReady: boolean;
483 readonly asReady: {
484 readonly response: VersionedResponse;
485 readonly at: BlockNumber;
486 } & Struct;
487 readonly type: 'Pending' | 'Ready';
488}
489/** @name QueueConfigData */
490export interface QueueConfigData extends Struct {
491 readonly suspendThreshold: u32;
492 readonly dropThreshold: u32;
493 readonly resumeThreshold: u32;
494 readonly thresholdWeight: Weight;
495 readonly weightRestrictDecay: Weight;
496}
497/** @name Response */
498export interface Response extends ResponseV2 {
499}
500/** @name ResponseV0 */
501export interface ResponseV0 extends Enum {
502 readonly isAssets: boolean;
503 readonly asAssets: Vec<MultiAssetV0>;
504 readonly type: 'Assets';
505}
506/** @name ResponseV1 */
507export interface ResponseV1 extends Enum {
508 readonly isAssets: boolean;
509 readonly asAssets: MultiAssetsV1;
510 readonly type: 'Assets';
511}
512/** @name ResponseV2 */
513export interface ResponseV2 extends Enum {
514 readonly isNull: boolean;
515 readonly isAssets: boolean;
516 readonly asAssets: MultiAssetsV2;
517 readonly isExecutionResult: boolean;
518 readonly asExecutionResult: ResponseV2Result;
519 readonly type: 'Null' | 'Assets' | 'ExecutionResult';
520}
521/** @name ResponseV2Error */
522export interface ResponseV2Error extends ITuple<[u32, XcmErrorV2]> {
523}
524/** @name ResponseV2Result */
525export interface ResponseV2Result extends Result<Null, ResponseV2Error> {
526 readonly isErr: boolean;
527 readonly asErr: ResponseV2Error;
528 readonly isOk: boolean;
529}
530/** @name VersionedMultiAsset */
531export interface VersionedMultiAsset extends Enum {
532 readonly isV0: boolean;
533 readonly asV0: MultiAssetV0;
534 readonly isV1: boolean;
535 readonly asV1: MultiAssetV1;
536 readonly isV2: boolean;
537 readonly asV2: MultiAssetV2;
538 readonly type: 'V0' | 'V1' | 'V2';
539}
540/** @name VersionedMultiAssets */
541export interface VersionedMultiAssets extends Enum {
542 readonly isV0: boolean;
543 readonly asV0: Vec<MultiAssetV0>;
544 readonly isV1: boolean;
545 readonly asV1: MultiAssetsV1;
546 readonly isV2: boolean;
547 readonly asV2: MultiAssetsV2;
548 readonly type: 'V0' | 'V1' | 'V2';
549}
550/** @name VersionedMultiLocation */
551export interface VersionedMultiLocation extends Enum {
552 readonly isV0: boolean;
553 readonly asV0: MultiLocationV0;
554 readonly isV1: boolean;
555 readonly asV1: MultiLocationV1;
556 readonly isV2: boolean;
557 readonly asV2: MultiLocationV2;
558 readonly type: 'V0' | 'V1' | 'V2';
559}
560/** @name VersionedResponse */
561export interface VersionedResponse extends Struct {
562 readonly V0: ResponseV0;
563 readonly V1: ResponseV1;
564 readonly V2: ResponseV2;
565}
566/** @name VersionedXcm */
567export interface VersionedXcm extends Enum {
568 readonly isV0: boolean;
569 readonly asV0: XcmV0;
570 readonly isV1: boolean;
571 readonly asV1: XcmV1;
572 readonly isV2: boolean;
573 readonly asV2: XcmV2;
574 readonly type: 'V0' | 'V1' | 'V2';
575}
576/** @name VersionMigrationStage */
577export interface VersionMigrationStage extends Enum {
578 readonly isMigrateSupportedVersion: boolean;
579 readonly isMigrateVersionNotifiers: boolean;
580 readonly isNotifyCurrentTargets: boolean;
581 readonly asNotifyCurrentTargets: Option<Bytes>;
582 readonly isMigrateAndNotifyOldTargets: boolean;
583 readonly type: 'MigrateSupportedVersion' | 'MigrateVersionNotifiers' | 'NotifyCurrentTargets' | 'MigrateAndNotifyOldTargets';
584}
585/** @name WeightLimitV2 */
586export interface WeightLimitV2 extends Enum {
587 readonly isUnlimited: boolean;
588 readonly isLimited: boolean;
589 readonly asLimited: Compact<u64>;
590 readonly type: 'Unlimited' | 'Limited';
591}
592/** @name WildFungibility */
593export interface WildFungibility extends WildFungibilityV2 {
594}
595/** @name WildFungibilityV0 */
596export interface WildFungibilityV0 extends WildFungibilityV1 {
597}
598/** @name WildFungibilityV1 */
599export interface WildFungibilityV1 extends Enum {
600 readonly isFungible: boolean;
601 readonly isNonFungible: boolean;
602 readonly type: 'Fungible' | 'NonFungible';
603}
604/** @name WildFungibilityV2 */
605export interface WildFungibilityV2 extends WildFungibilityV1 {
606}
607/** @name WildMultiAsset */
608export interface WildMultiAsset extends WildMultiAssetV2 {
609}
610/** @name WildMultiAssetV1 */
611export interface WildMultiAssetV1 extends Enum {
612 readonly isAll: boolean;
613 readonly isAllOf: boolean;
614 readonly asAllOf: {
615 readonly id: XcmAssetId;
616 readonly fungibility: WildFungibilityV1;
617 } & Struct;
618 readonly type: 'All' | 'AllOf';
619}
620/** @name WildMultiAssetV2 */
621export interface WildMultiAssetV2 extends WildMultiAssetV1 {
622}
623/** @name Xcm */
624export interface Xcm extends XcmV2 {
625}
626/** @name XcmAssetId */
627export interface XcmAssetId extends Enum {
628 readonly isConcrete: boolean;
629 readonly asConcrete: MultiLocation;
630 readonly isAbstract: boolean;
631 readonly asAbstract: Bytes;
632 readonly type: 'Concrete' | 'Abstract';
633}
634/** @name XcmError */
635export interface XcmError extends XcmErrorV2 {
636}
637/** @name XcmErrorV0 */
638export interface XcmErrorV0 extends Enum {
639 readonly isUndefined: boolean;
640 readonly isOverflow: boolean;
641 readonly isUnimplemented: boolean;
642 readonly isUnhandledXcmVersion: boolean;
643 readonly isUnhandledXcmMessage: boolean;
644 readonly isUnhandledEffect: boolean;
645 readonly isEscalationOfPrivilege: boolean;
646 readonly isUntrustedReserveLocation: boolean;
647 readonly isUntrustedTeleportLocation: boolean;
648 readonly isDestinationBufferOverflow: boolean;
649 readonly isSendFailed: boolean;
650 readonly isCannotReachDestination: boolean;
651 readonly asCannotReachDestination: ITuple<[MultiLocation, Xcm]>;
652 readonly isMultiLocationFull: boolean;
653 readonly isFailedToDecode: boolean;
654 readonly isBadOrigin: boolean;
655 readonly isExceedsMaxMessageSize: boolean;
656 readonly isFailedToTransactAsset: boolean;
657 readonly isWeightLimitReached: boolean;
658 readonly asWeightLimitReached: Weight;
659 readonly isWildcard: boolean;
660 readonly isTooMuchWeightRequired: boolean;
661 readonly isNotHoldingFees: boolean;
662 readonly isWeightNotComputable: boolean;
663 readonly isBarrier: boolean;
664 readonly isNotWithdrawable: boolean;
665 readonly isLocationCannotHold: boolean;
666 readonly isTooExpensive: boolean;
667 readonly isAssetNotFound: boolean;
668 readonly isRecursionLimitReached: boolean;
669 readonly type: 'Undefined' | 'Overflow' | 'Unimplemented' | 'UnhandledXcmVersion' | 'UnhandledXcmMessage' | 'UnhandledEffect' | 'EscalationOfPrivilege' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'DestinationBufferOverflow' | 'SendFailed' | 'CannotReachDestination' | 'MultiLocationFull' | 'FailedToDecode' | 'BadOrigin' | 'ExceedsMaxMessageSize' | 'FailedToTransactAsset' | 'WeightLimitReached' | 'Wildcard' | 'TooMuchWeightRequired' | 'NotHoldingFees' | 'WeightNotComputable' | 'Barrier' | 'NotWithdrawable' | 'LocationCannotHold' | 'TooExpensive' | 'AssetNotFound' | 'RecursionLimitReached';
670}
671/** @name XcmErrorV1 */
672export interface XcmErrorV1 extends Enum {
673 readonly isUndefined: boolean;
674 readonly isOverflow: boolean;
675 readonly isUnimplemented: boolean;
676 readonly isUnhandledXcmVersion: boolean;
677 readonly isUnhandledXcmMessage: boolean;
678 readonly isUnhandledEffect: boolean;
679 readonly isEscalationOfPrivilege: boolean;
680 readonly isUntrustedReserveLocation: boolean;
681 readonly isUntrustedTeleportLocation: boolean;
682 readonly isDestinationBufferOverflow: boolean;
683 readonly isSendFailed: boolean;
684 readonly isCannotReachDestination: boolean;
685 readonly asCannotReachDestination: ITuple<[MultiLocationV1, XcmV1]>;
686 readonly isMultiLocationFull: boolean;
687 readonly isFailedToDecode: boolean;
688 readonly isBadOrigin: boolean;
689 readonly isExceedsMaxMessageSize: boolean;
690 readonly isFailedToTransactAsset: boolean;
691 readonly isWeightLimitReached: boolean;
692 readonly asWeightLimitReached: Weight;
693 readonly isWildcard: boolean;
694 readonly isTooMuchWeightRequired: boolean;
695 readonly isNotHoldingFees: boolean;
696 readonly isWeightNotComputable: boolean;
697 readonly isBarrier: boolean;
698 readonly isNotWithdrawable: boolean;
699 readonly isLocationCannotHold: boolean;
700 readonly isTooExpensive: boolean;
701 readonly isAssetNotFound: boolean;
702 readonly isDestinationUnsupported: boolean;
703 readonly isRecursionLimitReached: boolean;
704 readonly type: 'Undefined' | 'Overflow' | 'Unimplemented' | 'UnhandledXcmVersion' | 'UnhandledXcmMessage' | 'UnhandledEffect' | 'EscalationOfPrivilege' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'DestinationBufferOverflow' | 'SendFailed' | 'CannotReachDestination' | 'MultiLocationFull' | 'FailedToDecode' | 'BadOrigin' | 'ExceedsMaxMessageSize' | 'FailedToTransactAsset' | 'WeightLimitReached' | 'Wildcard' | 'TooMuchWeightRequired' | 'NotHoldingFees' | 'WeightNotComputable' | 'Barrier' | 'NotWithdrawable' | 'LocationCannotHold' | 'TooExpensive' | 'AssetNotFound' | 'DestinationUnsupported' | 'RecursionLimitReached';
705}
706/** @name XcmErrorV2 */
707export interface XcmErrorV2 extends Enum {
708 readonly isUndefined: boolean;
709 readonly isOverflow: boolean;
710 readonly isUnimplemented: boolean;
711 readonly isUnhandledXcmVersion: boolean;
712 readonly isUnhandledXcmMessage: boolean;
713 readonly isUnhandledEffect: boolean;
714 readonly isEscalationOfPrivilege: boolean;
715 readonly isUntrustedReserveLocation: boolean;
716 readonly isUntrustedTeleportLocation: boolean;
717 readonly isDestinationBufferOverflow: boolean;
718 readonly isMultiLocationFull: boolean;
719 readonly isMultiLocationNotInvertible: boolean;
720 readonly isFailedToDecode: boolean;
721 readonly isBadOrigin: boolean;
722 readonly isExceedsMaxMessageSize: boolean;
723 readonly isFailedToTransactAsset: boolean;
724 readonly isWeightLimitReached: boolean;
725 readonly asWeightLimitReached: Weight;
726 readonly isWildcard: boolean;
727 readonly isTooMuchWeightRequired: boolean;
728 readonly isNotHoldingFees: boolean;
729 readonly isWeightNotComputable: boolean;
730 readonly isBarrier: boolean;
731 readonly isNotWithdrawable: boolean;
732 readonly isLocationCannotHold: boolean;
733 readonly isTooExpensive: boolean;
734 readonly isAssetNotFound: boolean;
735 readonly isDestinationUnsupported: boolean;
736 readonly isRecursionLimitReached: boolean;
737 readonly isTransport: boolean;
738 readonly isUnroutable: boolean;
739 readonly isUnknownWeightRequired: boolean;
740 readonly isTrap: boolean;
741 readonly asTrap: u64;
742 readonly isUnknownClaim: boolean;
743 readonly isInvalidLocation: boolean;
744 readonly type: 'Undefined' | 'Overflow' | 'Unimplemented' | 'UnhandledXcmVersion' | 'UnhandledXcmMessage' | 'UnhandledEffect' | 'EscalationOfPrivilege' | 'UntrustedReserveLocation' | 'UntrustedTeleportLocation' | 'DestinationBufferOverflow' | 'MultiLocationFull' | 'MultiLocationNotInvertible' | 'FailedToDecode' | 'BadOrigin' | 'ExceedsMaxMessageSize' | 'FailedToTransactAsset' | 'WeightLimitReached' | 'Wildcard' | 'TooMuchWeightRequired' | 'NotHoldingFees' | 'WeightNotComputable' | 'Barrier' | 'NotWithdrawable' | 'LocationCannotHold' | 'TooExpensive' | 'AssetNotFound' | 'DestinationUnsupported' | 'RecursionLimitReached' | 'Transport' | 'Unroutable' | 'UnknownWeightRequired' | 'Trap' | 'UnknownClaim' | 'InvalidLocation';
745}
746/** @name XcmOrder */
747export interface XcmOrder extends XcmOrderV2 {
748}
749/** @name XcmOrderV0 */
750export interface XcmOrderV0 extends Enum {
751 readonly isNull: boolean;
752 readonly isDepositAsset: boolean;
753 readonly asDepositAsset: {
754 readonly assets: Vec<MultiAssetV0>;
755 readonly dest: MultiLocationV0;
756 } & Struct;
757 readonly isDepositReserveAsset: boolean;
758 readonly asDepositReserveAsset: {
759 readonly assets: Vec<MultiAssetV0>;
760 readonly dest: MultiLocationV0;
761 readonly effects: Vec<XcmOrderV0>;
762 } & Struct;
763 readonly isExchangeAsset: boolean;
764 readonly asExchangeAsset: {
765 readonly give: Vec<MultiAssetV0>;
766 readonly receive: Vec<MultiAssetV0>;
767 } & Struct;
768 readonly isInitiateReserveWithdraw: boolean;
769 readonly asInitiateReserveWithdraw: {
770 readonly assets: Vec<MultiAssetV0>;
771 readonly reserve: MultiLocationV0;
772 readonly effects: Vec<XcmOrderV0>;
773 } & Struct;
774 readonly isInitiateTeleport: boolean;
775 readonly asInitiateTeleport: {
776 readonly assets: Vec<MultiAssetV0>;
777 readonly dest: MultiLocationV0;
778 readonly effects: Vec<XcmOrderV0>;
779 } & Struct;
780 readonly isQueryHolding: boolean;
781 readonly asQueryHolding: {
782 readonly queryId: Compact<u64>;
783 readonly dest: MultiLocationV0;
784 readonly assets: Vec<MultiAssetV0>;
785 } & Struct;
786 readonly isBuyExecution: boolean;
787 readonly asBuyExecution: {
788 readonly fees: MultiAssetV0;
789 readonly weight: u64;
790 readonly debt: u64;
791 readonly haltOnError: bool;
792 readonly xcm: Vec<XcmV0>;
793 } & Struct;
794 readonly type: 'Null' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
795}
796/** @name XcmOrderV1 */
797export interface XcmOrderV1 extends Enum {
798 readonly isNoop: boolean;
799 readonly isDepositAsset: boolean;
800 readonly asDepositAsset: {
801 readonly assets: MultiAssetFilterV1;
802 readonly maxAssets: u32;
803 readonly beneficiary: MultiLocationV1;
804 } & Struct;
805 readonly isDepositReserveAsset: boolean;
806 readonly asDepositReserveAsset: {
807 readonly assets: MultiAssetFilterV1;
808 readonly maxAssets: u32;
809 readonly dest: MultiLocationV1;
810 readonly effects: Vec<XcmOrderV1>;
811 } & Struct;
812 readonly isExchangeAsset: boolean;
813 readonly asExchangeAsset: {
814 readonly give: MultiAssetFilterV1;
815 readonly receive: MultiAssetsV1;
816 } & Struct;
817 readonly isInitiateReserveWithdraw: boolean;
818 readonly asInitiateReserveWithdraw: {
819 readonly assets: MultiAssetFilterV1;
820 readonly reserve: MultiLocationV1;
821 readonly effects: Vec<XcmOrderV1>;
822 } & Struct;
823 readonly isInitiateTeleport: boolean;
824 readonly asInitiateTeleport: {
825 readonly assets: MultiAssetFilterV1;
826 readonly dest: MultiLocationV1;
827 readonly effects: Vec<XcmOrderV1>;
828 } & Struct;
829 readonly isQueryHolding: boolean;
830 readonly asQueryHolding: {
831 readonly queryId: Compact<u64>;
832 readonly dest: MultiLocationV1;
833 readonly assets: MultiAssetFilterV1;
834 } & Struct;
835 readonly isBuyExecution: boolean;
836 readonly asBuyExecution: {
837 readonly fees: MultiAssetV1;
838 readonly weight: u64;
839 readonly debt: u64;
840 readonly haltOnError: bool;
841 readonly instructions: Vec<XcmV1>;
842 } & Struct;
843 readonly type: 'Noop' | 'DepositAsset' | 'DepositReserveAsset' | 'ExchangeAsset' | 'InitiateReserveWithdraw' | 'InitiateTeleport' | 'QueryHolding' | 'BuyExecution';
844}
845/** @name XcmOrderV2 */
846export interface XcmOrderV2 extends XcmOrderV1 {
847}
848/** @name XcmOrigin */
849export interface XcmOrigin extends Enum {
850 readonly isXcm: boolean;
851 readonly asXcm: MultiLocation;
852 readonly type: 'Xcm';
853}
854/** @name XcmOriginKind */
855export interface XcmOriginKind extends Enum {
856 readonly isNative: boolean;
857 readonly isSovereignAccount: boolean;
858 readonly isSuperuser: boolean;
859 readonly isXcm: boolean;
860 readonly type: 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
861}
862/** @name XcmpMessageFormat */
863export interface XcmpMessageFormat extends Enum {
864 readonly isConcatenatedVersionedXcm: boolean;
865 readonly isConcatenatedEncodedBlob: boolean;
866 readonly isSignals: boolean;
867 readonly type: 'ConcatenatedVersionedXcm' | 'ConcatenatedEncodedBlob' | 'Signals';
868}
869/** @name XcmV0 */
870export interface XcmV0 extends Enum {
871 readonly isWithdrawAsset: boolean;
872 readonly asWithdrawAsset: {
873 readonly assets: Vec<MultiAssetV0>;
874 readonly effects: Vec<XcmOrderV0>;
875 } & Struct;
876 readonly isReserveAssetDeposit: boolean;
877 readonly asReserveAssetDeposit: {
878 readonly assets: Vec<MultiAssetV0>;
879 readonly effects: Vec<XcmOrderV0>;
880 } & Struct;
881 readonly isReceiveTeleportedAsset: boolean;
882 readonly asReceiveTeleportedAsset: {
883 readonly assets: Vec<MultiAssetV0>;
884 readonly effects: Vec<XcmOrderV0>;
885 } & Struct;
886 readonly isQueryResponse: boolean;
887 readonly asQueryResponse: {
888 readonly queryId: Compact<u64>;
889 readonly response: ResponseV0;
890 } & Struct;
891 readonly isTransferAsset: boolean;
892 readonly asTransferAsset: {
893 readonly assets: Vec<MultiAssetV0>;
894 readonly dest: MultiLocationV0;
895 } & Struct;
896 readonly isTransferReserveAsset: boolean;
897 readonly asTransferReserveAsset: {
898 readonly assets: Vec<MultiAssetV0>;
899 readonly dest: MultiLocationV0;
900 readonly effects: Vec<XcmOrderV0>;
901 } & Struct;
902 readonly isTransact: boolean;
903 readonly asTransact: {
904 readonly originType: XcmOriginKind;
905 readonly requireWeightAtMost: u64;
906 readonly call: DoubleEncodedCall;
907 } & Struct;
908 readonly isHrmpNewChannelOpenRequest: boolean;
909 readonly asHrmpNewChannelOpenRequest: {
910 readonly sender: Compact<u32>;
911 readonly maxMessageSize: Compact<u32>;
912 readonly maxCapacity: Compact<u32>;
913 } & Struct;
914 readonly isHrmpChannelAccepted: boolean;
915 readonly asHrmpChannelAccepted: {
916 readonly recipient: Compact<u32>;
917 } & Struct;
918 readonly isHrmpChannelClosing: boolean;
919 readonly asHrmpChannelClosing: {
920 readonly initiator: Compact<u32>;
921 readonly sender: Compact<u32>;
922 readonly recipient: Compact<u32>;
923 } & Struct;
924 readonly isRelayedFrom: boolean;
925 readonly asRelayedFrom: {
926 readonly who: MultiLocationV0;
927 readonly message: XcmV0;
928 } & Struct;
929 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
930}
931/** @name XcmV1 */
932export interface XcmV1 extends Enum {
933 readonly isWithdrawAsset: boolean;
934 readonly asWithdrawAsset: {
935 readonly assets: MultiAssetsV1;
936 readonly effects: Vec<XcmOrderV1>;
937 } & Struct;
938 readonly isReserveAssetDeposit: boolean;
939 readonly asReserveAssetDeposit: {
940 readonly assets: MultiAssetsV1;
941 readonly effects: Vec<XcmOrderV1>;
942 } & Struct;
943 readonly isReceiveTeleportedAsset: boolean;
944 readonly asReceiveTeleportedAsset: {
945 readonly assets: MultiAssetsV1;
946 readonly effects: Vec<XcmOrderV1>;
947 } & Struct;
948 readonly isQueryResponse: boolean;
949 readonly asQueryResponse: {
950 readonly queryId: Compact<u64>;
951 readonly response: ResponseV1;
952 } & Struct;
953 readonly isTransferAsset: boolean;
954 readonly asTransferAsset: {
955 readonly assets: MultiAssetsV1;
956 readonly dest: MultiLocationV1;
957 } & Struct;
958 readonly isTransferReserveAsset: boolean;
959 readonly asTransferReserveAsset: {
960 readonly assets: MultiAssetsV1;
961 readonly dest: MultiLocationV1;
962 readonly effects: Vec<XcmOrderV1>;
963 } & Struct;
964 readonly isTransact: boolean;
965 readonly asTransact: {
966 readonly originType: XcmOriginKind;
967 readonly requireWeightAtMost: u64;
968 readonly call: DoubleEncodedCall;
969 } & Struct;
970 readonly isHrmpNewChannelOpenRequest: boolean;
971 readonly asHrmpNewChannelOpenRequest: {
972 readonly sender: Compact<u32>;
973 readonly maxMessageSize: Compact<u32>;
974 readonly maxCapacity: Compact<u32>;
975 } & Struct;
976 readonly isHrmpChannelAccepted: boolean;
977 readonly asHrmpChannelAccepted: {
978 readonly recipient: Compact<u32>;
979 } & Struct;
980 readonly isHrmpChannelClosing: boolean;
981 readonly asHrmpChannelClosing: {
982 readonly initiator: Compact<u32>;
983 readonly sender: Compact<u32>;
984 readonly recipient: Compact<u32>;
985 } & Struct;
986 readonly isRelayedFrom: boolean;
987 readonly asRelayedFrom: {
988 readonly who: MultiLocationV1;
989 readonly message: XcmV1;
990 } & Struct;
991 readonly type: 'WithdrawAsset' | 'ReserveAssetDeposit' | 'ReceiveTeleportedAsset' | 'QueryResponse' | 'TransferAsset' | 'TransferReserveAsset' | 'Transact' | 'HrmpNewChannelOpenRequest' | 'HrmpChannelAccepted' | 'HrmpChannelClosing' | 'RelayedFrom';
992}
993/** @name XcmV2 */
994export interface XcmV2 extends Vec<InstructionV2> {
995}
996/** @name XcmVersion */
997export interface XcmVersion extends u32 {
998}
999export type PHANTOM_XCM = 'xcm';