@paraspell/assets 11.12.1 → 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 +752 -479
- package/dist/index.d.ts +2 -5
- package/dist/index.mjs +753 -480
- 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);
|
|
@@ -1960,29 +1960,6 @@ var BifrostPolkadot = {
|
|
|
1960
1960
|
},
|
|
1961
1961
|
isNative: true,
|
|
1962
1962
|
isFeeAsset: true
|
|
1963
|
-
},
|
|
1964
|
-
{
|
|
1965
|
-
symbol: "vBNC",
|
|
1966
|
-
decimals: 12,
|
|
1967
|
-
existentialDeposit: "10000000000",
|
|
1968
|
-
location: {
|
|
1969
|
-
parents: 1,
|
|
1970
|
-
interior: {
|
|
1971
|
-
X2: [
|
|
1972
|
-
{
|
|
1973
|
-
Parachain: 2030
|
|
1974
|
-
},
|
|
1975
|
-
{
|
|
1976
|
-
GeneralKey: {
|
|
1977
|
-
length: 2,
|
|
1978
|
-
data: "0x0101000000000000000000000000000000000000000000000000000000000000"
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
]
|
|
1982
|
-
}
|
|
1983
|
-
},
|
|
1984
|
-
isNative: true,
|
|
1985
|
-
isFeeAsset: true
|
|
1986
1963
|
}
|
|
1987
1964
|
],
|
|
1988
1965
|
otherAssets: [
|
|
@@ -2211,6 +2188,28 @@ var BifrostPolkadot = {
|
|
|
2211
2188
|
},
|
|
2212
2189
|
isFeeAsset: true
|
|
2213
2190
|
},
|
|
2191
|
+
{
|
|
2192
|
+
symbol: "vBNC",
|
|
2193
|
+
decimals: 12,
|
|
2194
|
+
existentialDeposit: "10000000000",
|
|
2195
|
+
location: {
|
|
2196
|
+
parents: 1,
|
|
2197
|
+
interior: {
|
|
2198
|
+
X2: [
|
|
2199
|
+
{
|
|
2200
|
+
Parachain: 2030
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
GeneralKey: {
|
|
2204
|
+
length: 2,
|
|
2205
|
+
data: "0x0101000000000000000000000000000000000000000000000000000000000000"
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
]
|
|
2209
|
+
}
|
|
2210
|
+
},
|
|
2211
|
+
isFeeAsset: true
|
|
2212
|
+
},
|
|
2214
2213
|
{
|
|
2215
2214
|
assetId: "14",
|
|
2216
2215
|
symbol: "WAVE",
|
|
@@ -4260,10 +4259,13 @@ var Hydration = {
|
|
|
4260
4259
|
location: {
|
|
4261
4260
|
parents: 1,
|
|
4262
4261
|
interior: {
|
|
4263
|
-
|
|
4262
|
+
X3: [
|
|
4264
4263
|
{
|
|
4265
4264
|
Parachain: 2004
|
|
4266
4265
|
},
|
|
4266
|
+
{
|
|
4267
|
+
PalletInstance: 110
|
|
4268
|
+
},
|
|
4267
4269
|
{
|
|
4268
4270
|
AccountKey20: {
|
|
4269
4271
|
network: null,
|
|
@@ -7654,28 +7656,6 @@ var AssetHubPolkadot = {
|
|
|
7654
7656
|
existentialDeposit: "10000000000",
|
|
7655
7657
|
alias: "TST2"
|
|
7656
7658
|
},
|
|
7657
|
-
{
|
|
7658
|
-
assetId: "669",
|
|
7659
|
-
symbol: "lish",
|
|
7660
|
-
decimals: 9,
|
|
7661
|
-
location: {
|
|
7662
|
-
parents: 1,
|
|
7663
|
-
interior: {
|
|
7664
|
-
X3: [
|
|
7665
|
-
{
|
|
7666
|
-
Parachain: 1000
|
|
7667
|
-
},
|
|
7668
|
-
{
|
|
7669
|
-
PalletInstance: 50
|
|
7670
|
-
},
|
|
7671
|
-
{
|
|
7672
|
-
GeneralIndex: 669
|
|
7673
|
-
}
|
|
7674
|
-
]
|
|
7675
|
-
}
|
|
7676
|
-
},
|
|
7677
|
-
existentialDeposit: "1000000000"
|
|
7678
|
-
},
|
|
7679
7659
|
{
|
|
7680
7660
|
assetId: "22222078",
|
|
7681
7661
|
symbol: "JAMTON",
|
|
@@ -7834,29 +7814,6 @@ var AssetHubPolkadot = {
|
|
|
7834
7814
|
existentialDeposit: "1000000000000",
|
|
7835
7815
|
alias: "KSM1"
|
|
7836
7816
|
},
|
|
7837
|
-
{
|
|
7838
|
-
assetId: "1010",
|
|
7839
|
-
symbol: "ETH",
|
|
7840
|
-
decimals: 10,
|
|
7841
|
-
location: {
|
|
7842
|
-
parents: 1,
|
|
7843
|
-
interior: {
|
|
7844
|
-
X3: [
|
|
7845
|
-
{
|
|
7846
|
-
Parachain: 1000
|
|
7847
|
-
},
|
|
7848
|
-
{
|
|
7849
|
-
PalletInstance: 50
|
|
7850
|
-
},
|
|
7851
|
-
{
|
|
7852
|
-
GeneralIndex: 1010
|
|
7853
|
-
}
|
|
7854
|
-
]
|
|
7855
|
-
}
|
|
7856
|
-
},
|
|
7857
|
-
existentialDeposit: "100000000000000000",
|
|
7858
|
-
alias: "ETH1"
|
|
7859
|
-
},
|
|
7860
7817
|
{
|
|
7861
7818
|
assetId: "201",
|
|
7862
7819
|
symbol: "WUD",
|
|
@@ -8126,7 +8083,7 @@ var AssetHubPolkadot = {
|
|
|
8126
8083
|
}
|
|
8127
8084
|
},
|
|
8128
8085
|
existentialDeposit: "1",
|
|
8129
|
-
alias: "
|
|
8086
|
+
alias: "ETH1"
|
|
8130
8087
|
},
|
|
8131
8088
|
{
|
|
8132
8089
|
assetId: "50000276",
|
|
@@ -8171,7 +8128,7 @@ var AssetHubPolkadot = {
|
|
|
8171
8128
|
}
|
|
8172
8129
|
},
|
|
8173
8130
|
existentialDeposit: "1",
|
|
8174
|
-
alias: "
|
|
8131
|
+
alias: "ETH2"
|
|
8175
8132
|
},
|
|
8176
8133
|
{
|
|
8177
8134
|
assetId: "862812",
|
|
@@ -8950,7 +8907,7 @@ var AssetHubPolkadot = {
|
|
|
8950
8907
|
},
|
|
8951
8908
|
existentialDeposit: "15000000000000",
|
|
8952
8909
|
isFeeAsset: true,
|
|
8953
|
-
alias: "
|
|
8910
|
+
alias: "ETH3"
|
|
8954
8911
|
},
|
|
8955
8912
|
{
|
|
8956
8913
|
symbol: "KILT",
|
|
@@ -9622,7 +9579,6 @@ var BifrostKusama = {
|
|
|
9622
9579
|
symbol: "BNC",
|
|
9623
9580
|
decimals: 12,
|
|
9624
9581
|
existentialDeposit: "10000000000",
|
|
9625
|
-
isNative: true,
|
|
9626
9582
|
location: {
|
|
9627
9583
|
parents: 1,
|
|
9628
9584
|
interior: {
|
|
@@ -9638,13 +9594,16 @@ var BifrostKusama = {
|
|
|
9638
9594
|
}
|
|
9639
9595
|
]
|
|
9640
9596
|
}
|
|
9641
|
-
}
|
|
9642
|
-
|
|
9597
|
+
},
|
|
9598
|
+
isNative: true,
|
|
9599
|
+
isFeeAsset: true
|
|
9600
|
+
}
|
|
9601
|
+
],
|
|
9602
|
+
otherAssets: [
|
|
9643
9603
|
{
|
|
9644
9604
|
symbol: "KSM",
|
|
9645
9605
|
decimals: 12,
|
|
9646
9606
|
existentialDeposit: "100000000",
|
|
9647
|
-
isNative: true,
|
|
9648
9607
|
location: {
|
|
9649
9608
|
parents: 1,
|
|
9650
9609
|
interior: {
|
|
@@ -9653,11 +9612,33 @@ var BifrostKusama = {
|
|
|
9653
9612
|
},
|
|
9654
9613
|
isFeeAsset: true
|
|
9655
9614
|
},
|
|
9615
|
+
{
|
|
9616
|
+
assetId: "2",
|
|
9617
|
+
symbol: "KBTC",
|
|
9618
|
+
decimals: 8,
|
|
9619
|
+
existentialDeposit: "100",
|
|
9620
|
+
location: {
|
|
9621
|
+
parents: 1,
|
|
9622
|
+
interior: {
|
|
9623
|
+
X2: [
|
|
9624
|
+
{
|
|
9625
|
+
Parachain: 2092
|
|
9626
|
+
},
|
|
9627
|
+
{
|
|
9628
|
+
GeneralKey: {
|
|
9629
|
+
length: 2,
|
|
9630
|
+
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
9631
|
+
}
|
|
9632
|
+
}
|
|
9633
|
+
]
|
|
9634
|
+
}
|
|
9635
|
+
},
|
|
9636
|
+
isFeeAsset: true
|
|
9637
|
+
},
|
|
9656
9638
|
{
|
|
9657
9639
|
symbol: "RMRK",
|
|
9658
9640
|
decimals: 10,
|
|
9659
9641
|
existentialDeposit: "10000",
|
|
9660
|
-
isNative: true,
|
|
9661
9642
|
location: {
|
|
9662
9643
|
parents: 1,
|
|
9663
9644
|
interior: {
|
|
@@ -9676,11 +9657,56 @@ var BifrostKusama = {
|
|
|
9676
9657
|
},
|
|
9677
9658
|
isFeeAsset: true
|
|
9678
9659
|
},
|
|
9660
|
+
{
|
|
9661
|
+
assetId: "0",
|
|
9662
|
+
symbol: "USDT",
|
|
9663
|
+
decimals: 6,
|
|
9664
|
+
existentialDeposit: "1000",
|
|
9665
|
+
location: {
|
|
9666
|
+
parents: 1,
|
|
9667
|
+
interior: {
|
|
9668
|
+
X3: [
|
|
9669
|
+
{
|
|
9670
|
+
Parachain: 1000
|
|
9671
|
+
},
|
|
9672
|
+
{
|
|
9673
|
+
PalletInstance: 50
|
|
9674
|
+
},
|
|
9675
|
+
{
|
|
9676
|
+
GeneralIndex: 1984
|
|
9677
|
+
}
|
|
9678
|
+
]
|
|
9679
|
+
}
|
|
9680
|
+
},
|
|
9681
|
+
isFeeAsset: true
|
|
9682
|
+
},
|
|
9683
|
+
{
|
|
9684
|
+
assetId: "1",
|
|
9685
|
+
symbol: "KINT",
|
|
9686
|
+
decimals: 12,
|
|
9687
|
+
existentialDeposit: "10000000000",
|
|
9688
|
+
location: {
|
|
9689
|
+
parents: 1,
|
|
9690
|
+
interior: {
|
|
9691
|
+
X2: [
|
|
9692
|
+
{
|
|
9693
|
+
Parachain: 2092
|
|
9694
|
+
},
|
|
9695
|
+
{
|
|
9696
|
+
GeneralKey: {
|
|
9697
|
+
length: 2,
|
|
9698
|
+
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
9699
|
+
}
|
|
9700
|
+
}
|
|
9701
|
+
]
|
|
9702
|
+
}
|
|
9703
|
+
},
|
|
9704
|
+
isFeeAsset: true
|
|
9705
|
+
},
|
|
9679
9706
|
{
|
|
9680
9707
|
symbol: "vBNC",
|
|
9681
9708
|
decimals: 12,
|
|
9682
9709
|
existentialDeposit: "10000000000",
|
|
9683
|
-
isNative: true,
|
|
9684
9710
|
location: {
|
|
9685
9711
|
parents: 1,
|
|
9686
9712
|
interior: {
|
|
@@ -9696,13 +9722,13 @@ var BifrostKusama = {
|
|
|
9696
9722
|
}
|
|
9697
9723
|
]
|
|
9698
9724
|
}
|
|
9699
|
-
}
|
|
9725
|
+
},
|
|
9726
|
+
isFeeAsset: true
|
|
9700
9727
|
},
|
|
9701
9728
|
{
|
|
9702
9729
|
symbol: "vMOVR",
|
|
9703
9730
|
decimals: 18,
|
|
9704
9731
|
existentialDeposit: "1000000000000",
|
|
9705
|
-
isNative: true,
|
|
9706
9732
|
location: {
|
|
9707
9733
|
parents: 1,
|
|
9708
9734
|
interior: {
|
|
@@ -9718,13 +9744,13 @@ var BifrostKusama = {
|
|
|
9718
9744
|
}
|
|
9719
9745
|
]
|
|
9720
9746
|
}
|
|
9721
|
-
}
|
|
9747
|
+
},
|
|
9748
|
+
isFeeAsset: true
|
|
9722
9749
|
},
|
|
9723
9750
|
{
|
|
9724
9751
|
symbol: "vKSM",
|
|
9725
9752
|
decimals: 12,
|
|
9726
9753
|
existentialDeposit: "100000000",
|
|
9727
|
-
isNative: true,
|
|
9728
9754
|
location: {
|
|
9729
9755
|
parents: 1,
|
|
9730
9756
|
interior: {
|
|
@@ -9740,13 +9766,36 @@ var BifrostKusama = {
|
|
|
9740
9766
|
}
|
|
9741
9767
|
]
|
|
9742
9768
|
}
|
|
9743
|
-
}
|
|
9769
|
+
},
|
|
9770
|
+
isFeeAsset: true
|
|
9771
|
+
},
|
|
9772
|
+
{
|
|
9773
|
+
assetId: "4",
|
|
9774
|
+
symbol: "MGX",
|
|
9775
|
+
decimals: 18,
|
|
9776
|
+
existentialDeposit: "10000000000000",
|
|
9777
|
+
location: {
|
|
9778
|
+
parents: 1,
|
|
9779
|
+
interior: {
|
|
9780
|
+
X2: [
|
|
9781
|
+
{
|
|
9782
|
+
Parachain: 2110
|
|
9783
|
+
},
|
|
9784
|
+
{
|
|
9785
|
+
GeneralKey: {
|
|
9786
|
+
length: 4,
|
|
9787
|
+
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
9788
|
+
}
|
|
9789
|
+
}
|
|
9790
|
+
]
|
|
9791
|
+
}
|
|
9792
|
+
},
|
|
9793
|
+
isFeeAsset: true
|
|
9744
9794
|
},
|
|
9745
9795
|
{
|
|
9746
9796
|
symbol: "MOVR",
|
|
9747
9797
|
decimals: 18,
|
|
9748
9798
|
existentialDeposit: "1000000000000",
|
|
9749
|
-
isNative: true,
|
|
9750
9799
|
location: {
|
|
9751
9800
|
parents: 1,
|
|
9752
9801
|
interior: {
|
|
@@ -9766,7 +9815,6 @@ var BifrostKusama = {
|
|
|
9766
9815
|
symbol: "ZLK",
|
|
9767
9816
|
decimals: 18,
|
|
9768
9817
|
existentialDeposit: "1000000000000",
|
|
9769
|
-
isNative: true,
|
|
9770
9818
|
location: {
|
|
9771
9819
|
parents: 1,
|
|
9772
9820
|
interior: {
|
|
@@ -9789,7 +9837,6 @@ var BifrostKusama = {
|
|
|
9789
9837
|
symbol: "PHA",
|
|
9790
9838
|
decimals: 12,
|
|
9791
9839
|
existentialDeposit: "40000000000",
|
|
9792
|
-
isNative: true,
|
|
9793
9840
|
location: {
|
|
9794
9841
|
parents: 1,
|
|
9795
9842
|
interior: {
|
|
@@ -9806,7 +9853,6 @@ var BifrostKusama = {
|
|
|
9806
9853
|
symbol: "KAR",
|
|
9807
9854
|
decimals: 12,
|
|
9808
9855
|
existentialDeposit: "100000000",
|
|
9809
|
-
isNative: true,
|
|
9810
9856
|
location: {
|
|
9811
9857
|
parents: 1,
|
|
9812
9858
|
interior: {
|
|
@@ -9824,128 +9870,34 @@ var BifrostKusama = {
|
|
|
9824
9870
|
}
|
|
9825
9871
|
},
|
|
9826
9872
|
isFeeAsset: true
|
|
9827
|
-
}
|
|
9828
|
-
],
|
|
9829
|
-
otherAssets: [
|
|
9873
|
+
},
|
|
9830
9874
|
{
|
|
9831
|
-
assetId: "
|
|
9832
|
-
symbol: "
|
|
9833
|
-
decimals:
|
|
9875
|
+
assetId: "3",
|
|
9876
|
+
symbol: "SDN",
|
|
9877
|
+
decimals: 18,
|
|
9878
|
+
existentialDeposit: "10000000000000000",
|
|
9834
9879
|
location: {
|
|
9835
9880
|
parents: 1,
|
|
9836
9881
|
interior: {
|
|
9837
|
-
|
|
9838
|
-
{
|
|
9839
|
-
Parachain: 1000
|
|
9840
|
-
},
|
|
9841
|
-
{
|
|
9842
|
-
PalletInstance: 50
|
|
9843
|
-
},
|
|
9882
|
+
X1: [
|
|
9844
9883
|
{
|
|
9845
|
-
|
|
9884
|
+
Parachain: 2007
|
|
9846
9885
|
}
|
|
9847
9886
|
]
|
|
9848
9887
|
}
|
|
9849
9888
|
},
|
|
9850
|
-
existentialDeposit: "1000",
|
|
9851
9889
|
isFeeAsset: true
|
|
9852
|
-
}
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
},
|
|
9864
|
-
{
|
|
9865
|
-
GeneralKey: {
|
|
9866
|
-
length: 2,
|
|
9867
|
-
data: "0x000b000000000000000000000000000000000000000000000000000000000000"
|
|
9868
|
-
}
|
|
9869
|
-
}
|
|
9870
|
-
]
|
|
9871
|
-
}
|
|
9872
|
-
},
|
|
9873
|
-
existentialDeposit: "100",
|
|
9874
|
-
isFeeAsset: true
|
|
9875
|
-
},
|
|
9876
|
-
{
|
|
9877
|
-
assetId: "1",
|
|
9878
|
-
symbol: "KINT",
|
|
9879
|
-
decimals: 12,
|
|
9880
|
-
location: {
|
|
9881
|
-
parents: 1,
|
|
9882
|
-
interior: {
|
|
9883
|
-
X2: [
|
|
9884
|
-
{
|
|
9885
|
-
Parachain: 2092
|
|
9886
|
-
},
|
|
9887
|
-
{
|
|
9888
|
-
GeneralKey: {
|
|
9889
|
-
length: 2,
|
|
9890
|
-
data: "0x000c000000000000000000000000000000000000000000000000000000000000"
|
|
9891
|
-
}
|
|
9892
|
-
}
|
|
9893
|
-
]
|
|
9894
|
-
}
|
|
9895
|
-
},
|
|
9896
|
-
existentialDeposit: "10000000000",
|
|
9897
|
-
isFeeAsset: true
|
|
9898
|
-
},
|
|
9899
|
-
{
|
|
9900
|
-
assetId: "4",
|
|
9901
|
-
symbol: "MGX",
|
|
9902
|
-
decimals: 18,
|
|
9903
|
-
location: {
|
|
9904
|
-
parents: 1,
|
|
9905
|
-
interior: {
|
|
9906
|
-
X2: [
|
|
9907
|
-
{
|
|
9908
|
-
Parachain: 2110
|
|
9909
|
-
},
|
|
9910
|
-
{
|
|
9911
|
-
GeneralKey: {
|
|
9912
|
-
length: 4,
|
|
9913
|
-
data: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
9914
|
-
}
|
|
9915
|
-
}
|
|
9916
|
-
]
|
|
9917
|
-
}
|
|
9918
|
-
},
|
|
9919
|
-
existentialDeposit: "10000000000000",
|
|
9920
|
-
isFeeAsset: true
|
|
9921
|
-
},
|
|
9922
|
-
{
|
|
9923
|
-
assetId: "3",
|
|
9924
|
-
symbol: "SDN",
|
|
9925
|
-
decimals: 18,
|
|
9926
|
-
location: {
|
|
9927
|
-
parents: 1,
|
|
9928
|
-
interior: {
|
|
9929
|
-
X1: [
|
|
9930
|
-
{
|
|
9931
|
-
Parachain: 2007
|
|
9932
|
-
}
|
|
9933
|
-
]
|
|
9934
|
-
}
|
|
9935
|
-
},
|
|
9936
|
-
existentialDeposit: "10000000000000000",
|
|
9937
|
-
isFeeAsset: true
|
|
9938
|
-
}
|
|
9939
|
-
]
|
|
9940
|
-
};
|
|
9941
|
-
var Crab = {
|
|
9942
|
-
relaychainSymbol: "KSM",
|
|
9943
|
-
nativeAssetSymbol: "CRAB",
|
|
9944
|
-
isEVM: true,
|
|
9945
|
-
ss58Prefix: 42,
|
|
9946
|
-
supportsDryRunApi: true,
|
|
9947
|
-
supportsXcmPaymentApi: true,
|
|
9948
|
-
nativeAssets: [
|
|
9890
|
+
}
|
|
9891
|
+
]
|
|
9892
|
+
};
|
|
9893
|
+
var Crab = {
|
|
9894
|
+
relaychainSymbol: "KSM",
|
|
9895
|
+
nativeAssetSymbol: "CRAB",
|
|
9896
|
+
isEVM: true,
|
|
9897
|
+
ss58Prefix: 42,
|
|
9898
|
+
supportsDryRunApi: true,
|
|
9899
|
+
supportsXcmPaymentApi: true,
|
|
9900
|
+
nativeAssets: [
|
|
9949
9901
|
{
|
|
9950
9902
|
symbol: "CRAB",
|
|
9951
9903
|
isNative: true,
|
|
@@ -11922,8 +11874,8 @@ var Quartz = {
|
|
|
11922
11874
|
nativeAssetSymbol: "QTZ",
|
|
11923
11875
|
isEVM: false,
|
|
11924
11876
|
ss58Prefix: 255,
|
|
11925
|
-
supportsDryRunApi:
|
|
11926
|
-
supportsXcmPaymentApi:
|
|
11877
|
+
supportsDryRunApi: true,
|
|
11878
|
+
supportsXcmPaymentApi: true,
|
|
11927
11879
|
nativeAssets: [
|
|
11928
11880
|
{
|
|
11929
11881
|
symbol: "QTZ",
|
|
@@ -12532,29 +12484,6 @@ var Shiden = {
|
|
|
12532
12484
|
existentialDeposit: "1",
|
|
12533
12485
|
isFeeAsset: true
|
|
12534
12486
|
},
|
|
12535
|
-
{
|
|
12536
|
-
assetId: "4294969280",
|
|
12537
|
-
symbol: "USDT",
|
|
12538
|
-
decimals: 6,
|
|
12539
|
-
location: {
|
|
12540
|
-
parents: 1,
|
|
12541
|
-
interior: {
|
|
12542
|
-
X3: [
|
|
12543
|
-
{
|
|
12544
|
-
Parachain: 1000
|
|
12545
|
-
},
|
|
12546
|
-
{
|
|
12547
|
-
PalletInstance: 50
|
|
12548
|
-
},
|
|
12549
|
-
{
|
|
12550
|
-
GeneralIndex: 1984
|
|
12551
|
-
}
|
|
12552
|
-
]
|
|
12553
|
-
}
|
|
12554
|
-
},
|
|
12555
|
-
existentialDeposit: "1",
|
|
12556
|
-
isFeeAsset: true
|
|
12557
|
-
},
|
|
12558
12487
|
{
|
|
12559
12488
|
assetId: "18446744073709551628",
|
|
12560
12489
|
symbol: "vKSM",
|
|
@@ -16808,29 +16737,6 @@ var AssetHubWestend = {
|
|
|
16808
16737
|
},
|
|
16809
16738
|
existentialDeposit: "1000000000000"
|
|
16810
16739
|
},
|
|
16811
|
-
{
|
|
16812
|
-
assetId: "67",
|
|
16813
|
-
symbol: "USDT",
|
|
16814
|
-
decimals: 12,
|
|
16815
|
-
location: {
|
|
16816
|
-
parents: 1,
|
|
16817
|
-
interior: {
|
|
16818
|
-
X3: [
|
|
16819
|
-
{
|
|
16820
|
-
Parachain: 1000
|
|
16821
|
-
},
|
|
16822
|
-
{
|
|
16823
|
-
PalletInstance: 50
|
|
16824
|
-
},
|
|
16825
|
-
{
|
|
16826
|
-
GeneralIndex: 67
|
|
16827
|
-
}
|
|
16828
|
-
]
|
|
16829
|
-
}
|
|
16830
|
-
},
|
|
16831
|
-
existentialDeposit: "100000",
|
|
16832
|
-
alias: "USDT6"
|
|
16833
|
-
},
|
|
16834
16740
|
{
|
|
16835
16741
|
assetId: "20",
|
|
16836
16742
|
symbol: "WETH",
|
|
@@ -17515,7 +17421,7 @@ var AssetHubWestend = {
|
|
|
17515
17421
|
}
|
|
17516
17422
|
},
|
|
17517
17423
|
existentialDeposit: "10",
|
|
17518
|
-
alias: "
|
|
17424
|
+
alias: "USDT6"
|
|
17519
17425
|
},
|
|
17520
17426
|
{
|
|
17521
17427
|
assetId: "50000167",
|
|
@@ -17893,31 +17799,7 @@ var AssetHubPaseo = {
|
|
|
17893
17799
|
]
|
|
17894
17800
|
}
|
|
17895
17801
|
},
|
|
17896
|
-
existentialDeposit: "100"
|
|
17897
|
-
alias: "USDT1"
|
|
17898
|
-
},
|
|
17899
|
-
{
|
|
17900
|
-
assetId: "7777",
|
|
17901
|
-
symbol: "USDT",
|
|
17902
|
-
decimals: 6,
|
|
17903
|
-
location: {
|
|
17904
|
-
parents: 1,
|
|
17905
|
-
interior: {
|
|
17906
|
-
X3: [
|
|
17907
|
-
{
|
|
17908
|
-
Parachain: 1000
|
|
17909
|
-
},
|
|
17910
|
-
{
|
|
17911
|
-
PalletInstance: 50
|
|
17912
|
-
},
|
|
17913
|
-
{
|
|
17914
|
-
GeneralIndex: 7777
|
|
17915
|
-
}
|
|
17916
|
-
]
|
|
17917
|
-
}
|
|
17918
|
-
},
|
|
17919
|
-
existentialDeposit: "1000",
|
|
17920
|
-
alias: "USDT2"
|
|
17802
|
+
existentialDeposit: "100"
|
|
17921
17803
|
},
|
|
17922
17804
|
{
|
|
17923
17805
|
assetId: "27",
|
|
@@ -18242,7 +18124,7 @@ var PAssetHub = {
|
|
|
18242
18124
|
symbol: "PAS",
|
|
18243
18125
|
isNative: true,
|
|
18244
18126
|
decimals: 10,
|
|
18245
|
-
existentialDeposit: "
|
|
18127
|
+
existentialDeposit: "100000000",
|
|
18246
18128
|
location: {
|
|
18247
18129
|
parents: 1,
|
|
18248
18130
|
interior: {
|
|
@@ -18380,22 +18262,20 @@ var BifrostPaseo = {
|
|
|
18380
18262
|
supportsXcmPaymentApi: true,
|
|
18381
18263
|
nativeAssets: [
|
|
18382
18264
|
{
|
|
18383
|
-
symbol: "
|
|
18384
|
-
|
|
18385
|
-
existentialDeposit: "10000000",
|
|
18386
|
-
isNative: true
|
|
18387
|
-
},
|
|
18388
|
-
{
|
|
18389
|
-
symbol: "DOT",
|
|
18390
|
-
decimals: 10,
|
|
18391
|
-
existentialDeposit: "100000000",
|
|
18392
|
-
isNative: true
|
|
18393
|
-
},
|
|
18394
|
-
{
|
|
18395
|
-
symbol: "vBNC",
|
|
18265
|
+
symbol: "BNC",
|
|
18266
|
+
isNative: true,
|
|
18396
18267
|
decimals: 12,
|
|
18397
18268
|
existentialDeposit: "10000000000",
|
|
18398
|
-
|
|
18269
|
+
location: {
|
|
18270
|
+
parents: 1,
|
|
18271
|
+
interior: {
|
|
18272
|
+
X1: [
|
|
18273
|
+
{
|
|
18274
|
+
Parachain: 2030
|
|
18275
|
+
}
|
|
18276
|
+
]
|
|
18277
|
+
}
|
|
18278
|
+
}
|
|
18399
18279
|
}
|
|
18400
18280
|
],
|
|
18401
18281
|
otherAssets: [
|
|
@@ -18666,33 +18546,32 @@ var HydrationPaseo = {
|
|
|
18666
18546
|
isFeeAsset: true
|
|
18667
18547
|
},
|
|
18668
18548
|
{
|
|
18669
|
-
assetId: "
|
|
18670
|
-
symbol: "
|
|
18671
|
-
decimals:
|
|
18672
|
-
existentialDeposit: "
|
|
18549
|
+
assetId: "1113",
|
|
18550
|
+
symbol: "HUSDe",
|
|
18551
|
+
decimals: 18,
|
|
18552
|
+
existentialDeposit: "33000000000000000",
|
|
18673
18553
|
location: {
|
|
18674
18554
|
parents: 1,
|
|
18675
18555
|
interior: {
|
|
18676
|
-
|
|
18677
|
-
{
|
|
18678
|
-
Parachain: 1000
|
|
18679
|
-
},
|
|
18556
|
+
X2: [
|
|
18680
18557
|
{
|
|
18681
|
-
|
|
18558
|
+
Parachain: 2034
|
|
18682
18559
|
},
|
|
18683
18560
|
{
|
|
18684
|
-
|
|
18561
|
+
AccountKey20: {
|
|
18562
|
+
network: null,
|
|
18563
|
+
key: "0x52e1311e26610e6662a1e5b5bd113130b6815213"
|
|
18564
|
+
}
|
|
18685
18565
|
}
|
|
18686
18566
|
]
|
|
18687
18567
|
}
|
|
18688
18568
|
},
|
|
18689
|
-
isFeeAsset: true
|
|
18690
|
-
alias: "USDT1"
|
|
18569
|
+
isFeeAsset: true
|
|
18691
18570
|
},
|
|
18692
18571
|
{
|
|
18693
|
-
assetId: "
|
|
18694
|
-
symbol: "
|
|
18695
|
-
decimals:
|
|
18572
|
+
assetId: "222",
|
|
18573
|
+
symbol: "HOLLAR",
|
|
18574
|
+
decimals: 18,
|
|
18696
18575
|
existentialDeposit: "0",
|
|
18697
18576
|
location: {
|
|
18698
18577
|
parents: 1,
|
|
@@ -18704,7 +18583,7 @@ var HydrationPaseo = {
|
|
|
18704
18583
|
{
|
|
18705
18584
|
AccountKey20: {
|
|
18706
18585
|
network: null,
|
|
18707
|
-
key: "
|
|
18586
|
+
key: "0x531a654d1696ed52e7275a8cede955e82620f99a"
|
|
18708
18587
|
}
|
|
18709
18588
|
}
|
|
18710
18589
|
]
|
|
@@ -18713,32 +18592,37 @@ var HydrationPaseo = {
|
|
|
18713
18592
|
isFeeAsset: true
|
|
18714
18593
|
},
|
|
18715
18594
|
{
|
|
18716
|
-
assetId: "
|
|
18717
|
-
symbol: "
|
|
18595
|
+
assetId: "420",
|
|
18596
|
+
symbol: "GETH",
|
|
18718
18597
|
decimals: 18,
|
|
18719
|
-
existentialDeposit: "
|
|
18598
|
+
existentialDeposit: "8202803876747",
|
|
18720
18599
|
location: {
|
|
18721
18600
|
parents: 1,
|
|
18722
18601
|
interior: {
|
|
18723
18602
|
X2: [
|
|
18724
18603
|
{
|
|
18725
|
-
Parachain:
|
|
18604
|
+
Parachain: 2034
|
|
18726
18605
|
},
|
|
18727
18606
|
{
|
|
18728
|
-
|
|
18729
|
-
|
|
18730
|
-
|
|
18607
|
+
AccountKey20: {
|
|
18608
|
+
network: null,
|
|
18609
|
+
key: "0x8a598fe3e3a471ce865332e330d303502a0e2f52"
|
|
18731
18610
|
}
|
|
18732
18611
|
}
|
|
18733
18612
|
]
|
|
18734
18613
|
}
|
|
18735
18614
|
},
|
|
18736
|
-
isFeeAsset: true
|
|
18737
|
-
alias: "WETH3"
|
|
18615
|
+
isFeeAsset: true
|
|
18738
18616
|
},
|
|
18739
18617
|
{
|
|
18740
|
-
assetId: "
|
|
18741
|
-
symbol: "
|
|
18618
|
+
assetId: "110",
|
|
18619
|
+
symbol: "2-Pool-HUSDC",
|
|
18620
|
+
decimals: 18,
|
|
18621
|
+
existentialDeposit: "1000"
|
|
18622
|
+
},
|
|
18623
|
+
{
|
|
18624
|
+
assetId: "10",
|
|
18625
|
+
symbol: "USDT",
|
|
18742
18626
|
decimals: 6,
|
|
18743
18627
|
existentialDeposit: "10000",
|
|
18744
18628
|
location: {
|
|
@@ -18746,10 +18630,104 @@ var HydrationPaseo = {
|
|
|
18746
18630
|
interior: {
|
|
18747
18631
|
X3: [
|
|
18748
18632
|
{
|
|
18749
|
-
Parachain:
|
|
18633
|
+
Parachain: 1000
|
|
18750
18634
|
},
|
|
18751
18635
|
{
|
|
18752
|
-
PalletInstance:
|
|
18636
|
+
PalletInstance: 50
|
|
18637
|
+
},
|
|
18638
|
+
{
|
|
18639
|
+
GeneralIndex: 1984
|
|
18640
|
+
}
|
|
18641
|
+
]
|
|
18642
|
+
}
|
|
18643
|
+
},
|
|
18644
|
+
isFeeAsset: true,
|
|
18645
|
+
alias: "USDT1"
|
|
18646
|
+
},
|
|
18647
|
+
{
|
|
18648
|
+
assetId: "1001",
|
|
18649
|
+
symbol: "aDOT",
|
|
18650
|
+
decimals: 10,
|
|
18651
|
+
existentialDeposit: "54125333",
|
|
18652
|
+
location: {
|
|
18653
|
+
parents: 1,
|
|
18654
|
+
interior: {
|
|
18655
|
+
X2: [
|
|
18656
|
+
{
|
|
18657
|
+
Parachain: 2034
|
|
18658
|
+
},
|
|
18659
|
+
{
|
|
18660
|
+
AccountKey20: {
|
|
18661
|
+
network: null,
|
|
18662
|
+
key: "0x02639ec01313c8775fae74f2dad1118c8a8a86da"
|
|
18663
|
+
}
|
|
18664
|
+
}
|
|
18665
|
+
]
|
|
18666
|
+
}
|
|
18667
|
+
},
|
|
18668
|
+
isFeeAsset: true
|
|
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
|
+
},
|
|
18693
|
+
{
|
|
18694
|
+
assetId: "4",
|
|
18695
|
+
symbol: "WETH",
|
|
18696
|
+
decimals: 18,
|
|
18697
|
+
existentialDeposit: "5000000000000",
|
|
18698
|
+
location: {
|
|
18699
|
+
parents: 1,
|
|
18700
|
+
interior: {
|
|
18701
|
+
X2: [
|
|
18702
|
+
{
|
|
18703
|
+
Parachain: 2000
|
|
18704
|
+
},
|
|
18705
|
+
{
|
|
18706
|
+
GeneralKey: {
|
|
18707
|
+
length: 21,
|
|
18708
|
+
data: "0x025a4d6acdc4e3e5ab15717f407afe957f7a2425780000000000000000000000"
|
|
18709
|
+
}
|
|
18710
|
+
}
|
|
18711
|
+
]
|
|
18712
|
+
}
|
|
18713
|
+
},
|
|
18714
|
+
isFeeAsset: true,
|
|
18715
|
+
alias: "WETH3"
|
|
18716
|
+
},
|
|
18717
|
+
{
|
|
18718
|
+
assetId: "21",
|
|
18719
|
+
symbol: "USDC",
|
|
18720
|
+
decimals: 6,
|
|
18721
|
+
existentialDeposit: "10000",
|
|
18722
|
+
location: {
|
|
18723
|
+
parents: 1,
|
|
18724
|
+
interior: {
|
|
18725
|
+
X3: [
|
|
18726
|
+
{
|
|
18727
|
+
Parachain: 2004
|
|
18728
|
+
},
|
|
18729
|
+
{
|
|
18730
|
+
PalletInstance: 110
|
|
18753
18731
|
},
|
|
18754
18732
|
{
|
|
18755
18733
|
AccountKey20: {
|
|
@@ -18847,6 +18825,33 @@ var HydrationPaseo = {
|
|
|
18847
18825
|
},
|
|
18848
18826
|
isFeeAsset: true
|
|
18849
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
|
+
},
|
|
18850
18855
|
{
|
|
18851
18856
|
assetId: "101",
|
|
18852
18857
|
symbol: "2-Pool",
|
|
@@ -18854,6 +18859,33 @@ var HydrationPaseo = {
|
|
|
18854
18859
|
existentialDeposit: "1000",
|
|
18855
18860
|
alias: "2-Pool1"
|
|
18856
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
|
+
},
|
|
18857
18889
|
{
|
|
18858
18890
|
assetId: "34",
|
|
18859
18891
|
symbol: "ETH",
|
|
@@ -18918,6 +18950,29 @@ var HydrationPaseo = {
|
|
|
18918
18950
|
},
|
|
18919
18951
|
isFeeAsset: true
|
|
18920
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
|
+
},
|
|
18921
18976
|
{
|
|
18922
18977
|
assetId: "1000085",
|
|
18923
18978
|
symbol: "WUD",
|
|
@@ -18941,6 +18996,41 @@ var HydrationPaseo = {
|
|
|
18941
18996
|
},
|
|
18942
18997
|
isFeeAsset: true
|
|
18943
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
|
+
},
|
|
18944
19034
|
{
|
|
18945
19035
|
assetId: "1000099",
|
|
18946
19036
|
symbol: "ACA",
|
|
@@ -19015,6 +19105,29 @@ var HydrationPaseo = {
|
|
|
19015
19105
|
},
|
|
19016
19106
|
isFeeAsset: true
|
|
19017
19107
|
},
|
|
19108
|
+
{
|
|
19109
|
+
assetId: "1006",
|
|
19110
|
+
symbol: "atBTC",
|
|
19111
|
+
decimals: 18,
|
|
19112
|
+
existentialDeposit: "208779411374",
|
|
19113
|
+
location: {
|
|
19114
|
+
parents: 1,
|
|
19115
|
+
interior: {
|
|
19116
|
+
X2: [
|
|
19117
|
+
{
|
|
19118
|
+
Parachain: 2034
|
|
19119
|
+
},
|
|
19120
|
+
{
|
|
19121
|
+
AccountKey20: {
|
|
19122
|
+
network: null,
|
|
19123
|
+
key: "0x69003a65189f6ed993d3bd3e2b74f1db39f405ce"
|
|
19124
|
+
}
|
|
19125
|
+
}
|
|
19126
|
+
]
|
|
19127
|
+
}
|
|
19128
|
+
},
|
|
19129
|
+
isFeeAsset: true
|
|
19130
|
+
},
|
|
19018
19131
|
{
|
|
19019
19132
|
assetId: "6",
|
|
19020
19133
|
symbol: "APE",
|
|
@@ -19120,10 +19233,57 @@ var HydrationPaseo = {
|
|
|
19120
19233
|
isFeeAsset: true
|
|
19121
19234
|
},
|
|
19122
19235
|
{
|
|
19123
|
-
assetId: "
|
|
19124
|
-
symbol: "
|
|
19125
|
-
decimals:
|
|
19126
|
-
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
|
|
19127
19287
|
},
|
|
19128
19288
|
{
|
|
19129
19289
|
assetId: "31",
|
|
@@ -19168,6 +19328,34 @@ var HydrationPaseo = {
|
|
|
19168
19328
|
},
|
|
19169
19329
|
isFeeAsset: true
|
|
19170
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
|
+
},
|
|
19171
19359
|
{
|
|
19172
19360
|
assetId: "15",
|
|
19173
19361
|
symbol: "vDOT",
|
|
@@ -19218,6 +19406,29 @@ var HydrationPaseo = {
|
|
|
19218
19406
|
},
|
|
19219
19407
|
isFeeAsset: true
|
|
19220
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
|
+
},
|
|
19221
19432
|
{
|
|
19222
19433
|
assetId: "2",
|
|
19223
19434
|
symbol: "DAI",
|
|
@@ -19263,13 +19474,14 @@ var HydrationPaseo = {
|
|
|
19263
19474
|
]
|
|
19264
19475
|
}
|
|
19265
19476
|
},
|
|
19266
|
-
isFeeAsset: true
|
|
19477
|
+
isFeeAsset: true,
|
|
19478
|
+
alias: "CFG1"
|
|
19267
19479
|
},
|
|
19268
19480
|
{
|
|
19269
19481
|
assetId: "1002",
|
|
19270
19482
|
symbol: "aUSDT",
|
|
19271
19483
|
decimals: 6,
|
|
19272
|
-
existentialDeposit: "
|
|
19484
|
+
existentialDeposit: "22409",
|
|
19273
19485
|
location: {
|
|
19274
19486
|
parents: 1,
|
|
19275
19487
|
interior: {
|
|
@@ -19382,6 +19594,12 @@ var HydrationPaseo = {
|
|
|
19382
19594
|
},
|
|
19383
19595
|
isFeeAsset: true
|
|
19384
19596
|
},
|
|
19597
|
+
{
|
|
19598
|
+
assetId: "104",
|
|
19599
|
+
symbol: "2-Pool-WETH",
|
|
19600
|
+
decimals: 18,
|
|
19601
|
+
existentialDeposit: "2583311805735"
|
|
19602
|
+
},
|
|
19385
19603
|
{
|
|
19386
19604
|
assetId: "29",
|
|
19387
19605
|
symbol: "PLMC",
|
|
@@ -19564,7 +19782,7 @@ var HydrationPaseo = {
|
|
|
19564
19782
|
assetId: "1003",
|
|
19565
19783
|
symbol: "aUSDC",
|
|
19566
19784
|
decimals: 6,
|
|
19567
|
-
existentialDeposit: "
|
|
19785
|
+
existentialDeposit: "22409",
|
|
19568
19786
|
location: {
|
|
19569
19787
|
parents: 1,
|
|
19570
19788
|
interior: {
|
|
@@ -19611,6 +19829,12 @@ var HydrationPaseo = {
|
|
|
19611
19829
|
isFeeAsset: true,
|
|
19612
19830
|
alias: "WBTC1"
|
|
19613
19831
|
},
|
|
19832
|
+
{
|
|
19833
|
+
assetId: "690",
|
|
19834
|
+
symbol: "2-Pool-GDOT",
|
|
19835
|
+
decimals: 18,
|
|
19836
|
+
existentialDeposit: "1"
|
|
19837
|
+
},
|
|
19614
19838
|
{
|
|
19615
19839
|
assetId: "22",
|
|
19616
19840
|
symbol: "USDC",
|
|
@@ -19635,11 +19859,17 @@ var HydrationPaseo = {
|
|
|
19635
19859
|
isFeeAsset: true,
|
|
19636
19860
|
alias: "USDC3"
|
|
19637
19861
|
},
|
|
19862
|
+
{
|
|
19863
|
+
assetId: "112",
|
|
19864
|
+
symbol: "2-Pool-HUSDS",
|
|
19865
|
+
decimals: 18,
|
|
19866
|
+
existentialDeposit: "1000"
|
|
19867
|
+
},
|
|
19638
19868
|
{
|
|
19639
19869
|
assetId: "1005",
|
|
19640
19870
|
symbol: "avDOT",
|
|
19641
19871
|
decimals: 10,
|
|
19642
|
-
existentialDeposit: "
|
|
19872
|
+
existentialDeposit: "36627790",
|
|
19643
19873
|
location: {
|
|
19644
19874
|
parents: 1,
|
|
19645
19875
|
interior: {
|
|
@@ -19658,6 +19888,29 @@ var HydrationPaseo = {
|
|
|
19658
19888
|
},
|
|
19659
19889
|
isFeeAsset: true
|
|
19660
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
|
+
},
|
|
19661
19914
|
{
|
|
19662
19915
|
assetId: "24",
|
|
19663
19916
|
symbol: "SUB",
|
|
@@ -19747,6 +20000,29 @@ var HydrationPaseo = {
|
|
|
19747
20000
|
},
|
|
19748
20001
|
isFeeAsset: true
|
|
19749
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
|
+
},
|
|
19750
20026
|
{
|
|
19751
20027
|
assetId: "1000100",
|
|
19752
20028
|
symbol: "LDOT",
|
|
@@ -19774,7 +20050,7 @@ var HydrationPaseo = {
|
|
|
19774
20050
|
assetId: "1004",
|
|
19775
20051
|
symbol: "aWBTC",
|
|
19776
20052
|
decimals: 8,
|
|
19777
|
-
existentialDeposit: "
|
|
20053
|
+
existentialDeposit: "40",
|
|
19778
20054
|
location: {
|
|
19779
20055
|
parents: 1,
|
|
19780
20056
|
interior: {
|
|
@@ -19848,6 +20124,12 @@ var HydrationPaseo = {
|
|
|
19848
20124
|
},
|
|
19849
20125
|
isFeeAsset: true
|
|
19850
20126
|
},
|
|
20127
|
+
{
|
|
20128
|
+
assetId: "113",
|
|
20129
|
+
symbol: "2-Pool-HUSDe",
|
|
20130
|
+
decimals: 18,
|
|
20131
|
+
existentialDeposit: "1000"
|
|
20132
|
+
},
|
|
19851
20133
|
{
|
|
19852
20134
|
assetId: "1",
|
|
19853
20135
|
symbol: "H2O",
|
|
@@ -19914,26 +20196,6 @@ var HydrationPaseo = {
|
|
|
19914
20196
|
},
|
|
19915
20197
|
isFeeAsset: true
|
|
19916
20198
|
},
|
|
19917
|
-
{
|
|
19918
|
-
assetId: "12345",
|
|
19919
|
-
symbol: "KPGT",
|
|
19920
|
-
decimals: 18,
|
|
19921
|
-
existentialDeposit: "10000000000000000",
|
|
19922
|
-
location: {
|
|
19923
|
-
parents: 1,
|
|
19924
|
-
interior: {
|
|
19925
|
-
X2: [
|
|
19926
|
-
{
|
|
19927
|
-
Parachain: 4818
|
|
19928
|
-
},
|
|
19929
|
-
{
|
|
19930
|
-
GeneralIndex: 0
|
|
19931
|
-
}
|
|
19932
|
-
]
|
|
19933
|
-
}
|
|
19934
|
-
},
|
|
19935
|
-
isFeeAsset: true
|
|
19936
|
-
},
|
|
19937
20199
|
{
|
|
19938
20200
|
assetId: "3",
|
|
19939
20201
|
symbol: "WBTC",
|
|
@@ -20033,6 +20295,29 @@ var HydrationPaseo = {
|
|
|
20033
20295
|
},
|
|
20034
20296
|
isFeeAsset: true
|
|
20035
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
|
+
},
|
|
20036
20321
|
{
|
|
20037
20322
|
assetId: "23",
|
|
20038
20323
|
symbol: "USDT",
|
|
@@ -20060,6 +20345,56 @@ var HydrationPaseo = {
|
|
|
20060
20345
|
isFeeAsset: true,
|
|
20061
20346
|
alias: "USDT3"
|
|
20062
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
|
+
},
|
|
20063
20398
|
{
|
|
20064
20399
|
assetId: "9",
|
|
20065
20400
|
symbol: "ASTR",
|
|
@@ -20776,6 +21111,42 @@ var throwDuplicateAssetError = function throwDuplicateAssetError(symbol, nativeM
|
|
|
20776
21111
|
}
|
|
20777
21112
|
};
|
|
20778
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
|
+
};
|
|
20779
21150
|
var findAssetInfoBySymbol = function findAssetInfoBySymbol(destination, otherAssets, nativeAssets, symbol) {
|
|
20780
21151
|
var isSpecifier = isSymbolSpecifier(symbol);
|
|
20781
21152
|
var assetsMatches = [];
|
|
@@ -20788,78 +21159,30 @@ var findAssetInfoBySymbol = function findAssetInfoBySymbol(destination, otherAss
|
|
|
20788
21159
|
var lowerSymbol = value.toLowerCase();
|
|
20789
21160
|
var otherAssetsMatches = [];
|
|
20790
21161
|
if (destination === 'Ethereum') {
|
|
20791
|
-
|
|
20792
|
-
var _assetsMatches = findBestMatches(ethereumAssets, value);
|
|
20793
|
-
if (_assetsMatches.length === 0) {
|
|
20794
|
-
if (lowerSymbol.endsWith('.e')) {
|
|
20795
|
-
// Symbol ends with '.e', strip it and search again
|
|
20796
|
-
var strippedSymbol = value.slice(0, -2).toLowerCase();
|
|
20797
|
-
_assetsMatches = findBestMatches(ethereumAssets, strippedSymbol);
|
|
20798
|
-
} else {
|
|
20799
|
-
// Symbol does not end with '.e', add '.e' suffix and search
|
|
20800
|
-
var suffixedSymbol = "".concat(value, ".e").toLowerCase();
|
|
20801
|
-
_assetsMatches = findBestMatches(ethereumAssets, suffixedSymbol);
|
|
20802
|
-
}
|
|
20803
|
-
}
|
|
20804
|
-
return _assetsMatches[0];
|
|
21162
|
+
return findEthMatch(value);
|
|
20805
21163
|
}
|
|
20806
21164
|
if (lowerSymbol.endsWith('.e')) {
|
|
20807
21165
|
// Symbol ends with '.e', indicating a Snowbridge asset
|
|
20808
|
-
var
|
|
21166
|
+
var strippedSymbol = removeSuffix(value);
|
|
20809
21167
|
// If not found, search normal assets with '.e' suffix
|
|
20810
21168
|
otherAssetsMatches = findBestMatches(otherAssets, value);
|
|
20811
|
-
|
|
20812
|
-
|
|
20813
|
-
|
|
20814
|
-
|
|
20815
|
-
|
|
20816
|
-
|
|
20817
|
-
|
|
20818
|
-
var _strippedSymbol2 = value.substring(2);
|
|
20819
|
-
otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol2);
|
|
20820
|
-
} else {
|
|
20821
|
-
// Try adding 'xc' prefix
|
|
20822
|
-
var prefixedSymbol = "xc".concat(value);
|
|
20823
|
-
otherAssetsMatches = findBestMatches(otherAssets, prefixedSymbol);
|
|
20824
|
-
}
|
|
20825
|
-
if (otherAssetsMatches.length > 1) {
|
|
20826
|
-
throwDuplicateAssetError(value, [], otherAssetsMatches);
|
|
20827
|
-
} else if (otherAssetsMatches.length > 0) {
|
|
20828
|
-
return otherAssetsMatches[0];
|
|
20829
|
-
}
|
|
20830
|
-
// Search in Ethereum assets without the '.e' suffix
|
|
20831
|
-
var _ethereumAssets = getOtherAssets('Ethereum');
|
|
20832
|
-
var ethereumMatches = findBestMatches(_ethereumAssets, _strippedSymbol);
|
|
20833
|
-
if (ethereumMatches.length > 0) {
|
|
20834
|
-
return ethereumMatches[0];
|
|
20835
|
-
}
|
|
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;
|
|
20836
21176
|
// If still not found, search normal assets without suffix
|
|
20837
|
-
otherAssetsMatches = findBestMatches(otherAssets,
|
|
20838
|
-
|
|
20839
|
-
throwDuplicateAssetError(value, [], otherAssetsMatches);
|
|
20840
|
-
} else if (otherAssetsMatches.length > 0) {
|
|
20841
|
-
return otherAssetsMatches[0];
|
|
20842
|
-
}
|
|
20843
|
-
// No matches found
|
|
20844
|
-
return undefined;
|
|
21177
|
+
otherAssetsMatches = findBestMatches(otherAssets, strippedSymbol);
|
|
21178
|
+
return pickOtherOrThrow(value, otherAssetsMatches);
|
|
20845
21179
|
} else {
|
|
20846
21180
|
// Symbol does not end with '.e', proceed with existing logic
|
|
20847
21181
|
otherAssetsMatches = findBestMatches(otherAssets, value);
|
|
20848
21182
|
if (otherAssetsMatches.length === 0) {
|
|
20849
|
-
|
|
20850
|
-
// Symbol starts with 'xc', try stripping 'xc' prefix
|
|
20851
|
-
var _strippedSymbol3 = value.substring(2);
|
|
20852
|
-
otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol3);
|
|
20853
|
-
} else {
|
|
20854
|
-
// Try adding 'xc' prefix
|
|
20855
|
-
var _prefixedSymbol = "xc".concat(value);
|
|
20856
|
-
otherAssetsMatches = findBestMatches(otherAssets, _prefixedSymbol);
|
|
20857
|
-
}
|
|
21183
|
+
otherAssetsMatches = findWithXcVariant(otherAssets, value);
|
|
20858
21184
|
}
|
|
20859
|
-
|
|
20860
|
-
throwDuplicateAssetError(value, [], otherAssetsMatches);
|
|
20861
|
-
}
|
|
20862
|
-
return otherAssetsMatches[0] || undefined;
|
|
21185
|
+
return pickOtherOrThrow(value, otherAssetsMatches);
|
|
20863
21186
|
}
|
|
20864
21187
|
} else if (type === 'ForeignAbstract') {
|
|
20865
21188
|
assetsMatches = findBestMatches(otherAssets, value, 'alias');
|
|
@@ -20872,91 +21195,41 @@ var findAssetInfoBySymbol = function findAssetInfoBySymbol(destination, otherAss
|
|
|
20872
21195
|
var _otherAssetsMatches = [];
|
|
20873
21196
|
var nativeAssetsMatches = [];
|
|
20874
21197
|
if (destination === 'Ethereum') {
|
|
20875
|
-
|
|
20876
|
-
var _assetsMatches2 = findBestMatches(_ethereumAssets2, symbol);
|
|
20877
|
-
if (_assetsMatches2.length === 0) {
|
|
20878
|
-
if (_lowerSymbol.endsWith('.e')) {
|
|
20879
|
-
// Symbol ends with '.e', strip it and search again
|
|
20880
|
-
var _strippedSymbol4 = symbol.slice(0, -2).toLowerCase();
|
|
20881
|
-
_assetsMatches2 = findBestMatches(_ethereumAssets2, _strippedSymbol4);
|
|
20882
|
-
} else {
|
|
20883
|
-
// Symbol does not end with '.e', add '.e' suffix and search
|
|
20884
|
-
var _suffixedSymbol = "".concat(symbol, ".e").toLowerCase();
|
|
20885
|
-
_assetsMatches2 = findBestMatches(_ethereumAssets2, _suffixedSymbol);
|
|
20886
|
-
}
|
|
20887
|
-
}
|
|
20888
|
-
return _assetsMatches2[0];
|
|
21198
|
+
return findEthMatch(symbol);
|
|
20889
21199
|
}
|
|
20890
21200
|
if (_lowerSymbol.endsWith('.e')) {
|
|
20891
21201
|
// Symbol ends with '.e', indicating a Snowbridge asset
|
|
20892
|
-
var
|
|
21202
|
+
var _strippedSymbol = removeSuffix(symbol);
|
|
20893
21203
|
// If not found, search normal assets with '.e' suffix
|
|
20894
21204
|
_otherAssetsMatches = findBestMatches(otherAssets, symbol);
|
|
20895
21205
|
nativeAssetsMatches = findBestMatches(nativeAssets, symbol);
|
|
20896
21206
|
if (nativeAssetsMatches.length > 0 || _otherAssetsMatches.length > 0) {
|
|
20897
|
-
return _otherAssetsMatches
|
|
20898
|
-
}
|
|
20899
|
-
if (_lowerSymbol.startsWith('xc')) {
|
|
20900
|
-
// Symbol starts with 'xc', try stripping 'xc' prefix
|
|
20901
|
-
var _strippedSymbol6 = symbol.substring(2);
|
|
20902
|
-
_otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol6);
|
|
20903
|
-
} else {
|
|
20904
|
-
// Try adding 'xc' prefix
|
|
20905
|
-
var _prefixedSymbol2 = "xc".concat(symbol);
|
|
20906
|
-
_otherAssetsMatches = findBestMatches(otherAssets, _prefixedSymbol2);
|
|
20907
|
-
}
|
|
20908
|
-
if (_otherAssetsMatches.length > 1) {
|
|
20909
|
-
throwDuplicateAssetError(symbol, [], _otherAssetsMatches);
|
|
20910
|
-
} else if (_otherAssetsMatches.length > 0) {
|
|
20911
|
-
return _otherAssetsMatches[0];
|
|
21207
|
+
return pickAny(nativeAssetsMatches, _otherAssetsMatches);
|
|
20912
21208
|
}
|
|
21209
|
+
_otherAssetsMatches = findWithXcVariant(otherAssets, symbol);
|
|
21210
|
+
var _foundAsset = pickOtherOrThrow(symbol, _otherAssetsMatches);
|
|
21211
|
+
if (_foundAsset) return _foundAsset;
|
|
20913
21212
|
// Search in Ethereum assets without the '.e' suffix
|
|
20914
|
-
var
|
|
20915
|
-
|
|
20916
|
-
if (_ethereumMatches.length > 0) {
|
|
20917
|
-
return _ethereumMatches[0];
|
|
20918
|
-
}
|
|
21213
|
+
var _ethAsset = findEthAssetBySymbol(_strippedSymbol);
|
|
21214
|
+
if (_ethAsset) return _ethAsset;
|
|
20919
21215
|
// If still not found, search normal assets without suffix
|
|
20920
|
-
_otherAssetsMatches = findBestMatches(otherAssets,
|
|
20921
|
-
nativeAssetsMatches = findBestMatches(nativeAssets,
|
|
20922
|
-
|
|
20923
|
-
return _otherAssetsMatches[0] || nativeAssetsMatches[0];
|
|
20924
|
-
}
|
|
20925
|
-
// No matches found
|
|
20926
|
-
return undefined;
|
|
21216
|
+
_otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol);
|
|
21217
|
+
nativeAssetsMatches = findBestMatches(nativeAssets, _strippedSymbol);
|
|
21218
|
+
return pickAny(nativeAssetsMatches, _otherAssetsMatches);
|
|
20927
21219
|
} else {
|
|
20928
21220
|
// Symbol does not end with '.e'
|
|
20929
21221
|
_otherAssetsMatches = findBestMatches(otherAssets, symbol);
|
|
20930
21222
|
nativeAssetsMatches = findBestMatches(nativeAssets, symbol);
|
|
20931
21223
|
if (_otherAssetsMatches.length === 0 && nativeAssetsMatches.length === 0) {
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20935
|
-
_otherAssetsMatches = findBestMatches(otherAssets, _strippedSymbol7);
|
|
20936
|
-
nativeAssetsMatches = findBestMatches(nativeAssets, _strippedSymbol7);
|
|
20937
|
-
var _totalMatches = _otherAssetsMatches.length + nativeAssetsMatches.length;
|
|
20938
|
-
if (_totalMatches > 1) {
|
|
20939
|
-
throwDuplicateAssetError(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
20940
|
-
}
|
|
20941
|
-
} else {
|
|
20942
|
-
// Try adding 'xc' prefix
|
|
20943
|
-
var _prefixedSymbol3 = "xc".concat(symbol);
|
|
20944
|
-
_otherAssetsMatches = findBestMatches(otherAssets, _prefixedSymbol3);
|
|
20945
|
-
nativeAssetsMatches = findBestMatches(nativeAssets, _prefixedSymbol3);
|
|
20946
|
-
var _totalMatches2 = _otherAssetsMatches.length + nativeAssetsMatches.length;
|
|
20947
|
-
if (_totalMatches2 > 1) {
|
|
20948
|
-
throwDuplicateAssetError(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
20949
|
-
}
|
|
20950
|
-
}
|
|
21224
|
+
_otherAssetsMatches = findWithXcVariant(otherAssets, symbol);
|
|
21225
|
+
nativeAssetsMatches = findWithXcVariant(nativeAssets, symbol);
|
|
21226
|
+
throwIfDuplicate(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
20951
21227
|
}
|
|
20952
|
-
|
|
20953
|
-
|
|
20954
|
-
throwDuplicateAssetError(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
20955
|
-
}
|
|
20956
|
-
return _otherAssetsMatches[0] || nativeAssetsMatches[0] || undefined;
|
|
21228
|
+
throwIfDuplicate(symbol, nativeAssetsMatches, _otherAssetsMatches);
|
|
21229
|
+
return pickAny(nativeAssetsMatches, _otherAssetsMatches);
|
|
20957
21230
|
}
|
|
20958
21231
|
}
|
|
20959
|
-
return assetsMatches[0]
|
|
21232
|
+
return assetsMatches[0];
|
|
20960
21233
|
};
|
|
20961
21234
|
|
|
20962
21235
|
var findAssetInfo = function findAssetInfo(chain, currency, destination) {
|
|
@@ -21008,9 +21281,9 @@ var findAssetInfoOrThrow = function findAssetInfoOrThrow(chain, currency, destin
|
|
|
21008
21281
|
};
|
|
21009
21282
|
|
|
21010
21283
|
var findAssetInfoOnDest = function findAssetInfoOnDest(origin, destination, currency, originAsset) {
|
|
21011
|
-
var
|
|
21284
|
+
var isBridge = isSubstrateBridge(origin, destination);
|
|
21012
21285
|
var resolvedOriginAsset = originAsset !== null && originAsset !== void 0 ? originAsset : findAssetInfoOrThrow(origin, currency, destination);
|
|
21013
|
-
var assetByLocation = !
|
|
21286
|
+
var assetByLocation = !isBridge && resolvedOriginAsset.location ? findAssetInfo(destination, {
|
|
21014
21287
|
location: resolvedOriginAsset.location
|
|
21015
21288
|
}, null) : null;
|
|
21016
21289
|
return assetByLocation !== null && assetByLocation !== void 0 ? assetByLocation : findAssetInfo(destination, {
|
|
@@ -21352,9 +21625,9 @@ var getSupportedDestinations = function getSupportedDestinations(origin, currenc
|
|
|
21352
21625
|
};
|
|
21353
21626
|
|
|
21354
21627
|
var isAssetEqual = function isAssetEqual(asset1, asset2) {
|
|
21355
|
-
var
|
|
21356
|
-
var
|
|
21357
|
-
if (
|
|
21628
|
+
var loc1 = asset1.location;
|
|
21629
|
+
var loc2 = asset2.location;
|
|
21630
|
+
if (loc1 && loc2) return deepEqual(loc1, loc2);
|
|
21358
21631
|
if (isForeignAsset(asset1) && isForeignAsset(asset2) && asset1.assetId === asset2.assetId) return true;
|
|
21359
21632
|
return isSymbolMatch(asset1.symbol, asset2.symbol);
|
|
21360
21633
|
};
|