@ledgerhq/live-common 34.52.0-nightly.20251101023821 → 34.52.0-nightly.20251104023745

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.
Files changed (42) hide show
  1. package/lib/__tests__/test-helpers/setup.js +3 -5
  2. package/lib/__tests__/test-helpers/setup.js.map +1 -1
  3. package/lib/apps/config.d.ts.map +1 -1
  4. package/lib/apps/config.js +1 -0
  5. package/lib/apps/config.js.map +1 -1
  6. package/lib/e2e/index.d.ts +0 -2
  7. package/lib/e2e/index.d.ts.map +1 -1
  8. package/lib/e2e/speculos.js +1 -1
  9. package/lib/e2e/speculos.js.map +1 -1
  10. package/lib/families/tron/data.mock.d.ts.map +1 -1
  11. package/lib/families/tron/data.mock.js +1 -0
  12. package/lib/families/tron/data.mock.js.map +1 -1
  13. package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
  14. package/lib/featureFlags/defaultFeatures.js +0 -1
  15. package/lib/featureFlags/defaultFeatures.js.map +1 -1
  16. package/lib/featureFlags/useFeature.d.ts +1 -1
  17. package/lib/featureFlags/useFeature.d.ts.map +1 -1
  18. package/lib-es/__tests__/test-helpers/setup.js +3 -5
  19. package/lib-es/__tests__/test-helpers/setup.js.map +1 -1
  20. package/lib-es/apps/config.d.ts.map +1 -1
  21. package/lib-es/apps/config.js +1 -0
  22. package/lib-es/apps/config.js.map +1 -1
  23. package/lib-es/e2e/index.d.ts +0 -2
  24. package/lib-es/e2e/index.d.ts.map +1 -1
  25. package/lib-es/e2e/speculos.js +1 -1
  26. package/lib-es/e2e/speculos.js.map +1 -1
  27. package/lib-es/families/tron/data.mock.d.ts.map +1 -1
  28. package/lib-es/families/tron/data.mock.js +1 -0
  29. package/lib-es/families/tron/data.mock.js.map +1 -1
  30. package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
  31. package/lib-es/featureFlags/defaultFeatures.js +0 -1
  32. package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
  33. package/lib-es/featureFlags/useFeature.d.ts +1 -1
  34. package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
  35. package/package.json +72 -72
  36. package/src/DataModel.test.ts +1 -0
  37. package/src/__tests__/test-helpers/setup.ts +3 -6
  38. package/src/apps/config.ts +1 -0
  39. package/src/deposit/deposit.integration.test.ts +15 -0
  40. package/src/e2e/speculos.ts +1 -1
  41. package/src/families/tron/data.mock.ts +1 -0
  42. package/src/featureFlags/defaultFeatures.ts +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ledgerhq/live-common",
3
3
  "description": "Common ground for the Ledger Live apps",
4
- "version": "34.52.0-nightly.20251101023821",
4
+ "version": "34.52.0-nightly.20251104023745",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/LedgerHQ/ledger-live.git"
@@ -164,79 +164,79 @@
164
164
  "yargs": "^17.0.0",
165
165
  "zod": "^3.22.4",
166
166
  "react-redux": "7.2.9",
