@subwallet/chain-list 0.0.3 → 0.0.5

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.
@@ -205,7 +205,8 @@
205
205
  minAmount: "10000000000",
206
206
  assetType: "NATIVE",
207
207
  metadata: null,
208
- multiChainAsset: "DOT-Polkadot"
208
+ multiChainAsset: "DOT-Polkadot",
209
+ hasValue: true
209
210
  },
210
211
  "kusama-NATIVE-KSM": {
211
212
  originChain: "kusama",
@@ -217,7 +218,8 @@
217
218
  minAmount: "33333333",
218
219
  assetType: "NATIVE",
219
220
  metadata: null,
220
- multiChainAsset: "KSM-Kusama"
221
+ multiChainAsset: "KSM-Kusama",
222
+ hasValue: true
221
223
  },
222
224
  "moonbeam-NATIVE-GLMR": {
223
225
  originChain: "moonbeam",
@@ -229,7 +231,8 @@
229
231
  minAmount: "0",
230
232
  assetType: "NATIVE",
231
233
  metadata: null,
232
- multiChainAsset: "GLMR-Moonbeam"
234
+ multiChainAsset: "GLMR-Moonbeam",
235
+ hasValue: true
233
236
  },
234
237
  "acala-NATIVE-ACA": {
235
238
  originChain: "acala",
@@ -241,7 +244,8 @@
241
244
  minAmount: "100000000000",
242
245
  assetType: "NATIVE",
243
246
  metadata: null,
244
- multiChainAsset: "ACA-Acala"
247
+ multiChainAsset: "ACA-Acala",
248
+ hasValue: true
245
249
  },
246
250
  "acala-LOCAL-DOT": {
247
251
  originChain: "acala",
@@ -253,7 +257,8 @@
253
257
  minAmount: null,
254
258
  assetType: "LOCAL",
255
259
  metadata: null,
256
- multiChainAsset: "DOT-Polkadot"
260
+ multiChainAsset: "DOT-Polkadot",
261
+ hasValue: true
257
262
  },
258
263
  "alephZeroTest-NATIVE-TZERO": {
259
264
  originChain: "alephZeroTest",
@@ -265,7 +270,8 @@
265
270
  minAmount: "500",
266
271
  assetType: "NATIVE",
267
272
  metadata: null,
268
- multiChainAsset: null
273
+ multiChainAsset: null,
274
+ hasValue: false
269
275
  },
270
276
  "moonbeam-LOCAL-xcDOT": {
271
277
  originChain: "moonbeam",
@@ -280,7 +286,8 @@
280
286
  assetType: "ForeignAsset",
281
287
  assetId: "42259045809535163221576417993425387648"
282
288
  },
283
- multiChainAsset: "DOT-Polkadot"
289
+ multiChainAsset: "DOT-Polkadot",
290
+ hasValue: true
284
291
  },
285
292
  "moonbeam-LOCAL-xcACA": {
286
293
  originChain: "moonbeam",
@@ -295,7 +302,8 @@
295
302
  assetType: "ForeignAsset",
296
303
  assetId: "224821240862170613278369189818311486111"
297
304
  },
298
- multiChainAsset: "ACA-Acala"
305
+ multiChainAsset: "ACA-Acala",
306
+ hasValue: true
299
307
  },
300
308
  "alephZeroTest-PSP22-PANX-5CY8zDBjUDNwZBHdGbERtLLSZqY7dJYsm1KhY6tSorYvnSke": {
301
309
  originChain: "alephZeroTest",
@@ -309,7 +317,8 @@
309
317
  metadata: {
310
318
  contractAddress: "5CY8zDBjUDNwZBHdGbERtLLSZqY7dJYsm1KhY6tSorYvnSke"
311
319
  },
312
- multiChainAsset: null
320
+ multiChainAsset: null,
321
+ hasValue: false
313
322
  },
