@ledgerhq/live-common 34.43.0-nightly.2 → 34.43.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 (176) hide show
  1. package/lib/appSupportsQuitApp.d.ts +0 -1
  2. package/lib/appSupportsQuitApp.d.ts.map +1 -1
  3. package/lib/appSupportsQuitApp.js +0 -1
  4. package/lib/appSupportsQuitApp.js.map +1 -1
  5. package/lib/appSupportsQuitApp.test.js +3 -28
  6. package/lib/appSupportsQuitApp.test.js.map +1 -1
  7. package/lib/bridge/generic-alpaca/alpaca/index.d.ts +1 -1
  8. package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  9. package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  10. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts +6 -2
  11. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts.map +1 -1
  12. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.js.map +1 -1
  13. package/lib/bridge/generic-alpaca/signOperation.js.map +1 -1
  14. package/lib/bridge/generic-alpaca/utils.d.ts +2 -2
  15. package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
  16. package/lib/bridge/generic-alpaca/utils.js +1 -1
  17. package/lib/bridge/generic-alpaca/utils.js.map +1 -1
  18. package/lib/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.d.ts +2 -0
  19. package/lib/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.d.ts.map +1 -0
  20. package/lib/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.js +114 -0
  21. package/lib/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.js.map +1 -0
  22. package/lib/deviceSDK/hooks/filterIgnoredFirmwareUpdates.d.ts +11 -0
  23. package/lib/deviceSDK/hooks/filterIgnoredFirmwareUpdates.d.ts.map +1 -0
  24. package/lib/deviceSDK/hooks/filterIgnoredFirmwareUpdates.js +26 -0
  25. package/lib/deviceSDK/hooks/filterIgnoredFirmwareUpdates.js.map +1 -0
  26. package/lib/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.d.ts +12 -0
  27. package/lib/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.d.ts.map +1 -0
  28. package/lib/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.js +24 -0
  29. package/lib/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.js.map +1 -0
  30. package/lib/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.d.ts +2 -0
  31. package/lib/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.d.ts.map +1 -0
  32. package/lib/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.js +118 -0
  33. package/lib/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.js.map +1 -0
  34. package/lib/deviceSDK/hooks/useGetLatestAvailableFirmware.d.ts +3 -1
  35. package/lib/deviceSDK/hooks/useGetLatestAvailableFirmware.d.ts.map +1 -1
  36. package/lib/deviceSDK/hooks/useGetLatestAvailableFirmware.js +7 -3
  37. package/lib/deviceSDK/hooks/useGetLatestAvailableFirmware.js.map +1 -1
  38. package/lib/e2e/index.d.ts +2 -1
  39. package/lib/e2e/index.d.ts.map +1 -1
  40. package/lib/e2e/speculos.d.ts.map +1 -1
  41. package/lib/e2e/speculos.js +15 -45
  42. package/lib/e2e/speculos.js.map +1 -1
  43. package/lib/e2e/speculosCI.d.ts.map +1 -1
  44. package/lib/e2e/speculosCI.js +4 -22
  45. package/lib/e2e/speculosCI.js.map +1 -1
  46. package/lib/env.react.d.ts +1 -1
  47. package/lib/env.react.d.ts.map +1 -1
  48. package/lib/families/solana/bridge/mock-data.d.ts.map +1 -1
  49. package/lib/families/solana/bridge/mock-data.js +316 -46
  50. package/lib/families/solana/bridge/mock-data.js.map +1 -1
  51. package/lib/families/solana/bridge/mock.js +2 -2
  52. package/lib/families/solana/bridge/mock.js.map +1 -1
  53. package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
  54. package/lib/featureFlags/defaultFeatures.js +4 -0
  55. package/lib/featureFlags/defaultFeatures.js.map +1 -1
  56. package/lib/featureFlags/useFeature.d.ts +1 -1
  57. package/lib/featureFlags/useFeature.d.ts.map +1 -1
  58. package/lib-es/appSupportsQuitApp.d.ts +0 -1
  59. package/lib-es/appSupportsQuitApp.d.ts.map +1 -1
  60. package/lib-es/appSupportsQuitApp.js +0 -1
  61. package/lib-es/appSupportsQuitApp.js.map +1 -1
  62. package/lib-es/appSupportsQuitApp.test.js +1 -6
  63. package/lib-es/appSupportsQuitApp.test.js.map +1 -1
  64. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts +1 -1
  65. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  66. package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  67. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts +6 -2
  68. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts.map +1 -1
  69. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.js.map +1 -1
  70. package/lib-es/bridge/generic-alpaca/signOperation.js.map +1 -1
  71. package/lib-es/bridge/generic-alpaca/utils.d.ts +2 -2
  72. package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
  73. package/lib-es/bridge/generic-alpaca/utils.js +1 -1
  74. package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
  75. package/lib-es/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.d.ts +2 -0
  76. package/lib-es/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.d.ts.map +1 -0
  77. package/lib-es/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.js +112 -0
  78. package/lib-es/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.js.map +1 -0
  79. package/lib-es/deviceSDK/hooks/filterIgnoredFirmwareUpdates.d.ts +11 -0
  80. package/lib-es/deviceSDK/hooks/filterIgnoredFirmwareUpdates.d.ts.map +1 -0
  81. package/lib-es/deviceSDK/hooks/filterIgnoredFirmwareUpdates.js +22 -0
  82. package/lib-es/deviceSDK/hooks/filterIgnoredFirmwareUpdates.js.map +1 -0
  83. package/lib-es/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.d.ts +12 -0
  84. package/lib-es/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.d.ts.map +1 -0
  85. package/lib-es/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.js +20 -0
  86. package/lib-es/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.js.map +1 -0
  87. package/lib-es/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.d.ts +2 -0
  88. package/lib-es/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.d.ts.map +1 -0
  89. package/lib-es/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.js +116 -0
  90. package/lib-es/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.js.map +1 -0
  91. package/lib-es/deviceSDK/hooks/useGetLatestAvailableFirmware.d.ts +3 -1
  92. package/lib-es/deviceSDK/hooks/useGetLatestAvailableFirmware.d.ts.map +1 -1
  93. package/lib-es/deviceSDK/hooks/useGetLatestAvailableFirmware.js +7 -3
  94. package/lib-es/deviceSDK/hooks/useGetLatestAvailableFirmware.js.map +1 -1
  95. package/lib-es/e2e/index.d.ts +2 -1
  96. package/lib-es/e2e/index.d.ts.map +1 -1
  97. package/lib-es/e2e/speculos.d.ts.map +1 -1
  98. package/lib-es/e2e/speculos.js +15 -45
  99. package/lib-es/e2e/speculos.js.map +1 -1
  100. package/lib-es/e2e/speculosCI.d.ts.map +1 -1
  101. package/lib-es/e2e/speculosCI.js +4 -22
  102. package/lib-es/e2e/speculosCI.js.map +1 -1
  103. package/lib-es/env.react.d.ts +1 -1
  104. package/lib-es/env.react.d.ts.map +1 -1
  105. package/lib-es/families/solana/bridge/mock-data.d.ts.map +1 -1
  106. package/lib-es/families/solana/bridge/mock-data.js +316 -46
  107. package/lib-es/families/solana/bridge/mock-data.js.map +1 -1
  108. package/lib-es/families/solana/bridge/mock.js +3 -3
  109. package/lib-es/families/solana/bridge/mock.js.map +1 -1
  110. package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
  111. package/lib-es/featureFlags/defaultFeatures.js +4 -0
  112. package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
  113. package/lib-es/featureFlags/useFeature.d.ts +1 -1
  114. package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
  115. package/package.json +48 -48
  116. package/src/appSupportsQuitApp.test.ts +1 -7
  117. package/src/appSupportsQuitApp.ts +0 -1
  118. package/src/bridge/generic-alpaca/alpaca/index.ts +3 -3
  119. package/src/bridge/generic-alpaca/alpaca/network/network-alpaca.ts +8 -3
  120. package/src/bridge/generic-alpaca/signOperation.ts +1 -1
  121. package/src/bridge/generic-alpaca/utils.ts +10 -3
  122. package/src/deviceSDK/hooks/__tests__/filterIgnoredFirmwareUpdates.test.ts +132 -0
  123. package/src/deviceSDK/hooks/filterIgnoredFirmwareUpdates.ts +27 -0
  124. package/src/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.test.ts +192 -0
  125. package/src/deviceSDK/hooks/getIgnoredOSUpdatesForDeviceModelAndPlatform.ts +28 -0
  126. package/src/deviceSDK/hooks/useGetLatestAvailableFirmware.ts +9 -2
  127. package/src/e2e/speculos.ts +21 -77
  128. package/src/e2e/speculosCI.ts +10 -32
  129. package/src/families/solana/bridge/mock-data.ts +316 -52
  130. package/src/families/solana/bridge/mock.ts +3 -3
  131. package/src/featureFlags/defaultFeatures.ts +4 -0
  132. package/lib/modularDrawer/__mocks__/accounts.mock.d.ts +0 -18
  133. package/lib/modularDrawer/__mocks__/accounts.mock.d.ts.map +0 -1
  134. package/lib/modularDrawer/__mocks__/accounts.mock.js +0 -48
  135. package/lib/modularDrawer/__mocks__/accounts.mock.js.map +0 -1
  136. package/lib/utils/__tests__/composeHooks.test.d.ts +0 -2
  137. package/lib/utils/__tests__/composeHooks.test.d.ts.map +0 -1
  138. package/lib/utils/__tests__/composeHooks.test.js +0 -35
  139. package/lib/utils/__tests__/composeHooks.test.js.map +0 -1
  140. package/lib/utils/__tests__/getAccountTuplesForCurrency.test.d.ts +0 -2
  141. package/lib/utils/__tests__/getAccountTuplesForCurrency.test.d.ts.map +0 -1
  142. package/lib/utils/__tests__/getAccountTuplesForCurrency.test.js +0 -104
  143. package/lib/utils/__tests__/getAccountTuplesForCurrency.test.js.map +0 -1
  144. package/lib/utils/composeHooks.d.ts +0 -11
  145. package/lib/utils/composeHooks.d.ts.map +0 -1
  146. package/lib/utils/composeHooks.js +0 -25
  147. package/lib/utils/composeHooks.js.map +0 -1
  148. package/lib/utils/getAccountTuplesForCurrency.d.ts +0 -8
  149. package/lib/utils/getAccountTuplesForCurrency.d.ts.map +0 -1
  150. package/lib/utils/getAccountTuplesForCurrency.js +0 -19
  151. package/lib/utils/getAccountTuplesForCurrency.js.map +0 -1
  152. package/lib-es/modularDrawer/__mocks__/accounts.mock.d.ts +0 -18
  153. package/lib-es/modularDrawer/__mocks__/accounts.mock.d.ts.map +0 -1
  154. package/lib-es/modularDrawer/__mocks__/accounts.mock.js +0 -42
  155. package/lib-es/modularDrawer/__mocks__/accounts.mock.js.map +0 -1
  156. package/lib-es/utils/__tests__/composeHooks.test.d.ts +0 -2
  157. package/lib-es/utils/__tests__/composeHooks.test.d.ts.map +0 -1
  158. package/lib-es/utils/__tests__/composeHooks.test.js +0 -33
  159. package/lib-es/utils/__tests__/composeHooks.test.js.map +0 -1
  160. package/lib-es/utils/__tests__/getAccountTuplesForCurrency.test.d.ts +0 -2
  161. package/lib-es/utils/__tests__/getAccountTuplesForCurrency.test.d.ts.map +0 -1
  162. package/lib-es/utils/__tests__/getAccountTuplesForCurrency.test.js +0 -102
  163. package/lib-es/utils/__tests__/getAccountTuplesForCurrency.test.js.map +0 -1
  164. package/lib-es/utils/composeHooks.d.ts +0 -11
  165. package/lib-es/utils/composeHooks.d.ts.map +0 -1
  166. package/lib-es/utils/composeHooks.js +0 -21
  167. package/lib-es/utils/composeHooks.js.map +0 -1
  168. package/lib-es/utils/getAccountTuplesForCurrency.d.ts +0 -8
  169. package/lib-es/utils/getAccountTuplesForCurrency.d.ts.map +0 -1
  170. package/lib-es/utils/getAccountTuplesForCurrency.js +0 -15
  171. package/lib-es/utils/getAccountTuplesForCurrency.js.map +0 -1
  172. package/src/modularDrawer/__mocks__/accounts.mock.ts +0 -43
  173. package/src/utils/__tests__/composeHooks.test.ts +0 -46
  174. package/src/utils/__tests__/getAccountTuplesForCurrency.test.ts +0 -138
  175. package/src/utils/composeHooks.ts +0 -26
  176. package/src/utils/getAccountTuplesForCurrency.ts +0 -34