167
- "@ledgerhq/coin-algorand": "^0.12.0-nightly.20251101023821",
168
- "@ledgerhq/coin-aptos": "^3.5.0-nightly.20251101023821",
169
- "@ledgerhq/coin-bitcoin": "^0.24.0-nightly.20251101023821",
170
- "@ledgerhq/coin-canton": "^0.9.0-nightly.20251101023821",
171
- "@ledgerhq/coin-cardano": "^0.14.0-nightly.20251101023821",
172
- "@ledgerhq/coin-casper": "^2.3.0-nightly.20251101023821",
173
- "@ledgerhq/coin-celo": "^1.7.0-nightly.20251101023821",
174
- "@ledgerhq/coin-cosmos": "^0.19.0-nightly.20251101023821",
175
- "@ledgerhq/coin-evm": "^2.34.0-nightly.20251101023821",
176
- "@ledgerhq/coin-filecoin": "^1.14.0-nightly.20251101023821",
177
- "@ledgerhq/coin-hedera": "^1.13.0-nightly.20251101023821",
178
- "@ledgerhq/coin-framework": "^6.8.0-nightly.20251101023821",
179
- "@ledgerhq/coin-icon": "^0.14.0-nightly.20251101023821",
180
- "@ledgerhq/coin-internet_computer": "^1.10.0-nightly.20251101023821",
181
- "@ledgerhq/coin-kaspa": "^1.4.0-nightly.20251101023821",
182
- "@ledgerhq/coin-mina": "^1.4.0-nightly.20251101023821",
183
- "@ledgerhq/coin-multiversx": "^0.7.0-nightly.20251101023821",
184
- "@ledgerhq/coin-near": "^0.15.0-nightly.20251101023821",
185
- "@ledgerhq/coin-polkadot": "^6.12.0-nightly.20251101023821",
186
- "@ledgerhq/coin-solana": "^0.36.0-nightly.20251101023821",
187
- "@ledgerhq/coin-stacks": "^0.11.0-nightly.20251101023821",
188
- "@ledgerhq/coin-stellar": "^6.6.0-nightly.20251101023821",
189
- "@ledgerhq/coin-sui": "^0.17.0-nightly.20251101023821",
190
- "@ledgerhq/coin-tezos": "^6.8.0-nightly.20251101023821",
191
- "@ledgerhq/coin-ton": "^0.16.0-nightly.20251101023821",
192
- "@ledgerhq/coin-tron": "^5.6.0-nightly.20251101023821",
193
- "@ledgerhq/coin-vechain": "^2.12.0-nightly.20251101023821",
194
- "@ledgerhq/coin-xrp": "^7.7.0-nightly.20251101023821",
195
- "@ledgerhq/crypto-icons-ui": "^1.22.0-nightly.20251101023821",
196
- "@ledgerhq/cryptoassets": "^13.32.0-nightly.20251101023821",
197
- "@ledgerhq/device-core": "^0.6.7-nightly.20251101023821",
198
- "@ledgerhq/devices": "8.7.0-nightly.20251101023821",
199
- "@ledgerhq/errors": "^6.27.0-nightly.20251101023821",
200
- "@ledgerhq/hw-app-algorand": "^6.31.9-nightly.20251101023821",
201
- "@ledgerhq/hw-app-aptos": "^6.34.9-nightly.20251101023821",
202
- "@ledgerhq/hw-app-btc": "^10.12.0-nightly.20251101023821",
203
- "@ledgerhq/hw-app-celo": "^6.35.2-nightly.20251101023821",
204
- "@ledgerhq/hw-app-cosmos": "^6.32.9-nightly.20251101023821",
205
- "@ledgerhq/hw-app-eth": "^6.47.0-nightly.20251101023821",
206
- "@ledgerhq/hw-app-exchange": "^0.17.0-nightly.20251101023821",
207
- "@ledgerhq/hw-app-hedera": "^1.2.9-nightly.20251101023821",
208
- "@ledgerhq/hw-app-icon": "^1.3.9-nightly.20251101023821",
209
- "@ledgerhq/hw-app-kaspa": "^1.3.2-nightly.20251101023821",
210
- "@ledgerhq/hw-app-multiversx": "^6.26.0-nightly.20251101023821",
211
- "@ledgerhq/hw-app-near": "^6.31.9-nightly.20251101023821",
212
- "@ledgerhq/hw-app-polkadot": "^6.34.9-nightly.20251101023821",
213
- "@ledgerhq/hw-app-str": "^7.2.9-nightly.20251101023821",
167
+ "@ledgerhq/coin-algorand": "^0.12.0-nightly.20251104023745",
168
+ "@ledgerhq/coin-aptos": "^3.5.0-nightly.20251104023745",
169
+ "@ledgerhq/coin-bitcoin": "^0.24.0-nightly.20251104023745",
170
+ "@ledgerhq/coin-canton": "^0.9.0-nightly.20251104023745",
171
+ "@ledgerhq/coin-cardano": "^0.14.0-nightly.20251104023745",
172
+ "@ledgerhq/coin-casper": "^2.3.0-nightly.20251104023745",
173
+ "@ledgerhq/coin-cosmos": "^0.19.0-nightly.20251104023745",
174
+ "@ledgerhq/coin-celo": "^1.7.0-nightly.20251104023745",
175
+ "@ledgerhq/coin-evm": "^2.34.0-nightly.20251104023745",
176
+ "@ledgerhq/coin-filecoin": "^1.14.0-nightly.20251104023745",
177
+ "@ledgerhq/coin-framework": "^6.8.0-nightly.20251104023745",
178
+ "@ledgerhq/coin-hedera": "^1.13.0-nightly.20251104023745",
179
+ "@ledgerhq/coin-icon": "^0.14.0-nightly.20251104023745",
180
+ "@ledgerhq/coin-internet_computer": "^1.10.0-nightly.20251104023745",
181
+ "@ledgerhq/coin-kaspa": "^1.4.0-nightly.20251104023745",
182
+ "@ledgerhq/coin-multiversx": "^0.7.0-nightly.20251104023745",
183
+ "@ledgerhq/coin-near": "^0.15.0-nightly.20251104023745",
184
+ "@ledgerhq/coin-mina": "^1.4.0-nightly.20251104023745",
185
+ "@ledgerhq/coin-polkadot": "^6.12.0-nightly.20251104023745",
186
+ "@ledgerhq/coin-solana": "^0.36.0-nightly.20251104023745",
187
+ "@ledgerhq/coin-stacks": "^0.11.0-nightly.20251104023745",
188
+ "@ledgerhq/coin-stellar": "^6.6.0-nightly.20251104023745",
189
+ "@ledgerhq/coin-sui": "^0.17.0-nightly.20251104023745",
190
+ "@ledgerhq/coin-tezos": "^6.8.0-nightly.20251104023745",
191
+ "@ledgerhq/coin-ton": "^0.16.0-nightly.20251104023745",
192
+ "@ledgerhq/coin-tron": "^5.6.0-nightly.20251104023745",
193
+ "@ledgerhq/coin-vechain": "^2.12.0-nightly.20251104023745",
194
+ "@ledgerhq/coin-xrp": "^7.7.0-nightly.20251104023745",
195
+ "@ledgerhq/crypto-icons-ui": "^1.22.0-nightly.20251104023745",
196
+ "@ledgerhq/cryptoassets": "^13.32.0-nightly.20251104023745",
197
+ "@ledgerhq/device-core": "^0.6.7-nightly.20251104023745",
198
+ "@ledgerhq/devices": "8.7.0-nightly.20251104023745",
199
+ "@ledgerhq/errors": "^6.27.0-nightly.20251104023745",
200
+ "@ledgerhq/hw-app-algorand": "^6.31.9-nightly.20251104023745",
201
+ "@ledgerhq/hw-app-aptos": "^6.34.9-nightly.20251104023745",
202
+ "@ledgerhq/hw-app-btc": "^10.12.0-nightly.20251104023745",
203
+ "@ledgerhq/hw-app-celo": "^6.35.2-nightly.20251104023745",
204
+ "@ledgerhq/hw-app-cosmos": "^6.32.9-nightly.20251104023745",
205
+ "@ledgerhq/hw-app-eth": "^6.47.0-nightly.20251104023745",
206
+ "@ledgerhq/hw-app-exchange": "^0.17.0-nightly.20251104023745",
207
+ "@ledgerhq/hw-app-hedera": "^1.2.9-nightly.20251104023745",
208
+ "@ledgerhq/hw-app-icon": "^1.3.9-nightly.20251104023745",
209
+ "@ledgerhq/hw-app-kaspa": "^1.3.2-nightly.20251104023745",
210
+ "@ledgerhq/hw-app-multiversx": "^6.26.0-nightly.20251104023745",
211
+ "@ledgerhq/hw-app-near": "^6.31.9-nightly.20251104023745",
212
+ "@ledgerhq/hw-app-polkadot": "^6.34.9-nightly.20251104023745",
213
+ "@ledgerhq/hw-app-str": "^7.2.9-nightly.20251104023745",
214
214
  "@ledgerhq/hw-app-sui": "^1.4.0",
