@ledgerhq/live-common 34.46.0-nightly.2 → 34.46.0-nightly.4
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/bridge/crypto-assets/index.d.ts +1 -1
- package/lib/bridge/crypto-assets/index.d.ts.map +1 -1
- package/lib/bridge/crypto-assets/index.js +1 -1
- package/lib/bridge/crypto-assets/index.js.map +1 -1
- package/lib/bridge/impl.d.ts +1 -1
- package/lib/bridge/impl.d.ts.map +1 -1
- package/lib/domain/getTokensWithFunds.test.js +1 -1
- package/lib/domain/getTokensWithFunds.test.js.map +1 -1
- package/lib/e2e/index.d.ts +3 -0
- package/lib/e2e/index.d.ts.map +1 -1
- package/lib/env.react.d.ts +1 -1
- package/lib/env.react.d.ts.map +1 -1
- package/lib/families/evm/setup.d.ts.map +1 -1
- package/lib/families/evm/setup.js +11 -1
- package/lib/families/evm/setup.js.map +1 -1
- package/lib/families/hedera/constants.d.ts +2 -0
- package/lib/families/hedera/constants.d.ts.map +1 -0
- package/lib/families/hedera/constants.js +19 -0
- package/lib/families/hedera/constants.js.map +1 -0
- package/lib/families/hedera/setup.d.ts +5 -5
- package/lib/families/hedera/setup.d.ts.map +1 -1
- package/lib/families/hedera/setup.js.map +1 -1
- package/lib/families/solana/setup.d.ts.map +1 -1
- package/lib/families/solana/setup.js +2 -1
- package/lib/families/solana/setup.js.map +1 -1
- package/lib/generated/bridge/js.d.ts +1 -1
- package/lib/market/utils/countervalueFormatter.d.ts.map +1 -1
- package/lib/market/utils/countervalueFormatter.js.map +1 -1
- package/lib/market/utils/types.d.ts +2 -0
- package/lib/market/utils/types.d.ts.map +1 -1
- package/lib/modularDrawer/__mocks__/currencies.mock.d.ts.map +1 -1
- package/lib/modularDrawer/__mocks__/currencies.mock.js +7 -7
- package/lib/modularDrawer/__mocks__/currencies.mock.js.map +1 -1
- package/lib/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.js +1 -1
- package/lib/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.js.map +1 -1
- package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts +2 -0
- package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts.map +1 -0
- package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.js +496 -0
- package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.js.map +1 -0
- package/lib/modularDrawer/utils/__tests__/currencyUtils.test.js +1 -1
- package/lib/modularDrawer/utils/__tests__/currencyUtils.test.js.map +1 -1
- package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js +1 -1
- package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js.map +1 -1
- package/lib/modularDrawer/utils/calculateProviderTotal.d.ts +9 -0
- package/lib/modularDrawer/utils/calculateProviderTotal.d.ts.map +1 -0
- package/lib/modularDrawer/utils/calculateProviderTotal.js +23 -0
- package/lib/modularDrawer/utils/calculateProviderTotal.js.map +1 -0
- package/lib/modularDrawer/utils/counterValueFormatter.d.ts +14 -0
- package/lib/modularDrawer/utils/counterValueFormatter.d.ts.map +1 -0
- package/lib/modularDrawer/utils/counterValueFormatter.js +107 -0
- package/lib/modularDrawer/utils/counterValueFormatter.js.map +1 -0
- package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts +11 -0
- package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts.map +1 -0
- package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.js +45 -0
- package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.js.map +1 -0
- package/lib/modularDrawer/utils/getProviderCurrency.d.ts +3 -0
- package/lib/modularDrawer/utils/getProviderCurrency.d.ts.map +1 -0
- package/lib/modularDrawer/utils/getProviderCurrency.js +14 -0
- package/lib/modularDrawer/utils/getProviderCurrency.js.map +1 -0
- package/lib/modularDrawer/utils/groupAccountsByAsset.d.ts +11 -0
- package/lib/modularDrawer/utils/groupAccountsByAsset.d.ts.map +1 -0
- package/lib/modularDrawer/utils/groupAccountsByAsset.js +32 -0
- package/lib/modularDrawer/utils/groupAccountsByAsset.js.map +1 -0
- package/lib/modularDrawer/utils/parseToBigNumber.d.ts +9 -0
- package/lib/modularDrawer/utils/parseToBigNumber.d.ts.map +1 -0
- package/lib/modularDrawer/utils/parseToBigNumber.js +24 -0
- package/lib/modularDrawer/utils/parseToBigNumber.js.map +1 -0
- package/lib/modularDrawer/utils/type.d.ts +21 -0
- package/lib/modularDrawer/utils/type.d.ts.map +1 -0
- package/lib/modularDrawer/utils/type.js +3 -0
- package/lib/modularDrawer/utils/type.js.map +1 -0
- package/lib/utils/__tests__/getAccountTuplesForCurrency.test.js +1 -1
- package/lib/utils/__tests__/getAccountTuplesForCurrency.test.js.map +1 -1
- package/lib-es/bridge/crypto-assets/index.d.ts +1 -1
- package/lib-es/bridge/crypto-assets/index.d.ts.map +1 -1
- package/lib-es/bridge/crypto-assets/index.js +1 -1
- package/lib-es/bridge/crypto-assets/index.js.map +1 -1
- package/lib-es/bridge/impl.d.ts +1 -1
- package/lib-es/bridge/impl.d.ts.map +1 -1
- package/lib-es/domain/getTokensWithFunds.test.js +1 -1
- package/lib-es/domain/getTokensWithFunds.test.js.map +1 -1
- package/lib-es/e2e/index.d.ts +3 -0
- package/lib-es/e2e/index.d.ts.map +1 -1
- package/lib-es/env.react.d.ts +1 -1
- package/lib-es/env.react.d.ts.map +1 -1
- package/lib-es/families/evm/setup.d.ts.map +1 -1
- package/lib-es/families/evm/setup.js +11 -1
- package/lib-es/families/evm/setup.js.map +1 -1
- package/lib-es/families/hedera/constants.d.ts +2 -0
- package/lib-es/families/hedera/constants.d.ts.map +1 -0
- package/lib-es/families/hedera/constants.js +3 -0
- package/lib-es/families/hedera/constants.js.map +1 -0
- package/lib-es/families/hedera/setup.d.ts +5 -5
- package/lib-es/families/hedera/setup.d.ts.map +1 -1
- package/lib-es/families/hedera/setup.js.map +1 -1
- package/lib-es/families/solana/setup.d.ts.map +1 -1
- package/lib-es/families/solana/setup.js +2 -1
- package/lib-es/families/solana/setup.js.map +1 -1
- package/lib-es/generated/bridge/js.d.ts +1 -1
- package/lib-es/market/utils/countervalueFormatter.d.ts.map +1 -1
- package/lib-es/market/utils/countervalueFormatter.js.map +1 -1
- package/lib-es/market/utils/types.d.ts +2 -0
- package/lib-es/market/utils/types.d.ts.map +1 -1
- package/lib-es/modularDrawer/__mocks__/currencies.mock.d.ts.map +1 -1
- package/lib-es/modularDrawer/__mocks__/currencies.mock.js +1 -1
- package/lib-es/modularDrawer/__mocks__/currencies.mock.js.map +1 -1
- package/lib-es/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.js +1 -1
- package/lib-es/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.js.map +1 -1
- package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts +2 -0
- package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.js +494 -0
- package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.js.map +1 -0
- package/lib-es/modularDrawer/utils/__tests__/currencyUtils.test.js +1 -1
- package/lib-es/modularDrawer/utils/__tests__/currencyUtils.test.js.map +1 -1
- package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js +1 -1
- package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js.map +1 -1
- package/lib-es/modularDrawer/utils/calculateProviderTotal.d.ts +9 -0
- package/lib-es/modularDrawer/utils/calculateProviderTotal.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/calculateProviderTotal.js +16 -0
- package/lib-es/modularDrawer/utils/calculateProviderTotal.js.map +1 -0
- package/lib-es/modularDrawer/utils/counterValueFormatter.d.ts +14 -0
- package/lib-es/modularDrawer/utils/counterValueFormatter.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/counterValueFormatter.js +103 -0
- package/lib-es/modularDrawer/utils/counterValueFormatter.js.map +1 -0
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts +11 -0
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.js +41 -0
- package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.js.map +1 -0
- package/lib-es/modularDrawer/utils/getProviderCurrency.d.ts +3 -0
- package/lib-es/modularDrawer/utils/getProviderCurrency.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/getProviderCurrency.js +10 -0
- package/lib-es/modularDrawer/utils/getProviderCurrency.js.map +1 -0
- package/lib-es/modularDrawer/utils/groupAccountsByAsset.d.ts +11 -0
- package/lib-es/modularDrawer/utils/groupAccountsByAsset.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/groupAccountsByAsset.js +25 -0
- package/lib-es/modularDrawer/utils/groupAccountsByAsset.js.map +1 -0
- package/lib-es/modularDrawer/utils/parseToBigNumber.d.ts +9 -0
- package/lib-es/modularDrawer/utils/parseToBigNumber.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/parseToBigNumber.js +17 -0
- package/lib-es/modularDrawer/utils/parseToBigNumber.js.map +1 -0
- package/lib-es/modularDrawer/utils/type.d.ts +21 -0
- package/lib-es/modularDrawer/utils/type.d.ts.map +1 -0
- package/lib-es/modularDrawer/utils/type.js +2 -0
- package/lib-es/modularDrawer/utils/type.js.map +1 -0
- package/lib-es/utils/__tests__/getAccountTuplesForCurrency.test.js +1 -1
- package/lib-es/utils/__tests__/getAccountTuplesForCurrency.test.js.map +1 -1
- package/package.json +71 -70
- package/src/DataModel.test.ts +1 -1
- package/src/__tests__/accounts/groupPerDay.ts +1 -1
- package/src/__tests__/test-helpers/setup.ts +1 -1
- package/src/account/serialization.test.ts +1 -1
- package/src/bridge/crypto-assets/index.test.ts +1 -1
- package/src/bridge/crypto-assets/index.ts +3 -2
- package/src/bridge/impl.ts +1 -1
- package/src/currencies/sortByMarketcap.test.ts +1 -1
- package/src/domain/getTokensWithFunds.test.ts +1 -1
- package/src/families/bitcoin/__snapshots__/bridge.integration.test.ts.snap +7 -0
- package/src/families/bitcoin/satstack.test.ts +1 -1
- package/src/families/evm/setup.ts +12 -1
- package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +464 -1135
- package/src/families/hedera/constants.ts +2 -0
- package/src/families/hedera/setup.ts +7 -3
- package/src/families/solana/setup.ts +2 -0
- package/src/families/tron/data.mock.ts +1 -1
- package/src/market/utils/countervalueFormatter.ts +0 -1
- package/src/market/utils/types.ts +4 -0
- package/src/modularDrawer/__mocks__/currencies.mock.ts +1 -1
- package/src/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.ts +1 -1
- package/src/modularDrawer/utils/__tests__/counterValueFormatter.test.ts +549 -0
- package/src/modularDrawer/utils/__tests__/currencyUtils.test.ts +1 -1
- package/src/modularDrawer/utils/__tests__/haveOneCommonProvider.test.ts +2 -2
- package/src/modularDrawer/utils/calculateProviderTotal.ts +23 -0
- package/src/modularDrawer/utils/counterValueFormatter.ts +165 -0
- package/src/modularDrawer/utils/getBalanceAndFiatValueByAssets.ts +76 -0
- package/src/modularDrawer/utils/getProviderCurrency.ts +13 -0
- package/src/modularDrawer/utils/groupAccountsByAsset.ts +51 -0
- package/src/modularDrawer/utils/parseToBigNumber.ts +17 -0
- package/src/modularDrawer/utils/type.ts +22 -0
- package/src/utils/__tests__/getAccountTuplesForCurrency.test.ts +1 -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.46.0-nightly.
|
4
|
+
"version": "34.46.0-nightly.4",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "https://github.com/LedgerHQ/ledger-live.git"
|
@@ -163,76 +163,77 @@
|
|
163
163
|
"xstate": "^5.19.2",
|
164
164
|
"yargs": "^17.0.0",
|
165
165
|
"zod": "^3.22.4",
|
166
|
-
"
|
167
|
-
"@ledgerhq/coin-
|
168
|
-
"@ledgerhq/coin-
|
169
|
-
"@ledgerhq/coin-
|
170
|
-
"@ledgerhq/coin-
|
171
|
-
"@ledgerhq/coin-
|
172
|
-
"@ledgerhq/coin-
|
173
|
-
"@ledgerhq/coin-
|
174
|
-
"@ledgerhq/coin-
|
175
|
-
"@ledgerhq/coin-
|
176
|
-
"@ledgerhq/coin-
|
177
|
-
"@ledgerhq/coin-
|
178
|
-
"@ledgerhq/coin-
|
179
|
-
"@ledgerhq/coin-
|
180
|
-
"@ledgerhq/coin-
|
181
|
-
"@ledgerhq/coin-
|
182
|
-
"@ledgerhq/coin-
|
183
|
-
"@ledgerhq/coin-
|
184
|
-
"@ledgerhq/coin-
|
185
|
-
"@ledgerhq/coin-
|
186
|
-
"@ledgerhq/coin-
|
187
|
-
"@ledgerhq/coin-
|
188
|
-
"@ledgerhq/coin-
|
189
|
-
"@ledgerhq/coin-
|
190
|
-
"@ledgerhq/coin-
|
191
|
-
"@ledgerhq/coin-
|
192
|
-
"@ledgerhq/coin-
|
193
|
-
"@ledgerhq/
|
194
|
-
"@ledgerhq/
|
195
|
-
"@ledgerhq/
|
196
|
-
"@ledgerhq/
|
197
|
-
"@ledgerhq/
|
198
|
-
"@ledgerhq/
|
199
|
-
"@ledgerhq/hw-app-
|
200
|
-
"@ledgerhq/hw-app-
|
201
|
-
"@ledgerhq/hw-app-
|
202
|
-
"@ledgerhq/hw-app-
|
203
|
-
"@ledgerhq/hw-app-
|
204
|
-
"@ledgerhq/hw-app-
|
205
|
-
"@ledgerhq/hw-app-hedera": "^1.2.
|
206
|
-
"@ledgerhq/hw-app-icon": "^1.3.
|
207
|
-
"@ledgerhq/hw-app-multiversx": "^6.25.0",
|
208
|
-
"@ledgerhq/hw-app-near": "^6.31.
|
209
|
-
"@ledgerhq/hw-app-polkadot": "^6.34.
|
210
|
-
"@ledgerhq/hw-app-str": "^7.2.
|
166
|
+
"i18next": "20.6.1",
|
167
|
+
"@ledgerhq/coin-algorand": "^0.9.18-nightly.1",
|
168
|
+
"@ledgerhq/coin-aptos": "^3.1.1-nightly.1",
|
169
|
+
"@ledgerhq/coin-bitcoin": "^0.21.0-nightly.1",
|
170
|
+
"@ledgerhq/coin-canton": "^0.2.2-nightly.1",
|
171
|
+
"@ledgerhq/coin-cardano": "^0.11.2-nightly.1",
|
172
|
+
"@ledgerhq/coin-casper": "^2.0.9-nightly.1",
|
173
|
+
"@ledgerhq/coin-celo": "^1.2.1-nightly.3",
|
174
|
+
"@ledgerhq/coin-cosmos": "^0.16.7-nightly.1",
|
175
|
+
"@ledgerhq/coin-evm": "^2.28.0-nightly.3",
|
176
|
+
"@ledgerhq/coin-filecoin": "^1.10.1-nightly.1",
|
177
|
+
"@ledgerhq/coin-framework": "^6.2.0-nightly.1",
|
178
|
+
"@ledgerhq/coin-hedera": "^1.11.0-nightly.1",
|
179
|
+
"@ledgerhq/coin-icon": "^0.11.5-nightly.1",
|
180
|
+
"@ledgerhq/coin-internet_computer": "^1.7.18-nightly.1",
|
181
|
+
"@ledgerhq/coin-mina": "^1.1.17-nightly.1",
|
182
|
+
"@ledgerhq/coin-multiversx": "^0.4.18-nightly.1",
|
183
|
+
"@ledgerhq/coin-near": "^0.12.1-nightly.1",
|
184
|
+
"@ledgerhq/coin-polkadot": "^6.7.1-nightly.1",
|
185
|
+
"@ledgerhq/coin-solana": "^0.32.0-nightly.1",
|
186
|
+
"@ledgerhq/coin-stacks": "^0.8.18-nightly.1",
|
187
|
+
"@ledgerhq/coin-stellar": "^6.2.0-nightly.1",
|
188
|
+
"@ledgerhq/coin-sui": "^0.10.1-nightly.1",
|
189
|
+
"@ledgerhq/coin-tezos": "^6.1.1-nightly.1",
|
190
|
+
"@ledgerhq/coin-ton": "^0.13.7-nightly.1",
|
191
|
+
"@ledgerhq/coin-tron": "^5.1.1-nightly.1",
|
192
|
+
"@ledgerhq/coin-vechain": "^2.8.2-nightly.1",
|
193
|
+
"@ledgerhq/coin-xrp": "^7.1.1-nightly.1",
|
194
|
+
"@ledgerhq/crypto-icons-ui": "^1.18.0-nightly.0",
|
195
|
+
"@ledgerhq/cryptoassets": "^13.26.0-nightly.1",
|
196
|
+
"@ledgerhq/device-core": "^0.6.1-nightly.1",
|
197
|
+
"@ledgerhq/devices": "8.5.1-nightly.0",
|
198
|
+
"@ledgerhq/errors": "^6.25.0-nightly.0",
|
199
|
+
"@ledgerhq/hw-app-algorand": "^6.31.6-nightly.0",
|
200
|
+
"@ledgerhq/hw-app-aptos": "^6.34.6-nightly.0",
|
201
|
+
"@ledgerhq/hw-app-btc": "^10.10.2-nightly.0",
|
202
|
+
"@ledgerhq/hw-app-celo": "^6.34.1-nightly.1",
|
203
|
+
"@ledgerhq/hw-app-cosmos": "^6.32.6-nightly.0",
|
204
|
+
"@ledgerhq/hw-app-eth": "^6.45.16-nightly.1",
|
205
|
+
"@ledgerhq/hw-app-hedera": "^1.2.6-nightly.0",
|
206
|
+
"@ledgerhq/hw-app-icon": "^1.3.6-nightly.0",
|
207
|
+
"@ledgerhq/hw-app-multiversx": "^6.25.1-nightly.0",
|
208
|
+
"@ledgerhq/hw-app-near": "^6.31.6-nightly.0",
|
209
|
+
"@ledgerhq/hw-app-polkadot": "^6.34.6-nightly.0",
|
210
|
+
"@ledgerhq/hw-app-str": "^7.2.6-nightly.0",
|
211
211
|
"@ledgerhq/hw-app-sui": "^1.3.0-nightly.0",
|
212
|
-
"@ledgerhq/hw-app-
|
213
|
-
"@ledgerhq/hw-app-tezos": "^6.31.
|
214
|
-
"@ledgerhq/hw-app-
|
215
|
-
"@ledgerhq/hw-app-
|
216
|
-
"@ledgerhq/hw-
|
217
|
-
"@ledgerhq/hw-transport
|
218
|
-
"@ledgerhq/
|
219
|
-
"@ledgerhq/ledger-cal-service": "^1.3.
|
220
|
-
"@ledgerhq/live-
|
221
|
-
"@ledgerhq/live-countervalues
|
222
|
-
"@ledgerhq/live-
|
223
|
-
"@ledgerhq/live-
|
212
|
+
"@ledgerhq/hw-app-exchange": "^0.12.1-nightly.0",
|
213
|
+
"@ledgerhq/hw-app-tezos": "^6.31.6-nightly.0",
|
214
|
+
"@ledgerhq/hw-app-trx": "^6.31.6-nightly.0",
|
215
|
+
"@ledgerhq/hw-app-vet": "^0.5.14-nightly.1",
|
216
|
+
"@ledgerhq/hw-app-xrp": "^6.32.4-nightly.0",
|
217
|
+
"@ledgerhq/hw-transport": "^6.31.10-nightly.0",
|
218
|
+
"@ledgerhq/hw-transport-mocker": "^6.29.10-nightly.0",
|
219
|
+
"@ledgerhq/ledger-cal-service": "^1.3.1-nightly.1",
|
220
|
+
"@ledgerhq/live-config": "^3.2.0-nightly.0",
|
221
|
+
"@ledgerhq/live-countervalues": "^0.7.0-nightly.1",
|
222
|
+
"@ledgerhq/live-countervalues-react": "^0.4.1-nightly.1",
|
223
|
+
"@ledgerhq/live-dmk-shared": "^0.12.1-nightly.0",
|
224
|
+
"@ledgerhq/live-env": "^2.15.0-nightly.1",
|
224
225
|
"@ledgerhq/live-hooks": "0.1.0",
|
225
|
-
"@ledgerhq/live-network": "^2.0.
|
226
|
-
"@ledgerhq/live-nft": "^0.8.17",
|
226
|
+
"@ledgerhq/live-network": "^2.0.16-nightly.1",
|
227
227
|
"@ledgerhq/live-promise": "^0.1.1",
|
228
|
-
"@ledgerhq/live-signer-evm": "^0.7.1-nightly.
|
229
|
-
"@ledgerhq/live-signer-solana": "^0.5.
|
230
|
-
"@ledgerhq/live-signer-canton": "^0.2.1",
|
231
|
-
"@ledgerhq/live-wallet": "^0.
|
228
|
+
"@ledgerhq/live-signer-evm": "^0.7.1-nightly.3",
|
229
|
+
"@ledgerhq/live-signer-solana": "^0.5.3-nightly.1",
|
230
|
+
"@ledgerhq/live-signer-canton": "^0.2.2-nightly.1",
|
231
|
+
"@ledgerhq/live-wallet": "^0.13.0-nightly.1",
|
232
232
|
"@ledgerhq/logs": "^6.13.0",
|
233
|
-
"@ledgerhq/speculos-transport": "^0.2.
|
233
|
+
"@ledgerhq/speculos-transport": "^0.2.9-nightly.1",
|
234
234
|
"@ledgerhq/wallet-api-acre-module": "^0.6.0",
|
235
|
-
"@ledgerhq/wallet-api-exchange-module": "^0.16.0-nightly.0"
|
235
|
+
"@ledgerhq/wallet-api-exchange-module": "^0.16.0-nightly.0",
|
236
|
+
"@ledgerhq/live-nft": "^0.8.18-nightly.1"
|
236
237
|
},
|
237
238
|
"devDependencies": {
|
238
239
|
"@solana/web3.js": "1.95.4",
|
@@ -280,10 +281,10 @@
|
|
280
281
|
"undici": "6.19.2",
|
281
282
|
"uuid": "^8.3.2",
|
282
283
|
"ws": "7",
|
283
|
-
"@ledgerhq/device-react": "^0.2.
|
284
|
-
"@ledgerhq/types-cryptoassets": "^7.
|
284
|
+
"@ledgerhq/device-react": "^0.2.42-nightly.1",
|
285
|
+
"@ledgerhq/types-cryptoassets": "^7.26.0-nightly.0",
|
285
286
|
"@ledgerhq/types-devices": "^6.26.0",
|
286
|
-
"@ledgerhq/types-live": "^6.
|
287
|
+
"@ledgerhq/types-live": "^6.82.0-nightly.1"
|
287
288
|
},
|
288
289
|
"scripts": {
|
289
290
|
"build": "zx ./scripts/build-ts.mjs",
|
@@ -305,6 +306,6 @@
|
|
305
306
|
"test-bridge-update": "UPDATE_BACKEND_MOCKS=1 env-cmd -f .ci.integration.env pnpm jest --ci --updateSnapshot --passWithNoTests",
|
306
307
|
"test-account-migration": "tsx src/__tests__/migration/account-migration.ts",
|
307
308
|
"unimported": "unimported",
|
308
|
-
"coverage": "env-cmd -f .ci.unit.env pnpm jest --coverage --ci --updateSnapshot
|
309
|
+
"coverage": "env-cmd -f .ci.unit.env pnpm jest --coverage --ci --updateSnapshot"
|
309
310
|
}
|
310
311
|
}
|
package/src/DataModel.test.ts
CHANGED
@@ -7,7 +7,7 @@ import { accountRawToAccountUserData } from "@ledgerhq/live-wallet/store";
|
|
7
7
|
import { createDataModel } from "./DataModel";
|
8
8
|
import { fromAccountRaw, toAccountRaw } from "./account";
|
9
9
|
import { getCurrencyConfiguration } from "./config";
|
10
|
-
import { CryptoAssetsStore } from "@ledgerhq/
|
10
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
11
11
|
import { setCryptoAssetsStore as setCryptoAssetsStoreForCoinFramework } from "@ledgerhq/coin-framework/crypto-assets/index";
|
12
12
|
|
13
13
|
jest.mock("./config", () => ({
|
@@ -2,7 +2,7 @@ import flatMap from "lodash/flatMap";
|
|
2
2
|
import { fromAccountRaw, groupAccountOperationsByDay } from "../../account";
|
3
3
|
import { TezosAccountRaw } from "../../families/tezos/types";
|
4
4
|
import { setSupportedCurrencies } from "../../currencies";
|
5
|
-
import { CryptoAssetsStore } from "@ledgerhq/
|
5
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
6
6
|
import { setup } from "../../bridge/impl";
|
7
7
|
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
8
8
|
setSupportedCurrencies(["tezos"]);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { setCryptoAssetsStore as setCryptoAssetsStoreForCoinFramework } from "@ledgerhq/coin-framework/crypto-assets/index";
|
2
|
-
import { CryptoAssetsStore } from "@ledgerhq/
|
2
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
3
3
|
import "./environment";
|
4
4
|
import BigNumber from "bignumber.js";
|
5
5
|
|
@@ -4,7 +4,7 @@ import { toAccountRaw, fromAccountRaw } from "./serialization";
|
|
4
4
|
import { setWalletAPIVersion } from "../wallet-api/version";
|
5
5
|
import { WALLET_API_VERSION } from "../wallet-api/constants";
|
6
6
|
import { setCryptoAssetsStore as setCryptoAssetsStoreForCoinFramework } from "@ledgerhq/coin-framework/crypto-assets/index";
|
7
|
-
import { CryptoAssetsStore } from "@ledgerhq/
|
7
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
8
8
|
import solanaSplTokenData from "../__fixtures__/solana-spl-epjfwdd5aufqssqem2qn1xzybapc8g4weggkzwytdt1v.json";
|
9
9
|
import { TokenCurrency } from "@ledgerhq/types-cryptoassets";
|
10
10
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
2
2
|
import { getCryptoAssetsStore, setCryptoAssetsStore } from ".";
|
3
3
|
import * as legacy from "@ledgerhq/cryptoassets/tokens";
|
4
|
-
import { CryptoAssetsStore } from "@ledgerhq/
|
4
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
5
5
|
|
6
6
|
describe("Testing CryptoAssetStore", () => {
|
7
7
|
it("should return the default methods from cryptoassets libs when feature flag does not exists", () => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
2
|
-
import { CryptoAssetsStore } from "@ledgerhq/coin-framework/crypto-assets/type";
|
3
2
|
import * as legacy from "@ledgerhq/cryptoassets/tokens";
|
3
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
4
4
|
|
5
5
|
const legacyStore: CryptoAssetsStore = {
|
6
6
|
findTokenByAddress: legacy.findTokenByAddress,
|
@@ -17,7 +17,8 @@ export function setCryptoAssetsStore(store: CryptoAssetsStore) {
|
|
17
17
|
}
|
18
18
|
|
19
19
|
export function getCryptoAssetsStore(): CryptoAssetsStore {
|
20
|
-
const featureEnabled =
|
20
|
+
const featureEnabled =
|
21
|
+
LiveConfig.isConfigSet() && LiveConfig.getValueByKey("feature_cal_lazy_loading");
|
21
22
|
if (!featureEnabled) {
|
22
23
|
return legacyStore;
|
23
24
|
}
|
package/src/bridge/impl.ts
CHANGED
@@ -20,7 +20,7 @@ import {
|
|
20
20
|
import { getAlpacaAccountBridge } from "./generic-alpaca/accountBridge";
|
21
21
|
import { getAlpacaCurrencyBridge } from "./generic-alpaca/currencyBridge";
|
22
22
|
import { AddressesSanctionedError } from "@ledgerhq/coin-framework/sanction/errors";
|
23
|
-
import { CryptoAssetsStore } from "@ledgerhq/
|
23
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
24
24
|
import { setCryptoAssetsStore as setCryptoAssetsStoreForCoinFramework } from "@ledgerhq/coin-framework/crypto-assets/index";
|
25
25
|
import { getCryptoAssetsStore, setCryptoAssetsStore } from "./crypto-assets";
|
26
26
|
|
@@ -3,7 +3,7 @@ import { findCurrencyByTicker, listCryptoCurrencies, listTokens } from ".";
|
|
3
3
|
import { getBTCValues } from "@ledgerhq/live-countervalues/mock";
|
4
4
|
import { CURRENCIES_LIST, IDS } from "./mock";
|
5
5
|
import { setCryptoAssetsStore as setCryptoAssetsStoreForCoinFramework } from "@ledgerhq/coin-framework/crypto-assets/index";
|
6
|
-
import { CryptoAssetsStore } from "@ledgerhq/
|
6
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
7
7
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
9
9
|
setCryptoAssetsStoreForCoinFramework({
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { genAccount } from "@ledgerhq/coin-framework/lib/mocks/account";
|
2
|
-
import { getCryptoCurrencyById } from "
|
2
|
+
import { getCryptoCurrencyById } from "../currencies/index";
|
3
3
|
import { Account } from "@ledgerhq/types-live";
|
4
4
|
import BigNumber from "bignumber.js";
|
5
5
|
import { getTokensWithFunds } from "./getTokensWithFunds";
|
@@ -2646,6 +2646,7 @@ exports[`bitcoin currency bridge scanAccounts bitcoin seed 1 2`] = `
|
|
2646
2646
|
"senders": [
|
2647
2647
|
"bc1qtc9gkextz267qgaupcmqpz9hl64nwqn6y4t0qk",
|
2648
2648
|
],
|
2649
|
+
"transactionSequenceNumber": 0,
|
2649
2650
|
"type": "OUT",
|
2650
2651
|
"value": "2717",
|
2651
2652
|
},
|
@@ -15474,6 +15475,7 @@ exports[`decred currency bridge scanAccounts decred seed 1 2`] = `
|
|
15474
15475
|
"senders": [
|
15475
15476
|
"DskW13e355a7M3kmhBjZrSGrGYTYn9T4dbk",
|
15476
15477
|
],
|
15478
|
+
"transactionSequenceNumber": 0,
|
15477
15479
|
"type": "OUT",
|
15478
15480
|
"value": "621400",
|
15479
15481
|
},
|
@@ -18429,6 +18431,7 @@ exports[`decred currency bridge scanAccounts decred seed 1 2`] = `
|
|
18429
18431
|
"senders": [
|
18430
18432
|
"Dshb98SrdLmgDoy3PRouifMYCERdDYuCcEM",
|
18431
18433
|
],
|
18434
|
+
"transactionSequenceNumber": 0,
|
18432
18435
|
"type": "OUT",
|
18433
18436
|
"value": "625888",
|
18434
18437
|
},
|
@@ -19077,6 +19080,7 @@ exports[`decred currency bridge scanAccounts decred seed 1 2`] = `
|
|
19077
19080
|
"senders": [
|
19078
19081
|
"DseydKh2Cgzht5dwbSgXBDLLDNdjcSu8Qu2",
|
19079
19082
|
],
|
19083
|
+
"transactionSequenceNumber": 0,
|
19080
19084
|
"type": "OUT",
|
19081
19085
|
"value": "623776",
|
19082
19086
|
},
|
@@ -21359,6 +21363,7 @@ exports[`dogecoin currency bridge scanAccounts dogecoin seed 1 2`] = `
|
|
21359
21363
|
"senders": [
|
21360
21364
|
"DCTZJgCwmkTko41GXvWF4BrutEY5NSr1hC",
|
21361
21365
|
],
|
21366
|
+
"transactionSequenceNumber": 0,
|
21362
21367
|
"type": "OUT",
|
21363
21368
|
"value": "4988700000",
|
21364
21369
|
},
|
@@ -21825,6 +21830,7 @@ exports[`litecoin currency bridge scanAccounts litecoin seed 1 2`] = `
|
|
21825
21830
|
"senders": [
|
21826
21831
|
"ltc1qmynthzpjrtdwp87anmwqc9mam0wjn0nuskm43r",
|
21827
21832
|
],
|
21833
|
+
"transactionSequenceNumber": 0,
|
21828
21834
|
"type": "OUT",
|
21829
21835
|
"value": "100283",
|
21830
21836
|
},
|
@@ -22879,6 +22885,7 @@ exports[`litecoin currency bridge scanAccounts litecoin seed 1 2`] = `
|
|
22879
22885
|
"senders": [
|
22880
22886
|
"MSyowFrsqmk9MjgAQerz5HAQjHAcDGM8aV",
|
22881
22887
|
],
|
22888
|
+
"transactionSequenceNumber": 0,
|
22882
22889
|
"type": "OUT",
|
22883
22890
|
"value": "100323",
|
22884
22891
|
},
|
@@ -19,7 +19,7 @@ import { setEnv } from "@ledgerhq/live-env";
|
|
19
19
|
import { fromAccountRaw } from "../../account";
|
20
20
|
import { setSupportedCurrencies } from "../../currencies";
|
21
21
|
import { setCryptoAssetsStore as setCryptoAssetsStoreForCoinFramework } from "@ledgerhq/coin-framework/crypto-assets/index";
|
22
|
-
import { CryptoAssetsStore } from "@ledgerhq/
|
22
|
+
import type { CryptoAssetsStore } from "@ledgerhq/types-live";
|
23
23
|
|
24
24
|
setSupportedCurrencies(["bitcoin"]);
|
25
25
|
jest.setTimeout(10000);
|
@@ -19,7 +19,17 @@ import { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
|
|
19
19
|
import { EvmConfigInfo } from "@ledgerhq/coin-evm/config";
|
20
20
|
import { type DeviceManagementKit } from "@ledgerhq/device-management-kit";
|
21
21
|
import { DmkSignerEth, LegacySignerEth } from "@ledgerhq/live-signer-evm";
|
22
|
-
import { EvmSigner } from "@ledgerhq/coin-evm/
|
22
|
+
import { EvmSigner } from "@ledgerhq/coin-evm/types/signer";
|
23
|
+
import { getCryptoAssetsStore } from "../../bridge/crypto-assets";
|
24
|
+
import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
|
25
|
+
import { setShouldSkipTokenLoading } from "@ledgerhq/coin-evm/bridge/preload";
|
26
|
+
|
27
|
+
try {
|
28
|
+
const isCALLazyLoadingEnabled = LiveConfig.getValueByKey("feature_cal_lazy_loading") === "true";
|
29
|
+
setShouldSkipTokenLoading(Boolean(isCALLazyLoadingEnabled));
|
30
|
+
} catch (error) {
|
31
|
+
setShouldSkipTokenLoading(false);
|
32
|
+
}
|
23
33
|
|
24
34
|
const createSigner: CreateSigner<EvmSigner> = (transport: Transport) => {
|
25
35
|
if (isDmkTransport(transport)) {
|
@@ -47,6 +57,7 @@ const getCurrencyConfig = (currency: CryptoCurrency) => {
|
|
47
57
|
const bridge: Bridge<EvmTransaction> = createBridges(
|
48
58
|
executeWithSigner(createSigner),
|
49
59
|
getCurrencyConfig,
|
60
|
+
getCryptoAssetsStore,
|
50
61
|
);
|
51
62
|
|
52
63
|
const messageSigner = {
|