@ledgerhq/cryptoassets 6.16.0 → 6.20.0

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/src/currencies.ts CHANGED
@@ -241,7 +241,7 @@ const cryptocurrenciesById: Record<string, CryptoCurrency> = {
241
241
  ticker: "AVAX",
242
242
  scheme: "avalanche",
243
243
  color: "#E84142",
244
- family: "ethereum",
244
+ family: "avalanche",
245
245
  units: [
246
246
  {
247
247
  name: "AVAX",
@@ -525,6 +525,35 @@ const cryptocurrenciesById: Record<string, CryptoCurrency> = {
525
525
  },
526
526
  ],
527
527
  },
528
+ celo: {
529
+ type: "CryptoCurrency",
530
+ id: "celo",
531
+ coinType: 52752,
532
+ name: "Celo",
533
+ managerAppName: "Celo",
534
+ blockAvgTime: 5,
535
+ ticker: "CELO",
536
+ scheme: "celo",
537
+ color: "#35D07F",
538
+ family: "celo",
539
+ units: [
540
+ {
541
+ name: "CELO",
542
+ code: "CELO",
543
+ magnitude: 18,
544
+ },
545
+ ],
546
+ explorerViews: [
547
+ {
548
+ tx: "http://hubble.figment.io/celo/chains/celo/transactions/$hash",
549
+ address: "https://hubble.figment.io/celo/chains/celo/accounts/$address",
550
+ },
551
+ {
552
+ tx: "https://explorer.celo.org/tx/$hash",
553
+ address: "https://explorer.celo.org/address/$address",
554
+ },
555
+ ],
556
+ },
528
557
  clubcoin: {
529
558
  terminated: {
530
559
  link: "https://support.ledger.com/",
@@ -1280,6 +1309,30 @@ const cryptocurrenciesById: Record<string, CryptoCurrency> = {
1280
1309
  ],
1281
1310
  explorerViews: [],
1282
1311
  },
1312
+ icp: {
1313
+ type: "CryptoCurrency",
1314
+ id: "icp",
1315
+ coinType: 223,
1316
+ family: "icp",
1317
+ ticker: "ICP",
1318
+ scheme: "icp",
1319
+ color: "#000",
1320
+ managerAppName: "InternetComputer",
1321
+ name: "Internet Computer (ICP)",
1322
+ units: [
1323
+ {
1324
+ name: "ICP",
1325
+ code: "ICP",
1326
+ magnitude: 8,
1327
+ },
1328
+ ],
1329
+ explorerViews: [
1330
+ {
1331
+ address: "https://dashboard.internetcomputer.org/account/$address",
1332
+ tx: "https://dashboard.internetcomputer.org/transaction/$hash",
1333
+ },
1334
+ ],
1335
+ },
1283
1336
  iota: {
1284
1337
  type: "CryptoCurrency",
1285
1338
  id: "iota",
@@ -1524,6 +1577,35 @@ const cryptocurrenciesById: Record<string, CryptoCurrency> = {
1524
1577
  },
1525
1578
  ],
1526
1579
  },
1580
+ moonriver: {
1581
+ type: "CryptoCurrency",
1582
+ id: "moonriver",
1583
+ coinType: 60,
1584
+ name: "Moonriver",
1585
+ managerAppName: "Moonriver",
1586
+ ticker: "MOVR",
1587
+ scheme: "moonriver",
1588
+ color: "#F2A007",
1589
+ family: "ethereum",
1590
+ units: [
1591
+ {
1592
+ name: "MOVR",
1593
+ code: "MOVR",
1594
+ magnitude: 18,
1595
+ },
1596
+ ],
1597
+ ethereumLikeInfo: {
1598
+ chainId: 1285,
1599
+ },
1600
+ explorerViews: [
1601
+ {
1602
+ tx: "https://moonriver.moonscan.io/tx/$hash",
1603
+ address: "https://moonriver.moonscan.io/address/$address",
1604
+ token:
1605
+ "https://moonriver.moonscan.io/token/$contractAddress?a=$address",
1606
+ },
1607
+ ],
1608
+ },
1527
1609
  musicoin: {
1528
1610
  type: "CryptoCurrency",
1529
1611
  id: "musicoin",
package/src/tokens.ts CHANGED
@@ -6,7 +6,7 @@ import trc20tokens from "../data/trc20";
6
6
  import bep20tokens from "../data/bep20";
7
7
  import polygonTokens from "../data/polygon-erc20";
8
8
  import asatokens from "../data/asa";
9
- import spltokens from "../data/spl";
9
+ //import spltokens from "../data/spl";
10
10
  const emptyArray = [];
11
11
  const tokensArray: TokenCurrency[] = [];
12
12
  const tokensArrayWithDelisted: TokenCurrency[] = [];
@@ -22,7 +22,7 @@ addTokens(trc10tokens.map(convertTRONTokens("trc10")));
22
22
  addTokens(trc20tokens.map(convertTRONTokens("trc20")));
23
23
  addTokens(bep20tokens.map(convertBEP20));
24
24
  addTokens(asatokens.map(convertAlgorandASATokens));
25
- addTokens(spltokens.map(convertSplTokens));
25
+ //addTokens(spltokens.map(convertSplTokens));
26
26
  type TokensListOptions = {
27
27
  withDelisted: boolean;
28
28
  };
@@ -307,6 +307,7 @@ function convertTRONTokens(type: "trc10" | "trc20") {
307
307
  });
308
308
  }
309
309
 
310
+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
310
311
  function convertSplTokens([
311
312
  chainId,
312
313
  name,