@ledgerhq/live-common 34.33.0-nightly.5 → 34.33.1-hotfix.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.
Files changed (68) hide show
  1. package/lib/DataModel.d.ts.map +1 -1
  2. package/lib/DataModel.js +0 -8
  3. package/lib/DataModel.js.map +1 -1
  4. package/lib/DataModel.test.js +0 -46
  5. package/lib/DataModel.test.js.map +1 -1
  6. package/lib/families/evm/config.d.ts.map +1 -1
  7. package/lib/families/evm/config.js +0 -63
  8. package/lib/families/evm/config.js.map +1 -1
  9. package/lib/families/solana/banner.test.js +0 -1
  10. package/lib/families/solana/banner.test.js.map +1 -1
  11. package/lib/wallet-api/Exchange/server.d.ts +1 -6
  12. package/lib/wallet-api/Exchange/server.d.ts.map +1 -1
  13. package/lib/wallet-api/Exchange/server.js +1 -11
  14. package/lib/wallet-api/Exchange/server.js.map +1 -1
  15. package/lib/wallet-api/Exchange/server.test.js +0 -2
  16. package/lib/wallet-api/Exchange/server.test.js.map +1 -1
  17. package/lib/wallet-api/constants.d.ts +1 -1
  18. package/lib-es/DataModel.d.ts.map +1 -1
  19. package/lib-es/DataModel.js +0 -8
  20. package/lib-es/DataModel.js.map +1 -1
  21. package/lib-es/DataModel.test.js +0 -46
  22. package/lib-es/DataModel.test.js.map +1 -1
  23. package/lib-es/families/evm/config.d.ts.map +1 -1
  24. package/lib-es/families/evm/config.js +0 -63
  25. package/lib-es/families/evm/config.js.map +1 -1
  26. package/lib-es/families/solana/banner.test.js +0 -1
  27. package/lib-es/families/solana/banner.test.js.map +1 -1
  28. package/lib-es/wallet-api/Exchange/server.d.ts +1 -6
  29. package/lib-es/wallet-api/Exchange/server.d.ts.map +1 -1
  30. package/lib-es/wallet-api/Exchange/server.js +1 -11
  31. package/lib-es/wallet-api/Exchange/server.js.map +1 -1
  32. package/lib-es/wallet-api/Exchange/server.test.js +0 -2
  33. package/lib-es/wallet-api/Exchange/server.test.js.map +1 -1
  34. package/lib-es/wallet-api/constants.d.ts +1 -1
  35. package/package.json +50 -50
  36. package/src/DataModel.test.ts +0 -51
  37. package/src/DataModel.ts +2 -8
  38. package/src/families/evm/config.ts +0 -63
  39. package/src/families/solana/banner.test.ts +0 -1
  40. package/src/wallet-api/Exchange/server.test.ts +0 -2
  41. package/src/wallet-api/Exchange/server.ts +0 -15
  42. package/lib/domain/getTokensWithFunds.d.ts +0 -3
  43. package/lib/domain/getTokensWithFunds.d.ts.map +0 -1
  44. package/lib/domain/getTokensWithFunds.js +0 -36
  45. package/lib/domain/getTokensWithFunds.js.map +0 -1
  46. package/lib/domain/getTokensWithFunds.test.d.ts +0 -2
  47. package/lib/domain/getTokensWithFunds.test.d.ts.map +0 -1
  48. package/lib/domain/getTokensWithFunds.test.js +0 -71
  49. package/lib/domain/getTokensWithFunds.test.js.map +0 -1
  50. package/lib/market/hooks/useLargeMoverDataProvider.d.ts +0 -17
  51. package/lib/market/hooks/useLargeMoverDataProvider.d.ts.map +0 -1
  52. package/lib/market/hooks/useLargeMoverDataProvider.js +0 -48
  53. package/lib/market/hooks/useLargeMoverDataProvider.js.map +0 -1
  54. package/lib-es/domain/getTokensWithFunds.d.ts +0 -3
  55. package/lib-es/domain/getTokensWithFunds.d.ts.map +0 -1
  56. package/lib-es/domain/getTokensWithFunds.js +0 -32
  57. package/lib-es/domain/getTokensWithFunds.js.map +0 -1
  58. package/lib-es/domain/getTokensWithFunds.test.d.ts +0 -2
  59. package/lib-es/domain/getTokensWithFunds.test.d.ts.map +0 -1
  60. package/lib-es/domain/getTokensWithFunds.test.js +0 -66
  61. package/lib-es/domain/getTokensWithFunds.test.js.map +0 -1
  62. package/lib-es/market/hooks/useLargeMoverDataProvider.d.ts +0 -17
  63. package/lib-es/market/hooks/useLargeMoverDataProvider.d.ts.map +0 -1
  64. package/lib-es/market/hooks/useLargeMoverDataProvider.js +0 -44
  65. package/lib-es/market/hooks/useLargeMoverDataProvider.js.map +0 -1
  66. package/src/domain/getTokensWithFunds.test.ts +0 -94
  67. package/src/domain/getTokensWithFunds.ts +0 -36
  68. package/src/market/hooks/useLargeMoverDataProvider.ts +0 -70