215
- "@ledgerhq/hw-app-tezos": "^6.31.9-nightly.20251101023821",
216
- "@ledgerhq/hw-app-trx": "^6.31.9-nightly.20251101023821",
217
- "@ledgerhq/hw-app-vet": "^0.7.0-nightly.20251101023821",
218
- "@ledgerhq/hw-app-xrp": "^6.32.7-nightly.20251101023821",
219
- "@ledgerhq/hw-bolos": "^6.32.9-nightly.20251101023821",
220
- "@ledgerhq/hw-transport": "6.31.13-nightly.20251101023821",
221
- "@ledgerhq/hw-transport-mocker": "^6.29.13-nightly.20251101023821",
222
- "@ledgerhq/ledger-cal-service": "^1.8.0-nightly.20251101023821",
223
- "@ledgerhq/ledger-trust-service": "^0.4.1-nightly.20251101023821",
215
+ "@ledgerhq/hw-app-tezos": "^6.31.9-nightly.20251104023745",
216
+ "@ledgerhq/hw-app-trx": "^6.31.9-nightly.20251104023745",
217
+ "@ledgerhq/hw-app-vet": "^0.7.0-nightly.20251104023745",
218
+ "@ledgerhq/hw-bolos": "^6.32.9-nightly.20251104023745",
219
+ "@ledgerhq/hw-app-xrp": "^6.32.7-nightly.20251104023745",
220
+ "@ledgerhq/hw-transport": "6.31.13-nightly.20251104023745",
221
+ "@ledgerhq/hw-transport-mocker": "^6.29.13-nightly.20251104023745",
222
+ "@ledgerhq/ledger-cal-service": "^1.8.0-nightly.20251104023745",
223
+ "@ledgerhq/ledger-trust-service": "^0.4.1-nightly.20251104023745",
224
+ "@ledgerhq/live-countervalues": "^0.9.0-nightly.20251104023745",
224
225
  "@ledgerhq/live-config": "^3.2.0",
