@paraspell/sdk-core 8.5.3 → 8.6.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 +247 -599
- package/dist/index.d.ts +503 -519
- package/dist/index.mjs +247 -600
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ function _arrayWithoutHoles(r) {
|
|
|
13
13
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
14
14
|
}
|
|
15
15
|
function _assertThisInitialized(e) {
|
|
16
|
-
if (
|
|
16
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
17
|
return e;
|
|
18
18
|
}
|
|
19
19
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
@@ -37,7 +37,7 @@ function _asyncToGenerator(n) {
|
|
|
37
37
|
function _throw(n) {
|
|
38
38
|
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
39
39
|
}
|
|
40
|
-
_next(
|
|
40
|
+
_next(void 0);
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -218,7 +218,7 @@ function _objectSpread2(e) {
|
|
|
218
218
|
}
|
|
219
219
|
function _possibleConstructorReturn(t, e) {
|
|
220
220
|
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
221
|
-
if (
|
|
221
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
222
222
|
return _assertThisInitialized(t);
|
|
223
223
|
}
|
|
224
224
|
function _regeneratorRuntime() {
|
|
@@ -421,7 +421,7 @@ function _regeneratorRuntime() {
|
|
|
421
421
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
422
422
|
return this;
|
|
423
423
|
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
424
|
-
|
|
424
|
+
void 0 === i && (i = Promise);
|
|
425
425
|
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
426
426
|
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
427
427
|
return t.done ? t.value : a.next();
|
|
@@ -535,7 +535,7 @@ function _superPropBase(t, o) {
|
|
|
535
535
|
return t;
|
|
536
536
|
}
|
|
537
537
|
function _superPropGet(t, o, e, r) {
|
|
538
|
-
var p = _get(_getPrototypeOf(
|
|
538
|
+
var p = _get(_getPrototypeOf(t.prototype ), o, e);
|
|
539
539
|
return 2 & r && "function" == typeof p ? function (t) {
|
|
540
540
|
return p.apply(e, t);
|
|
541
541
|
} : p;
|
|
@@ -546,12 +546,12 @@ function _toConsumableArray(r) {
|
|
|
546
546
|
function _toPrimitive(t, r) {
|
|
547
547
|
if ("object" != typeof t || !t) return t;
|
|
548
548
|
var e = t[Symbol.toPrimitive];
|
|
549
|
-
if (
|
|
550
|
-
var i = e.call(t, r
|
|
549
|
+
if (void 0 !== e) {
|
|
550
|
+
var i = e.call(t, r);
|
|
551
551
|
if ("object" != typeof i) return i;
|
|
552
552
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
553
553
|
}
|
|
554
|
-
return (
|
|
554
|
+
return (String )(t);
|
|
555
555
|
}
|
|
556
556
|
function _toPropertyKey(t) {
|
|
557
557
|
var i = _toPrimitive(t, "string");
|
|
@@ -570,15 +570,15 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
570
570
|
if (r) {
|
|
571
571
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
572
572
|
var t = {}.toString.call(r).slice(8, -1);
|
|
573
|
-
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) :
|
|
573
|
+
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;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
function _wrapNativeSuper(t) {
|
|
577
|
-
var r = "function" == typeof Map ? new Map() :
|
|
577
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
578
578
|
return _wrapNativeSuper = function (t) {
|
|
579
579
|
if (null === t || !_isNativeFunction(t)) return t;
|
|
580
580
|
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
581
|
-
if (
|
|
581
|
+
if (void 0 !== r) {
|
|
582
582
|
if (r.has(t)) return r.get(t);
|
|
583
583
|
r.set(t, Wrapper);
|
|
584
584
|
}
|
|
@@ -4699,7 +4699,7 @@ var Interlay$3 = {
|
|
|
4699
4699
|
}
|
|
4700
4700
|
]
|
|
4701
4701
|
};
|
|
4702
|
-
var
|
|
4702
|
+
var Heima$3 = {
|
|
4703
4703
|
relayChainAssetSymbol: "DOT",
|
|
4704
4704
|
nativeAssetSymbol: "HEI",
|
|
4705
4705
|
isEVM: false,
|
|
@@ -6088,6 +6088,12 @@ var AssetHubPolkadot$3 = {
|
|
|
6088
6088
|
symbol: "DOT",
|
|
6089
6089
|
isNative: true,
|
|
6090
6090
|
decimals: 10,
|
|
6091
|
+
multiLocation: {
|
|
6092
|
+
parents: 1,
|
|
6093
|
+
interior: {
|
|
6094
|
+
Here: null
|
|
6095
|
+
}
|
|
6096
|
+
},
|
|
6091
6097
|
existentialDeposit: "100000000"
|
|
6092
6098
|
},
|
|
6093
6099
|
{
|
|
@@ -6777,7 +6783,7 @@ var Basilisk$3 = {
|
|
|
6777
6783
|
relayChainAssetSymbol: "KSM",
|
|
6778
6784
|
nativeAssetSymbol: "BSX",
|
|
6779
6785
|
isEVM: false,
|
|
6780
|
-
supportsDryRunApi:
|
|
6786
|
+
supportsDryRunApi: true,
|
|
6781
6787
|
nativeAssets: [
|
|
6782
6788
|
{
|
|
6783
6789
|
symbol: "BSX",
|
|
@@ -10004,8 +10010,8 @@ var Shiden$3 = {
|
|
|
10004
10010
|
nativeAssets: [
|
|
10005
10011
|
{
|
|
10006
10012
|
symbol: "SDN",
|
|
10007
|
-
decimals: 18,
|
|
10008
10013
|
isNative: true,
|
|
10014
|
+
decimals: 18,
|
|
10009
10015
|
existentialDeposit: "1000000"
|
|
10010
10016
|
}
|
|
10011
10017
|
],
|
|
@@ -10348,6 +10354,12 @@ var AssetHubKusama$3 = {
|
|
|
10348
10354
|
symbol: "KSM",
|
|
10349
10355
|
isNative: true,
|
|
10350
10356
|
decimals: 12,
|
|
10357
|
+
multiLocation: {
|
|
10358
|
+
parents: 1,
|
|
10359
|
+
interior: {
|
|
10360
|
+
Here: null
|
|
10361
|
+
}
|
|
10362
|
+
},
|
|
10351
10363
|
existentialDeposit: "3333333"
|
|
10352
10364
|
},
|
|
10353
10365
|
{
|
|
@@ -11134,9 +11146,22 @@ var Nodle$3 = {
|
|
|
11134
11146
|
nativeAssets: [
|
|
11135
11147
|
{
|
|
11136
11148
|
symbol: "NODL",
|
|
11137
|
-
decimals: 11,
|
|
11138
11149
|
isNative: true,
|
|
11139
|
-
|
|
11150
|
+
decimals: 11,
|
|
11151
|
+
existentialDeposit: "10000",
|
|
11152
|
+
multiLocation: {
|
|
11153
|
+
parents: 1,
|
|
11154
|
+
interior: {
|
|
11155
|
+
X2: [
|
|
11156
|
+
{
|
|
11157
|
+
Parachain: 2026
|
|
11158
|
+
},
|
|
11159
|
+
{
|
|
11160
|
+
PalletInstance: 2
|
|
11161
|
+
}
|
|
11162
|
+
]
|
|
11163
|
+
}
|
|
11164
|
+
}
|
|
11140
11165
|
}
|
|
11141
11166
|
],
|
|
11142
11167
|
otherAssets: [
|
|
@@ -11479,7 +11504,7 @@ var Zeitgeist$3 = {
|
|
|
11479
11504
|
symbol: "ZTG",
|
|
11480
11505
|
isNative: true,
|
|
11481
11506
|
decimals: 10,
|
|
11482
|
-
existentialDeposit: "
|
|
11507
|
+
existentialDeposit: "5000000000",
|
|
11483
11508
|
multiLocation: {
|
|
11484
11509
|
parents: 1,
|
|
11485
11510
|
interior: {
|
|
@@ -12231,325 +12256,6 @@ var Ethereum = {
|
|
|
12231
12256
|
}
|
|
12232
12257
|
]
|
|
12233
12258
|
};
|
|
12234
|
-
var Khala$3 = {
|
|
12235
|
-
relayChainAssetSymbol: "KSM",
|
|
12236
|
-
nativeAssetSymbol: "PHA",
|
|
12237
|
-
isEVM: false,
|
|
12238
|
-
supportsDryRunApi: false,
|
|
12239
|
-
nativeAssets: [
|
|
12240
|
-
{
|
|
12241
|
-
symbol: "PHA",
|
|
12242
|
-
decimals: 12,
|
|
12243
|
-
isNative: true,
|
|
12244
|
-
existentialDeposit: "10000000000"
|
|
12245
|
-
}
|
|
12246
|
-
],
|
|
12247
|
-
otherAssets: [
|
|
12248
|
-
{
|
|
12249
|
-
assetId: "0",
|
|
12250
|
-
symbol: "KSM",
|
|
12251
|
-
decimals: 12,
|
|
12252
|
-
multiLocation: {
|
|
12253
|
-
parents: 1,
|
|
12254
|
-
interior: {
|
|
12255
|
-
Here: null
|
|
12256
|
-
}
|
|
12257
|
-
},
|
|
12258
|
-
existentialDeposit: "10000000000"
|
|
12259
|
-
},
|
|
12260
|
-
{
|
|
12261
|
-
assetId: "1",
|
|
12262
|
-
symbol: "KAR",
|
|
12263
|
-
decimals: 12,
|
|
12264
|
-
multiLocation: {
|
|
12265
|
-
parents: 1,
|
|
12266
|
-
interior: {
|
|
12267
|
-
X2: [
|
|
12268
|
-
{
|
|
12269
|
-
Parachain: 2000
|
|
12270
|
-
},
|
|
12271
|
-
{
|
|
12272
|
-
GeneralKey: {
|
|
12273
|
-
length: 2,
|
|
12274
|
-
data: "0x0080000000000000000000000000000000000000000000000000000000000000"
|
|
12275
|
-
}
|
|
12276
|
-
}
|
|
12277
|
-
]
|
|
12278
|
-
}
|
|
12279
|
-
},
|
|
12280
|
-
existentialDeposit: "10000000000"
|
|
12281
|
-
},
|
|
12282
|
-
{
|
|
12283
|
-
assetId: "4",
|
|
12284
|
-
symbol: "aUSD",
|
|
12285
|
-
decimals: 12,
|
|
12286
|
-
multiLocation: {
|
|
12287
|
-
parents: 1,
|
|
12288
|
-
interior: {
|
|
12289
|
-
X2: [
|
|
12290
|
-
{
|
|
12291
|
-
Parachain: 2000
|
|
12292
|
-
},
|
|
12293
|
-
{
|
|
12294
|
-
GeneralKey: {
|
|
12295
|
-
length: 2,
|
|
12296
|
-
data: "0x0081000000000000000000000000000000000000000000000000000000000000"
|
|
12297
|
-
}
|
|
12298
|
-
}
|
|
12299
|
-
]
|
|
12300
|
-
}
|
|
12301
|
-
},
|
|
12302
|
-
existentialDeposit: "10000000000"
|
|
12303
|
-
},
|
|
12304
|
-
{
|
|
12305
|
-
assetId: "2",
|
|
12306
|
-
symbol: "BNC",
|
|
12307
|
-
decimals: 12,
|
|
12308
|
-
multiLocation: {
|
|
12309
|
-
parents: 1,
|
|
12310
|
-
interior: {
|
|
12311
|
-
X2: [
|
|
12312
|
-
{
|
|
12313
|
-
Parachain: 2001
|
|
12314
|
-
},
|
|
12315
|
-
{
|
|
12316
|
-
GeneralKey: {
|
|
12317
|
-
length: 2,
|
|
12318
|
-
data: "0x0001000000000000000000000000000000000000000000000000000000000000"
|
|
12319
|
-
}
|
|
12320
|
-
}
|
|
12321
|
-
]
|
|
12322
|
-
}
|
|
12323
|
-
},
|
|
12324
|
-
existentialDeposit: "10000000000"
|
|
12325
|
-
},
|
|
12326
|
-
{
|
|
12327
|
-
assetId: "3",
|
|
12328
|
-
symbol: "ZLK",
|
|
12329
|
-
decimals: 18,
|
|
12330
|
-
multiLocation: {
|
|
12331
|
-
parents: 1,
|
|
12332
|
-
interior: {
|
|
12333
|
-
X2: [
|
|
12334
|
-
{
|
|
12335
|
-
Parachain: 2001
|
|
12336
|
-
},
|
|
12337
|
-
{
|
|
12338
|
-
GeneralKey: {
|
|
12339
|
-
length: 2,
|
|
12340
|
-
data: "0x0207000000000000000000000000000000000000000000000000000000000000"
|
|
12341
|
-
}
|
|
12342
|
-
}
|
|
12343
|
-
]
|
|
12344
|
-
}
|
|
12345
|
-
},
|
|
12346
|
-
existentialDeposit: "10000000000"
|
|
12347
|
-
},
|
|
12348
|
-
{
|
|
12349
|
-
assetId: "12",
|
|
12350
|
-
symbol: "SDN",
|
|
12351
|
-
decimals: 18,
|
|
12352
|
-
multiLocation: {
|
|
12353
|
-
parents: 1,
|
|
12354
|
-
interior: {
|
|
12355
|
-
X1: {
|
|
12356
|
-
Parachain: 2007
|
|
12357
|
-
}
|
|
12358
|
-
}
|
|
12359
|
-
},
|
|
12360
|
-
existentialDeposit: "10000000000000000"
|
|
12361
|
-
},
|
|
12362
|
-
{
|
|
12363
|
-
assetId: "6",
|
|
12364
|
-
symbol: "MOVR",
|
|
12365
|
-
decimals: 18,
|
|
12366
|
-
multiLocation: {
|
|
12367
|
-
parents: 1,
|
|
12368
|
-
interior: {
|
|
12369
|
-
X2: [
|
|
12370
|
-
{
|
|
12371
|
-
Parachain: 2023
|
|
12372
|
-
},
|
|
12373
|
-
{
|
|
12374
|
-
PalletInstance: 10
|
|
12375
|
-
}
|
|
12376
|
-
]
|
|
12377
|
-
}
|
|
12378
|
-
},
|
|
12379
|
-
existentialDeposit: "10000000000"
|
|
12380
|
-
},
|
|
12381
|
-
{
|
|
12382
|
-
assetId: "8",
|
|
12383
|
-
symbol: "KMA",
|
|
12384
|
-
decimals: 12,
|
|
12385
|
-
multiLocation: {
|
|
12386
|
-
parents: 1,
|
|
12387
|
-
interior: {
|
|
12388
|
-
X1: {
|
|
12389
|
-
Parachain: 2084
|
|
12390
|
-
}
|
|
12391
|
-
}
|
|
12392
|
-
},
|
|
12393
|
-
existentialDeposit: "10000000000"
|
|
12394
|
-
},
|
|
12395
|
-
{
|
|
12396
|
-
assetId: "7",
|
|
12397
|
-
symbol: "HKO",
|
|
12398
|
-
decimals: 12,
|
|
12399
|
-
multiLocation: {
|
|
12400
|
-
parents: 1,
|
|
12401
|
-
interior: {
|
|
12402
|
-
X2: [
|
|
12403
|
-
{
|
|
12404
|
-
Parachain: 2085
|
|
12405
|
-
},
|
|
12406
|
-
{
|
|
12407
|
-
GeneralKey: {
|
|
12408
|
-
length: 3,
|
|
12409
|
-
data: "0x484b4f0000000000000000000000000000000000000000000000000000000000"
|
|
12410
|
-
}
|
|
12411
|
-
}
|
|
12412
|
-
]
|
|
12413
|
-
}
|
|
12414
|
-
},
|
|
12415
|
-
existentialDeposit: "10000000000"
|
|
12416
|
-
},
|
|
12417
|
-
{
|
|
12418
|
-
assetId: "15",
|
|
12419
|
-
symbol: "PICA",
|
|
12420
|
-
decimals: 12,
|
|
12421
|
-
multiLocation: {
|
|
12422
|
-
parents: 1,
|
|
12423
|
-
interior: {
|
|
12424
|
-
X1: {
|
|
12425
|
-
Parachain: 2087
|
|
12426
|
-
}
|
|
12427
|
-
}
|
|
12428
|
-
},
|
|
12429
|
-
existentialDeposit: "10000000000"
|
|
12430
|
-
},
|
|
12431
|
-
{
|
|
12432
|
-
assetId: "5",
|
|
12433
|
-
symbol: "BSX",
|
|
12434
|
-
decimals: 12,
|
|
12435
|
-
multiLocation: {
|
|
12436
|
-
parents: 1,
|
|
12437
|
-
interior: {
|
|
12438
|
-
X2: [
|
|
12439
|
-
{
|
|
12440
|
-
Parachain: 2090
|
|
12441
|
-
},
|
|
12442
|
-
{
|
|
12443
|
-
GeneralKey: {
|
|
12444
|
-
length: 4,
|
|
12445
|
-
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
12446
|
-
}
|
|
12447
|
-
}
|
|
12448
|
-
]
|
|
12449
|
-
}
|
|
12450
|
-
},
|
|
12451
|
-
existentialDeposit: "10000000000",
|
|
12452
|
-
alias: "BSX1"
|
|
12453
|
-
},
|
|
12454
|
-
{
|
|
12455
|
-
assetId: "9",
|
|
12456
|
-
symbol: "BSX",
|
|
12457
|
-
decimals: 12,
|
|
12458
|
-
multiLocation: {
|
|
12459
|
-
parents: 1,
|
|
12460
|
-
interior: {
|
|
12461
|
-
X2: [
|
|
12462
|
-
{
|
|
12463
|
-
Parachain: 2090
|
|
12464
|
-
},
|
|
12465
|
-
{
|
|
12466
|
-
GeneralIndex: 0
|
|
12467
|
-
}
|
|
12468
|
-
]
|
|
12469
|
-
}
|
|
12470
|
-
},
|
|
12471
|
-
existentialDeposit: "10000000000",
|
|
12472
|
-
alias: "BSX2"
|
|
12473
|
-
},
|
|
12474
|
-
{
|
|
12475
|
-
assetId: "13",
|
|
12476
|
-
symbol: "NEER",
|
|
12477
|
-
decimals: 18,
|
|
12478
|
-
multiLocation: {
|
|
12479
|
-
parents: 1,
|
|
12480
|
-
interior: {
|
|
12481
|
-
X2: [
|
|
12482
|
-
{
|
|
12483
|
-
Parachain: 2096
|
|
12484
|
-
},
|
|
12485
|
-
{
|
|
12486
|
-
GeneralKey: {
|
|
12487
|
-
length: 9,
|
|
12488
|
-
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
12489
|
-
}
|
|
12490
|
-
}
|
|
12491
|
-
]
|
|
12492
|
-
}
|
|
12493
|
-
},
|
|
12494
|
-
existentialDeposit: "10000000000000000"
|
|
12495
|
-
},
|
|
12496
|
-
{
|
|
12497
|
-
assetId: "14",
|
|
12498
|
-
symbol: "BIT",
|
|
12499
|
-
decimals: 18,
|
|
12500
|
-
multiLocation: {
|
|
12501
|
-
parents: 1,
|
|
12502
|
-
interior: {
|
|
12503
|
-
X2: [
|
|
12504
|
-
{
|
|
12505
|
-
Parachain: 2096
|
|
12506
|
-
},
|
|
12507
|
-
{
|
|
12508
|
-
GeneralKey: {
|
|
12509
|
-
length: 9,
|
|
12510
|
-
data: "0x0200000000000000000000000000000000000000000000000000000000000000"
|
|
12511
|
-
}
|
|
12512
|
-
}
|
|
12513
|
-
]
|
|
12514
|
-
}
|
|
12515
|
-
},
|
|
12516
|
-
existentialDeposit: "10000000000000000"
|
|
12517
|
-
},
|
|
12518
|
-
{
|
|
12519
|
-
assetId: "11",
|
|
12520
|
-
symbol: "CRAB",
|
|
12521
|
-
decimals: 18,
|
|
12522
|
-
multiLocation: {
|
|
12523
|
-
parents: 1,
|
|
12524
|
-
interior: {
|
|
12525
|
-
X2: [
|
|
12526
|
-
{
|
|
12527
|
-
Parachain: 2105
|
|
12528
|
-
},
|
|
12529
|
-
{
|
|
12530
|
-
PalletInstance: 5
|
|
12531
|
-
}
|
|
12532
|
-
]
|
|
12533
|
-
}
|
|
12534
|
-
},
|
|
12535
|
-
existentialDeposit: "10000000000000000"
|
|
12536
|
-
},
|
|
12537
|
-
{
|
|
12538
|
-
assetId: "10",
|
|
12539
|
-
symbol: "TUR",
|
|
12540
|
-
decimals: 10,
|
|
12541
|
-
multiLocation: {
|
|
12542
|
-
parents: 1,
|
|
12543
|
-
interior: {
|
|
12544
|
-
X1: {
|
|
12545
|
-
Parachain: 2114
|
|
12546
|
-
}
|
|
12547
|
-
}
|
|
12548
|
-
},
|
|
12549
|
-
existentialDeposit: "100000000"
|
|
12550
|
-
}
|
|
12551
|
-
]
|
|
12552
|
-
};
|
|
12553
12259
|
var Mythos$3 = {
|
|
12554
12260
|
relayChainAssetSymbol: "DOT",
|
|
12555
12261
|
nativeAssetSymbol: "MYTH",
|
|
@@ -12640,7 +12346,7 @@ var assetsMapJson = {
|
|
|
12640
12346
|
Darwinia: Darwinia$3,
|
|
12641
12347
|
Hydration: Hydration$3,
|
|
12642
12348
|
Interlay: Interlay$3,
|
|
12643
|
-
|
|
12349
|
+
Heima: Heima$3,
|
|
12644
12350
|
Moonbeam: Moonbeam$3,
|
|
12645
12351
|
Parallel: Parallel$3,
|
|
12646
12352
|
AssetHubPolkadot: AssetHubPolkadot$3,
|
|
@@ -12683,7 +12389,6 @@ var assetsMapJson = {
|
|
|
12683
12389
|
Collectives: Collectives$3,
|
|
12684
12390
|
Phala: Phala$3,
|
|
12685
12391
|
Ethereum: Ethereum,
|
|
12686
|
-
Khala: Khala$3,
|
|
12687
12392
|
Mythos: Mythos$3,
|
|
12688
12393
|
Peaq: Peaq$3
|
|
12689
12394
|
};
|
|
@@ -12789,7 +12494,7 @@ var DOT_MULTILOCATION = {
|
|
|
12789
12494
|
/**
|
|
12790
12495
|
* Supported nodes excluding relay chains and Ethereum.
|
|
12791
12496
|
*/
|
|
12792
|
-
var NODE_NAMES_DOT_KSM = ['AssetHubPolkadot', 'Acala', 'Astar', 'BifrostPolkadot', 'Bitgreen', 'BridgeHubPolkadot', 'BridgeHubKusama', 'Centrifuge', 'ComposableFinance', 'Darwinia', 'Hydration', 'Interlay', '
|
|
12497
|
+
var NODE_NAMES_DOT_KSM = ['AssetHubPolkadot', 'Acala', 'Astar', 'BifrostPolkadot', 'Bitgreen', 'BridgeHubPolkadot', 'BridgeHubKusama', 'Centrifuge', 'ComposableFinance', 'Darwinia', 'Hydration', 'Interlay', 'Heima', 'Moonbeam', 'Parallel', 'AssetHubKusama', 'CoretimeKusama', 'CoretimePolkadot', 'Encointer', 'Altair', 'Amplitude', 'Bajun', 'Basilisk', 'BifrostKusama', 'Calamari', 'CrustShadow', 'Crab', 'Imbue', 'InvArchTinker', 'Karura', 'Kintsugi', 'Moonriver', 'ParallelHeiko', 'Picasso', 'Quartz', 'RobonomicsKusama', 'RobonomicsPolkadot', 'PeoplePolkadot', 'PeopleKusama', 'Shiden', 'Turing', 'Unique', 'Crust', 'Manta', 'Nodle', 'NeuroWeb', 'Pendulum', 'Zeitgeist', 'Collectives', 'Phala', 'Subsocial', 'KiltSpiritnet', 'Curio', 'Mythos', 'Peaq', 'Polimec'];
|
|
12793
12498
|
/**
|
|
12794
12499
|
* Supported nodes including Ethereum.
|
|
12795
12500
|
*/
|
|
@@ -12904,7 +12609,7 @@ var NodeNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
|
12904
12609
|
function NodeNotSupportedError(message) {
|
|
12905
12610
|
var _this;
|
|
12906
12611
|
_classCallCheck(this, NodeNotSupportedError);
|
|
12907
|
-
_this = _callSuper(this, NodeNotSupportedError, [message !== null && message !==
|
|
12612
|
+
_this = _callSuper(this, NodeNotSupportedError, [message !== null && message !== void 0 ? message : 'These nodes do not support XCM transfers from Relay / to Relay chain.']);
|
|
12908
12613
|
_this.name = 'NodeNotSupported';
|
|
12909
12614
|
return _this;
|
|
12910
12615
|
}
|
|
@@ -12926,7 +12631,7 @@ var ScenarioNotSupportedError = /*#__PURE__*/function (_Error) {
|
|
|
12926
12631
|
function ScenarioNotSupportedError(node, scenario, message) {
|
|
12927
12632
|
var _this;
|
|
12928
12633
|
_classCallCheck(this, ScenarioNotSupportedError);
|
|
12929
|
-
_this = _callSuper(this, ScenarioNotSupportedError, [message !== null && message !==
|
|
12634
|
+
_this = _callSuper(this, ScenarioNotSupportedError, [message !== null && message !== void 0 ? message : "Scenario ".concat(scenario, " not supported for node ").concat(node)]);
|
|
12930
12635
|
_this.name = 'ScenarioNotSupported';
|
|
12931
12636
|
return _this;
|
|
12932
12637
|
}
|
|
@@ -12946,7 +12651,7 @@ var IncompatibleNodesError = /*#__PURE__*/function (_Error) {
|
|
|
12946
12651
|
function IncompatibleNodesError(message) {
|
|
12947
12652
|
var _this;
|
|
12948
12653
|
_classCallCheck(this, IncompatibleNodesError);
|
|
12949
|
-
_this = _callSuper(this, IncompatibleNodesError, [message !== null && message !==
|
|
12654
|
+
_this = _callSuper(this, IncompatibleNodesError, [message !== null && message !== void 0 ? message : 'Transactions between nodes on different relaychains are not yet possible.']);
|
|
12950
12655
|
_this.name = 'IncompatibleNodes';
|
|
12951
12656
|
return _this;
|
|
12952
12657
|
}
|
|
@@ -13019,6 +12724,10 @@ var AssetHubPolkadot$2 = {
|
|
|
13019
12724
|
info: "PolkadotAssetHub",
|
|
13020
12725
|
paraId: 1000,
|
|
13021
12726
|
providers: [
|
|
12727
|
+
{
|
|
12728
|
+
name: "Blockops",
|
|
12729
|
+
endpoint: "wss://polkadot-assethub-rpc.blockops.network/ws"
|
|
12730
|
+
},
|
|
13022
12731
|
{
|
|
13023
12732
|
name: "Dwellir",
|
|
13024
12733
|
endpoint: "wss://asset-hub-polkadot-rpc.dwellir.com"
|
|
@@ -13346,8 +13055,8 @@ var Interlay$2 = {
|
|
|
13346
13055
|
}
|
|
13347
13056
|
]
|
|
13348
13057
|
};
|
|
13349
|
-
var
|
|
13350
|
-
name: "
|
|
13058
|
+
var Heima$2 = {
|
|
13059
|
+
name: "Heima",
|
|
13351
13060
|
info: "litentry",
|
|
13352
13061
|
paraId: 2013,
|
|
13353
13062
|
providers: [
|
|
@@ -13412,10 +13121,6 @@ var Parallel$2 = {
|
|
|
13412
13121
|
{
|
|
13413
13122
|
name: "Gatotech",
|
|
13414
13123
|
endpoint: "wss://parallel.gatotech.network"
|
|
13415
|
-
},
|
|
13416
|
-
{
|
|
13417
|
-
name: "Parallel",
|
|
13418
|
-
endpoint: "wss://polkadot-parallel-rpc.parallel.fi"
|
|
13419
13124
|
}
|
|
13420
13125
|
]
|
|
13421
13126
|
};
|
|
@@ -13569,10 +13274,6 @@ var Bajun$2 = {
|
|
|
13569
13274
|
{
|
|
13570
13275
|
name: "AjunaNetwork",
|
|
13571
13276
|
endpoint: "wss://rpc-para.bajun.network"
|
|
13572
|
-
},
|
|
13573
|
-
{
|
|
13574
|
-
name: "OnFinality",
|
|
13575
|
-
endpoint: "wss://bajun.api.onfinality.io/public-ws"
|
|
13576
13277
|
}
|
|
13577
13278
|
]
|
|
13578
13279
|
};
|
|
@@ -13657,10 +13358,6 @@ var Crab$2 = {
|
|
|
13657
13358
|
name: "Darwinia",
|
|
13658
13359
|
endpoint: "wss://crab-rpc.darwinia.network/"
|
|
13659
13360
|
},
|
|
13660
|
-
{
|
|
13661
|
-
name: "Dcdao",
|
|
13662
|
-
endpoint: "wss://crab-rpc.dcdao.box"
|
|
13663
|
-
},
|
|
13664
13361
|
{
|
|
13665
13362
|
name: "Dwellir",
|
|
13666
13363
|
endpoint: "wss://darwiniacrab-rpc.dwellir.com"
|
|
@@ -14063,10 +13760,6 @@ var Zeitgeist$2 = {
|
|
|
14063
13760
|
{
|
|
14064
13761
|
name: "OnFinality",
|
|
14065
13762
|
endpoint: "wss://zeitgeist.api.onfinality.io/public-ws"
|
|
14066
|
-
},
|
|
14067
|
-
{
|
|
14068
|
-
name: "ZeitgeistPM",
|
|
14069
|
-
endpoint: "wss://main.rpc.zeitgeist.pm/ws"
|
|
14070
13763
|
}
|
|
14071
13764
|
]
|
|
14072
13765
|
};
|
|
@@ -14113,33 +13806,6 @@ var Collectives$2 = {
|
|
|
14113
13806
|
}
|
|
14114
13807
|
]
|
|
14115
13808
|
};
|
|
14116
|
-
var Khala$2 = {
|
|
14117
|
-
name: "Khala Network",
|
|
14118
|
-
info: "khala",
|
|
14119
|
-
paraId: 2004,
|
|
14120
|
-
providers: [
|
|
14121
|
-
{
|
|
14122
|
-
name: "Dwellir",
|
|
14123
|
-
endpoint: "wss://khala-rpc.dwellir.com"
|
|
14124
|
-
},
|
|
14125
|
-
{
|
|
14126
|
-
name: "Helikon",
|
|
14127
|
-
endpoint: "wss://rpc.helikon.io/khala"
|
|
14128
|
-
},
|
|
14129
|
-
{
|
|
14130
|
-
name: "OnFinality",
|
|
14131
|
-
endpoint: "wss://khala.api.onfinality.io/public-ws"
|
|
14132
|
-
},
|
|
14133
|
-
{
|
|
14134
|
-
name: "Phala",
|
|
14135
|
-
endpoint: "wss://khala-api.phala.network/ws"
|
|
14136
|
-
},
|
|
14137
|
-
{
|
|
14138
|
-
name: "RadiumBlock",
|
|
14139
|
-
endpoint: "wss://khala.public.curie.radiumblock.co/ws"
|
|
14140
|
-
}
|
|
14141
|
-
]
|
|
14142
|
-
};
|
|
14143
13809
|
var Phala$2 = {
|
|
14144
13810
|
name: "Phala Network",
|
|
14145
13811
|
info: "phala",
|
|
@@ -14157,10 +13823,6 @@ var Phala$2 = {
|
|
|
14157
13823
|
name: "OnFinality",
|
|
14158
13824
|
endpoint: "wss://phala.api.onfinality.io/public-ws"
|
|
14159
13825
|
},
|
|
14160
|
-
{
|
|
14161
|
-
name: "Phala",
|
|
14162
|
-
endpoint: "wss://api.phala.network/ws"
|
|
14163
|
-
},
|
|
14164
13826
|
{
|
|
14165
13827
|
name: "RadiumBlock",
|
|
14166
13828
|
endpoint: "wss://phala.public.curie.radiumblock.co/ws"
|
|
@@ -14187,10 +13849,6 @@ var KiltSpiritnet$2 = {
|
|
|
14187
13849
|
info: "kilt",
|
|
14188
13850
|
paraId: 2086,
|
|
14189
13851
|
providers: [
|
|
14190
|
-
{
|
|
14191
|
-
name: "BOTLabs",
|
|
14192
|
-
endpoint: "wss://spiritnet.kilt.io/"
|
|
14193
|
-
},
|
|
14194
13852
|
{
|
|
14195
13853
|
name: "Dwellir",
|
|
14196
13854
|
endpoint: "wss://kilt-rpc.dwellir.com"
|
|
@@ -14202,6 +13860,10 @@ var KiltSpiritnet$2 = {
|
|
|
14202
13860
|
{
|
|
14203
13861
|
name: "IBP2",
|
|
14204
13862
|
endpoint: "wss://kilt.dotters.network"
|
|
13863
|
+
},
|
|
13864
|
+
{
|
|
13865
|
+
name: "KILT Foundation",
|
|
13866
|
+
endpoint: "wss://spiritnet.kilt.io/"
|
|
14205
13867
|
}
|
|
14206
13868
|
]
|
|
14207
13869
|
};
|
|
@@ -14225,6 +13887,14 @@ var Mythos$2 = {
|
|
|
14225
13887
|
name: "Helikon",
|
|
14226
13888
|
endpoint: "wss://rpc.helikon.io/mythos"
|
|
14227
13889
|
},
|
|
13890
|
+
{
|
|
13891
|
+
name: "IBP1",
|
|
13892
|
+
endpoint: "wss://mythos.ibp.network"
|
|
13893
|
+
},
|
|
13894
|
+
{
|
|
13895
|
+
name: "IBP2",
|
|
13896
|
+
endpoint: "wss://mythos.dotters.network"
|
|
13897
|
+
},
|
|
14228
13898
|
{
|
|
14229
13899
|
name: "parity",
|
|
14230
13900
|
endpoint: "wss://polkadot-mythos-rpc.polkadot.io"
|
|
@@ -14290,6 +13960,10 @@ var Polkadot$1 = {
|
|
|
14290
13960
|
name: "Dwellir Tunisia",
|
|
14291
13961
|
endpoint: "wss://polkadot-rpc-tn.dwellir.com"
|
|
14292
13962
|
},
|
|
13963
|
+
{
|
|
13964
|
+
name: "Helixstreet",
|
|
13965
|
+
endpoint: "wss://rpc-polkadot.helixstreet.io"
|
|
13966
|
+
},
|
|
14293
13967
|
{
|
|
14294
13968
|
name: "IBP1",
|
|
14295
13969
|
endpoint: "wss://rpc.ibp.network/polkadot"
|
|
@@ -14306,6 +13980,10 @@ var Polkadot$1 = {
|
|
|
14306
13980
|
name: "OnFinality",
|
|
14307
13981
|
endpoint: "wss://polkadot.api.onfinality.io/public-ws"
|
|
14308
13982
|
},
|
|
13983
|
+
{
|
|
13984
|
+
name: "Permanence DAO EU",
|
|
13985
|
+
endpoint: "wss://polkadot.rpc.permanence.io"
|
|
13986
|
+
},
|
|
14309
13987
|
{
|
|
14310
13988
|
name: "RadiumBlock",
|
|
14311
13989
|
endpoint: "wss://polkadot.public.curie.radiumblock.co/ws"
|
|
@@ -14341,6 +14019,10 @@ var Kusama$1 = {
|
|
|
14341
14019
|
name: "Dwellir Tunisia",
|
|
14342
14020
|
endpoint: "wss://kusama-rpc-tn.dwellir.com"
|
|
14343
14021
|
},
|
|
14022
|
+
{
|
|
14023
|
+
name: "Helixstreet",
|
|
14024
|
+
endpoint: "wss://rpc-kusama.helixstreet.io"
|
|
14025
|
+
},
|
|
14344
14026
|
{
|
|
14345
14027
|
name: "IBP1",
|
|
14346
14028
|
endpoint: "wss://rpc.ibp.network/kusama"
|
|
@@ -14384,7 +14066,7 @@ var configs = {
|
|
|
14384
14066
|
Darwinia: Darwinia$2,
|
|
14385
14067
|
Hydration: Hydration$2,
|
|
14386
14068
|
Interlay: Interlay$2,
|
|
14387
|
-
|
|
14069
|
+
Heima: Heima$2,
|
|
14388
14070
|
Moonbeam: Moonbeam$2,
|
|
14389
14071
|
Parallel: Parallel$2,
|
|
14390
14072
|
AssetHubKusama: AssetHubKusama$2,
|
|
@@ -14421,7 +14103,6 @@ var configs = {
|
|
|
14421
14103
|
Pendulum: Pendulum$2,
|
|
14422
14104
|
Zeitgeist: Zeitgeist$2,
|
|
14423
14105
|
Collectives: Collectives$2,
|
|
14424
|
-
Khala: Khala$2,
|
|
14425
14106
|
Phala: Phala$2,
|
|
14426
14107
|
Subsocial: Subsocial$2,
|
|
14427
14108
|
KiltSpiritnet: KiltSpiritnet$2,
|
|
@@ -14526,27 +14207,36 @@ var createMultiAsset = function createMultiAsset(version, amount, multiLocation)
|
|
|
14526
14207
|
}
|
|
14527
14208
|
};
|
|
14528
14209
|
};
|
|
14529
|
-
var
|
|
14210
|
+
var addXcmVersionHeader = function addXcmVersionHeader(obj, version) {
|
|
14211
|
+
return _defineProperty({}, version, obj);
|
|
14212
|
+
};
|
|
14213
|
+
var getCurrency = function getCurrency(amount, version, parents, overriddenCurrency) {
|
|
14530
14214
|
var interior = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'Here';
|
|
14531
14215
|
if (!overriddenCurrency) {
|
|
14532
|
-
return
|
|
14216
|
+
return [createMultiAsset(version, amount, {
|
|
14533
14217
|
parents: parents,
|
|
14534
14218
|
interior: interior
|
|
14535
|
-
})]
|
|
14219
|
+
})];
|
|
14536
14220
|
}
|
|
14537
|
-
return isTMultiLocation(overriddenCurrency) ?
|
|
14538
|
-
|
|
14221
|
+
return isTMultiLocation(overriddenCurrency) ? [createMultiAsset(version, amount, overriddenCurrency)] :
|
|
14222
|
+
// It must be TMultiAsset if not TMultiLocation
|
|
14223
|
+
overriddenCurrency;
|
|
14224
|
+
};
|
|
14225
|
+
var createCurrencySpec = function createCurrencySpec(amount, version, parents, overriddenCurrency) {
|
|
14226
|
+
var interior = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'Here';
|
|
14227
|
+
var currency = getCurrency(amount, version, parents, overriddenCurrency, interior);
|
|
14228
|
+
return addXcmVersionHeader(currency, version);
|
|
14539
14229
|
};
|
|
14540
14230
|
var createPolkadotXcmHeader = function createPolkadotXcmHeader(scenario, version, destination, nodeId, junction, parents) {
|
|
14541
|
-
var parentsResolved = parents !== null && parents !==
|
|
14542
|
-
var interior = scenario === 'ParaToRelay' ? 'Here' : createX1Payload(version, junction !== null && junction !==
|
|
14231
|
+
var parentsResolved = parents !== null && parents !== void 0 ? parents : scenario === 'RelayToPara' ? Parents.ZERO : Parents.ONE;
|
|
14232
|
+
var interior = scenario === 'ParaToRelay' ? 'Here' : createX1Payload(version, junction !== null && junction !== void 0 ? junction : {
|
|
14543
14233
|
Parachain: nodeId
|
|
14544
14234
|
});
|
|
14545
|
-
var isMultiLocationDestination =
|
|
14546
|
-
return
|
|
14235
|
+
var isMultiLocationDestination = isTMultiLocation(destination);
|
|
14236
|
+
return addXcmVersionHeader(isMultiLocationDestination ? destination : {
|
|
14547
14237
|
parents: parentsResolved,
|
|
14548
14238
|
interior: interior
|
|
14549
|
-
});
|
|
14239
|
+
}, version);
|
|
14550
14240
|
};
|
|
14551
14241
|
var createBridgePolkadotXcmDest = function createBridgePolkadotXcmDest(version, ecosystem, destination, nodeId) {
|
|
14552
14242
|
var multiLocation = {
|
|
@@ -14559,8 +14249,8 @@ var createBridgePolkadotXcmDest = function createBridgePolkadotXcmDest(version,
|
|
|
14559
14249
|
}]
|
|
14560
14250
|
}
|
|
14561
14251
|
};
|
|
14562
|
-
var isMultiLocationDestination =
|
|
14563
|
-
return
|
|
14252
|
+
var isMultiLocationDestination = isTMultiLocation(destination);
|
|
14253
|
+
return addXcmVersionHeader(isMultiLocationDestination ? destination : multiLocation, version);
|
|
14564
14254
|
};
|
|
14565
14255
|
var resolveTNodeFromMultiLocation = function resolveTNodeFromMultiLocation(relayChain, multiLocation) {
|
|
14566
14256
|
var _NODE_NAMES_DOT_KSM$f;
|
|
@@ -14570,17 +14260,17 @@ var resolveTNodeFromMultiLocation = function resolveTNodeFromMultiLocation(relay
|
|
|
14570
14260
|
}
|
|
14571
14261
|
var node = (_NODE_NAMES_DOT_KSM$f = NODE_NAMES_DOT_KSM.find(function (nodeName) {
|
|
14572
14262
|
return getParaId(nodeName) === parachainId && determineRelayChain(nodeName) === relayChain;
|
|
14573
|
-
})) !== null && _NODE_NAMES_DOT_KSM$f !==
|
|
14263
|
+
})) !== null && _NODE_NAMES_DOT_KSM$f !== void 0 ? _NODE_NAMES_DOT_KSM$f : null;
|
|
14574
14264
|
if (node === null) {
|
|
14575
14265
|
throw new Error('Node with specified paraId not found in destination multi location.');
|
|
14576
14266
|
}
|
|
14577
14267
|
return node;
|
|
14578
14268
|
};
|
|
14579
14269
|
var throwUnsupportedCurrency = function throwUnsupportedCurrency(currency, node) {
|
|
14580
|
-
var
|
|
14270
|
+
var _ref4 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
14581
14271
|
isDestination: false
|
|
14582
14272
|
},
|
|
14583
|
-
isDestination =
|
|
14273
|
+
isDestination = _ref4.isDestination;
|
|
14584
14274
|
if ('multilocation' in currency) {
|
|
14585
14275
|
throw new InvalidCurrencyError("\n Selected chain doesn't support multilocation you provided. Maybe you meant custom multilocation. If so, you need to use override option. Your selection should look like this: {multilocation: Override(".concat(JSON.stringify(currency.multilocation), ")}."));
|
|
14586
14276
|
}
|
|
@@ -14603,7 +14293,7 @@ var buildMultiLocation = function buildMultiLocation(_ref) {
|
|
|
14603
14293
|
// If it is a native asset, search by symbol on AssetHub and use the multiLocation from there
|
|
14604
14294
|
var assetHubAsset = getOtherAssets(destination).find(function (ahAsset) {
|
|
14605
14295
|
var _ahAsset$symbol, _asset$symbol;
|
|
14606
|
-
return ((_ahAsset$symbol = ahAsset.symbol) === null || _ahAsset$symbol ===
|
|
14296
|
+
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());
|
|
14607
14297
|
});
|
|
14608
14298
|
if (assetHubAsset === undefined) {
|
|
14609
14299
|
throw new InvalidCurrencyError("Asset ".concat(asset.symbol, " not found in AssetHub"));
|
|
@@ -14638,10 +14328,10 @@ var buildMultiLocation = function buildMultiLocation(_ref) {
|
|
|
14638
14328
|
}
|
|
14639
14329
|
};
|
|
14640
14330
|
var getModifiedCurrencySelection = function getModifiedCurrencySelection(version, input) {
|
|
14641
|
-
var
|
|
14331
|
+
var amount = input.asset.amount;
|
|
14642
14332
|
var multiLocation = buildMultiLocation(input);
|
|
14643
|
-
var multiAsset = createMultiAsset(version,
|
|
14644
|
-
return
|
|
14333
|
+
var multiAsset = createMultiAsset(version, amount, multiLocation);
|
|
14334
|
+
return addXcmVersionHeader(multiAsset, version);
|
|
14645
14335
|
};
|
|
14646
14336
|
|
|
14647
14337
|
var getCurrencySelection = function getCurrencySelection(input, isAssetHub, currencySelection) {
|
|
@@ -14649,7 +14339,7 @@ var getCurrencySelection = function getCurrencySelection(input, isAssetHub, curr
|
|
|
14649
14339
|
overriddenAsset = input.overriddenAsset;
|
|
14650
14340
|
var _getNode = getNode(origin),
|
|
14651
14341
|
version = _getNode.version;
|
|
14652
|
-
if (overriddenAsset !== undefined) return
|
|
14342
|
+
if (overriddenAsset !== undefined) return addXcmVersionHeader(overriddenAsset, version);
|
|
14653
14343
|
if (isAssetHub) {
|
|
14654
14344
|
return getModifiedCurrencySelection(version, input);
|
|
14655
14345
|
}
|
|
@@ -14701,14 +14391,15 @@ var XTokensTransferImpl = /*#__PURE__*/function () {
|
|
|
14701
14391
|
var isBifrostOrigin = origin === 'BifrostPolkadot' || origin === 'BifrostKusama';
|
|
14702
14392
|
var isAssetHubDest = destination === 'AssetHubPolkadot' || destination === 'AssetHubKusama';
|
|
14703
14393
|
var isAstarOrShidenToRelay = scenario === 'ParaToRelay' && (origin === 'Astar' || origin === 'Shiden');
|
|
14394
|
+
var isTuring = origin === 'Turing';
|
|
14704
14395
|
var isMultiAsset = overriddenAsset && !isTMultiLocation(overriddenAsset);
|
|
14705
|
-
var shouldUseMultiasset = isAstarOrShidenToRelay || isAssetHubDest && !isBifrostOrigin || !!isMultiAsset;
|
|
14396
|
+
var shouldUseMultiasset = isTuring || isAstarOrShidenToRelay || isAssetHubDest && !isBifrostOrigin || !!isMultiAsset;
|
|
14706
14397
|
var modifiedCurrencySelection = getCurrencySelection(input, shouldUseMultiasset, currencySelection);
|
|
14707
14398
|
var section = shouldUseMultiasset ? isMultiAsset ? 'transfer_multiassets' : 'transfer_multiasset' : 'transfer';
|
|
14708
14399
|
var parameters = getXTokensParameters(shouldUseMultiasset, modifiedCurrencySelection, addressSelection, asset.amount, fees, overriddenAsset);
|
|
14709
14400
|
var call = {
|
|
14710
|
-
module: pallet !== null && pallet !==
|
|
14711
|
-
section: method !== null && method !==
|
|
14401
|
+
module: pallet !== null && pallet !== void 0 ? pallet : 'XTokens',
|
|
14402
|
+
section: method !== null && method !== void 0 ? method : section,
|
|
14712
14403
|
parameters: parameters
|
|
14713
14404
|
};
|
|
14714
14405
|
return api.callTxMethod(call);
|
|
@@ -14720,17 +14411,17 @@ var resolveParaId = function resolveParaId(paraId, destination) {
|
|
|
14720
14411
|
if (isTMultiLocation(destination) || isRelayChain(destination) || destination === 'Ethereum') {
|
|
14721
14412
|
return undefined;
|
|
14722
14413
|
}
|
|
14723
|
-
return paraId !== null && paraId !==
|
|
14414
|
+
return paraId !== null && paraId !== void 0 ? paraId : getParaId(destination);
|
|
14724
14415
|
};
|
|
14725
14416
|
|
|
14726
14417
|
var generateAddressPayload = function generateAddressPayload(api, scenario, pallet, recipientAddress, version, nodeId) {
|
|
14727
14418
|
var isMultiLocation = _typeof(recipientAddress) === 'object';
|
|
14728
14419
|
if (isMultiLocation) {
|
|
14729
|
-
return
|
|
14420
|
+
return addXcmVersionHeader(recipientAddress, version);
|
|
14730
14421
|
}
|
|
14731
14422
|
var isEthAddress = ethers.isAddress(recipientAddress);
|
|
14732
14423
|
if (scenario === 'ParaToRelay') {
|
|
14733
|
-
return
|
|
14424
|
+
return addXcmVersionHeader({
|
|
14734
14425
|
parents: pallet === 'XTokens' ? Parents.ONE : Parents.ZERO,
|
|
14735
14426
|
interior: createX1Payload(version, {
|
|
14736
14427
|
AccountId32: _objectSpread2(_objectSpread2({}, version === Version.V1 && {
|
|
@@ -14739,10 +14430,10 @@ var generateAddressPayload = function generateAddressPayload(api, scenario, pall
|
|
|
14739
14430
|
id: api.accountToHex(recipientAddress)
|
|
14740
14431
|
})
|
|
14741
14432
|
})
|
|
14742
|
-
});
|
|
14433
|
+
}, version);
|
|
14743
14434
|
}
|
|
14744
14435
|
if (scenario === 'ParaToPara' && pallet === 'XTokens') {
|
|
14745
|
-
return
|
|
14436
|
+
return addXcmVersionHeader({
|
|
14746
14437
|
parents: Parents.ONE,
|
|
14747
14438
|
interior: {
|
|
14748
14439
|
X2: [{
|
|
@@ -14761,10 +14452,10 @@ var generateAddressPayload = function generateAddressPayload(api, scenario, pall
|
|
|
14761
14452
|
})
|
|
14762
14453
|
}]
|
|
14763
14454
|
}
|
|
14764
|
-
});
|
|
14455
|
+
}, version);
|
|
14765
14456
|
}
|
|
14766
14457
|
if (scenario === 'ParaToPara' && pallet === 'PolkadotXcm') {
|
|
14767
|
-
return
|
|
14458
|
+
return addXcmVersionHeader({
|
|
14768
14459
|
parents: Parents.ZERO,
|
|
14769
14460
|
interior: createX1Payload(version, isEthAddress ? {
|
|
14770
14461
|
AccountKey20: _objectSpread2(_objectSpread2({}, (version === Version.V1 || version === Version.V2) && {
|
|
@@ -14779,9 +14470,9 @@ var generateAddressPayload = function generateAddressPayload(api, scenario, pall
|
|
|
14779
14470
|
id: api.accountToHex(recipientAddress)
|
|
14780
14471
|
})
|
|
14781
14472
|
})
|
|
14782
|
-
});
|
|
14473
|
+
}, version);
|
|
14783
14474
|
}
|
|
14784
|
-
return
|
|
14475
|
+
return addXcmVersionHeader({
|
|
14785
14476
|
parents: Parents.ZERO,
|
|
14786
14477
|
interior: createX1Payload(version, isEthAddress ? {
|
|
14787
14478
|
AccountKey20: {
|
|
@@ -14792,7 +14483,7 @@ var generateAddressPayload = function generateAddressPayload(api, scenario, pall
|
|
|
14792
14483
|
id: api.accountToHex(recipientAddress)
|
|
14793
14484
|
}
|
|
14794
14485
|
})
|
|
14795
|
-
});
|
|
14486
|
+
}, version);
|
|
14796
14487
|
};
|
|
14797
14488
|
|
|
14798
14489
|
var createCustomXcmOnDest = function createCustomXcmOnDest(_ref, version, messageId) {
|
|
@@ -14977,7 +14668,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
14977
14668
|
}
|
|
14978
14669
|
throw new Error('Sending assets to Polimec is supported only from AssetHubPolkadot');
|
|
14979
14670
|
case 6:
|
|
14980
|
-
versionOrDefault = version !== null && version !==
|
|
14671
|
+
versionOrDefault = version !== null && version !== void 0 ? version : this.version;
|
|
14981
14672
|
if (!(supportsXTokens(this) && this.canUseXTokens(options))) {
|
|
14982
14673
|
_context.next = 17;
|
|
14983
14674
|
break;
|
|
@@ -15067,15 +14758,15 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
15067
14758
|
key: "transferRelayToPara",
|
|
15068
14759
|
value: function transferRelayToPara(options) {
|
|
15069
14760
|
var _options$version = options.version,
|
|
15070
|
-
version = _options$version ===
|
|
14761
|
+
version = _options$version === void 0 ? Version.V3 : _options$version,
|
|
15071
14762
|
pallet = options.pallet,
|
|
15072
14763
|
method = options.method;
|
|
15073
14764
|
var _this$getRelayToParaO = this.getRelayToParaOverrides(),
|
|
15074
14765
|
section = _this$getRelayToParaO.section,
|
|
15075
14766
|
includeFee = _this$getRelayToParaO.includeFee;
|
|
15076
14767
|
return {
|
|
15077
|
-
module: pallet !== null && pallet !==
|
|
15078
|
-
section: method !== null && method !==
|
|
14768
|
+
module: pallet !== null && pallet !== void 0 ? pallet : 'XcmPallet',
|
|
14769
|
+
section: method !== null && method !== void 0 ? method : section,
|
|
15079
14770
|
parameters: constructRelayToParaParameters(options, version, {
|
|
15080
14771
|
includeFee: includeFee
|
|
15081
14772
|
})
|
|
@@ -15123,8 +14814,8 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
15123
14814
|
}
|
|
15124
14815
|
throw new Error('Multi-location address is not supported for Ethereum transfers');
|
|
15125
14816
|
case 7:
|
|
15126
|
-
versionOrDefault = version !== null && version !==
|
|
15127
|
-
ethMultiAsset =
|
|
14817
|
+
versionOrDefault = version !== null && version !== void 0 ? version : Version.V4;
|
|
14818
|
+
ethMultiAsset = createMultiAsset(versionOrDefault, asset.amount, asset.multiLocation);
|
|
15128
14819
|
_context2.next = 11;
|
|
15129
14820
|
return api.createApiForNode('AssetHubPolkadot');
|
|
15130
14821
|
case 11:
|
|
@@ -15153,7 +14844,7 @@ var ParachainNode = /*#__PURE__*/function () {
|
|
|
15153
14844
|
section: 'transfer_assets_using_type_and_then',
|
|
15154
14845
|
parameters: {
|
|
15155
14846
|
dest: this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, getParaId('AssetHubPolkadot')),
|
|
15156
|
-
assets: _defineProperty({}, versionOrDefault, [
|
|
14847
|
+
assets: _defineProperty({}, versionOrDefault, [createMultiAsset(versionOrDefault, fee, DOT_MULTILOCATION), ethMultiAsset]),
|
|
15157
14848
|
assets_transfer_type: 'DestinationReserve',
|
|
15158
14849
|
remote_fees_id: _defineProperty({}, versionOrDefault, {
|
|
15159
14850
|
parents: Parents.ONE,
|
|
@@ -15269,8 +14960,8 @@ var PolkadotXCMTransferImpl = /*#__PURE__*/function () {
|
|
|
15269
14960
|
return asset.isFeeAsset;
|
|
15270
14961
|
});
|
|
15271
14962
|
var call = {
|
|
15272
|
-
module: pallet !== null && pallet !==
|
|
15273
|
-
section: method !== null && method !==
|
|
14963
|
+
module: pallet !== null && pallet !== void 0 ? pallet : 'PolkadotXcm',
|
|
14964
|
+
section: method !== null && method !== void 0 ? method : section,
|
|
15274
14965
|
parameters: _objectSpread2({
|
|
15275
14966
|
dest: header,
|
|
15276
14967
|
beneficiary: addressSelection,
|
|
@@ -15339,7 +15030,7 @@ var BifrostPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
15339
15030
|
currencySelection: createCurrencySpec(asset.amount, this.version, asset.symbol === 'DOT' ? Parents.ONE : Parents.TWO, overriddenAsset, asset.symbol === 'WETH' ? {
|
|
15340
15031
|
X2: [ETHEREUM_JUNCTION, {
|
|
15341
15032
|
AccountKey20: {
|
|
15342
|
-
key: (_getAssetId = getAssetId('Ethereum', 'WETH')) !== null && _getAssetId !==
|
|
15033
|
+
key: (_getAssetId = getAssetId('Ethereum', 'WETH')) !== null && _getAssetId !== void 0 ? _getAssetId : ''
|
|
15343
15034
|
}
|
|
15344
15035
|
}]
|
|
15345
15036
|
} : undefined)
|
|
@@ -15448,13 +15139,13 @@ var Hydration$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
15448
15139
|
scenario = input.scenario,
|
|
15449
15140
|
version = input.version,
|
|
15450
15141
|
destination = input.destination;
|
|
15451
|
-
var versionOrDefault = version !== null && version !==
|
|
15142
|
+
var versionOrDefault = version !== null && version !== void 0 ? version : Version.V3;
|
|
15452
15143
|
var call = {
|
|
15453
15144
|
module: 'PolkadotXcm',
|
|
15454
15145
|
section: 'transfer_assets_using_type_and_then',
|
|
15455
15146
|
parameters: {
|
|
15456
15147
|
dest: this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, getParaId('AssetHubPolkadot')),
|
|
15457
|
-
assets: _defineProperty({}, versionOrDefault, [
|
|
15148
|
+
assets: _defineProperty({}, versionOrDefault, [createMultiAsset(versionOrDefault, asset.amount, DOT_MULTILOCATION)]),
|
|
15458
15149
|
assets_transfer_type: 'DestinationReserve',
|
|
15459
15150
|
remote_fees_id: _defineProperty({}, versionOrDefault, {
|
|
15460
15151
|
Concrete: {
|
|
@@ -15540,13 +15231,13 @@ var Interlay$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
15540
15231
|
}]);
|
|
15541
15232
|
}(ParachainNode);
|
|
15542
15233
|
|
|
15543
|
-
var
|
|
15544
|
-
function
|
|
15545
|
-
_classCallCheck(this,
|
|
15546
|
-
return _callSuper(this,
|
|
15234
|
+
var Heima$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
15235
|
+
function Heima() {
|
|
15236
|
+
_classCallCheck(this, Heima);
|
|
15237
|
+
return _callSuper(this, Heima, ['Heima', 'litentry', 'polkadot', Version.V3]);
|
|
15547
15238
|
}
|
|
15548
|
-
_inherits(
|
|
15549
|
-
return _createClass(
|
|
15239
|
+
_inherits(Heima, _ParachainNode);
|
|
15240
|
+
return _createClass(Heima, [{
|
|
15550
15241
|
key: "transferPolkadotXCM",
|
|
15551
15242
|
value: function transferPolkadotXCM(input) {
|
|
15552
15243
|
var scenario = input.scenario,
|
|
@@ -15591,7 +15282,7 @@ var Moonbeam$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
15591
15282
|
var asset = input.asset,
|
|
15592
15283
|
scenario = input.scenario,
|
|
15593
15284
|
_input$version = input.version,
|
|
15594
|
-
version = _input$version ===
|
|
15285
|
+
version = _input$version === void 0 ? this.version : _input$version,
|
|
15595
15286
|
overriddenAsset = input.overriddenAsset;
|
|
15596
15287
|
var multiLocation = this.getJunctions(asset, scenario);
|
|
15597
15288
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(_objectSpread2(_objectSpread2({}, input), {}, {
|
|
@@ -15814,7 +15505,7 @@ var Moonriver$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
15814
15505
|
var asset = input.asset,
|
|
15815
15506
|
scenario = input.scenario,
|
|
15816
15507
|
_input$version = input.version,
|
|
15817
|
-
version = _input$version ===
|
|
15508
|
+
version = _input$version === void 0 ? this.version : _input$version,
|
|
15818
15509
|
overriddenAsset = input.overriddenAsset;
|
|
15819
15510
|
var multiLocation = this.getJunctions(asset, scenario);
|
|
15820
15511
|
return Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(_objectSpread2(_objectSpread2({}, input), {}, {
|
|
@@ -15956,7 +15647,7 @@ var generateAddressMultiLocationV4 = function generateAddressMultiLocationV4(api
|
|
|
15956
15647
|
return _defineProperty({}, Version.V4, address);
|
|
15957
15648
|
}
|
|
15958
15649
|
var isEthAddress = ethers.isAddress(address);
|
|
15959
|
-
return
|
|
15650
|
+
return addXcmVersionHeader({
|
|
15960
15651
|
parents: Parents.ZERO,
|
|
15961
15652
|
interior: {
|
|
15962
15653
|
X1: [isEthAddress ? {
|
|
@@ -15970,7 +15661,7 @@ var generateAddressMultiLocationV4 = function generateAddressMultiLocationV4(api
|
|
|
15970
15661
|
}
|
|
15971
15662
|
}]
|
|
15972
15663
|
}
|
|
15973
|
-
});
|
|
15664
|
+
}, Version.V4);
|
|
15974
15665
|
};
|
|
15975
15666
|
|
|
15976
15667
|
var createCustomXcmToBifrost = function createCustomXcmToBifrost(_ref, version) {
|
|
@@ -16003,13 +15694,13 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
16003
15694
|
if (!asset.multiLocation) {
|
|
16004
15695
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no multiLocation"));
|
|
16005
15696
|
}
|
|
16006
|
-
var versionOrDefault = version !== null && version !==
|
|
15697
|
+
var versionOrDefault = version !== null && version !== void 0 ? version : _this.version;
|
|
16007
15698
|
var call = {
|
|
16008
15699
|
module: 'PolkadotXcm',
|
|
16009
15700
|
section: 'transfer_assets_using_type_and_then',
|
|
16010
15701
|
parameters: {
|
|
16011
15702
|
dest: _this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, getParaId('BifrostPolkadot')),
|
|
16012
|
-
assets: _defineProperty({}, versionOrDefault, [
|
|
15703
|
+
assets: _defineProperty({}, versionOrDefault, [createMultiAsset(versionOrDefault, asset.amount, asset.multiLocation)]),
|
|
16013
15704
|
assets_transfer_type: 'LocalReserve',
|
|
16014
15705
|
remote_fees_id: _defineProperty({}, versionOrDefault, {
|
|
16015
15706
|
Concrete: asset.multiLocation
|
|
@@ -16028,14 +15719,14 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
16028
15719
|
key: "handleBridgeTransfer",
|
|
16029
15720
|
value: function handleBridgeTransfer(input, targetChain) {
|
|
16030
15721
|
var _input$asset$symbol, _input$asset$symbol2, _input$asset$symbol3, _input$asset$symbol4;
|
|
16031
|
-
if (targetChain === 'Kusama' && ((_input$asset$symbol = input.asset.symbol) === null || _input$asset$symbol ===
|
|
15722
|
+
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') {
|
|
16032
15723
|
var modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
|
|
16033
15724
|
header: createBridgePolkadotXcmDest(Version.V4, targetChain, input.destination, input.paraIdTo),
|
|
16034
15725
|
addressSelection: generateAddressMultiLocationV4(input.api, input.address),
|
|
16035
15726
|
currencySelection: createBridgeCurrencySpec(input.asset.amount, targetChain)
|
|
16036
15727
|
});
|
|
16037
15728
|
return PolkadotXCMTransferImpl.transferPolkadotXCM(modifiedInput, 'transfer_assets', 'Unlimited');
|
|
16038
|
-
} else if (targetChain === 'Polkadot' && ((_input$asset$symbol3 = input.asset.symbol) === null || _input$asset$symbol3 ===
|
|
15729
|
+
} 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') {
|
|
16039
15730
|
var _modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
|
|
16040
15731
|
header: createBridgePolkadotXcmDest(Version.V3, targetChain, input.destination, input.paraIdTo),
|
|
16041
15732
|
currencySelection: createCurrencySpec(input.asset.amount, Version.V3, Parents.ONE, input.overriddenAsset)
|
|
@@ -16092,7 +15783,7 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
16092
15783
|
var modifiedInput = _objectSpread2(_objectSpread2({}, input), {}, {
|
|
16093
15784
|
header: this.createPolkadotXcmHeader(scenario, version, destination, paraId),
|
|
16094
15785
|
addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', address, version, paraId),
|
|
16095
|
-
currencySelection: this.createCurrencySpec(asset.amount, scenario, version, asset, overriddenAsset !== null && overriddenAsset !==
|
|
15786
|
+
currencySelection: this.createCurrencySpec(asset.amount, scenario, version, asset, overriddenAsset !== null && overriddenAsset !== void 0 ? overriddenAsset : customMultiLocation)
|
|
16096
15787
|
});
|
|
16097
15788
|
return PolkadotXCMTransferImpl.transferPolkadotXCM(modifiedInput, 'limited_teleport_assets', 'Unlimited');
|
|
16098
15789
|
}
|
|
@@ -16108,9 +15799,9 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
16108
15799
|
api = input.api,
|
|
16109
15800
|
version = input.version,
|
|
16110
15801
|
address = input.address;
|
|
16111
|
-
if ((((_asset$symbol = asset.symbol) === null || _asset$symbol ===
|
|
15802
|
+
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') {
|
|
16112
15803
|
var _input$version;
|
|
16113
|
-
var versionOrDefault = (_input$version = input.version) !== null && _input$version !==
|
|
15804
|
+
var versionOrDefault = (_input$version = input.version) !== null && _input$version !== void 0 ? _input$version : Version.V2;
|
|
16114
15805
|
return _objectSpread2(_objectSpread2({}, input), {}, {
|
|
16115
15806
|
header: this.createPolkadotXcmHeader(scenario, versionOrDefault, destination, paraIdTo),
|
|
16116
15807
|
addressSelection: generateAddressPayload(api, scenario, 'PolkadotXcm', address, versionOrDefault, paraIdTo),
|
|
@@ -16118,7 +15809,7 @@ var AssetHubPolkadot$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
16118
15809
|
});
|
|
16119
15810
|
}
|
|
16120
15811
|
if ((destination === 'Hydration' || destination === 'Polimec' || destination === 'Moonbeam' || destination === 'BifrostPolkadot') && asset.symbol === 'DOT') {
|
|
16121
|
-
var _versionOrDefault = version !== null && version !==
|
|
15812
|
+
var _versionOrDefault = version !== null && version !== void 0 ? version : this.version;
|
|
16122
15813
|
return _objectSpread2(_objectSpread2({}, input), {}, {
|
|
16123
15814
|
currencySelection: _superPropGet(AssetHubPolkadot, "createCurrencySpec", this, 3)([asset.amount, 'ParaToRelay', _versionOrDefault, asset, overriddenAsset])
|
|
16124
15815
|
});
|
|
@@ -16437,44 +16128,10 @@ var Darwinia$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
16437
16128
|
}
|
|
16438
16129
|
_inherits(Darwinia, _ParachainNode);
|
|
16439
16130
|
return _createClass(Darwinia, [{
|
|
16440
|
-
key: "getCurrencySelection",
|
|
16441
|
-
value: function getCurrencySelection(asset) {
|
|
16442
|
-
if (asset.symbol === this.getNativeAssetSymbol()) {
|
|
16443
|
-
return 'SelfReserve';
|
|
16444
|
-
}
|
|
16445
|
-
if (!isForeignAsset(asset) || !asset.assetId) {
|
|
16446
|
-
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(asset), " has no assetId"));
|
|
16447
|
-
}
|
|
16448
|
-
return {
|
|
16449
|
-
ForeignAsset: BigInt(asset.assetId)
|
|
16450
|
-
};
|
|
16451
|
-
}
|
|
16452
|
-
}, {
|
|
16453
|
-
key: "transferXTokens",
|
|
16454
|
-
value: function transferXTokens(input) {
|
|
16455
|
-
var asset = input.asset;
|
|
16456
|
-
var currencySelection = this.getCurrencySelection(asset);
|
|
16457
|
-
return XTokensTransferImpl.transferXTokens(input, currencySelection);
|
|
16458
|
-
}
|
|
16459
|
-
}, {
|
|
16460
16131
|
key: "transferRelayToPara",
|
|
16461
16132
|
value: function transferRelayToPara() {
|
|
16462
16133
|
throw new NodeNotSupportedError();
|
|
16463
16134
|
}
|
|
16464
|
-
}, {
|
|
16465
|
-
key: "createCurrencySpec",
|
|
16466
|
-
value: function createCurrencySpec$1(amount, scenario, version, _asset, overridedMultiLocation) {
|
|
16467
|
-
if (scenario === 'ParaToPara') {
|
|
16468
|
-
var interior = {
|
|
16469
|
-
X1: {
|
|
16470
|
-
PalletInstance: 5
|
|
16471
|
-
}
|
|
16472
|
-
};
|
|
16473
|
-
return createCurrencySpec(amount, version, Parents.ZERO, overridedMultiLocation, interior);
|
|
16474
|
-
} else {
|
|
16475
|
-
return _superPropGet(Darwinia, "createCurrencySpec", this, 3)([amount, scenario, version, undefined, overridedMultiLocation]);
|
|
16476
|
-
}
|
|
16477
|
-
}
|
|
16478
16135
|
}]);
|
|
16479
16136
|
}(ParachainNode);
|
|
16480
16137
|
|
|
@@ -16500,8 +16157,17 @@ var Crab$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
16500
16157
|
}
|
|
16501
16158
|
}, {
|
|
16502
16159
|
key: "createCurrencySpec",
|
|
16503
|
-
value: function createCurrencySpec(amount, scenario, version,
|
|
16504
|
-
|
|
16160
|
+
value: function createCurrencySpec$1(amount, scenario, version, _asset, overridedMultiLocation) {
|
|
16161
|
+
if (scenario === 'ParaToPara') {
|
|
16162
|
+
var interior = {
|
|
16163
|
+
X1: {
|
|
16164
|
+
PalletInstance: 5
|
|
16165
|
+
}
|
|
16166
|
+
};
|
|
16167
|
+
return createCurrencySpec(amount, version, Parents.ZERO, overridedMultiLocation, interior);
|
|
16168
|
+
} else {
|
|
16169
|
+
return _superPropGet(Crab, "createCurrencySpec", this, 3)([amount, scenario, version, undefined, overridedMultiLocation]);
|
|
16170
|
+
}
|
|
16505
16171
|
}
|
|
16506
16172
|
}]);
|
|
16507
16173
|
}(ParachainNode);
|
|
@@ -16703,11 +16369,7 @@ var Collectives$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
16703
16369
|
}, {
|
|
16704
16370
|
key: "createCurrencySpec",
|
|
16705
16371
|
value: function createCurrencySpec(amount, scenario, version, asset) {
|
|
16706
|
-
|
|
16707
|
-
return {};
|
|
16708
|
-
} else {
|
|
16709
|
-
return _superPropGet(Collectives, "createCurrencySpec", this, 3)([amount, scenario, version, asset]);
|
|
16710
|
-
}
|
|
16372
|
+
return _superPropGet(Collectives, "createCurrencySpec", this, 3)([amount, scenario, version, asset]);
|
|
16711
16373
|
}
|
|
16712
16374
|
}]);
|
|
16713
16375
|
}(ParachainNode);
|
|
@@ -16764,7 +16426,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
16764
16426
|
key: "transferXTransfer",
|
|
16765
16427
|
value: function transferXTransfer(input) {
|
|
16766
16428
|
var api = input.api,
|
|
16767
|
-
origin = input.origin,
|
|
16768
16429
|
destination = input.destination,
|
|
16769
16430
|
asset = input.asset,
|
|
16770
16431
|
overriddenAsset = input.overriddenAsset,
|
|
@@ -16774,13 +16435,13 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
16774
16435
|
if (isMultiLocationDestination) {
|
|
16775
16436
|
throw new Error('Multilocation destinations are not supported for specific transfer you are trying to create. In special cases such as xTokens or xTransfer pallet try using address multilocation instead (for both destination and address in same multilocation set (eg. X2 - Parachain, Address). For further assistance please open issue in our repository.');
|
|
16776
16437
|
}
|
|
16777
|
-
var currencySpec =
|
|
16438
|
+
var currencySpec = getCurrency(asset.amount, Version.V1, Parents.ZERO, overriddenAsset)[0];
|
|
16778
16439
|
var dest = getDestination(input);
|
|
16779
16440
|
var section = 'transfer';
|
|
16780
|
-
var destWeight =
|
|
16441
|
+
var destWeight = determineDestWeight(destination);
|
|
16781
16442
|
var call = {
|
|
16782
|
-
module: pallet !== null && pallet !==
|
|
16783
|
-
section: method !== null && method !==
|
|
16443
|
+
module: pallet !== null && pallet !== void 0 ? pallet : 'XTransfer',
|
|
16444
|
+
section: method !== null && method !== void 0 ? method : section,
|
|
16784
16445
|
parameters: {
|
|
16785
16446
|
asset: currencySpec,
|
|
16786
16447
|
dest: dest,
|
|
@@ -16792,24 +16453,6 @@ var XTransferTransferImpl = /*#__PURE__*/function () {
|
|
|
16792
16453
|
}]);
|
|
16793
16454
|
}();
|
|
16794
16455
|
|
|
16795
|
-
var Khala$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
16796
|
-
function Khala() {
|
|
16797
|
-
_classCallCheck(this, Khala);
|
|
16798
|
-
return _callSuper(this, Khala, ['Khala', 'khala', 'kusama', Version.V3]);
|
|
16799
|
-
}
|
|
16800
|
-
_inherits(Khala, _ParachainNode);
|
|
16801
|
-
return _createClass(Khala, [{
|
|
16802
|
-
key: "transferXTransfer",
|
|
16803
|
-
value: function transferXTransfer(input) {
|
|
16804
|
-
var asset = input.asset;
|
|
16805
|
-
if (asset.symbol !== this.getNativeAssetSymbol()) {
|
|
16806
|
-
throw new InvalidCurrencyError("Node ".concat(this.node, " does not support currency ").concat(asset.symbol));
|
|
16807
|
-
}
|
|
16808
|
-
return XTransferTransferImpl.transferXTransfer(input);
|
|
16809
|
-
}
|
|
16810
|
-
}]);
|
|
16811
|
-
}(ParachainNode);
|
|
16812
|
-
|
|
16813
16456
|
var Phala$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
16814
16457
|
function Phala() {
|
|
16815
16458
|
_classCallCheck(this, Phala);
|
|
@@ -17072,12 +16715,12 @@ var Polimec$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
17072
16715
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17073
16716
|
while (1) switch (_context.prev = _context.next) {
|
|
17074
16717
|
case 0:
|
|
17075
|
-
api = input.api, _input$version = input.version, version = _input$version ===
|
|
16718
|
+
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;
|
|
17076
16719
|
if (!(scenario === 'ParaToPara' && destination === 'AssetHubPolkadot')) {
|
|
17077
16720
|
_context.next = 4;
|
|
17078
16721
|
break;
|
|
17079
16722
|
}
|
|
17080
|
-
currencySelection =
|
|
16723
|
+
currencySelection = addXcmVersionHeader([createMultiAsset(version, asset.amount.toString(), this.getAssetMultiLocation(input.asset))], version);
|
|
17081
16724
|
return _context.abrupt("return", Promise.resolve(PolkadotXCMTransferImpl.transferPolkadotXCM(_objectSpread2(_objectSpread2({}, input), {}, {
|
|
17082
16725
|
currencySelection: currencySelection
|
|
17083
16726
|
}), 'transfer_assets', 'Unlimited')));
|
|
@@ -17088,13 +16731,13 @@ var Polimec$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
17088
16731
|
}
|
|
17089
16732
|
throw new ScenarioNotSupportedError(this.node, scenario);
|
|
17090
16733
|
case 6:
|
|
17091
|
-
versionOrDefault = version !== null && version !==
|
|
16734
|
+
versionOrDefault = version !== null && version !== void 0 ? version : Version.V3;
|
|
17092
16735
|
call = {
|
|
17093
16736
|
module: 'PolkadotXcm',
|
|
17094
16737
|
section: 'transfer_assets_using_type_and_then',
|
|
17095
16738
|
parameters: {
|
|
17096
16739
|
dest: this.createPolkadotXcmHeader('RelayToPara', versionOrDefault, destination, getParaId('AssetHubPolkadot')),
|
|
17097
|
-
assets: _defineProperty({}, versionOrDefault, [
|
|
16740
|
+
assets: _defineProperty({}, versionOrDefault, [createMultiAsset(versionOrDefault, asset.amount, DOT_MULTILOCATION)]),
|
|
17098
16741
|
assets_transfer_type: 'Teleport',
|
|
17099
16742
|
remote_fees_id: _defineProperty({}, versionOrDefault, {
|
|
17100
16743
|
Concrete: {
|
|
@@ -17123,7 +16766,7 @@ var Polimec$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
17123
16766
|
key: "transferRelayToPara",
|
|
17124
16767
|
value: function transferRelayToPara(options) {
|
|
17125
16768
|
var _options$version = options.version,
|
|
17126
|
-
version = _options$version ===
|
|
16769
|
+
version = _options$version === void 0 ? Version.V3 : _options$version,
|
|
17127
16770
|
api = options.api,
|
|
17128
16771
|
asset = options.asset,
|
|
17129
16772
|
address = options.address,
|
|
@@ -17134,7 +16777,7 @@ var Polimec$1 = /*#__PURE__*/function (_ParachainNode) {
|
|
|
17134
16777
|
section: 'transfer_assets_using_type_and_then',
|
|
17135
16778
|
parameters: {
|
|
17136
16779
|
dest: this.createPolkadotXcmHeader('RelayToPara', version, destination, getParaId('AssetHubPolkadot')),
|
|
17137
|
-
assets: _defineProperty({}, version, [
|
|
16780
|
+
assets: _defineProperty({}, version, [createMultiAsset(version, asset.amount, DOT_MULTILOCATION)]),
|
|
17138
16781
|
assets_transfer_type: 'Teleport',
|
|
17139
16782
|
remote_fees_id: _defineProperty({}, version, {
|
|
17140
16783
|
Concrete: {
|
|
@@ -17168,7 +16811,7 @@ var nodes = function nodes() {
|
|
|
17168
16811
|
Darwinia: new Darwinia$1(),
|
|
17169
16812
|
Hydration: new Hydration$1(),
|
|
17170
16813
|
Interlay: new Interlay$1(),
|
|
17171
|
-
|
|
16814
|
+
Heima: new Heima$1(),
|
|
17172
16815
|
Moonbeam: new Moonbeam$1(),
|
|
17173
16816
|
Parallel: new Parallel$1(),
|
|
17174
16817
|
AssetHubKusama: new AssetHubKusama$1(),
|
|
@@ -17203,7 +16846,6 @@ var nodes = function nodes() {
|
|
|
17203
16846
|
Pendulum: new Pendulum$1(),
|
|
17204
16847
|
Zeitgeist: new Zeitgeist$1(),
|
|
17205
16848
|
Collectives: new Collectives$1(),
|
|
17206
|
-
Khala: new Khala$1(),
|
|
17207
16849
|
Phala: new Phala$1(),
|
|
17208
16850
|
Subsocial: new Subsocial$1(),
|
|
17209
16851
|
KiltSpiritnet: new KiltSpiritnet$1(),
|
|
@@ -17257,7 +16899,7 @@ var findBestMatches = function findBestMatches(assets, value) {
|
|
|
17257
16899
|
// Case-insensitive match
|
|
17258
16900
|
matches = assets.filter(function (asset) {
|
|
17259
16901
|
var _asset$property;
|
|
17260
|
-
return ((_asset$property = asset[property]) === null || _asset$property ===
|
|
16902
|
+
return ((_asset$property = asset[property]) === null || _asset$property === void 0 ? void 0 : _asset$property.toLowerCase()) === lowerValue;
|
|
17261
16903
|
});
|
|
17262
16904
|
return matches;
|
|
17263
16905
|
};
|
|
@@ -17436,7 +17078,7 @@ var sanitizeMultiLocation = function sanitizeMultiLocation(multiLocation) {
|
|
|
17436
17078
|
var compareMultiLocations = function compareMultiLocations(input, asset) {
|
|
17437
17079
|
var _asset$multiLocation;
|
|
17438
17080
|
var sanitizedInput = sanitizeMultiLocation(input);
|
|
17439
|
-
var assetMLStr = JSON.stringify((_asset$multiLocation = asset.multiLocation) !== null && _asset$multiLocation !==
|
|
17081
|
+
var assetMLStr = JSON.stringify((_asset$multiLocation = asset.multiLocation) !== null && _asset$multiLocation !== void 0 ? _asset$multiLocation : '');
|
|
17440
17082
|
var sanitizedAssetMLStr = sanitizeMultiLocation(assetMLStr);
|
|
17441
17083
|
return (
|
|
17442
17084
|
// Compare sanitized input with sanitized asset values
|
|
@@ -17491,25 +17133,25 @@ var getAssetBySymbolOrId = function getAssetBySymbolOrId(node, currency, destina
|
|
|
17491
17133
|
// If not found, search Ethereum assets directly
|
|
17492
17134
|
if (isEthereumDestination) {
|
|
17493
17135
|
var _findAssetBySymbol;
|
|
17494
|
-
asset = (_findAssetBySymbol = findAssetBySymbol(node, destination, getFilteredEthereumAssets(), nativeAssets, currency.symbol)) !== null && _findAssetBySymbol !==
|
|
17136
|
+
asset = (_findAssetBySymbol = findAssetBySymbol(node, destination, getFilteredEthereumAssets(), nativeAssets, currency.symbol)) !== null && _findAssetBySymbol !== void 0 ? _findAssetBySymbol : findAssetBySymbol(node, destination, getEthereumAssets(), nativeAssets, currency.symbol);
|
|
17495
17137
|
} else {
|
|
17496
17138
|
asset = findAssetBySymbol(node, destination, otherAssets, nativeAssets, currency.symbol);
|
|
17497
17139
|
}
|
|
17498
17140
|
} else if ('multilocation' in currency && !isOverrideMultiLocationSpecifier(currency.multilocation)) {
|
|
17499
17141
|
var _findAssetByMultiLoca;
|
|
17500
17142
|
var resolvedAssets = isEthereumDestination ? getEthereumAssets() : otherAssets;
|
|
17501
|
-
asset = (_findAssetByMultiLoca = findAssetByMultiLocation(resolvedAssets, currency.multilocation)) !== null && _findAssetByMultiLoca !==
|
|
17143
|
+
asset = (_findAssetByMultiLoca = findAssetByMultiLocation(resolvedAssets, currency.multilocation)) !== null && _findAssetByMultiLoca !== void 0 ? _findAssetByMultiLoca : findAssetByMultiLocation(nativeAssets, currency.multilocation);
|
|
17502
17144
|
} else if ('id' in currency) {
|
|
17503
17145
|
if (isEthereumDestination) {
|
|
17504
17146
|
var _findAssetById;
|
|
17505
|
-
asset = (_findAssetById = findAssetById(getFilteredEthereumAssets(), currency.id)) !== null && _findAssetById !==
|
|
17147
|
+
asset = (_findAssetById = findAssetById(getFilteredEthereumAssets(), currency.id)) !== null && _findAssetById !== void 0 ? _findAssetById : findAssetById(getEthereumAssets(), currency.id);
|
|
17506
17148
|
} else {
|
|
17507
17149
|
asset = findAssetById(otherAssets, currency.id);
|
|
17508
17150
|
}
|
|
17509
17151
|
} else {
|
|
17510
17152
|
throw new Error('Invalid currency input');
|
|
17511
17153
|
}
|
|
17512
|
-
return asset !== null && asset !==
|
|
17154
|
+
return asset !== null && asset !== void 0 ? asset : null;
|
|
17513
17155
|
};
|
|
17514
17156
|
|
|
17515
17157
|
var getAssetMultiLocation = function getAssetMultiLocation(node, currency) {
|
|
@@ -17534,13 +17176,13 @@ var getExistentialDeposit = function getExistentialDeposit(node, currency) {
|
|
|
17534
17176
|
var assetsObject = getAssetsObject(node);
|
|
17535
17177
|
if (!currency) {
|
|
17536
17178
|
var _assetsObject$nativeA;
|
|
17537
|
-
return (_assetsObject$nativeA = assetsObject.nativeAssets[0].existentialDeposit) !== null && _assetsObject$nativeA !==
|
|
17179
|
+
return (_assetsObject$nativeA = assetsObject.nativeAssets[0].existentialDeposit) !== null && _assetsObject$nativeA !== void 0 ? _assetsObject$nativeA : null;
|
|
17538
17180
|
}
|
|
17539
|
-
var asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !==
|
|
17181
|
+
var asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== void 0 ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
|
|
17540
17182
|
if (!asset) {
|
|
17541
17183
|
throw new InvalidCurrencyError("Asset ".concat(JSON.stringify(currency), " not found on ").concat(node));
|
|
17542
17184
|
}
|
|
17543
|
-
return (_asset$existentialDep = asset.existentialDeposit) !== null && _asset$existentialDep !==
|
|
17185
|
+
return (_asset$existentialDep = asset.existentialDeposit) !== null && _asset$existentialDep !== void 0 ? _asset$existentialDep : null;
|
|
17544
17186
|
};
|
|
17545
17187
|
|
|
17546
17188
|
var assetsMap = assetsMapJson;
|
|
@@ -17684,7 +17326,7 @@ var getAssetDecimals = function getAssetDecimals(node, symbol) {
|
|
|
17684
17326
|
var asset = [].concat(_toConsumableArray(otherAssets), _toConsumableArray(nativeAssets)).find(function (o) {
|
|
17685
17327
|
return o.symbol === symbol;
|
|
17686
17328
|
});
|
|
17687
|
-
return (asset === null || asset ===
|
|
17329
|
+
return (asset === null || asset === void 0 ? void 0 : asset.decimals) !== undefined ? asset.decimals : null;
|
|
17688
17330
|
};
|
|
17689
17331
|
/**
|
|
17690
17332
|
* Retrieves the node name corresponding to a specified parachain ID.
|
|
@@ -17702,7 +17344,10 @@ var getTNode = function getTNode(paraId, ecosystem) {
|
|
|
17702
17344
|
}
|
|
17703
17345
|
return (_NODE_NAMES_DOT_KSM$f = NODE_NAMES_DOT_KSM.find(function (nodeName) {
|
|
17704
17346
|
return getNode(nodeName).type === ecosystem && getParaId(nodeName) === paraId;
|
|
17705
|
-
})) !== null && _NODE_NAMES_DOT_KSM$f !==
|
|
17347
|
+
})) !== null && _NODE_NAMES_DOT_KSM$f !== void 0 ? _NODE_NAMES_DOT_KSM$f : null;
|
|
17348
|
+
};
|
|
17349
|
+
var hasDryRunSupport = function hasDryRunSupport(node) {
|
|
17350
|
+
return getAssetsObject(node).supportsDryRunApi;
|
|
17706
17351
|
};
|
|
17707
17352
|
|
|
17708
17353
|
var AssetHubPolkadot = {
|
|
@@ -17802,15 +17447,11 @@ var ComposableFinance = {
|
|
|
17802
17447
|
]
|
|
17803
17448
|
};
|
|
17804
17449
|
var Darwinia = {
|
|
17805
|
-
defaultPallet: "
|
|
17450
|
+
defaultPallet: "PolkadotXcm",
|
|
17806
17451
|
supportedPallets: [
|
|
17807
17452
|
{
|
|
17808
17453
|
name: "PolkadotXcm",
|
|
17809
17454
|
index: 33
|
|
17810
|
-
},
|
|
17811
|
-
{
|
|
17812
|
-
name: "XTokens",
|
|
17813
|
-
index: 46
|
|
17814
17455
|
}
|
|
17815
17456
|
]
|
|
17816
17457
|
};
|
|
@@ -17840,7 +17481,7 @@ var Interlay = {
|
|
|
17840
17481
|
}
|
|
17841
17482
|
]
|
|
17842
17483
|
};
|
|
17843
|
-
var
|
|
17484
|
+
var Heima = {
|
|
17844
17485
|
defaultPallet: "PolkadotXcm",
|
|
17845
17486
|
supportedPallets: [
|
|
17846
17487
|
{
|
|
@@ -18220,19 +17861,6 @@ var Collectives = {
|
|
|
18220
17861
|
}
|
|
18221
17862
|
]
|
|
18222
17863
|
};
|
|
18223
|
-
var Khala = {
|
|
18224
|
-
defaultPallet: "XTransfer",
|
|
18225
|
-
supportedPallets: [
|
|
18226
|
-
{
|
|
18227
|
-
name: "PolkadotXcm",
|
|
18228
|
-
index: 33
|
|
18229
|
-
},
|
|
18230
|
-
{
|
|
18231
|
-
name: "XTransfer",
|
|
18232
|
-
index: 82
|
|
18233
|
-
}
|
|
18234
|
-
]
|
|
18235
|
-
};
|
|
18236
17864
|
var Phala = {
|
|
18237
17865
|
defaultPallet: "XTransfer",
|
|
18238
17866
|
supportedPallets: [
|
|
@@ -18392,7 +18020,7 @@ var pallets = {
|
|
|
18392
18020
|
Darwinia: Darwinia,
|
|
18393
18021
|
Hydration: Hydration,
|
|
18394
18022
|
Interlay: Interlay,
|
|
18395
|
-
|
|
18023
|
+
Heima: Heima,
|
|
18396
18024
|
Moonbeam: Moonbeam,
|
|
18397
18025
|
Parallel: Parallel,
|
|
18398
18026
|
AssetHubKusama: AssetHubKusama,
|
|
@@ -18424,7 +18052,6 @@ var pallets = {
|
|
|
18424
18052
|
Pendulum: Pendulum,
|
|
18425
18053
|
Zeitgeist: Zeitgeist,
|
|
18426
18054
|
Collectives: Collectives,
|
|
18427
|
-
Khala: Khala,
|
|
18428
18055
|
Phala: Phala,
|
|
18429
18056
|
Subsocial: Subsocial,
|
|
18430
18057
|
KiltSpiritnet: KiltSpiritnet,
|
|
@@ -18469,16 +18096,15 @@ var palletsMapJson = /*#__PURE__*/Object.freeze({
|
|
|
18469
18096
|
Curio: Curio,
|
|
18470
18097
|
Darwinia: Darwinia,
|
|
18471
18098
|
Encointer: Encointer,
|
|
18099
|
+
Heima: Heima,
|
|
18472
18100
|
Hydration: Hydration,
|
|
18473
18101
|
Imbue: Imbue,
|
|
18474
18102
|
Interlay: Interlay,
|
|
18475
18103
|
InvArchTinker: InvArchTinker,
|
|
18476
18104
|
Karura: Karura,
|
|
18477
|
-
Khala: Khala,
|
|
18478
18105
|
KiltSpiritnet: KiltSpiritnet,
|
|
18479
18106
|
Kintsugi: Kintsugi,
|
|
18480
18107
|
Kusama: Kusama,
|
|
18481
|
-
Litentry: Litentry,
|
|
18482
18108
|
Manta: Manta,
|
|
18483
18109
|
Moonbeam: Moonbeam,
|
|
18484
18110
|
Moonriver: Moonriver,
|
|
@@ -18643,7 +18269,7 @@ var getBalanceForeignInternal = /*#__PURE__*/function () {
|
|
|
18643
18269
|
_context.next = 3;
|
|
18644
18270
|
return api.init(node);
|
|
18645
18271
|
case 3:
|
|
18646
|
-
asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !==
|
|
18272
|
+
asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== void 0 ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
|
|
18647
18273
|
if (asset) {
|
|
18648
18274
|
_context.next = 6;
|
|
18649
18275
|
break;
|
|
@@ -18820,7 +18446,7 @@ var getAssetBalanceInternal = /*#__PURE__*/function () {
|
|
|
18820
18446
|
_context.next = 16;
|
|
18821
18447
|
break;
|
|
18822
18448
|
}
|
|
18823
|
-
_context.t1 = _yield$getBalanceFore !==
|
|
18449
|
+
_context.t1 = _yield$getBalanceFore !== void 0;
|
|
18824
18450
|
case 16:
|
|
18825
18451
|
if (!_context.t1) {
|
|
18826
18452
|
_context.next = 20;
|
|
@@ -18900,7 +18526,7 @@ var buildClaimAssetsInput = function buildClaimAssetsInput(_ref) {
|
|
|
18900
18526
|
multiAssets = _ref.multiAssets,
|
|
18901
18527
|
address = _ref.address,
|
|
18902
18528
|
_ref$version = _ref.version,
|
|
18903
|
-
version = _ref$version ===
|
|
18529
|
+
version = _ref$version === void 0 ? Version.V3 : _ref$version;
|
|
18904
18530
|
return {
|
|
18905
18531
|
assets: _defineProperty({}, version, multiAssets),
|
|
18906
18532
|
beneficiary: _defineProperty({}, version, buildBeneficiaryInput(api, address))
|
|
@@ -19021,10 +18647,26 @@ var AssetClaimBuilder = /*#__PURE__*/function () {
|
|
|
19021
18647
|
return _build.apply(this, arguments);
|
|
19022
18648
|
}
|
|
19023
18649
|
return build;
|
|
19024
|
-
}()
|
|
18650
|
+
}()
|
|
18651
|
+
/**
|
|
18652
|
+
* Returns the API instance used by the builder.
|
|
18653
|
+
*
|
|
18654
|
+
* @returns The API instance.
|
|
18655
|
+
*/
|
|
18656
|
+
)
|
|
18657
|
+
}, {
|
|
18658
|
+
key: "getApi",
|
|
18659
|
+
value: function getApi() {
|
|
18660
|
+
return this.api.getApi();
|
|
18661
|
+
}
|
|
18662
|
+
/**
|
|
18663
|
+
* Disconnects the API.
|
|
18664
|
+
*
|
|
18665
|
+
* @returns A Promise that resolves when the API is disconnected.
|
|
18666
|
+
*/
|
|
19025
18667
|
}, {
|
|
19026
18668
|
key: "disconnect",
|
|
19027
|
-
value: function () {
|
|
18669
|
+
value: (function () {
|
|
19028
18670
|
var _disconnect = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
19029
18671
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19030
18672
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -19040,7 +18682,7 @@ var AssetClaimBuilder = /*#__PURE__*/function () {
|
|
|
19040
18682
|
return _disconnect.apply(this, arguments);
|
|
19041
18683
|
}
|
|
19042
18684
|
return disconnect;
|
|
19043
|
-
}()
|
|
18685
|
+
}())
|
|
19044
18686
|
}], [{
|
|
19045
18687
|
key: "create",
|
|
19046
18688
|
value: function create(api, node) {
|
|
@@ -19345,6 +18987,16 @@ var GeneralBuilder = /*#__PURE__*/function () {
|
|
|
19345
18987
|
}
|
|
19346
18988
|
return dryRun;
|
|
19347
18989
|
}()
|
|
18990
|
+
/**
|
|
18991
|
+
* Returns the API instance used by the builder.
|
|
18992
|
+
*
|
|
18993
|
+
* @returns The API instance.
|
|
18994
|
+
*/
|
|
18995
|
+
}, {
|
|
18996
|
+
key: "getApi",
|
|
18997
|
+
value: function getApi() {
|
|
18998
|
+
return this.api.getApi();
|
|
18999
|
+
}
|
|
19348
19000
|
}, {
|
|
19349
19001
|
key: "disconnect",
|
|
19350
19002
|
value: function () {
|
|
@@ -19383,7 +19035,7 @@ var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
|
|
|
19383
19035
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19384
19036
|
while (1) switch (_context.prev = _context.next) {
|
|
19385
19037
|
case 0:
|
|
19386
|
-
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 ===
|
|
19038
|
+
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;
|
|
19387
19039
|
_context.next = 3;
|
|
19388
19040
|
return api.init(origin);
|
|
19389
19041
|
case 3:
|
|
@@ -19404,7 +19056,7 @@ var getOriginFeeDetailsInternal = /*#__PURE__*/function () {
|
|
|
19404
19056
|
});
|
|
19405
19057
|
case 12:
|
|
19406
19058
|
nativeBalance = _context.sent;
|
|
19407
|
-
existentialDeposit = BigInt((_getExistentialDeposi = getExistentialDeposit(origin)) !== null && _getExistentialDeposi !==
|
|
19059
|
+
existentialDeposit = BigInt((_getExistentialDeposi = getExistentialDeposit(origin)) !== null && _getExistentialDeposi !== void 0 ? _getExistentialDeposi : '0');
|
|
19408
19060
|
sufficientForXCM = nativeBalance - existentialDeposit - xcmFeeWithMargin > 0;
|
|
19409
19061
|
return _context.abrupt("return", {
|
|
19410
19062
|
sufficientForXCM: sufficientForXCM,
|
|
@@ -19512,7 +19164,7 @@ var getMaxForeignTransferableAmount = /*#__PURE__*/function () {
|
|
|
19512
19164
|
case 0:
|
|
19513
19165
|
api = _ref3.api, address = _ref3.address, node = _ref3.node, currency = _ref3.currency;
|
|
19514
19166
|
validateAddress(address, node, false);
|
|
19515
|
-
asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !==
|
|
19167
|
+
asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId !== void 0 ? _getAssetBySymbolOrId : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
|
|
19516
19168
|
if (asset) {
|
|
19517
19169
|
_context2.next = 5;
|
|
19518
19170
|
break;
|
|
@@ -19563,7 +19215,7 @@ var getTransferableAmount = /*#__PURE__*/function () {
|
|
|
19563
19215
|
case 0:
|
|
19564
19216
|
api = _ref5.api, address = _ref5.address, node = _ref5.node, currency = _ref5.currency;
|
|
19565
19217
|
validateAddress(address, node, false);
|
|
19566
|
-
asset = (_getAssetBySymbolOrId2 = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId2 !==
|
|
19218
|
+
asset = (_getAssetBySymbolOrId2 = getAssetBySymbolOrId(node, currency, null)) !== null && _getAssetBySymbolOrId2 !== void 0 ? _getAssetBySymbolOrId2 : node === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
|
|
19567
19219
|
if (asset) {
|
|
19568
19220
|
_context3.next = 5;
|
|
19569
19221
|
break;
|
|
@@ -19637,7 +19289,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
19637
19289
|
case 14:
|
|
19638
19290
|
xcmFeeDetails = _context.sent;
|
|
19639
19291
|
expectedBalanceAfterXCMDelivery = originBalance - xcmFeeDetails.xcmFee;
|
|
19640
|
-
asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(origin, currency, destination)) !== null && _getAssetBySymbolOrId !==
|
|
19292
|
+
asset = (_getAssetBySymbolOrId = getAssetBySymbolOrId(origin, currency, destination)) !== null && _getAssetBySymbolOrId !== void 0 ? _getAssetBySymbolOrId : origin === 'AssetHubPolkadot' ? getAssetBySymbolOrId('Ethereum', currency, null) : null;
|
|
19641
19293
|
if (asset) {
|
|
19642
19294
|
_context.next = 19;
|
|
19643
19295
|
break;
|
|
@@ -19658,7 +19310,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
19658
19310
|
});
|
|
19659
19311
|
case 22:
|
|
19660
19312
|
_context.t1 = _context.sent;
|
|
19661
|
-
_context.t2 = (_asset$symbol = asset === null || asset ===
|
|
19313
|
+
_context.t2 = (_asset$symbol = asset === null || asset === void 0 ? void 0 : asset.symbol) !== null && _asset$symbol !== void 0 ? _asset$symbol : '';
|
|
19662
19314
|
_context.t3 = {
|
|
19663
19315
|
balance: _context.t1,
|
|
19664
19316
|
currency: _context.t2
|
|
@@ -19666,9 +19318,9 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
19666
19318
|
_context.t4 = originBalance;
|
|
19667
19319
|
_context.t5 = expectedBalanceAfterXCMDelivery;
|
|
19668
19320
|
_context.t6 = xcmFeeDetails;
|
|
19669
|
-
_context.t7 = BigInt((_getExistentialDeposi = getExistentialDeposit(origin)) !== null && _getExistentialDeposi !==
|
|
19321
|
+
_context.t7 = BigInt((_getExistentialDeposi = getExistentialDeposit(origin)) !== null && _getExistentialDeposi !== void 0 ? _getExistentialDeposi : 0);
|
|
19670
19322
|
_context.t8 = getNativeAssetSymbol(origin);
|
|
19671
|
-
_context.t9 = BigInt((_getExistentialDeposi2 = getExistentialDeposit(origin)) !== null && _getExistentialDeposi2 !==
|
|
19323
|
+
_context.t9 = BigInt((_getExistentialDeposi2 = getExistentialDeposit(origin)) !== null && _getExistentialDeposi2 !== void 0 ? _getExistentialDeposi2 : 0);
|
|
19672
19324
|
_context.next = 33;
|
|
19673
19325
|
return getMaxNativeTransferableAmount({
|
|
19674
19326
|
api: api,
|
|
@@ -19695,7 +19347,7 @@ var getTransferInfo = /*#__PURE__*/function () {
|
|
|
19695
19347
|
case 37:
|
|
19696
19348
|
_context.t12 = _context.sent;
|
|
19697
19349
|
_context.t13 = getNativeAssetSymbol(destination);
|
|
19698
|
-
_context.t14 = BigInt((_getExistentialDeposi3 = getExistentialDeposit(destination)) !== null && _getExistentialDeposi3 !==
|
|
19350
|
+
_context.t14 = BigInt((_getExistentialDeposi3 = getExistentialDeposit(destination)) !== null && _getExistentialDeposi3 !== void 0 ? _getExistentialDeposi3 : 0);
|
|
19699
19351
|
_context.t15 = {
|
|
19700
19352
|
balance: _context.t12,
|
|
19701
19353
|
currency: _context.t13,
|
|
@@ -20025,7 +19677,7 @@ var getMultiLocationTokenId = function getMultiLocationTokenId(location, node) {
|
|
|
20025
19677
|
var assetId = location.interior.value[1].value;
|
|
20026
19678
|
return (_foreignAssets$find$a = (_foreignAssets$find = foreignAssets.find(function (asset) {
|
|
20027
19679
|
return asset.assetId === String(assetId);
|
|
20028
|
-
})) === null || _foreignAssets$find ===
|
|
19680
|
+
})) === null || _foreignAssets$find === void 0 ? void 0 : _foreignAssets$find.assetId) !== null && _foreignAssets$find$a !== void 0 ? _foreignAssets$find$a : null;
|
|
20029
19681
|
}
|
|
20030
19682
|
}
|
|
20031
19683
|
return null;
|
|
@@ -20094,7 +19746,7 @@ var getMultiLocationTokenIdPjs = function getMultiLocationTokenIdPjs(location, n
|
|
|
20094
19746
|
var assetId = junctions[1].GeneralIndex;
|
|
20095
19747
|
return (_foreignAssets$find$s = (_foreignAssets$find = foreignAssets.find(function (asset) {
|
|
20096
19748
|
return asset.assetId === String(assetId);
|
|
20097
|
-
})) === null || _foreignAssets$find ===
|
|
19749
|
+
})) === null || _foreignAssets$find === void 0 ? void 0 : _foreignAssets$find.symbol) !== null && _foreignAssets$find$s !== void 0 ? _foreignAssets$find$s : null;
|
|
20098
19750
|
}
|
|
20099
19751
|
}
|
|
20100
19752
|
return null;
|
|
@@ -20251,12 +19903,12 @@ var validateAssetSupport = function validateAssetSupport(_ref, assetCheckEnabled
|
|
|
20251
19903
|
}
|
|
20252
19904
|
if ('symbol' in currency && nativeAssets.some(function (nativeAsset) {
|
|
20253
19905
|
var _asset$symbol;
|
|
20254
|
-
return nativeAsset.symbol.toLowerCase() === (asset === null || asset ===
|
|
19906
|
+
return nativeAsset.symbol.toLowerCase() === (asset === null || asset === void 0 || (_asset$symbol = asset.symbol) === null || _asset$symbol === void 0 ? void 0 : _asset$symbol.toLowerCase());
|
|
20255
19907
|
})) {
|
|
20256
|
-
throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset ===
|
|
19908
|
+
throw new InvalidCurrencyError("".concat(JSON.stringify(asset === null || asset === void 0 ? void 0 : asset.symbol), " is not supported for transfers to ").concat(destination, "."));
|
|
20257
19909
|
}
|
|
20258
19910
|
}
|
|
20259
|
-
if (!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset ===
|
|
19911
|
+
if (!isBridge && !isRelayDestination && !isMultiLocationDestination && (asset === null || asset === void 0 ? void 0 : asset.symbol) !== undefined && assetCheckEnabled && !('id' in currency) && !hasSupportForAsset(destination, asset.symbol)) {
|
|
20260
19912
|
throw new InvalidCurrencyError("Destination node ".concat(destination, " does not support currency ").concat(JSON.stringify(currency), "."));
|
|
20261
19913
|
}
|
|
20262
19914
|
if (!isBridge && asset === null && assetCheckEnabled) {
|
|
@@ -20328,8 +19980,8 @@ var resolveOverriddenAsset = function resolveOverriddenAsset(options, isBridge,
|
|
|
20328
19980
|
var originTyped = origin;
|
|
20329
19981
|
var originNode = getNode(originTyped);
|
|
20330
19982
|
return _objectSpread2({
|
|
20331
|
-
isFeeAsset: (_currency$isFeeAsset = currency.isFeeAsset) !== null && _currency$isFeeAsset !==
|
|
20332
|
-
}, createMultiAsset(originNode.version, currency.amount, asset === null || asset ===
|
|
19983
|
+
isFeeAsset: (_currency$isFeeAsset = currency.isFeeAsset) !== null && _currency$isFeeAsset !== void 0 ? _currency$isFeeAsset : false
|
|
19984
|
+
}, createMultiAsset(originNode.version, currency.amount, asset === null || asset === void 0 ? void 0 : asset.multiLocation));
|
|
20333
19985
|
});
|
|
20334
19986
|
return assets;
|
|
20335
19987
|
}
|
|
@@ -20393,7 +20045,7 @@ var send = /*#__PURE__*/function () {
|
|
|
20393
20045
|
return api.init(origin);
|
|
20394
20046
|
case 21:
|
|
20395
20047
|
// In case asset check is disabled, we create asset object from currency symbol
|
|
20396
|
-
resolvedAsset = asset !== null && asset !==
|
|
20048
|
+
resolvedAsset = asset !== null && asset !== void 0 ? asset : {
|
|
20397
20049
|
symbol: 'symbol' in currency ? currency.symbol : undefined
|
|
20398
20050
|
};
|
|
20399
20051
|
originNode = getNode(origin);
|
|
@@ -20467,8 +20119,8 @@ var formatAssetIdToERC20 = function formatAssetIdToERC20(id) {
|
|
|
20467
20119
|
if (id.startsWith('0x')) {
|
|
20468
20120
|
return id;
|
|
20469
20121
|
}
|
|
20470
|
-
if (
|
|
20471
|
-
throw new Error("Asset id: ".concat(id, " must be a string and have 38-39 digits"));
|
|
20122
|
+
if (!(/^\d{38,39}$/.test(id) || /^\d{4}$/.test(id))) {
|
|
20123
|
+
throw new Error("Asset id: ".concat(id, " must be a string and have either 4 digits or 38-39 digits"));
|
|
20472
20124
|
}
|
|
20473
20125
|
return "0xffffffff".concat(BigInt(id).toString(16).padStart(32, '0'));
|
|
20474
20126
|
};
|
|
@@ -20660,7 +20312,7 @@ var transferMoonbeamEvm = /*#__PURE__*/function () {
|
|
|
20660
20312
|
break;
|
|
20661
20313
|
}
|
|
20662
20314
|
_context.next = 25;
|
|
20663
|
-
return createTx('transferMultiCurrencies', [[[asset, currency.amount], [formatAssetIdToERC20((_usdtAsset$assetId = usdtAsset.assetId) !== null && _usdtAsset$assetId !==
|
|
20315
|
+
return createTx('transferMultiCurrencies', [[[asset, currency.amount], [formatAssetIdToERC20((_usdtAsset$assetId = usdtAsset.assetId) !== null && _usdtAsset$assetId !== void 0 ? _usdtAsset$assetId : ''), '200000']], 1,
|
|
20664
20316
|
// index of the fee asset
|
|
20665
20317
|
destMultiLocation, weight]);
|
|
20666
20318
|
case 25:
|
|
@@ -20858,7 +20510,7 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
|
|
|
20858
20510
|
_context.next = 23;
|
|
20859
20511
|
break;
|
|
20860
20512
|
case 22:
|
|
20861
|
-
_context.t0 = (_signer$account = signer.account) === null || _signer$account ===
|
|
20513
|
+
_context.t0 = (_signer$account = signer.account) === null || _signer$account === void 0 ? void 0 : _signer$account.address;
|
|
20862
20514
|
case 23:
|
|
20863
20515
|
senderAddress = _context.t0;
|
|
20864
20516
|
if (senderAddress) {
|
|
@@ -20876,17 +20528,12 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
|
|
|
20876
20528
|
messageId = _context.sent;
|
|
20877
20529
|
customXcm = createCustomXcmOnDest({
|
|
20878
20530
|
api: api,
|
|
20879
|
-
destination: to,
|
|
20880
20531
|
address: address,
|
|
20881
20532
|
scenario: 'ParaToPara',
|
|
20882
20533
|
senderAddress: senderAddress,
|
|
20883
20534
|
asset: _objectSpread2(_objectSpread2({}, foundAsset), {}, {
|
|
20884
20535
|
amount: currency.amount
|
|
20885
|
-
}),
|
|
20886
|
-
header: {},
|
|
20887
|
-
currencySelection: {},
|
|
20888
|
-
addressSelection: {}
|
|
20889
|
-
}, Version.V4, messageId);
|
|
20536
|
+
})}, Version.V4, messageId);
|
|
20890
20537
|
_context.next = 34;
|
|
20891
20538
|
return api.objectToHex(customXcm, 'XcmVersionedXcm');
|
|
20892
20539
|
case 34:
|
|
@@ -20941,4 +20588,4 @@ var transferMoonbeamToEth = /*#__PURE__*/function () {
|
|
|
20941
20588
|
};
|
|
20942
20589
|
}();
|
|
20943
20590
|
|
|
20944
|
-
export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, Foreign, ForeignAbstract, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, PolkadotXcmError, SUPPORTED_PALLETS, ScenarioNotSupportedError, Version, XTokensError, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, createApiInstanceForNode, createX1Payload, _deepEqual as deepEqual, determineRelayChain, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findBestMatches, generateAddressMultiLocationV4, generateAddressPayload, getAllAssetsSymbols, getAssetBalance, getAssetBalanceInternal, getAssetBySymbolOrId, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getDefaultPallet, getDryRun, getExistentialDeposit, getFees, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOtherAssets, getParaEthTransferFees, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getSupportedPalletsDetails, getTNode, getTransferInfo, getTransferableAmount, hasSupportForAsset, isEthersContract, isEthersSigner, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isRelayChain, isSymbolSpecifier, normalizeSymbol, resolveModuleError, resolveParaId, send, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, validateAddress, verifyEdOnDestination };
|
|
20591
|
+
export { BatchMode, Builder, DuplicateAssetError, DuplicateAssetIdError, ETHEREUM_JUNCTION, ETH_CHAIN_ID, Foreign, ForeignAbstract, GeneralBuilder, IncompatibleNodesError, InvalidAddressError, InvalidCurrencyError, NODES_WITH_RELAY_CHAINS, NODES_WITH_RELAY_CHAINS_DOT_KSM, NODE_NAMES, NODE_NAMES_DOT_KSM, Native, NoXCMSupportImplementedError, NodeNotSupportedError, Override, Parents, PolkadotXcmError, SUPPORTED_PALLETS, ScenarioNotSupportedError, Version, XTokensError, claimAssets, computeFeeFromDryRun, computeFeeFromDryRunPjs, createApiInstanceForNode, createX1Payload, _deepEqual as deepEqual, determineRelayChain, findAssetById, findAssetByMultiLocation, findAssetBySymbol, findBestMatches, generateAddressMultiLocationV4, generateAddressPayload, getAllAssetsSymbols, getAssetBalance, getAssetBalanceInternal, getAssetBySymbolOrId, getAssetDecimals, getAssetId, getAssetMultiLocation, getAssets, getAssetsObject, getBalanceForeign, getBalanceForeignInternal, getBalanceNative, getBalanceNativeInternal, getDefaultPallet, getDryRun, getExistentialDeposit, getFees, getMaxForeignTransferableAmount, getMaxNativeTransferableAmount, getNativeAssetSymbol, getNativeAssets, getNode, getNodeConfig, getNodeProviders, getOriginFeeDetails, getOriginFeeDetailsInternal, getOtherAssets, getParaEthTransferFees, getParaId, getRelayChainSymbol, getSupportedAssets, getSupportedPallets, getSupportedPalletsDetails, getTNode, getTransferInfo, getTransferableAmount, hasDryRunSupport, hasSupportForAsset, isEthersContract, isEthersSigner, isForeignAsset, isNodeEvm, isOverrideMultiLocationSpecifier, isRelayChain, isSymbolSpecifier, normalizeSymbol, resolveModuleError, resolveParaId, send, transferMoonbeamEvm, transferMoonbeamToEth, transferRelayToPara, validateAddress, verifyEdOnDestination };
|