@@ -5,7 +5,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
5
5
  type: "object",
6
6
  default: {
7
7
  status: { type: "active" },
8
- showNfts: false,
9
8
  },
10
9
  },
11
10
  config_currency_atheios: {
@@ -14,7 +13,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
14
13
  status: {
15
14
  type: "active",
16
15
  },
17
- showNfts: false,
18
16
  },
19
17
  },
20
18
  config_currency_avalanche_c_chain: {
@@ -35,7 +33,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
35
33
  type: "ledger",
36
34
  explorerId: "avax",
37
35
  },
38
- showNfts: false,
39
36
  },
40
37
  },
41
38
  config_currency_bsc: {
@@ -56,7 +53,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
56
53
  type: "ledger",
57
54
  explorerId: "bnb",
58
55
  },
59
- showNfts: false,
60
56
  },
61
57
  },
62
58
  config_currency_callisto: {
@@ -65,7 +61,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
65
61
  status: {
66
62
  type: "active",
67
63
  },
68
- showNfts: false,
69
64
  },
70
65
  },
71
66
  config_currency_dexon: {
@@ -74,7 +69,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
74
69
  status: {
75
70
  type: "active",
76
71
  },
77
- showNfts: false,
78
72
  },
79
73
  },
80
74
  config_currency_ellaism: {
@@ -83,7 +77,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
83
77
  status: {
84
78
  type: "active",
85
79
  },
86
- showNfts: false,
87
80
  },
88
81
  },
89
82
  config_currency_ethereum: {
@@ -104,7 +97,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
104
97
  type: "ledger",
105
98
  explorerId: "eth",
106
99
  },
107
- showNfts: false,
108
100
  },
109
101
  },
110
102
  config_currency_sonic: {
@@ -119,7 +111,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
119
111
  type: "etherscan",
120
112
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/146",
121
113
  },
122
- showNfts: false,
123
114
  },
124
115
  },
125
116
  config_currency_sonic_blaze: {
@@ -134,7 +125,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
134
125
  type: "etherscan",
135
126
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/57054",
136
127
  },
137
- showNfts: false,
138
128
  },
139
129
  },
140
130
  config_currency_ethereum_classic: {
@@ -155,7 +145,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
155
145
  type: "ledger",
156
146
  explorerId: "etc",
157
147
  },
158
- showNfts: false,
159
148
  },
160
149
  },
161
150
  config_currency_ether1: {
@@ -164,7 +153,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
164
153
  status: {
165
154
  type: "active",
166
155
  },
167
- showNfts: false,
168
156
  },
169
157
  },
170
158
  config_currency_ethergem: {
@@ -173,7 +161,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
173
161
  status: {
174
162
  type: "active",
175
163
  },
176
- showNfts: false,
177
164
  },
178
165
  },
179
166
  config_currency_ethersocial: {
@@ -182,7 +169,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
182
169
  status: {
183
170
  type: "active",
184
171
  },
185
- showNfts: false,
186
172
  },
187
173
  },