314
323
  "moonbeam-ERC721-MFBB-0x02a6dec99b2ca768d638fcd87a96f6069f91287c": {
315
324
  originChain: "moonbeam",
@@ -323,7 +332,21 @@
323
332
  metadata: {
324
333
  contractAddress: "0x02A6DeC99B2Ca768D638fcD87A96F6069F91287c"
325
334
  },
326
- multiChainAsset: null
335
+ multiChainAsset: null,
336
+ hasValue: true
337
+ },
338
+ "ethereum-NATIVE-ETH": {
339
+ originChain: "ethereum",
340
+ slug: "ethereum-NATIVE-ETH",
341
+ name: "Ethereum",
342
+ symbol: "ETH",
343
+ decimals: 18,
344
+ priceId: "ethereum",
345
+ minAmount: "0",
346
+ assetType: "NATIVE",
347
+ metadata: null,
348
+ multiChainAsset: "ETH-Ethereum",
349
+ hasValue: true
327
350
  }
328
351
  };
329
352
 
@@ -348,14 +371,14 @@
348
371
  const _MultiChainAssetMap = {
349
372
  "DOT-Polkadot": {
350
373
  slug: "DOT-Polkadot",
351
- originChainAsset: 1,
374
+ originChainAsset: "polkadot-NATIVE-DOT",
352
375
  name: "Polkadot",
353
376
  symbol: "DOT",
354
377
  priceId: "polkadot"
355
378
  },
356
379
  "KSM-Kusama": {
357
380
  slug: "KSM-Kusama",
358
- originChainAsset: 2,
381
+ originChainAsset: "kusama-NATIVE-KSM",
359
382
  name: "Kusama",
360
383
  symbol: "KSM",
361
384
  priceId: "kusama"
@@ -380,6 +403,13 @@
380
403
  name: "Tether",
381
404
  symbol: "USDT",
382
405
  priceId: "tether"
406
+ },
407
+ "ETH-Ethereum": {
408
+ slug: "ETH-Ethereum",
409
+ originChainAsset: "ethereum-NATIVE-ETH",
410
+ name: "Ethereum",
411
+ symbol: "ETH",
412
+ priceId: "ethereum"
383
413
  }
384
414
  };
385
415
 
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@subwallet/chain-list',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '0.0.3'
16
+ version: '0.0.5'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
@@ -9,7 +9,8 @@
9
9
  "minAmount": "10000000000",
10
10
  "assetType": "NATIVE",
11
11
  "metadata": null,
12
- "multiChainAsset": "DOT-Polkadot"
12
+ "multiChainAsset": "DOT-Polkadot",
13
+ "hasValue": true
13
14
  },
14
15
  "kusama-NATIVE-KSM": {
15
16
  "originChain": "kusama",
@@ -21,7 +22,8 @@
21
22
  "minAmount": "33333333",
22
23
  "assetType": "NATIVE",
23
24
  "metadata": null,
24
- "multiChainAsset": "KSM-Kusama"
25
+ "multiChainAsset": "KSM-Kusama",
26
+ "hasValue": true
25
27
  },
26
28
  "moonbeam-NATIVE-GLMR": {
27
29
  "originChain": "moonbeam",
@@ -33,7 +35,8 @@
33
35
  "minAmount": "0",
34
36
  "assetType": "NATIVE",
35
37
  "metadata": null,
36
- "multiChainAsset": "GLMR-Moonbeam"
38
+ "multiChainAsset": "GLMR-Moonbeam",
39
+ "hasValue": true
37
40
  },
38
41
  "acala-NATIVE-ACA": {
39
42
  "originChain": "acala",
@@ -45,7 +48,8 @@
45
48
  "minAmount": "100000000000",
46
49
  "assetType": "NATIVE",
47
50
  "metadata": null,
48
- "multiChainAsset": "ACA-Acala"
51
+ "multiChainAsset": "ACA-Acala",
52
+ "hasValue": true
49
53
  },
50
54
  "acala-LOCAL-DOT": {
51
55
  "originChain": "acala",
@@ -57,7 +61,8 @@
57
61
  "minAmount": null,
58
62
  "assetType": "LOCAL",
59
63
  "metadata": null,
60
- "multiChainAsset": "DOT-Polkadot"
64
+ "multiChainAsset": "DOT-Polkadot",
65
+ "hasValue": true
61
66
  },
62
67
  "alephZeroTest-NATIVE-TZERO": {
63
68
  "originChain": "alephZeroTest",
@@ -69,7 +74,8 @@
69
74
  "minAmount": "500",
70
75
  "assetType": "NATIVE",
71
76
  "metadata": null,
72
- "multiChainAsset": null
77
+ "multiChainAsset": null,
78
+ "hasValue": false
73
79
  },