225
- "@ledgerhq/live-countervalues": "^0.9.0-nightly.20251101023821",
226
- "@ledgerhq/live-countervalues-react": "^0.7.1-nightly.20251101023821",
227
- "@ledgerhq/live-dmk-shared": "^0.15.0-nightly.20251101023821",
228
- "@ledgerhq/live-env": "^2.20.0-nightly.20251101023821",
226
+ "@ledgerhq/live-countervalues-react": "^0.7.1-nightly.20251104023745",
227
+ "@ledgerhq/live-dmk-shared": "^0.15.0-nightly.20251104023745",
229
228
  "@ledgerhq/live-hooks": "0.2.0",
230
- "@ledgerhq/live-network": "^2.1.0-nightly.20251101023821",
229
+ "@ledgerhq/live-env": "^2.20.0-nightly.20251104023745",
230
+ "@ledgerhq/live-network": "^2.1.0-nightly.20251104023745",
231
231
  "@ledgerhq/live-promise": "^0.1.1",
232
- "@ledgerhq/live-signer-canton": "^0.5.0-nightly.20251101023821",
233
- "@ledgerhq/live-signer-evm": "^0.10.0-nightly.20251101023821",
234
- "@ledgerhq/live-signer-solana": "^0.6.0-nightly.20251101023821",
235
- "@ledgerhq/live-wallet": "^0.15.0-nightly.20251101023821",
232
+ "@ledgerhq/live-signer-evm": "^0.10.0-nightly.20251104023745",
233
+ "@ledgerhq/live-signer-canton": "^0.5.0-nightly.20251104023745",
234
+ "@ledgerhq/live-signer-solana": "^0.6.0-nightly.20251104023745",
235
+ "@ledgerhq/live-wallet": "^0.15.0-nightly.20251104023745",
236
236
  "@ledgerhq/logs": "^6.13.0",
237
- "@ledgerhq/speculos-transport": "^0.2.14-nightly.20251101023821",
238
- "@ledgerhq/wallet-api-acre-module": "^0.9.0-nightly.20251101023821",
239
- "@ledgerhq/wallet-api-exchange-module": "^0.18.0-nightly.20251101023821"
237
+ "@ledgerhq/speculos-transport": "^0.2.14-nightly.20251104023745",
238
+ "@ledgerhq/wallet-api-acre-module": "^0.9.0-nightly.20251104023745",
239
+ "@ledgerhq/wallet-api-exchange-module": "^0.18.0-nightly.20251104023745"
240
240
  },
241
241
  "devDependencies": {
242
242
  "@solana/web3.js": "1.95.4",
@@ -284,10 +284,10 @@
284
284
  "undici": "6.19.2",
285
285
  "uuid": "^8.3.2",
286
286
  "ws": "7",
287
- "@ledgerhq/device-react": "^0.3.1-nightly.20251101023821",
288
- "@ledgerhq/types-cryptoassets": "^7.30.0-nightly.20251101023821",
287
+ "@ledgerhq/device-react": "^0.3.1-nightly.20251104023745",
288
+ "@ledgerhq/types-cryptoassets": "^7.30.0-nightly.20251104023745",
289
289
  "@ledgerhq/types-devices": "^6.27.0",
290
- "@ledgerhq/types-live": "^6.88.0-nightly.20251101023821"
290
+ "@ledgerhq/types-live": "^6.88.0-nightly.20251104023745"
291
291
  },