188
174
  config_currency_expanse: {
@@ -191,7 +177,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
191
177
  status: {
192
178
  type: "active",
193
179
  },
194
- showNfts: false,
195
180
  },
196
181
  },
197
182
  config_currency_gochain: {
@@ -200,7 +185,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
200
185
  status: {
201
186
  type: "active",
202
187
  },
203
- showNfts: false,
204
188
  },
205
189
  },
206
190
  config_currency_hpb: {
@@ -209,7 +193,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
209
193
  status: {
210
194
  type: "active",
211
195
  },
212
- showNfts: false,
213
196
  },
214
197
  },
215
198
  config_currency_mix: {
@@ -218,7 +201,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
218
201
  status: {
219
202
  type: "active",
220
203
  },
221
- showNfts: false,
222
204
  },
223
205
  },
224
206
  config_currency_musicoin: {
@@ -227,7 +209,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
227
209
  status: {
228
210
  type: "active",
229
211
  },
230
- showNfts: false,
231
212
  },
232
213
  },
233
214
  config_currency_pirl: {
@@ -244,7 +225,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
244
225
  status: {
245
226
  type: "active",
246
227
  },
247
- showNfts: false,
248
228
  },
249
229
  },
250
230
  config_currency_polygon: {
@@ -266,7 +246,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
266
246
  type: "ledger",
267
247
  explorerId: "matic",
268
248
  },
269
- showNfts: false,
270
249
  },
271
250
  },
272
251
  config_currency_reosc: {
@@ -275,7 +254,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
275
254
  status: {
276
255
  type: "active",
277
256
  },
278
- showNfts: false,
279
257
  },
280
258
  },
281
259
  config_currency_thundercore: {
@@ -284,7 +262,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
284
262
  status: {
285
263
  type: "active",
286
264
  },
287
- showNfts: false,
288
265
  },
289
266
  },
290
267
  config_currency_tomo: {
@@ -293,7 +270,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
293
270
  status: {
294
271
  type: "active",
295
272
  },
296
- showNfts: false,
297
273
  },
298
274
  },
299
275
  config_currency_ubiq: {
@@ -302,7 +278,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
302
278
  status: {
303
279
  type: "active",
304
280
  },
305
- showNfts: false,
306
281
  },
307
282
  },
308
283
  config_currency_wanchain: {
@@ -311,7 +286,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
311
286
  status: {
312
287
  type: "active",
313
288
  },
314
- showNfts: false,
315
289
  },
316
290
  },
317
291
  config_currency_arbitrum: {
@@ -328,7 +302,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
328
302
  type: "blockscout",
329
303
  uri: "https://arbitrum.blockscout.com/api",
330
304
  },
331
- showNfts: false,
332
305
  },
333
306
  },
334
307
  config_currency_cronos: {
@@ -345,7 +318,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
345
318
  type: "blockscout",
346
319
  uri: "https://cronos.org/explorer/api",
347
320
  },
348
- showNfts: false,
349
321
  },
350
322
  },
351
323
  config_currency_fantom: {
@@ -362,7 +334,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
362
334
  type: "etherscan",
363
335
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/250",
364
336
  },
365
- showNfts: false,
366
337
  },
367
338
  },
368
339
  config_currency_flare: {
@@ -379,7 +350,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
379
350
  type: "blockscout",
380
351
  uri: "https://flare-explorer.flare.network/api",
381
352
  },
382
- showNfts: false,
383
353
  },
384
354
  },
385
355
  config_currency_songbird: {
@@ -396,7 +366,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
396
366
  type: "blockscout",
397
367
  uri: "https://songbird-explorer.flare.network/api",
398
368
  },
399
- showNfts: false,
400
369
  },
401
370
  },
402
371
  config_currency_moonbeam: {
@@ -413,7 +382,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
413
382
  type: "etherscan",
414
383
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/1284",
415
384
  },
416
- showNfts: false,
417
385
  },
418
386
  },
419
387
  config_currency_rsk: {
@@ -430,7 +398,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
430
398
  type: "blockscout",
431
399
  uri: "https://rootstock.blockscout.com/api",
432
400
  },