@@ -7,34 +7,6 @@ import {
7
7
  } from "@ledgerhq/coin-solana/network/index";
8
8
  import { Functions } from "@ledgerhq/coin-solana/utils";
9
9
 
10
- // Helper function to generate mock prioritization fees
11
- const generatePrioritizationFees = (
12
- startSlot: number,
13
- count: number = 150,
14
- prioritizationFee: number = 0,
15
- ) => {
16
- return Array.from({ length: count }, (_, index) => ({
17
- prioritizationFee,
18
- slot: startSlot + index,
19
- }));
20
- };
21
-
22
- // Helper function to generate nested prioritization fees format
23
- const generateNestedPrioritizationFees = (slot: number, prioritizationFee: number = 0) => {
24
- return [
25
- [
26
- {
27
- slot,
28
- prioritizationFee,
29
- },
30
- {
31
- slot,
32
- prioritizationFee,
33
- },
34
- ],
35
- ];
36
- };
37
-
38
10
  export const getMockedMethods = (): {
39
11
  method: Functions<ChainAPI>;
40
12
  params: any[];
@@ -917,7 +889,18 @@ export const getMockedMethods = (): {
917
889
  {
918
890
  method: "getRecentPrioritizationFees",
919
891
  params: [["AQbkEagmPgmsdAfS4X8V8UyJnXXjVPMvjeD15etqQ3Jh"]],
920
- answer: generateNestedPrioritizationFees(122422797),
892
+ answer: [
893
+ [
894
+ {
895
+ slot: 122422797,
896
+ prioritizationFee: 0,
897
+ },
898
+ {
899
+ slot: 122422797,
900
+ prioritizationFee: 0,
901
+ },
902
+ ],
903
+ ],
921
904
  },
922
905
  {
923
906
  method: "getAccountInfo",
@@ -963,7 +946,158 @@ export const getMockedMethods = (): {
963
946
  {
964
947
  method: "getRecentPrioritizationFees",
965
948
  params: [["4iWtrn54zi89sHQv6xHyYwDsrPJvqcSKRJGBLrbErCsx"]],
966
- answer: generatePrioritizationFees(349496453),
949
+ answer: [
950
+ { prioritizationFee: 0, slot: 349496453 },
951
+ { prioritizationFee: 0, slot: 349496454 },
952
+ { prioritizationFee: 0, slot: 349496455 },
953
+ { prioritizationFee: 0, slot: 349496456 },
954
+ { prioritizationFee: 0, slot: 349496457 },
955
+ { prioritizationFee: 0, slot: 349496458 },
956
+ { prioritizationFee: 0, slot: 349496459 },
957
+ { prioritizationFee: 0, slot: 349496460 },
958
+ { prioritizationFee: 0, slot: 349496461 },
959
+ { prioritizationFee: 0, slot: 349496462 },
960
+ { prioritizationFee: 0, slot: 349496463 },
961
+ { prioritizationFee: 0, slot: 349496464 },
962
+ { prioritizationFee: 0, slot: 349496465 },
963
+ { prioritizationFee: 0, slot: 349496466 },
964
+ { prioritizationFee: 0, slot: 349496467 },
965
+ { prioritizationFee: 0, slot: 349496468 },
966
+ { prioritizationFee: 0, slot: 349496469 },
967
+ { prioritizationFee: 0, slot: 349496470 },
968
+ { prioritizationFee: 0, slot: 349496471 },
969
+ { prioritizationFee: 0, slot: 349496472 },
970
+ { prioritizationFee: 0, slot: 349496473 },
971
+ { prioritizationFee: 0, slot: 349496474 },
972
+ { prioritizationFee: 0, slot: 349496475 },
973
+ { prioritizationFee: 0, slot: 349496476 },
974
+ { prioritizationFee: 0, slot: 349496477 },
975
+ { prioritizationFee: 0, slot: 349496478 },
976
+ { prioritizationFee: 0, slot: 349496479 },
977
+ { prioritizationFee: 0, slot: 349496480 },
978
+ { prioritizationFee: 0, slot: 349496481 },
979
+ { prioritizationFee: 0, slot: 349496482 },
980
+ { prioritizationFee: 0, slot: 349496483 },
981
+ { prioritizationFee: 0, slot: 349496484 },
982
+ { prioritizationFee: 0, slot: 349496485 },
983
+ { prioritizationFee: 0, slot: 349496486 },
984
+ { prioritizationFee: 0, slot: 349496487 },
985
+ { prioritizationFee: 0, slot: 349496488 },
986
+ { prioritizationFee: 0, slot: 349496489 },
987
+ { prioritizationFee: 0, slot: 349496490 },
988
+ { prioritizationFee: 0, slot: 349496491 },
989
+ { prioritizationFee: 0, slot: 349496492 },
990
+ { prioritizationFee: 0, slot: 349496493 },
991
+ { prioritizationFee: 0, slot: 349496494 },
992
+ { prioritizationFee: 0, slot: 349496495 },
993
+ { prioritizationFee: 0, slot: 349496496 },
994
+ { prioritizationFee: 0, slot: 349496497 },
995
+ { prioritizationFee: 0, slot: 349496498 },
996
+ { prioritizationFee: 0, slot: 349496499 },
997
+ { prioritizationFee: 0, slot: 349496500 },
998
+ { prioritizationFee: 0, slot: 349496501 },
999
+ { prioritizationFee: 0, slot: 349496502 },
1000
+ { prioritizationFee: 0, slot: 349496503 },
1001
+ { prioritizationFee: 0, slot: 349496504 },
1002
+ { prioritizationFee: 0, slot: 349496505 },
1003
+ { prioritizationFee: 0, slot: 349496506 },
1004
+ { prioritizationFee: 0, slot: 349496507 },
1005
+ { prioritizationFee: 0, slot: 349496508 },
1006
+ { prioritizationFee: 0, slot: 349496509 },
1007
+ { prioritizationFee: 0, slot: 349496510 },
1008
+ { prioritizationFee: 0, slot: 349496511 },
1009
+ { prioritizationFee: 0, slot: 349496512 },
1010
+ { prioritizationFee: 0, slot: 349496513 },
1011
+ { prioritizationFee: 0, slot: 349496514 },
1012
+ { prioritizationFee: 0, slot: 349496515 },
1013
+ { prioritizationFee: 0, slot: 349496516 },
1014
+ { prioritizationFee: 0, slot: 349496517 },
1015
+ { prioritizationFee: 0, slot: 349496518 },
1016
+ { prioritizationFee: 0, slot: 349496519 },
1017
+ { prioritizationFee: 0, slot: 349496520 },
1018
+ { prioritizationFee: 0, slot: 349496521 },
1019
+ { prioritizationFee: 0, slot: 349496522 },
1020
+ { prioritizationFee: 0, slot: 349496523 },
1021
+ { prioritizationFee: 0, slot: 349496524 },
1022
+ { prioritizationFee: 0, slot: 349496525 },
1023
+ { prioritizationFee: 0, slot: 349496526 },
1024
+ { prioritizationFee: 0, slot: 349496527 },
1025
+ { prioritizationFee: 0, slot: 349496528 },
1026
+ { prioritizationFee: 0, slot: 349496529 },
1027
+ { prioritizationFee: 0, slot: 349496530 },
1028
+ { prioritizationFee: 0, slot: 349496531 },
1029
+ { prioritizationFee: 0, slot: 349496532 },
1030
+ { prioritizationFee: 0, slot: 349496533 },
1031
+ { prioritizationFee: 0, slot: 349496534 },
1032
+ { prioritizationFee: 0, slot: 349496535 },
1033
+ { prioritizationFee: 0, slot: 349496536 },
1034
+ { prioritizationFee: 0, slot: 349496537 },
1035
+ { prioritizationFee: 0, slot: 349496538 },
1036
+ { prioritizationFee: 0, slot: 349496539 },
1037
+ { prioritizationFee: 0, slot: 349496540 },
1038
+ { prioritizationFee: 0, slot: 349496541 },
1039
+ { prioritizationFee: 0, slot: 349496542 },
1040
+ { prioritizationFee: 0, slot: 349496543 },
1041
+ { prioritizationFee: 0, slot: 349496544 },
1042
+ { prioritizationFee: 0, slot: 349496545 },
1043
+ { prioritizationFee: 0, slot: 349496546 },
1044
+ { prioritizationFee: 0, slot: 349496547 },
1045
+ { prioritizationFee: 0, slot: 349496548 },
1046
+ { prioritizationFee: 0, slot: 349496549 },
1047
+ { prioritizationFee: 0, slot: 349496550 },
1048
+ { prioritizationFee: 0, slot: 349496551 },
1049
+ { prioritizationFee: 0, slot: 349496552 },
1050
+ { prioritizationFee: 0, slot: 349496553 },
1051
+ { prioritizationFee: 0, slot: 349496554 },
1052
+ { prioritizationFee: 0, slot: 349496555 },
1053
+ { prioritizationFee: 0, slot: 349496556 },
1054
+ { prioritizationFee: 0, slot: 349496557 },
1055
+ { prioritizationFee: 0, slot: 349496558 },
1056
+ { prioritizationFee: 0, slot: 349496559 },
1057
+ { prioritizationFee: 0, slot: 349496560 },
1058
+ { prioritizationFee: 0, slot: 349496561 },
1059
+ { prioritizationFee: 0, slot: 349496562 },
1060
+ { prioritizationFee: 0, slot: 349496563 },
1061
+ { prioritizationFee: 0, slot: 349496564 },
1062
+ { prioritizationFee: 0, slot: 349496565 },
1063
+ { prioritizationFee: 0, slot: 349496566 },
1064
+ { prioritizationFee: 0, slot: 349496567 },
1065
+ { prioritizationFee: 0, slot: 349496568 },
1066
+ { prioritizationFee: 0, slot: 349496569 },
1067
+ { prioritizationFee: 0, slot: 349496570 },
1068
+ { prioritizationFee: 0, slot: 349496571 },
1069
+ { prioritizationFee: 0, slot: 349496572 },
1070
+ { prioritizationFee: 0, slot: 349496573 },
1071
+ { prioritizationFee: 0, slot: 349496574 },
1072
+ { prioritizationFee: 0, slot: 349496575 },
1073
+ { prioritizationFee: 0, slot: 349496576 },
1074
+ { prioritizationFee: 0, slot: 349496577 },
1075
+ { prioritizationFee: 0, slot: 349496578 },
1076
+ { prioritizationFee: 0, slot: 349496579 },
1077
+ { prioritizationFee: 0, slot: 349496580 },
1078
+ { prioritizationFee: 0, slot: 349496581 },
1079
+ { prioritizationFee: 0, slot: 349496582 },
1080
+ { prioritizationFee: 0, slot: 349496583 },
1081
+ { prioritizationFee: 0, slot: 349496584 },
1082
+ { prioritizationFee: 0, slot: 349496585 },
1083
+ { prioritizationFee: 0, slot: 349496586 },
1084
+ { prioritizationFee: 0, slot: 349496587 },
1085
+ { prioritizationFee: 0, slot: 349496588 },
1086
+ { prioritizationFee: 0, slot: 349496589 },
1087
+ { prioritizationFee: 0, slot: 349496590 },
1088
+ { prioritizationFee: 0, slot: 349496591 },
1089
+ { prioritizationFee: 0, slot: 349496592 },
1090
+ { prioritizationFee: 0, slot: 349496593 },
1091
+ { prioritizationFee: 0, slot: 349496594 },
1092
+ { prioritizationFee: 0, slot: 349496595 },
1093
+ { prioritizationFee: 0, slot: 349496596 },
1094
+ { prioritizationFee: 0, slot: 349496597 },
1095
+ { prioritizationFee: 0, slot: 349496598 },
1096
+ { prioritizationFee: 0, slot: 349496599 },
1097
+ { prioritizationFee: 0, slot: 349496600 },
1098
+ { prioritizationFee: 0, slot: 349496601 },
1099
+ { prioritizationFee: 0, slot: 349496602 },
1100
+ ],
967
1101
  },
968
1102
  {
969
1103
  method: "getSimulationComputeUnits",
@@ -1005,7 +1139,158 @@ export const getMockedMethods = (): {
1005
1139
  "63M7kPJvLsG46jbR2ZriEU8xwPqkMNKNoBBQ46pobbvo",
1006
1140
  ],
1007
1141
  ],
1008
- answer: generatePrioritizationFees(349496454),
1142
+ answer: [
1143
+ { prioritizationFee: 0, slot: 349496454 },
1144
+ { prioritizationFee: 0, slot: 349496455 },
1145
+ { prioritizationFee: 0, slot: 349496456 },
1146
+ { prioritizationFee: 0, slot: 349496457 },
1147
+ { prioritizationFee: 0, slot: 349496458 },
1148
+ { prioritizationFee: 0, slot: 349496459 },
1149
+ { prioritizationFee: 0, slot: 349496460 },
1150
+ { prioritizationFee: 0, slot: 349496461 },
1151
+ { prioritizationFee: 0, slot: 349496462 },
1152
+ { prioritizationFee: 0, slot: 349496463 },
1153
+ { prioritizationFee: 0, slot: 349496464 },
1154
+ { prioritizationFee: 0, slot: 349496465 },
1155
+ { prioritizationFee: 0, slot: 349496466 },
1156
+ { prioritizationFee: 0, slot: 349496467 },
1157
+ { prioritizationFee: 0, slot: 349496468 },
1158
+ { prioritizationFee: 0, slot: 349496469 },
1159
+ { prioritizationFee: 0, slot: 349496470 },
1160
+ { prioritizationFee: 0, slot: 349496471 },
1161
+ { prioritizationFee: 0, slot: 349496472 },
1162
+ { prioritizationFee: 0, slot: 349496473 },
1163
+ { prioritizationFee: 0, slot: 349496474 },
1164
+ { prioritizationFee: 0, slot: 349496475 },
1165
+ { prioritizationFee: 0, slot: 349496476 },
1166
+ { prioritizationFee: 0, slot: 349496477 },
1167
+ { prioritizationFee: 0, slot: 349496478 },
1168
+ { prioritizationFee: 0, slot: 349496479 },
1169
+ { prioritizationFee: 0, slot: 349496480 },
1170
+ { prioritizationFee: 0, slot: 349496481 },
1171
+ { prioritizationFee: 0, slot: 349496482 },
1172
+ { prioritizationFee: 0, slot: 349496483 },
1173
+ { prioritizationFee: 0, slot: 349496484 },
1174
+ { prioritizationFee: 0, slot: 349496485 },
1175
+ { prioritizationFee: 0, slot: 349496486 },
1176
+ { prioritizationFee: 0, slot: 349496487 },
1177
+ { prioritizationFee: 0, slot: 349496488 },
1178
+ { prioritizationFee: 0, slot: 349496489 },
1179
+ { prioritizationFee: 0, slot: 349496490 },
1180
+ { prioritizationFee: 0, slot: 349496491 },
1181
+ { prioritizationFee: 0, slot: 349496492 },
1182
+ { prioritizationFee: 0, slot: 349496493 },
1183
+ { prioritizationFee: 0, slot: 349496494 },
1184
+ { prioritizationFee: 0, slot: 349496495 },
1185
+ { prioritizationFee: 0, slot: 349496496 },
1186
+ { prioritizationFee: 0, slot: 349496497 },
1187
+ { prioritizationFee: 0, slot: 349496498 },
1188
+ { prioritizationFee: 0, slot: 349496499 },
1189
+ { prioritizationFee: 0, slot: 349496500 },
1190
+ { prioritizationFee: 0, slot: 349496501 },
1191
+ { prioritizationFee: 0, slot: 349496502 },
1192
+ { prioritizationFee: 0, slot: 349496503 },
1193
+ { prioritizationFee: 0, slot: 349496504 },
1194
+ { prioritizationFee: 0, slot: 349496505 },
1195
+ { prioritizationFee: 0, slot: 349496506 },
1196
+ { prioritizationFee: 0, slot: 349496507 },
1197
+ { prioritizationFee: 0, slot: 349496508 },
1198
+ { prioritizationFee: 0, slot: 349496509 },
1199
+ { prioritizationFee: 0, slot: 349496510 },
1200
+ { prioritizationFee: 0, slot: 349496511 },
1201
+ { prioritizationFee: 0, slot: 349496512 },
1202
+ { prioritizationFee: 0, slot: 349496513 },
1203
+ { prioritizationFee: 0, slot: 349496514 },
1204
+ { prioritizationFee: 0, slot: 349496515 },
1205
+ { prioritizationFee: 0, slot: 349496516 },
1206
+ { prioritizationFee: 0, slot: 349496517 },
1207
+ { prioritizationFee: 0, slot: 349496518 },
1208
+ { prioritizationFee: 0, slot: 349496519 },
1209
+ { prioritizationFee: 0, slot: 349496520 },
1210
+ { prioritizationFee: 0, slot: 349496521 },
1211
+ { prioritizationFee: 0, slot: 349496522 },
1212
+ { prioritizationFee: 0, slot: 349496523 },
1213
+ { prioritizationFee: 0, slot: 349496524 },
1214
+ { prioritizationFee: 0, slot: 349496525 },
1215
+ { prioritizationFee: 0, slot: 349496526 },
1216
+ { prioritizationFee: 0, slot: 349496527 },
1217
+ { prioritizationFee: 0, slot: 349496528 },
1218
+ { prioritizationFee: 0, slot: 349496529 },
1219
+ { prioritizationFee: 0, slot: 349496530 },
1220
+ { prioritizationFee: 0, slot: 349496531 },
1221
+ { prioritizationFee: 0, slot: 349496532 },
1222
+ { prioritizationFee: 0, slot: 349496533 },
1223
+ { prioritizationFee: 0, slot: 349496534 },
1224
+ { prioritizationFee: 0, slot: 349496535 },
1225
+ { prioritizationFee: 0, slot: 349496536 },
1226
+ { prioritizationFee: 0, slot: 349496537 },
1227
+ { prioritizationFee: 0, slot: 349496538 },
1228
+ { prioritizationFee: 0, slot: 349496539 },
1229
+ { prioritizationFee: 0, slot: 349496540 },
1230
+ { prioritizationFee: 0, slot: 349496541 },
1231
+ { prioritizationFee: 0, slot: 349496542 },
1232
+ { prioritizationFee: 0, slot: 349496543 },
1233
+ { prioritizationFee: 0, slot: 349496544 },
1234
+ { prioritizationFee: 0, slot: 349496545 },
1235
+ { prioritizationFee: 0, slot: 349496546 },
1236
+ { prioritizationFee: 0, slot: 349496547 },
1237
+ { prioritizationFee: 0, slot: 349496548 },
1238
+ { prioritizationFee: 0, slot: 349496549 },
1239
+ { prioritizationFee: 0, slot: 349496550 },
1240
+ { prioritizationFee: 0, slot: 349496551 },
1241
+ { prioritizationFee: 0, slot: 349496552 },
1242
+ { prioritizationFee: 0, slot: 349496553 },
1243
+ { prioritizationFee: 0, slot: 349496554 },
1244
+ { prioritizationFee: 0, slot: 349496555 },
1245
+ { prioritizationFee: 0, slot: 349496556 },
1246
+ { prioritizationFee: 0, slot: 349496557 },
1247
+ { prioritizationFee: 0, slot: 349496558 },
1248
+ { prioritizationFee: 0, slot: 349496559 },
1249
+ { prioritizationFee: 0, slot: 349496560 },
1250
+ { prioritizationFee: 0, slot: 349496561 },
1251
+ { prioritizationFee: 0, slot: 349496562 },
1252
+ { prioritizationFee: 0, slot: 349496563 },
1253
+ { prioritizationFee: 0, slot: 349496564 },
1254
+ { prioritizationFee: 0, slot: 349496565 },
1255
+ { prioritizationFee: 0, slot: 349496566 },
1256
+ { prioritizationFee: 0, slot: 349496567 },
1257
+ { prioritizationFee: 0, slot: 349496568 },
1258
+ { prioritizationFee: 0, slot: 349496569 },
1259
+ { prioritizationFee: 0, slot: 349496570 },
1260
+ { prioritizationFee: 0, slot: 349496571 },
1261
+ { prioritizationFee: 0, slot: 349496572 },
1262
+ { prioritizationFee: 0, slot: 349496573 },
1263
+ { prioritizationFee: 0, slot: 349496574 },
1264
+ { prioritizationFee: 0, slot: 349496575 },
1265
+ { prioritizationFee: 0, slot: 349496576 },
1266
+ { prioritizationFee: 0, slot: 349496577 },
1267
+ { prioritizationFee: 0, slot: 349496578 },
1268
+ { prioritizationFee: 0, slot: 349496579 },
1269
+ { prioritizationFee: 0, slot: 349496580 },
1270
+ { prioritizationFee: 0, slot: 349496581 },
1271
+ { prioritizationFee: 0, slot: 349496582 },
1272
+ { prioritizationFee: 0, slot: 349496583 },
1273
+ { prioritizationFee: 0, slot: 349496584 },
1274
+ { prioritizationFee: 0, slot: 349496585 },
1275
+ { prioritizationFee: 0, slot: 349496586 },
1276
+ { prioritizationFee: 0, slot: 349496587 },
1277
+ { prioritizationFee: 0, slot: 349496588 },
1278
+ { prioritizationFee: 0, slot: 349496589 },
1279
+ { prioritizationFee: 0, slot: 349496590 },
1280
+ { prioritizationFee: 0, slot: 349496591 },
1281
+ { prioritizationFee: 0, slot: 349496592 },
1282
+ { prioritizationFee: 0, slot: 349496593 },
1283
+ { prioritizationFee: 0, slot: 349496594 },
1284
+ { prioritizationFee: 0, slot: 349496595 },
1285
+ { prioritizationFee: 0, slot: 349496596 },
1286
+ { prioritizationFee: 0, slot: 349496597 },
1287
+ { prioritizationFee: 0, slot: 349496598 },
1288
+ { prioritizationFee: 0, slot: 349496599 },
1289
+ { prioritizationFee: 0, slot: 349496600 },
1290
+ { prioritizationFee: 0, slot: 349496601 },
1291
+ { prioritizationFee: 0, slot: 349496602 },
1292
+ { prioritizationFee: 0, slot: 349496603 },
1293
+ ],
1009
1294
  },
1010
1295
  {
1011
1296
  method: "getSimulationComputeUnits",
@@ -1032,25 +1317,4 @@ export const getMockedMethods = (): {
1032
1317
  ],
1033
1318
  answer: 300,
1034
1319
  },
1035
- {
1036
- method: "getFeeForMessage",
1037
- params: [
1038
- "gAEAAwo3NaziKyCZH4sQdjxlyAEEsycLhyQPWK6FJrb9j7r0jyRhB0FkC3pA/3bwHKZzD9v7Rt2mGOXiT8AiHUK2gDwsRJgSfTDFH6xNF2pMhFGZxLZWMl8EsYB3Ro87lHwnuWJUb9EWTtCgOsaT9mU8t4D2GHpAPhkXU2fcZBXT6D+pjfj05KOdlS9AiDNsbZdFpLzbJQ+lmsMa+8nfR2JZTeC89UIrAvAD7ZOgJ4wimZg0XyXSOCz2YXE8kINJuux17h3+Z4YL4MPru92uqdoO9qUoSbP2t3tFyBv0piXrLPXBPgMGRm/lIRcy/+ytunLDm+e8jOW7xfcSayxDmzpAAAAABHnVW/IxwG7udMVuzmgVB/2xst6j9I5RArHNola8E48G3fbh12Whk9nL4UbO63msHLSF7V9bN5E6jPWFfv8AqRa6MXuFOieWIcE2CMOB5dDllphXzarmndZ4yX86tmlPBQcABQL1qAQABwAJA5PxAgAAAAAACAUFAB0JGAmT8Xtk9ISudv0IPwkbAAMKCwUaHQgIGQghGwoLDA4NDyAiHycJJhsaKQoEExIQESQlIycJHioXKhUUBAsdKRYqGwkJKCoGAgEIHCzBIJszQdacgQADAAAAOV0AA08HAAImZAIDgIQeAAAAAAAxibAAAAAAADIAAAkDBQAAAQkEKb+VBypPvwTfcXWT5zi8zCEnKBXCRxqA2fn1VbDUhCUCKRgHEwAoAwIXFVl9OSuqqDQaRb6IYUBogcRuGRFfhgIEuha8cjU4fZPaBGAGBWUEAwkCAX3AxxcCHMtm5xM+0XoyZnzQ09ar0YPXd26YYBeNqWxqBHj0dPIF8W95dfO3dNOoPmZnmihT46QbLY1Y/HoBFLJX/wryNAMqjbbuHQTj5MrHA87Gyw==",
1039
- ],
1040
- answer: 5126,
1041
- },
1042
- {
1043
- method: "getFeeForMessage",
1044
- params: [
1045
- "AQABAzc1rOIrIJkfixB2PGXIAQSzJwuHJA9YroUmtv2PuvSPdaMhhWgGf/cOLK4MfSqKoh7TzOlbq+4eA+l1aEoKxIQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC7eSTZPjADfAV2K5ZMTBC9Qv7DN/mRWMGcOHqHwTiqeAQICAAEMAgAAAICWmAAAAAAA",
1046
- ],
1047
- answer: 5000,
1048
- },
1049
- {
1050
- method: "getFeeForMessage",
1051
- params: [
1052
- "gAEAAQM3NaziKyCZH4sQdjxlyAEEsycLhyQPWK6FJrb9j7r0j3WjIYVoBn/3DiyuDH0qiqIe08zpW6vuHgPpdWhKCsSEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXy8ypDosdfEh+2iQdH7SMOBblSXabBjQnkjkz87PSigECAgABDAIAAACAlpgAAAAAAAA=",
1053
- ],
1054
- answer: 5000,
1055
- },
1056
1320
  ];
@@ -11,7 +11,7 @@ import { Functions } from "@ledgerhq/coin-solana/utils";
11
11
  import { makeBridges } from "@ledgerhq/coin-solana/bridge/bridge";
12
12
  import { PubKeyDisplayMode, SolanaSigner } from "@ledgerhq/coin-solana/signer";
13
13
  import { makeLRUCache, minutes } from "@ledgerhq/live-network/cache";
14
- import { Message, MessageV0 } from "@solana/web3.js";
14
+ import { Message } from "@solana/web3.js";
15
15
  import { flow, isArray, isEqual, isObject, isUndefined, mapValues, omitBy } from "lodash/fp";
16
16
  import { getMockedMethods } from "./mock-data";
17
17
  import { scanAccounts, sync } from "../../../bridge/mockHelpers";
@@ -59,8 +59,8 @@ function removeUndefineds(input: unknown): unknown {
59
59
  function preprocessArgs(method: keyof ChainAPI, args: any) {
60
60
  if (method === "getFeeForMessage") {
61
61
  // getFeeForMessage needs some args preprocessing
62
- if (args.length === 1 && (args[0] instanceof Message || args[0] instanceof MessageV0)) {
63
- return [Buffer.from(args[0].serialize()).toString("base64")];
62
+ if (args.length === 1 && args[0] instanceof Message) {
63
+ return [args[0].serialize().toString("base64")];
64
64
  } else {
65
65
  throw new Error("unexpected getFeeForMessage function signature");
66
66
  }
@@ -672,6 +672,10 @@ export const DEFAULT_FEATURES: Features = {
672
672
  },
673
673
  },
674
674
  llmSentry: { enabled: true },
675
+ onboardingIgnoredOsUpdates: {
676
+ ...DEFAULT_FEATURE,
677
+ params: {},
678
+ },
675
679
  };
676
680
 
677
681
  // Firebase SDK treat JSON values as strings
@@ -1,18 +0,0 @@
1
- import BigNumber from "bignumber.js";
2
- export declare const MOCKED_ARB_ACCOUNT: {
3
- type: string;
4
- id: string;
5
- balance: BigNumber;
6
- creationDate: string;
7
- currency: import("@ledgerhq/types-cryptoassets").CryptoCurrency;
8
- derivationMode: string;
9
- freshAddress: string;
10
- };
11
- export declare const ETH_ACCOUNT: import("@ledgerhq/types-live").Account;
12
- export declare const ETH_ACCOUNT_2: import("@ledgerhq/types-live").Account;
13
- export declare const BTC_ACCOUNT: import("@ledgerhq/types-live").Account;
14
- export declare const ARB_ACCOUNT: import("@ledgerhq/types-live").Account;
15
- export declare const ETH_ACCOUNT_WITH_USDC: import("@ledgerhq/types-live").Account;
16
- export declare const BASE_ACCOUNT: import("@ledgerhq/types-live").Account;
17
- export declare const SCROLL_ACCOUNT: import("@ledgerhq/types-live").Account;
18
- //# sourceMappingURL=accounts.mock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.mock.d.ts","sourceRoot":"","sources":["../../../src/modularDrawer/__mocks__/accounts.mock.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,cAAc,CAAC;AAOrC,eAAO,MAAM,kBAAkB;;;;;;;;CAQ9B,CAAC;AAEF,eAAO,MAAM,WAAW,wCAEtB,CAAC;AACH,eAAO,MAAM,aAAa,wCAExB,CAAC;AACH,eAAO,MAAM,WAAW,wCAEtB,CAAC;AACH,eAAO,MAAM,WAAW,wCAGtB,CAAC;AACH,eAAO,MAAM,qBAAqB,wCAGhC,CAAC;AACH,eAAO,MAAM,YAAY,wCAGvB,CAAC;AACH,eAAO,MAAM,cAAc,wCAGzB,CAAC"}
@@ -1,48 +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
- exports.SCROLL_ACCOUNT = exports.BASE_ACCOUNT = exports.ETH_ACCOUNT_WITH_USDC = exports.ARB_ACCOUNT = exports.BTC_ACCOUNT = exports.ETH_ACCOUNT_2 = exports.ETH_ACCOUNT = exports.MOCKED_ARB_ACCOUNT = void 0;
7
- const account_1 = require("@ledgerhq/coin-framework/lib/mocks/account");
8
- const bignumber_js_1 = __importDefault(require("bignumber.js"));
9
- const currencies_mock_1 = require("./currencies.mock");
10
- const currencies_mock_2 = require("./currencies.mock");
11
- const currencies_mock_3 = require("./currencies.mock");
12
- const currencies_mock_4 = require("./currencies.mock");
13
- const currencies_mock_5 = require("./currencies.mock");
14
- exports.MOCKED_ARB_ACCOUNT = {
15
- type: "Account",
16
- id: "arbitrum1",
17
- balance: new bignumber_js_1.default(34455),
18
- creationDate: "2024-12-10T09:27:22.000Z",
19
- currency: currencies_mock_2.mockArbitrumCryptoCurrency,
20
- derivationMode: "",
21
- freshAddress: "s37rhmi7hsm3i73hsm7i3hm83m8h87hsm87h3s8h33",
22
- };
23
- exports.ETH_ACCOUNT = (0, account_1.genAccount)("ethereum-1", {
24
- currency: currencies_mock_3.mockEthCryptoCurrency,
25
- });
26
- exports.ETH_ACCOUNT_2 = (0, account_1.genAccount)("ethereum-2", {
27
- currency: currencies_mock_3.mockEthCryptoCurrency,
28
- });
29
- exports.BTC_ACCOUNT = (0, account_1.genAccount)("bitcoin-1", {
30
- currency: currencies_mock_1.mockBtcCryptoCurrency,
31
- });
32
- exports.ARB_ACCOUNT = (0, account_1.genAccount)("arbitrum-1", {
33
- currency: currencies_mock_2.mockArbitrumCryptoCurrency,
34
- tokenIds: ["arbitrum/erc20/arbitrum"],
35
- });
36
- exports.ETH_ACCOUNT_WITH_USDC = (0, account_1.genAccount)("ethereum-usdc", {
37
- currency: currencies_mock_3.mockEthCryptoCurrency,
38
- tokenIds: ["ethereum/erc20/usdc"],
39
- });
40
- exports.BASE_ACCOUNT = (0, account_1.genAccount)("base-1", {
41
- currency: currencies_mock_4.mockBaseCryptoCurrency,
42
- operationsSize: 100,
43
- });
44
- exports.SCROLL_ACCOUNT = (0, account_1.genAccount)("scroll-1", {
45
- currency: currencies_mock_5.mockScrollCryptoCurrency,
46
- operationsSize: 100,
47
- });
48
- //# sourceMappingURL=accounts.mock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.mock.js","sourceRoot":"","sources":["../../../src/modularDrawer/__mocks__/accounts.mock.ts"],"names":[],"mappings":";;;;;;AAAA,wEAAwE;AACxE,gEAAqC;AACrC,uDAA0D;AAC1D,uDAA+D;AAC/D,uDAA0D;AAC1D,uDAA2D;AAC3D,uDAA6D;AAEhD,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,SAAS;IACf,EAAE,EAAE,WAAW;IACf,OAAO,EAAE,IAAI,sBAAS,CAAC,KAAK,CAAC;IAC7B,YAAY,EAAE,0BAA0B;IACxC,QAAQ,EAAE,4CAA0B;IACpC,cAAc,EAAE,EAAE;IAClB,YAAY,EAAE,4CAA4C;CAC3D,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,oBAAU,EAAC,YAAY,EAAE;IAClD,QAAQ,EAAE,uCAAqB;CAChC,CAAC,CAAC;AACU,QAAA,aAAa,GAAG,IAAA,oBAAU,EAAC,YAAY,EAAE;IACpD,QAAQ,EAAE,uCAAqB;CAChC,CAAC,CAAC;AACU,QAAA,WAAW,GAAG,IAAA,oBAAU,EAAC,WAAW,EAAE;IACjD,QAAQ,EAAE,uCAAqB;CAChC,CAAC,CAAC;AACU,QAAA,WAAW,GAAG,IAAA,oBAAU,EAAC,YAAY,EAAE;IAClD,QAAQ,EAAE,4CAA0B;IACpC,QAAQ,EAAE,CAAC,yBAAyB,CAAC;CACtC,CAAC,CAAC;AACU,QAAA,qBAAqB,GAAG,IAAA,oBAAU,EAAC,eAAe,EAAE;IAC/D,QAAQ,EAAE,uCAAqB;IAC/B,QAAQ,EAAE,CAAC,qBAAqB,CAAC;CAClC,CAAC,CAAC;AACU,QAAA,YAAY,GAAG,IAAA,oBAAU,EAAC,QAAQ,EAAE;IAC/C,QAAQ,EAAE,wCAAsB;IAChC,cAAc,EAAE,GAAG;CACpB,CAAC,CAAC;AACU,QAAA,cAAc,GAAG,IAAA,oBAAU,EAAC,UAAU,EAAE;IACnD,QAAQ,EAAE,0CAAwB;IAClC,cAAc,EAAE,GAAG;CACpB,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=composeHooks.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"composeHooks.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/composeHooks.test.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const composeHooks_1 = require("../composeHooks");
4
- describe("composeHooks", () => {
5
- it("should compose hooks and merge their results", () => {
6
- const hook1 = (items) => items.map(item => ({ id: item.id, extra: item.id * 2 }));
7
- const hook2 = (items) => items.map(item => ({ ...item, final: item.extra + 1 }));
8
- const composed = (0, composeHooks_1.composeHooks)(hook1, hook2);
9
- const input = [{ id: 1 }, { id: 2 }];
10
- const processedInput = input.map(item => ({ id: item.id, extra: item.id * 2 }));
11
- const result = composed(processedInput);
12
- expect(result).toEqual([
13
- { id: 1, extra: 2, final: 3 },
14
- { id: 2, extra: 4, final: 5 },
15
- ]);
16
- });
17
- it("should handle hooks that return undefined", () => {
18
- const hook1 = (items) => items.map(item => ({ id: item.id, extra: item.id * 2 }));
19
- const hook2 = () => undefined;
20
- const composed = (0, composeHooks_1.composeHooks)(hook1, hook2);
21
- const input = [{ id: 1 }, { id: 2 }];
22
- const result = composed(input);
23
- expect(result).toEqual([
24
- { id: 1, extra: 2 },
25
- { id: 2, extra: 4 },
26
- ]);
27
- });
28
- it("should return the original items if no hooks are provided", () => {
29
- const composed = (0, composeHooks_1.composeHooks)();
30
- const input = [{ id: 1 }, { id: 2 }];
31
- const result = composed(input);
32
- expect(result).toEqual(input);
33
- });
34
- });
35
- //# sourceMappingURL=composeHooks.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"composeHooks.test.js","sourceRoot":"","sources":["../../../src/utils/__tests__/composeHooks.test.ts"],"names":[],"mappings":";;AAAA,kDAA+C;AAE/C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,KAAK,GAAG,CAAC,KAA4B,EAAE,EAAE,CAC7C,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3D,MAAM,KAAK,GAAG,CAAC,KAA2C,EAAE,EAAE,CAC5D,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAE1D,MAAM,QAAQ,GAAG,IAAA,2BAAY,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAE5C,MAAM,KAAK,GAA0B,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;QAC5D,MAAM,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAChF,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;QAExC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;YACrB,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;YAC7B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;SAC9B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,MAAM,KAAK,GAAG,CAAC,KAA4B,EAAE,EAAE,CAC7C,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAC3D,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;QAE9B,MAAM,QAAQ,GAAG,IAAA,2BAAY,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;QACrC,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE/B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;YACrB,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;YACnB,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;SACpB,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACnE,MAAM,QAAQ,GAAG,IAAA,2BAAY,GAAE,CAAC;QAEhC,MAAM,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;QACrC,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE/B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=getAccountTuplesForCurrency.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAccountTuplesForCurrency.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/getAccountTuplesForCurrency.test.ts"],"names":[],"mappings":""}