292
292
  "scripts": {
293
293
  "build": "zx ./scripts/build-ts.mjs",
@@ -68,6 +68,7 @@ describe("DataModel", () => {
68
68
  setCryptoAssetsStoreForCoinFramework({
69
69
  findTokenById: (_: string) => undefined,
70
70
  findTokenByAddressInCurrency: (_: string, __: string) => undefined,
71
+ getTokensSyncHash: (_: string) => Promise.resolve("test_hash"),
71
72
  } as CryptoAssetsStore);
72
73
 
73
74
  test("createDataModel for crypto.org account", () => {
@@ -1,5 +1,5 @@
1
1
  import { setCryptoAssetsStore as setCryptoAssetsStoreForCoinFramework } from "@ledgerhq/coin-framework/crypto-assets/index";
2
- import type { CryptoAssetsStore } from "@ledgerhq/types-live";
2
+ import { legacyCryptoAssetsStore } from "@ledgerhq/cryptoassets/tokens";
3
3
  import "./environment";
4
4
  import BigNumber from "bignumber.js";
5
5
 
@@ -14,8 +14,5 @@ expect.extend({
14
14
  },
15
15
  });
16
16
 
17
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
18
- setCryptoAssetsStoreForCoinFramework({
19
- findTokenById: (_: string) => undefined,
20
- findTokenByAddressInCurrency: (_: string, __: string) => undefined,
21
- } as CryptoAssetsStore);
17
+ // Use legacyCryptoAssetsStore for integration tests so tokens can be found
18
+ setCryptoAssetsStoreForCoinFramework(legacyCryptoAssetsStore);
@@ -42,6 +42,7 @@ const appConfig: Record<string, ConfigInfo> = {
42
42
  type: "object",
43
43
  default: {
44
44
  minVersion: "1.5.0",
45
+ nanosMinVersion: "1.3.2",
45
46
  },
46
47
  },
47
48
  config_nanoapp_cardano_ada: {
@@ -7,6 +7,21 @@ import { useGroupedCurrenciesByProvider } from ".";
7
7
  import { GroupedCurrencies, LoadingBasedGroupedCurrencies, MappedAsset } from "./type";
8
8
  import * as api from "./api";
9
9
 
10
+ // Mock dependencies for useAcceptedCurrency
11
+ jest.mock("../featureFlags", () => ({
12
+ useFeature: jest.fn().mockReturnValue({ enabled: true }),
13
+ }));
14
+
15
+ jest.mock("../hooks/useEnv", () => jest.fn().mockReturnValue(false));
16
+
17
+ // Mock the countervalues API for currenciesByMarketcap
18
+ jest.mock("@ledgerhq/live-countervalues/api/index", () => ({
19
+ __esModule: true,
20
+ default: {
21
+ fetchIdsSortedByMarketcap: jest.fn().mockResolvedValue(["bitcoin", "ethereum"]),
22
+ },
23
+ }));
24
+
10
25
  // Mock the API module
11
26
  jest.mock("./api");
12
27
  const mockGetMappedAssets = api.getMappedAssets as jest.MockedFunction<typeof api.getMappedAssets>;
@@ -892,7 +892,7 @@ export async function verifyAmountsAndAcceptSwapForDifferentSeed(
892
892
  amount: string,
893
893
  errorMessage: string | null,
894
894
  ) {
895
- if (errorMessage === null) {
895
+ if (errorMessage === null && isTouchDevice()) {
896
896
  await waitFor(DeviceLabels.RECEIVE_ADDRESS_DOES_NOT_BELONG);
897
897
  await pressAndRelease(DeviceLabels.CONTINUE_ANYWAY);
898
898
  } else {
@@ -11,6 +11,7 @@ export const __LAST_VOTING_DATE__ = new Date(Date.now() - 6 * 60 * 60 * 1000);
11
11
  setCryptoAssetsStoreForCoinFramework({
12
12
  findTokenById: (_: string) => undefined,
13
13
  findTokenByAddressInCurrency: (_: string, __: string) => undefined,
14
+ getTokensSyncHash: (_: string) => Promise.resolve("test_hash"),
14
15
  } as unknown as CryptoAssetsStore);
15
16
 
16
17
  export const mockAccount = fromAccountRaw({
@@ -551,7 +551,6 @@ export const DEFAULT_FEATURES: Features = {
551
551
  },
552
552
  },
553
553
  llmRebornLP: { ...DEFAULT_FEATURE, params: { variant: ABTestingVariants.variantA } },
554
- llmRebornFlex: DEFAULT_FEATURE,
555
554
  llmAccountListUI: DEFAULT_FEATURE,
556
555
  llmLedgerSyncEntryPoints: {
557
556
  ...DEFAULT_FEATURE,