433
- showNfts: false,
434
401
  },
435
402
  },
436
403
  config_currency_bittorrent: {
@@ -447,7 +414,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
447
414
  type: "etherscan",
448
415
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/199",
449
416
  },
450
- showNfts: false,
451
417
  },
452
418
  },
453
419
  config_currency_optimism: {
@@ -464,7 +430,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
464
430
  type: "blockscout",
465
431
  uri: "https://optimism.blockscout.com/api",
466
432
  },
467
- showNfts: false,
468
433
  },
469
434
  },
470
435
  config_currency_optimism_sepolia: {
@@ -473,7 +438,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
473
438
  status: { type: "active" },
474
439
  node: { type: "external", uri: "https://sepolia.optimism.io" },
475
440
  explorer: { type: "blockscout", uri: "https://optimism-sepolia.blockscout.com/api" },
476
- showNfts: false,
477
441
  },
478
442
  },
479
443
  config_currency_energy_web: {
@@ -490,7 +454,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
490
454
  type: "blockscout",
491
455
  uri: "https://explorer.energyweb.org/api",
492
456
  },
493
- showNfts: false,
494
457
  },
495
458
  },
496
459
  config_currency_astar: {
@@ -507,7 +470,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
507
470
  type: "blockscout",
508
471
  uri: "https://astar.blockscout.com/api",
509
472
  },
510
- showNfts: false,
511
473
  },
512
474
  },
513
475
  config_currency_metis: {
@@ -524,7 +486,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
524
486
  type: "blockscout",
525
487
  uri: "https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan/api",
526
488
  },
527
- showNfts: false,
528
489
  },
529
490
  },
530
491
  config_currency_boba: {
@@ -541,7 +502,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
541
502
  type: "etherscan",
542
503
  uri: "https://api.routescan.io/v2/network/mainnet/evm/288/etherscan",
543
504
  },
544
- showNfts: false,
545
505
  },
546
506
  },
547
507
  config_currency_moonriver: {
@@ -558,7 +518,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
558
518
  type: "etherscan",
559
519
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/1285",
560
520
  },
561
- showNfts: false,
562
521
  },
563
522
  },
564
523
  config_currency_velas_evm: {
@@ -575,7 +534,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
575
534
  type: "blockscout",
576
535
  uri: "https://evmexplorer.velas.com/api",
577
536
  },
578
- showNfts: false,
579
537
  },
580
538
  },
581
539
  config_currency_syscoin: {
@@ -592,7 +550,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
592
550
  type: "blockscout",
593
551
  uri: "https://explorer.syscoin.org/api",
594
552
  },
595
- showNfts: false,
596
553
  },
597
554
  },
598
555
  config_currency_telos_evm: {
@@ -609,7 +566,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
609
566
  type: "teloscan",
610
567
  uri: "https://api.teloscan.io/api",
611
568
  },
612
- showNfts: false,
613
569
  },
614
570
  },
615
571
  config_currency_polygon_zk_evm: {
@@ -626,7 +582,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
626
582
  type: "blockscout",
627
583
  uri: "https://explorer-ui.cardona.zkevm-rpc.com/api",
628
584
  },
629
- showNfts: false,
630
585
  },
631
586
  },
632
587
  config_currency_base: {
@@ -643,7 +598,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
643
598
  type: "blockscout",
644
599
  uri: "https://base.blockscout.com/api",
645
600
  },
646
- showNfts: false,
647
601
  },
648
602
  },
649
603
  config_currency_klaytn: {
@@ -660,7 +614,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
660
614
  type: "klaytnfinder",
661
615
  uri: "https://cypress-oapi.klaytnfinder.io/api",
662
616
  },
663
- showNfts: false,
664
617
  },
665
618
  },
666
619
  config_currency_neon_evm: {
@@ -677,7 +630,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
677
630
  type: "blockscout",
678
631
  uri: "https://neon.blockscout.com/api",
679
632
  },
680
- showNfts: false,
681
633
  },
682
634
  },
