@paraspell/sdk-core 8.1.0 → 8.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -12,7 +12,7 @@ function _arrayWithoutHoles(r) {
12
12
  if (Array.isArray(r)) return _arrayLikeToArray(r);
13
13
  }
14
14
  function _assertThisInitialized(e) {
15
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15
+ if (undefined === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16
16
  return e;
17
17
  }
18
18
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
@@ -36,7 +36,7 @@ function _asyncToGenerator(n) {
36
36
  function _throw(n) {
37
37
  asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
38
38
  }
39
- _next(void 0);
39
+ _next(undefined);
40
40
  });
41
41
  };
42
42
  }
@@ -56,12 +56,12 @@ function _construct(t, e, r) {
56
56
  function _defineProperties(e, r) {
57
57
  for (var t = 0; t < r.length; t++) {
58
58
  var o = r[t];
59
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
59
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
60
60
  }
61
61
  }
62
62
  function _createClass(e, r, t) {
63
63
  return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
64
- writable: !1
64
+ writable: false
65
65
  }), e;
66
66
  }
67
67
  function _createForOfIteratorHelper(r, e) {
@@ -75,9 +75,9 @@ function _createForOfIteratorHelper(r, e) {
75
75
  s: F,
76
76
  n: function () {
77
77
  return n >= r.length ? {
78
- done: !0
78
+ done: true
79
79
  } : {
80
- done: !1,
80
+ done: false,
81
81
  value: r[n++]
82
82
  };
83
83
  },
@@ -90,8 +90,8 @@ function _createForOfIteratorHelper(r, e) {
90
90
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
91
91
  }
92
92
  var o,
93
- a = !0,
94
- u = !1;
93
+ a = true,
94
+ u = false;
95
95
  return {
96
96
  s: function () {
97
97
  t = t.call(r);
@@ -101,7 +101,7 @@ function _createForOfIteratorHelper(r, e) {
101
101
  return a = r.done, r;
102
102
  },
103
103
  e: function (r) {
104
- u = !0, o = r;
104
+ u = true, o = r;
105
105
  },
106
106
  f: function () {
107
107
  try {
@@ -115,9 +115,9 @@ function _createForOfIteratorHelper(r, e) {
115
115
  function _defineProperty(e, r, t) {
116
116
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
117
117
  value: t,
118
- enumerable: !0,
119
- configurable: !0,
120
- writable: !0
118
+ enumerable: true,
119
+ configurable: true,
120
+ writable: true
121
121
  }) : e[r] = t, e;
122
122
  }
123
123
  function _get() {
@@ -139,11 +139,11 @@ function _inherits(t, e) {
139
139
  t.prototype = Object.create(e && e.prototype, {
140
140
  constructor: {
141
141
  value: t,
142
- writable: !0,
143
- configurable: !0
142
+ writable: true,
143
+ configurable: true
144
144
  }
145
145
  }), Object.defineProperty(t, "prototype", {
146
- writable: !1
146
+ writable: false
147
147
  }), e && _setPrototypeOf(t, e);
148
148
  }
149
149
  function _isNativeFunction(t) {
@@ -180,7 +180,7 @@ function ownKeys(e, r) {
180
180
  function _objectSpread2(e) {
181
181
  for (var r = 1; r < arguments.length; r++) {
182
182
  var t = null != arguments[r] ? arguments[r] : {};
183
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
183
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
184
184
  _defineProperty(e, r, t[r]);
185
185
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
186
186
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
@@ -190,7 +190,7 @@ function _objectSpread2(e) {
190
190
  }
191
191
  function _possibleConstructorReturn(t, e) {
192
192
  if (e && ("object" == typeof e || "function" == typeof e)) return e;
193
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
193
+ if (undefined !== e) throw new TypeError("Derived constructors may only return object or undefined");
194
194
  return _assertThisInitialized(t);
195
195
  }
196
196
  function _regeneratorRuntime() {
@@ -211,9 +211,9 @@ function _regeneratorRuntime() {
211
211
  function define(t, e, r) {
212
212
  return Object.defineProperty(t, e, {
213
213
  value: r,
214
- enumerable: !0,
215
- configurable: !0,
216
- writable: !0
214
+ enumerable: true,
215
+ configurable: true,
216
+ writable: true
217
217
  }), t[e];
218
218
  }
219
219
  try {
@@ -306,7 +306,7 @@ function _regeneratorRuntime() {
306
306
  if ("throw" === i) throw a;
307
307
  return {
308
308
  value: t,
309
- done: !0
309
+ done: true
310
310
  };
311
311
  }
312
312
  for (n.method = i, n.arg = a;;) {
@@ -357,7 +357,7 @@ function _regeneratorRuntime() {
357
357
  function Context(t) {
358
358
  this.tryEntries = [{
359
359
  tryLoc: "root"
360
- }], t.forEach(pushTryEntry, this), this.reset(!0);
360
+ }], t.forEach(pushTryEntry, this), this.reset(true);
361
361
  }
362
362
  function values(e) {
363
363
  if (e || "" === e) {
@@ -367,8 +367,8 @@ function _regeneratorRuntime() {
367
367
  if (!isNaN(e.length)) {
368
368
  var o = -1,
369
369
  i = function next() {
370
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
371
- return next.value = t, next.done = !0, next;
370
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
371
+ return next.value = t, next.done = true, next;
372
372
  };
373
373
  return i.next = i;
374
374
  }
@@ -377,10 +377,10 @@ function _regeneratorRuntime() {
377
377
  }
378
378
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
379
379
  value: GeneratorFunctionPrototype,
380
- configurable: !0
380
+ configurable: true
381
381
  }), o(GeneratorFunctionPrototype, "constructor", {
382
382
  value: GeneratorFunction,
383
- configurable: !0
383
+ configurable: true
384
384
  }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
385
385
  var e = "function" == typeof t && t.constructor;
386
386
  return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
@@ -393,7 +393,7 @@ function _regeneratorRuntime() {
393
393
  }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
394
394
  return this;
395
395
  }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
396
- void 0 === i && (i = Promise);
396
+ undefined === i && (i = Promise);
397
397
  var a = new AsyncIterator(wrap(t, r, n, o), i);
398
398
  return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
399
399
  return t.done ? t.value : a.next();
@@ -409,17 +409,17 @@ function _regeneratorRuntime() {
409
409
  return r.reverse(), function next() {
410
410
  for (; r.length;) {
411
411
  var t = r.pop();
412
- if (t in e) return next.value = t, next.done = !1, next;
412
+ if (t in e) return next.value = t, next.done = false, next;
413
413
  }
414
- return next.done = !0, next;
414
+ return next.done = true, next;
415
415
  };
416
416
  }, e.values = values, Context.prototype = {
417
417
  constructor: Context,
418
418
  reset: function (e) {
419
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
419
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
420
420
  },
421
421
  stop: function () {
422
- this.done = !0;
422
+ this.done = true;
423
423
  var t = this.tryEntries[0].completion;
424
424
  if ("throw" === t.type) throw t.arg;
425
425
  return this.rval;
@@ -438,10 +438,10 @@ function _regeneratorRuntime() {
438
438
  var c = n.call(i, "catchLoc"),
439
439
  u = n.call(i, "finallyLoc");
440
440
  if (c && u) {
441
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
441
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
442
442
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
443
443
  } else if (c) {
444
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
444
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
445
445
  } else {
446
446
  if (!u) throw Error("try statement without catch or finally");
447
447
  if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
@@ -515,7 +515,7 @@ function _toConsumableArray(r) {
515
515
  function _toPrimitive(t, r) {
516
516
  if ("object" != typeof t || !t) return t;
517
517
  var e = t[Symbol.toPrimitive];
518
- if (void 0 !== e) {
518
+ if (undefined !== e) {
519
519
  var i = e.call(t, r || "default");
520
520
  if ("object" != typeof i) return i;
521
521
  throw new TypeError("@@toPrimitive must return a primitive value.");
@@ -539,15 +539,15 @@ function _unsupportedIterableToArray(r, a) {
539
539
  if (r) {
540
540
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
541
541
  var t = {}.toString.call(r).slice(8, -1);
542
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
542
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
543
543
  }
544
544
  }
545
545
  function _wrapNativeSuper(t) {
546
- var r = "function" == typeof Map ? new Map() : void 0;
546
+ var r = "function" == typeof Map ? new Map() : undefined;
547
547
  return _wrapNativeSuper = function (t) {
548
548
  if (null === t || !_isNativeFunction(t)) return t;
549
549
  if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
550
- if (void 0 !== r) {
550
+ if (undefined !== r) {
551
551
  if (r.has(t)) return r.get(t);
552
552
  r.set(t, Wrapper);
553
553
  }
@@ -557,9 +557,9 @@ function _wrapNativeSuper(t) {
557
557
  return Wrapper.prototype = Object.create(t.prototype, {
558
558
  constructor: {
559
559
  value: Wrapper,
560
- enumerable: !1,
561
- writable: !0,
562
- configurable: !0
560
+ enumerable: false,
561
+ writable: true,
562
+ configurable: true
563
563
  }
564
564
  }), _setPrototypeOf(Wrapper, t);
565
565
  }, _wrapNativeSuper(t);
@@ -599,7 +599,7 @@ var Polimec$3 = {
599
599
  relayChainAssetSymbol: "DOT",
600
600
  nativeAssetSymbol: "PLMC",
601
601
  isEVM: false,
602
- supportsDryRunApi: false,
602
+ supportsDryRunApi: true,
603
603
  nativeAssets: [
604
604
  {
605
605
  symbol: "PLMC",
@@ -698,6 +698,28 @@ var Acala$3 = {
698
698
  }
699
699
  ],
700
700
  otherAssets: [
701
+ {
702
+ assetId: "18",
703
+ symbol: "LOVA",
704
+ decimals: 12,
705
+ multiLocation: {
706
+ parents: 1,
707
+ interior: {
708
+ X3: [
709
+ {
710
+ Parachain: 1000
711
+ },
712
+ {
713
+ PalletInstance: 50
714
+ },
715
+ {
716
+ GeneralIndex: 50000028
717
+ }
718
+ ]
719
+ }
720
+ },
721
+ existentialDeposit: "1"
722
+ },
701
723
  {
702
724
  assetId: "14",
703
725
  symbol: "USDC",
@@ -808,6 +830,50 @@ var Acala$3 = {
808
830
  },
809
831
  existentialDeposit: "3000"
810
832
  },
833
+ {
834
+ assetId: "19",
835
+ symbol: "DAMN",
836
+ decimals: 12,
837
+ multiLocation: {
838
+ parents: 1,
839
+ interior: {
840
+ X3: [
841
+ {
842
+ Parachain: 1000
843
+ },
844
+ {
845
+ PalletInstance: 50
846
+ },
847
+ {
848
+ GeneralIndex: 22222012
849
+ }
850
+ ]
851
+ }
852
+ },
853
+ existentialDeposit: "1"
854
+ },
855
+ {
856
+ assetId: "20",
857
+ symbol: "LOTY",
858
+ decimals: 12,
859
+ multiLocation: {
860
+ parents: 1,
861
+ interior: {
862
+ X3: [
863
+ {
864
+ Parachain: 1000
865
+ },
866
+ {
867
+ PalletInstance: 50
868
+ },
869
+ {
870
+ GeneralIndex: 50000069
871
+ }
872
+ ]
873
+ }
874
+ },
875
+ existentialDeposit: "100000000"
876
+ },
811
877
  {
812
878
  assetId: "0",
813
879
  symbol: "GLMR",
@@ -2700,12 +2766,55 @@ var Hydration$3 = {
2700
2766
  }
2701
2767
  ],
2702
2768
  otherAssets: [
2769
+ {
2770
+ assetId: "1000771",
2771
+ symbol: "KSM",
2772
+ decimals: 12,
2773
+ multiLocation: {
2774
+ parents: 1,
2775
+ interior: {
2776
+ X1: {
2777
+ GlobalConsensus: {
2778
+ kusama: null
2779
+ }
2780
+ }
2781
+ }
2782
+ },
2783
+ existentialDeposit: "313283208"
2784
+ },
2785
+ {
2786
+ assetId: "1000766",
2787
+ symbol: "USDC",
2788
+ decimals: 6,
2789
+ multiLocation: {
2790
+ parents: 2,
2791
+ interior: {
2792
+ X2: [
2793
+ {
2794
+ GlobalConsensus: {
2795
+ Ethereum: {
2796
+ chainId: 1
2797
+ }
2798
+ }
2799
+ },
2800
+ {
2801
+ AccountKey20: {
2802
+ network: null,
2803
+ key: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
2804
+ }
2805
+ }
2806
+ ]
2807
+ }
2808
+ },
2809
+ existentialDeposit: "10000",
2810
+ alias: "USDC1"
2811
+ },
2703
2812
  {
2704
2813
  assetId: "1000625",
2705
2814
  symbol: "sUSDe",
2706
2815
  decimals: 18,
2707
2816
  multiLocation: {
2708
- parents: 1,
2817
+ parents: 2,
2709
2818
  interior: {
2710
2819
  X2: [
2711
2820
  {
@@ -2743,7 +2852,7 @@ var Hydration$3 = {
2743
2852
  symbol: "AAVE",
2744
2853
  decimals: 18,
2745
2854
  multiLocation: {
2746
- parents: 1,
2855
+ parents: 2,
2747
2856
  interior: {
2748
2857
  X2: [
2749
2858
  {
@@ -2769,7 +2878,7 @@ var Hydration$3 = {
2769
2878
  symbol: "WBTC",
2770
2879
  decimals: 8,
2771
2880
  multiLocation: {
2772
- parents: 1,
2881
+ parents: 2,
2773
2882
  interior: {
2774
2883
  X2: [
2775
2884
  {
@@ -2796,7 +2905,7 @@ var Hydration$3 = {
2796
2905
  symbol: "sUSDS",
2797
2906
  decimals: 18,
2798
2907
  multiLocation: {
2799
- parents: 1,
2908
+ parents: 2,
2800
2909
  interior: {
2801
2910
  X2: [
2802
2911
  {
@@ -2818,6 +2927,59 @@ var Hydration$3 = {
2818
2927
  existentialDeposit: "9910802775024780",
2819
2928
  alias: "sUSDS1"
2820
2929
  },
2930
+ {
2931
+ assetId: "1000767",
2932
+ symbol: "USDT",
2933
+ decimals: 6,
2934
+ multiLocation: {
2935
+ parents: 2,
2936
+ interior: {
2937
+ X2: [
2938
+ {
2939
+ GlobalConsensus: {
2940
+ Ethereum: {
2941
+ chainId: 1
2942
+ }
2943
+ }
2944
+ },
2945
+ {
2946
+ AccountKey20: {
2947
+ network: null,
2948
+ key: "0xdac17f958d2ee523a2206206994597c13d831ec7"
2949
+ }
2950
+ }
2951
+ ]
2952
+ }
2953
+ },
2954
+ existentialDeposit: "10000",
2955
+ alias: "USDT2"
2956
+ },
2957
+ {
2958
+ assetId: "1000765",
2959
+ symbol: "tBTC",
2960
+ decimals: 18,
2961
+ multiLocation: {
2962
+ parents: 2,
2963
+ interior: {
2964
+ X2: [
2965
+ {
2966
+ GlobalConsensus: {
2967
+ Ethereum: {
2968
+ chainId: 1
2969
+ }
2970
+ }
2971
+ },
2972
+ {
2973
+ AccountKey20: {
2974
+ network: null,
2975
+ key: "0x18084fba666a33d37592fa2633fd49a74dd93a88"
2976
+ }
2977
+ }
2978
+ ]
2979
+ }
2980
+ },
2981
+ existentialDeposit: "106803374987"
2982
+ },
2821
2983
  {
2822
2984
  assetId: "1000189",
2823
2985
  symbol: "WETH",
@@ -2911,7 +3073,7 @@ var Hydration$3 = {
2911
3073
  }
2912
3074
  },
2913
3075
  existentialDeposit: "10000",
2914
- alias: "USDC2"
3076
+ alias: "USDC3"
2915
3077
  },
2916
3078
  {
2917
3079
  assetId: "4",
@@ -3024,7 +3186,7 @@ var Hydration$3 = {
3024
3186
  }
3025
3187
  },
3026
3188
  existentialDeposit: "10000",
3027
- alias: "USDC3"
3189
+ alias: "USDC4"
3028
3190
  },
3029
3191
  {
3030
3192
  assetId: "1000100",
@@ -3095,7 +3257,7 @@ var Hydration$3 = {
3095
3257
  }
3096
3258
  },
3097
3259
  existentialDeposit: "10000",
3098
- alias: "USDC1"
3260
+ alias: "USDC2"
3099
3261
  },
3100
3262
  {
3101
3263
  assetId: "20",
@@ -3269,7 +3431,7 @@ var Hydration$3 = {
3269
3431
  }
3270
3432
  },
3271
3433
  existentialDeposit: "10000",
3272
- alias: "USDT2"
3434
+ alias: "USDT3"
3273
3435
  },
3274
3436
  {
3275
3437
  assetId: "1000752",
@@ -3541,6 +3703,28 @@ var Hydration$3 = {
3541
3703
  },
3542
3704
  existentialDeposit: "0"
3543
3705
  },
3706
+ {
3707
+ assetId: "1005",
3708
+ symbol: "avDOT",
3709
+ decimals: 10,
3710
+ multiLocation: {
3711
+ parents: 1,
3712
+ interior: {
3713
+ X2: [
3714
+ {
3715
+ Parachain: 2034
3716
+ },
3717
+ {
3718
+ AccountKey20: {
3719
+ network: null,
3720
+ key: "0x0e13b904f4168f93814216b6874ca8349457f263"
3721
+ }
3722
+ }
3723
+ ]
3724
+ }
3725
+ },
3726
+ existentialDeposit: "0"
3727
+ },
3544
3728
  {
3545
3729
  assetId: "1004",
3546
3730
  symbol: "aWBTC",
@@ -5607,6 +5791,26 @@ var AssetHubPolkadot$3 = {
5607
5791
  ],
5608
5792
  existentialDeposit: "3000"
5609
5793
  },
5794
+ {
5795
+ assetId: "22222012",
5796
+ symbol: "DAMN",
5797
+ decimals: 12,
5798
+ xcmInterior: [
5799
+ {
5800
+ Network: "polkadot"
5801
+ },
5802
+ {
5803
+ Parachain: 1000
5804
+ },
5805
+ {
5806
+ PalletInstance: 50
5807
+ },
5808
+ {
5809
+ GeneralIndex: 22222012
5810
+ }
5811
+ ],
5812
+ existentialDeposit: "1000000000000"
5813
+ },
5610
5814
  {
5611
5815
  assetId: "23",
5612
5816
  symbol: "PINK",
@@ -5687,6 +5891,46 @@ var AssetHubPolkadot$3 = {
5687
5891
  ],
5688
5892
  existentialDeposit: "1000000"
5689
5893
  },
5894
+ {
5895
+ assetId: "50000028",
5896
+ symbol: "LOVA",
5897
+ decimals: 12,
5898
+ xcmInterior: [
5899
+ {
5900
+ Network: "polkadot"
5901
+ },
5902
+ {
5903
+ Parachain: 1000
5904
+ },
5905
+ {
5906
+ PalletInstance: 50
5907
+ },
5908
+ {
5909
+ GeneralIndex: 50000028
5910
+ }
5911
+ ],
5912
+ existentialDeposit: "1000000000000"
5913
+ },
5914
+ {
5915
+ assetId: "50000069",
5916
+ symbol: "LOTY",
5917
+ decimals: 12,
5918
+ xcmInterior: [
5919
+ {
5920
+ Network: "polkadot"
5921
+ },
5922
+ {
5923
+ Parachain: 1000
5924
+ },
5925
+ {
5926
+ PalletInstance: 50
5927
+ },
5928
+ {
5929
+ GeneralIndex: 50000069
5930
+ }
5931
+ ],
5932
+ existentialDeposit: "100000000"
5933
+ },
5690
5934
  {
5691
5935
  assetId: "555",
5692
5936
  symbol: "GAME",
@@ -5779,6 +6023,21 @@ var AssetHubPolkadot$3 = {
5779
6023
  },
5780
6024
  existentialDeposit: "1000000000"
5781
6025
  },
6026
+ {
6027
+ symbol: "PLMC",
6028
+ decimals: 10,
6029
+ multiLocation: {
6030
+ parents: 1,
6031
+ interior: {
6032
+ X1: [
6033
+ {
6034
+ Parachain: 3344
6035
+ }
6036
+ ]
6037
+ }
6038
+ },
6039
+ existentialDeposit: "1000000000"
6040
+ },
5782
6041
  {
5783
6042
  symbol: "LAOS",
5784
6043
  decimals: 18,
@@ -6858,7 +7117,7 @@ var Crab$3 = {
6858
7117
  relayChainAssetSymbol: "KSM",
6859
7118
  nativeAssetSymbol: "CRAB",
6860
7119
  isEVM: true,
6861
- supportsDryRunApi: false,
7120
+ supportsDryRunApi: true,
6862
7121
  nativeAssets: [
6863
7122
  {
6864
7123
  symbol: "CRAB",
@@ -10949,6 +11208,30 @@ var Ethereum = {
10949
11208
  ]
10950
11209
  }
10951
11210
  }
11211
+ },
11212
+ {
11213
+ symbol: "AAVE",
11214
+ assetId: "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
11215
+ existentialDeposit: "1",
11216
+ multiLocation: {
11217
+ parents: 2,
11218
+ interior: {
11219
+ X2: [
11220
+ {
11221
+ GlobalConsensus: {
11222
+ Ethereum: {
11223
+ chain_id: 1
11224
+ }
11225
+ }
11226
+ },
11227
+ {
11228
+ AccountKey20: {
11229
+ key: "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9"
11230
+ }
11231
+ }
11232
+ ]
11233
+ }
11234
+ }
10952
11235
  }
10953
11236
  ]
10954
11237
  };
@@ -11617,7 +11900,7 @@ var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
11617
11900
  function NodeNotSupportedError(message) {
11618
11901
  var _this;
11619
11902
  _classCallCheck(this, NodeNotSupportedError);
11620
- _this = _callSuper(this, NodeNotSupportedError, [message !== null && message !== void 0 ? message : 'These nodes do not support XCM transfers from Relay / to Relay chain.']);
11903
+ _this = _callSuper(this, NodeNotSupportedError, [message !== null && message !== undefined ? message : 'These nodes do not support XCM transfers from Relay / to Relay chain.']);
11621
11904
  _this.name = 'NodeNotSupported';
11622
11905
  return _this;
11623
11906
  }
@@ -11639,7 +11922,7 @@ var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
11639
11922
  function ScenarioNotSupportedError(node, scenario, message) {
11640
11923
  var _this;
11641
11924
  _classCallCheck(this, ScenarioNotSupportedError);
11642
- _this = _callSuper(this, ScenarioNotSupportedError, [message !== null && message !== void 0 ? message : "Scenario ".concat(scenario, " not supported for node ").concat(node)]);
11925
+ _this = _callSuper(this, ScenarioNotSupportedError, [message !== null && message !== undefined ? message : "Scenario ".concat(scenario, " not supported for node ").concat(node)]);
11643
11926
  _this.name = 'ScenarioNotSupported';
11644
11927
  return _this;
11645
11928
  }
@@ -11659,7 +11942,7 @@ var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
11659
11942
  function IncompatibleNodesError(message) {
11660
11943
  var _this;
11661
11944
  _classCallCheck(this, IncompatibleNodesError);
11662
- _this = _callSuper(this, IncompatibleNodesError, [message !== null && message !== void 0 ? message : 'Transactions between nodes on different relaychains are not yet possible.']);
11945
+ _this = _callSuper(this, IncompatibleNodesError, [message !== null && message !== undefined ? message : 'Transactions between nodes on different relaychains are not yet possible.']);
11663
11946
  _this.name = 'IncompatibleNodes';
11664
11947
  return _this;
11665
11948
  }
@@ -13248,8 +13531,8 @@ var createCurrencySpec = function createCurrencySpec(amount, version, parents, o
13248
13531
  _defineProperty({}, version, overriddenCurrency);
13249
13532
  };
13250
13533
  var createPolkadotXcmHeader = function createPolkadotXcmHeader(scenario, version, destination, nodeId, junction, parents) {
13251
- var parentsResolved = parents !== null && parents !== void 0 ? parents : scenario === 'RelayToPara' ? exports.Parents.ZERO : exports.Parents.ONE;
13252
- var interior = scenario === 'ParaToRelay' ? 'Here' : createX1Payload(version, junction !== null && junction !== void 0 ? junction : {
13534
+ var parentsResolved = parents !== null && parents !== undefined ? parents : scenario === 'RelayToPara' ? exports.Parents.ZERO : exports.Parents.ONE;
13535
+ var interior = scenario === 'ParaToRelay' ? 'Here' : createX1Payload(version, junction !== null && junction !== undefined ? junction : {
13253
13536
  Parachain: nodeId
13254
13537
  });
13255
13538
  var isMultiLocationDestination = _typeof(destination) === 'object';
@@ -13280,7 +13563,7 @@ var resolveTNodeFromMultiLocation = function resolveTNodeFromMultiLocation(relay
13280
13563
  }
13281
13564
  var node = (_NODE_NAMES_DOT_KSM$f = NODE_NAMES_DOT_KSM.find(function (nodeName) {
13282
13565
  return getParaId(nodeName) === parachainId && determineRelayChain(nodeName) === relayChain;
13283
- })) !== null && _NODE_NAMES_DOT_KSM$f !== void 0 ? _NODE_NAMES_DOT_KSM$f : null;
13566
+ })) !== null && _NODE_NAMES_DOT_KSM$f !== undefined ? _NODE_NAMES_DOT_KSM$f : null;
13284
13567
  if (node === null) {
13285
13568
  throw new Error('Node with specified paraId not found in destination multi location.');
13286
13569
  }
@@ -13313,7 +13596,7 @@ var buildMultiLocation = function buildMultiLocation(_ref) {
13313
13596
  // If it is a native asset, search by symbol on AssetHub and use the multiLocation from there
13314
13597
  var assetHubAsset = getOtherAssets(destination).find(function (ahAsset) {
13315
13598
  var _ahAsset$symbol, _asset$symbol;
13316
- return ((_ahAsset$symbol = ahAsset.symbol) === null || _ahAsset$symbol === void 0 ? void 0 : _ahAsset$symbol.toLowerCase()) === ((_asset$symbol = asset.symbol) === null || _asset$symbol === void 0 ? void 0 : _asset$symbol.toLowerCase());
13599
+ return ((_ahAsset$symbol = ahAsset.symbol) === null || _ahAsset$symbol === undefined ? undefined : _ahAsset$symbol.toLowerCase()) === ((_asset$symbol = asset.symbol) === null || _asset$symbol === undefined ? undefined : _asset$symbol.toLowerCase());
13317
13600
  });
13318
13601
  if (assetHubAsset === undefined) {
13319
13602
  throw new InvalidCurrencyError("Asset ".concat(asset.symbol, " not found in AssetHub"));
@@ -13427,8 +13710,8 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
13427
13710
  var section = shouldUseMultiasset ? isMultiAsset ? 'transfer_multiassets' : 'transfer_multiasset' : 'transfer';
13428
13711
  var parameters = getXTokensParameters(shouldUseMultiasset, modifiedCurrencySelection, addressSelection, asset.amount, fees, overriddenAsset);
13429
13712
  var call = {
13430
- module: pallet !== null && pallet !== void 0 ? pallet : 'XTokens',
13431
- section: method !== null && method !== void 0 ? method : section,
13713
+ module: pallet !== null && pallet !== undefined ? pallet : 'XTokens',
13714
+ section: method !== null && method !== undefined ? method : section,
13432
13715
  parameters: parameters
13433
13716
  };
13434
13717
  return api.callTxMethod(call);
@@ -13440,7 +13723,7 @@ var resolveParaId = function resolveParaId(paraId, destination) {
13440
13723
  if (isTMultiLocation(destination) || isRelayChain(destination) || destination === 'Ethereum') {
13441
13724
  return undefined;
13442
13725
  }
13443
- return paraId !== null && paraId !== void 0 ? paraId : getParaId(destination);
13726
+ return paraId !== null && paraId !== undefined ? paraId : getParaId(destination);
13444
13727
  };
13445
13728
 
13446
13729
  var supportsXTokens = function supportsXTokens(obj) {
@@ -13509,7 +13792,7 @@ var ParachainNode = /*#__PURE__*/function () {
13509
13792
  }
13510
13793
  throw new Error('Sending assets to Polimec is supported only from AssetHubPolkadot');
13511
13794
  case 6:
13512
- versionOrDefault = version !== null && version !== void 0 ? version : this.version;
13795
+ versionOrDefault = version !== null && version !== undefined ? version : this.version;
13513
13796
  if (!(supportsXTokens(this) && this.canUseXTokens(options))) {
13514
13797
  _context.next = 17;
13515
13798
  break;
@@ -13599,15 +13882,15 @@ var ParachainNode = /*#__PURE__*/function () {
13599
13882
  key: "transferRelayToPara",
13600
13883
  value: function transferRelayToPara(options) {
13601
13884
  var _options$version = options.version,
13602
- version = _options$version === void 0 ? exports.Version.V3 : _options$version,
13885
+ version = _options$version === undefined ? exports.Version.V3 : _options$version,
13603
13886
  pallet = options.pallet,
13604
13887
  method = options.method;
13605
13888
  var _this$getRelayToParaO = this.getRelayToParaOverrides(),
13606
13889
  section = _this$getRelayToParaO.section,
13607
13890
  includeFee = _this$getRelayToParaO.includeFee;
13608
13891
  return {
13609
- module: pallet !== null && pallet !== void 0 ? pallet : 'XcmPallet',
13610
- section: method !== null && method !== void 0 ? method : section,
13892
+ module: pallet !== null && pallet !== undefined ? pallet : 'XcmPallet',
13893
+ section: method !== null && method !== undefined ? method : section,
13611
13894
  parameters: constructRelayToParaParameters(options, version, {
13612
13895
  includeFee: includeFee
13613
13896
  })
@@ -13721,8 +14004,8 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
13721
14004
  return asset.isFeeAsset;
13722
14005
  });
13723
14006
  var call = {
13724
- module: pallet !== null && pallet !== void 0 ? pallet : 'PolkadotXcm',
13725
- section: method !== null && method !== void 0 ? method : section,
14007
+ module: pallet !== null && pallet !== undefined ? pallet : 'PolkadotXcm',
14008
+ section: method !== null && method !== undefined ? method : section,
13726
14009
  parameters: _objectSpread2({
13727
14010
  dest: header,
13728
14011
  beneficiary: addressSelection,
@@ -13791,7 +14074,7 @@ var BifrostPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
13791
14074
  currencySelection: createCurrencySpec(asset.amount, this.version, asset.symbol === 'DOT' ? exports.Parents.ONE : exports.Parents.TWO, overriddenAsset, asset.symbol === 'WETH' ? {
13792
14075
  X2: [ETHEREUM_JUNCTION, {
13793
14076
  AccountKey20: {
13794
- key: (_getAssetId = getAssetId('Ethereum', 'WETH')) !== null && _getAssetId !== void 0 ? _getAssetId : ''
14077
+ key: (_getAssetId = getAssetId('Ethereum', 'WETH')) !== null && _getAssetId !== undefined ? _getAssetId : ''
13795
14078
  }
13796
14079
  }]
13797
14080
  } : undefined)
@@ -13935,7 +14218,7 @@ var createCustomXcmOnDest = function createCustomXcmOnDest(_ref4, version) {
13935
14218
  assets: {
13936
14219
  Wild: 'All'
13937
14220
  },
13938
- beneficiary: Object.values(generateAddressPayload(api, scenario, 'PolkadotXcm', ahAddress !== null && ahAddress !== void 0 ? ahAddress : '', version, undefined))[0]
14221
+ beneficiary: Object.values(generateAddressPayload(api, scenario, 'PolkadotXcm', ahAddress !== null && ahAddress !== undefined ? ahAddress : '', version, undefined))[0]
13939
14222
  }
13940
14223
  }]
13941
14224
  }, {
@@ -13943,7 +14226,7 @@ var createCustomXcmOnDest = function createCustomXcmOnDest(_ref4, version) {
13943
14226
  assets: {
13944
14227
  Wild: {
13945
14228
  AllOf: {
13946
- id: createEthereumTokenLocation((_asset$assetId = asset.assetId) !== null && _asset$assetId !== void 0 ? _asset$assetId : ''),
14229
+ id: createEthereumTokenLocation((_asset$assetId = asset.assetId) !== null && _asset$assetId !== undefined ? _asset$assetId : ''),
13947
14230
  fun: 'Fungible'
13948
14231
  }
13949
14232
  }
@@ -14019,7 +14302,7 @@ var Hydration$1 = /*#__PURE__*/function (_ParachainNode) {
14019
14302
  }
14020
14303
  throw new Error('Only Ethereum addresses are supported for Ethereum transfers');
14021
14304
  case 3:
14022
- if (!(((_asset$symbol = asset.symbol) === null || _asset$symbol === void 0 ? void 0 : _asset$symbol.toUpperCase()) !== 'WETH')) {
14305
+ if (!(((_asset$symbol = asset.symbol) === null || _asset$symbol === undefined ? undefined : _asset$symbol.toUpperCase()) !== 'WETH')) {
14023
14306
  _context2.next = 5;
14024
14307
  break;
14025
14308
  }
@@ -14037,8 +14320,8 @@ var Hydration$1 = /*#__PURE__*/function (_ParachainNode) {
14037
14320
  }
14038
14321
  throw new Error('AssetHub address is required for Ethereum transfers');
14039
14322
  case 9:
14040
- versionOrDefault = version !== null && version !== void 0 ? version : exports.Version.V4;
14041
- ethMultiAsset = Object.values(createCurrencySpec(asset.amount, versionOrDefault, exports.Parents.TWO, createEthereumTokenLocation((_asset$assetId2 = asset.assetId) !== null && _asset$assetId2 !== void 0 ? _asset$assetId2 : '')))[0][0];
14323
+ versionOrDefault = version !== null && version !== undefined ? version : exports.Version.V4;
14324
+ ethMultiAsset = Object.values(createCurrencySpec(asset.amount, versionOrDefault, exports.Parents.TWO, createEthereumTokenLocation((_asset$assetId2 = asset.assetId) !== null && _asset$assetId2 !== undefined ? _asset$assetId2 : '')))[0][0];
14042
14325
  _context2.next = 13;
14043
14326
  return calculateFee(api);
14044
14327
  case 13:
@@ -14079,7 +14362,7 @@ var Hydration$1 = /*#__PURE__*/function (_ParachainNode) {
14079
14362
  scenario = input.scenario,
14080
14363
  version = input.version,
14081
14364
  destination = input.destination;
14082
- var versionOrDefault = version !== null && version !== void 0 ? version : exports.Version.V3;
14365
+ var versionOrDefault = version !== null && version !== undefined ? version : exports.Version.V3;
14083
14366
  var call = {
14084
14367
  module: 'PolkadotXcm',
14085
14368
  section: 'transfer_assets_using_type_and_then',
@@ -14178,10 +14461,17 @@ var Litentry$1 = /*#__PURE__*/function (_ParachainNode) {
14178
14461
  }
14179
14462
  _inherits(Litentry, _ParachainNode);
14180
14463
  return _createClass(Litentry, [{
14181
- key: "transferXTokens",
14182
- value: function transferXTokens(input) {
14183
- var currencySelection = 'SelfReserve';
14184
- return XTokensTransferImpl.transferXTokens(input, currencySelection);
14464
+ key: "transferPolkadotXCM",
14465
+ value: function transferPolkadotXCM(input) {
14466
+ var scenario = input.scenario,
14467
+ asset = input.asset;
14468
+ if (scenario !== 'ParaToPara') {
14469
+ throw new ScenarioNotSupportedError(this.node, scenario);
14470
+ }
14471
+ if (asset.symbol !== this.getNativeAssetSymbol()) {
14472
+ throw new InvalidCurrencyError("Asset ".concat(asset.symbol, " is not supported by node ").concat(this.node, "."));
14473
+ }
14474
+ return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(input, 'limited_reserve_transfer_assets', 'Unlimited'));
14185
14475
  }
14186
14476
  }]);
14187
14477
  }(ParachainNode);
@@ -14215,7 +14505,7 @@ var Moonbeam$1 = /*#__PURE__*/function (_ParachainNode) {
14215
14505
  var asset = input.asset,
14216
14506
  scenario = input.scenario,
14217
14507
  _input$version = input.version,
14218
- version = _input$version === void 0 ? this.version : _input$version,
14508
+ version = _input$version === undefined ? this.version : _input$version,
14219
14509
  overriddenAsset = input.overriddenAsset;
14220
14510
  var multiLocation = this.getJunctions(asset, scenario);
14221
14511
  return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(_objectSpread2(_objectSpread2({}, input), {}, {
@@ -14438,7 +14728,7 @@ var Moonriver$1 = /*#__PURE__*/function (_ParachainNode) {
14438
14728
  var asset = input.asset,
14439
14729
  scenario = input.scenario,
14440
14730
  _input$version = input.version,
14441
- version = _input$version === void 0 ? this.version : _input$version,
14731
+ version = _input$version === undefined ? this.version : _input$version,
14442
14732
  overriddenAsset = input.overriddenAsset;
14443
14733
  var multiLocation = this.getJunctions(asset, scenario);
14444
14734
  return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(_objectSpread2(_objectSpread2({}, input), {}, {
@@ -14697,8 +14987,8 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
14697
14987
  if (!isForeignAsset(asset)) {
14698
14988
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
14699
14989
  }
14700
- var versionOrDefault = version !== null && version !== void 0 ? version : _this.version;
14701
- var ethereumTokenLocation = createEthereumTokenLocation((_asset$assetId = asset.assetId) !== null && _asset$assetId !== void 0 ? _asset$assetId : '');
14990
+ var versionOrDefault = version !== null && version !== undefined ? version : _this.version;
14991
+ var ethereumTokenLocation = createEthereumTokenLocation((_asset$assetId = asset.assetId) !== null && _asset$assetId !== undefined ? _asset$assetId : '');
14702
14992
  var call = {
14703
14993
  module: 'PolkadotXcm',
14704
14994
  section: 'transfer_assets_using_type_and_then',
@@ -14723,14 +15013,14 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
14723
15013
  key: "handleBridgeTransfer",
14724
15014
  value: function handleBridgeTransfer(input, targetChain) {
14725
15015
  var _input$asset$symbol, _input$asset$symbol2, _input$asset$symbol3, _input$asset$symbol4;
14726
- if (targetChain === 'Kusama' && ((_input$asset$symbol = input.asset.symbol) === null || _input$asset$symbol === void 0 ? void 0 : _input$asset$symbol.toUpperCase()) === 'KSM' || targetChain === 'Polkadot' && ((_input$asset$symbol2 = input.asset.symbol) === null || _input$asset$symbol2 === void 0 ? void 0 : _input$asset$symbol2.toUpperCase()) === 'DOT') {
15016
+ if (targetChain === 'Kusama' && ((_input$asset$symbol = input.asset.symbol) === null || _input$asset$symbol === undefined ? undefined : _input$asset$symbol.toUpperCase()) === 'KSM' || targetChain === 'Polkadot' && ((_input$asset$symbol2 = input.asset.symbol) === null || _input$asset$symbol2 === undefined ? undefined : _input$asset$symbol2.toUpperCase()) === 'DOT') {
14727
15017
  var modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
14728
15018
  header: createBridgePolkadotXcmDest(exports.Version.V4, targetChain, input.destination, input.paraIdTo),
14729
15019
  addressSelection: generateAddressMultiLocationV4(input.api, input.address),
14730
15020
  currencySelection: createBridgeCurrencySpec(input.asset.amount, targetChain)
14731
15021
  });
14732
15022
  return PolkadotXCMTransferImpl.transferPolkadotXCM(modifiedInput, 'transfer_assets', 'Unlimited');
14733
- } else if (targetChain === 'Polkadot' && ((_input$asset$symbol3 = input.asset.symbol) === null || _input$asset$symbol3 === void 0 ? void 0 : _input$asset$symbol3.toUpperCase()) === 'KSM' || targetChain === 'Kusama' && ((_input$asset$symbol4 = input.asset.symbol) === null || _input$asset$symbol4 === void 0 ? void 0 : _input$asset$symbol4.toUpperCase()) === 'DOT') {
15023
+ } else if (targetChain === 'Polkadot' && ((_input$asset$symbol3 = input.asset.symbol) === null || _input$asset$symbol3 === undefined ? undefined : _input$asset$symbol3.toUpperCase()) === 'KSM' || targetChain === 'Kusama' && ((_input$asset$symbol4 = input.asset.symbol) === null || _input$asset$symbol4 === undefined ? undefined : _input$asset$symbol4.toUpperCase()) === 'DOT') {
14734
15024
  var _modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
14735
15025
  header: createBridgePolkadotXcmDest(exports.Version.V3, targetChain, input.destination, input.paraIdTo),
14736
15026
  currencySelection: createCurrencySpec(input.asset.amount, exports.Version.V3, exports.Parents.ONE, input.overriddenAsset)
@@ -14767,7 +15057,7 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
14767
15057
  interior: {
14768
15058
  X2: [ETHEREUM_JUNCTION, {
14769
15059
  AccountKey20: {
14770
- key: (_ethAsset$assetId = ethAsset.assetId) !== null && _ethAsset$assetId !== void 0 ? _ethAsset$assetId : ''
15060
+ key: (_ethAsset$assetId = ethAsset.assetId) !== null && _ethAsset$assetId !== undefined ? _ethAsset$assetId : ''
14771
15061
  }
14772
15062
  }]
14773
15063
  }
@@ -14798,7 +15088,7 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
14798
15088
  var modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
14799
15089
  header: this.createPolkadotXcmHeader(scenario, version, destination, paraId),
14800
15090
  addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', address, version, paraId),
14801
- currencySelection: this.createCurrencySpec(asset.amount, scenario, version, asset, overriddenAsset !== null && overriddenAsset !== void 0 ? overriddenAsset : customMultiLocation)
15091
+ currencySelection: this.createCurrencySpec(asset.amount, scenario, version, asset, overriddenAsset !== null && overriddenAsset !== undefined ? overriddenAsset : customMultiLocation)
14802
15092
  });
14803
15093
  return PolkadotXCMTransferImpl.transferPolkadotXCM(modifiedInput, 'limited_teleport_assets', 'Unlimited');
14804
15094
  }
@@ -14814,9 +15104,9 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
14814
15104
  api = input.api,
14815
15105
  version = input.version,
14816
15106
  address = input.address;
14817
- if ((((_asset$symbol = asset.symbol) === null || _asset$symbol === void 0 ? void 0 : _asset$symbol.toUpperCase()) === 'USDT' || ((_asset$symbol2 = asset.symbol) === null || _asset$symbol2 === void 0 ? void 0 : _asset$symbol2.toUpperCase()) === 'USDC') && destination === 'BifrostPolkadot') {
15107
+ if ((((_asset$symbol = asset.symbol) === null || _asset$symbol === undefined ? undefined : _asset$symbol.toUpperCase()) === 'USDT' || ((_asset$symbol2 = asset.symbol) === null || _asset$symbol2 === undefined ? undefined : _asset$symbol2.toUpperCase()) === 'USDC') && destination === 'BifrostPolkadot') {
14818
15108
  var _input$version;
14819
- var versionOrDefault = (_input$version = input.version) !== null && _input$version !== void 0 ? _input$version : exports.Version.V2;
15109
+ var versionOrDefault = (_input$version = input.version) !== null && _input$version !== undefined ? _input$version : exports.Version.V2;
14820
15110
  return _objectSpread2(_objectSpread2({}, input), {}, {
14821
15111
  header: this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, paraIdTo),
14822
15112
  addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', address, versionOrDefault, paraIdTo),
@@ -14824,7 +15114,7 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
14824
15114
  });
14825
15115
  }
14826
15116
  if ((destination === 'Hydration' || destination === 'Polimec') && asset.symbol === 'DOT') {
14827
- var _versionOrDefault = version !== null && version !== void 0 ? version : this.version;
15117
+ var _versionOrDefault = version !== null && version !== undefined ? version : this.version;
14828
15118
  return _objectSpread2(_objectSpread2({}, input), {}, {
14829
15119
  currencySelection: _superPropGet(AssetHubPolkadot, "createCurrencySpec", this, 3)([asset.amount, 'ParaToRelay', _versionOrDefault, asset, overriddenAsset])
14830
15120
  });
@@ -15485,8 +15775,8 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
15485
15775
  var section = 'transfer';
15486
15776
  var destWeight = origin === 'Khala' ? null : determineDestWeight(destination);
15487
15777
  var call = {
15488
- module: pallet !== null && pallet !== void 0 ? pallet : 'XTransfer',
15489
- section: method !== null && method !== void 0 ? method : section,
15778
+ module: pallet !== null && pallet !== undefined ? pallet : 'XTransfer',
15779
+ section: method !== null && method !== undefined ? method : section,
15490
15780
  parameters: {
15491
15781
  asset: currencySpec,
15492
15782
  dest: dest,
@@ -15778,7 +16068,7 @@ var Polimec$1 = /*#__PURE__*/function (_ParachainNode) {
15778
16068
  return _regeneratorRuntime().wrap(function _callee$(_context) {
15779
16069
  while (1) switch (_context.prev = _context.next) {
15780
16070
  case 0:
15781
- api = input.api, _input$version = input.version, version = _input$version === void 0 ? this.version : _input$version, asset = input.asset, destination = input.destination, address = input.address, scenario = input.scenario, paraIdTo = input.paraIdTo;
16071
+ api = input.api, _input$version = input.version, version = _input$version === undefined ? this.version : _input$version, asset = input.asset, destination = input.destination, address = input.address, scenario = input.scenario, paraIdTo = input.paraIdTo;
15782
16072
  if (!(scenario === 'ParaToPara' && destination === 'AssetHubPolkadot')) {
15783
16073
  _context.next = 4;
15784
16074
  break;
@@ -15794,7 +16084,7 @@ var Polimec$1 = /*#__PURE__*/function (_ParachainNode) {
15794
16084
  }
15795
16085
  throw new ScenarioNotSupportedError(this.node, scenario);
15796
16086
  case 6:
15797
- versionOrDefault = version !== null && version !== void 0 ? version : exports.Version.V3;
16087
+ versionOrDefault = version !== null && version !== undefined ? version : exports.Version.V3;
15798
16088
  call = {
15799
16089
  module: 'PolkadotXcm',
15800
16090
  section: 'transfer_assets_using_type_and_then',
@@ -15829,7 +16119,7 @@ var Polimec$1 = /*#__PURE__*/function (_ParachainNode) {
15829
16119
  key: "transferRelayToPara",
15830
16120
  value: function transferRelayToPara(options) {
15831
16121
  var _options$version = options.version,
15832
- version = _options$version === void 0 ? exports.Version.V3 : _options$version,
16122
+ version = _options$version === undefined ? exports.Version.V3 : _options$version,
15833
16123
  api = options.api,
15834
16124
  asset = options.asset,
15835
16125
  address = options.address,
@@ -15967,7 +16257,7 @@ var findBestMatches = function findBestMatches(assets, value) {
15967
16257
  // Case-insensitive match
15968
16258
  matches = assets.filter(function (asset) {
15969
16259
  var _asset$property;
15970
- return ((_asset$property = asset[property]) === null || _asset$property === void 0 ? void 0 : _asset$property.toLowerCase()) === lowerValue;
16260
+ return ((_asset$property = asset[property]) === null || _asset$property === undefined ? undefined : _asset$property.toLowerCase()) === lowerValue;
15971
16261
  });
15972
16262
  return matches;
15973
16263
  };
@@ -16148,8 +16438,8 @@ var findAssetByMultiLocation = function findAssetByMultiLocation(foreignAssets,
16148
16438
  var sanitizedInput = sanitizeMultiLocation(multiLocation);
16149
16439
  return foreignAssets.find(function (asset) {
16150
16440
  var _asset$multiLocation, _asset$xcmInterior;
16151
- var assetMLStr = JSON.stringify((_asset$multiLocation = asset.multiLocation) !== null && _asset$multiLocation !== void 0 ? _asset$multiLocation : '');
16152
- var assetMLInteriorStr = JSON.stringify((_asset$xcmInterior = asset.xcmInterior) !== null && _asset$xcmInterior !== void 0 ? _asset$xcmInterior : '');
16441
+ var assetMLStr = JSON.stringify((_asset$multiLocation = asset.multiLocation) !== null && _asset$multiLocation !== undefined ? _asset$multiLocation : '');
16442
+ var assetMLInteriorStr = JSON.stringify((_asset$xcmInterior = asset.xcmInterior) !== null && _asset$xcmInterior !== undefined ? _asset$xcmInterior : '');
16153
16443
  var sanitizedAssetMLStr = sanitizeMultiLocation(assetMLStr);
16154
16444
  var sanitizedAssetMLInteriorStr = sanitizeMultiLocation(assetMLInteriorStr);
16155
16445
  return (
@@ -16209,13 +16499,13 @@ var getExistentialDeposit = function getExistentialDeposit(node, currency) {
16209
16499
  var assetsObject = getAssetsObject(node);
16210
16500
  if (!currency) {
16211
16501
  var _assetsObject$nativeA;
16212
- return (_assetsObject$nativeA = assetsObject.nativeAssets[0].existentialDeposit) !== null && _assetsObject$nativeA !== void 0 ? _assetsObject$nativeA : null;
16502
+ return (_assetsObject$nativeA = assetsObject.nativeAssets[0].existentialDeposit) !== null && _assetsObject$nativeA !== undefined ? _assetsObject$nativeA : null;
16213
16503
  }
16214
- var asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== void 0 ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
16504
+ var asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== undefined ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
16215
16505
  if (!asset) {
16216
16506
  throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency), " not found on ").concat(node));
16217
16507
  }
16218
- return (_asset$existentialDep = asset.existentialDeposit) !== null && _asset$existentialDep !== void 0 ? _asset$existentialDep : null;
16508
+ return (_asset$existentialDep = asset.existentialDeposit) !== null && _asset$existentialDep !== undefined ? _asset$existentialDep : null;
16219
16509
  };
16220
16510
 
16221
16511
  var assetsMap = assetsMapJson;
@@ -16359,7 +16649,7 @@ var getAssetDecimals = function getAssetDecimals(node, symbol) {
16359
16649
  var asset = [].concat(_toConsumableArray(otherAssets), _toConsumableArray(nativeAssets)).find(function (o) {
16360
16650
  return o.symbol === symbol;
16361
16651
  });
16362
- return (asset === null || asset === void 0 ? void 0 : asset.decimals) !== undefined ? asset.decimals : null;
16652
+ return (asset === null || asset === undefined ? undefined : asset.decimals) !== undefined ? asset.decimals : null;
16363
16653
  };
16364
16654
  /**
16365
16655
  * Retrieves the node name corresponding to a specified parachain ID.
@@ -16374,7 +16664,7 @@ var getTNode = function getTNode(paraId, ecosystem) {
16374
16664
  }
16375
16665
  return (_NODE_NAMES_DOT_KSM$f = NODE_NAMES_DOT_KSM.find(function (nodeName) {
16376
16666
  return getNode(nodeName).type === ecosystem && getParaId(nodeName) === paraId;
16377
- })) !== null && _NODE_NAMES_DOT_KSM$f !== void 0 ? _NODE_NAMES_DOT_KSM$f : null;
16667
+ })) !== null && _NODE_NAMES_DOT_KSM$f !== undefined ? _NODE_NAMES_DOT_KSM$f : null;
16378
16668
  };
16379
16669
 
16380
16670
  var AssetHubPolkadot = {
@@ -17315,7 +17605,7 @@ var getBalanceForeignInternal = /*#__PURE__*/function () {
17315
17605
  _context.next = 3;
17316
17606
  return api.init(node);
17317
17607
  case 3:
17318
- asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== void 0 ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
17608
+ asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== undefined ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
17319
17609
  if (asset) {
17320
17610
  _context.next = 6;
17321
17611
  break;
@@ -17492,7 +17782,7 @@ var getAssetBalanceInternal = /*#__PURE__*/function () {
17492
17782
  _context.next = 16;
17493
17783
  break;
17494
17784
  }
17495
- _context.t1 = _yield$getBalanceFore !== void 0;
17785
+ _context.t1 = _yield$getBalanceFore !== undefined;
17496
17786
  case 16:
17497
17787
  if (!_context.t1) {
17498
17788
  _context.next = 20;
@@ -17572,7 +17862,7 @@ var buildClaimAssetsInput = function buildClaimAssetsInput(_ref) {
17572
17862
  multiAssets = _ref.multiAssets,
17573
17863
  address = _ref.address,
17574
17864
  _ref$version = _ref.version,
17575
- version = _ref$version === void 0 ? exports.Version.V3 : _ref$version;
17865
+ version = _ref$version === undefined ? exports.Version.V3 : _ref$version;
17576
17866
  return {
17577
17867
  assets: _defineProperty({}, version, multiAssets),
17578
17868
  beneficiary: _defineProperty({}, version, buildBeneficiaryInput(api, address))
@@ -17778,13 +18068,7 @@ var BatchTransactionManager = /*#__PURE__*/function () {
17778
18068
  return Promise.all(results);
17779
18069
  case 12:
17780
18070
  txs = _context.sent;
17781
- return _context.abrupt("return", api.callTxMethod({
17782
- module: 'Utility',
17783
- section: mode === exports.BatchMode.BATCH_ALL ? 'batch_all' : 'batch',
17784
- parameters: {
17785
- data: [txs]
17786
- }
17787
- }));
18071
+ return _context.abrupt("return", api.callBatchMethod(txs, mode));
17788
18072
  case 14:
17789
18073
  case "end":
17790
18074
  return _context.stop();
@@ -18067,7 +18351,7 @@ var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
18067
18351
  return _regeneratorRuntime().wrap(function _callee$(_context) {
18068
18352
  while (1) switch (_context.prev = _context.next) {
18069
18353
  case 0:
18070
- api = _ref.api, account = _ref.account, accountDestination = _ref.accountDestination, currency = _ref.currency, origin = _ref.origin, destination = _ref.destination, _ref$feeMarginPercent = _ref.feeMarginPercentage, feeMarginPercentage = _ref$feeMarginPercent === void 0 ? 10 : _ref$feeMarginPercent;
18354
+ api = _ref.api, account = _ref.account, accountDestination = _ref.accountDestination, currency = _ref.currency, origin = _ref.origin, destination = _ref.destination, _ref$feeMarginPercent = _ref.feeMarginPercentage, feeMarginPercentage = _ref$feeMarginPercent === undefined ? 10 : _ref$feeMarginPercent;
18071
18355
  _context.next = 3;
18072
18356
  return api.init(origin);
18073
18357
  case 3:
@@ -18088,7 +18372,7 @@ var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
18088
18372
  });
18089
18373
  case 12:
18090
18374
  nativeBalance = _context.sent;
18091
- existentialDeposit = BigInt((_getExistentialDeposi = getExistentialDeposit(origin)) !== null && _getExistentialDeposi !== void 0 ? _getExistentialDeposi : '0');
18375
+ existentialDeposit = BigInt((_getExistentialDeposi = getExistentialDeposit(origin)) !== null && _getExistentialDeposi !== undefined ? _getExistentialDeposi : '0');
18092
18376
  sufficientForXCM = nativeBalance - existentialDeposit - xcmFeeWithMargin > 0;
18093
18377
  return _context.abrupt("return", {
18094
18378
  sufficientForXCM: sufficientForXCM,
@@ -18196,7 +18480,7 @@ var getMaxForeignTransferableAmount = /*#__PURE__*/function () {
18196
18480
  case 0:
18197
18481
  api = _ref3.api, address = _ref3.address, node = _ref3.node, currency = _ref3.currency;
18198
18482
  validateAddress(address, node, false);
18199
- asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== void 0 ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
18483
+ asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== undefined ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
18200
18484
  if (asset) {
18201
18485
  _context2.next = 5;
18202
18486
  break;
@@ -18247,7 +18531,7 @@ var getTransferableAmount = /*#__PURE__*/function () {
18247
18531
  case 0:
18248
18532
  api = _ref5.api, address = _ref5.address, node = _ref5.node, currency = _ref5.currency;
18249
18533
  validateAddress(address, node, false);
18250
- asset = (_getAssetBySymbolOrId2 = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId2 !== void 0 ? _getAssetBySymbolOrId2 : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
18534
+ asset = (_getAssetBySymbolOrId2 = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId2 !== undefined ? _getAssetBySymbolOrId2 : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
18251
18535
  if (asset) {
18252
18536
  _context3.next = 5;
18253
18537
  break;
@@ -18321,7 +18605,7 @@ var getTransferInfo = /*#__PURE__*/function () {
18321
18605
  case 14:
18322
18606
  xcmFeeDetails = _context.sent;
18323
18607
  expectedBalanceAfterXCMDelivery = originBalance - xcmFeeDetails.xcmFee;
18324
- asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(origin, currency, destination)) !== null && _getAssetBySymbolOrId !== void 0 ? _getAssetBySymbolOrId : origin === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
18608
+ asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(origin, currency, destination)) !== null && _getAssetBySymbolOrId !== undefined ? _getAssetBySymbolOrId : origin === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
18325
18609
  if (asset) {
18326
18610
  _context.next = 19;
18327
18611
  break;
@@ -18342,7 +18626,7 @@ var getTransferInfo = /*#__PURE__*/function () {
18342
18626
  });
18343
18627
  case 22:
18344
18628
  _context.t1 = _context.sent;
18345
- _context.t2 = (_asset$symbol = asset === null || asset === void 0 ? void 0 : asset.symbol) !== null && _asset$symbol !== void 0 ? _asset$symbol : '';
18629
+ _context.t2 = (_asset$symbol = asset === null || asset === undefined ? undefined : asset.symbol) !== null && _asset$symbol !== undefined ? _asset$symbol : '';
18346
18630
  _context.t3 = {
18347
18631
  balance: _context.t1,
18348
18632
  currency: _context.t2
@@ -18350,9 +18634,9 @@ var getTransferInfo = /*#__PURE__*/function () {
18350
18634
  _context.t4 = originBalance;
18351
18635
  _context.t5 = expectedBalanceAfterXCMDelivery;
18352
18636
  _context.t6 = xcmFeeDetails;
18353
- _context.t7 = BigInt((_getExistentialDeposi = getExistentialDeposit(origin)) !== null && _getExistentialDeposi !== void 0 ? _getExistentialDeposi : 0);
18637
+ _context.t7 = BigInt((_getExistentialDeposi = getExistentialDeposit(origin)) !== null && _getExistentialDeposi !== undefined ? _getExistentialDeposi : 0);
18354
18638
  _context.t8 = getNativeAssetSymbol(origin);
18355
- _context.t9 = BigInt((_getExistentialDeposi2 = getExistentialDeposit(origin)) !== null && _getExistentialDeposi2 !== void 0 ? _getExistentialDeposi2 : 0);
18639
+ _context.t9 = BigInt((_getExistentialDeposi2 = getExistentialDeposit(origin)) !== null && _getExistentialDeposi2 !== undefined ? _getExistentialDeposi2 : 0);
18356
18640
  _context.next = 33;
18357
18641
  return getMaxNativeTransferableAmount({
18358
18642
  api: api,
@@ -18379,7 +18663,7 @@ var getTransferInfo = /*#__PURE__*/function () {
18379
18663
  case 37:
18380
18664
  _context.t12 = _context.sent;
18381
18665
  _context.t13 = getNativeAssetSymbol(destination);
18382
- _context.t14 = BigInt((_getExistentialDeposi3 = getExistentialDeposit(destination)) !== null && _getExistentialDeposi3 !== void 0 ? _getExistentialDeposi3 : 0);
18666
+ _context.t14 = BigInt((_getExistentialDeposi3 = getExistentialDeposit(destination)) !== null && _getExistentialDeposi3 !== undefined ? _getExistentialDeposi3 : 0);
18383
18667
  _context.t15 = {
18384
18668
  balance: _context.t12,
18385
18669
  currency: _context.t13,
@@ -18617,7 +18901,7 @@ var getMultiLocationTokenId = function getMultiLocationTokenId(location, node) {
18617
18901
  var assetId = location.interior.value[1].value;
18618
18902
  return (_foreignAssets$find$a = (_foreignAssets$find = foreignAssets.find(function (asset) {
18619
18903
  return asset.assetId === String(assetId);
18620
- })) === null || _foreignAssets$find === void 0 ? void 0 : _foreignAssets$find.assetId) !== null && _foreignAssets$find$a !== void 0 ? _foreignAssets$find$a : null;
18904
+ })) === null || _foreignAssets$find === undefined ? undefined : _foreignAssets$find.assetId) !== null && _foreignAssets$find$a !== undefined ? _foreignAssets$find$a : null;
18621
18905
  }
18622
18906
  }
18623
18907
  return null;
@@ -18686,7 +18970,7 @@ var getMultiLocationTokenIdPjs = function getMultiLocationTokenIdPjs(location, n
18686
18970
  var assetId = junctions[1].GeneralIndex;
18687
18971
  return (_foreignAssets$find$s = (_foreignAssets$find = foreignAssets.find(function (asset) {
18688
18972
  return asset.assetId === String(assetId);
18689
- })) === null || _foreignAssets$find === void 0 ? void 0 : _foreignAssets$find.symbol) !== null && _foreignAssets$find$s !== void 0 ? _foreignAssets$find$s : null;
18973
+ })) === null || _foreignAssets$find === undefined ? undefined : _foreignAssets$find.symbol) !== null && _foreignAssets$find$s !== undefined ? _foreignAssets$find$s : null;
18690
18974
  }
18691
18975
  }
18692
18976
  return null;
@@ -18800,6 +19084,9 @@ var validateCurrency = function validateCurrency(currency) {
18800
19084
  }
18801
19085
  };
18802
19086
  var validateDestination = function validateDestination(origin, destination) {
19087
+ if (isRelayChain(origin) && !isTMultiLocation(destination) && isRelayChain(destination)) {
19088
+ throw new IncompatibleNodesError('Direct relay chain to relay chain transfers are not supported. Please use Polkadot <-> Kusama bridge through AssetHub.');
19089
+ }
18803
19090
  if (destination === 'Ethereum' && origin !== 'AssetHubPolkadot' && origin !== 'Hydration') {
18804
19091
  throw new IncompatibleNodesError('Transfers to Ethereum are only supported from AssetHubPolkadot and Hydration.');
18805
19092
  }
@@ -18840,12 +19127,12 @@ var validateAssetSupport = function validateAssetSupport(_ref, assetCheckEnabled
18840
19127
  }
18841
19128
  if ('symbol' in currency && nativeAssets.some(function (nativeAsset) {
18842
19129
  var _asset$symbol;
18843
- return nativeAsset.symbol.toLowerCase() === (asset === null || asset === void 0 || (_asset$symbol = asset.symbol) === null || _asset$symbol === void 0 ? void 0 : _asset$symbol.toLowerCase());
19130
+ return nativeAsset.symbol.toLowerCase() === (asset === null || asset === undefined || (_asset$symbol = asset.symbol) === null || _asset$symbol === undefined ? undefined : _asset$symbol.toLowerCase());
18844
19131
  })) {
18845
- throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
19132
+ throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === undefined ? undefined : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
18846
19133
  }
18847
19134
  }
18848
- if (!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol)) {
19135
+ if (!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === undefined ? undefined : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol)) {
18849
19136
  throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
18850
19137
  }
18851
19138
  if (!isBridge && asset === null && assetCheckEnabled) {
@@ -18917,8 +19204,8 @@ var resolveOverriddenAsset = function resolveOverriddenAsset(options, isBridge,
18917
19204
  var originTyped = origin;
18918
19205
  var originNode = getNode(originTyped);
18919
19206
  return _objectSpread2({
18920
- isFeeAsset: (_currency$isFeeAsset = currency.isFeeAsset) !== null && _currency$isFeeAsset !== void 0 ? _currency$isFeeAsset : false
18921
- }, createMultiAsset(originNode.version, currency.amount, asset === null || asset === void 0 ? void 0 : asset.multiLocation));
19207
+ isFeeAsset: (_currency$isFeeAsset = currency.isFeeAsset) !== null && _currency$isFeeAsset !== undefined ? _currency$isFeeAsset : false
19208
+ }, createMultiAsset(originNode.version, currency.amount, asset === null || asset === undefined ? undefined : asset.multiLocation));
18922
19209
  });
18923
19210
  return assets;
18924
19211
  }
@@ -18981,7 +19268,7 @@ var send = /*#__PURE__*/function () {
18981
19268
  return api.init(origin);
18982
19269
  case 20:
18983
19270
  // In case asset check is disabled, we create asset object from currency symbol
18984
- resolvedAsset = asset !== null && asset !== void 0 ? asset : {
19271
+ resolvedAsset = asset !== null && asset !== undefined ? asset : {
18985
19272
  symbol: 'symbol' in currency ? currency.symbol : undefined
18986
19273
  };
18987
19274
  originNode = getNode(origin);
@@ -19254,7 +19541,7 @@ var transferMoonbeamEvm = /*#__PURE__*/function () {
19254
19541
  break;
19255
19542
  }
19256
19543
  _context.next = 25;
19257
- return createTx('transferMultiCurrencies', [[[asset, currency.amount], [formatAssetIdToERC20((_usdtAsset$assetId = usdtAsset.assetId) !== null && _usdtAsset$assetId !== void 0 ? _usdtAsset$assetId : ''), '200000']], 1,
19544
+ return createTx('transferMultiCurrencies', [[[asset, currency.amount], [formatAssetIdToERC20((_usdtAsset$assetId = usdtAsset.assetId) !== null && _usdtAsset$assetId !== undefined ? _usdtAsset$assetId : ''), '200000']], 1,
19258
19545
  // index of the fee asset
19259
19546
  destMultiLocation, weight]);
19260
19547
  case 25: