@subwallet/chain-list 0.0.17 → 0.0.19
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/bundle-subwallet-chain-list.js +146 -8
- package/cjs/index.js +1 -1
- package/cjs/packageInfo.js +1 -1
- package/data/AssetRef.json +65 -3
- package/data/ChainAsset.json +81 -5
- package/package.json +1 -1
- package/packageInfo.js +1 -1
- package/types.d.ts +2 -0
|
@@ -7,19 +7,81 @@
|
|
|
7
7
|
const global = window;
|
|
8
8
|
|
|
9
9
|
const _AssetRefMap = {
|
|
10
|
-
"polkadot-NATIVE-
|
|
10
|
+
"polkadot-NATIVE-DOT___moonbeam-LOCAL-xcDOT": {
|
|
11
11
|
srcAsset: "polkadot-NATIVE-DOT",
|
|
12
12
|
destAsset: "moonbeam-LOCAL-xcDOT",
|
|
13
|
+
srcChain: "polkadot",
|
|
14
|
+
destChain: "moonbeam",
|
|
13
15
|
path: "XCM"
|
|
14
16
|
},
|
|
15
|
-
"polkadot-NATIVE-
|
|
17
|
+
"polkadot-NATIVE-DOT___acala-LOCAL-DOT": {
|
|
16
18
|
srcAsset: "polkadot-NATIVE-DOT",
|
|
17
19
|
destAsset: "acala-LOCAL-DOT",
|
|
20
|
+
srcChain: "polkadot",
|
|
21
|
+
destChain: "acala",
|
|
18
22
|
path: "XCM"
|
|
19
23
|
},
|
|
20
|
-
"
|
|
24
|
+
"polkadot-NATIVE-DOT___astar-NATIVE-ASTR": {
|
|
25
|
+
srcAsset: "polkadot-NATIVE-DOT",
|
|
26
|
+
destAsset: "astar-NATIVE-ASTR",
|
|
27
|
+
srcChain: "polkadot",
|
|
28
|
+
destChain: "astar",
|
|
29
|
+
path: "XCM"
|
|
30
|
+
},
|
|
31
|
+
"polkadot-NATIVE-DOT___statemint-NATIVE-DOT": {
|
|
32
|
+
srcAsset: "polkadot-NATIVE-DOT",
|
|
33
|
+
destAsset: "statemint-NATIVE-DOT",
|
|
34
|
+
srcChain: "polkadot",
|
|
35
|
+
destChain: "statemint",
|
|
36
|
+
path: "XCM"
|
|
37
|
+
},
|
|
38
|
+
"acala-NATIVE-ACA___moonbeam-LOCAL-xcACA": {
|
|
21
39
|
srcAsset: "acala-NATIVE-ACA",
|
|
22
40
|
destAsset: "moonbeam-LOCAL-xcACA",
|
|
41
|
+
srcChain: "acala",
|
|
42
|
+
destChain: "moonbeam",
|
|
43
|
+
path: "XCM"
|
|
44
|
+
},
|
|
45
|
+
"astar-LOCAL-DOT___polkadot-NATIVE-DOT": {
|
|
46
|
+
srcAsset: "astar-LOCAL-DOT",
|
|
47
|
+
destAsset: "polkadot-NATIVE-DOT",
|
|
48
|
+
srcChain: "astar",
|
|
49
|
+
destChain: "polkadot",
|
|
50
|
+
path: "XCM"
|
|
51
|
+
},
|
|
52
|
+
"moonbeam-LOCAL-xcDOT___polkadot-NATIVE-DOT": {
|
|
53
|
+
srcAsset: "moonbeam-LOCAL-xcDOT",
|
|
54
|
+
destAsset: "polkadot-NATIVE-DOT",
|
|
55
|
+
srcChain: "moonbeam",
|
|
56
|
+
destChain: "polkadot",
|
|
57
|
+
path: "XCM"
|
|
58
|
+
},
|
|
59
|
+
"statemint-NATIVE-DOT___polkadot-NATIVE-DOT": {
|
|
60
|
+
srcAsset: "statemint-NATIVE-DOT",
|
|
61
|
+
destAsset: "polkadot-NATIVE-DOT",
|
|
62
|
+
srcChain: "statemint",
|
|
63
|
+
destChain: "polkadot",
|
|
64
|
+
path: "XCM"
|
|
65
|
+
},
|
|
66
|
+
"statemint-LOCAL-USDt___astar-LOCAL-USDT": {
|
|
67
|
+
srcAsset: "statemint-LOCAL-USDt",
|
|
68
|
+
destAsset: "astar-LOCAL-USDT",
|
|
69
|
+
srcChain: "statemint",
|
|
70
|
+
destChain: "astar",
|
|
71
|
+
path: "XCM"
|
|
72
|
+
},
|
|
73
|
+
"astar-LOCAL-USDT___statemint-LOCAL-USDt": {
|
|
74
|
+
srcAsset: "astar-LOCAL-USDT",
|
|
75
|
+
destAsset: "statemint-LOCAL-USDt",
|
|
76
|
+
srcChain: "astar",
|
|
77
|
+
destChain: "statemint",
|
|
78
|
+
path: "XCM"
|
|
79
|
+
},
|
|
80
|
+
"astar-NATIVE-ASTR___acala-LOCAL-ASTR": {
|
|
81
|
+
srcAsset: "astar-NATIVE-ASTR",
|
|
82
|
+
destAsset: "acala-LOCAL-ASTR",
|
|
83
|
+
srcChain: "astar",
|
|
84
|
+
destChain: "acala",
|
|
23
85
|
path: "XCM"
|
|
24
86
|
}
|
|
25
87
|
};
|
|
@@ -302,6 +364,56 @@
|
|
|
302
364
|
metadata: null,
|
|
303
365
|
multiChainAsset: "ASTR-Astar",
|
|
304
366
|
hasValue: true
|
|
367
|
+
},
|
|
368
|
+
"astar-LOCAL-DOT": {
|
|
369
|
+
originChain: "astar",
|
|
370
|
+
slug: "astar-LOCAL-DOT",
|
|
371
|
+
name: "Polkadot",
|
|
372
|
+
symbol: "DOT",
|
|
373
|
+
decimals: 10,
|
|
374
|
+
priceId: "polkadot",
|
|
375
|
+
minAmount: "1",
|
|
376
|
+
assetType: "LOCAL",
|
|
377
|
+
metadata: {
|
|
378
|
+
assetId: "340282366920938463463374607431768211455",
|
|
379
|
+
multilocation: {
|
|
380
|
+
parents: 1,
|
|
381
|
+
interior: "Here"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
multiChainAsset: "DOT-Polkadot",
|
|
385
|
+
hasValue: true
|
|
386
|
+
},
|
|
387
|
+
"astar-LOCAL-USDT": {
|
|
388
|
+
originChain: "astar",
|
|
389
|
+
slug: "astar-LOCAL-USDT",
|
|
390
|
+
name: "Tether USD",
|
|
391
|
+
symbol: "USDT",
|
|
392
|
+
decimals: 6,
|
|
393
|
+
priceId: "tether",
|
|
394
|
+
minAmount: "0",
|
|
395
|
+
assetType: "LOCAL",
|
|
396
|
+
metadata: {
|
|
397
|
+
assetId: "4294969280",
|
|
398
|
+
multilocation: {
|
|
399
|
+
parents: 1,
|
|
400
|
+
interior: {
|
|
401
|
+
X3: [
|
|
402
|
+
{
|
|
403
|
+
Parachain: 1000
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
GeneralIndex: 50
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
GeneralIndex: 1984
|
|
410
|
+
}
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
multiChainAsset: "USDT-Tether",
|
|
416
|
+
hasValue: true
|
|
305
417
|
},
|
|
306
418
|
"astarEvm-NATIVE-ASTR": {
|
|
307
419
|
originChain: "astarEvm",
|
|
@@ -621,8 +733,15 @@
|
|
|
621
733
|
priceId: null,
|
|
622
734
|
minAmount: "1000000000",
|
|
623
735
|
assetType: "NATIVE",
|
|
624
|
-
metadata:
|
|
625
|
-
|
|
736
|
+
metadata: {
|
|
737
|
+
multilocation: {
|
|
738
|
+
Concrete: {
|
|
739
|
+
parents: 1,
|
|
740
|
+
interior: "Here"
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
multiChainAsset: "DOT-Polkadot",
|
|
626
745
|
hasValue: true
|
|
627
746
|
},
|
|
628
747
|
"pioneer-NATIVE-NEER": {
|
|
@@ -1193,7 +1312,9 @@
|
|
|
1193
1312
|
decimals: 10,
|
|
1194
1313
|
priceId: null,
|
|
1195
1314
|
assetType: "NATIVE",
|
|
1196
|
-
metadata:
|
|
1315
|
+
metadata: {
|
|
1316
|
+
assetId: "1734700659"
|
|
1317
|
+
},
|
|
1197
1318
|
multiChainAsset: null,
|
|
1198
1319
|
hasValue: true,
|
|
1199
1320
|
minAmount: "0"
|
|
@@ -1222,7 +1343,9 @@
|
|
|
1222
1343
|
priceId: null,
|
|
1223
1344
|
minAmount: "0",
|
|
1224
1345
|
assetType: "NATIVE",
|
|
1225
|
-
metadata:
|
|
1346
|
+
metadata: {
|
|
1347
|
+
assetId: "1734700659"
|
|
1348
|
+
},
|
|
1226
1349
|
multiChainAsset: null,
|
|
1227
1350
|
hasValue: false
|
|
1228
1351
|
},
|
|
@@ -2311,7 +2434,22 @@
|
|
|
2311
2434
|
minAmount: "700000",
|
|
2312
2435
|
assetType: "LOCAL",
|
|
2313
2436
|
metadata: {
|
|
2314
|
-
assetId: "1984"
|
|
2437
|
+
assetId: "1984",
|
|
2438
|
+
multilocation: {
|
|
2439
|
+
Concrete: {
|
|
2440
|
+
parents: 0,
|
|
2441
|
+
interior: {
|
|
2442
|
+
X2: [
|
|
2443
|
+
{
|
|
2444
|
+
PalletInstance: 50
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
GeneralIndex: 1984
|
|
2448
|
+
}
|
|
2449
|
+
]
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2315
2453
|
},
|
|
2316
2454
|
multiChainAsset: "USDT-Tether",
|
|
2317
2455
|
hasValue: true
|
package/cjs/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports._DEFAULT_CHAINS = exports.MultiChainAssetMap = exports.ChainInfoMap = ex
|
|
|
8
8
|
var _AssetRef2 = _interopRequireDefault(require("@subwallet/chain-list/data/AssetRef.json"));
|
|
9
9
|
var _ChainAsset2 = _interopRequireDefault(require("@subwallet/chain-list/data/ChainAsset.json"));
|
|
10
10
|
var _ChainInfo2 = _interopRequireDefault(require("@subwallet/chain-list/data/ChainInfo.json"));
|
|
11
|
-
var _MultiChainAsset2 = _interopRequireDefault(require("@subwallet/chain/
|
|
11
|
+
var _MultiChainAsset2 = _interopRequireDefault(require("@subwallet/chain-list/data/MultiChainAsset.json"));
|
|
12
12
|
// Copyright 2019-2022 @subwallet/chain-list authors & contributors
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
|
package/cjs/packageInfo.js
CHANGED
package/data/AssetRef.json
CHANGED
|
@@ -1,17 +1,79 @@
|
|
|
1
1
|
{
|
|
2
|
-
"polkadot-NATIVE-
|
|
2
|
+
"polkadot-NATIVE-DOT___moonbeam-LOCAL-xcDOT": {
|
|
3
3
|
"srcAsset": "polkadot-NATIVE-DOT",
|
|
4
4
|
"destAsset": "moonbeam-LOCAL-xcDOT",
|
|
5
|
+
"srcChain": "polkadot",
|
|
6
|
+
"destChain": "moonbeam",
|
|
5
7
|
"path": "XCM"
|
|
6
8
|
},
|
|
7
|
-
"polkadot-NATIVE-
|
|
9
|
+
"polkadot-NATIVE-DOT___acala-LOCAL-DOT": {
|
|
8
10
|
"srcAsset": "polkadot-NATIVE-DOT",
|
|
9
11
|
"destAsset": "acala-LOCAL-DOT",
|
|
12
|
+
"srcChain": "polkadot",
|
|
13
|
+
"destChain": "acala",
|
|
10
14
|
"path": "XCM"
|
|
11
15
|
},
|
|
12
|
-
"
|
|
16
|
+
"polkadot-NATIVE-DOT___astar-NATIVE-ASTR": {
|
|
17
|
+
"srcAsset": "polkadot-NATIVE-DOT",
|
|
18
|
+
"destAsset": "astar-NATIVE-ASTR",
|
|
19
|
+
"srcChain": "polkadot",
|
|
20
|
+
"destChain": "astar",
|
|
21
|
+
"path": "XCM"
|
|
22
|
+
},
|
|
23
|
+
"polkadot-NATIVE-DOT___statemint-NATIVE-DOT": {
|
|
24
|
+
"srcAsset": "polkadot-NATIVE-DOT",
|
|
25
|
+
"destAsset": "statemint-NATIVE-DOT",
|
|
26
|
+
"srcChain": "polkadot",
|
|
27
|
+
"destChain": "statemint",
|
|
28
|
+
"path": "XCM"
|
|
29
|
+
},
|
|
30
|
+
"acala-NATIVE-ACA___moonbeam-LOCAL-xcACA": {
|
|
13
31
|
"srcAsset": "acala-NATIVE-ACA",
|
|
14
32
|
"destAsset": "moonbeam-LOCAL-xcACA",
|
|
33
|
+
"srcChain": "acala",
|
|
34
|
+
"destChain": "moonbeam",
|
|
35
|
+
"path": "XCM"
|
|
36
|
+
},
|
|
37
|
+
"astar-LOCAL-DOT___polkadot-NATIVE-DOT": {
|
|
38
|
+
"srcAsset": "astar-LOCAL-DOT",
|
|
39
|
+
"destAsset": "polkadot-NATIVE-DOT",
|
|
40
|
+
"srcChain": "astar",
|
|
41
|
+
"destChain": "polkadot",
|
|
42
|
+
"path": "XCM"
|
|
43
|
+
},
|
|
44
|
+
"moonbeam-LOCAL-xcDOT___polkadot-NATIVE-DOT": {
|
|
45
|
+
"srcAsset": "moonbeam-LOCAL-xcDOT",
|
|
46
|
+
"destAsset": "polkadot-NATIVE-DOT",
|
|
47
|
+
"srcChain": "moonbeam",
|
|
48
|
+
"destChain": "polkadot",
|
|
49
|
+
"path": "XCM"
|
|
50
|
+
},
|
|
51
|
+
"statemint-NATIVE-DOT___polkadot-NATIVE-DOT": {
|
|
52
|
+
"srcAsset": "statemint-NATIVE-DOT",
|
|
53
|
+
"destAsset": "polkadot-NATIVE-DOT",
|
|
54
|
+
"srcChain": "statemint",
|
|
55
|
+
"destChain": "polkadot",
|
|
56
|
+
"path": "XCM"
|
|
57
|
+
},
|
|
58
|
+
"statemint-LOCAL-USDt___astar-LOCAL-USDT": {
|
|
59
|
+
"srcAsset": "statemint-LOCAL-USDt",
|
|
60
|
+
"destAsset": "astar-LOCAL-USDT",
|
|
61
|
+
"srcChain": "statemint",
|
|
62
|
+
"destChain": "astar",
|
|
63
|
+
"path": "XCM"
|
|
64
|
+
},
|
|
65
|
+
"astar-LOCAL-USDT___statemint-LOCAL-USDt": {
|
|
66
|
+
"srcAsset": "astar-LOCAL-USDT",
|
|
67
|
+
"destAsset": "statemint-LOCAL-USDt",
|
|
68
|
+
"srcChain": "astar",
|
|
69
|
+
"destChain": "statemint",
|
|
70
|
+
"path": "XCM"
|
|
71
|
+
},
|
|
72
|
+
"astar-NATIVE-ASTR___acala-LOCAL-ASTR": {
|
|
73
|
+
"srcAsset": "astar-NATIVE-ASTR",
|
|
74
|
+
"destAsset": "acala-LOCAL-ASTR",
|
|
75
|
+
"srcChain": "astar",
|
|
76
|
+
"destChain": "acala",
|
|
15
77
|
"path": "XCM"
|
|
16
78
|
}
|
|
17
79
|
}
|
package/data/ChainAsset.json
CHANGED
|
@@ -277,6 +277,56 @@
|
|
|
277
277
|
"multiChainAsset": "ASTR-Astar",
|
|
278
278
|
"hasValue": true
|
|
279
279
|
},
|
|
280
|
+
"astar-LOCAL-DOT": {
|
|
281
|
+
"originChain": "astar",
|
|
282
|
+
"slug": "astar-LOCAL-DOT",
|
|
283
|
+
"name": "Polkadot",
|
|
284
|
+
"symbol": "DOT",
|
|
285
|
+
"decimals": 10,
|
|
286
|
+
"priceId": "polkadot",
|
|
287
|
+
"minAmount": "1",
|
|
288
|
+
"assetType": "LOCAL",
|
|
289
|
+
"metadata": {
|
|
290
|
+
"assetId": "340282366920938463463374607431768211455",
|
|
291
|
+
"multilocation": {
|
|
292
|
+
"parents": 1,
|
|
293
|
+
"interior": "Here"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"multiChainAsset": "DOT-Polkadot",
|
|
297
|
+
"hasValue": true
|
|
298
|
+
},
|
|
299
|
+
"astar-LOCAL-USDT": {
|
|
300
|
+
"originChain": "astar",
|
|
301
|
+
"slug": "astar-LOCAL-USDT",
|
|
302
|
+
"name": "Tether USD",
|
|
303
|
+
"symbol": "USDT",
|
|
304
|
+
"decimals": 6,
|
|
305
|
+
"priceId": "tether",
|
|
306
|
+
"minAmount": "0",
|
|
307
|
+
"assetType": "LOCAL",
|
|
308
|
+
"metadata": {
|
|
309
|
+
"assetId": "4294969280",
|
|
310
|
+
"multilocation": {
|
|
311
|
+
"parents": 1,
|
|
312
|
+
"interior": {
|
|
313
|
+
"X3": [
|
|
314
|
+
{
|
|
315
|
+
"Parachain": 1000
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"GeneralIndex": 50
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"GeneralIndex": 1984
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"multiChainAsset": "USDT-Tether",
|
|
328
|
+
"hasValue": true
|
|
329
|
+
},
|
|
280
330
|
"astarEvm-NATIVE-ASTR": {
|
|
281
331
|
"originChain": "astarEvm",
|
|
282
332
|
"slug": "astarEvm-NATIVE-ASTR",
|
|
@@ -595,8 +645,15 @@
|
|
|
595
645
|
"priceId": null,
|
|
596
646
|
"minAmount": "1000000000",
|
|
597
647
|
"assetType": "NATIVE",
|
|
598
|
-
"metadata":
|
|
599
|
-
|
|
648
|
+
"metadata": {
|
|
649
|
+
"multilocation": {
|
|
650
|
+
"Concrete": {
|
|
651
|
+
"parents": 1,
|
|
652
|
+
"interior": "Here"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
"multiChainAsset": "DOT-Polkadot",
|
|
600
657
|
"hasValue": true
|
|
601
658
|
},
|
|
602
659
|
"pioneer-NATIVE-NEER": {
|
|
@@ -1167,7 +1224,9 @@
|
|
|
1167
1224
|
"decimals": 10,
|
|
1168
1225
|
"priceId": null,
|
|
1169
1226
|
"assetType": "NATIVE",
|
|
1170
|
-
"metadata":
|
|
1227
|
+
"metadata": {
|
|
1228
|
+
"assetId": "1734700659"
|
|
1229
|
+
},
|
|
1171
1230
|
"multiChainAsset": null,
|
|
1172
1231
|
"hasValue": true,
|
|
1173
1232
|
"minAmount": "0"
|
|
@@ -1196,7 +1255,9 @@
|
|
|
1196
1255
|
"priceId": null,
|
|
1197
1256
|
"minAmount": "0",
|
|
1198
1257
|
"assetType": "NATIVE",
|
|
1199
|
-
"metadata":
|
|
1258
|
+
"metadata": {
|
|
1259
|
+
"assetId": "1734700659"
|
|
1260
|
+
},
|
|
1200
1261
|
"multiChainAsset": null,
|
|
1201
1262
|
"hasValue": false
|
|
1202
1263
|
},
|
|
@@ -2285,7 +2346,22 @@
|
|
|
2285
2346
|
"minAmount": "700000",
|
|
2286
2347
|
"assetType": "LOCAL",
|
|
2287
2348
|
"metadata": {
|
|
2288
|
-
"assetId": "1984"
|
|
2349
|
+
"assetId": "1984",
|
|
2350
|
+
"multilocation": {
|
|
2351
|
+
"Concrete": {
|
|
2352
|
+
"parents": 0,
|
|
2353
|
+
"interior": {
|
|
2354
|
+
"X2": [
|
|
2355
|
+
{
|
|
2356
|
+
"PalletInstance": 50
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"GeneralIndex": 1984
|
|
2360
|
+
}
|
|
2361
|
+
]
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2289
2365
|
},
|
|
2290
2366
|
"multiChainAsset": "USDT-Tether",
|
|
2291
2367
|
"hasValue": true
|
package/package.json
CHANGED
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@subwallet/chain-list',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '0.0.
|
|
10
|
+
version: '0.0.19'
|
|
11
11
|
};
|