683
635
  config_currency_lukso: {
@@ -694,7 +646,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
694
646
  type: "blockscout",
695
647
  uri: "https://explorer.execution.mainnet.lukso.network/api/v1/",
696
648
  },
697
- showNfts: false,
698
649
  },
699
650
  },
700
651
  config_currency_linea: {
@@ -711,7 +662,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
711
662
  type: "etherscan",
712
663
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/59144",
713
664
  },
714
- showNfts: false,
715
665
  },
716
666
  },
717
667
  // testnets
@@ -722,7 +672,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
722
672
  node: { type: "ledger", explorerId: "eth_sepolia" },
723
673
  explorer: { type: "ledger", explorerId: "eth_sepolia" },
724
674
  gasTracker: { type: "ledger", explorerId: "eth_sepolia" },
725
- showNfts: false,
726
675
  },
727
676
  },
728
677
  config_currency_ethereum_holesky: {
@@ -732,7 +681,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
732
681
  node: { type: "ledger", explorerId: "eth_holesky" },
733
682
  explorer: { type: "ledger", explorerId: "eth_holesky" },
734
683
  gasTracker: { type: "ledger", explorerId: "eth_holesky" },
735
- showNfts: false,
736
684
  },
737
685
  },
738
686
  config_currency_arbitrum_sepolia: {
@@ -743,7 +691,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
743
691
  type: "etherscan",
744
692
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/421614",
745
693
  },
746
- showNfts: false,
747
694
  },
748
695
  },
749
696
  config_currency_polygon_zk_evm_testnet: {
@@ -755,7 +702,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
755
702
  type: "etherscan",
756
703
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/1442",
757
704
  },
758
- showNfts: false,
759
705
  },
760
706
  },
761
707
  config_currency_base_sepolia: {
@@ -764,7 +710,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
764
710
  status: { type: "active" },
765
711
  node: { type: "external", uri: "https://sepolia.base.org" },
766
712
  explorer: { type: "blockscout", uri: "https://base-sepolia.blockscout.com/api" },
767
- showNfts: false,
768
713
  },
769
714
  },
770
715
  config_currency_linea_sepolia: {
@@ -776,7 +721,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
776
721
  type: "etherscan",
777
722
  uri: "https://proxyetherscan.api.live.ledger.com/v2/api/59141",
778
723
  },
779
- showNfts: false,
780
724
  },
781
725
  },
782
726
  config_currency_blast: {
@@ -785,7 +729,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
785
729
  status: { type: "active" },
786
730
  node: { type: "external", uri: "https://rpc.blast.io" },
787
731
  explorer: { type: "blockscout", uri: "https://blast.blockscout.com/api" },
788
- showNfts: false,
789
732
  },
790
733
  },
791
734
  config_currency_blast_sepolia: {
@@ -794,7 +737,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
794
737
  status: { type: "active" },
795
738
  node: { type: "external", uri: "https://sepolia.blast.io" },
796
739
  explorer: { type: "blockscout", uri: "https://blast-testnet.blockscout.com/api" },
797
- showNfts: false,
798
740
  },
799
741
  },
800
742
  config_currency_scroll: {
@@ -803,7 +745,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
803
745
  status: { type: "active" },
804
746
  node: { type: "external", uri: "https://rpc.scroll.io" },
805
747
  explorer: { type: "blockscout", uri: "https://scroll.blockscout.com/api" },
806
- showNfts: false,
807
748
  },
808
749
  },
809
750
  config_currency_scroll_sepolia: {
@@ -812,7 +753,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
812
753
  status: { type: "active" },
813
754
  node: { type: "external", uri: "https://sepolia-rpc.scroll.io" },
814
755
  explorer: { type: "blockscout", uri: "https://scroll-sepolia.blockscout.com/api" },
815
- showNfts: false,
816
756
  },
817
757
  },
818
758
  config_currency_etherlink: {
@@ -821,7 +761,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
821
761
  status: { type: "active" },
822
762
  node: { type: "external", uri: "https://node.mainnet.etherlink.com" },
823
763
  explorer: { type: "blockscout", uri: "https://explorer.etherlink.com/api" },
824
- showNfts: false,
825
764
  },
