@ledgerhq/cryptoassets 13.32.0-nightly.5 → 13.33.0-nightly.20251107095716
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/.unimportedrc.json +7 -2
- package/CHANGELOG.md +53 -24
- package/lib/data/trc10.json +1 -1
- package/lib/data/trc20.json +1 -1
- package/lib/legacy/legacy-store.d.ts +0 -4
- package/lib/legacy/legacy-store.d.ts.map +1 -1
- package/lib/legacy/legacy-store.js +2 -6
- package/lib/legacy/legacy-store.js.map +1 -1
- package/lib/legacy/legacy-utils.d.ts.map +1 -1
- package/lib/legacy/legacy-utils.js +6 -1
- package/lib/legacy/legacy-utils.js.map +1 -1
- package/lib/tokens.d.ts +6 -16
- package/lib/tokens.d.ts.map +1 -1
- package/lib/tokens.js +6 -40
- package/lib/tokens.js.map +1 -1
- package/lib-es/data/trc10.json +1 -1
- package/lib-es/data/trc20.json +1 -1
- package/lib-es/legacy/legacy-store.d.ts +0 -4
- package/lib-es/legacy/legacy-store.d.ts.map +1 -1
- package/lib-es/legacy/legacy-store.js +2 -6
- package/lib-es/legacy/legacy-store.js.map +1 -1
- package/lib-es/legacy/legacy-utils.d.ts.map +1 -1
- package/lib-es/legacy/legacy-utils.js +6 -1
- package/lib-es/legacy/legacy-utils.js.map +1 -1
- package/lib-es/tokens.d.ts +6 -16
- package/lib-es/tokens.d.ts.map +1 -1
- package/lib-es/tokens.js +6 -23
- package/lib-es/tokens.js.map +1 -1
- package/package.json +5 -5
- package/src/backtest-tokenTypes.test.ts +5 -0
- package/src/currencies.test.ts +22 -8
- package/src/data/trc10.json +1 -1
- package/src/data/trc20.json +1 -1
- package/src/hooks.test.ts +9 -7
- package/src/legacy/legacy-store.ts +3 -7
- package/src/legacy/legacy-utils.ts +7 -2
- package/src/legacy/legacy.test.ts +15 -10
- package/src/tokens.test.ts +8 -10
- package/src/tokens.ts +5 -61
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/cryptoassets@13.32.0
|
|
2
|
+
> @ledgerhq/cryptoassets@13.32.0 build /home/runner/work/ledger-live/ledger-live/libs/ledgerjs/packages/cryptoassets
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/.unimportedrc.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"entry": [
|
|
2
|
+
"entry": [
|
|
3
|
+
"src/index.ts",
|
|
4
|
+
"src/hooks.ts",
|
|
5
|
+
"src/legacy/legacy-data.ts",
|
|
6
|
+
"src/crypto-assets-importer/index.ts"
|
|
7
|
+
],
|
|
3
8
|
"ignorePatterns": ["src/data/**/*.ts", "src/**/*.test.ts"],
|
|
4
|
-
"ignoreUnimported": ["src/data/**", "src/**/*.test.ts", "src/cal-client/**"],
|
|
9
|
+
"ignoreUnimported": ["src/data/**", "src/**/*.test.ts", "src/cal-client/**", "src/legacy/legacy-data.ts"],
|
|
5
10
|
"ignoreUnused": ["zod", "@reduxjs/toolkit"]
|
|
6
11
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,63 +1,92 @@
|
|
|
1
1
|
# @ledgerhq/cryptoassets
|
|
2
2
|
|
|
3
|
-
## 13.
|
|
3
|
+
## 13.33.0-nightly.20251107095716
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
7
|
+
- [#12572](https://github.com/LedgerHQ/ledger-live/pull/12572) [`74a340b`](https://github.com/LedgerHQ/ledger-live/commit/74a340b258589c9c37476103029eb036b930616c) Thanks [@gre-ledger](https://github.com/gre-ledger)! - BREAKING: CryptoAssetsStore interface is now fully async. All token lookup methods return Promises. Bot system and coin modules updated to support async token operations.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- [#12580](https://github.com/LedgerHQ/ledger-live/pull/12580) [`b69c97d`](https://github.com/LedgerHQ/ledger-live/commit/b69c97d979ba97154c9abfda6abfc2a36becee4f) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Fix TRC10/TRC20 token duplication causing inconsistent lookups
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
- Eliminated 2,815 contract address conflicts between TRC10 and TRC20 tokens
|
|
12
|
+
- Prioritized TRC20 tokens when contract addresses exist in both files
|
|
13
|
+
- Ensured consistent token resolution for `byAddress` and `byId` lookups
|
|
14
|
+
- Aligned local data with backend CAL API behavior
|
|
12
15
|
|
|
13
|
-
- [#
|
|
16
|
+
- [#12572](https://github.com/LedgerHQ/ledger-live/pull/12572) [`c0b5b9f`](https://github.com/LedgerHQ/ledger-live/commit/c0b5b9f4cdcb2ea3e15419cbf3d1a14f725c3e6a) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Make legacy token initialization explicit instead of automatic. This prepares for the async migration by giving applications control over when tokens are loaded.
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
### Patch Changes
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
- Updated dependencies [[`74a340b`](https://github.com/LedgerHQ/ledger-live/commit/74a340b258589c9c37476103029eb036b930616c), [`a6bc24e`](https://github.com/LedgerHQ/ledger-live/commit/a6bc24ee988b98bf82f807ac5ce731ba79813901), [`544721d`](https://github.com/LedgerHQ/ledger-live/commit/544721d198454526ef83516619d59c881ba34eb9), [`1c6f5f5`](https://github.com/LedgerHQ/ledger-live/commit/1c6f5f5843349b1955f7ca466f98cbe4ffcdaddf), [`d5d838a`](https://github.com/LedgerHQ/ledger-live/commit/d5d838a23e00edd53293843781c559c41db4e854), [`70049be`](https://github.com/LedgerHQ/ledger-live/commit/70049bed0cd0a8c7a9e4947a63af82061dad46c0), [`5b41dd5`](https://github.com/LedgerHQ/ledger-live/commit/5b41dd56e024a5d03ba0e49084113c04887395db), [`c70f6a8`](https://github.com/LedgerHQ/ledger-live/commit/c70f6a8370056b6fd8f236205471359d6f9b846f)]:
|
|
21
|
+
- @ledgerhq/types-live@6.89.0-nightly.20251107095716
|
|
18
22
|
|
|
19
|
-
|
|
23
|
+
## 13.32.0
|
|
20
24
|
|
|
21
|
-
###
|
|
25
|
+
### Minor Changes
|
|
22
26
|
|
|
23
|
-
-
|
|
24
|
-
- @ledgerhq/types-live@6.88.0-nightly.3
|
|
27
|
+
- [#12257](https://github.com/LedgerHQ/ledger-live/pull/12257) [`b4ceaff`](https://github.com/LedgerHQ/ledger-live/commit/b4ceaff2ecf68d8a14e09801c76ab0b014c45286) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Introduce hooks in cryptoassets
|
|
25
28
|
|
|
26
|
-
|
|
29
|
+
- [#12277](https://github.com/LedgerHQ/ledger-live/pull/12277) [`da750a1`](https://github.com/LedgerHQ/ledger-live/commit/da750a16ee5f2c083114569b8ae3c708cceba06c) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Make CryptoCurrency dynamically loadable.
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
- [#12321](https://github.com/LedgerHQ/ledger-live/pull/12321) [`63e8f34`](https://github.com/LedgerHQ/ledger-live/commit/63e8f342f6b951ab77bb710b9971f033c05e579e) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Bump axios version to 1.12.2
|
|
29
32
|
|
|
30
33
|
- [#12316](https://github.com/LedgerHQ/ledger-live/pull/12316) [`ccf788d`](https://github.com/LedgerHQ/ledger-live/commit/ccf788d7c0239ca95e76c3cc340f9a6bd09ea726) Thanks [@qperrot](https://github.com/qperrot)! - Feature CoinTester Bitcoin and Currency regtest
|
|
31
34
|
|
|
32
35
|
- [#12420](https://github.com/LedgerHQ/ledger-live/pull/12420) [`34b28dd`](https://github.com/LedgerHQ/ledger-live/commit/34b28dd5e819906daaa79db5fe6064674def5e7d) Thanks [@semeano](https://github.com/semeano)! - Add Monad currency
|
|
33
36
|
|
|
37
|
+
- [#12460](https://github.com/LedgerHQ/ledger-live/pull/12460) [`607e4be`](https://github.com/LedgerHQ/ledger-live/commit/607e4be33145c102debce1606224b08579888aa8) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Simplify & implement all cal-client API for future Remove CAL.
|
|
38
|
+
|
|
39
|
+
- [#12516](https://github.com/LedgerHQ/ledger-live/pull/12516) [`f8d904d`](https://github.com/LedgerHQ/ledger-live/commit/f8d904de5607c103549f247428b5a4079f28c1c0) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Update networkFamily params in CAL-client
|
|
40
|
+
|
|
34
41
|
- [#12421](https://github.com/LedgerHQ/ledger-live/pull/12421) [`b962966`](https://github.com/LedgerHQ/ledger-live/commit/b962966525517c5cfa7f1f8826f8f2b9162189e4) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Introduce CAL client hook
|
|
35
42
|
|
|
43
|
+
- [#12307](https://github.com/LedgerHQ/ledger-live/pull/12307) [`36e5168`](https://github.com/LedgerHQ/ledger-live/commit/36e5168397eaec2a5f425038392a4400f60571d0) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Add useCurrencyById hook to cryptoassets package that finds a currency by ID (crypto or token) with async loading state. Updates mobile and desktop apps to use the new hook for currency/token lookups.
|
|
44
|
+
|
|
45
|
+
- [#12442](https://github.com/LedgerHQ/ledger-live/pull/12442) [`6ccabef`](https://github.com/LedgerHQ/ledger-live/commit/6ccabef8f3c4e8cc042299d531684595ebadcc55) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Refactor api-token-converter to fix bad tokens data
|
|
46
|
+
|
|
47
|
+
- [#12382](https://github.com/LedgerHQ/ledger-live/pull/12382) [`3d4188a`](https://github.com/LedgerHQ/ledger-live/commit/3d4188a26021d33b950129d82cb55d2c2e8d4358) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Introduce CryptoAssetStore#getTokensSyncHash function
|
|
48
|
+
|
|
49
|
+
- [#12274](https://github.com/LedgerHQ/ledger-live/pull/12274) [`d9305e8`](https://github.com/LedgerHQ/ledger-live/commit/d9305e8a4d8364366aaba05dd698396d28b539dc) Thanks [@hhumphrey-ledger](https://github.com/hhumphrey-ledger)! - Remove cryptoassets fallback from exchange config flow
|
|
50
|
+
|
|
36
51
|
### Patch Changes
|
|
37
52
|
|
|
38
|
-
- Updated dependencies [[`ccf788d`](https://github.com/LedgerHQ/ledger-live/commit/ccf788d7c0239ca95e76c3cc340f9a6bd09ea726), [`34b28dd`](https://github.com/LedgerHQ/ledger-live/commit/34b28dd5e819906daaa79db5fe6064674def5e7d), [`b962966`](https://github.com/LedgerHQ/ledger-live/commit/b962966525517c5cfa7f1f8826f8f2b9162189e4)]:
|
|
39
|
-
- @ledgerhq/live-env@2.20.0
|
|
40
|
-
- @ledgerhq/types-live@6.88.0
|
|
53
|
+
- Updated dependencies [[`ccf788d`](https://github.com/LedgerHQ/ledger-live/commit/ccf788d7c0239ca95e76c3cc340f9a6bd09ea726), [`34b28dd`](https://github.com/LedgerHQ/ledger-live/commit/34b28dd5e819906daaa79db5fe6064674def5e7d), [`7744980`](https://github.com/LedgerHQ/ledger-live/commit/774498090411f1a6d6c06395dda1fc7cd24adf24), [`77566c5`](https://github.com/LedgerHQ/ledger-live/commit/77566c5a3b5795f5938bd5daaa5f8d65934c56b8), [`b962966`](https://github.com/LedgerHQ/ledger-live/commit/b962966525517c5cfa7f1f8826f8f2b9162189e4), [`f392f69`](https://github.com/LedgerHQ/ledger-live/commit/f392f6912f445cc2f7cf4dfcfd030fa3da76f736), [`cadf2e1`](https://github.com/LedgerHQ/ledger-live/commit/cadf2e1dfb09248d3f77d96f94ae774425dbca75), [`cbc0648`](https://github.com/LedgerHQ/ledger-live/commit/cbc064885d8e0459e40d327a2e5389204b3ec705), [`3d4188a`](https://github.com/LedgerHQ/ledger-live/commit/3d4188a26021d33b950129d82cb55d2c2e8d4358), [`2c6a198`](https://github.com/LedgerHQ/ledger-live/commit/2c6a198ba28391695202a0787ce168c53768ff37)]:
|
|
54
|
+
- @ledgerhq/live-env@2.20.0
|
|
55
|
+
- @ledgerhq/types-live@6.88.0
|
|
41
56
|
|
|
42
|
-
## 13.32.0-
|
|
57
|
+
## 13.32.0-next.0
|
|
43
58
|
|
|
44
59
|
### Minor Changes
|
|
45
60
|
|
|
61
|
+
- [#12257](https://github.com/LedgerHQ/ledger-live/pull/12257) [`b4ceaff`](https://github.com/LedgerHQ/ledger-live/commit/b4ceaff2ecf68d8a14e09801c76ab0b014c45286) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Introduce hooks in cryptoassets
|
|
62
|
+
|
|
63
|
+
- [#12277](https://github.com/LedgerHQ/ledger-live/pull/12277) [`da750a1`](https://github.com/LedgerHQ/ledger-live/commit/da750a16ee5f2c083114569b8ae3c708cceba06c) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Make CryptoCurrency dynamically loadable.
|
|
64
|
+
|
|
46
65
|
- [#12321](https://github.com/LedgerHQ/ledger-live/pull/12321) [`63e8f34`](https://github.com/LedgerHQ/ledger-live/commit/63e8f342f6b951ab77bb710b9971f033c05e579e) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Bump axios version to 1.12.2
|
|
47
66
|
|
|
48
|
-
- [#
|
|
67
|
+
- [#12316](https://github.com/LedgerHQ/ledger-live/pull/12316) [`ccf788d`](https://github.com/LedgerHQ/ledger-live/commit/ccf788d7c0239ca95e76c3cc340f9a6bd09ea726) Thanks [@qperrot](https://github.com/qperrot)! - Feature CoinTester Bitcoin and Currency regtest
|
|
49
68
|
|
|
50
|
-
|
|
69
|
+
- [#12420](https://github.com/LedgerHQ/ledger-live/pull/12420) [`34b28dd`](https://github.com/LedgerHQ/ledger-live/commit/34b28dd5e819906daaa79db5fe6064674def5e7d) Thanks [@semeano](https://github.com/semeano)! - Add Monad currency
|
|
70
|
+
|
|
71
|
+
- [#12460](https://github.com/LedgerHQ/ledger-live/pull/12460) [`607e4be`](https://github.com/LedgerHQ/ledger-live/commit/607e4be33145c102debce1606224b08579888aa8) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Simplify & implement all cal-client API for future Remove CAL.
|
|
72
|
+
|
|
73
|
+
- [#12516](https://github.com/LedgerHQ/ledger-live/pull/12516) [`f8d904d`](https://github.com/LedgerHQ/ledger-live/commit/f8d904de5607c103549f247428b5a4079f28c1c0) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Update networkFamily params in CAL-client
|
|
74
|
+
|
|
75
|
+
- [#12421](https://github.com/LedgerHQ/ledger-live/pull/12421) [`b962966`](https://github.com/LedgerHQ/ledger-live/commit/b962966525517c5cfa7f1f8826f8f2b9162189e4) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Introduce CAL client hook
|
|
51
76
|
|
|
52
|
-
-
|
|
53
|
-
|
|
77
|
+
- [#12307](https://github.com/LedgerHQ/ledger-live/pull/12307) [`36e5168`](https://github.com/LedgerHQ/ledger-live/commit/36e5168397eaec2a5f425038392a4400f60571d0) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Add useCurrencyById hook to cryptoassets package that finds a currency by ID (crypto or token) with async loading state. Updates mobile and desktop apps to use the new hook for currency/token lookups.
|
|
78
|
+
|
|
79
|
+
- [#12442](https://github.com/LedgerHQ/ledger-live/pull/12442) [`6ccabef`](https://github.com/LedgerHQ/ledger-live/commit/6ccabef8f3c4e8cc042299d531684595ebadcc55) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Refactor api-token-converter to fix bad tokens data
|
|
80
|
+
|
|
81
|
+
- [#12382](https://github.com/LedgerHQ/ledger-live/pull/12382) [`3d4188a`](https://github.com/LedgerHQ/ledger-live/commit/3d4188a26021d33b950129d82cb55d2c2e8d4358) Thanks [@gre-ledger](https://github.com/gre-ledger)! - Introduce CryptoAssetStore#getTokensSyncHash function
|
|
54
82
|
|
|
55
|
-
|
|
83
|
+
- [#12274](https://github.com/LedgerHQ/ledger-live/pull/12274) [`d9305e8`](https://github.com/LedgerHQ/ledger-live/commit/d9305e8a4d8364366aaba05dd698396d28b539dc) Thanks [@hhumphrey-ledger](https://github.com/hhumphrey-ledger)! - Remove cryptoassets fallback from exchange config flow
|
|
56
84
|
|
|
57
85
|
### Patch Changes
|
|
58
86
|
|
|
59
|
-
- Updated dependencies [[`2c6a198`](https://github.com/LedgerHQ/ledger-live/commit/2c6a198ba28391695202a0787ce168c53768ff37)]:
|
|
60
|
-
- @ledgerhq/
|
|
87
|
+
- Updated dependencies [[`ccf788d`](https://github.com/LedgerHQ/ledger-live/commit/ccf788d7c0239ca95e76c3cc340f9a6bd09ea726), [`34b28dd`](https://github.com/LedgerHQ/ledger-live/commit/34b28dd5e819906daaa79db5fe6064674def5e7d), [`7744980`](https://github.com/LedgerHQ/ledger-live/commit/774498090411f1a6d6c06395dda1fc7cd24adf24), [`77566c5`](https://github.com/LedgerHQ/ledger-live/commit/77566c5a3b5795f5938bd5daaa5f8d65934c56b8), [`b962966`](https://github.com/LedgerHQ/ledger-live/commit/b962966525517c5cfa7f1f8826f8f2b9162189e4), [`f392f69`](https://github.com/LedgerHQ/ledger-live/commit/f392f6912f445cc2f7cf4dfcfd030fa3da76f736), [`cadf2e1`](https://github.com/LedgerHQ/ledger-live/commit/cadf2e1dfb09248d3f77d96f94ae774425dbca75), [`cbc0648`](https://github.com/LedgerHQ/ledger-live/commit/cbc064885d8e0459e40d327a2e5389204b3ec705), [`3d4188a`](https://github.com/LedgerHQ/ledger-live/commit/3d4188a26021d33b950129d82cb55d2c2e8d4358), [`2c6a198`](https://github.com/LedgerHQ/ledger-live/commit/2c6a198ba28391695202a0787ce168c53768ff37)]:
|
|
88
|
+
- @ledgerhq/live-env@2.20.0-next.0
|
|
89
|
+
- @ledgerhq/types-live@6.88.0-next.0
|
|
61
90
|
|
|
62
91
|
## 13.31.0
|
|
63
92
|
|