@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.
- package/lib/__tests__/test-helpers/setup.js +3 -5
- package/lib/__tests__/test-helpers/setup.js.map +1 -1
- package/lib/apps/config.d.ts.map +1 -1
- package/lib/apps/config.js +1 -0
- package/lib/apps/config.js.map +1 -1
- package/lib/e2e/index.d.ts +0 -2
- package/lib/e2e/index.d.ts.map +1 -1
- package/lib/e2e/speculos.js +1 -1
- package/lib/e2e/speculos.js.map +1 -1
- package/lib/families/tron/data.mock.d.ts.map +1 -1
- package/lib/families/tron/data.mock.js +1 -0
- package/lib/families/tron/data.mock.js.map +1 -1
- package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib/featureFlags/defaultFeatures.js +0 -1
- package/lib/featureFlags/defaultFeatures.js.map +1 -1
- package/lib/featureFlags/useFeature.d.ts +1 -1
- package/lib/featureFlags/useFeature.d.ts.map +1 -1
- package/lib-es/__tests__/test-helpers/setup.js +3 -5
- package/lib-es/__tests__/test-helpers/setup.js.map +1 -1
- package/lib-es/apps/config.d.ts.map +1 -1
- package/lib-es/apps/config.js +1 -0
- package/lib-es/apps/config.js.map +1 -1
- package/lib-es/e2e/index.d.ts +0 -2
- package/lib-es/e2e/index.d.ts.map +1 -1
- package/lib-es/e2e/speculos.js +1 -1
- package/lib-es/e2e/speculos.js.map +1 -1
- package/lib-es/families/tron/data.mock.d.ts.map +1 -1
- package/lib-es/families/tron/data.mock.js +1 -0
- package/lib-es/families/tron/data.mock.js.map +1 -1
- package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
- package/lib-es/featureFlags/defaultFeatures.js +0 -1
- package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
- package/lib-es/featureFlags/useFeature.d.ts +1 -1
- package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
- package/package.json +72 -72
- package/src/DataModel.test.ts +1 -0
- package/src/__tests__/test-helpers/setup.ts +3 -6
- package/src/apps/config.ts +1 -0
- package/src/deposit/deposit.integration.test.ts +15 -0
- package/src/e2e/speculos.ts +1 -1
- package/src/families/tron/data.mock.ts +1 -0
- 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.
|
|
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.
|
|
168
|
-
"@ledgerhq/coin-aptos": "^3.5.0-nightly.
|
|
169
|
-
"@ledgerhq/coin-bitcoin": "^0.24.0-nightly.
|
|
170
|
-
"@ledgerhq/coin-canton": "^0.9.0-nightly.
|
|
171
|
-
"@ledgerhq/coin-cardano": "^0.14.0-nightly.
|
|
172
|
-
"@ledgerhq/coin-casper": "^2.3.0-nightly.
|
|
173
|
-
"@ledgerhq/coin-
|
|
174
|
-
"@ledgerhq/coin-
|
|
175
|
-
"@ledgerhq/coin-evm": "^2.34.0-nightly.
|
|
176
|
-
"@ledgerhq/coin-filecoin": "^1.14.0-nightly.
|
|
177
|
-
"@ledgerhq/coin-
|
|
178
|
-
"@ledgerhq/coin-
|
|
179
|
-
"@ledgerhq/coin-icon": "^0.14.0-nightly.
|
|
180
|
-
"@ledgerhq/coin-internet_computer": "^1.10.0-nightly.
|
|
181
|
-
"@ledgerhq/coin-kaspa": "^1.4.0-nightly.
|
|
182
|
-
"@ledgerhq/coin-
|
|
183
|
-
"@ledgerhq/coin-
|
|
184
|
-
"@ledgerhq/coin-
|
|
185
|
-
"@ledgerhq/coin-polkadot": "^6.12.0-nightly.
|
|
186
|
-
"@ledgerhq/coin-solana": "^0.36.0-nightly.
|
|
187
|
-
"@ledgerhq/coin-stacks": "^0.11.0-nightly.
|
|
188
|
-
"@ledgerhq/coin-stellar": "^6.6.0-nightly.
|
|
189
|
-
"@ledgerhq/coin-sui": "^0.17.0-nightly.
|
|
190
|
-
"@ledgerhq/coin-tezos": "^6.8.0-nightly.
|
|
191
|
-
"@ledgerhq/coin-ton": "^0.16.0-nightly.
|
|
192
|
-
"@ledgerhq/coin-tron": "^5.6.0-nightly.
|
|
193
|
-
"@ledgerhq/coin-vechain": "^2.12.0-nightly.
|
|
194
|
-
"@ledgerhq/coin-xrp": "^7.7.0-nightly.
|
|
195
|
-
"@ledgerhq/crypto-icons-ui": "^1.22.0-nightly.
|
|
196
|
-
"@ledgerhq/cryptoassets": "^13.32.0-nightly.
|
|
197
|
-
"@ledgerhq/device-core": "^0.6.7-nightly.
|
|
198
|
-
"@ledgerhq/devices": "8.7.0-nightly.
|
|
199
|
-
"@ledgerhq/errors": "^6.27.0-nightly.
|
|
200
|
-
"@ledgerhq/hw-app-algorand": "^6.31.9-nightly.
|
|
201
|
-
"@ledgerhq/hw-app-aptos": "^6.34.9-nightly.
|
|
202
|
-
"@ledgerhq/hw-app-btc": "^10.12.0-nightly.
|
|
203
|
-
"@ledgerhq/hw-app-celo": "^6.35.2-nightly.
|
|
204
|
-
"@ledgerhq/hw-app-cosmos": "^6.32.9-nightly.
|
|
205
|
-
"@ledgerhq/hw-app-eth": "^6.47.0-nightly.
|
|
206
|
-
"@ledgerhq/hw-app-exchange": "^0.17.0-nightly.
|
|
207
|
-
"@ledgerhq/hw-app-hedera": "^1.2.9-nightly.
|
|
208
|
-
"@ledgerhq/hw-app-icon": "^1.3.9-nightly.
|
|
209
|
-
"@ledgerhq/hw-app-kaspa": "^1.3.2-nightly.
|
|
210
|
-
"@ledgerhq/hw-app-multiversx": "^6.26.0-nightly.
|
|
211
|
-
"@ledgerhq/hw-app-near": "^6.31.9-nightly.
|
|
212
|
-
"@ledgerhq/hw-app-polkadot": "^6.34.9-nightly.
|
|
213
|
-
"@ledgerhq/hw-app-str": "^7.2.9-nightly.
|
|
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.
|
|
216
|
-
"@ledgerhq/hw-app-trx": "^6.31.9-nightly.
|
|
217
|
-
"@ledgerhq/hw-app-vet": "^0.7.0-nightly.
|
|
218
|
-
"@ledgerhq/hw-
|
|
219
|
-
"@ledgerhq/hw-
|
|
220
|
-
"@ledgerhq/hw-transport": "6.31.13-nightly.
|
|
221
|
-
"@ledgerhq/hw-transport-mocker": "^6.29.13-nightly.
|
|
222
|
-
"@ledgerhq/ledger-cal-service": "^1.8.0-nightly.
|
|
223
|
-
"@ledgerhq/ledger-trust-service": "^0.4.1-nightly.
|
|
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.
|
|
226
|
-
"@ledgerhq/live-
|
|
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-
|
|
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-
|
|
233
|
-
"@ledgerhq/live-signer-
|
|
234
|
-
"@ledgerhq/live-signer-solana": "^0.6.0-nightly.
|
|
235
|
-
"@ledgerhq/live-wallet": "^0.15.0-nightly.
|
|
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.
|
|
238
|
-
"@ledgerhq/wallet-api-acre-module": "^0.9.0-nightly.
|
|
239
|
-
"@ledgerhq/wallet-api-exchange-module": "^0.18.0-nightly.
|
|
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.
|
|
288
|
-
"@ledgerhq/types-cryptoassets": "^7.30.0-nightly.
|
|
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.
|
|
290
|
+
"@ledgerhq/types-live": "^6.88.0-nightly.20251104023745"
|
|
291
291
|
},
|
|
292
292
|
"scripts": {
|
|
293
293
|
"build": "zx ./scripts/build-ts.mjs",
|
package/src/DataModel.test.ts
CHANGED
|
@@ -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
|
|
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
|
-
//
|
|
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);
|
package/src/apps/config.ts
CHANGED
|
@@ -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>;
|
package/src/e2e/speculos.ts
CHANGED
|
@@ -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,
|