826
765
  },
827
766
  config_currency_zksync: {
@@ -830,7 +769,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
830
769
  status: { type: "active" },
831
770
  node: { type: "external", uri: "https://mainnet.era.zksync.io" },
832
771
  explorer: { type: "blockscout", uri: "https://zksync.blockscout.com/api" },
833
- showNfts: false,
834
772
  },
835
773
  },
836
774
  config_currency_zksync_sepolia: {
@@ -839,7 +777,6 @@ const evmConfig: CurrencyLiveConfigDefinition = {
839
777
  status: { type: "active" },
840
778
  node: { type: "external", uri: "https://sepolia.era.zksync.dev" },
841
779
  explorer: { type: "blockscout", uri: "https://zksync-sepolia.blockscout.com/api" },
842
- showNfts: false,
843
780
  },
844
781
  },
845
782
  };
@@ -109,7 +109,6 @@ const validatorsMap = {
109
109
  version: "1",
110
110
  validatorsWithMeta: [],
111
111
  validators,
112
- splTokens: null,
113
112
  } as SolanaPreloadDataV1;
114
113
 
115
114
  describe("solana/banner", () => {
@@ -47,13 +47,11 @@ const testAppManifest = {
47
47
  const mockUiStartExchange = jest.fn();
48
48
  const mockUiCompleteExchange = jest.fn();
49
49
  const mockUiError = jest.fn();
50
- const mockIsReady = jest.fn();
51
50
 
52
51
  const mockUiHooks = {
53
52
  "custom.exchange.start": mockUiStartExchange,
54
53
  "custom.exchange.complete": mockUiCompleteExchange,
55
54
  "custom.exchange.error": mockUiError,
56
- "custom.isReady": mockIsReady,
57
55
  };
58
56
 
59
57
  // Mock converter id to send back the id received in params.
@@ -51,7 +51,6 @@ type Handlers = {
51
51
  >;
52
52
  "custom.exchange.complete": RPCHandler<ExchangeCompleteResult, ExchangeCompleteParams>;
53
53
  "custom.exchange.error": RPCHandler<void, SwapLiveError>;
54
- "custom.isReady": RPCHandler<void, void>;
55
54
  };
56
55
 
57
56
  export type CompleteExchangeUiRequest = {
@@ -98,7 +97,6 @@ type ExchangeUiHooks = {
98
97
  onSuccess: () => void;
99
98
  onCancel: () => void;
100
99
  }) => void;
101
- "custom.isReady": (params: { onSuccess: () => void; onCancel: () => void }) => void;
102
100
  };
103
101
 
104
102
  export const handlers = ({
@@ -109,7 +107,6 @@ export const handlers = ({
109
107
  "custom.exchange.start": uiExchangeStart,
110
108
  "custom.exchange.complete": uiExchangeComplete,
111
109
  "custom.exchange.error": uiError,
112
- "custom.isReady": uiIsReady,
113
110
  },
114
111
  }: {
115
112
  accounts: AccountLike[];
@@ -335,18 +332,6 @@ export const handlers = ({
335
332
  }),
336
333
  );
337
334
  }),
338
- "custom.isReady": customWrapper<void, void>(async () => {
339
- return new Promise((resolve, reject) =>
340
- uiIsReady({
341
- onSuccess: () => {
342
- resolve();
343
- },
344
- onCancel: () => {
345
- reject();
346
- },
347
- }),
348
- );
349
- }),
350
335
  }) as const satisfies Handlers;
351
336
 
