@paraspell/assets 11.12.2 → 11.12.3
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 +579 -185
- package/dist/index.d.ts +2 -5
- package/dist/index.mjs +580 -186
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Version, deepEqual, replaceBigInt, CHAINS } from '@paraspell/sdk-common';
|
|
1
|
+
import { Version, deepEqual, replaceBigInt, isSubstrateBridge, CHAINS } from '@paraspell/sdk-common';
|
|
2
2
|
|
|
3
3
|
function _arrayLikeToArray(r, a) {
|
|
4
4
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -4259,10 +4259,13 @@ var Hydration = {
|
|
|
4259
4259
|
location: {
|
|
4260
4260
|
parents: 1,
|
|
4261
4261
|
interior: {
|
|
4262
|
-
|
|
4262
|
+
X3: [
|
|
4263
4263
|
{
|
|
4264
4264
|
Parachain: 2004
|
|
4265
4265
|
},
|
|
4266
|
+
{
|
|
4267
|
+
PalletInstance: 110
|
|
4268
|
+
},
|
|
4266
4269
|
{
|
|
4267
4270
|
AccountKey20: {
|
|
4268
4271
|
network: null,
|
|
@@ -11871,8 +11874,8 @@ var Quartz = {
|
|
|
11871
11874
|
nativeAssetSymbol: "QTZ",
|
|
11872
11875
|
isEVM: false,
|
|
11873
11876
|
ss58Prefix: 255,
|
|
11874
|
-
supportsDryRunApi:
|
|
11875
|
-
supportsXcmPaymentApi:
|
|
11877
|
+
supportsDryRunApi: true,
|
|
11878
|
+
supportsXcmPaymentApi: true,
|
|
11876
11879
|
nativeAssets: [
|
|
11877
11880
|
{
|
|
11878
11881
|
symbol: "QTZ",
|
|
@@ -18259,22 +18262,20 @@ var BifrostPaseo = {
|
|
|
18259
18262
|
supportsXcmPaymentApi: true,
|
|
18260
18263
|
nativeAssets: [
|
|
18261
18264
|
{
|
|
18262
|
-
symbol: "
|
|
18263
|
-
|
|
18264
|
-
existentialDeposit: "10000000",
|
|
18265
|
-
isNative: true
|
|
18266
|
-
},
|
|
18267
|
-
{
|
|
18268
|
-
symbol: "DOT",
|
|
18269
|
-
decimals: 10,
|
|
18270
|
-
existentialDeposit: "100000000",
|
|
18271
|
-
isNative: true
|
|
18272
|
-
},
|
|
18273
|
-
{
|
|
18274
|
-
symbol: "vBNC",
|
|
18265
|
+
symbol: "BNC",
|
|
18266
|
+
isNative: true,
|
|
18275
18267
|
decimals: 12,
|
|
18276
18268
|
existentialDeposit: "10000000000",
|
|
18277
|
-
|
|
18269
|
+
location: {
|
|
18270
|
+
parents: 1,
|
|
18271
|
+
interior: {
|
|
18272
|
+
X1: [
|
|
18273
|
+
{
|
|
18274
|
+
Parachain: 2030
|
|
18275
|
+
}
|
|
18276
|
+
]
|
|
18277
|
+
}
|
|
18278
|
+
}
|
|
18278
18279
|
}
|
|
18279
18280
|
],
|
|
18280
18281
|
otherAssets: [
|
|
@@ -18544,6 +18545,81 @@ var HydrationPaseo = {
|
|
|
18544
18545
|
},
|
|
18545
18546
|
isFeeAsset: true
|
|
18546
18547
|
},
|
|
18548
|
+
{
|
|
18549
|
+
assetId: "1113",
|
|
18550
|
+
symbol: "HUSDe",
|
|
18551
|
+
decimals: 18,
|
|
18552
|
+
existentialDeposit: "33000000000000000",
|
|
18553
|
+
location: {
|
|
18554
|
+
parents: 1,
|
|
18555
|
+
interior: {
|
|
18556
|
+
X2: [
|
|
18557
|
+
{
|
|
18558
|
+
Parachain: 2034
|
|
18559
|
+
},
|
|
18560
|
+
{
|
|
18561
|
+
AccountKey20: {
|
|
18562
|
+
network: null,
|
|
18563
|
+
key: "0x52e1311e26610e6662a1e5b5bd113130b6815213"
|
|
18564
|
+
}
|
|
18565
|
+
}
|
|
18566
|
+
]
|
|
18567
|
+
}
|
|
18568
|
+
},
|
|
18569
|
+
isFeeAsset: true
|
|
18570
|
+
},
|
|
18571
|
+
{
|
|
18572
|
+
assetId: "222",
|
|
18573
|
+
symbol: "HOLLAR",
|
|
18574
|
+
decimals: 18,
|
|
18575
|
+
existentialDeposit: "0",
|
|
18576
|
+
location: {
|
|
18577
|
+
parents: 1,
|
|
18578
|
+
interior: {
|
|
18579
|
+
X2: [
|
|
18580
|
+
{
|
|
18581
|
+
Parachain: 2034
|
|
18582
|
+
},
|
|
18583
|
+
{
|
|
18584
|
+
AccountKey20: {
|
|
18585
|
+
network: null,
|
|
18586
|
+
key: "0x531a654d1696ed52e7275a8cede955e82620f99a"
|
|
18587
|
+
}
|
|
18588
|
+
}
|
|
18589
|
+
]
|
|
18590
|
+
}
|
|
18591
|
+
},
|
|
18592
|
+
isFeeAsset: true
|
|
18593
|
+
},
|
|
18594
|
+
{
|
|
18595
|
+
assetId: "420",
|
|
18596
|
+
symbol: "GETH",
|
|
18597
|
+
decimals: 18,
|
|
18598
|
+
existentialDeposit: "8202803876747",
|
|
18599
|
+
location: {
|
|
18600
|
+
parents: 1,
|
|
18601
|
+
interior: {
|
|
18602
|
+
X2: [
|
|
18603
|
+
{
|
|
18604
|
+
Parachain: 2034
|
|
18605
|
+
},
|
|
18606
|
+
{
|
|
18607
|
+
AccountKey20: {
|
|
18608
|
+
network: null,
|
|
18609
|
+
key: "0x8a598fe3e3a471ce865332e330d303502a0e2f52"
|
|
18610
|
+
}
|
|
18611
|
+
}
|
|
18612
|
+
]
|
|
18613
|
+
}
|
|
18614
|
+
},
|
|
18615
|
+
isFeeAsset: true
|
|
18616
|
+
},
|
|
18617
|
+
{
|
|
18618
|
+
assetId: "110",
|
|
18619
|
+
symbol: "2-Pool-HUSDC",
|
|
18620
|
+
decimals: 18,
|
|
18621
|
+
existentialDeposit: "1000"
|
|
18622
|
+
},
|
|
18547
18623
|
{
|
|
18548
18624
|
assetId: "10",
|
|
18549
18625
|
symbol: "USDT",
|
|
@@ -18572,7 +18648,7 @@ var HydrationPaseo = {
|
|
|
18572
18648
|
assetId: "1001",
|
|
18573
18649
|
symbol: "aDOT",
|
|
18574
18650
|
decimals: 10,
|
|
18575
|
-
existentialDeposit: "
|
|
18651
|
+
existentialDeposit: "54125333",
|
|
18576
18652
|
location: {
|
|
18577
18653
|
parents: 1,
|
|
18578
18654
|
interior: {
|
|
@@ -18591,6 +18667,29 @@ var HydrationPaseo = {
|
|
|
18591
18667
|
},
|
|
18592
18668
|
isFeeAsset: true
|
|
18593
18669
|
},
|
|
18670
|
+
{
|
|
18671
|
+
assetId: "1111",
|
|
18672
|
+
symbol: "HUSDT",
|
|
18673
|
+
decimals: 18,
|
|
18674
|
+
existentialDeposit: "33000000000000000",
|
|
18675
|
+
location: {
|
|
18676
|
+
parents: 1,
|
|
18677
|
+
interior: {
|
|
18678
|
+
X2: [
|
|
18679
|
+
{
|
|
18680
|
+
Parachain: 2034
|
|
18681
|
+
},
|
|
18682
|
+
{
|
|
18683
|
+
AccountKey20: {
|
|
18684
|
+
network: null,
|
|
18685
|
+
key: "0x1806860d27ee903c1ec7586d4f7d598d7591f124"
|
|
18686
|
+
}
|
|
18687
|
+
}
|
|
18688
|
+
]
|
|
18689
|
+
}
|
|
18690
|
+
},
|
|
18691
|
+
isFeeAsset: true
|
|
18692
|
+
},
|
|
18594
18693
|
{
|
|
18595
18694
|
assetId: "4",
|
|
18596
18695
|
symbol: "WETH",
|
|
@@ -18726,6 +18825,33 @@ var HydrationPaseo = {
|
|
|
18726
18825
|
},
|
|
18727
18826
|
isFeeAsset: true
|
|
18728
18827
|
},
|
|
18828
|
+
{
|
|
18829
|
+
assetId: "39",
|
|
18830
|
+
symbol: "PAXG",
|
|
18831
|
+
decimals: 18,
|
|
18832
|
+
existentialDeposit: "2374169040836",
|
|
18833
|
+
location: {
|
|
18834
|
+
parents: 2,
|
|
18835
|
+
interior: {
|
|
18836
|
+
X2: [
|
|
18837
|
+
{
|
|
18838
|
+
GlobalConsensus: {
|
|
18839
|
+
Ethereum: {
|
|
18840
|
+
chainId: 1
|
|
18841
|
+
}
|
|
18842
|
+
}
|
|
18843
|
+
},
|
|
18844
|
+
{
|
|
18845
|
+
AccountKey20: {
|
|
18846
|
+
network: null,
|
|
18847
|
+
key: "0x45804880de22913dafe09f4980848ece6ecbaf78"
|
|
18848
|
+
}
|
|
18849
|
+
}
|
|
18850
|
+
]
|
|
18851
|
+
}
|
|
18852
|
+
},
|
|
18853
|
+
isFeeAsset: true
|
|
18854
|
+
},
|
|
18729
18855
|
{
|
|
18730
18856
|
assetId: "101",
|
|
18731
18857
|
symbol: "2-Pool",
|
|
@@ -18733,6 +18859,33 @@ var HydrationPaseo = {
|
|
|
18733
18859
|
existentialDeposit: "1000",
|
|
18734
18860
|
alias: "2-Pool1"
|
|
18735
18861
|
},
|
|
18862
|
+
{
|
|
18863
|
+
assetId: "38",
|
|
18864
|
+
symbol: "ENA",
|
|
18865
|
+
decimals: 18,
|
|
18866
|
+
existentialDeposit: "17337031900138700",
|
|
18867
|
+
location: {
|
|
18868
|
+
parents: 2,
|
|
18869
|
+
interior: {
|
|
18870
|
+
X2: [
|
|
18871
|
+
{
|
|
18872
|
+
GlobalConsensus: {
|
|
18873
|
+
Ethereum: {
|
|
18874
|
+
chainId: 1
|
|
18875
|
+
}
|
|
18876
|
+
}
|
|
18877
|
+
},
|
|
18878
|
+
{
|
|
18879
|
+
AccountKey20: {
|
|
18880
|
+
network: null,
|
|
18881
|
+
key: "0x57e114b691db790c35207b2e685d4a43181e6061"
|
|
18882
|
+
}
|
|
18883
|
+
}
|
|
18884
|
+
]
|
|
18885
|
+
}
|
|
18886
|
+
},
|
|
18887
|
+
isFeeAsset: true
|
|
18888
|
+
},
|
|
18736
18889
|
{
|
|
18737
18890
|
assetId: "34",
|
|
18738
18891
|
symbol: "ETH",
|
|
@@ -18797,6 +18950,29 @@ var HydrationPaseo = {
|
|
|
18797
18950
|
},
|
|
18798
18951
|
isFeeAsset: true
|
|
18799
18952
|
},
|
|
18953
|
+
{
|
|
18954
|
+
assetId: "1008",
|
|
18955
|
+
symbol: "a3-Pool",
|
|
18956
|
+
decimals: 18,
|
|
18957
|
+
existentialDeposit: "33000000000000000",
|
|
18958
|
+
location: {
|
|
18959
|
+
parents: 1,
|
|
18960
|
+
interior: {
|
|
18961
|
+
X2: [
|
|
18962
|
+
{
|
|
18963
|
+
Parachain: 2034
|
|
18964
|
+
},
|
|
18965
|
+
{
|
|
18966
|
+
AccountKey20: {
|
|
18967
|
+
network: null,
|
|
18968
|
+
key: "0xc09cf2f85367f3c2ab66e094283de3a499cb9108"
|
|
18969
|
+
}
|
|
18970
|
+
}
|
|
18971
|
+
]
|
|
18972
|
+
}
|
|
18973
|
+
},
|
|
18974
|
+
isFeeAsset: true
|
|
18975
|
+
},
|
|
18800
18976
|
{
|
|
18801
18977
|
assetId: "1000085",
|
|
18802
18978
|
symbol: "WUD",
|
|
@@ -18820,6 +18996,41 @@ var HydrationPaseo = {
|
|
|
18820
18996
|
},
|
|
18821
18997
|
isFeeAsset: true
|
|
18822
18998
|
},
|
|
18999
|
+
{
|
|
19000
|
+
assetId: "103",
|
|
19001
|
+
symbol: "3-Pool",
|
|
19002
|
+
decimals: 18,
|
|
19003
|
+
existentialDeposit: "20000000000000000"
|
|
19004
|
+
},
|
|
19005
|
+
{
|
|
19006
|
+
assetId: "111",
|
|
19007
|
+
symbol: "2-Pool-HUSDT",
|
|
19008
|
+
decimals: 18,
|
|
19009
|
+
existentialDeposit: "1000"
|
|
19010
|
+
},
|
|
19011
|
+
{
|
|
19012
|
+
assetId: "1112",
|
|
19013
|
+
symbol: "HUSDS",
|
|
19014
|
+
decimals: 18,
|
|
19015
|
+
existentialDeposit: "33000000000000000",
|
|
19016
|
+
location: {
|
|
19017
|
+
parents: 1,
|
|
19018
|
+
interior: {
|
|
19019
|
+
X2: [
|
|
19020
|
+
{
|
|
19021
|
+
Parachain: 2034
|
|
19022
|
+
},
|
|
19023
|
+
{
|
|
19024
|
+
AccountKey20: {
|
|
19025
|
+
network: null,
|
|
19026
|
+
key: "0x7e3ce0257506c3e1f96a2a9b25a9440959b0d453"
|
|
19027
|
+
}
|
|
19028
|
+
}
|
|
19029
|
+
]
|
|
19030
|
+
}
|
|
19031
|
+
},
|
|
19032
|
+
isFeeAsset: true
|
|
19033
|
+
},
|
|
18823
19034
|
{
|
|
18824
19035
|
assetId: "1000099",
|
|
18825
19036
|
symbol: "ACA",
|
|
@@ -18895,19 +19106,42 @@ var HydrationPaseo = {
|
|
|
18895
19106
|
isFeeAsset: true
|
|
18896
19107
|
},
|
|
18897
19108
|
{
|
|
18898
|
-
assetId: "
|
|
18899
|
-
symbol: "
|
|
19109
|
+
assetId: "1006",
|
|
19110
|
+
symbol: "atBTC",
|
|
18900
19111
|
decimals: 18,
|
|
18901
|
-
existentialDeposit: "
|
|
19112
|
+
existentialDeposit: "208779411374",
|
|
18902
19113
|
location: {
|
|
18903
19114
|
parents: 1,
|
|
18904
19115
|
interior: {
|
|
18905
19116
|
X2: [
|
|
18906
19117
|
{
|
|
18907
|
-
Parachain:
|
|
19118
|
+
Parachain: 2034
|
|
18908
19119
|
},
|
|
18909
19120
|
{
|
|
18910
|
-
|
|
19121
|
+
AccountKey20: {
|
|
19122
|
+
network: null,
|
|
19123
|
+
key: "0x69003a65189f6ed993d3bd3e2b74f1db39f405ce"
|
|
19124
|
+
}
|
|
19125
|
+
}
|
|
19126
|
+
]
|
|
19127
|
+
}
|
|
19128
|
+
},
|
|
19129
|
+
isFeeAsset: true
|
|
19130
|
+
},
|
|
19131
|
+
{
|
|
19132
|
+
assetId: "6",
|
|
19133
|
+
symbol: "APE",
|
|
19134
|
+
decimals: 18,
|
|
19135
|
+
existentialDeposit: "2518891687657430",
|
|
19136
|
+
location: {
|
|
19137
|
+
parents: 1,
|
|
19138
|
+
interior: {
|
|
19139
|
+
X2: [
|
|
19140
|
+
{
|
|
19141
|
+
Parachain: 2000
|
|
19142
|
+
},
|
|
19143
|
+
{
|
|
19144
|
+
GeneralKey: {
|
|
18911
19145
|
length: 21,
|
|
18912
19146
|
data: "0x02f4c723e61709d90f89939c1852f516e373d418a80000000000000000000000"
|
|
18913
19147
|
}
|
|
@@ -18999,10 +19233,57 @@ var HydrationPaseo = {
|
|
|
18999
19233
|
isFeeAsset: true
|
|
19000
19234
|
},
|
|
19001
19235
|
{
|
|
19002
|
-
assetId: "
|
|
19003
|
-
symbol: "
|
|
19004
|
-
decimals:
|
|
19005
|
-
existentialDeposit: "
|
|
19236
|
+
assetId: "35",
|
|
19237
|
+
symbol: "TRAC",
|
|
19238
|
+
decimals: 18,
|
|
19239
|
+
existentialDeposit: "27777777777777800",
|
|
19240
|
+
location: {
|
|
19241
|
+
parents: 2,
|
|
19242
|
+
interior: {
|
|
19243
|
+
X2: [
|
|
19244
|
+
{
|
|
19245
|
+
GlobalConsensus: {
|
|
19246
|
+
Ethereum: {
|
|
19247
|
+
chainId: 1
|
|
19248
|
+
}
|
|
19249
|
+
}
|
|
19250
|
+
},
|
|
19251
|
+
{
|
|
19252
|
+
AccountKey20: {
|
|
19253
|
+
network: null,
|
|
19254
|
+
key: "0xaa7a9ca87d3694b5755f213b5d04094b8d0f0a6f"
|
|
19255
|
+
}
|
|
19256
|
+
}
|
|
19257
|
+
]
|
|
19258
|
+
}
|
|
19259
|
+
},
|
|
19260
|
+
isFeeAsset: true
|
|
19261
|
+
},
|
|
19262
|
+
{
|
|
19263
|
+
assetId: "4200",
|
|
19264
|
+
symbol: "2-Pool-GETH",
|
|
19265
|
+
decimals: 18,
|
|
19266
|
+
existentialDeposit: "1000"
|
|
19267
|
+
},
|
|
19268
|
+
{
|
|
19269
|
+
assetId: "36",
|
|
19270
|
+
symbol: "NEURO",
|
|
19271
|
+
decimals: 12,
|
|
19272
|
+
existentialDeposit: "588235294118",
|
|
19273
|
+
location: {
|
|
19274
|
+
parents: 1,
|
|
19275
|
+
interior: {
|
|
19276
|
+
X2: [
|
|
19277
|
+
{
|
|
19278
|
+
Parachain: 2043
|
|
19279
|
+
},
|
|
19280
|
+
{
|
|
19281
|
+
PalletInstance: 10
|
|
19282
|
+
}
|
|
19283
|
+
]
|
|
19284
|
+
}
|
|
19285
|
+
},
|
|
19286
|
+
isFeeAsset: true
|
|
19006
19287
|
},
|
|
19007
19288
|
{
|
|
19008
19289
|
assetId: "31",
|
|
@@ -19047,6 +19328,34 @@ var HydrationPaseo = {
|
|
|
19047
19328
|
},
|
|
19048
19329
|
isFeeAsset: true
|
|
19049
19330
|
},
|
|
19331
|
+
{
|
|
19332
|
+
assetId: "41",
|
|
19333
|
+
symbol: "CFG",
|
|
19334
|
+
decimals: 18,
|
|
19335
|
+
existentialDeposit: "36297640653357500",
|
|
19336
|
+
location: {
|
|
19337
|
+
parents: 2,
|
|
19338
|
+
interior: {
|
|
19339
|
+
X2: [
|
|
19340
|
+
{
|
|
19341
|
+
GlobalConsensus: {
|
|
19342
|
+
Ethereum: {
|
|
19343
|
+
chainId: 1
|
|
19344
|
+
}
|
|
19345
|
+
}
|
|
19346
|
+
},
|
|
19347
|
+
{
|
|
19348
|
+
AccountKey20: {
|
|
19349
|
+
network: null,
|
|
19350
|
+
key: "0xcccccccccc33d538dbc2ee4feab0a7a1ff4e8a94"
|
|
19351
|
+
}
|
|
19352
|
+
}
|
|
19353
|
+
]
|
|
19354
|
+
}
|
|
19355
|
+
},
|
|
19356
|
+
isFeeAsset: true,
|
|
19357
|
+
alias: "CFG2"
|
|
19358
|
+
},
|
|
19050
19359
|
{
|
|
19051
19360
|
assetId: "15",
|
|
19052
19361
|
symbol: "vDOT",
|
|
@@ -19097,6 +19406,29 @@ var HydrationPaseo = {
|
|
|
19097
19406
|
},
|
|
19098
19407
|
isFeeAsset: true
|
|
19099
19408
|
},
|
|
19409
|
+
{
|
|
19410
|
+
assetId: "40",
|
|
19411
|
+
symbol: "jitoSOL",
|
|
19412
|
+
decimals: 9,
|
|
19413
|
+
existentialDeposit: "2651",
|
|
19414
|
+
location: {
|
|
19415
|
+
parents: 1,
|
|
19416
|
+
interior: {
|
|
19417
|
+
X2: [
|
|
19418
|
+
{
|
|
19419
|
+
Parachain: 2004
|
|
19420
|
+
},
|
|
19421
|
+
{
|
|
19422
|
+
AccountKey20: {
|
|
19423
|
+
network: null,
|
|
19424
|
+
key: "0xe9f9a2e3deae4093c00fbc57b22bb51a4c05ad88"
|
|
19425
|
+
}
|
|
19426
|
+
}
|
|
19427
|
+
]
|
|
19428
|
+
}
|
|
19429
|
+
},
|
|
19430
|
+
isFeeAsset: true
|
|
19431
|
+
},
|
|
19100
19432
|
{
|
|
19101
19433
|
assetId: "2",
|
|
19102
19434
|
symbol: "DAI",
|
|
@@ -19142,13 +19474,14 @@ var HydrationPaseo = {
|
|
|
19142
19474
|
]
|
|
19143
19475
|
}
|
|
19144
19476
|
},
|
|
19145
|
-
isFeeAsset: true
|
|
19477
|
+
isFeeAsset: true,
|
|
19478
|
+
alias: "CFG1"
|
|
19146
19479
|
},
|
|
19147
19480
|
{
|
|
19148
19481
|
assetId: "1002",
|
|
19149
19482
|
symbol: "aUSDT",
|
|
19150
19483
|
decimals: 6,
|
|
19151
|
-
existentialDeposit: "
|
|
19484
|
+
existentialDeposit: "22409",
|
|
19152
19485
|
location: {
|
|
19153
19486
|
parents: 1,
|
|
19154
19487
|
interior: {
|
|
@@ -19261,6 +19594,12 @@ var HydrationPaseo = {
|
|
|
19261
19594
|
},
|
|
19262
19595
|
isFeeAsset: true
|
|
19263
19596
|
},
|
|
19597
|
+
{
|
|
19598
|
+
assetId: "104",
|
|
19599
|
+
symbol: "2-Pool-WETH",
|
|
19600
|
+
decimals: 18,
|
|
19601
|
+
existentialDeposit: "2583311805735"
|
|
19602
|
+
},
|
|
19264
19603
|
{
|
|
19265
19604
|
assetId: "29",
|
|
19266
19605
|
symbol: "PLMC",
|
|
@@ -19443,7 +19782,7 @@ var HydrationPaseo = {
|
|
|
19443
19782
|
assetId: "1003",
|
|
19444
19783
|
symbol: "aUSDC",
|
|
19445
19784
|
decimals: 6,
|
|
19446
|
-
existentialDeposit: "
|
|
19785
|
+
existentialDeposit: "22409",
|
|
19447
19786
|
location: {
|
|
19448
19787
|
parents: 1,
|
|
19449
19788
|
interior: {
|
|
@@ -19490,6 +19829,12 @@ var HydrationPaseo = {
|
|
|
19490
19829
|
isFeeAsset: true,
|
|
19491
19830
|
alias: "WBTC1"
|
|
19492
19831
|
},
|
|
19832
|
+
{
|
|
19833
|
+
assetId: "690",
|
|
19834
|
+
symbol: "2-Pool-GDOT",
|
|
19835
|
+
decimals: 18,
|
|
19836
|
+
existentialDeposit: "1"
|
|
19837
|
+
},
|
|
19493
19838
|
{
|
|
19494
19839
|
assetId: "22",
|
|
19495
19840
|
symbol: "USDC",
|
|
@@ -19514,11 +19859,17 @@ var HydrationPaseo = {
|
|
|
19514
19859
|
isFeeAsset: true,
|
|
19515
19860
|
alias: "USDC3"
|
|
19516
19861
|
},
|
|
19862
|
+
{
|
|
19863
|
+
assetId: "112",
|
|
19864
|
+
symbol: "2-Pool-HUSDS",
|
|
19865
|
+
decimals: 18,
|
|
19866
|
+
existentialDeposit: "1000"
|
|
19867
|
+
},
|
|
19517
19868
|
{
|
|
19518
19869
|
assetId: "1005",
|
|
19519
19870
|
symbol: "avDOT",
|
|
19520
19871
|
decimals: 10,
|
|
19521
|
-
existentialDeposit: "
|
|
19872
|
+
existentialDeposit: "36627790",
|
|
19522
19873
|
location: {
|
|
19523
19874
|
parents: 1,
|
|
19524
19875
|
interior: {
|
|
@@ -19537,6 +19888,29 @@ var HydrationPaseo = {
|
|
|
19537
19888
|
},
|
|
19538
19889
|
isFeeAsset: true
|
|
19539
19890
|
},
|
|
19891
|
+
{
|
|
19892
|
+
assetId: "1007",
|
|
19893
|
+
symbol: "aETH",
|
|
19894
|
+
decimals: 18,
|
|
19895
|
+
existentialDeposit: "8202803876747",
|
|
19896
|
+
location: {
|
|
19897
|
+
parents: 1,
|
|
19898
|
+
interior: {
|
|
19899
|
+
X2: [
|
|
19900
|
+
{
|
|
19901
|
+
Parachain: 2034
|
|
19902
|
+
},
|
|
19903
|
+
{
|
|
19904
|
+
AccountKey20: {
|
|
19905
|
+
network: null,
|
|
19906
|
+
key: "0x11a8f7ffbb7e0fbed88bc20179dd45b4bd6874ff"
|
|
19907
|
+
}
|
|
19908
|
+
}
|
|
19909
|
+
]
|
|
19910
|
+
}
|
|
19911
|
+
},
|
|
19912
|
+
isFeeAsset: true
|
|
19913
|
+
},
|
|
19540
19914
|
{
|
|
19541
19915
|
assetId: "24",
|
|
19542
19916
|
symbol: "SUB",
|
|
@@ -19626,6 +20000,29 @@ var HydrationPaseo = {
|
|
|
19626
20000
|
},
|
|
19627
20001
|
isFeeAsset: true
|
|
19628
20002
|
},
|
|
20003
|
+
{
|
|
20004
|
+
assetId: "1110",
|
|
20005
|
+
symbol: "HUSDC",
|
|
20006
|
+
decimals: 18,
|
|
20007
|
+
existentialDeposit: "33000000000000000",
|
|
20008
|
+
location: {
|
|
20009
|
+
parents: 1,
|
|
20010
|
+
interior: {
|
|
20011
|
+
X2: [
|
|
20012
|
+
{
|
|
20013
|
+
Parachain: 2034
|
|
20014
|
+
},
|
|
20015
|
+
{
|
|
20016
|
+
AccountKey20: {
|
|
20017
|
+
network: null,
|
|
20018
|
+
key: "0x35774c305aaf441a102d47988d35f0f5428471b3"
|
|
20019
|
+
}
|
|
20020
|
+
}
|
|
20021
|
+
]
|
|
20022
|
+
}
|
|
20023
|
+
},
|
|
20024
|
+
isFeeAsset: true
|
|
20025
|
+
},
|
|
19629
20026
|
{
|
|
19630
20027
|
assetId: "1000100",
|
|
19631
20028
|
symbol: "LDOT",
|
|
@@ -19653,7 +20050,7 @@ var HydrationPaseo = {
|
|
|
19653
20050
|
assetId: "1004",
|
|
19654
20051
|
symbol: "aWBTC",
|
|
19655
20052
|
decimals: 8,
|
|
19656
|
-
existentialDeposit: "
|
|
20053
|
+
existentialDeposit: "40",
|
|
19657
20054
|
location: {
|
|
19658
20055
|
parents: 1,
|
|
19659
20056
|
interior: {
|
|
@@ -19727,6 +20124,12 @@ var HydrationPaseo = {
|
|
|
19727
20124
|
},
|
|
19728
20125
|
isFeeAsset: true
|
|
19729
20126
|
},
|
|
20127
|
+
{
|
|
20128
|
+
assetId: "113",
|
|
20129
|
+
symbol: "2-Pool-HUSDe",
|
|
20130
|
+
decimals: 18,
|
|
20131
|
+
existentialDeposit: "1000"
|
|
20132
|
+
},
|
|
19730
20133
|
{
|
|
19731
20134
|
assetId: "1",
|
|
19732
20135
|
symbol: "H2O",
|
|
@@ -19793,26 +20196,6 @@ var HydrationPaseo = {
|
|
|
19793
20196
|
},
|
|
19794
20197
|
isFeeAsset: true
|
|
19795
20198
|
},
|
|
19796
|
-
{
|
|
19797
|
-
assetId: "12345",
|
|
19798
|
-
symbol: "KPGT",
|
|
19799
|
-
decimals: 18,
|
|
19800
|
-
existentialDeposit: "10000000000000000",
|
|
19801
|
-
location: {
|
|
19802
|
-
parents: 1,
|
|
19803
|
-
interior: {
|
|
19804
|
-
X2: [
|
|
19805
|
-
{
|
|
19806
|
-
Parachain: 4818
|
|
19807
|
-
},
|
|
19808
|
-
{
|
|
19809
|
-
GeneralIndex: 0
|
|
19810
|
-
}
|
|
19811
|
-
]
|
|
19812
|
-
}
|
|
19813
|
-
},
|
|
19814
|
-
isFeeAsset: true
|
|
19815
|
-
},
|
|
19816
20199
|
{
|
|
19817
20200
|
assetId: "3",
|
|
19818
20201
|
symbol: "WBTC",
|
|
@@ -19912,6 +20295,29 @@ var HydrationPaseo = {
|
|
|
19912
20295
|
},
|
|
19913
20296
|
isFeeAsset: true
|
|
19914
20297
|
},
|
|
20298
|
+
{
|
|
20299
|
+
assetId: "69",
|
|
20300
|
+
symbol: "GDOT",
|
|
20301
|
+
decimals: 18,
|
|
20302
|
+
existentialDeposit: "5290724013368937",
|
|
20303
|
+
location: {
|
|
20304
|
+
parents: 1,
|
|
20305
|
+
interior: {
|
|
20306
|
+
X2: [
|
|
20307
|
+
{
|
|
20308
|
+
Parachain: 2034
|
|
20309
|
+
},
|
|
20310
|
+
{
|
|
20311
|
+
AccountKey20: {
|
|
20312
|
+
network: null,
|
|
20313
|
+
key: "0x34d5ffb83d14d82f87aaf2f13be895a3c814c2ad"
|
|
20314
|
+
}
|
|
20315
|
+
}
|
|
20316
|
+
]
|
|
20317
|
+
}
|
|
20318
|
+
},
|
|
20319
|
+
isFeeAsset: true
|
|
20320
|
+
},
|
|
19915
20321
|
{
|
|
19916
20322
|
assetId: "23",
|
|
19917
20323
|
symbol: "USDT",
|
|
@@ -19939,6 +20345,56 @@ var HydrationPaseo = {
|
|
|
19939
20345
|
isFeeAsset: true,
|
|
19940
20346
|
alias: "USDT3"
|
|
19941
20347
|
},
|
|
20348
|
+
{
|
|
20349
|
+
assetId: "37",
|
|
20350
|
+
symbol: "SQD",
|
|
20351
|
+
decimals: 18,
|
|
20352
|
+
existentialDeposit: "61012812690665100",
|
|
20353
|
+
location: {
|
|
20354
|
+
parents: 1,
|
|
20355
|
+
interior: {
|
|
20356
|
+
X2: [
|
|
20357
|
+
{
|
|
20358
|
+
Parachain: 2004
|
|
20359
|
+
},
|
|
20360
|
+
{
|
|
20361
|
+
AccountKey20: {
|
|
20362
|
+
network: null,
|
|
20363
|
+
key: "0x9c4c6eaad9b926ba09f702f4ad880ef71998ef18"
|
|
20364
|
+
}
|
|
20365
|
+
}
|
|
20366
|
+
]
|
|
20367
|
+
}
|
|
20368
|
+
},
|
|
20369
|
+
isFeeAsset: true
|
|
20370
|
+
},
|
|
20371
|
+
{
|
|
20372
|
+
assetId: "1000851",
|
|
20373
|
+
symbol: "LBTC",
|
|
20374
|
+
decimals: 8,
|
|
20375
|
+
existentialDeposit: "11",
|
|
20376
|
+
location: {
|
|
20377
|
+
parents: 2,
|
|
20378
|
+
interior: {
|
|
20379
|
+
X2: [
|
|
20380
|
+
{
|
|
20381
|
+
GlobalConsensus: {
|
|
20382
|
+
Ethereum: {
|
|
20383
|
+
chainId: 1
|
|
20384
|
+
}
|
|
20385
|
+
}
|
|
20386
|
+
},
|
|
20387
|
+
{
|
|
20388
|
+
AccountKey20: {
|
|
20389
|
+
network: null,
|
|
20390
|
+
key: "0x8236a87084f8b84306f72007f36f2618a5634494"
|
|
20391
|
+
}
|
|
20392
|
+
}
|
|
20393
|
+
]
|
|
20394
|
+
}
|
|
20395
|
+
},
|
|
20396
|
+
isFeeAsset: true
|
|
20397
|
+
},
|
|
19942
20398
|
{
|
|
19943
20399
|
assetId: "9",
|
|
19944
20400
|
symbol: "ASTR",
|
|
@@ -20655,6 +21111,42 @@ var throwDuplicateAssetError = function throwDuplicateAssetError(symbol, nativeM
|
|
|
20655
21111
|
}
|
|
20656
21112
|
};
|
|
20657
21113
|
|
|
21114
|
+
var removePrefix = function removePrefix(symbol) {
|
|
21115
|
+
return symbol.slice(2);
|
|
21116
|
+
};
|
|
21117
|
+
var removeSuffix = function removeSuffix(symbol) {
|
|
21118
|
+
return symbol.slice(0, -2);
|
|
21119
|
+
};
|
|
21120
|
+
var findEthAssetBySymbol = function findEthAssetBySymbol(symbol) {
|
|
21121
|
+
var ethereumAssets = getOtherAssets('Ethereum');
|
|
21122
|
+
return findBestMatches(ethereumAssets, symbol)[0];
|
|
21123
|
+
};
|
|
21124
|
+
var findEthMatch = function findEthMatch(symbol) {
|
|
21125
|
+
var match = findEthAssetBySymbol(symbol);
|
|
21126
|
+
if (match) return match;
|
|
21127
|
+
var altSymbol = symbol.toLowerCase().endsWith('.e') ? removeSuffix(symbol) : "".concat(symbol, ".e");
|
|
21128
|
+
return findEthAssetBySymbol(altSymbol.toLowerCase());
|
|
21129
|
+
};
|
|
21130
|
+
var findWithXcVariant = function findWithXcVariant(items, value) {
|
|
21131
|
+
var lower = value.toLowerCase();
|
|
21132
|
+
var candidate = lower.startsWith('xc') ? removePrefix(value) : "xc".concat(value);
|
|
21133
|
+
return findBestMatches(items, candidate);
|
|
21134
|
+
};
|
|
21135
|
+
var pickOtherOrThrow = function pickOtherOrThrow(input, otherMatches) {
|
|
21136
|
+
if (otherMatches.length > 1) {
|
|
21137
|
+
throwDuplicateAssetError(input, [], otherMatches);
|
|
21138
|
+
}
|
|
21139
|
+
return otherMatches[0];
|
|
21140
|
+
};
|
|
21141
|
+
var pickAny = function pickAny(_native, other) {
|
|
21142
|
+
var _other$;
|
|
21143
|
+
return (_other$ = other[0]) !== null && _other$ !== void 0 ? _other$ : _native[0];
|
|
21144
|
+
};
|
|
21145
|
+
var throwIfDuplicate = function throwIfDuplicate(input, nativeMatches, otherMatches) {
|
|
21146
|
+
if (nativeMatches.length + otherMatches.length > 1) {
|
|
21147
|
+
throwDuplicateAssetError(input, nativeMatches, otherMatches);
|
|
21148
|
+
}
|
|
21149
|
+
};
|
|
20658
21150
|
var findAssetInfoBySymbol = function findAssetInfoBySymbol(destination, otherAssets, nativeAssets, symbol) {
|
|
20659
21151
|
var isSpecifier = isSymbolSpecifier(symbol);
|
|
20660
21152
|
var assetsMatches = [];
|
|
@@ -20667,78 +21159,30 @@ var findAssetInfoBySymbol = function findAssetInfoBySymbol(destination, otherAss
|
|
|
20667
21159
|
var lowerSymbol = value.toLowerCase();
|
|
20668
21160
|
var otherAssetsMatches = [];
|
|
20669
21161
|
if (destination === 'Ethereum') {
|
|
20670
|
-
|
|
20671
|
-
var _assetsMatches = findBestMatches(ethereumAssets, value);
|
|
20672
|
-
if (_assetsMatches.length === 0) {
|
|
20673
|
-
if (lowerSymbol.endsWith('.e')) {
|
|
20674
|
-
// Symbol ends with '.e', strip it and search again
|
|
20675
|
-
var strippedSymbol = value.slice(0, -2).toLowerCase();
|
|
20676
|
-
_assetsMatches = findBestMatches(ethereumAssets, strippedSymbol);
|
|
20677
|
-
} else {
|
|
20678
|
-
// Symbol does not end with '.e', add '.e' suffix and search
|
|
20679
|
-
var suffixedSymbol = "".concat(value, ".e").toLowerCase();
|
|
20680
|
-
_assetsMatches = findBestMatches(ethereumAssets, suffixedSymbol);
|
|
20681
|
-
}
|
|
20682
|
-
}
|
|
20683
|
-
return _assetsMatches[0];
|
|
21162
|
+
return findEthMatch(value);
|
|
20684
21163
|
}
|
|
20685
21164
|
if (lowerSymbol.endsWith('.e')) {
|
|
20686
21165
|
// Symbol ends with '.e', indicating a Snowbridge asset
|
|
20687
|
-
var
|
|
21166
|
+
var strippedSymbol = removeSuffix(value);
|
|
20688
21167
|
// If not found, search normal assets with '.e' suffix
|
|
20689
21168
|
otherAssetsMatches = findBestMatches(otherAssets, value);
|
|
20690
|
-
|
|
20691
|
-
|
|
20692
|
-
|
|
20693
|
-
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
var _strippedSymbol2 = value.substring(2);
|
|
20698
|
-
otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol2);
|
|
20699
|
-
} else {
|
|
20700
|
-
// Try adding 'xc' prefix
|
|
20701
|
-
var prefixedSymbol = "xc".concat(value);
|
|
20702
|
-
otherAssetsMatches = findBestMatches(otherAssets, prefixedSymbol);
|
|
20703
|
-
}
|
|
20704
|
-
if (otherAssetsMatches.length > 1) {
|
|
20705
|
-
throwDuplicateAssetError(value, [], otherAssetsMatches);
|
|
20706
|
-
} else if (otherAssetsMatches.length > 0) {
|
|
20707
|
-
return otherAssetsMatches[0];
|
|
20708
|
-
}
|
|
20709
|
-
// Search in Ethereum assets without the '.e' suffix
|
|
20710
|
-
var _ethereumAssets = getOtherAssets('Ethereum');
|
|
20711
|
-
var ethereumMatches = findBestMatches(_ethereumAssets, _strippedSymbol);
|
|
20712
|
-
if (ethereumMatches.length > 0) {
|
|
20713
|
-
return ethereumMatches[0];
|
|
20714
|
-
}
|
|
21169
|
+
var foundAsset = pickOtherOrThrow(value, otherAssetsMatches);
|
|
21170
|
+
if (foundAsset) return foundAsset;
|
|
21171
|
+
otherAssetsMatches = findWithXcVariant(otherAssets, value);
|
|
21172
|
+
foundAsset = pickOtherOrThrow(value, otherAssetsMatches);
|
|
21173
|
+
if (foundAsset) return foundAsset;
|
|
21174
|
+
var ethAsset = findEthAssetBySymbol(strippedSymbol);
|
|
21175
|
+
if (ethAsset) return ethAsset;
|
|
20715
21176
|
// If still not found, search normal assets without suffix
|
|
20716
|
-
otherAssetsMatches = findBestMatches(otherAssets,
|
|
20717
|
-
|
|
20718
|
-
throwDuplicateAssetError(value, [], otherAssetsMatches);
|
|
20719
|
-
} else if (otherAssetsMatches.length > 0) {
|
|
20720
|
-
return otherAssetsMatches[0];
|
|
20721
|
-
}
|
|
20722
|
-
// No matches found
|
|
20723
|
-
return undefined;
|
|
21177
|
+
otherAssetsMatches = findBestMatches(otherAssets, strippedSymbol);
|
|
21178
|
+
return pickOtherOrThrow(value, otherAssetsMatches);
|
|
20724
21179
|
} else {
|
|
20725
21180
|
// Symbol does not end with '.e', proceed with existing logic
|
|
20726
21181
|
otherAssetsMatches = findBestMatches(otherAssets, value);
|
|
20727
21182
|
if (otherAssetsMatches.length === 0) {
|
|
20728
|
-
|
|
20729
|
-
// Symbol starts with 'xc', try stripping 'xc' prefix
|
|
20730
|
-
var _strippedSymbol3 = value.substring(2);
|
|
20731
|
-
otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol3);
|
|
20732
|
-
} else {
|
|
20733
|
-
// Try adding 'xc' prefix
|
|
20734
|
-
var _prefixedSymbol = "xc".concat(value);
|
|
20735
|
-
otherAssetsMatches = findBestMatches(otherAssets, _prefixedSymbol);
|
|
20736
|
-
}
|
|
20737
|
-
}
|
|
20738
|
-
if (otherAssetsMatches.length > 1) {
|
|
20739
|
-
throwDuplicateAssetError(value, [], otherAssetsMatches);
|
|
21183
|
+
otherAssetsMatches = findWithXcVariant(otherAssets, value);
|
|
20740
21184
|
}
|
|
20741
|
-
return otherAssetsMatches
|
|
21185
|
+
return pickOtherOrThrow(value, otherAssetsMatches);
|
|
20742
21186
|
}
|
|
20743
21187
|
} else if (type === 'ForeignAbstract') {
|
|
20744
21188
|
assetsMatches = findBestMatches(otherAssets, value, 'alias');
|
|
@@ -20751,91 +21195,41 @@ var findAssetInfoBySymbol = function findAssetInfoBySymbol(destination, otherAss
|
|
|
20751
21195
|
var _otherAssetsMatches = [];
|
|
20752
21196
|
var nativeAssetsMatches = [];
|
|
20753
21197
|
if (destination === 'Ethereum') {
|
|
20754
|
-
|
|
20755
|
-
var _assetsMatches2 = findBestMatches(_ethereumAssets2, symbol);
|
|
20756
|
-
if (_assetsMatches2.length === 0) {
|
|
20757
|
-
if (_lowerSymbol.endsWith('.e')) {
|
|
20758
|
-
// Symbol ends with '.e', strip it and search again
|
|
20759
|
-
var _strippedSymbol4 = symbol.slice(0, -2).toLowerCase();
|
|
20760
|
-
_assetsMatches2 = findBestMatches(_ethereumAssets2, _strippedSymbol4);
|
|
20761
|
-
} else {
|
|
20762
|
-
// Symbol does not end with '.e', add '.e' suffix and search
|
|
20763
|
-
var _suffixedSymbol = "".concat(symbol, ".e").toLowerCase();
|
|
20764
|
-
_assetsMatches2 = findBestMatches(_ethereumAssets2, _suffixedSymbol);
|
|
20765
|
-
}
|
|
20766
|
-
}
|
|
20767
|
-
return _assetsMatches2[0];
|
|
21198
|
+
return findEthMatch(symbol);
|
|
20768
21199
|
}
|
|
20769
21200
|
if (_lowerSymbol.endsWith('.e')) {
|
|
20770
21201
|
// Symbol ends with '.e', indicating a Snowbridge asset
|
|
20771
|
-
var
|
|
21202
|
+
var _strippedSymbol = removeSuffix(symbol);
|
|
20772
21203
|
// If not found, search normal assets with '.e' suffix
|
|
20773
21204
|
_otherAssetsMatches = findBestMatches(otherAssets, symbol);
|
|
20774
21205
|
nativeAssetsMatches = findBestMatches(nativeAssets, symbol);
|
|
20775
21206
|
if (nativeAssetsMatches.length > 0 || _otherAssetsMatches.length > 0) {
|
|
20776
|
-
return _otherAssetsMatches
|
|
20777
|
-
}
|
|
20778
|
-
if (_lowerSymbol.startsWith('xc')) {
|
|
20779
|
-
// Symbol starts with 'xc', try stripping 'xc' prefix
|
|
20780
|
-
var _strippedSymbol6 = symbol.substring(2);
|
|
20781
|
-
_otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol6);
|
|
20782
|
-
} else {
|
|
20783
|
-
// Try adding 'xc' prefix
|
|
20784
|
-
var _prefixedSymbol2 = "xc".concat(symbol);
|
|
20785
|
-
_otherAssetsMatches = findBestMatches(otherAssets, _prefixedSymbol2);
|
|
20786
|
-
}
|
|
20787
|
-
if (_otherAssetsMatches.length > 1) {
|
|
20788
|
-
throwDuplicateAssetError(symbol, [], _otherAssetsMatches);
|
|
20789
|
-
} else if (_otherAssetsMatches.length > 0) {
|
|
20790
|
-
return _otherAssetsMatches[0];
|
|
21207
|
+
return pickAny(nativeAssetsMatches, _otherAssetsMatches);
|
|
20791
21208
|
}
|
|
21209
|
+
_otherAssetsMatches = findWithXcVariant(otherAssets, symbol);
|
|
21210
|
+
var _foundAsset = pickOtherOrThrow(symbol, _otherAssetsMatches);
|
|
21211
|
+
if (_foundAsset) return _foundAsset;
|
|
20792
21212
|
// Search in Ethereum assets without the '.e' suffix
|
|
20793
|
-
var
|
|
20794
|
-
|
|
20795
|
-
if (_ethereumMatches.length > 0) {
|
|
20796
|
-
return _ethereumMatches[0];
|
|
20797
|
-
}
|
|
21213
|
+
var _ethAsset = findEthAssetBySymbol(_strippedSymbol);
|
|
21214
|
+
if (_ethAsset) return _ethAsset;
|
|
20798
21215
|
// If still not found, search normal assets without suffix
|
|
20799
|
-
_otherAssetsMatches = findBestMatches(otherAssets,
|
|
20800
|
-
nativeAssetsMatches = findBestMatches(nativeAssets,
|
|
20801
|
-
|
|
20802
|
-
return _otherAssetsMatches[0] || nativeAssetsMatches[0];
|
|
20803
|
-
}
|
|
20804
|
-
// No matches found
|
|
20805
|
-
return undefined;
|
|
21216
|
+
_otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol);
|
|
21217
|
+
nativeAssetsMatches = findBestMatches(nativeAssets, _strippedSymbol);
|
|
21218
|
+
return pickAny(nativeAssetsMatches, _otherAssetsMatches);
|
|
20806
21219
|
} else {
|
|
20807
21220
|
// Symbol does not end with '.e'
|
|
20808
21221
|
_otherAssetsMatches = findBestMatches(otherAssets, symbol);
|
|
20809
21222
|
nativeAssetsMatches = findBestMatches(nativeAssets, symbol);
|
|
20810
21223
|
if (_otherAssetsMatches.length === 0 && nativeAssetsMatches.length === 0) {
|
|
20811
|
-
|
|
20812
|
-
|
|
20813
|
-
|
|
20814
|
-
_otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol7);
|
|
20815
|
-
nativeAssetsMatches = findBestMatches(nativeAssets, _strippedSymbol7);
|
|
20816
|
-
var _totalMatches = _otherAssetsMatches.length + nativeAssetsMatches.length;
|
|
20817
|
-
if (_totalMatches > 1) {
|
|
20818
|
-
throwDuplicateAssetError(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
20819
|
-
}
|
|
20820
|
-
} else {
|
|
20821
|
-
// Try adding 'xc' prefix
|
|
20822
|
-
var _prefixedSymbol3 = "xc".concat(symbol);
|
|
20823
|
-
_otherAssetsMatches = findBestMatches(otherAssets, _prefixedSymbol3);
|
|
20824
|
-
nativeAssetsMatches = findBestMatches(nativeAssets, _prefixedSymbol3);
|
|
20825
|
-
var _totalMatches2 = _otherAssetsMatches.length + nativeAssetsMatches.length;
|
|
20826
|
-
if (_totalMatches2 > 1) {
|
|
20827
|
-
throwDuplicateAssetError(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
20828
|
-
}
|
|
20829
|
-
}
|
|
20830
|
-
}
|
|
20831
|
-
var totalMatches = _otherAssetsMatches.length + nativeAssetsMatches.length;
|
|
20832
|
-
if (totalMatches > 1) {
|
|
20833
|
-
throwDuplicateAssetError(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
21224
|
+
_otherAssetsMatches = findWithXcVariant(otherAssets, symbol);
|
|
21225
|
+
nativeAssetsMatches = findWithXcVariant(nativeAssets, symbol);
|
|
21226
|
+
throwIfDuplicate(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
20834
21227
|
}
|
|
20835
|
-
|
|
21228
|
+
throwIfDuplicate(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
21229
|
+
return pickAny(nativeAssetsMatches, _otherAssetsMatches);
|
|
20836
21230
|
}
|
|
20837
21231
|
}
|
|
20838
|
-
return assetsMatches[0]
|
|
21232
|
+
return assetsMatches[0];
|
|
20839
21233
|
};
|
|
20840
21234
|
|
|
20841
21235
|
var findAssetInfo = function findAssetInfo(chain, currency, destination) {
|
|
@@ -20887,9 +21281,9 @@ var findAssetInfoOrThrow = function findAssetInfoOrThrow(chain, currency, destin
|
|
|
20887
21281
|
};
|
|
20888
21282
|
|
|
20889
21283
|
var findAssetInfoOnDest = function findAssetInfoOnDest(origin, destination, currency, originAsset) {
|
|
20890
|
-
var
|
|
21284
|
+
var isBridge = isSubstrateBridge(origin, destination);
|
|
20891
21285
|
var resolvedOriginAsset = originAsset !== null && originAsset !== void 0 ? originAsset : findAssetInfoOrThrow(origin, currency, destination);
|
|
20892
|
-
var assetByLocation = !
|
|
21286
|
+
var assetByLocation = !isBridge && resolvedOriginAsset.location ? findAssetInfo(destination, {
|
|
20893
21287
|
location: resolvedOriginAsset.location
|
|
20894
21288
|
}, null) : null;
|
|
20895
21289
|
return assetByLocation !== null && assetByLocation !== void 0 ? assetByLocation : findAssetInfo(destination, {
|
|
@@ -21231,9 +21625,9 @@ var getSupportedDestinations = function getSupportedDestinations(origin, currenc
|
|
|
21231
21625
|
};
|
|
21232
21626
|
|
|
21233
21627
|
var isAssetEqual = function isAssetEqual(asset1, asset2) {
|
|
21234
|
-
var
|
|
21235
|
-
var
|
|
21236
|
-
if (
|
|
21628
|
+
var loc1 = asset1.location;
|
|
21629
|
+
var loc2 = asset2.location;
|
|
21630
|
+
if (loc1 && loc2) return deepEqual(loc1, loc2);
|
|
21237
21631
|
if (isForeignAsset(asset1) && isForeignAsset(asset2) && asset1.assetId === asset2.assetId) return true;
|
|
21238
21632
|
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21239
21633
|
};
|