74
80
  "moonbeam-LOCAL-xcDOT": {
75
81
  "originChain": "moonbeam",
@@ -84,7 +90,8 @@
84
90
  "assetType": "ForeignAsset",
85
91
  "assetId": "42259045809535163221576417993425387648"
86
92
  },
87
- "multiChainAsset": "DOT-Polkadot"
93
+ "multiChainAsset": "DOT-Polkadot",
94
+ "hasValue": true
88
95
  },
89
96
  "moonbeam-LOCAL-xcACA": {
90
97
  "originChain": "moonbeam",
@@ -99,7 +106,8 @@
99
106
  "assetType": "ForeignAsset",
100
107
  "assetId": "224821240862170613278369189818311486111"
101
108
  },
102
- "multiChainAsset": "ACA-Acala"
109
+ "multiChainAsset": "ACA-Acala",
110
+ "hasValue": true
103
111
  },
104
112
  "alephZeroTest-PSP22-PANX-5CY8zDBjUDNwZBHdGbERtLLSZqY7dJYsm1KhY6tSorYvnSke": {
105
113
  "originChain": "alephZeroTest",
@@ -113,7 +121,8 @@
113
121
  "metadata": {
114
122
  "contractAddress": "5CY8zDBjUDNwZBHdGbERtLLSZqY7dJYsm1KhY6tSorYvnSke"
115
123
  },
116
- "multiChainAsset": null
124
+ "multiChainAsset": null,
125
+ "hasValue": false
117
126
  },
118
127
  "moonbeam-ERC721-MFBB-0x02a6dec99b2ca768d638fcd87a96f6069f91287c": {
119
128
  "originChain": "moonbeam",
@@ -127,6 +136,20 @@
127
136
  "metadata": {
128
137
  "contractAddress": "0x02A6DeC99B2Ca768D638fcD87A96F6069F91287c"
129
138
  },
130
- "multiChainAsset": null
139
+ "multiChainAsset": null,
140
+ "hasValue": true
141
+ },
142
+ "ethereum-NATIVE-ETH": {
143
+ "originChain": "ethereum",
144
+ "slug": "ethereum-NATIVE-ETH",
145
+ "name": "Ethereum",
146
+ "symbol": "ETH",
147
+ "decimals": 18,
148
+ "priceId": "ethereum",
149
+ "minAmount": "0",
150
+ "assetType": "NATIVE",
151
+ "metadata": null,
152
+ "multiChainAsset": "ETH-Ethereum",
153
+ "hasValue": true
131
154
  }
132
155
  }
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "DOT-Polkadot": {
3
3
  "slug": "DOT-Polkadot",
4
- "originChainAsset": 1,
4
+ "originChainAsset": "polkadot-NATIVE-DOT",
5
5
  "name": "Polkadot",
6
6
  "symbol": "DOT",
7
7
  "priceId": "polkadot"
8
8
  },
9
9
  "KSM-Kusama": {
10
10
  "slug": "KSM-Kusama",
11
- "originChainAsset": 2,
11
+ "originChainAsset": "kusama-NATIVE-KSM",
12
12
  "name": "Kusama",
13
13
  "symbol": "KSM",
14
14
  "priceId": "kusama"
@@ -33,5 +33,12 @@
33
33
  "name": "Tether",
34
34
  "symbol": "USDT",
35
35
  "priceId": "tether"
36
+ },
37
+ "ETH-Ethereum": {
38
+ "slug": "ETH-Ethereum",
39
+ "originChainAsset": "ethereum-NATIVE-ETH",
40
+ "name": "Ethereum",
41
+ "symbol": "ETH",
42
+ "priceId": "ethereum"
36
43
  }
37
44
  }
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "0.0.3",
23
+ "version": "0.0.5",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
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.3'
10
+ version: '0.0.5'
11
11
  };
package/types.d.ts CHANGED
@@ -48,6 +48,7 @@ export interface _ChainAsset {
48
48
  assetType: _AssetType;
49
49
  metadata: Record<any, any> | null;
50
50
  multiChainAsset: string | null;
51
+ hasValue: boolean;
51
52
  }
52
53
  export interface _EvmInfo {
53
54
  evmChainId: number;