352
337
  function extractSwapStartParam(
@@ -1,3 +0,0 @@
1
- import { Account } from "@ledgerhq/types-live";
2
- export declare const getTokensWithFunds: (accounts: Account[]) => string[];
3
- //# sourceMappingURL=getTokensWithFunds.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTokensWithFunds.d.ts","sourceRoot":"","sources":["../../src/domain/getTokensWithFunds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,eAAO,MAAM,kBAAkB,aAAc,OAAO,EAAE,KAAG,MAAM,EAgC9D,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTokensWithFunds = void 0;
4
- const helpers_1 = require("@ledgerhq/coin-framework/account/helpers");
5
- const getTokensWithFunds = (accounts) => {
6
- if (!accounts?.length)
7
- return [];
8
- const tokensMap = new Map();
9
- for (const account of accounts) {
10
- const { balance, currency } = account || {};
11
- if (!balance?.gt(0) || !currency)
12
- continue;
13
- const parentAccount = (0, helpers_1.getParentAccount)(account, accounts);
14
- const networkName = parentAccount?.currency?.name;
15
- if (!networkName)
16
- continue;
17
- const mainKey = `${currency.ticker}:${networkName}`;
18
- tokensMap.set(mainKey, {
19
- ticker: currency.ticker,
20
- networkName,
21
- });
22
- account.subAccounts?.forEach(subAccount => {
23
- const { balance, token } = subAccount || {};
24
- if (!balance?.gt(0) || !token)
25
- return;
26
- const subKey = `${token.ticker}:${networkName}`;
27
- tokensMap.set(subKey, {
28
- ticker: token.ticker,
29
- networkName,
30
- });
31
- });
32
- }
33
- return Array.from(tokensMap.values(), ({ ticker, networkName }) => `${ticker} on ${networkName}`);
34
- };
35
- exports.getTokensWithFunds = getTokensWithFunds;
36
- //# sourceMappingURL=getTokensWithFunds.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTokensWithFunds.js","sourceRoot":"","sources":["../../src/domain/getTokensWithFunds.ts"],"names":[],"mappings":";;;AAAA,sEAA4E;AAGrE,MAAM,kBAAkB,GAAG,CAAC,QAAmB,EAAY,EAAE;IAClE,IAAI,CAAC,QAAQ,EAAE,MAAM;QAAE,OAAO,EAAE,CAAC;IAEjC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAmD,CAAC;IAE7E,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;QAC9B,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ;YAAE,SAAS;QAE3C,MAAM,aAAa,GAAG,IAAA,0BAAgB,EAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC1D,MAAM,WAAW,GAAG,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;QAClD,IAAI,CAAC,WAAW;YAAE,SAAS;QAE3B,MAAM,OAAO,GAAG,GAAG,QAAQ,CAAC,MAAM,IAAI,WAAW,EAAE,CAAC;QACpD,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE;YACrB,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,WAAW;SACZ,CAAC,CAAC;QAEH,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE;YACxC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,UAAU,IAAI,EAAE,CAAC;YAC5C,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK;gBAAE,OAAO;YAEtC,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,IAAI,WAAW,EAAE,CAAC;YAChD,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE;gBACpB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,WAAW;aACZ,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,GAAG,MAAM,OAAO,WAAW,EAAE,CAAC,CAAC;AACpG,CAAC,CAAC;AAhCW,QAAA,kBAAkB,sBAgC7B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=getTokensWithFunds.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTokensWithFunds.test.d.ts","sourceRoot":"","sources":["../../src/domain/getTokensWithFunds.test.ts"],"names":[],"mappings":""}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const account_1 = require("@ledgerhq/coin-framework/lib/mocks/account");
7
- const index_1 = require("@ledgerhq/live-common/currencies/index");
8
- const bignumber_js_1 = __importDefault(require("bignumber.js"));
9
- const getTokensWithFunds_1 = require("./getTokensWithFunds");
10
- const ETH = (0, index_1.getCryptoCurrencyById)("ethereum");
11
- const mockedAccounts = [
12
- (0, account_1.genAccount)("mocked-account-2", {
13
- currency: ETH,
14
- }),
15
- ];
16
- describe("getTokensWithFunds", () => {
17
- it("should return empty array if no accounts", () => {
18
- const result = (0, getTokensWithFunds_1.getTokensWithFunds)([]);
19
- expect(result).toEqual([]);
20
- });
21
- it("should return array with accounts with funds", () => {
22
- const account = mockedAccounts[0];
23
- const result = (0, getTokensWithFunds_1.getTokensWithFunds)(mockedAccounts);
24
- expect(account.balance).toBeTruthy();
25
- expect(account.balance instanceof bignumber_js_1.default).toBe(true);
26
- expect(account.balance.gt(0)).toBe(true);
27
- expect(account.subAccounts).toBeDefined();
28
- expect(account.subAccounts?.length).toBe(2);
29
- const [zrxAccount, repAccount] = account.subAccounts || [];
30
- expect(zrxAccount.balance).toBeTruthy();
31
- expect(zrxAccount.balance instanceof bignumber_js_1.default).toBe(true);
32
- expect(zrxAccount.balance.gt(0)).toBe(true);
33
- expect(repAccount.balance).toBeTruthy();
34
- expect(repAccount.balance instanceof bignumber_js_1.default).toBe(true);
35
- expect(repAccount.balance.gt(0)).toBe(true);
36
- expect(result).toEqual(["ETH on Ethereum", "ZRX on Ethereum", "REP on Ethereum"]);
37
- });
38
- it("should return array with accounts with funds", () => {
39
- const account = mockedAccounts[0];
40
- expect(account.balance).toBeTruthy();
41
- expect(account.balance instanceof bignumber_js_1.default).toBe(true);
42
- expect(account.balance.gt(0)).toBe(true);
43
- expect(account.subAccounts).toBeDefined();
44
- expect(account.subAccounts?.length).toBe(2);
45
- const [zrxAccount, repAccount] = account.subAccounts || [];
46
- const emptyRepAccount = { ...repAccount, balance: new bignumber_js_1.default(0) };
47
- expect(zrxAccount.balance).toBeTruthy();
48
- expect(zrxAccount.balance instanceof bignumber_js_1.default).toBe(true);
49
- expect(zrxAccount.balance.gt(0)).toBe(true);
50
- expect(emptyRepAccount.balance).toBeTruthy();
51
- expect(emptyRepAccount.balance instanceof bignumber_js_1.default).toBe(true);
52
- expect(emptyRepAccount.balance.gt(0)).toBe(false);
53
- const accounts = { ...account, subAccounts: [zrxAccount, emptyRepAccount] };
54
- const result = (0, getTokensWithFunds_1.getTokensWithFunds)([accounts]);
55
- expect(result).toEqual(["ETH on Ethereum", "ZRX on Ethereum"]);
56
- });
57
- it("should return array with accounts with funds without duplication", () => {
58
- const account = mockedAccounts[0];
59
- expect(account.balance).toBeTruthy();
60
- expect(account.balance instanceof bignumber_js_1.default).toBe(true);
61
- expect(account.balance.gt(0)).toBe(true);
62
- expect(account.subAccounts).toBeDefined();
63
- expect(account.subAccounts?.length).toBe(2);
64
- const [zrxAccount, repAccount] = account.subAccounts || [];
65
- const accounts = { ...account, subAccounts: [zrxAccount, repAccount, repAccount] };
66
- expect(accounts.subAccounts.length).toBe(3);
67
- const result = (0, getTokensWithFunds_1.getTokensWithFunds)([accounts]);
68
- expect(result).toEqual(["ETH on Ethereum", "ZRX on Ethereum", "REP on Ethereum"]);
69
- });
70
- });
71
- //# sourceMappingURL=getTokensWithFunds.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTokensWithFunds.test.js","sourceRoot":"","sources":["../../src/domain/getTokensWithFunds.test.ts"],"names":[],"mappings":";;;;;AAAA,wEAAwE;AACxE,kEAA+E;AAE/E,gEAAqC;AACrC,6DAA0D;AAE1D,MAAM,GAAG,GAAG,IAAA,6BAAqB,EAAC,UAAU,CAAC,CAAC;AAE9C,MAAM,cAAc,GAAc;IAChC,IAAA,oBAAU,EAAC,kBAAkB,EAAE;QAC7B,QAAQ,EAAE,GAAG;KACd,CAAC;CACH,CAAC;AAEF,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAClD,MAAM,MAAM,GAAG,IAAA,uCAAkB,EAAC,EAAE,CAAC,CAAC;QACtC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,IAAA,uCAAkB,EAAC,cAAc,CAAC,CAAC;QAElD,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,UAAU,EA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