@paraspell/sdk 0.0.23 → 0.0.25

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/dist/index.mjs ADDED
@@ -0,0 +1,4727 @@
1
+ import '@polkadot/api';
2
+ import { ethers } from 'ethers';
3
+ import '@polkadot/apps-config/endpoints';
4
+
5
+ function _classCallCheck(instance, Constructor) {
6
+ if (!(instance instanceof Constructor)) {
7
+ throw new TypeError("Cannot call a class as a function");
8
+ }
9
+ }
10
+ function _defineProperties(target, props) {
11
+ for (var i = 0; i < props.length; i++) {
12
+ var descriptor = props[i];
13
+ descriptor.enumerable = descriptor.enumerable || false;
14
+ descriptor.configurable = true;
15
+ if ("value" in descriptor) descriptor.writable = true;
16
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
17
+ }
18
+ }
19
+ function _createClass(Constructor, protoProps, staticProps) {
20
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
21
+ if (staticProps) _defineProperties(Constructor, staticProps);
22
+ Object.defineProperty(Constructor, "prototype", {
23
+ writable: false
24
+ });
25
+ return Constructor;
26
+ }
27
+ function _inherits(subClass, superClass) {
28
+ if (typeof superClass !== "function" && superClass !== null) {
29
+ throw new TypeError("Super expression must either be null or a function");
30
+ }
31
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
32
+ constructor: {
33
+ value: subClass,
34
+ writable: true,
35
+ configurable: true
36
+ }
37
+ });
38
+ Object.defineProperty(subClass, "prototype", {
39
+ writable: false
40
+ });
41
+ if (superClass) _setPrototypeOf(subClass, superClass);
42
+ }
43
+ function _getPrototypeOf(o) {
44
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
45
+ return o.__proto__ || Object.getPrototypeOf(o);
46
+ };
47
+ return _getPrototypeOf(o);
48
+ }
49
+ function _setPrototypeOf(o, p) {
50
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
51
+ o.__proto__ = p;
52
+ return o;
53
+ };
54
+ return _setPrototypeOf(o, p);
55
+ }
56
+ function _isNativeReflectConstruct() {
57
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
58
+ if (Reflect.construct.sham) return false;
59
+ if (typeof Proxy === "function") return true;
60
+ try {
61
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
62
+ return true;
63
+ } catch (e) {
64
+ return false;
65
+ }
66
+ }
67
+ function _construct(Parent, args, Class) {
68
+ if (_isNativeReflectConstruct()) {
69
+ _construct = Reflect.construct.bind();
70
+ } else {
71
+ _construct = function _construct(Parent, args, Class) {
72
+ var a = [null];
73
+ a.push.apply(a, args);
74
+ var Constructor = Function.bind.apply(Parent, a);
75
+ var instance = new Constructor();
76
+ if (Class) _setPrototypeOf(instance, Class.prototype);
77
+ return instance;
78
+ };
79
+ }
80
+ return _construct.apply(null, arguments);
81
+ }
82
+ function _isNativeFunction(fn) {
83
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
84
+ }
85
+ function _wrapNativeSuper(Class) {
86
+ var _cache = typeof Map === "function" ? new Map() : undefined;
87
+ _wrapNativeSuper = function _wrapNativeSuper(Class) {
88
+ if (Class === null || !_isNativeFunction(Class)) return Class;
89
+ if (typeof Class !== "function") {
90
+ throw new TypeError("Super expression must either be null or a function");
91
+ }
92
+ if (typeof _cache !== "undefined") {
93
+ if (_cache.has(Class)) return _cache.get(Class);
94
+ _cache.set(Class, Wrapper);
95
+ }
96
+ function Wrapper() {
97
+ return _construct(Class, arguments, _getPrototypeOf(this).constructor);
98
+ }
99
+ Wrapper.prototype = Object.create(Class.prototype, {
100
+ constructor: {
101
+ value: Wrapper,
102
+ enumerable: false,
103
+ writable: true,
104
+ configurable: true
105
+ }
106
+ });
107
+ return _setPrototypeOf(Wrapper, Class);
108
+ };
109
+ return _wrapNativeSuper(Class);
110
+ }
111
+ function _assertThisInitialized(self) {
112
+ if (self === void 0) {
113
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
114
+ }
115
+ return self;
116
+ }
117
+ function _possibleConstructorReturn(self, call) {
118
+ if (call && (typeof call === "object" || typeof call === "function")) {
119
+ return call;
120
+ } else if (call !== void 0) {
121
+ throw new TypeError("Derived constructors may only return object or undefined");
122
+ }
123
+ return _assertThisInitialized(self);
124
+ }
125
+ function _createSuper(Derived) {
126
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
127
+ return function _createSuperInternal() {
128
+ var Super = _getPrototypeOf(Derived),
129
+ result;
130
+ if (hasNativeReflectConstruct) {
131
+ var NewTarget = _getPrototypeOf(this).constructor;
132
+ result = Reflect.construct(Super, arguments, NewTarget);
133
+ } else {
134
+ result = Super.apply(this, arguments);
135
+ }
136
+ return _possibleConstructorReturn(this, result);
137
+ };
138
+ }
139
+ function _toConsumableArray(arr) {
140
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
141
+ }
142
+ function _arrayWithoutHoles(arr) {
143
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
144
+ }
145
+ function _iterableToArray(iter) {
146
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
147
+ }
148
+ function _unsupportedIterableToArray(o, minLen) {
149
+ if (!o) return;
150
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
151
+ var n = Object.prototype.toString.call(o).slice(8, -1);
152
+ if (n === "Object" && o.constructor) n = o.constructor.name;
153
+ if (n === "Map" || n === "Set") return Array.from(o);
154
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
155
+ }
156
+ function _arrayLikeToArray(arr, len) {
157
+ if (len == null || len > arr.length) len = arr.length;
158
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
159
+ return arr2;
160
+ }
161
+ function _nonIterableSpread() {
162
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
163
+ }
164
+ function _toPrimitive(input, hint) {
165
+ if (typeof input !== "object" || input === null) return input;
166
+ var prim = input[Symbol.toPrimitive];
167
+ if (prim !== undefined) {
168
+ var res = prim.call(input, hint || "default");
169
+ if (typeof res !== "object") return res;
170
+ throw new TypeError("@@toPrimitive must return a primitive value.");
171
+ }
172
+ return (hint === "string" ? String : Number)(input);
173
+ }
174
+ function _toPropertyKey(arg) {
175
+ var key = _toPrimitive(arg, "string");
176
+ return typeof key === "symbol" ? key : String(key);
177
+ }
178
+
179
+ var NODE_NAMES = ['Statemint', 'Acala', 'Astar', 'BifrostPolkadot', 'Bitgreen', 'Centrifuge', 'Clover', 'ComposableFinance', 'Darwinia', 'HydraDX', 'Interlay', 'Kylin', 'Litentry', 'Moonbeam', 'Parallel', 'Statemine', 'Encointer', 'Altair', 'Amplitude', 'Bajun', 'Basilisk', 'BifrostKusama', 'Pioneer', 'Calamari', 'CrustShadow', 'Crab', 'Dorafactory', 'Imbue', 'Integritee', 'InvArchTinker', 'Karura', 'Kico', 'Kintsugi', 'Listen', 'Litmus', 'Mangata', 'Moonriver', 'ParallelHeiko', 'Picasso', 'Pichiu', 'Quartz', 'Robonomics', 'Shiden', 'Turing'];
180
+ var SUPPORTED_PALLETS = ['XTokens', 'OrmlXTokens', 'PolkadotXcm', 'RelayerXcm'];
181
+
182
+ function createAccID(api, account) {
183
+ console.log('Generating AccountId32 address');
184
+ return api.createType('AccountId32', account).toHex();
185
+ }
186
+ function getFees(scenario) {
187
+ if (scenario === 'ParaToRelay') {
188
+ console.log('Asigning fees for transfer to Relay chain');
189
+ return 4600000000;
190
+ } else if (scenario === 'ParaToPara') {
191
+ console.log('Asigning fees for transfer to another Parachain chain');
192
+ return 399600000000;
193
+ }
194
+ throw new Error("Fees for scenario ".concat(scenario, " are not defined."));
195
+ }
196
+ function handleAddress(scenario, pallet, api, to, nodeId, node) {
197
+ if (scenario === 'ParaToRelay' && pallet === 'xTokens') {
198
+ console.log('AccountId32 transfer');
199
+ return {
200
+ V1: {
201
+ parents: 1,
202
+ interior: {
203
+ X1: {
204
+ AccountId32: {
205
+ network: 'any',
206
+ id: createAccID(api, to)
207
+ }
208
+ }
209
+ }
210
+ }
211
+ };
212
+ }
213
+ if (scenario === 'ParaToPara' && pallet === 'xTokens') {
214
+ if (ethers.utils.isAddress(to)) {
215
+ console.log('AccountKey20 transfer');
216
+ return {
217
+ V1: {
218
+ parents: 1,
219
+ interior: {
220
+ X2: [{
221
+ Parachain: nodeId
222
+ }, {
223
+ AccountKey20: {
224
+ network: 'Any',
225
+ key: to
226
+ }
227
+ }]
228
+ }
229
+ }
230
+ };
231
+ } else {
232
+ console.log('AccountId32 transfer');
233
+ return {
234
+ V1: {
235
+ parents: 1,
236
+ interior: {
237
+ X2: [{
238
+ Parachain: nodeId
239
+ }, {
240
+ AccountId32: {
241
+ network: 'Any',
242
+ id: createAccID(api, to)
243
+ }
244
+ }]
245
+ }
246
+ }
247
+ };
248
+ }
249
+ }
250
+ if (scenario === 'ParaToRelay' && pallet === 'polkadotXCM') {
251
+ console.log('AccountId32 transfer');
252
+ return {
253
+ V1: {
254
+ parents: 0,
255
+ interior: {
256
+ X1: {
257
+ AccountId32: {
258
+ network: 'any',
259
+ id: createAccID(api, to)
260
+ }
261
+ }
262
+ }
263
+ }
264
+ };
265
+ }
266
+ if (scenario === 'ParaToPara' && pallet === 'polkadotXCM') {
267
+ if (node === 'Quartz') {
268
+ return {
269
+ V0: {
270
+ X1: {
271
+ AccountId32: {
272
+ network: 'Any',
273
+ id: createAccID(api, to)
274
+ }
275
+ }
276
+ }
277
+ };
278
+ }
279
+ if (ethers.utils.isAddress(to)) {
280
+ console.log('AccountKey20 transfer');
281
+ return {
282
+ V1: {
283
+ parents: 0,
284
+ interior: {
285
+ X1: {
286
+ AccountKey20: {
287
+ network: 'Any',
288
+ key: to
289
+ }
290
+ }
291
+ }
292
+ }
293
+ };
294
+ } else {
295
+ console.log('AccountId32 transfer');
296
+ return {
297
+ V1: {
298
+ parents: 0,
299
+ interior: {
300
+ X1: {
301
+ AccountId32: {
302
+ network: 'Any',
303
+ id: createAccID(api, to)
304
+ }
305
+ }
306
+ }
307
+ }
308
+ };
309
+ }
310
+ }
311
+ if (scenario === 'RelayToPara') {
312
+ if (ethers.utils.isAddress(to)) {
313
+ console.log('AccountKey20 transfer');
314
+ return {
315
+ V1: {
316
+ parents: 0,
317
+ interior: {
318
+ X1: {
319
+ AccountKey20: {
320
+ network: 'Any',
321
+ key: to
322
+ }
323
+ }
324
+ }
325
+ }
326
+ };
327
+ } else {
328
+ console.log('AccountId32 transfer');
329
+ return {
330
+ V1: {
331
+ parents: 0,
332
+ interior: {
333
+ X1: {
334
+ AccountId32: {
335
+ network: 'Any',
336
+ id: createAccID(api, to)
337
+ }
338
+ }
339
+ }
340
+ }
341
+ };
342
+ }
343
+ }
344
+ }
345
+ function createCurrencySpecification(amount, scenario, node, cur) {
346
+ if (scenario === 'ParaToRelay') {
347
+ console.log('polkadotXCM transfer in native currency to Relay chain');
348
+ return {
349
+ V1: [{
350
+ id: {
351
+ Concrete: {
352
+ parents: 1,
353
+ interior: 'Here'
354
+ }
355
+ },
356
+ fun: {
357
+ Fungible: amount
358
+ }
359
+ }]
360
+ };
361
+ }
362
+ if (scenario === 'RelayToPara' || scenario === 'ParaToPara') {
363
+ console.log('polkadotXCM Native currency to sender chain transfer');
364
+ if (node === 'Quartz' && scenario === 'ParaToPara') {
365
+ return {
366
+ V0: [{
367
+ ConcreteFungible: {
368
+ id: null,
369
+ amount: amount
370
+ }
371
+ }]
372
+ };
373
+ }
374
+ if ((node === 'Darwinia' || node === 'Crab') && scenario === 'ParaToPara') {
375
+ // Special case for Darwinia&Crab node
376
+ return {
377
+ V1: [{
378
+ id: {
379
+ Concrete: {
380
+ parents: 0,
381
+ interior: {
382
+ X1: {
383
+ PalletInstance: 5
384
+ }
385
+ }
386
+ }
387
+ },
388
+ fun: {
389
+ Fungible: amount
390
+ }
391
+ }]
392
+ };
393
+ } else if ((node === 'Statemint' || node === 'Statemine') && scenario === 'ParaToPara') {
394
+ // Another specific case for Statemint & Statemine to send for example USDt
395
+ return {
396
+ V1: [{
397
+ id: {
398
+ Concrete: {
399
+ parents: 0,
400
+ interior: {
401
+ X2: [{
402
+ PalletInstance: 50
403
+ }, {
404
+ GeneralIndex: cur
405
+ }]
406
+ }
407
+ }
408
+ },
409
+ fun: {
410
+ Fungible: amount
411
+ }
412
+ }]
413
+ };
414
+ }
415
+ // Otherwise
416
+ return {
417
+ V1: [{
418
+ id: {
419
+ Concrete: {
420
+ parents: 0,
421
+ interior: 'Here'
422
+ }
423
+ },
424
+ fun: {
425
+ Fungible: amount
426
+ }
427
+ }]
428
+ };
429
+ }
430
+ }
431
+ function createHeaderPolkadotXCM(scenario, nodeId, node) {
432
+ console.log('Generating header for polkadotXCM transfer');
433
+ if (scenario === 'ParaToRelay') {
434
+ return {
435
+ V1: {
436
+ parents: 1,
437
+ interior: 'Here'
438
+ }
439
+ };
440
+ }
441
+ if (scenario === 'ParaToPara') {
442
+ if (node === 'Quartz') {
443
+ return {
444
+ V0: {
445
+ X2: ['Parent', {
446
+ Parachain: nodeId
447
+ }]
448
+ }
449
+ };
450
+ }
451
+ return {
452
+ V1: {
453
+ parents: 1,
454
+ interior: {
455
+ X1: {
456
+ Parachain: nodeId
457
+ }
458
+ }
459
+ }
460
+ };
461
+ }
462
+ if (scenario === 'RelayToPara') {
463
+ return {
464
+ V1: {
465
+ parents: 0,
466
+ interior: {
467
+ X1: {
468
+ Parachain: nodeId
469
+ }
470
+ }
471
+ }
472
+ };
473
+ }
474
+ }
475
+ function constructXTokens(api, origin, currencyID, currency, amount, addressSelection, fees) {
476
+ switch (origin) {
477
+ // Polkadot xTokens
478
+ case 'Acala':
479
+ console.log('Transferring tokens ' + currency + ' from Acala');
480
+ return api.tx.xTokens.transfer({
481
+ Token: currency
482
+ }, amount, addressSelection, fees);
483
+ // Multiple asset options need addressing
484
+ case 'BifrostPolkadot':
485
+ console.log('Transferring ' + currency + ' tokens from BifrostPolkadot');
486
+ return api.tx.xTokens.transfer({
487
+ Token: currency
488
+ }, amount, addressSelection, fees);
489
+ // Multiple asset options need addressing
490
+ case 'Centrifuge':
491
+ console.log('Transferring tokens from Centrifuge');
492
+ return api.tx.xTokens.transfer('Native', amount, addressSelection, fees);
493
+ // Multiple asset options needs addressing
494
+ case 'Clover':
495
+ console.log('Transferring tokens from Clover');
496
+ return api.tx.xTokens.transfer('SelfReserve', amount, addressSelection, fees);
497
+ // Multiple asset options needs addressing
498
+ case 'HydraDX':
499
+ console.log('Transferring ' + currencyID + 'tokens from HydraDX');
500
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
501
+ case 'Interlay':
502
+ console.log('Transferring ' + currency + 'tokens from Interlay');
503
+ return api.tx.xTokens.transfer({
504
+ Token: currency
505
+ }, amount, addressSelection, fees);
506
+ // Multiple asset options needs addressing
507
+ case 'Moonbeam':
508
+ console.log('Transferring tokens from Moonbeam');
509
+ return api.tx.xTokens.transfer('SelfReserve', amount, addressSelection, fees);
510
+ // Multiple asset options needs addressing
511
+ case 'Parallel':
512
+ console.log('Transferring ' + currencyID + ' tokens from Parallel');
513
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
514
+ case 'Litentry':
515
+ console.log('Transferring ' + currencyID + ' tokens from Litentry');
516
+ return api.tx.xTokens.transfer('SelfReserve', amount, addressSelection, fees);
517
+ case 'Kylin':
518
+ console.log('Transferring ' + currency + ' tokens from Kylin');
519
+ return api.tx.ormlXTokens.transfer(currency, amount, addressSelection, fees);
520
+ // Kusama xTokens
521
+ case 'Altair':
522
+ console.log('Transferring tokens from Altair');
523
+ return api.tx.xTokens.transfer('Native', amount, addressSelection, fees);
524
+ // Multiple asset options needs addressing
525
+ case 'Amplitude':
526
+ console.log('Transferring ' + currency + ' tokens from Amplitude');
527
+ return api.tx.xTokens.transfer({
528
+ XCM: currency
529
+ }, amount, addressSelection, fees);
530
+ case 'Bajun':
531
+ console.log('Transferring ' + currencyID + ' token from Bajun');
532
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
533
+ case 'Basilisk':
534
+ console.log('Transferring ' + currencyID + ' token from Basilisk');
535
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
536
+ case 'BifrostKusama':
537
+ console.log('Transferring ' + currency + ' tokens from BifrostKusama');
538
+ return api.tx.xTokens.transfer({
539
+ Token: currency
540
+ }, amount, addressSelection, fees);
541
+ // Multiple asset options need addressing
542
+ case 'Pioneer':
543
+ console.log('Transferring tokens from Pioneer');
544
+ return api.tx.xTokens.transfer('NativeToken', amount, addressSelection, fees);
545
+ // Multiple asset options needs addressing
546
+ case 'Calamari':
547
+ console.log('Transferring ' + currencyID + ' token from Calamari');
548
+ return api.tx.xTokens.transfer({
549
+ MantaCurrency: currencyID
550
+ }, amount, addressSelection, fees);
551
+ // Currently only option for XCM transfer
552
+ case 'CrustShadow':
553
+ console.log('Transferring tokens from CrustShadow');
554
+ return api.tx.xTokens.transfer('SelfReserve', amount, addressSelection, fees);
555
+ // Multiple asset options needs addressing
556
+ case 'Dorafactory':
557
+ console.log('Transferring ' + currency + ' tokens from DoraFactory');
558
+ return api.tx.xTokens.transfer(currency, amount, addressSelection, fees);
559
+ case 'Imbue':
560
+ console.log('Transferring ' + currency + ' tokens from imbue');
561
+ return api.tx.xTokens.transfer(currency, amount, addressSelection, fees);
562
+ case 'Integritee':
563
+ console.log('Transferring ' + currency + ' tokens from Integritee');
564
+ return api.tx.xTokens.transfer(currency, amount, addressSelection, fees);
565
+ case 'InvArchTinker':
566
+ console.log('Transferring ' + currencyID + ' token from InvArch Tinker');
567
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
568
+ case 'Karura':
569
+ console.log('Transferring ' + currency + ' tokens from Karura');
570
+ return api.tx.xTokens.transfer({
571
+ Token: currency
572
+ }, amount, addressSelection, fees);
573
+ // Multiple asset options need addressing
574
+ case 'Kico':
575
+ console.log('Transferring ' + currencyID + ' token from KICO');
576
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
577
+ case 'Kintsugi':
578
+ console.log('Transferring ' + currency + ' tokens from kintsugi');
579
+ return api.tx.xTokens.transfer({
580
+ Token: currency
581
+ }, amount, addressSelection, fees);
582
+ // Multiple asset options need addressing
583
+ case 'Listen':
584
+ console.log('Transferring ' + currencyID + ' token from Listen');
585
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
586
+ case 'Litmus':
587
+ console.log('Transferring tokens from Litmus');
588
+ return api.tx.xTokens.transfer('SelfReserve', amount, addressSelection, fees);
589
+ // Multiple asset options needs addressing
590
+ case 'Mangata':
591
+ console.log('Transferring ' + currencyID + ' token from Mangata');
592
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
593
+ case 'Moonriver':
594
+ console.log('Transferring tokens from Moonriver');
595
+ return api.tx.xTokens.transfer('SelfReserve', amount, addressSelection, fees);
596
+ // Multiple asset options needs addressing
597
+ case 'ParallelHeiko':
598
+ console.log('Transferring ' + currencyID + ' token from Parallel Heiko');
599
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
600
+ case 'Picasso':
601
+ console.log('Transferring ' + currencyID + ' token from Picasso');
602
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
603
+ case 'Pichiu':
604
+ console.log('Transferring ' + currency + ' tokens from Pichiu');
605
+ return api.tx.ormlXTokens.transfer(currency, amount, addressSelection, fees);
606
+ case 'Turing':
607
+ console.log('Transferring ' + currencyID + ' token from Turing');
608
+ return api.tx.xTokens.transfer(currencyID, amount, addressSelection, fees);
609
+ default:
610
+ throw new Error("Invalid node: ".concat(origin));
611
+ }
612
+ }
613
+ function constructPolkadotXCM(api, origin, header, addressSelection, currencySelection, scenario) {
614
+ switch (origin) {
615
+ // Polkadot polkadotXCM
616
+ case 'Statemint':
617
+ if (scenario === 'ParaToPara') {
618
+ console.log('Transferring selected tokens from Statemint'); // TESTED https://polkadot.subscan.io/xcm_message/polkadot-e4cdf1c59ffbb3d504adbc893d6b7d72665e484d
619
+ return api.tx.polkadotXcm.limitedReserveTransferAssets(header, addressSelection, currencySelection, 0, 'Unlimited');
620
+ } else if (scenario === 'ParaToRelay') {
621
+ console.log('Transferring DOT tokens from Statemint'); // TESTED https://polkadot.subscan.io/xcm_message/polkadot-c01158ff1a5c5a596138ed9d0f0f2bccc1d9c51d
622
+ return api.tx.polkadotXcm.limitedTeleportAssets(header, addressSelection, currencySelection, 0, 'Unlimited');
623
+ }
624
+ break;
625
+ case 'Astar':
626
+ if (scenario === 'ParaToPara') {
627
+ console.log('Transferring native tokens from Astar'); // TESTED https://polkadot.subscan.io/xcm_message/polkadot-f2b697df74ebe4b62853fe81b8b7d0522464972d
628
+ return api.tx.polkadotXcm.reserveTransferAssets(header, addressSelection, currencySelection, 0);
629
+ } else if (scenario === 'ParaToRelay') {
630
+ console.log('Transferring DOT tokens from Astar'); // TESTED https://polkadot.subscan.io/xcm_message/polkadot-58e4741f4c9f99bbdf65f16c81a233ad60a7ad1d
631
+ return api.tx.polkadotXcm.reserveWithdrawAssets(header, addressSelection, currencySelection, 0);
632
+ }
633
+ break;
634
+ case 'Darwinia':
635
+ if (scenario === 'ParaToPara') {
636
+ console.log('Transferring native tokens from Darwinia'); // TESTED https://polkadot.subscan.io/xcm_message/polkadot-55c5c36c8fe8794c8cfbea725c9f8bc5984c6b05
637
+ return api.tx.polkadotXcm.reserveTransferAssets(header, addressSelection, currencySelection, 0);
638
+ }
639
+ break;
640
+ // Kusama polkadotXCM
641
+ case 'Statemine':
642
+ if (scenario === 'ParaToPara') {
643
+ console.log('Transferring native tokens from Statemine'); // TESTED https://kusama.subscan.io/xcm_message/kusama-ddc2a48f0d8e0337832d7aae26f6c3053e1f4ffd
644
+ return api.tx.polkadotXcm.limitedReserveTransferAssets(header, addressSelection, currencySelection, 0, 'Unlimited');
645
+ } else if (scenario === 'ParaToRelay') {
646
+ console.log('Transferring KSM tokens from Statemine'); // TESTED https://kusama.subscan.io/xcm_message/kusama-8e423130a4d8b61679af95dbea18a55124f99672
647
+ return api.tx.polkadotXcm.limitedTeleportAssets(header, addressSelection, currencySelection, 0, 'Unlimited');
648
+ }
649
+ break;
650
+ case 'Encointer':
651
+ // NO PARA TO PARA SCENARIOS ON SUBSCAN
652
+ if (scenario === 'ParaToRelay') {
653
+ console.log('Transferring KSM tokens from Encointer'); // TESTED https://encointer.subscan.io/xcm_message/kusama-418501e86e947b16c4e4e9040694017e64f9b162
654
+ return api.tx.polkadotXcm.limitedTeleportAssets(header, addressSelection, currencySelection, 0, 'Unlimited');
655
+ }
656
+ break;
657
+ case 'Crab':
658
+ if (scenario === 'ParaToPara') {
659
+ console.log('Transferring native tokens from Crab'); // TESTED https://kusama.subscan.io/xcm_message/kusama-ce7396ec470ba0c6516a50075046ee65464572dc
660
+ return api.tx.polkadotXcm.reserveTransferAssets(header, addressSelection, currencySelection, 0);
661
+ }
662
+ break;
663
+ case 'Quartz':
664
+ if (scenario === 'ParaToPara') {
665
+ // TESTED https://quartz.subscan.io/xcm_message/kusama-f5b6580f8d7f97a8d33209d2b5b34d97454587e9
666
+ console.log('Transferring native tokens from Quartz');
667
+ return api.tx.polkadotXcm.reserveTransferAssets(header, addressSelection, currencySelection, 0);
668
+ }
669
+ break;
670
+ case 'Robonomics':
671
+ if (scenario === 'ParaToPara') {
672
+ // TESTED https://robonomics.subscan.io/xcm_message/kusama-e9641113dae59920e5cc0e012f1510ea0e2d0455
673
+ console.log('Transferring native tokens from Robonomics');
674
+ return api.tx.polkadotXcm.reserveTransferAssets(header, addressSelection, currencySelection, 0);
675
+ } else if (scenario === 'ParaToRelay') {
676
+ // TESTED https://robonomics.subscan.io/xcm_message/kusama-20b03208c99f2ef29d2d4b4cd4bc5659e54311ea
677
+ console.log('Transferring KSM tokens from Robonomics');
678
+ return api.tx.polkadotXcm.reserveWithdrawAssets(header, addressSelection, currencySelection, 0);
679
+ }
680
+ break;
681
+ case 'Shiden':
682
+ if (scenario === 'ParaToPara') {
683
+ console.log('Transferring native tokens from Shiden'); // Same as Astar, works.
684
+ return api.tx.polkadotXcm.reserveTransferAssets(header, addressSelection, currencySelection, 0);
685
+ } else if (scenario === 'ParaToRelay') {
686
+ console.log('Transferring KSM tokens from Shiden'); // https://shiden.subscan.io/xcm_message/kusama-97eb47c25c781affa557f36dbd117d49f7e1ab4e
687
+ return api.tx.polkadotXcm.reserveWithdrawAssets(header, addressSelection, currencySelection, 0);
688
+ }
689
+ break;
690
+ }
691
+ throw new Error("Invalid node/ Node does not support XCM at the moment: ".concat(origin));
692
+ }
693
+
694
+ var Acala$1 = {
695
+ paraId: 2000,
696
+ relayChainAssetSymbol: "DOT",
697
+ nativeAssets: [
698
+ {
699
+ symbol: "aUSD",
700
+ decimals: 12
701
+ },
702
+ {
703
+ symbol: "ACA",
704
+ decimals: 12
705
+ },
706
+ {
707
+ symbol: "TAP",
708
+ decimals: 12
709
+ },
710
+ {
711
+ symbol: "LcDOT",
712
+ decimals: 10
713
+ },
714
+ {
715
+ symbol: "LDOT",
716
+ decimals: 10
717
+ },
718
+ {
719
+ symbol: "DOT",
720
+ decimals: 10
721
+ }
722
+ ],
723
+ otherAssets: [
724
+ {
725
+ assetId: "0",
726
+ symbol: "tDOT",
727
+ decimals: 10
728
+ },
729
+ {
730
+ assetId: "8",
731
+ symbol: "EQD",
732
+ decimals: 9
733
+ },
734
+ {
735
+ assetId: "4",
736
+ symbol: "INTR",
737
+ decimals: 10
738
+ },
739
+ {
740
+ assetId: "6",
741
+ symbol: "WETH",
742
+ decimals: 18
743
+ },
744
+ {
745
+ assetId: "0x07df96d1341a7d16ba1ad431e2c847d978bc2bce",
746
+ symbol: "USDCet",
747
+ decimals: 6
748
+ },
749
+ {
750
+ assetId: "2",
751
+ symbol: "ASTR",
752
+ decimals: 18
753
+ },
754
+ {
755
+ assetId: "9",
756
+ symbol: "PHA",
757
+ decimals: 12
758
+ },
759
+ {
760
+ assetId: "1",
761
+ symbol: "PARA",
762
+ decimals: 12
763
+ },
764
+ {
765
+ assetId: "0xf4c723e61709d90f89939c1852f516e373d418a8",
766
+ symbol: "APE",
767
+ decimals: 18
768
+ },
769
+ {
770
+ assetId: "0",
771
+ symbol: "GLMR",
772
+ decimals: 18
773
+ },
774
+ {
775
+ assetId: "5",
776
+ symbol: "WBTC",
777
+ decimals: 8
778
+ },
779
+ {
780
+ assetId: "0x54a37a01cd75b616d63e0ab665bffdb0143c52ae",
781
+ symbol: "DAI",
782
+ decimals: 18
783
+ },
784
+ {
785
+ assetId: "0x5a4d6acdc4e3e5ab15717f407afe957f7a242578",
786
+ symbol: "WETH",
787
+ decimals: 18
788
+ },
789
+ {
790
+ assetId: "7",
791
+ symbol: "EQ",
792
+ decimals: 9
793
+ },
794
+ {
795
+ assetId: "0xc80084af223c8b598536178d9361dc55bfda6818",
796
+ symbol: "WBTC",
797
+ decimals: 8
798
+ },
799
+ {
800
+ assetId: "3",
801
+ symbol: "IBTC",
802
+ decimals: 8
803
+ }
804
+ ]
805
+ };
806
+ var Astar$1 = {
807
+ paraId: 2006,
808
+ relayChainAssetSymbol: "DOT",
809
+ nativeAssets: [
810
+ {
811
+ symbol: "ASTR",
812
+ decimals: 18
813
+ }
814
+ ],
815
+ otherAssets: [
816
+ {
817
+ assetId: "18446744073709551623",
818
+ symbol: "BNC",
819
+ decimals: 12
820
+ },
821
+ {
822
+ assetId: "18446744073709551619",
823
+ symbol: "GLMR",
824
+ decimals: 18
825
+ },
826
+ {
827
+ assetId: "1337",
828
+ symbol: "XC20",
829
+ decimals: 18
830
+ },
831
+ {
832
+ assetId: "1334",
833
+ symbol: "TOK",
834
+ decimals: 18
835
+ },
836
+ {
837
+ assetId: "862812",
838
+ symbol: "CUBO",
839
+ decimals: 9
840
+ },
841
+ {
842
+ assetId: "1328",
843
+ symbol: "ALGM",
844
+ decimals: 18
845
+ },
846
+ {
847
+ assetId: "1333",
848
+ symbol: "ASTR",
849
+ decimals: 20
850
+ },
851
+ {
852
+ assetId: "18446744073709551625",
853
+ symbol: "CLV",
854
+ decimals: 18
855
+ },
856
+ {
857
+ assetId: "18446744073709551620",
858
+ symbol: "IBTC",
859
+ decimals: 8
860
+ },
861
+ {
862
+ assetId: "18446744073709551621",
863
+ symbol: "INTR",
864
+ decimals: 10
865
+ },
866
+ {
867
+ assetId: "18446744073709551622",
868
+ symbol: "PHA",
869
+ decimals: 12
870
+ },
871
+ {
872
+ assetId: "1327",
873
+ symbol: "CHAI",
874
+ decimals: 18
875
+ },
876
+ {
877
+ assetId: "1338",
878
+ symbol: "TST",
879
+ decimals: 18
880
+ },
881
+ {
882
+ assetId: "1326",
883
+ symbol: "aASTR",
884
+ decimals: 18
885
+ },
886
+ {
887
+ assetId: "340282366920938463463374607431768211455",
888
+ symbol: "DOT",
889
+ decimals: 10
890
+ },
891
+ {
892
+ assetId: "1335",
893
+ symbol: "MDOT",
894
+ decimals: 10
895
+ },
896
+ {
897
+ assetId: "868367",
898
+ symbol: "VSC",
899
+ decimals: 9
900
+ },
901
+ {
902
+ assetId: "18446744073709551616",
903
+ symbol: "ACA",
904
+ decimals: 12
905
+ },
906
+ {
907
+ assetId: "18446744073709551624",
908
+ symbol: "vDOT",
909
+ decimals: 10
910
+ },
911
+ {
912
+ assetId: "18446744073709551618",
913
+ symbol: "LDOT",
914
+ decimals: 10
915
+ },
916
+ {
917
+ assetId: "18446744073709551617",
918
+ symbol: "aUSD",
919
+ decimals: 12
920
+ },
921
+ {
922
+ assetId: "1336",
923
+ symbol: "TDOT",
924
+ decimals: 18
925
+ },
926
+ {
927
+ assetId: "1329",
928
+ symbol: "PPC",
929
+ decimals: 8
930
+ },
931
+ {
932
+ assetId: "18446744073709551626",
933
+ symbol: "vsDOT",
934
+ decimals: 10
935
+ },
936
+ {
937
+ assetId: "18446744073709551629",
938
+ symbol: "EQD",
939
+ decimals: 9
940
+ },
941
+ {
942
+ assetId: "4294969280",
943
+ symbol: "USDT",
944
+ decimals: 6
945
+ },
946
+ {
947
+ assetId: "18446744073709551628",
948
+ symbol: "EQ",
949
+ decimals: 9
950
+ },
951
+ {
952
+ assetId: "18446744073709551627",
953
+ symbol: "RING",
954
+ decimals: 18
955
+ },
956
+ {
957
+ assetId: "1330",
958
+ symbol: "MMC",
959
+ decimals: 2
960
+ },
961
+ {
962
+ assetId: "1331",
963
+ symbol: "sDOT",
964
+ decimals: 10
965
+ },
966
+ {
967
+ assetId: "1332",
968
+ symbol: "sDOT",
969
+ decimals: 10
970
+ }
971
+ ]
972
+ };
973
+ var BifrostPolkadot$1 = {
974
+ paraId: 2030,
975
+ relayChainAssetSymbol: "DOT",
976
+ nativeAssets: [
977
+ {
978
+ symbol: "ASG",
979
+ decimals: 18
980
+ },
981
+ {
982
+ symbol: "BNC",
983
+ decimals: 12
984
+ },
985
+ {
986
+ symbol: "KUSD",
987
+ decimals: 12
988
+ },
989
+ {
990
+ symbol: "DOT",
991
+ decimals: 10
992
+ },
993
+ {
994
+ symbol: "KSM",
995
+ decimals: 12
996
+ },
997
+ {
998
+ symbol: "ETH",
999
+ decimals: 18
1000
+ },
1001
+ {
1002
+ symbol: "KAR",
1003
+ decimals: 12
1004
+ },
1005
+ {
1006
+ symbol: "ZLK",
1007
+ decimals: 12
1008
+ },
1009
+ {
1010
+ symbol: "PHA",
1011
+ decimals: 12
1012
+ },
1013
+ {
1014
+ symbol: "RMRK",
1015
+ decimals: 10
1016
+ },
1017
+ {
1018
+ symbol: "MOVR",
1019
+ decimals: 18
1020
+ }
1021
+ ],
1022
+ otherAssets: [
1023
+ ]
1024
+ };
1025
+ var Bitgreen$1 = {
1026
+ paraId: 2048,
1027
+ relayChainAssetSymbol: "DOT",
1028
+ nativeAssets: [
1029
+ {
1030
+ symbol: "BBB",
1031
+ decimals: 18
1032
+ }
1033
+ ],
1034
+ otherAssets: [
1035
+ ]
1036
+ };
1037
+ var Centrifuge$1 = {
1038
+ paraId: 2031,
1039
+ relayChainAssetSymbol: "DOT",
1040
+ nativeAssets: [
1041
+ {
1042
+ symbol: "CFG",
1043
+ decimals: 18
1044
+ }
1045
+ ],
1046
+ otherAssets: [
1047
+ {
1048
+ assetId: "3",
1049
+ symbol: "aUSD",
1050
+ decimals: 12
1051
+ },
1052
+ {
1053
+ assetId: "1",
1054
+ symbol: "USDT",
1055
+ decimals: 6
1056
+ },
1057
+ {
1058
+ assetId: "4",
1059
+ symbol: "GLMR",
1060
+ decimals: 18
1061
+ },
1062
+ {
1063
+ assetId: "2",
1064
+ symbol: "xcUSDC",
1065
+ decimals: 6
1066
+ }
1067
+ ]
1068
+ };
1069
+ var Clover$1 = {
1070
+ paraId: 2002,
1071
+ relayChainAssetSymbol: "DOT",
1072
+ nativeAssets: [
1073
+ {
1074
+ symbol: "CLV",
1075
+ decimals: 18
1076
+ }
1077
+ ],
1078
+ otherAssets: [
1079
+ {
1080
+ assetId: "11",
1081
+ symbol: "PARA",
1082
+ decimals: 12
1083
+ },
1084
+ {
1085
+ assetId: "12",
1086
+ symbol: "ASTR",
1087
+ decimals: 18
1088
+ }
1089
+ ]
1090
+ };
1091
+ var ComposableFinance$1 = {
1092
+ paraId: 2019,
1093
+ relayChainAssetSymbol: "DOT",
1094
+ nativeAssets: [
1095
+ {
1096
+ symbol: "LAYR",
1097
+ decimals: 12
1098
+ }
1099
+ ],
1100
+ otherAssets: [
1101
+ ]
1102
+ };
1103
+ var Darwinia$1 = {
1104
+ paraId: 2046,
1105
+ relayChainAssetSymbol: "DOT",
1106
+ nativeAssets: [
1107
+ {
1108
+ symbol: "RING",
1109
+ decimals: 18
1110
+ }
1111
+ ],
1112
+ otherAssets: [
1113
+ ]
1114
+ };
1115
+ var HydraDX$1 = {
1116
+ paraId: 2034,
1117
+ relayChainAssetSymbol: "DOT",
1118
+ nativeAssets: [
1119
+ {
1120
+ symbol: "HDX",
1121
+ decimals: 12
1122
+ }
1123
+ ],
1124
+ otherAssets: [
1125
+ ]
1126
+ };
1127
+ var Interlay$1 = {
1128
+ paraId: 2032,
1129
+ relayChainAssetSymbol: "DOT",
1130
+ nativeAssets: [
1131
+ {
1132
+ symbol: "INTR",
1133
+ decimals: 10
1134
+ },
1135
+ {
1136
+ symbol: "IBTC",
1137
+ decimals: 8
1138
+ },
1139
+ {
1140
+ symbol: "DOT",
1141
+ decimals: 10
1142
+ },
1143
+ {
1144
+ symbol: "KINT",
1145
+ decimals: 12
1146
+ },
1147
+ {
1148
+ symbol: "KBTC",
1149
+ decimals: 8
1150
+ },
1151
+ {
1152
+ symbol: "KSM",
1153
+ decimals: 12
1154
+ }
1155
+ ],
1156
+ otherAssets: [
1157
+ {
1158
+ assetId: "1",
1159
+ symbol: "LDOT",
1160
+ decimals: 10
1161
+ },
1162
+ {
1163
+ assetId: "2",
1164
+ symbol: "USDT",
1165
+ decimals: 6
1166
+ }
1167
+ ]
1168
+ };
1169
+ var Kylin$1 = {
1170
+ paraId: 2052,
1171
+ relayChainAssetSymbol: "DOT",
1172
+ nativeAssets: [
1173
+ {
1174
+ symbol: "KYL",
1175
+ decimals: 18
1176
+ }
1177
+ ],
1178
+ otherAssets: [
1179
+ ]
1180
+ };
1181
+ var Litentry$1 = {
1182
+ paraId: 2013,
1183
+ relayChainAssetSymbol: "DOT",
1184
+ nativeAssets: [
1185
+ {
1186
+ symbol: "LIT",
1187
+ decimals: 12
1188
+ }
1189
+ ],
1190
+ otherAssets: [
1191
+ ]
1192
+ };
1193
+ var Moonbeam$1 = {
1194
+ paraId: 2004,
1195
+ relayChainAssetSymbol: "DOT",
1196
+ nativeAssets: [
1197
+ {
1198
+ symbol: "GLMR",
1199
+ decimals: 18
1200
+ }
1201
+ ],
1202
+ otherAssets: [
1203
+ {
1204
+ assetId: "125699734534028342599692732320197985871",
1205
+ symbol: "xcRING",
1206
+ decimals: 18
1207
+ },
1208
+ {
1209
+ assetId: "187224307232923873519830480073807488153",
1210
+ symbol: "xcEQD",
1211
+ decimals: 9
1212
+ },
1213
+ {
1214
+ assetId: "190590555344745888270686124937537713878",
1215
+ symbol: "xcEQ",
1216
+ decimals: 9
1217
+ },
1218
+ {
1219
+ assetId: "224077081838586484055667086558292981199",
1220
+ symbol: "xcASTR",
1221
+ decimals: 18
1222
+ },
1223
+ {
1224
+ assetId: "110021739665376159354538090254163045594",
1225
+ symbol: "xcaUSD",
1226
+ decimals: 12
1227
+ },
1228
+ {
1229
+ assetId: "311091173110107856861649819128533077277",
1230
+ symbol: "xcUSDT",
1231
+ decimals: 6
1232
+ },
1233
+ {
1234
+ assetId: "120637696315203257380661607956669368914",
1235
+ symbol: "xcIBTC",
1236
+ decimals: 8
1237
+ },
1238
+ {
1239
+ assetId: "101170542313601871197860408087030232491",
1240
+ symbol: "xcINTR",
1241
+ decimals: 10
1242
+ },
1243
+ {
1244
+ assetId: "165823357460190568952172802245839421906",
1245
+ symbol: "xcBNC",
1246
+ decimals: 12
1247
+ },
1248
+ {
1249
+ assetId: "32615670524745285411807346420584982855",
1250
+ symbol: "xcPARA",
1251
+ decimals: 12
1252
+ },
1253
+ {
1254
+ assetId: "42259045809535163221576417993425387648",
1255
+ symbol: "xcDOT",
1256
+ decimals: 10
1257
+ },
1258
+ {
1259
+ assetId: "224821240862170613278369189818311486111",
1260
+ symbol: "xcACA",
1261
+ decimals: 12
1262
+ },
1263
+ {
1264
+ assetId: "132685552157663328694213725410064821485",
1265
+ symbol: "xcPHA",
1266
+ decimals: 12
1267
+ }
1268
+ ]
1269
+ };
1270
+ var Parallel$1 = {
1271
+ paraId: 2012,
1272
+ relayChainAssetSymbol: "DOT",
1273
+ nativeAssets: [
1274
+ {
1275
+ symbol: "PARA",
1276
+ decimals: 12
1277
+ }
1278
+ ],
1279
+ otherAssets: [
1280
+ {
1281
+ assetId: "6002",
1282
+ symbol: "LP-DOT/PARA",
1283
+ decimals: 12
1284
+ },
1285
+ {
1286
+ assetId: "6007",
1287
+ symbol: "LP-DOT/cDOT-8/15",
1288
+ decimals: 12
1289
+ },
1290
+ {
1291
+ assetId: "110",
1292
+ symbol: "LDOT",
1293
+ decimals: 10
1294
+ },
1295
+ {
1296
+ assetId: "1001",
1297
+ symbol: "sDOT",
1298
+ decimals: 10
1299
+ },
1300
+ {
1301
+ assetId: "120",
1302
+ symbol: "INTR",
1303
+ decimals: 10
1304
+ },
1305
+ {
1306
+ assetId: "108",
1307
+ symbol: "ACA",
1308
+ decimals: 12
1309
+ },
1310
+ {
1311
+ assetId: "200070014",
1312
+ symbol: "cDOT-7/14",
1313
+ decimals: 10
1314
+ },
1315
+ {
1316
+ assetId: "6009",
1317
+ symbol: "LP-PHA/PARA",
1318
+ decimals: 12
1319
+ },
1320
+ {
1321
+ assetId: "101",
1322
+ symbol: "DOT",
1323
+ decimals: 10
1324
+ },
1325
+ {
1326
+ assetId: "6005",
1327
+ symbol: "LP-DOT/cDOT-7/14",
1328
+ decimals: 12
1329
+ },
1330
+ {
1331
+ assetId: "200080015",
1332
+ symbol: "cDOT-8/15",
1333
+ decimals: 10
1334
+ },
1335
+ {
1336
+ assetId: "122",
1337
+ symbol: "IBTC",
1338
+ decimals: 8
1339
+ },
1340
+ {
1341
+ assetId: "6016",
1342
+ symbol: "LP-INTR/PARA",
1343
+ decimals: 12
1344
+ },
1345
+ {
1346
+ assetId: "6004",
1347
+ symbol: "LP-DOT/cDOT-6/13",
1348
+ decimals: 12
1349
+ },
1350
+ {
1351
+ assetId: "200110018",
1352
+ symbol: "cDOT-11/18",
1353
+ decimals: 10
1354
+ },
1355
+ {
1356
+ assetId: "6013",
1357
+ symbol: "LP-PARA/cDOT-8/15",
1358
+ decimals: 12
1359
+ },
1360
+ {
1361
+ assetId: "104",
1362
+ symbol: "AUSD",
1363
+ decimals: 12
1364
+ },
1365
+ {
1366
+ assetId: "6003",
1367
+ symbol: "LP-DOT/sDOT",
1368
+ decimals: 12
1369
+ },
1370
+ {
1371
+ assetId: "6017",
1372
+ symbol: "LP-IBTC/PARA",
1373
+ decimals: 12
1374
+ },
1375
+ {
1376
+ assetId: "102",
1377
+ symbol: "USDT",
1378
+ decimals: 6
1379
+ },
1380
+ {
1381
+ assetId: "106",
1382
+ symbol: "lcDOT",
1383
+ decimals: 10
1384
+ },
1385
+ {
1386
+ assetId: "114",
1387
+ symbol: "GLMR",
1388
+ decimals: 18
1389
+ },
1390
+ {
1391
+ assetId: "6008",
1392
+ symbol: "LP-GLMR/PARA",
1393
+ decimals: 12
1394
+ },
1395
+ {
1396
+ assetId: "130",
1397
+ symbol: "CLV",
1398
+ decimals: 18
1399
+ },
1400
+ {
1401
+ assetId: "4294957296",
1402
+ symbol: "DOT_U",
1403
+ decimals: 10
1404
+ },
1405
+ {
1406
+ assetId: "112",
1407
+ symbol: "ASTR",
1408
+ decimals: 18
1409
+ },
1410
+ {
1411
+ assetId: "200100017",
1412
+ symbol: "cDOT-10/17",
1413
+ decimals: 10
1414
+ },
1415
+ {
1416
+ assetId: "6011",
1417
+ symbol: "LP-lcDOT/PARA",
1418
+ decimals: 12
1419
+ },
1420
+ {
1421
+ assetId: "6012",
1422
+ symbol: "LP-PARA/cDOT-7/14",
1423
+ decimals: 12
1424
+ },
1425
+ {
1426
+ assetId: "6010",
1427
+ symbol: "LP-USDT/PARA",
1428
+ decimals: 12
1429
+ },
1430
+ {
1431
+ assetId: "200060013",
1432
+ symbol: "cDOT-6/13",
1433
+ decimals: 10
1434
+ },
1435
+ {
1436
+ assetId: "115",
1437
+ symbol: "PHA",
1438
+ decimals: 12
1439
+ },
1440
+ {
1441
+ assetId: "200090016",
1442
+ symbol: "cDOT-9/16",
1443
+ decimals: 10
1444
+ },
1445
+ {
1446
+ assetId: "6014",
1447
+ symbol: "LP-ACA/PARA",
1448
+ decimals: 12
1449
+ },
1450
+ {
1451
+ assetId: "6006",
1452
+ symbol: "LP-PARA/cDOT-6/13",
1453
+ decimals: 12
1454
+ },
1455
+ {
1456
+ assetId: "6015",
1457
+ symbol: "LP-LDOT/PARA",
1458
+ decimals: 12
1459
+ }
1460
+ ]
1461
+ };
1462
+ var Statemint$1 = {
1463
+ paraId: 1000,
1464
+ relayChainAssetSymbol: "DOT",
1465
+ nativeAssets: [
1466
+ {
1467
+ symbol: "DOT",
1468
+ decimals: 10
1469
+ }
1470
+ ],
1471
+ otherAssets: [
1472
+ {
1473
+ assetId: "100",
1474
+ symbol: "WETH",
1475
+ decimals: 18
1476
+ },
1477
+ {
1478
+ assetId: "123",
1479
+ symbol: "123",
1480
+ decimals: 20
1481
+ },
1482
+ {
1483
+ assetId: "10",
1484
+ symbol: "BEAST",
1485
+ decimals: 8
1486
+ },
1487
+ {
1488
+ assetId: "4",
1489
+ symbol: "EFI",
1490
+ decimals: 18
1491
+ },
1492
+ {
1493
+ assetId: "21",
1494
+ symbol: "WBTC",
1495
+ decimals: 8
1496
+ },
1497
+ {
1498
+ assetId: "999",
1499
+ symbol: "gold",
1500
+ decimals: 20
1501
+ },
1502
+ {
1503
+ assetId: "101",
1504
+ symbol: "DOTMA",
1505
+ decimals: 0
1506
+ },
1507
+ {
1508
+ assetId: "6",
1509
+ symbol: "LPHP",
1510
+ decimals: 2
1511
+ },
1512
+ {
1513
+ assetId: "77",
1514
+ symbol: "TRQ",
1515
+ decimals: 18
1516
+ },
1517
+ {
1518
+ assetId: "2",
1519
+ symbol: "BTC",
1520
+ decimals: 20
1521
+ },
1522
+ {
1523
+ assetId: "868367",
1524
+ symbol: "VSC",
1525
+ decimals: 9
1526
+ },
1527
+ {
1528
+ assetId: "5",
1529
+ symbol: "PLX",
1530
+ decimals: 9
1531
+ },
1532
+ {
1533
+ assetId: "7",
1534
+ symbol: "lucky7",
1535
+ decimals: 20
1536
+ },
1537
+ {
1538
+ assetId: "1984",
1539
+ symbol: "USDt",
1540
+ decimals: 6
1541
+ },
1542
+ {
1543
+ assetId: "20090103",
1544
+ symbol: "BTC",
1545
+ decimals: 20
1546
+ },
1547
+ {
1548
+ assetId: "777",
1549
+ symbol: "777",
1550
+ decimals: 20
1551
+ },
1552
+ {
1553
+ assetId: "8",
1554
+ symbol: "JOE",
1555
+ decimals: 9
1556
+ },
1557
+ {
1558
+ assetId: "1",
1559
+ symbol: "no1",
1560
+ decimals: 20
1561
+ },
1562
+ {
1563
+ assetId: "3",
1564
+ symbol: "DOT",
1565
+ decimals: 20
1566
+ },
1567
+ {
1568
+ assetId: "1337",
1569
+ symbol: "USDC",
1570
+ decimals: 6
1571
+ },
1572
+ {
1573
+ assetId: "666",
1574
+ symbol: "DANGER",
1575
+ decimals: 8
1576
+ },
1577
+ {
1578
+ assetId: "9",
1579
+ symbol: "PINT",
1580
+ decimals: 12
1581
+ },
1582
+ {
1583
+ assetId: "862812",
1584
+ symbol: "CUBO",
1585
+ decimals: 9
1586
+ }
1587
+ ]
1588
+ };
1589
+ var Altair$1 = {
1590
+ paraId: 2088,
1591
+ relayChainAssetSymbol: "KSM",
1592
+ nativeAssets: [
1593
+ {
1594
+ symbol: "AIR",
1595
+ decimals: 18
1596
+ }
1597
+ ],
1598
+ otherAssets: [
1599
+ ]
1600
+ };
1601
+ var Amplitude$1 = {
1602
+ paraId: 2124,
1603
+ relayChainAssetSymbol: "KSM",
1604
+ nativeAssets: [
1605
+ {
1606
+ symbol: "AMPE",
1607
+ decimals: 12
1608
+ }
1609
+ ],
1610
+ otherAssets: [
1611
+ ]
1612
+ };
1613
+ var Bajun$1 = {
1614
+ paraId: 2119,
1615
+ relayChainAssetSymbol: "KSM",
1616
+ nativeAssets: [
1617
+ {
1618
+ symbol: "BAJU",
1619
+ decimals: 12
1620
+ }
1621
+ ],
1622
+ otherAssets: [
1623
+ ]
1624
+ };
1625
+ var Basilisk$1 = {
1626
+ paraId: 2090,
1627
+ relayChainAssetSymbol: "KSM",
1628
+ nativeAssets: [
1629
+ {
1630
+ symbol: "BSX",
1631
+ decimals: 12
1632
+ }
1633
+ ],
1634
+ otherAssets: [
1635
+ {
1636
+ assetId: "13",
1637
+ symbol: "DAI",
1638
+ decimals: 18
1639
+ },
1640
+ {
1641
+ assetId: "1",
1642
+ symbol: "KSM",
1643
+ decimals: 12
1644
+ },
1645
+ {
1646
+ assetId: "9",
1647
+ symbol: "USDCet",
1648
+ decimals: 6
1649
+ },
1650
+ {
1651
+ assetId: "14",
1652
+ symbol: "USDT",
1653
+ decimals: 6
1654
+ },
1655
+ {
1656
+ assetId: "2",
1657
+ symbol: "aUSD",
1658
+ decimals: 12
1659
+ },
1660
+ {
1661
+ assetId: "10",
1662
+ symbol: "wETH",
1663
+ decimals: 18
1664
+ },
1665
+ {
1666
+ assetId: "0",
1667
+ symbol: "BSX",
1668
+ decimals: 12
1669
+ },
1670
+ {
1671
+ assetId: "6",
1672
+ symbol: "TNKR",
1673
+ decimals: 12
1674
+ },
1675
+ {
1676
+ assetId: "11",
1677
+ symbol: "wBTC",
1678
+ decimals: 8
1679
+ },
1680
+ {
1681
+ assetId: "12",
1682
+ symbol: "wUSDT",
1683
+ decimals: 6
1684
+ }
1685
+ ]
1686
+ };
1687
+ var BifrostKusama$1 = {
1688
+ paraId: 2001,
1689
+ relayChainAssetSymbol: "KSM",
1690
+ nativeAssets: [
1691
+ {
1692
+ symbol: "BNC",
1693
+ decimals: 12
1694
+ },
1695
+ {
1696
+ symbol: "KUSD",
1697
+ decimals: 12
1698
+ },
1699
+ {
1700
+ symbol: "DOT",
1701
+ decimals: 10
1702
+ },
1703
+ {
1704
+ symbol: "KSM",
1705
+ decimals: 12
1706
+ },
1707
+ {
1708
+ symbol: "KAR",
1709
+ decimals: 12
1710
+ },
1711
+ {
1712
+ symbol: "ZLK",
1713
+ decimals: 18
1714
+ },
1715
+ {
1716
+ symbol: "PHA",
1717
+ decimals: 12
1718
+ },
1719
+ {
1720
+ symbol: "RMRK",
1721
+ decimals: 10
1722
+ },
1723
+ {
1724
+ symbol: "MOVR",
1725
+ decimals: 18
1726
+ }
1727
+ ],
1728
+ otherAssets: [
1729
+ ]
1730
+ };
1731
+ var Calamari$1 = {
1732
+ paraId: 2084,
1733
+ relayChainAssetSymbol: "KSM",
1734
+ nativeAssets: [
1735
+ {
1736
+ symbol: "KMA",
1737
+ decimals: 12
1738
+ }
1739
+ ],
1740
+ otherAssets: [
1741
+ {
1742
+ assetId: "10",
1743
+ symbol: "LKSM",
1744
+ decimals: 12
1745
+ },
1746
+ {
1747
+ assetId: "11",
1748
+ symbol: "MOVR",
1749
+ decimals: 18
1750
+ },
1751
+ {
1752
+ assetId: "13",
1753
+ symbol: "PHA",
1754
+ decimals: 12
1755
+ },
1756
+ {
1757
+ assetId: "8",
1758
+ symbol: "KAR",
1759
+ decimals: 12
1760
+ },
1761
+ {
1762
+ assetId: "12",
1763
+ symbol: "KSM",
1764
+ decimals: 12
1765
+ },
1766
+ {
1767
+ assetId: "9",
1768
+ symbol: "AUSD",
1769
+ decimals: 12
1770
+ }
1771
+ ]
1772
+ };
1773
+ var Crab$1 = {
1774
+ paraId: 2105,
1775
+ relayChainAssetSymbol: "KSM",
1776
+ nativeAssets: [
1777
+ {
1778
+ symbol: "CRAB",
1779
+ decimals: 18
1780
+ }
1781
+ ],
1782
+ otherAssets: [
1783
+ ]
1784
+ };
1785
+ var CrustShadow$1 = {
1786
+ paraId: 2012,
1787
+ relayChainAssetSymbol: "KSM",
1788
+ nativeAssets: [
1789
+ {
1790
+ symbol: "CSM",
1791
+ decimals: 12
1792
+ }
1793
+ ],
1794
+ otherAssets: [
1795
+ {
1796
+ assetId: "16797826370226091782818345603793389938",
1797
+ symbol: "SDN",
1798
+ decimals: 18
1799
+ },
1800
+ {
1801
+ assetId: "108036400430056508975016746969135344601",
1802
+ symbol: "XRT",
1803
+ decimals: 9
1804
+ },
1805
+ {
1806
+ assetId: "173481220575862801646329923366065693029",
1807
+ symbol: "CRAB",
1808
+ decimals: 18
1809
+ },
1810
+ {
1811
+ assetId: "214920334981412447805621250067209749032",
1812
+ symbol: "AUSD",
1813
+ decimals: 12
1814
+ },
1815
+ {
1816
+ assetId: "232263652204149413431520870009560565298",
1817
+ symbol: "MOVR",
1818
+ decimals: 18
1819
+ },
1820
+ {
1821
+ assetId: "10810581592933651521121702237638664357",
1822
+ symbol: "KAR",
1823
+ decimals: 12
1824
+ },
1825
+ {
1826
+ assetId: "319623561105283008236062145480775032445",
1827
+ symbol: "BNC",
1828
+ decimals: 12
1829
+ }
1830
+ ]
1831
+ };
1832
+ var Dorafactory$1 = {
1833
+ paraId: 2115,
1834
+ relayChainAssetSymbol: "KSM",
1835
+ nativeAssets: [
1836
+ {
1837
+ symbol: "DORA",
1838
+ decimals: 12
1839
+ }
1840
+ ],
1841
+ otherAssets: [
1842
+ ]
1843
+ };
1844
+ var Encointer$1 = {
1845
+ paraId: 1001,
1846
+ relayChainAssetSymbol: "KSM",
1847
+ nativeAssets: [
1848
+ {
1849
+ symbol: "KSM",
1850
+ decimals: 12
1851
+ }
1852
+ ],
1853
+ otherAssets: [
1854
+ ]
1855
+ };
1856
+ var Imbue$1 = {
1857
+ paraId: 2121,
1858
+ relayChainAssetSymbol: "KSM",
1859
+ nativeAssets: [
1860
+ {
1861
+ symbol: "IMBU",
1862
+ decimals: 12
1863
+ }
1864
+ ],
1865
+ otherAssets: [
1866
+ ]
1867
+ };
1868
+ var Integritee$1 = {
1869
+ paraId: 2015,
1870
+ relayChainAssetSymbol: "KSM",
1871
+ nativeAssets: [
1872
+ {
1873
+ symbol: "TEER",
1874
+ decimals: 12
1875
+ }
1876
+ ],
1877
+ otherAssets: [
1878
+ ]
1879
+ };
1880
+ var InvArchTinker$1 = {
1881
+ paraId: 2125,
1882
+ relayChainAssetSymbol: "KSM",
1883
+ nativeAssets: [
1884
+ {
1885
+ symbol: "TNKR",
1886
+ decimals: 12
1887
+ }
1888
+ ],
1889
+ otherAssets: [
1890
+ ]
1891
+ };
1892
+ var Kico$1 = {
1893
+ paraId: 2107,
1894
+ relayChainAssetSymbol: "KSM",
1895
+ nativeAssets: [
1896
+ {
1897
+ symbol: "KICO",
1898
+ decimals: 14
1899
+ }
1900
+ ],
1901
+ otherAssets: [
1902
+ {
1903
+ assetId: "100",
1904
+ symbol: "KSM",
1905
+ decimals: 12
1906
+ },
1907
+ {
1908
+ assetId: "0",
1909
+ symbol: "KICO",
1910
+ decimals: 14
1911
+ },
1912
+ {
1913
+ assetId: "10",
1914
+ symbol: "aUSD",
1915
+ decimals: 12
1916
+ },
1917
+ {
1918
+ assetId: "11",
1919
+ symbol: "SOL",
1920
+ decimals: 12
1921
+ },
1922
+ {
1923
+ assetId: "4000000004",
1924
+ symbol: "aUSD-KSM",
1925
+ decimals: 10
1926
+ },
1927
+ {
1928
+ assetId: "4000000000",
1929
+ symbol: "KICO-aUSD",
1930
+ decimals: 10
1931
+ },
1932
+ {
1933
+ assetId: "4000000001",
1934
+ symbol: "KSM-KICO",
1935
+ decimals: 10
1936
+ },
1937
+ {
1938
+ assetId: "13",
1939
+ symbol: "LIKE",
1940
+ decimals: 12
1941
+ },
1942
+ {
1943
+ assetId: "102",
1944
+ symbol: "KAR",
1945
+ decimals: 12
1946
+ },
1947
+ {
1948
+ assetId: "4000000002",
1949
+ symbol: "KAR-KICO",
1950
+ decimals: 10
1951
+ },
1952
+ {
1953
+ assetId: "4000000003",
1954
+ symbol: "KAR-aUSD",
1955
+ decimals: 10
1956
+ },
1957
+ {
1958
+ assetId: "12",
1959
+ symbol: "LT",
1960
+ decimals: 12
1961
+ }
1962
+ ]
1963
+ };
1964
+ var Karura$1 = {
1965
+ paraId: 2000,
1966
+ relayChainAssetSymbol: "KSM",
1967
+ nativeAssets: [
1968
+ {
1969
+ symbol: "LKSM",
1970
+ decimals: 12
1971
+ },
1972
+ {
1973
+ symbol: "KAR",
1974
+ decimals: 12
1975
+ },
1976
+ {
1977
+ symbol: "BNC",
1978
+ decimals: 12
1979
+ },
1980
+ {
1981
+ symbol: "TAI",
1982
+ decimals: 12
1983
+ },
1984
+ {
1985
+ symbol: "PHA",
1986
+ decimals: 12
1987
+ },
1988
+ {
1989
+ symbol: "KINT",
1990
+ decimals: 12
1991
+ },
1992
+ {
1993
+ symbol: "VSKSM",
1994
+ decimals: 12
1995
+ },
1996
+ {
1997
+ symbol: "KSM",
1998
+ decimals: 12
1999
+ },
2000
+ {
2001
+ symbol: "aUSD",
2002
+ decimals: 12
2003
+ },
2004
+ {
2005
+ symbol: "KBTC",
2006
+ decimals: 8
2007
+ }
2008
+ ],
2009
+ otherAssets: [
2010
+ {
2011
+ assetId: "10",
2012
+ symbol: "KMA",
2013
+ decimals: 12
2014
+ },
2015
+ {
2016
+ assetId: "14",
2017
+ symbol: "GENS",
2018
+ decimals: 9
2019
+ },
2020
+ {
2021
+ assetId: "0",
2022
+ symbol: "taiKSM",
2023
+ decimals: 12
2024
+ },
2025
+ {
2026
+ assetId: "19",
2027
+ symbol: "LT",
2028
+ decimals: 12
2029
+ },
2030
+ {
2031
+ assetId: "8",
2032
+ symbol: "TEER",
2033
+ decimals: 12
2034
+ },
2035
+ {
2036
+ assetId: "16",
2037
+ symbol: "TUR",
2038
+ decimals: 10
2039
+ },
2040
+ {
2041
+ assetId: "4",
2042
+ symbol: "HKO",
2043
+ decimals: 12
2044
+ },
2045
+ {
2046
+ assetId: "6",
2047
+ symbol: "KICO",
2048
+ decimals: 14
2049
+ },
2050
+ {
2051
+ assetId: "2",
2052
+ symbol: "QTZ",
2053
+ decimals: 18
2054
+ },
2055
+ {
2056
+ assetId: "20",
2057
+ symbol: "LIT",
2058
+ decimals: 12
2059
+ },
2060
+ {
2061
+ assetId: "9",
2062
+ symbol: "NEER",
2063
+ decimals: 18
2064
+ },
2065
+ {
2066
+ assetId: "1",
2067
+ symbol: "ARIS",
2068
+ decimals: 8
2069
+ },
2070
+ {
2071
+ assetId: "0",
2072
+ symbol: "RMRK",
2073
+ decimals: 10
2074
+ },
2075
+ {
2076
+ assetId: "5",
2077
+ symbol: "CSM",
2078
+ decimals: 12
2079
+ },
2080
+ {
2081
+ assetId: "0x1f3a10587a20114ea25ba1b388ee2dd4a337ce27",
2082
+ symbol: "USDCet",
2083
+ decimals: 6
2084
+ },
2085
+ {
2086
+ assetId: "17",
2087
+ symbol: "PCHU",
2088
+ decimals: 18
2089
+ },
2090
+ {
2091
+ assetId: "13",
2092
+ symbol: "CRAB",
2093
+ decimals: 18
2094
+ },
2095
+ {
2096
+ assetId: "0x4bb6afb5fa2b07a5d1c499e1c3ddb5a15e709a71",
2097
+ symbol: "DAI",
2098
+ decimals: 18
2099
+ },
2100
+ {
2101
+ assetId: "11",
2102
+ symbol: "BSX",
2103
+ decimals: 12
2104
+ },
2105
+ {
2106
+ assetId: "12",
2107
+ symbol: "AIR",
2108
+ decimals: 18
2109
+ },
2110
+ {
2111
+ assetId: "0xe20683ad1ed8bbeed7e1ae74be10f19d8045b530",
2112
+ symbol: "waUSD",
2113
+ decimals: 12
2114
+ },
2115
+ {
2116
+ assetId: "7",
2117
+ symbol: "USDT",
2118
+ decimals: 6
2119
+ },
2120
+ {
2121
+ assetId: "18",
2122
+ symbol: "SDN",
2123
+ decimals: 18
2124
+ },
2125
+ {
2126
+ assetId: "1",
2127
+ symbol: "3USD",
2128
+ decimals: 12
2129
+ },
2130
+ {
2131
+ assetId: "15",
2132
+ symbol: "EQD",
2133
+ decimals: 9
2134
+ },
2135
+ {
2136
+ assetId: "3",
2137
+ symbol: "MOVR",
2138
+ decimals: 18
2139
+ }
2140
+ ]
2141
+ };
2142
+ var Kintsugi$1 = {
2143
+ paraId: 2092,
2144
+ relayChainAssetSymbol: "KSM",
2145
+ nativeAssets: [
2146
+ {
2147
+ symbol: "KINT",
2148
+ decimals: 12
2149
+ },
2150
+ {
2151
+ symbol: "KBTC",
2152
+ decimals: 8
2153
+ },
2154
+ {
2155
+ symbol: "KSM",
2156
+ decimals: 12
2157
+ },
2158
+ {
2159
+ symbol: "INTR",
2160
+ decimals: 10
2161
+ },
2162
+ {
2163
+ symbol: "IBTC",
2164
+ decimals: 8
2165
+ },
2166
+ {
2167
+ symbol: "DOT",
2168
+ decimals: 10
2169
+ }
2170
+ ],
2171
+ otherAssets: [
2172
+ {
2173
+ assetId: "5",
2174
+ symbol: "VKSM",
2175
+ decimals: 12
2176
+ },
2177
+ {
2178
+ assetId: "1",
2179
+ symbol: "AUSD",
2180
+ decimals: 12
2181
+ },
2182
+ {
2183
+ assetId: "2",
2184
+ symbol: "LKSM",
2185
+ decimals: 12
2186
+ },
2187
+ {
2188
+ assetId: "3",
2189
+ symbol: "USDT",
2190
+ decimals: 6
2191
+ },
2192
+ {
2193
+ assetId: "4",
2194
+ symbol: "MOVR",
2195
+ decimals: 18
2196
+ }
2197
+ ]
2198
+ };
2199
+ var Listen$1 = {
2200
+ paraId: 2118,
2201
+ relayChainAssetSymbol: "KSM",
2202
+ nativeAssets: [
2203
+ {
2204
+ symbol: "LT",
2205
+ decimals: 12
2206
+ }
2207
+ ],
2208
+ otherAssets: [
2209
+ {
2210
+ assetId: "100",
2211
+ symbol: "KT",
2212
+ decimals: 12
2213
+ },
2214
+ {
2215
+ assetId: "0",
2216
+ symbol: "LT",
2217
+ decimals: 12
2218
+ },
2219
+ {
2220
+ assetId: "10",
2221
+ symbol: "KICO",
2222
+ decimals: 14
2223
+ },
2224
+ {
2225
+ assetId: "129",
2226
+ symbol: "aUSD",
2227
+ decimals: 12
2228
+ },
2229
+ {
2230
+ assetId: "2",
2231
+ symbol: "KSM",
2232
+ decimals: 12
2233
+ },
2234
+ {
2235
+ assetId: "5",
2236
+ symbol: "USDT",
2237
+ decimals: 12
2238
+ },
2239
+ {
2240
+ assetId: "128",
2241
+ symbol: "KAR",
2242
+ decimals: 12
2243
+ },
2244
+ {
2245
+ assetId: "131",
2246
+ symbol: "LKSM",
2247
+ decimals: 12
2248
+ },
2249
+ {
2250
+ assetId: "1",
2251
+ symbol: "LIKE",
2252
+ decimals: 12
2253
+ }
2254
+ ]
2255
+ };
2256
+ var Litmus$1 = {
2257
+ paraId: 2106,
2258
+ relayChainAssetSymbol: "KSM",
2259
+ nativeAssets: [
2260
+ {
2261
+ symbol: "LIT",
2262
+ decimals: 12
2263
+ }
2264
+ ],
2265
+ otherAssets: [
2266
+ ]
2267
+ };
2268
+ var Mangata$1 = {
2269
+ paraId: 2110,
2270
+ relayChainAssetSymbol: "KSM",
2271
+ nativeAssets: [
2272
+ {
2273
+ symbol: "MGX",
2274
+ decimals: 18
2275
+ }
2276
+ ],
2277
+ otherAssets: [
2278
+ {
2279
+ assetId: "7",
2280
+ symbol: "TUR",
2281
+ decimals: 10
2282
+ },
2283
+ {
2284
+ assetId: "13",
2285
+ symbol: "TKN0x0000000B-TKN0x00000004",
2286
+ decimals: 18
2287
+ },
2288
+ {
2289
+ assetId: "5",
2290
+ symbol: "TKN0x00000004-TKN0x00000000",
2291
+ decimals: 18
2292
+ },
2293
+ {
2294
+ assetId: "8",
2295
+ symbol: "TKN0x00000000-TKN0x00000007",
2296
+ decimals: 18
2297
+ },
2298
+ {
2299
+ assetId: "1",
2300
+ symbol: "ETH",
2301
+ decimals: 18
2302
+ },
2303
+ {
2304
+ assetId: "19",
2305
+ symbol: "TKN0x00000010-TKN0x00000004",
2306
+ decimals: 18
2307
+ },
2308
+ {
2309
+ assetId: "9",
2310
+ symbol: "TKN0x00000004-TKN0x00000007",
2311
+ decimals: 18
2312
+ },
2313
+ {
2314
+ assetId: "16",
2315
+ symbol: "vsKSM",
2316
+ decimals: 12
2317
+ },
2318
+ {
2319
+ assetId: "14",
2320
+ symbol: "BNC",
2321
+ decimals: 12
2322
+ },
2323
+ {
2324
+ assetId: "15",
2325
+ symbol: "vKSM",
2326
+ decimals: 12
2327
+ },
2328
+ {
2329
+ assetId: "10",
2330
+ symbol: "TKN0x00000005-TKN0x00000000",
2331
+ decimals: 18
2332
+ },
2333
+ {
2334
+ assetId: "0",
2335
+ symbol: "MGX",
2336
+ decimals: 18
2337
+ },
2338
+ {
2339
+ assetId: "6",
2340
+ symbol: "KAR",
2341
+ decimals: 12
2342
+ },
2343
+ {
2344
+ assetId: "11",
2345
+ symbol: "IMBU",
2346
+ decimals: 12
2347
+ },
2348
+ {
2349
+ assetId: "3",
2350
+ symbol: "TKN0x00000000-TKN0x00000002",
2351
+ decimals: 18
2352
+ },
2353
+ {
2354
+ assetId: "17",
2355
+ symbol: "TKN0x00000000-TKN0x0000000E",
2356
+ decimals: 18
2357
+ },
2358
+ {
2359
+ assetId: "18",
2360
+ symbol: "TKN0x00000010-TKN0x00000000",
2361
+ decimals: 18
2362
+ },
2363
+ {
2364
+ assetId: "4",
2365
+ symbol: "KSM",
2366
+ decimals: 12
2367
+ },
2368
+ {
2369
+ assetId: "12",
2370
+ symbol: "TKN0x00000000-TKN0x0000000B",
2371
+ decimals: 18
2372
+ }
2373
+ ]
2374
+ };
2375
+ var Moonriver$1 = {
2376
+ paraId: 2023,
2377
+ relayChainAssetSymbol: "KSM",
2378
+ nativeAssets: [
2379
+ {
2380
+ symbol: "MOVR",
2381
+ decimals: 18
2382
+ }
2383
+ ],
2384
+ otherAssets: [
2385
+ {
2386
+ assetId: "108457044225666871745333730479173774551",
2387
+ symbol: "xcCSM",
2388
+ decimals: 12
2389
+ },
2390
+ {
2391
+ assetId: "16797826370226091782818345603793389938",
2392
+ symbol: "xcSDN",
2393
+ decimals: 18
2394
+ },
2395
+ {
2396
+ assetId: "76100021443485661246318545281171740067",
2397
+ symbol: "xcHKO",
2398
+ decimals: 12
2399
+ },
2400
+ {
2401
+ assetId: "328179947973504579459046439826496046832",
2402
+ symbol: "xcKBTC",
2403
+ decimals: 8
2404
+ },
2405
+ {
2406
+ assetId: "108036400430056508975016746969135344601",
2407
+ symbol: "xcXRT",
2408
+ decimals: 9
2409
+ },
2410
+ {
2411
+ assetId: "213357169630950964874127107356898319277",
2412
+ symbol: "xcKMA",
2413
+ decimals: 12
2414
+ },
2415
+ {
2416
+ assetId: "65216491554813189869575508812319036608",
2417
+ symbol: "xcLIT",
2418
+ decimals: 12
2419
+ },
2420
+ {
2421
+ assetId: "173481220575862801646329923366065693029",
2422
+ symbol: "xcCRAB",
2423
+ decimals: 18
2424
+ },
2425
+ {
2426
+ assetId: "189307976387032586987344677431204943363",
2427
+ symbol: "xcPHA",
2428
+ decimals: 12
2429
+ },
2430
+ {
2431
+ assetId: "214920334981412447805621250067209749032",
2432
+ symbol: "xcAUSD",
2433
+ decimals: 12
2434
+ },
2435
+ {
2436
+ assetId: "175400718394635817552109270754364440562",
2437
+ symbol: "xcKINT",
2438
+ decimals: 12
2439
+ },
2440
+ {
2441
+ assetId: "105075627293246237499203909093923548958",
2442
+ symbol: "xcTEER",
2443
+ decimals: 12
2444
+ },
2445
+ {
2446
+ assetId: "311091173110107856861649819128533077277",
2447
+ symbol: "xcUSDT",
2448
+ decimals: 6
2449
+ },
2450
+ {
2451
+ assetId: "182365888117048807484804376330534607370",
2452
+ symbol: "xcRMRK",
2453
+ decimals: 10
2454
+ },
2455
+ {
2456
+ assetId: "42259045809535163221576417993425387648",
2457
+ symbol: "xcKSM",
2458
+ decimals: 12
2459
+ },
2460
+ {
2461
+ assetId: "10810581592933651521121702237638664357",
2462
+ symbol: "xcKAR",
2463
+ decimals: 12
2464
+ },
2465
+ {
2466
+ assetId: "319623561105283008236062145480775032445",
2467
+ symbol: "xcBNC",
2468
+ decimals: 12
2469
+ }
2470
+ ]
2471
+ };
2472
+ var ParallelHeiko$1 = {
2473
+ paraId: 2085,
2474
+ relayChainAssetSymbol: "KSM",
2475
+ nativeAssets: [
2476
+ {
2477
+ symbol: "HKO",
2478
+ decimals: 12
2479
+ }
2480
+ ],
2481
+ otherAssets: [
2482
+ {
2483
+ assetId: "100",
2484
+ symbol: "KSM",
2485
+ decimals: 12
2486
+ },
2487
+ {
2488
+ assetId: "123",
2489
+ symbol: "GENS",
2490
+ decimals: 9
2491
+ },
2492
+ {
2493
+ assetId: "121",
2494
+ symbol: "KBTC",
2495
+ decimals: 8
2496
+ },
2497
+ {
2498
+ assetId: "5007",
2499
+ symbol: "LP-USDT/HKO",
2500
+ decimals: 12
2501
+ },
2502
+ {
2503
+ assetId: "100210028",
2504
+ symbol: "cKSM-21/28",
2505
+ decimals: 12
2506
+ },
2507
+ {
2508
+ assetId: "125",
2509
+ symbol: "TUR",
2510
+ decimals: 10
2511
+ },
2512
+ {
2513
+ assetId: "5002",
2514
+ symbol: "LP-KSM/HKO",
2515
+ decimals: 12
2516
+ },
2517
+ {
2518
+ assetId: "103",
2519
+ symbol: "AUSD",
2520
+ decimals: 12
2521
+ },
2522
+ {
2523
+ assetId: "109",
2524
+ symbol: "LKSM",
2525
+ decimals: 12
2526
+ },
2527
+ {
2528
+ assetId: "111",
2529
+ symbol: "SDN",
2530
+ decimals: 18
2531
+ },
2532
+ {
2533
+ assetId: "5005",
2534
+ symbol: "LP-MOVR/HKO",
2535
+ decimals: 12
2536
+ },
2537
+ {
2538
+ assetId: "119",
2539
+ symbol: "KINT",
2540
+ decimals: 12
2541
+ },
2542
+ {
2543
+ assetId: "100150022",
2544
+ symbol: "cKSM-15/22",
2545
+ decimals: 12
2546
+ },
2547
+ {
2548
+ assetId: "5004",
2549
+ symbol: "LP-KSM/cKSM-20/27",
2550
+ decimals: 12
2551
+ },
2552
+ {
2553
+ assetId: "102",
2554
+ symbol: "USDT",
2555
+ decimals: 6
2556
+ },
2557
+ {
2558
+ assetId: "100230030",
2559
+ symbol: "cKSM-23/30",
2560
+ decimals: 12
2561
+ },
2562
+ {
2563
+ assetId: "5006",
2564
+ symbol: "LP-PHA/HKO",
2565
+ decimals: 12
2566
+ },
2567
+ {
2568
+ assetId: "5011",
2569
+ symbol: "LP-KBTC/HKO",
2570
+ decimals: 12
2571
+ },
2572
+ {
2573
+ assetId: "4294957295",
2574
+ symbol: "KSM_U",
2575
+ decimals: 12
2576
+ },
2577
+ {
2578
+ assetId: "1000",
2579
+ symbol: "sKSM",
2580
+ decimals: 12
2581
+ },
2582
+ {
2583
+ assetId: "113",
2584
+ symbol: "MOVR",
2585
+ decimals: 18
2586
+ },
2587
+ {
2588
+ assetId: "115",
2589
+ symbol: "PHA",
2590
+ decimals: 12
2591
+ },
2592
+ {
2593
+ assetId: "5003",
2594
+ symbol: "LP-KSM/sKSM",
2595
+ decimals: 12
2596
+ },
2597
+ {
2598
+ assetId: "100220029",
2599
+ symbol: "cKSM-22/29",
2600
+ decimals: 12
2601
+ },
2602
+ {
2603
+ assetId: "107",
2604
+ symbol: "KAR",
2605
+ decimals: 12
2606
+ },
2607
+ {
2608
+ assetId: "5008",
2609
+ symbol: "LP-KAR/HKO",
2610
+ decimals: 12
2611
+ },
2612
+ {
2613
+ assetId: "5009",
2614
+ symbol: "LP-LKSM/HKO",
2615
+ decimals: 12
2616
+ },
2617
+ {
2618
+ assetId: "5010",
2619
+ symbol: "LP-KINT/HKO",
2620
+ decimals: 12
2621
+ },
2622
+ {
2623
+ assetId: "100200027",
2624
+ symbol: "cKSM-20/27",
2625
+ decimals: 12
2626
+ }
2627
+ ]
2628
+ };
2629
+ var Picasso$1 = {
2630
+ paraId: 2087,
2631
+ relayChainAssetSymbol: "KSM",
2632
+ nativeAssets: [
2633
+ {
2634
+ symbol: "PICA",
2635
+ decimals: 12
2636
+ }
2637
+ ],
2638
+ otherAssets: [
2639
+ ]
2640
+ };
2641
+ var Pichiu$1 = {
2642
+ paraId: 2102,
2643
+ relayChainAssetSymbol: "KSM",
2644
+ nativeAssets: [
2645
+ {
2646
+ symbol: "PCHU",
2647
+ decimals: 18
2648
+ }
2649
+ ],
2650
+ otherAssets: [
2651
+ ]
2652
+ };
2653
+ var Pioneer$1 = {
2654
+ paraId: 2096,
2655
+ relayChainAssetSymbol: "KSM",
2656
+ nativeAssets: [
2657
+ {
2658
+ symbol: "NEER",
2659
+ decimals: 18
2660
+ }
2661
+ ],
2662
+ otherAssets: [
2663
+ ]
2664
+ };
2665
+ var Quartz$1 = {
2666
+ paraId: 2095,
2667
+ relayChainAssetSymbol: "KSM",
2668
+ nativeAssets: [
2669
+ {
2670
+ symbol: "QTZ",
2671
+ decimals: 18
2672
+ }
2673
+ ],
2674
+ otherAssets: [
2675
+ ]
2676
+ };
2677
+ var Robonomics$1 = {
2678
+ paraId: 2048,
2679
+ relayChainAssetSymbol: "KSM",
2680
+ nativeAssets: [
2681
+ {
2682
+ symbol: "XRT",
2683
+ decimals: 9
2684
+ }
2685
+ ],
2686
+ otherAssets: [
2687
+ {
2688
+ assetId: "4294967292",
2689
+ symbol: "KAR",
2690
+ decimals: 12
2691
+ },
2692
+ {
2693
+ assetId: "4294967295",
2694
+ symbol: "KSM",
2695
+ decimals: 12
2696
+ },
2697
+ {
2698
+ assetId: "4294967291",
2699
+ symbol: "CSM",
2700
+ decimals: 12
2701
+ },
2702
+ {
2703
+ assetId: "4294967293",
2704
+ symbol: "LKSM",
2705
+ decimals: 12
2706
+ },
2707
+ {
2708
+ assetId: "4294967294",
2709
+ symbol: "AUSD",
2710
+ decimals: 12
2711
+ }
2712
+ ]
2713
+ };
2714
+ var Shiden$1 = {
2715
+ paraId: 2007,
2716
+ relayChainAssetSymbol: "KSM",
2717
+ nativeAssets: [
2718
+ {
2719
+ symbol: "SDN",
2720
+ decimals: 18
2721
+ }
2722
+ ],
2723
+ otherAssets: [
2724
+ {
2725
+ assetId: "18446744073709551623",
2726
+ symbol: "PHA",
2727
+ decimals: 12
2728
+ },
2729
+ {
2730
+ assetId: "18446744073709551619",
2731
+ symbol: "LKSM",
2732
+ decimals: 12
2733
+ },
2734
+ {
2735
+ assetId: "314",
2736
+ symbol: "BAR",
2737
+ decimals: 10
2738
+ },
2739
+ {
2740
+ assetId: "18446744073709551625",
2741
+ symbol: "CRAB",
2742
+ decimals: 18
2743
+ },
2744
+ {
2745
+ assetId: "18446744073709551620",
2746
+ symbol: "MOVR",
2747
+ decimals: 18
2748
+ },
2749
+ {
2750
+ assetId: "18446744073709551621",
2751
+ symbol: "KBTC",
2752
+ decimals: 8
2753
+ },
2754
+ {
2755
+ assetId: "18446744073709551622",
2756
+ symbol: "KINT",
2757
+ decimals: 12
2758
+ },
2759
+ {
2760
+ assetId: "18446744073709551631",
2761
+ symbol: "EQD",
2762
+ decimals: 9
2763
+ },
2764
+ {
2765
+ assetId: "312",
2766
+ symbol: "XCT",
2767
+ decimals: 18
2768
+ },
2769
+ {
2770
+ assetId: "313",
2771
+ symbol: "SDG",
2772
+ decimals: 0
2773
+ },
2774
+ {
2775
+ assetId: "340282366920938463463374607431768211455",
2776
+ symbol: "KSM",
2777
+ decimals: 12
2778
+ },
2779
+ {
2780
+ assetId: "18446744073709551616",
2781
+ symbol: "aUSD",
2782
+ decimals: 12
2783
+ },
2784
+ {
2785
+ assetId: "18446744073709551624",
2786
+ symbol: "CSM",
2787
+ decimals: 12
2788
+ },
2789
+ {
2790
+ assetId: "18446744073709551618",
2791
+ symbol: "KAR",
2792
+ decimals: 12
2793
+ },
2794
+ {
2795
+ assetId: "18446744073709551630",
2796
+ symbol: "GENS",
2797
+ decimals: 9
2798
+ },
2799
+ {
2800
+ assetId: "311",
2801
+ symbol: "SYG",
2802
+ decimals: 10
2803
+ },
2804
+ {
2805
+ assetId: "18446744073709551626",
2806
+ symbol: "SKU",
2807
+ decimals: 18
2808
+ },
2809
+ {
2810
+ assetId: "18446744073709551629",
2811
+ symbol: "vsKSM",
2812
+ decimals: 12
2813
+ },
2814
+ {
2815
+ assetId: "4294969280",
2816
+ symbol: "USDT",
2817
+ decimals: 6
2818
+ },
2819
+ {
2820
+ assetId: "18446744073709551628",
2821
+ symbol: "vKSM",
2822
+ decimals: 12
2823
+ },
2824
+ {
2825
+ assetId: "18446744073709551627",
2826
+ symbol: "BNC",
2827
+ decimals: 12
2828
+ },
2829
+ {
2830
+ assetId: "315",
2831
+ symbol: "CHAI",
2832
+ decimals: 18
2833
+ }
2834
+ ]
2835
+ };
2836
+ var Statemine$1 = {
2837
+ paraId: 1000,
2838
+ relayChainAssetSymbol: "KSM",
2839
+ nativeAssets: [
2840
+ {
2841
+ symbol: "KSM",
2842
+ decimals: 12
2843
+ }
2844
+ ],
2845
+ otherAssets: [
2846
+ {
2847
+ assetId: "9999",
2848
+ symbol: "BTC",
2849
+ decimals: 20
2850
+ },
2851
+ {
2852
+ assetId: "100",
2853
+ symbol: "Chralt",
2854
+ decimals: 0
2855
+ },
2856
+ {
2857
+ assetId: "123",
2858
+ symbol: "NFT",
2859
+ decimals: 20
2860
+ },
2861
+ {
2862
+ assetId: "9000",
2863
+ symbol: "KPOTS",
2864
+ decimals: 6
2865
+ },
2866
+ {
2867
+ assetId: "1155",
2868
+ symbol: "WITEK",
2869
+ decimals: 18
2870
+ },
2871
+ {
2872
+ assetId: "69420",
2873
+ symbol: "CHAOS",
2874
+ decimals: 10
2875
+ },
2876
+ {
2877
+ assetId: "47",
2878
+ symbol: "EUR",
2879
+ decimals: 12
2880
+ },
2881
+ {
2882
+ assetId: "6789",
2883
+ symbol: "VHM",
2884
+ decimals: 16
2885
+ },
2886
+ {
2887
+ assetId: "50",
2888
+ symbol: "PROMO",
2889
+ decimals: 18
2890
+ },
2891
+ {
2892
+ assetId: "420",
2893
+ symbol: "BLAZE",
2894
+ decimals: 10
2895
+ },
2896
+ {
2897
+ assetId: "0",
2898
+ symbol: "DOG",
2899
+ decimals: 6
2900
+ },
2901
+ {
2902
+ assetId: "10",
2903
+ symbol: "USDC",
2904
+ decimals: 4
2905
+ },
2906
+ {
2907
+ assetId: "1111",
2908
+ symbol: "MTVD",
2909
+ decimals: 20
2910
+ },
2911
+ {
2912
+ assetId: "300",
2913
+ symbol: "PWS",
2914
+ decimals: 18
2915
+ },
2916
+ {
2917
+ assetId: "4",
2918
+ symbol: "HAPPY",
2919
+ decimals: 10
2920
+ },
2921
+ {
2922
+ assetId: "21",
2923
+ symbol: "ELEV",
2924
+ decimals: 10
2925
+ },
2926
+ {
2927
+ assetId: "333",
2928
+ symbol: "Token",
2929
+ decimals: 20
2930
+ },
2931
+ {
2932
+ assetId: "28",
2933
+ symbol: "LAC",
2934
+ decimals: 7
2935
+ },
2936
+ {
2937
+ assetId: "20",
2938
+ symbol: "BFKK",
2939
+ decimals: 20
2940
+ },
2941
+ {
2942
+ assetId: "2048",
2943
+ symbol: "RWS",
2944
+ decimals: 8
2945
+ },
2946
+ {
2947
+ assetId: "377",
2948
+ symbol: "KAA",
2949
+ decimals: 2
2950
+ },
2951
+ {
2952
+ assetId: "95834",
2953
+ symbol: "LUL",
2954
+ decimals: 12
2955
+ },
2956
+ {
2957
+ assetId: "999",
2958
+ symbol: "CBDC",
2959
+ decimals: 10
2960
+ },
2961
+ {
2962
+ assetId: "30",
2963
+ symbol: "GOL",
2964
+ decimals: 8
2965
+ },
2966
+ {
2967
+ assetId: "677",
2968
+ symbol: "GRB",
2969
+ decimals: 0
2970
+ },
2971
+ {
2972
+ assetId: "39",
2973
+ symbol: "DSCAN",
2974
+ decimals: 8
2975
+ },
2976
+ {
2977
+ assetId: "101",
2978
+ symbol: "---",
2979
+ decimals: 0
2980
+ },
2981
+ {
2982
+ assetId: "38",
2983
+ symbol: "ENT",
2984
+ decimals: 0
2985
+ },
2986
+ {
2987
+ assetId: "46",
2988
+ symbol: "FAN",
2989
+ decimals: 10
2990
+ },
2991
+ {
2992
+ assetId: "99",
2993
+ symbol: "BITCOIN",
2994
+ decimals: 20
2995
+ },
2996
+ {
2997
+ assetId: "34",
2998
+ symbol: "PLX",
2999
+ decimals: 9
3000
+ },
3001
+ {
3002
+ assetId: "7777",
3003
+ symbol: "lucky7",
3004
+ decimals: 20
3005
+ },
3006
+ {
3007
+ assetId: "168",
3008
+ symbol: "Tokens",
3009
+ decimals: 20
3010
+ },
3011
+ {
3012
+ assetId: "2077",
3013
+ symbol: "XRT",
3014
+ decimals: 8
3015
+ },
3016
+ {
3017
+ assetId: "16",
3018
+ symbol: "ARIS",
3019
+ decimals: 8
3020
+ },
3021
+ {
3022
+ assetId: "11",
3023
+ symbol: "USDT",
3024
+ decimals: 4
3025
+ },
3026
+ {
3027
+ assetId: "224",
3028
+ symbol: "SIK",
3029
+ decimals: 8
3030
+ },
3031
+ {
3032
+ assetId: "138",
3033
+ symbol: "Abc",
3034
+ decimals: 20
3035
+ },
3036
+ {
3037
+ assetId: "75",
3038
+ symbol: "cipher",
3039
+ decimals: 10
3040
+ },
3041
+ {
3042
+ assetId: "111",
3043
+ symbol: "NO1",
3044
+ decimals: 20
3045
+ },
3046
+ {
3047
+ assetId: "66",
3048
+ symbol: "DAI",
3049
+ decimals: 20
3050
+ },
3051
+ {
3052
+ assetId: "14",
3053
+ symbol: "DOT",
3054
+ decimals: 10
3055
+ },
3056
+ {
3057
+ assetId: "360",
3058
+ symbol: "uni",
3059
+ decimals: 20
3060
+ },
3061
+ {
3062
+ assetId: "6",
3063
+ symbol: "ZKPD",
3064
+ decimals: 10
3065
+ },
3066
+ {
3067
+ assetId: "19",
3068
+ symbol: "SHOT",
3069
+ decimals: 12
3070
+ },
3071
+ {
3072
+ assetId: "1607",
3073
+ symbol: "STRGZN",
3074
+ decimals: 0
3075
+ },
3076
+ {
3077
+ assetId: "383",
3078
+ symbol: "KODA",
3079
+ decimals: 12
3080
+ },
3081
+ {
3082
+ assetId: "42069",
3083
+ symbol: "INTRN",
3084
+ decimals: 18
3085
+ },
3086
+ {
3087
+ assetId: "88888",
3088
+ symbol: "BAILEGO",
3089
+ decimals: 0
3090
+ },
3091
+ {
3092
+ assetId: "4206969",
3093
+ symbol: "SHIB",
3094
+ decimals: 10
3095
+ },
3096
+ {
3097
+ assetId: "2021",
3098
+ symbol: "WAVE",
3099
+ decimals: 4
3100
+ },
3101
+ {
3102
+ assetId: "1107",
3103
+ symbol: "HOLIC",
3104
+ decimals: 12
3105
+ },
3106
+ {
3107
+ assetId: "77",
3108
+ symbol: "Crypto",
3109
+ decimals: 20
3110
+ },
3111
+ {
3112
+ assetId: "35",
3113
+ symbol: "LUCKY",
3114
+ decimals: 10
3115
+ },
3116
+ {
3117
+ assetId: "36",
3118
+ symbol: "RRT",
3119
+ decimals: 0
3120
+ },
3121
+ {
3122
+ assetId: "31",
3123
+ symbol: "ki",
3124
+ decimals: 18
3125
+ },
3126
+ {
3127
+ assetId: "33",
3128
+ symbol: "BUSSY",
3129
+ decimals: 10
3130
+ },
3131
+ {
3132
+ assetId: "41",
3133
+ symbol: "GOOSE",
3134
+ decimals: 12
3135
+ },
3136
+ {
3137
+ assetId: "71",
3138
+ symbol: "OAK",
3139
+ decimals: 10
3140
+ },
3141
+ {
3142
+ assetId: "44",
3143
+ symbol: "ADVNCE",
3144
+ decimals: 10
3145
+ },
3146
+ {
3147
+ assetId: "11111",
3148
+ symbol: "KVC",
3149
+ decimals: 12
3150
+ },
3151
+ {
3152
+ assetId: "15",
3153
+ symbol: "Web3",
3154
+ decimals: 20
3155
+ },
3156
+ {
3157
+ assetId: "3721",
3158
+ symbol: "fast",
3159
+ decimals: 20
3160
+ },
3161
+ {
3162
+ assetId: "374",
3163
+ symbol: "wETH",
3164
+ decimals: 18
3165
+ },
3166
+ {
3167
+ assetId: "40",
3168
+ symbol: "ERIC",
3169
+ decimals: 10
3170
+ },
3171
+ {
3172
+ assetId: "2",
3173
+ symbol: "PNN",
3174
+ decimals: 10
3175
+ },
3176
+ {
3177
+ assetId: "117",
3178
+ symbol: "TNKR",
3179
+ decimals: 10
3180
+ },
3181
+ {
3182
+ assetId: "70",
3183
+ symbol: "MAR",
3184
+ decimals: 5
3185
+ },
3186
+ {
3187
+ assetId: "13",
3188
+ symbol: "LN",
3189
+ decimals: 13
3190
+ },
3191
+ {
3192
+ assetId: "2049",
3193
+ symbol: "Android",
3194
+ decimals: 0
3195
+ },
3196
+ {
3197
+ assetId: "32",
3198
+ symbol: "FAV",
3199
+ decimals: 0
3200
+ },
3201
+ {
3202
+ assetId: "188",
3203
+ symbol: "ZLK",
3204
+ decimals: 12
3205
+ },
3206
+ {
3207
+ assetId: "27",
3208
+ symbol: "RUNE",
3209
+ decimals: 10
3210
+ },
3211
+ {
3212
+ assetId: "49",
3213
+ symbol: "DIAN",
3214
+ decimals: 10
3215
+ },
3216
+ {
3217
+ assetId: "1999",
3218
+ symbol: "ADVERT2",
3219
+ decimals: 10
3220
+ },
3221
+ {
3222
+ assetId: "3943",
3223
+ symbol: "GMK",
3224
+ decimals: 0
3225
+ },
3226
+ {
3227
+ assetId: "314159",
3228
+ symbol: "RTT",
3229
+ decimals: 2
3230
+ },
3231
+ {
3232
+ assetId: "29",
3233
+ symbol: "CODES",
3234
+ decimals: 10
3235
+ },
3236
+ {
3237
+ assetId: "42",
3238
+ symbol: "NRNF",
3239
+ decimals: 12
3240
+ },
3241
+ {
3242
+ assetId: "102",
3243
+ symbol: "DRX",
3244
+ decimals: 0
3245
+ },
3246
+ {
3247
+ assetId: "80815",
3248
+ symbol: "KSMFS",
3249
+ decimals: 10
3250
+ },
3251
+ {
3252
+ assetId: "43",
3253
+ symbol: "TTT",
3254
+ decimals: 2
3255
+ },
3256
+ {
3257
+ assetId: "7777777",
3258
+ symbol: "king",
3259
+ decimals: 20
3260
+ },
3261
+ {
3262
+ assetId: "365",
3263
+ symbol: "time",
3264
+ decimals: 20
3265
+ },
3266
+ {
3267
+ assetId: "5",
3268
+ symbol: "BEER",
3269
+ decimals: 12
3270
+ },
3271
+ {
3272
+ assetId: "18",
3273
+ symbol: "HEI",
3274
+ decimals: 10
3275
+ },
3276
+ {
3277
+ assetId: "7",
3278
+ symbol: "DOS",
3279
+ decimals: 1
3280
+ },
3281
+ {
3282
+ assetId: "26",
3283
+ symbol: "BUNGA",
3284
+ decimals: 8
3285
+ },
3286
+ {
3287
+ assetId: "8848",
3288
+ symbol: "top",
3289
+ decimals: 20
3290
+ },
3291
+ {
3292
+ assetId: "3077",
3293
+ symbol: "ACT",
3294
+ decimals: 0
3295
+ },
3296
+ {
3297
+ assetId: "87",
3298
+ symbol: "XEXR",
3299
+ decimals: 6
3300
+ },
3301
+ {
3302
+ assetId: "1984",
3303
+ symbol: "USDt",
3304
+ decimals: 6
3305
+ },
3306
+ {
3307
+ assetId: "2050",
3308
+ symbol: "CUT",
3309
+ decimals: 9
3310
+ },
3311
+ {
3312
+ assetId: "1688",
3313
+ symbol: "ali",
3314
+ decimals: 20
3315
+ },
3316
+ {
3317
+ assetId: "1123",
3318
+ symbol: "XEN",
3319
+ decimals: 10
3320
+ },
3321
+ {
3322
+ assetId: "4294967291",
3323
+ symbol: "PRIME",
3324
+ decimals: 7
3325
+ },
3326
+ {
3327
+ assetId: "777777",
3328
+ symbol: "DEFI",
3329
+ decimals: 8
3330
+ },
3331
+ {
3332
+ assetId: "22",
3333
+ symbol: "STH",
3334
+ decimals: 6
3335
+ },
3336
+ {
3337
+ assetId: "777",
3338
+ symbol: "GOD",
3339
+ decimals: 0
3340
+ },
3341
+ {
3342
+ assetId: "567",
3343
+ symbol: "CHRWNA",
3344
+ decimals: 10
3345
+ },
3346
+ {
3347
+ assetId: "68",
3348
+ symbol: "ADVERT",
3349
+ decimals: 10
3350
+ },
3351
+ {
3352
+ assetId: "24",
3353
+ symbol: "test",
3354
+ decimals: 1
3355
+ },
3356
+ {
3357
+ assetId: "90",
3358
+ symbol: "SATS",
3359
+ decimals: 1
3360
+ },
3361
+ {
3362
+ assetId: "80",
3363
+ symbol: "BIT",
3364
+ decimals: 0
3365
+ },
3366
+ {
3367
+ assetId: "8",
3368
+ symbol: "RMRK",
3369
+ decimals: 10
3370
+ },
3371
+ {
3372
+ assetId: "45",
3373
+ symbol: "CRIB",
3374
+ decimals: 15
3375
+ },
3376
+ {
3377
+ assetId: "841",
3378
+ symbol: "YAYOI",
3379
+ decimals: 10
3380
+ },
3381
+ {
3382
+ assetId: "5201314",
3383
+ symbol: "belove",
3384
+ decimals: 20
3385
+ },
3386
+ {
3387
+ assetId: "1234",
3388
+ symbol: "KSM",
3389
+ decimals: 10
3390
+ },
3391
+ {
3392
+ assetId: "1420",
3393
+ symbol: "HYDR",
3394
+ decimals: 10
3395
+ },
3396
+ {
3397
+ assetId: "1000",
3398
+ symbol: "SPARK",
3399
+ decimals: 10
3400
+ },
3401
+ {
3402
+ assetId: "223",
3403
+ symbol: "BILL",
3404
+ decimals: 8
3405
+ },
3406
+ {
3407
+ assetId: "60",
3408
+ symbol: "GAV",
3409
+ decimals: 4
3410
+ },
3411
+ {
3412
+ assetId: "80817",
3413
+ symbol: "FRALEY",
3414
+ decimals: 10
3415
+ },
3416
+ {
3417
+ assetId: "1",
3418
+ symbol: "L T",
3419
+ decimals: 14
3420
+ },
3421
+ {
3422
+ assetId: "12",
3423
+ symbol: "BUSD",
3424
+ decimals: 4
3425
+ },
3426
+ {
3427
+ assetId: "12345",
3428
+ symbol: "DREX",
3429
+ decimals: 10
3430
+ },
3431
+ {
3432
+ assetId: "3",
3433
+ symbol: "Meow",
3434
+ decimals: 6
3435
+ },
3436
+ {
3437
+ assetId: "55",
3438
+ symbol: "MTS",
3439
+ decimals: 8
3440
+ },
3441
+ {
3442
+ assetId: "1337",
3443
+ symbol: "TIP",
3444
+ decimals: 10
3445
+ },
3446
+ {
3447
+ assetId: "666",
3448
+ symbol: "BAD",
3449
+ decimals: 10
3450
+ },
3451
+ {
3452
+ assetId: "88",
3453
+ symbol: "BTC",
3454
+ decimals: 20
3455
+ },
3456
+ {
3457
+ assetId: "17",
3458
+ symbol: "MEME",
3459
+ decimals: 18
3460
+ },
3461
+ {
3462
+ assetId: "598",
3463
+ symbol: "EREN",
3464
+ decimals: 10
3465
+ },
3466
+ {
3467
+ assetId: "25",
3468
+ symbol: "BABE",
3469
+ decimals: 10
3470
+ },
3471
+ {
3472
+ assetId: "69",
3473
+ symbol: "NICE",
3474
+ decimals: 10
3475
+ },
3476
+ {
3477
+ assetId: "23",
3478
+ symbol: "KOJO",
3479
+ decimals: 3
3480
+ },
3481
+ {
3482
+ assetId: "19840",
3483
+ symbol: "USDt",
3484
+ decimals: 3
3485
+ },
3486
+ {
3487
+ assetId: "37",
3488
+ symbol: "MNCH",
3489
+ decimals: 18
3490
+ },
3491
+ {
3492
+ assetId: "759",
3493
+ symbol: "bLd",
3494
+ decimals: 18
3495
+ },
3496
+ {
3497
+ assetId: "91",
3498
+ symbol: "TMJ",
3499
+ decimals: 8
3500
+ },
3501
+ {
3502
+ assetId: "1225",
3503
+ symbol: "GOD",
3504
+ decimals: 20
3505
+ },
3506
+ {
3507
+ assetId: "64",
3508
+ symbol: "oh!",
3509
+ decimals: 4
3510
+ },
3511
+ {
3512
+ assetId: "520",
3513
+ symbol: "0xe299a5e299a5e299a5",
3514
+ decimals: 10
3515
+ },
3516
+ {
3517
+ assetId: "9",
3518
+ symbol: "TOT",
3519
+ decimals: 1
3520
+ },
3521
+ {
3522
+ assetId: "888",
3523
+ symbol: "LUCK",
3524
+ decimals: 10
3525
+ },
3526
+ {
3527
+ assetId: "911",
3528
+ symbol: "911",
3529
+ decimals: 20
3530
+ },
3531
+ {
3532
+ assetId: "214",
3533
+ symbol: "LOVE",
3534
+ decimals: 20
3535
+ },
3536
+ {
3537
+ assetId: "345",
3538
+ symbol: "345",
3539
+ decimals: 20
3540
+ },
3541
+ {
3542
+ assetId: "1441",
3543
+ symbol: "SPOT",
3544
+ decimals: 0
3545
+ },
3546
+ {
3547
+ assetId: "80816",
3548
+ symbol: "RUEPP",
3549
+ decimals: 10
3550
+ }
3551
+ ]
3552
+ };
3553
+ var Turing$1 = {
3554
+ paraId: 2114,
3555
+ relayChainAssetSymbol: "KSM",
3556
+ nativeAssets: [
3557
+ {
3558
+ symbol: "TUR",
3559
+ decimals: 10
3560
+ }
3561
+ ],
3562
+ otherAssets: [
3563
+ {
3564
+ assetId: "7",
3565
+ symbol: "PHA",
3566
+ decimals: 12
3567
+ },
3568
+ {
3569
+ assetId: "5",
3570
+ symbol: "HKO",
3571
+ decimals: 12
3572
+ },
3573
+ {
3574
+ assetId: "1",
3575
+ symbol: "KSM",
3576
+ decimals: 12
3577
+ },
3578
+ {
3579
+ assetId: "2",
3580
+ symbol: "AUSD",
3581
+ decimals: 12
3582
+ },
3583
+ {
3584
+ assetId: "0",
3585
+ symbol: "TUR",
3586
+ decimals: 10
3587
+ },
3588
+ {
3589
+ assetId: "6",
3590
+ symbol: "SKSM",
3591
+ decimals: 12
3592
+ },
3593
+ {
3594
+ assetId: "3",
3595
+ symbol: "KAR",
3596
+ decimals: 12
3597
+ },
3598
+ {
3599
+ assetId: "4",
3600
+ symbol: "LKSM",
3601
+ decimals: 12
3602
+ }
3603
+ ]
3604
+ };
3605
+ var assets = {
3606
+ Acala: Acala$1,
3607
+ Astar: Astar$1,
3608
+ BifrostPolkadot: BifrostPolkadot$1,
3609
+ Bitgreen: Bitgreen$1,
3610
+ Centrifuge: Centrifuge$1,
3611
+ Clover: Clover$1,
3612
+ ComposableFinance: ComposableFinance$1,
3613
+ Darwinia: Darwinia$1,
3614
+ HydraDX: HydraDX$1,
3615
+ Interlay: Interlay$1,
3616
+ Kylin: Kylin$1,
3617
+ Litentry: Litentry$1,
3618
+ Moonbeam: Moonbeam$1,
3619
+ Parallel: Parallel$1,
3620
+ Statemint: Statemint$1,
3621
+ Altair: Altair$1,
3622
+ Amplitude: Amplitude$1,
3623
+ Bajun: Bajun$1,
3624
+ Basilisk: Basilisk$1,
3625
+ BifrostKusama: BifrostKusama$1,
3626
+ Calamari: Calamari$1,
3627
+ Crab: Crab$1,
3628
+ CrustShadow: CrustShadow$1,
3629
+ Dorafactory: Dorafactory$1,
3630
+ Encointer: Encointer$1,
3631
+ Imbue: Imbue$1,
3632
+ Integritee: Integritee$1,
3633
+ InvArchTinker: InvArchTinker$1,
3634
+ Kico: Kico$1,
3635
+ Karura: Karura$1,
3636
+ Kintsugi: Kintsugi$1,
3637
+ Listen: Listen$1,
3638
+ Litmus: Litmus$1,
3639
+ Mangata: Mangata$1,
3640
+ Moonriver: Moonriver$1,
3641
+ ParallelHeiko: ParallelHeiko$1,
3642
+ Picasso: Picasso$1,
3643
+ Pichiu: Pichiu$1,
3644
+ Pioneer: Pioneer$1,
3645
+ Quartz: Quartz$1,
3646
+ Robonomics: Robonomics$1,
3647
+ Shiden: Shiden$1,
3648
+ Statemine: Statemine$1,
3649
+ Turing: Turing$1
3650
+ };
3651
+
3652
+ var assetsMapJson = /*#__PURE__*/Object.freeze({
3653
+ __proto__: null,
3654
+ Acala: Acala$1,
3655
+ Altair: Altair$1,
3656
+ Amplitude: Amplitude$1,
3657
+ Astar: Astar$1,
3658
+ Bajun: Bajun$1,
3659
+ Basilisk: Basilisk$1,
3660
+ BifrostKusama: BifrostKusama$1,
3661
+ BifrostPolkadot: BifrostPolkadot$1,
3662
+ Bitgreen: Bitgreen$1,
3663
+ Calamari: Calamari$1,
3664
+ Centrifuge: Centrifuge$1,
3665
+ Clover: Clover$1,
3666
+ ComposableFinance: ComposableFinance$1,
3667
+ Crab: Crab$1,
3668
+ CrustShadow: CrustShadow$1,
3669
+ Darwinia: Darwinia$1,
3670
+ Dorafactory: Dorafactory$1,
3671
+ Encointer: Encointer$1,
3672
+ HydraDX: HydraDX$1,
3673
+ Imbue: Imbue$1,
3674
+ Integritee: Integritee$1,
3675
+ Interlay: Interlay$1,
3676
+ InvArchTinker: InvArchTinker$1,
3677
+ Karura: Karura$1,
3678
+ Kico: Kico$1,
3679
+ Kintsugi: Kintsugi$1,
3680
+ Kylin: Kylin$1,
3681
+ Listen: Listen$1,
3682
+ Litentry: Litentry$1,
3683
+ Litmus: Litmus$1,
3684
+ Mangata: Mangata$1,
3685
+ Moonbeam: Moonbeam$1,
3686
+ Moonriver: Moonriver$1,
3687
+ Parallel: Parallel$1,
3688
+ ParallelHeiko: ParallelHeiko$1,
3689
+ Picasso: Picasso$1,
3690
+ Pichiu: Pichiu$1,
3691
+ Pioneer: Pioneer$1,
3692
+ Quartz: Quartz$1,
3693
+ Robonomics: Robonomics$1,
3694
+ Shiden: Shiden$1,
3695
+ Statemine: Statemine$1,
3696
+ Statemint: Statemint$1,
3697
+ Turing: Turing$1,
3698
+ default: assets
3699
+ });
3700
+
3701
+ var assetsMap = assetsMapJson;
3702
+ function getAssetsObject(node) {
3703
+ return assetsMap[node];
3704
+ }
3705
+ function getAssetId(node, symbol) {
3706
+ var info = getAssetsObject(node).otherAssets.find(function (o) {
3707
+ return o.symbol === symbol;
3708
+ });
3709
+ return info ? info.assetId : null;
3710
+ }
3711
+ function getRelayChainSymbol(node) {
3712
+ return getAssetsObject(node).relayChainAssetSymbol;
3713
+ }
3714
+ function getNativeAssets(node) {
3715
+ var info = getAssetsObject(node).nativeAssets;
3716
+ return info || [];
3717
+ }
3718
+ function getOtherAssets(node) {
3719
+ return getAssetsObject(node).otherAssets;
3720
+ }
3721
+ function getAllAssetsSymbols(node) {
3722
+ var _getAssetsObject = getAssetsObject(node),
3723
+ relayChainAssetSymbol = _getAssetsObject.relayChainAssetSymbol,
3724
+ nativeAssets = _getAssetsObject.nativeAssets,
3725
+ otherAssets = _getAssetsObject.otherAssets;
3726
+ return [relayChainAssetSymbol].concat(_toConsumableArray(nativeAssets.map(function (_ref) {
3727
+ var symbol = _ref.symbol;
3728
+ return symbol;
3729
+ })), _toConsumableArray(otherAssets.map(function (_ref2) {
3730
+ var symbol = _ref2.symbol;
3731
+ return symbol;
3732
+ })));
3733
+ }
3734
+ function hasSupportForAsset(node, symbol) {
3735
+ return getAllAssetsSymbols(node).includes(symbol);
3736
+ }
3737
+ function getAssetDecimals(node, symbol) {
3738
+ var _getAssetsObject2 = getAssetsObject(node),
3739
+ otherAssets = _getAssetsObject2.otherAssets,
3740
+ nativeAssets = _getAssetsObject2.nativeAssets;
3741
+ var asset = [].concat(_toConsumableArray(otherAssets), _toConsumableArray(nativeAssets)).find(function (o) {
3742
+ return o.symbol === symbol;
3743
+ });
3744
+ return asset ? asset.decimals : null;
3745
+ }
3746
+ function getParaId(node) {
3747
+ return getAssetsObject(node).paraId;
3748
+ }
3749
+
3750
+ var index$4 = /*#__PURE__*/Object.freeze({
3751
+ __proto__: null,
3752
+ getAllAssetsSymbols: getAllAssetsSymbols,
3753
+ getAssetDecimals: getAssetDecimals,
3754
+ getAssetId: getAssetId,
3755
+ getAssetsObject: getAssetsObject,
3756
+ getNativeAssets: getNativeAssets,
3757
+ getOtherAssets: getOtherAssets,
3758
+ getParaId: getParaId,
3759
+ getRelayChainSymbol: getRelayChainSymbol,
3760
+ hasSupportForAsset: hasSupportForAsset
3761
+ });
3762
+
3763
+ var Statemint = {
3764
+ defaultPallet: "PolkadotXcm",
3765
+ supportedPallets: [
3766
+ "PolkadotXcm"
3767
+ ]
3768
+ };
3769
+ var Acala = {
3770
+ defaultPallet: "XTokens",
3771
+ supportedPallets: [
3772
+ "PolkadotXcm",
3773
+ "XTokens"
3774
+ ]
3775
+ };
3776
+ var Astar = {
3777
+ defaultPallet: "PolkadotXcm",
3778
+ supportedPallets: [
3779
+ "PolkadotXcm"
3780
+ ]
3781
+ };
3782
+ var BifrostPolkadot = {
3783
+ defaultPallet: "XTokens",
3784
+ supportedPallets: [
3785
+ "PolkadotXcm",
3786
+ "XTokens"
3787
+ ]
3788
+ };
3789
+ var Bitgreen = {
3790
+ defaultPallet: "PolkadotXcm",
3791
+ supportedPallets: [
3792
+ "PolkadotXcm"
3793
+ ]
3794
+ };
3795
+ var Centrifuge = {
3796
+ defaultPallet: "XTokens",
3797
+ supportedPallets: [
3798
+ "PolkadotXcm",
3799
+ "XTokens"
3800
+ ]
3801
+ };
3802
+ var Clover = {
3803
+ defaultPallet: "XTokens",
3804
+ supportedPallets: [
3805
+ "PolkadotXcm",
3806
+ "XTokens"
3807
+ ]
3808
+ };
3809
+ var ComposableFinance = {
3810
+ defaultPallet: "RelayerXcm",
3811
+ supportedPallets: [
3812
+ "RelayerXcm"
3813
+ ]
3814
+ };
3815
+ var Darwinia = {
3816
+ defaultPallet: "PolkadotXcm",
3817
+ supportedPallets: [
3818
+ "PolkadotXcm"
3819
+ ]
3820
+ };
3821
+ var HydraDX = {
3822
+ defaultPallet: "XTokens",
3823
+ supportedPallets: [
3824
+ "PolkadotXcm",
3825
+ "XTokens"
3826
+ ]
3827
+ };
3828
+ var Interlay = {
3829
+ defaultPallet: "XTokens",
3830
+ supportedPallets: [
3831
+ "PolkadotXcm",
3832
+ "XTokens"
3833
+ ]
3834
+ };
3835
+ var Kylin = {
3836
+ defaultPallet: "OrmlXTokens",
3837
+ supportedPallets: [
3838
+ "PolkadotXcm",
3839
+ "OrmlXTokens"
3840
+ ]
3841
+ };
3842
+ var Litentry = {
3843
+ defaultPallet: "XTokens",
3844
+ supportedPallets: [
3845
+ "PolkadotXcm",
3846
+ "XTokens"
3847
+ ]
3848
+ };
3849
+ var Moonbeam = {
3850
+ defaultPallet: "XTokens",
3851
+ supportedPallets: [
3852
+ "PolkadotXcm",
3853
+ "XTokens"
3854
+ ]
3855
+ };
3856
+ var Parallel = {
3857
+ defaultPallet: "XTokens",
3858
+ supportedPallets: [
3859
+ "PolkadotXcm",
3860
+ "XTokens"
3861
+ ]
3862
+ };
3863
+ var Statemine = {
3864
+ defaultPallet: "PolkadotXcm",
3865
+ supportedPallets: [
3866
+ "PolkadotXcm"
3867
+ ]
3868
+ };
3869
+ var Encointer = {
3870
+ defaultPallet: "PolkadotXcm",
3871
+ supportedPallets: [
3872
+ "PolkadotXcm"
3873
+ ]
3874
+ };
3875
+ var Altair = {
3876
+ defaultPallet: "XTokens",
3877
+ supportedPallets: [
3878
+ "PolkadotXcm",
3879
+ "XTokens"
3880
+ ]
3881
+ };
3882
+ var Amplitude = {
3883
+ defaultPallet: "XTokens",
3884
+ supportedPallets: [
3885
+ "PolkadotXcm",
3886
+ "XTokens"
3887
+ ]
3888
+ };
3889
+ var Bajun = {
3890
+ defaultPallet: "PolkadotXcm",
3891
+ supportedPallets: [
3892
+ "PolkadotXcm"
3893
+ ]
3894
+ };
3895
+ var Basilisk = {
3896
+ defaultPallet: "XTokens",
3897
+ supportedPallets: [
3898
+ "PolkadotXcm",
3899
+ "XTokens"
3900
+ ]
3901
+ };
3902
+ var BifrostKusama = {
3903
+ defaultPallet: "XTokens",
3904
+ supportedPallets: [
3905
+ "PolkadotXcm",
3906
+ "XTokens"
3907
+ ]
3908
+ };
3909
+ var Pioneer = {
3910
+ defaultPallet: "XTokens",
3911
+ supportedPallets: [
3912
+ "PolkadotXcm",
3913
+ "XTokens"
3914
+ ]
3915
+ };
3916
+ var Calamari = {
3917
+ defaultPallet: "XTokens",
3918
+ supportedPallets: [
3919
+ "PolkadotXcm",
3920
+ "XTokens"
3921
+ ]
3922
+ };
3923
+ var CrustShadow = {
3924
+ defaultPallet: "XTokens",
3925
+ supportedPallets: [
3926
+ "PolkadotXcm",
3927
+ "XTokens"
3928
+ ]
3929
+ };
3930
+ var Crab = {
3931
+ defaultPallet: "PolkadotXcm",
3932
+ supportedPallets: [
3933
+ "PolkadotXcm"
3934
+ ]
3935
+ };
3936
+ var Dorafactory = {
3937
+ defaultPallet: "XTokens",
3938
+ supportedPallets: [
3939
+ "PolkadotXcm",
3940
+ "XTokens"
3941
+ ]
3942
+ };
3943
+ var Imbue = {
3944
+ defaultPallet: "XTokens",
3945
+ supportedPallets: [
3946
+ "PolkadotXcm",
3947
+ "XTokens"
3948
+ ]
3949
+ };
3950
+ var Integritee = {
3951
+ defaultPallet: "XTokens",
3952
+ supportedPallets: [
3953
+ "PolkadotXcm",
3954
+ "XTokens"
3955
+ ]
3956
+ };
3957
+ var InvArchTinker = {
3958
+ defaultPallet: "XTokens",
3959
+ supportedPallets: [
3960
+ "PolkadotXcm",
3961
+ "XTokens"
3962
+ ]
3963
+ };
3964
+ var Karura = {
3965
+ defaultPallet: "XTokens",
3966
+ supportedPallets: [
3967
+ "PolkadotXcm",
3968
+ "XTokens"
3969
+ ]
3970
+ };
3971
+ var Kico = {
3972
+ defaultPallet: "XTokens",
3973
+ supportedPallets: [
3974
+ "XTokens",
3975
+ "PolkadotXcm"
3976
+ ]
3977
+ };
3978
+ var Kintsugi = {
3979
+ defaultPallet: "XTokens",
3980
+ supportedPallets: [
3981
+ "PolkadotXcm",
3982
+ "XTokens"
3983
+ ]
3984
+ };
3985
+ var Listen = {
3986
+ defaultPallet: "XTokens",
3987
+ supportedPallets: [
3988
+ "PolkadotXcm",
3989
+ "XTokens"
3990
+ ]
3991
+ };
3992
+ var Litmus = {
3993
+ defaultPallet: "XTokens",
3994
+ supportedPallets: [
3995
+ "PolkadotXcm",
3996
+ "XTokens"
3997
+ ]
3998
+ };
3999
+ var Mangata = {
4000
+ defaultPallet: "XTokens",
4001
+ supportedPallets: [
4002
+ "PolkadotXcm",
4003
+ "XTokens"
4004
+ ]
4005
+ };
4006
+ var Moonriver = {
4007
+ defaultPallet: "XTokens",
4008
+ supportedPallets: [
4009
+ "PolkadotXcm",
4010
+ "XTokens"
4011
+ ]
4012
+ };
4013
+ var ParallelHeiko = {
4014
+ defaultPallet: "XTokens",
4015
+ supportedPallets: [
4016
+ "PolkadotXcm",
4017
+ "XTokens"
4018
+ ]
4019
+ };
4020
+ var Picasso = {
4021
+ defaultPallet: "XTokens",
4022
+ supportedPallets: [
4023
+ "RelayerXcm",
4024
+ "XTokens"
4025
+ ]
4026
+ };
4027
+ var Pichiu = {
4028
+ defaultPallet: "OrmlXTokens",
4029
+ supportedPallets: [
4030
+ "PolkadotXcm",
4031
+ "OrmlXTokens"
4032
+ ]
4033
+ };
4034
+ var Quartz = {
4035
+ defaultPallet: "XTokens",
4036
+ supportedPallets: [
4037
+ "XTokens",
4038
+ "PolkadotXcm"
4039
+ ]
4040
+ };
4041
+ var Robonomics = {
4042
+ defaultPallet: "PolkadotXcm",
4043
+ supportedPallets: [
4044
+ "PolkadotXcm"
4045
+ ]
4046
+ };
4047
+ var Shiden = {
4048
+ defaultPallet: "PolkadotXcm",
4049
+ supportedPallets: [
4050
+ "PolkadotXcm"
4051
+ ]
4052
+ };
4053
+ var Turing = {
4054
+ defaultPallet: "XTokens",
4055
+ supportedPallets: [
4056
+ "PolkadotXcm",
4057
+ "XTokens"
4058
+ ]
4059
+ };
4060
+ var pallets = {
4061
+ Statemint: Statemint,
4062
+ Acala: Acala,
4063
+ Astar: Astar,
4064
+ BifrostPolkadot: BifrostPolkadot,
4065
+ Bitgreen: Bitgreen,
4066
+ Centrifuge: Centrifuge,
4067
+ Clover: Clover,
4068
+ ComposableFinance: ComposableFinance,
4069
+ Darwinia: Darwinia,
4070
+ HydraDX: HydraDX,
4071
+ Interlay: Interlay,
4072
+ Kylin: Kylin,
4073
+ Litentry: Litentry,
4074
+ Moonbeam: Moonbeam,
4075
+ Parallel: Parallel,
4076
+ Statemine: Statemine,
4077
+ Encointer: Encointer,
4078
+ Altair: Altair,
4079
+ Amplitude: Amplitude,
4080
+ Bajun: Bajun,
4081
+ Basilisk: Basilisk,
4082
+ BifrostKusama: BifrostKusama,
4083
+ Pioneer: Pioneer,
4084
+ Calamari: Calamari,
4085
+ CrustShadow: CrustShadow,
4086
+ Crab: Crab,
4087
+ Dorafactory: Dorafactory,
4088
+ Imbue: Imbue,
4089
+ Integritee: Integritee,
4090
+ InvArchTinker: InvArchTinker,
4091
+ Karura: Karura,
4092
+ Kico: Kico,
4093
+ Kintsugi: Kintsugi,
4094
+ Listen: Listen,
4095
+ Litmus: Litmus,
4096
+ Mangata: Mangata,
4097
+ Moonriver: Moonriver,
4098
+ ParallelHeiko: ParallelHeiko,
4099
+ Picasso: Picasso,
4100
+ Pichiu: Pichiu,
4101
+ Quartz: Quartz,
4102
+ Robonomics: Robonomics,
4103
+ Shiden: Shiden,
4104
+ Turing: Turing
4105
+ };
4106
+
4107
+ var palletsMapJson = /*#__PURE__*/Object.freeze({
4108
+ __proto__: null,
4109
+ Acala: Acala,
4110
+ Altair: Altair,
4111
+ Amplitude: Amplitude,
4112
+ Astar: Astar,
4113
+ Bajun: Bajun,
4114
+ Basilisk: Basilisk,
4115
+ BifrostKusama: BifrostKusama,
4116
+ BifrostPolkadot: BifrostPolkadot,
4117
+ Bitgreen: Bitgreen,
4118
+ Calamari: Calamari,
4119
+ Centrifuge: Centrifuge,
4120
+ Clover: Clover,
4121
+ ComposableFinance: ComposableFinance,
4122
+ Crab: Crab,
4123
+ CrustShadow: CrustShadow,
4124
+ Darwinia: Darwinia,
4125
+ Dorafactory: Dorafactory,
4126
+ Encointer: Encointer,
4127
+ HydraDX: HydraDX,
4128
+ Imbue: Imbue,
4129
+ Integritee: Integritee,
4130
+ Interlay: Interlay,
4131
+ InvArchTinker: InvArchTinker,
4132
+ Karura: Karura,
4133
+ Kico: Kico,
4134
+ Kintsugi: Kintsugi,
4135
+ Kylin: Kylin,
4136
+ Listen: Listen,
4137
+ Litentry: Litentry,
4138
+ Litmus: Litmus,
4139
+ Mangata: Mangata,
4140
+ Moonbeam: Moonbeam,
4141
+ Moonriver: Moonriver,
4142
+ Parallel: Parallel,
4143
+ ParallelHeiko: ParallelHeiko,
4144
+ Picasso: Picasso,
4145
+ Pichiu: Pichiu,
4146
+ Pioneer: Pioneer,
4147
+ Quartz: Quartz,
4148
+ Robonomics: Robonomics,
4149
+ Shiden: Shiden,
4150
+ Statemine: Statemine,
4151
+ Statemint: Statemint,
4152
+ Turing: Turing,
4153
+ default: pallets
4154
+ });
4155
+
4156
+ var palletsMap = palletsMapJson;
4157
+ var getDefaultPallet = function getDefaultPallet(node) {
4158
+ return palletsMap[node].defaultPallet;
4159
+ };
4160
+ var getSupportedPallets = function getSupportedPallets(node) {
4161
+ return palletsMap[node].supportedPallets;
4162
+ };
4163
+
4164
+ var InvalidCurrencyError = /*#__PURE__*/function (_Error) {
4165
+ _inherits(InvalidCurrencyError, _Error);
4166
+ var _super = _createSuper(InvalidCurrencyError);
4167
+ function InvalidCurrencyError(message) {
4168
+ var _this;
4169
+ _classCallCheck(this, InvalidCurrencyError);
4170
+ _this = _super.call(this, message);
4171
+ _this.name = 'InvalidCurrencyError';
4172
+ return _this;
4173
+ }
4174
+ return _createClass(InvalidCurrencyError);
4175
+ }( /*#__PURE__*/_wrapNativeSuper(Error));
4176
+
4177
+ var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
4178
+ _inherits(NodeNotSupportedError, _Error);
4179
+ var _super = _createSuper(NodeNotSupportedError);
4180
+ function NodeNotSupportedError(message) {
4181
+ var _this;
4182
+ _classCallCheck(this, NodeNotSupportedError);
4183
+ _this = _super.call(this, message);
4184
+ _this.name = 'NodeNotSupported';
4185
+ return _this;
4186
+ }
4187
+ return _createClass(NodeNotSupportedError);
4188
+ }( /*#__PURE__*/_wrapNativeSuper(Error));
4189
+
4190
+ function send(api, origin, currency, currencyID, amount, to, destination) {
4191
+ if (!hasSupportForAsset(origin, currency)) {
4192
+ throw new InvalidCurrencyError("Node ".concat(origin, " does not support currency ").concat(currency, "."));
4193
+ }
4194
+ var type = destination ? 'ParaToPara' : 'ParaToRelay';
4195
+ var paraId = destination ? getParaId(destination) : undefined;
4196
+ var pallet = getDefaultPallet(origin);
4197
+ if (pallet === 'XTokens' || pallet === 'OrmlXTokens') {
4198
+ return constructXTokens(api, origin, currencyID, currency, amount, handleAddress(type, 'xTokens', api, to, paraId), getFees(type));
4199
+ } else if (pallet === 'PolkadotXcm' || pallet === 'RelayerXcm') {
4200
+ // Specific node requirements
4201
+ if ((origin === 'Statemint' || origin === 'Statemine') && type === 'ParaToPara') {
4202
+ return constructPolkadotXCM(api, origin, createHeaderPolkadotXCM(type, paraId), handleAddress(type, 'polkadotXCM', api, to, paraId), createCurrencySpecification(amount, type, origin, currencyID), type);
4203
+ } else if ((origin === 'Darwinia' || origin === 'Crab') && type === 'ParaToPara') {
4204
+ return constructPolkadotXCM(api, origin, createHeaderPolkadotXCM(type, paraId), handleAddress(type, 'polkadotXCM', api, to, paraId), createCurrencySpecification(amount, type, origin), type);
4205
+ } else if (origin === 'Quartz' && type === 'ParaToPara') {
4206
+ return constructPolkadotXCM(api, origin, createHeaderPolkadotXCM(type, paraId, origin), handleAddress(type, 'polkadotXCM', api, to, paraId, origin), createCurrencySpecification(amount, type, origin), type);
4207
+ }
4208
+ return constructPolkadotXCM(api, origin, createHeaderPolkadotXCM(type, paraId), handleAddress(type, 'polkadotXCM', api, to, paraId), createCurrencySpecification(amount, type), type);
4209
+ }
4210
+ throw new Error("Invalid pallet: ".concat(pallet));
4211
+ }
4212
+ function transferRelayToPara(api, destination, amount, to) {
4213
+ var paraId = getParaId(destination);
4214
+ if (destination === 'Statemine' || destination === 'Encointer') {
4215
+ // Same for Statemint, Statemine and Encoiter
4216
+ return api.tx.xcmPallet.limitedTeleportAssets(createHeaderPolkadotXCM('RelayToPara', paraId), handleAddress('RelayToPara', '', api, to, paraId), createCurrencySpecification(amount, 'RelayToPara'), 0, 'Unlimited');
4217
+ } else if (destination === 'Darwinia' || destination === 'Crab' || destination === 'Quartz') {
4218
+ // Do not do anything because Darwinia and Crab does not have DOT and KSM registered Quartz does not work with UMP & DMP too
4219
+ throw new NodeNotSupportedError('These nodes do not support XCM transfers from Relay / to Relay chain.');
4220
+ }
4221
+ return api.tx.xcmPallet.reserveTransferAssets(createHeaderPolkadotXCM('RelayToPara', paraId), handleAddress('RelayToPara', '', api, to, paraId), createCurrencySpecification(amount, 'RelayToPara'), 0);
4222
+ }
4223
+
4224
+ var index$3 = /*#__PURE__*/Object.freeze({
4225
+ __proto__: null,
4226
+ send: send,
4227
+ transferRelayToPara: transferRelayToPara
4228
+ });
4229
+
4230
+ function addLiquidity(api, assetA, assetB, amountA, amountBMaxLimit) {
4231
+ return api.tx.xyk.addLiquidity(assetA, assetB, amountA, amountBMaxLimit);
4232
+ }
4233
+ function buy(api, assetOut, assetIn, amount, maxLimit, discount) {
4234
+ return api.tx.xyk.buy(assetOut, assetIn, amount, maxLimit, discount);
4235
+ }
4236
+ function createPool(api, assetA, amountA, assetB, amountB) {
4237
+ return api.tx.xyk.createPool(assetA, amountA, assetB, amountB);
4238
+ }
4239
+ function removeLiquidity(api, assetA, assetB, liquidityAmount) {
4240
+ return api.tx.xyk.removeLiquidity(assetA, assetB, liquidityAmount);
4241
+ }
4242
+ function sell(api, assetIn, assetOut, amount, maxLimit, discount) {
4243
+ return api.tx.xyk.sell(assetIn, assetOut, amount, maxLimit, discount);
4244
+ }
4245
+
4246
+ var index$2 = /*#__PURE__*/Object.freeze({
4247
+ __proto__: null,
4248
+ addLiquidity: addLiquidity,
4249
+ buy: buy,
4250
+ createPool: createPool,
4251
+ removeLiquidity: removeLiquidity,
4252
+ sell: sell
4253
+ });
4254
+
4255
+ function openChannel(api, origin, destination, maxSize, maxMessageSize) {
4256
+ return api.tx.sudo.sudo(api.tx.parasSudoWrapper.sudoEstablishHrmpChannel(getParaId(origin), getParaId(destination), maxSize, maxMessageSize));
4257
+ }
4258
+
4259
+ var index$1 = /*#__PURE__*/Object.freeze({
4260
+ __proto__: null,
4261
+ openChannel: openChannel
4262
+ });
4263
+
4264
+ function closeChannel(api, origin, inbound, outbound) {
4265
+ return api.tx.sudo.sudo(api.tx.hrmp.forceCleanHrmp(getParaId(origin), inbound, outbound));
4266
+ }
4267
+
4268
+ var index = /*#__PURE__*/Object.freeze({
4269
+ __proto__: null,
4270
+ closeChannel: closeChannel
4271
+ });
4272
+
4273
+ var AddLiquidityBuilder = /*#__PURE__*/function () {
4274
+ function AddLiquidityBuilder(api) {
4275
+ _classCallCheck(this, AddLiquidityBuilder);
4276
+ this.api = api;
4277
+ }
4278
+ _createClass(AddLiquidityBuilder, [{
4279
+ key: "assetA",
4280
+ value: function assetA(_assetA) {
4281
+ this._assetA = _assetA;
4282
+ return this;
4283
+ }
4284
+ }, {
4285
+ key: "assetB",
4286
+ value: function assetB(_assetB) {
4287
+ this._assetB = _assetB;
4288
+ return this;
4289
+ }
4290
+ }, {
4291
+ key: "amountA",
4292
+ value: function amountA(_amountA) {
4293
+ this._amountA = _amountA;
4294
+ return this;
4295
+ }
4296
+ }, {
4297
+ key: "amountBMaxLimit",
4298
+ value: function amountBMaxLimit(_amountBMaxLimit) {
4299
+ this._amountBMaxLimit = _amountBMaxLimit;
4300
+ return this;
4301
+ }
4302
+ }, {
4303
+ key: "build",
4304
+ value: function build() {
4305
+ return addLiquidity(this.api, this._assetA, this._assetB, this._amountA, this._amountBMaxLimit);
4306
+ }
4307
+ }], [{
4308
+ key: "create",
4309
+ value: function create(api) {
4310
+ return new AddLiquidityBuilder(api);
4311
+ }
4312
+ }]);
4313
+ return AddLiquidityBuilder;
4314
+ }();
4315
+
4316
+ var BuyBuilder = /*#__PURE__*/function () {
4317
+ function BuyBuilder(api) {
4318
+ _classCallCheck(this, BuyBuilder);
4319
+ this.api = api;
4320
+ }
4321
+ _createClass(BuyBuilder, [{
4322
+ key: "assetOut",
4323
+ value: function assetOut(_assetOut) {
4324
+ this._assetOut = _assetOut;
4325
+ return this;
4326
+ }
4327
+ }, {
4328
+ key: "assetIn",
4329
+ value: function assetIn(_assetIn) {
4330
+ this._assetIn = _assetIn;
4331
+ return this;
4332
+ }
4333
+ }, {
4334
+ key: "amount",
4335
+ value: function amount(_amount) {
4336
+ this._amount = _amount;
4337
+ return this;
4338
+ }
4339
+ }, {
4340
+ key: "maxLimit",
4341
+ value: function maxLimit(_maxLimit) {
4342
+ this._maxLimit = _maxLimit;
4343
+ return this;
4344
+ }
4345
+ }, {
4346
+ key: "discount",
4347
+ value: function discount(_discount) {
4348
+ this._discount = _discount;
4349
+ return this;
4350
+ }
4351
+ }, {
4352
+ key: "build",
4353
+ value: function build() {
4354
+ return buy(this.api, this._assetOut, this._assetIn, this._amount, this._maxLimit, this._discount);
4355
+ }
4356
+ }], [{
4357
+ key: "create",
4358
+ value: function create(api) {
4359
+ return new BuyBuilder(api);
4360
+ }
4361
+ }]);
4362
+ return BuyBuilder;
4363
+ }();
4364
+
4365
+ var CloseChannelBuilder = /*#__PURE__*/function () {
4366
+ function CloseChannelBuilder(api, from) {
4367
+ _classCallCheck(this, CloseChannelBuilder);
4368
+ this.api = api;
4369
+ this.from = from;
4370
+ }
4371
+ _createClass(CloseChannelBuilder, [{
4372
+ key: "inbound",
4373
+ value: function inbound(_inbound) {
4374
+ this._inbound = _inbound;
4375
+ return this;
4376
+ }
4377
+ }, {
4378
+ key: "outbound",
4379
+ value: function outbound(_outbound) {
4380
+ this._outbound = _outbound;
4381
+ return this;
4382
+ }
4383
+ }, {
4384
+ key: "build",
4385
+ value: function build() {
4386
+ return closeChannel(this.api, this.from, this._inbound, this._outbound);
4387
+ }
4388
+ }], [{
4389
+ key: "create",
4390
+ value: function create(api, from) {
4391
+ return new CloseChannelBuilder(api, from);
4392
+ }
4393
+ }]);
4394
+ return CloseChannelBuilder;
4395
+ }();
4396
+
4397
+ var CreatePoolBuilder = /*#__PURE__*/function () {
4398
+ function CreatePoolBuilder(api) {
4399
+ _classCallCheck(this, CreatePoolBuilder);
4400
+ this.api = api;
4401
+ }
4402
+ _createClass(CreatePoolBuilder, [{
4403
+ key: "assetA",
4404
+ value: function assetA(_assetA) {
4405
+ this._assetA = _assetA;
4406
+ return this;
4407
+ }
4408
+ }, {
4409
+ key: "amountA",
4410
+ value: function amountA(_amountA) {
4411
+ this._amountA = _amountA;
4412
+ return this;
4413
+ }
4414
+ }, {
4415
+ key: "assetB",
4416
+ value: function assetB(_assetB) {
4417
+ this._assetB = _assetB;
4418
+ return this;
4419
+ }
4420
+ }, {
4421
+ key: "amountB",
4422
+ value: function amountB(_amountB) {
4423
+ this._amountB = _amountB;
4424
+ return this;
4425
+ }
4426
+ }, {
4427
+ key: "build",
4428
+ value: function build() {
4429
+ return createPool(this.api, this._assetA, this._amountA, this._assetB, this._amountB);
4430
+ }
4431
+ }], [{
4432
+ key: "create",
4433
+ value: function create(api) {
4434
+ return new CreatePoolBuilder(api);
4435
+ }
4436
+ }]);
4437
+ return CreatePoolBuilder;
4438
+ }();
4439
+
4440
+ var OpenChannelBuilder = /*#__PURE__*/function () {
4441
+ function OpenChannelBuilder(api, from, to) {
4442
+ _classCallCheck(this, OpenChannelBuilder);
4443
+ this.api = api;
4444
+ this.from = from;
4445
+ this.to = to;
4446
+ }
4447
+ _createClass(OpenChannelBuilder, [{
4448
+ key: "maxSize",
4449
+ value: function maxSize(size) {
4450
+ this._maxSize = size;
4451
+ return this;
4452
+ }
4453
+ }, {
4454
+ key: "maxMessageSize",
4455
+ value: function maxMessageSize(size) {
4456
+ this._maxMessageSize = size;
4457
+ return this;
4458
+ }
4459
+ }, {
4460
+ key: "build",
4461
+ value: function build() {
4462
+ return openChannel(this.api, this.from, this.to, this._maxSize, this._maxMessageSize);
4463
+ }
4464
+ }], [{
4465
+ key: "create",
4466
+ value: function create(api, from, to) {
4467
+ return new OpenChannelBuilder(api, from, to);
4468
+ }
4469
+ }]);
4470
+ return OpenChannelBuilder;
4471
+ }();
4472
+
4473
+ var RelayToParaBuilder = /*#__PURE__*/function () {
4474
+ function RelayToParaBuilder(api, to) {
4475
+ _classCallCheck(this, RelayToParaBuilder);
4476
+ this.api = api;
4477
+ this.to = to;
4478
+ }
4479
+ _createClass(RelayToParaBuilder, [{
4480
+ key: "amount",
4481
+ value: function amount(_amount) {
4482
+ this._amount = _amount;
4483
+ return this;
4484
+ }
4485
+ }, {
4486
+ key: "address",
4487
+ value: function address(_address) {
4488
+ this._address = _address;
4489
+ return this;
4490
+ }
4491
+ }, {
4492
+ key: "build",
4493
+ value: function build() {
4494
+ return transferRelayToPara(this.api, this.to, this._amount, this._address);
4495
+ }
4496
+ }], [{
4497
+ key: "create",
4498
+ value: function create(api, to) {
4499
+ return new RelayToParaBuilder(api, to);
4500
+ }
4501
+ }]);
4502
+ return RelayToParaBuilder;
4503
+ }();
4504
+
4505
+ var RemoveLiquidityBuilder = /*#__PURE__*/function () {
4506
+ function RemoveLiquidityBuilder(api) {
4507
+ _classCallCheck(this, RemoveLiquidityBuilder);
4508
+ this.api = api;
4509
+ }
4510
+ _createClass(RemoveLiquidityBuilder, [{
4511
+ key: "assetA",
4512
+ value: function assetA(_assetA) {
4513
+ this._assetA = _assetA;
4514
+ return this;
4515
+ }
4516
+ }, {
4517
+ key: "assetB",
4518
+ value: function assetB(_assetB) {
4519
+ this._assetB = _assetB;
4520
+ return this;
4521
+ }
4522
+ }, {
4523
+ key: "liquidityAmount",
4524
+ value: function liquidityAmount(_liquidityAmount) {
4525
+ this._liquidityAmount = _liquidityAmount;
4526
+ return this;
4527
+ }
4528
+ }, {
4529
+ key: "build",
4530
+ value: function build() {
4531
+ return removeLiquidity(this.api, this._assetA, this._assetB, this._liquidityAmount);
4532
+ }
4533
+ }], [{
4534
+ key: "create",
4535
+ value: function create(api) {
4536
+ return new RemoveLiquidityBuilder(api);
4537
+ }
4538
+ }]);
4539
+ return RemoveLiquidityBuilder;
4540
+ }();
4541
+
4542
+ var SellBuilder = /*#__PURE__*/function () {
4543
+ function SellBuilder(api) {
4544
+ _classCallCheck(this, SellBuilder);
4545
+ this.api = api;
4546
+ }
4547
+ _createClass(SellBuilder, [{
4548
+ key: "assetIn",
4549
+ value: function assetIn(_assetIn) {
4550
+ this._assetIn = _assetIn;
4551
+ return this;
4552
+ }
4553
+ }, {
4554
+ key: "assetOut",
4555
+ value: function assetOut(_assetOut) {
4556
+ this._assetOut = _assetOut;
4557
+ return this;
4558
+ }
4559
+ }, {
4560
+ key: "amount",
4561
+ value: function amount(_amount) {
4562
+ this._amount = _amount;
4563
+ return this;
4564
+ }
4565
+ }, {
4566
+ key: "maxLimit",
4567
+ value: function maxLimit(_maxLimit) {
4568
+ this._maxLimit = _maxLimit;
4569
+ return this;
4570
+ }
4571
+ }, {
4572
+ key: "discount",
4573
+ value: function discount(_discount) {
4574
+ this._discount = _discount;
4575
+ return this;
4576
+ }
4577
+ }, {
4578
+ key: "build",
4579
+ value: function build() {
4580
+ return sell(this.api, this._assetIn, this._assetOut, this._amount, this._maxLimit, this._discount);
4581
+ }
4582
+ }], [{
4583
+ key: "create",
4584
+ value: function create(api) {
4585
+ return new SellBuilder(api);
4586
+ }
4587
+ }]);
4588
+ return SellBuilder;
4589
+ }();
4590
+
4591
+ var SendBuilder = /*#__PURE__*/function () {
4592
+ function SendBuilder(api, from, to, currency) {
4593
+ _classCallCheck(this, SendBuilder);
4594
+ this.api = api;
4595
+ this.from = from;
4596
+ this.to = to;
4597
+ this.currency = currency;
4598
+ }
4599
+ _createClass(SendBuilder, [{
4600
+ key: "currencyId",
4601
+ value: function currencyId(_currencyId) {
4602
+ this._currencyId = _currencyId;
4603
+ return this;
4604
+ }
4605
+ }, {
4606
+ key: "amount",
4607
+ value: function amount(_amount) {
4608
+ this._amount = _amount;
4609
+ return this;
4610
+ }
4611
+ }, {
4612
+ key: "address",
4613
+ value: function address(_address) {
4614
+ this._address = _address;
4615
+ return this;
4616
+ }
4617
+ }, {
4618
+ key: "build",
4619
+ value: function build() {
4620
+ return send(this.api, this.from, this.currency, this._currencyId, this._amount, this._address, this.to);
4621
+ }
4622
+ }], [{
4623
+ key: "createParaToRelay",
4624
+ value: function createParaToRelay(api, from, currency) {
4625
+ return new SendBuilder(api, from, undefined, currency);
4626
+ }
4627
+ }, {
4628
+ key: "createParaToPara",
4629
+ value: function createParaToPara(api, from, to, currency) {
4630
+ return new SendBuilder(api, from, to, currency);
4631
+ }
4632
+ }]);
4633
+ return SendBuilder;
4634
+ }();
4635
+
4636
+ var ToGeneralBuilder = /*#__PURE__*/function () {
4637
+ function ToGeneralBuilder(api, from, to) {
4638
+ _classCallCheck(this, ToGeneralBuilder);
4639
+ this.api = api;
4640
+ this.from = from;
4641
+ this.to = to;
4642
+ }
4643
+ _createClass(ToGeneralBuilder, [{
4644
+ key: "currency",
4645
+ value: function currency(_currency) {
4646
+ return SendBuilder.createParaToPara(this.api, this.from, this.to, _currency);
4647
+ }
4648
+ }, {
4649
+ key: "openChannel",
4650
+ value: function openChannel() {
4651
+ return OpenChannelBuilder.create(this.api, this.from, this.to);
4652
+ }
4653
+ }]);
4654
+ return ToGeneralBuilder;
4655
+ }();
4656
+ var FromGeneralBuilder = /*#__PURE__*/function () {
4657
+ function FromGeneralBuilder(api, from) {
4658
+ _classCallCheck(this, FromGeneralBuilder);
4659
+ this.api = api;
4660
+ this.from = from;
4661
+ }
4662
+ _createClass(FromGeneralBuilder, [{
4663
+ key: "to",
4664
+ value: function to(node) {
4665
+ return new ToGeneralBuilder(this.api, this.from, node);
4666
+ }
4667
+ }, {
4668
+ key: "currency",
4669
+ value: function currency(_currency2) {
4670
+ return SendBuilder.createParaToRelay(this.api, this.from, _currency2);
4671
+ }
4672
+ }, {
4673
+ key: "closeChannel",
4674
+ value: function closeChannel() {
4675
+ return CloseChannelBuilder.create(this.api, this.from);
4676
+ }
4677
+ }]);
4678
+ return FromGeneralBuilder;
4679
+ }();
4680
+ var GeneralBuilder = /*#__PURE__*/function () {
4681
+ function GeneralBuilder(api) {
4682
+ _classCallCheck(this, GeneralBuilder);
4683
+ this.api = api;
4684
+ }
4685
+ _createClass(GeneralBuilder, [{
4686
+ key: "from",
4687
+ value: function from(node) {
4688
+ return new FromGeneralBuilder(this.api, node);
4689
+ }
4690
+ }, {
4691
+ key: "to",
4692
+ value: function to(node) {
4693
+ return RelayToParaBuilder.create(this.api, node);
4694
+ }
4695
+ }, {
4696
+ key: "addLiquidity",
4697
+ value: function addLiquidity() {
4698
+ return AddLiquidityBuilder.create(this.api);
4699
+ }
4700
+ }, {
4701
+ key: "removeLiquidity",
4702
+ value: function removeLiquidity() {
4703
+ return RemoveLiquidityBuilder.create(this.api);
4704
+ }
4705
+ }, {
4706
+ key: "buy",
4707
+ value: function buy() {
4708
+ return BuyBuilder.create(this.api);
4709
+ }
4710
+ }, {
4711
+ key: "sell",
4712
+ value: function sell() {
4713
+ return SellBuilder.create(this.api);
4714
+ }
4715
+ }, {
4716
+ key: "createPool",
4717
+ value: function createPool() {
4718
+ return CreatePoolBuilder.create(this.api);
4719
+ }
4720
+ }]);
4721
+ return GeneralBuilder;
4722
+ }();
4723
+ function Builder(api) {
4724
+ return new GeneralBuilder(api);
4725
+ }
4726
+
4727
+ export { Builder, NODE_NAMES, SUPPORTED_PALLETS, index$4 as assets, index as closeChannels, getAllAssetsSymbols, getAssetDecimals, getAssetId, getAssetsObject, getDefaultPallet, getNativeAssets, getOtherAssets, getParaId, getRelayChainSymbol, getSupportedPallets, hasSupportForAsset, index$1 as openChannels, index$3 as xcmPallet, index$2 as xyk };