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