@ledgerhq/cryptoassets 13.2.0 → 13.3.0-nightly.1
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +12 -0
- package/lib/abandonseed.d.ts.map +1 -1
- package/lib/abandonseed.js +3 -0
- package/lib/abandonseed.js.map +1 -1
- package/lib/currencies.d.ts.map +1 -1
- package/lib/currencies.js +59 -5
- package/lib/currencies.js.map +1 -1
- package/lib/tokens.d.ts.map +1 -1
- package/lib/tokens.js +1 -1
- package/lib/tokens.js.map +1 -1
- package/lib-es/abandonseed.d.ts.map +1 -1
- package/lib-es/abandonseed.js +3 -0
- package/lib-es/abandonseed.js.map +1 -1
- package/lib-es/currencies.d.ts.map +1 -1
- package/lib-es/currencies.js +59 -5
- package/lib-es/currencies.js.map +1 -1
- package/lib-es/tokens.d.ts.map +1 -1
- package/lib-es/tokens.js +1 -1
- package/lib-es/tokens.js.map +1 -1
- package/package.json +2 -2
- package/src/abandonseed.ts +3 -0
- package/src/currencies.ts +60 -6
- package/src/tokens.ts +1 -2
package/src/currencies.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* if bitcoin family, supportsSegwit defines if it supports segwit.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import { CryptoCurrency,
|
|
24
|
+
import { CoinType, CryptoCurrency, CryptoCurrencyId, Unit } from "@ledgerhq/types-cryptoassets";
|
|
25
25
|
|
|
26
26
|
const makeTestnetUnit = u => ({ ...u, code: `𝚝${u.code}` });
|
|
27
27
|
|
|
@@ -1463,12 +1463,42 @@ export const cryptocurrenciesById: Record<CryptoCurrencyId, CryptoCurrency> = {
|
|
|
1463
1463
|
family: "icon",
|
|
1464
1464
|
units: [
|
|
1465
1465
|
{
|
|
1466
|
-
name: "
|
|
1467
|
-
code: "
|
|
1468
|
-
magnitude:
|
|
1466
|
+
name: "ICX",
|
|
1467
|
+
code: "ICX",
|
|
1468
|
+
magnitude: 18,
|
|
1469
|
+
},
|
|
1470
|
+
],
|
|
1471
|
+
explorerViews: [
|
|
1472
|
+
{
|
|
1473
|
+
tx: "https://tracker.icon.community/transaction/$hash",
|
|
1474
|
+
address: "https://tracker.icon.community/address/$address",
|
|
1475
|
+
},
|
|
1476
|
+
],
|
|
1477
|
+
},
|
|
1478
|
+
icon_berlin_testnet: {
|
|
1479
|
+
type: "CryptoCurrency",
|
|
1480
|
+
id: "icon_berlin_testnet",
|
|
1481
|
+
coinType: CoinType.ICON,
|
|
1482
|
+
name: "ICON Berlin Testnet",
|
|
1483
|
+
managerAppName: "ICON",
|
|
1484
|
+
ticker: "ICX",
|
|
1485
|
+
scheme: "icon_berlin_testnet",
|
|
1486
|
+
color: "#00A3B4",
|
|
1487
|
+
family: "icon",
|
|
1488
|
+
isTestnetFor: "icon",
|
|
1489
|
+
units: [
|
|
1490
|
+
{
|
|
1491
|
+
name: "ICX",
|
|
1492
|
+
code: "ICX",
|
|
1493
|
+
magnitude: 18,
|
|
1494
|
+
},
|
|
1495
|
+
],
|
|
1496
|
+
explorerViews: [
|
|
1497
|
+
{
|
|
1498
|
+
tx: "https://tracker.berlin.icon.community/transaction/$hash",
|
|
1499
|
+
address: "https://tracker.berlin.icon.community/address/$address",
|
|
1469
1500
|
},
|
|
1470
1501
|
],
|
|
1471
|
-
explorerViews: [],
|
|
1472
1502
|
},
|
|
1473
1503
|
iota: {
|
|
1474
1504
|
type: "CryptoCurrency",
|
|
@@ -2802,6 +2832,30 @@ export const cryptocurrenciesById: Record<CryptoCurrencyId, CryptoCurrency> = {
|
|
|
2802
2832
|
},
|
|
2803
2833
|
],
|
|
2804
2834
|
},
|
|
2835
|
+
ton: {
|
|
2836
|
+
type: "CryptoCurrency",
|
|
2837
|
+
id: "ton",
|
|
2838
|
+
coinType: CoinType.TON,
|
|
2839
|
+
name: "TON",
|
|
2840
|
+
managerAppName: "TON",
|
|
2841
|
+
ticker: "TON",
|
|
2842
|
+
scheme: "ton",
|
|
2843
|
+
color: "#0098ea",
|
|
2844
|
+
family: "ton",
|
|
2845
|
+
units: [
|
|
2846
|
+
{
|
|
2847
|
+
name: "TON",
|
|
2848
|
+
code: "TON",
|
|
2849
|
+
magnitude: 9,
|
|
2850
|
+
},
|
|
2851
|
+
],
|
|
2852
|
+
explorerViews: [
|
|
2853
|
+
{
|
|
2854
|
+
tx: "https://tonscan.org/tx/$hash",
|
|
2855
|
+
address: "https://tonscan.org/address/$address",
|
|
2856
|
+
},
|
|
2857
|
+
],
|
|
2858
|
+
},
|
|
2805
2859
|
tron: {
|
|
2806
2860
|
type: "CryptoCurrency",
|
|
2807
2861
|
id: "tron",
|
|
@@ -3121,7 +3175,7 @@ export const cryptocurrenciesById: Record<CryptoCurrencyId, CryptoCurrency> = {
|
|
|
3121
3175
|
id: "crypto_org",
|
|
3122
3176
|
coinType: CoinType.CRYPTO_ORG,
|
|
3123
3177
|
name: "Cronos POS Chain",
|
|
3124
|
-
managerAppName: "
|
|
3178
|
+
managerAppName: "Cronos POS Chain",
|
|
3125
3179
|
ticker: "CRO",
|
|
3126
3180
|
scheme: "crypto_org",
|
|
3127
3181
|
color: "#0e1c37",
|
package/src/tokens.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { findCryptoCurrencyById, getCryptoCurrencyById } from "./currencies";
|
|
|
3
3
|
import asatokens, { AlgorandASAToken } from "./data/asa";
|
|
4
4
|
import bep20tokens, { BEP20Token } from "./data/bep20";
|
|
5
5
|
import cardanoNativeTokens, { CardanoNativeToken } from "./data/cardanoNative";
|
|
6
|
+
import casperTokens, { CasperToken } from "./data/casper";
|
|
6
7
|
import erc20tokens, { ERC20Token } from "./data/erc20";
|
|
7
8
|
import esdttokens, { ElrondESDTToken } from "./data/esdt";
|
|
8
9
|
import polygonTokens, { PolygonERC20Token } from "./data/polygon-erc20";
|
|
9
10
|
import stellarTokens, { StellarToken } from "./data/stellar";
|
|
10
|
-
import casperTokens, { CasperToken } from "./data/casper";
|
|
11
11
|
import trc10tokens, { TRC10Token } from "./data/trc10";
|
|
12
12
|
import trc20tokens, { TRC20Token } from "./data/trc20";
|
|
13
13
|
import vechainTokens, { vip180Token } from "./data/vip180";
|
|
@@ -89,7 +89,6 @@ export function listTokensForCryptoCurrency(
|
|
|
89
89
|
options?: Partial<TokensListOptions>,
|
|
90
90
|
): TokenCurrency[] {
|
|
91
91
|
const { withDelisted } = { ...defaultTokenListOptions, ...options };
|
|
92
|
-
|
|
93
92
|
if (withDelisted) {
|
|
94
93
|
return tokensByCryptoCurrencyWithDelisted[currency.id] || emptyArray;
|
|
95
94
|
}
|