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