@ledgerhq/live-common 34.50.0-nightly.4 → 34.50.0-nightly.6

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 (365) hide show
  1. package/lib/__tests__/test-helpers/environment.js +1 -1
  2. package/lib/__tests__/test-helpers/environment.js.map +1 -1
  3. package/lib/bridge/generic-alpaca/utils.d.ts +2 -2
  4. package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
  5. package/lib/bridge/generic-alpaca/utils.js +18 -2
  6. package/lib/bridge/generic-alpaca/utils.js.map +1 -1
  7. package/lib/dada-client/entities/index.d.ts.map +1 -0
  8. package/lib/dada-client/entities/index.js.map +1 -0
  9. package/lib/{modularDrawer/data → dada-client}/entities/interestRateSelectors.d.ts +1 -1
  10. package/lib/dada-client/entities/interestRateSelectors.d.ts.map +1 -0
  11. package/lib/dada-client/entities/interestRateSelectors.js.map +1 -0
  12. package/lib/{modularDrawer/data → dada-client}/entities/marketSelectors.d.ts +1 -1
  13. package/lib/dada-client/entities/marketSelectors.d.ts.map +1 -0
  14. package/lib/dada-client/entities/marketSelectors.js.map +1 -0
  15. package/lib/dada-client/entities/selectorUtils.d.ts.map +1 -0
  16. package/lib/dada-client/entities/selectorUtils.js.map +1 -0
  17. package/lib/dada-client/hooks/__tests__/useAssetsData.test.d.ts.map +1 -0
  18. package/lib/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.js +2 -2
  19. package/lib/dada-client/hooks/__tests__/useAssetsData.test.js.map +1 -0
  20. package/lib/dada-client/hooks/useAssetData.d.ts +10 -0
  21. package/lib/dada-client/hooks/useAssetData.d.ts.map +1 -0
  22. package/lib/dada-client/hooks/useAssetData.js +23 -0
  23. package/lib/dada-client/hooks/useAssetData.js.map +1 -0
  24. package/lib/dada-client/hooks/useAssetsData.d.ts +19 -0
  25. package/lib/dada-client/hooks/useAssetsData.d.ts.map +1 -0
  26. package/lib/{modularDrawer → dada-client}/hooks/useAssetsData.js +1 -1
  27. package/lib/dada-client/hooks/useAssetsData.js.map +1 -0
  28. package/lib/dada-client/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
  29. package/lib/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.js +3 -3
  30. package/lib/dada-client/hooks/useInterestRatesByCurrencies.js.map +1 -0
  31. package/lib/dada-client/hooks/useMarketByCurrencies.d.ts.map +1 -0
  32. package/lib/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.js +5 -6
  33. package/lib/dada-client/hooks/useMarketByCurrencies.js.map +1 -0
  34. package/lib/{modularDrawer/data → dada-client}/state-manager/api.d.ts +134 -1
  35. package/lib/{modularDrawer/data → dada-client}/state-manager/api.d.ts.map +1 -1
  36. package/lib/{modularDrawer/data → dada-client}/state-manager/api.js +21 -2
  37. package/lib/dada-client/state-manager/api.js.map +1 -0
  38. package/lib/dada-client/state-manager/types.d.ts.map +1 -0
  39. package/lib/dada-client/state-manager/types.js.map +1 -0
  40. package/lib/dada-client/types/trend.d.ts +2 -0
  41. package/lib/dada-client/types/trend.d.ts.map +1 -0
  42. package/lib/dada-client/types/trend.js +3 -0
  43. package/lib/dada-client/types/trend.js.map +1 -0
  44. package/lib/deposit/useGroupedCurrenciesByProvider.hook.d.ts.map +1 -1
  45. package/lib/deposit/useGroupedCurrenciesByProvider.hook.js +6 -1
  46. package/lib/deposit/useGroupedCurrenciesByProvider.hook.js.map +1 -1
  47. package/lib/e2e/enum/Account.d.ts +0 -4
  48. package/lib/e2e/enum/Account.d.ts.map +1 -1
  49. package/lib/e2e/enum/Account.js +0 -4
  50. package/lib/e2e/enum/Account.js.map +1 -1
  51. package/lib/e2e/enum/AppInfos.d.ts +0 -1
  52. package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
  53. package/lib/e2e/enum/AppInfos.js +0 -1
  54. package/lib/e2e/enum/AppInfos.js.map +1 -1
  55. package/lib/e2e/enum/Currency.d.ts +0 -2
  56. package/lib/e2e/enum/Currency.d.ts.map +1 -1
  57. package/lib/e2e/enum/Currency.js +0 -2
  58. package/lib/e2e/enum/Currency.js.map +1 -1
  59. package/lib/e2e/enum/Network.d.ts +0 -1
  60. package/lib/e2e/enum/Network.d.ts.map +1 -1
  61. package/lib/e2e/enum/Network.js +0 -1
  62. package/lib/e2e/enum/Network.js.map +1 -1
  63. package/lib/e2e/enum/Provider.d.ts +1 -0
  64. package/lib/e2e/enum/Provider.d.ts.map +1 -1
  65. package/lib/e2e/enum/Provider.js +1 -0
  66. package/lib/e2e/enum/Provider.js.map +1 -1
  67. package/lib/e2e/enum/TokenType.d.ts +1 -2
  68. package/lib/e2e/enum/TokenType.d.ts.map +1 -1
  69. package/lib/e2e/enum/TokenType.js +0 -1
  70. package/lib/e2e/enum/TokenType.js.map +1 -1
  71. package/lib/e2e/enum/TransactionStatus.d.ts +1 -4
  72. package/lib/e2e/enum/TransactionStatus.d.ts.map +1 -1
  73. package/lib/e2e/enum/TransactionStatus.js +0 -3
  74. package/lib/e2e/enum/TransactionStatus.js.map +1 -1
  75. package/lib/e2e/speculos.d.ts +0 -1
  76. package/lib/e2e/speculos.d.ts.map +1 -1
  77. package/lib/e2e/speculos.js +1 -23
  78. package/lib/e2e/speculos.js.map +1 -1
  79. package/lib/e2e/swap.d.ts +1 -1
  80. package/lib/e2e/swap.d.ts.map +1 -1
  81. package/lib/e2e/swap.js +6 -5
  82. package/lib/e2e/swap.js.map +1 -1
  83. package/lib/exchange/swap/updateAccountSwapStatus.d.ts.map +1 -1
  84. package/lib/exchange/swap/updateAccountSwapStatus.js +6 -4
  85. package/lib/exchange/swap/updateAccountSwapStatus.js.map +1 -1
  86. package/lib/families/canton/config.js +10 -10
  87. package/lib/families/canton/config.js.map +1 -1
  88. package/lib/families/evm/shouldUseReceiveOptions.d.ts +3 -0
  89. package/lib/families/evm/shouldUseReceiveOptions.d.ts.map +1 -0
  90. package/lib/families/evm/shouldUseReceiveOptions.js +5 -0
  91. package/lib/families/evm/shouldUseReceiveOptions.js.map +1 -0
  92. package/lib/families/evm/shouldUseReceiveOptions.test.d.ts +2 -0
  93. package/lib/families/evm/shouldUseReceiveOptions.test.d.ts.map +1 -0
  94. package/lib/families/evm/shouldUseReceiveOptions.test.js +26 -0
  95. package/lib/families/evm/shouldUseReceiveOptions.test.js.map +1 -0
  96. package/lib/hw/signMessage/index.d.ts.map +1 -1
  97. package/lib/hw/signMessage/index.js +7 -0
  98. package/lib/hw/signMessage/index.js.map +1 -1
  99. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts +1 -1
  100. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  101. package/lib/modularDrawer/hooks/modules/useLeftApyModule.js +1 -1
  102. package/lib/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
  103. package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.js +1 -1
  104. package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.js.map +1 -1
  105. package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.js +1 -1
  106. package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.js.map +1 -1
  107. package/lib/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -1
  108. package/lib/modularDrawer/hooks/useAssetAccountCounts.js +2 -4
  109. package/lib/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -1
  110. package/lib/modularDrawer/hooks/useLeftAccountsApy.js +1 -1
  111. package/lib/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
  112. package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts +2 -0
  113. package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
  114. package/lib/modularDrawer/hooks/useRightBalanceNetwork.js +4 -9
  115. package/lib/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
  116. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
  117. package/lib/modularDrawer/modules/createNetworkConfiguration.js +10 -1
  118. package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
  119. package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts +1 -1
  120. package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -1
  121. package/lib/modularDrawer/utils/type.d.ts +6 -3
  122. package/lib/modularDrawer/utils/type.d.ts.map +1 -1
  123. package/lib/wallet-api/CustomDeeplink/server.d.ts +16 -0
  124. package/lib/wallet-api/CustomDeeplink/server.d.ts.map +1 -0
  125. package/lib/wallet-api/CustomDeeplink/server.js +10 -0
  126. package/lib/wallet-api/CustomDeeplink/server.js.map +1 -0
  127. package/lib-es/__tests__/test-helpers/environment.js +1 -1
  128. package/lib-es/__tests__/test-helpers/environment.js.map +1 -1
  129. package/lib-es/bridge/generic-alpaca/utils.d.ts +2 -2
  130. package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
  131. package/lib-es/bridge/generic-alpaca/utils.js +18 -2
  132. package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
  133. package/lib-es/dada-client/entities/index.d.ts.map +1 -0
  134. package/lib-es/dada-client/entities/index.js.map +1 -0
  135. package/lib-es/{modularDrawer/data → dada-client}/entities/interestRateSelectors.d.ts +1 -1
  136. package/lib-es/dada-client/entities/interestRateSelectors.d.ts.map +1 -0
  137. package/lib-es/dada-client/entities/interestRateSelectors.js.map +1 -0
  138. package/lib-es/{modularDrawer/data → dada-client}/entities/marketSelectors.d.ts +1 -1
  139. package/lib-es/dada-client/entities/marketSelectors.d.ts.map +1 -0
  140. package/lib-es/dada-client/entities/marketSelectors.js.map +1 -0
  141. package/lib-es/dada-client/entities/selectorUtils.d.ts.map +1 -0
  142. package/lib-es/dada-client/entities/selectorUtils.js.map +1 -0
  143. package/lib-es/dada-client/hooks/__tests__/useAssetsData.test.d.ts.map +1 -0
  144. package/lib-es/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.js +2 -2
  145. package/lib-es/dada-client/hooks/__tests__/useAssetsData.test.js.map +1 -0
  146. package/lib-es/dada-client/hooks/useAssetData.d.ts +10 -0
  147. package/lib-es/dada-client/hooks/useAssetData.d.ts.map +1 -0
  148. package/lib-es/dada-client/hooks/useAssetData.js +19 -0
  149. package/lib-es/dada-client/hooks/useAssetData.js.map +1 -0
  150. package/lib-es/dada-client/hooks/useAssetsData.d.ts +19 -0
  151. package/lib-es/dada-client/hooks/useAssetsData.d.ts.map +1 -0
  152. package/lib-es/{modularDrawer → dada-client}/hooks/useAssetsData.js +1 -1
  153. package/lib-es/dada-client/hooks/useAssetsData.js.map +1 -0
  154. package/lib-es/dada-client/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
  155. package/lib-es/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.js +3 -3
  156. package/lib-es/dada-client/hooks/useInterestRatesByCurrencies.js.map +1 -0
  157. package/lib-es/dada-client/hooks/useMarketByCurrencies.d.ts.map +1 -0
  158. package/lib-es/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.js +5 -6
  159. package/lib-es/dada-client/hooks/useMarketByCurrencies.js.map +1 -0
  160. package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.d.ts +134 -1
  161. package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.d.ts.map +1 -1
  162. package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.js +20 -1
  163. package/lib-es/dada-client/state-manager/api.js.map +1 -0
  164. package/lib-es/dada-client/state-manager/types.d.ts.map +1 -0
  165. package/lib-es/dada-client/state-manager/types.js.map +1 -0
  166. package/lib-es/dada-client/types/trend.d.ts +2 -0
  167. package/lib-es/dada-client/types/trend.d.ts.map +1 -0
  168. package/lib-es/dada-client/types/trend.js +2 -0
  169. package/lib-es/dada-client/types/trend.js.map +1 -0
  170. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.d.ts.map +1 -1
  171. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.js +6 -1
  172. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.js.map +1 -1
  173. package/lib-es/e2e/enum/Account.d.ts +0 -4
  174. package/lib-es/e2e/enum/Account.d.ts.map +1 -1
  175. package/lib-es/e2e/enum/Account.js +0 -4
  176. package/lib-es/e2e/enum/Account.js.map +1 -1
  177. package/lib-es/e2e/enum/AppInfos.d.ts +0 -1
  178. package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
  179. package/lib-es/e2e/enum/AppInfos.js +0 -1
  180. package/lib-es/e2e/enum/AppInfos.js.map +1 -1
  181. package/lib-es/e2e/enum/Currency.d.ts +0 -2
  182. package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
  183. package/lib-es/e2e/enum/Currency.js +0 -2
  184. package/lib-es/e2e/enum/Currency.js.map +1 -1
  185. package/lib-es/e2e/enum/Network.d.ts +0 -1
  186. package/lib-es/e2e/enum/Network.d.ts.map +1 -1
  187. package/lib-es/e2e/enum/Network.js +0 -1
  188. package/lib-es/e2e/enum/Network.js.map +1 -1
  189. package/lib-es/e2e/enum/Provider.d.ts +1 -0
  190. package/lib-es/e2e/enum/Provider.d.ts.map +1 -1
  191. package/lib-es/e2e/enum/Provider.js +1 -0
  192. package/lib-es/e2e/enum/Provider.js.map +1 -1
  193. package/lib-es/e2e/enum/TokenType.d.ts +1 -2
  194. package/lib-es/e2e/enum/TokenType.d.ts.map +1 -1
  195. package/lib-es/e2e/enum/TokenType.js +0 -1
  196. package/lib-es/e2e/enum/TokenType.js.map +1 -1
  197. package/lib-es/e2e/enum/TransactionStatus.d.ts +1 -4
  198. package/lib-es/e2e/enum/TransactionStatus.d.ts.map +1 -1
  199. package/lib-es/e2e/enum/TransactionStatus.js +0 -3
  200. package/lib-es/e2e/enum/TransactionStatus.js.map +1 -1
  201. package/lib-es/e2e/speculos.d.ts +0 -1
  202. package/lib-es/e2e/speculos.d.ts.map +1 -1
  203. package/lib-es/e2e/speculos.js +0 -21
  204. package/lib-es/e2e/speculos.js.map +1 -1
  205. package/lib-es/e2e/swap.d.ts +1 -1
  206. package/lib-es/e2e/swap.d.ts.map +1 -1
  207. package/lib-es/e2e/swap.js +6 -5
  208. package/lib-es/e2e/swap.js.map +1 -1
  209. package/lib-es/exchange/swap/updateAccountSwapStatus.d.ts.map +1 -1
  210. package/lib-es/exchange/swap/updateAccountSwapStatus.js +6 -4
  211. package/lib-es/exchange/swap/updateAccountSwapStatus.js.map +1 -1
  212. package/lib-es/families/canton/config.js +10 -10
  213. package/lib-es/families/canton/config.js.map +1 -1
  214. package/lib-es/families/evm/shouldUseReceiveOptions.d.ts +3 -0
  215. package/lib-es/families/evm/shouldUseReceiveOptions.d.ts.map +1 -0
  216. package/lib-es/families/evm/shouldUseReceiveOptions.js +3 -0
  217. package/lib-es/families/evm/shouldUseReceiveOptions.js.map +1 -0
  218. package/lib-es/families/evm/shouldUseReceiveOptions.test.d.ts +2 -0
  219. package/lib-es/families/evm/shouldUseReceiveOptions.test.d.ts.map +1 -0
  220. package/lib-es/families/evm/shouldUseReceiveOptions.test.js +21 -0
  221. package/lib-es/families/evm/shouldUseReceiveOptions.test.js.map +1 -0
  222. package/lib-es/hw/signMessage/index.d.ts.map +1 -1
  223. package/lib-es/hw/signMessage/index.js +7 -0
  224. package/lib-es/hw/signMessage/index.js.map +1 -1
  225. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts +1 -1
  226. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  227. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js +1 -1
  228. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
  229. package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.js +1 -1
  230. package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.js.map +1 -1
  231. package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.js +1 -1
  232. package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.js.map +1 -1
  233. package/lib-es/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -1
  234. package/lib-es/modularDrawer/hooks/useAssetAccountCounts.js +2 -4
  235. package/lib-es/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -1
  236. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js +1 -1
  237. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
  238. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts +2 -0
  239. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
  240. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js +4 -9
  241. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
  242. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
  243. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +10 -1
  244. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
  245. package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts +1 -1
  246. package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -1
  247. package/lib-es/modularDrawer/utils/type.d.ts +6 -3
  248. package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
  249. package/lib-es/wallet-api/CustomDeeplink/server.d.ts +16 -0
  250. package/lib-es/wallet-api/CustomDeeplink/server.d.ts.map +1 -0
  251. package/lib-es/wallet-api/CustomDeeplink/server.js +6 -0
  252. package/lib-es/wallet-api/CustomDeeplink/server.js.map +1 -0
  253. package/package.json +39 -39
  254. package/src/__tests__/test-helpers/environment.ts +1 -1
  255. package/src/bridge/generic-alpaca/utils.ts +20 -4
  256. package/src/dada-client/README.md +93 -0
  257. package/src/{modularDrawer/data → dada-client}/entities/interestRateSelectors.ts +1 -1
  258. package/src/{modularDrawer/data → dada-client}/entities/marketSelectors.ts +1 -1
  259. package/src/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.ts +2 -2
  260. package/src/dada-client/hooks/useAssetData.ts +22 -0
  261. package/src/{modularDrawer → dada-client}/hooks/useAssetsData.ts +2 -2
  262. package/src/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.ts +4 -4
  263. package/src/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.ts +5 -6
  264. package/src/{modularDrawer/data → dada-client}/state-manager/api.ts +22 -1
  265. package/src/dada-client/types/trend.ts +1 -0
  266. package/src/deposit/useGroupedCurrenciesByProvider.hook.ts +8 -2
  267. package/src/e2e/enum/Account.ts +0 -31
  268. package/src/e2e/enum/AppInfos.ts +0 -2
  269. package/src/e2e/enum/Currency.ts +0 -10
  270. package/src/e2e/enum/Network.ts +0 -1
  271. package/src/e2e/enum/Provider.ts +1 -0
  272. package/src/e2e/enum/TokenType.ts +0 -1
  273. package/src/e2e/enum/TransactionStatus.ts +0 -3
  274. package/src/e2e/speculos.ts +0 -22
  275. package/src/e2e/swap.ts +6 -6
  276. package/src/exchange/swap/updateAccountSwapStatus.ts +8 -6
  277. package/src/families/canton/config.ts +10 -10
  278. package/src/families/evm/shouldUseReceiveOptions.test.ts +25 -0
  279. package/src/families/evm/shouldUseReceiveOptions.ts +4 -0
  280. package/src/hw/signMessage/index.ts +10 -0
  281. package/src/modularDrawer/hooks/modules/useLeftApyModule.tsx +2 -2
  282. package/src/modularDrawer/hooks/modules/useLeftMarketTrendModule.tsx +1 -1
  283. package/src/modularDrawer/hooks/modules/useRightMarketTrendModule.tsx +1 -1
  284. package/src/modularDrawer/hooks/useAssetAccountCounts.tsx +8 -10
  285. package/src/modularDrawer/hooks/useLeftAccountsApy.tsx +1 -1
  286. package/src/modularDrawer/hooks/useRightBalanceNetwork.tsx +4 -13
  287. package/src/modularDrawer/modules/createNetworkConfiguration.ts +20 -2
  288. package/src/modularDrawer/utils/__tests__/getInterestRateForAsset.test.ts +1 -1
  289. package/src/modularDrawer/utils/getInterestRateForAsset.ts +1 -1
  290. package/src/modularDrawer/utils/type.ts +5 -4
  291. package/src/wallet-api/CustomDeeplink/server.ts +23 -0
  292. package/lib/e2e/families/sui.d.ts +0 -2
  293. package/lib/e2e/families/sui.d.ts.map +0 -1
  294. package/lib/e2e/families/sui.js +0 -11
  295. package/lib/e2e/families/sui.js.map +0 -1
  296. package/lib/modularDrawer/data/entities/index.d.ts.map +0 -1
  297. package/lib/modularDrawer/data/entities/index.js.map +0 -1
  298. package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts.map +0 -1
  299. package/lib/modularDrawer/data/entities/interestRateSelectors.js.map +0 -1
  300. package/lib/modularDrawer/data/entities/marketSelectors.d.ts.map +0 -1
  301. package/lib/modularDrawer/data/entities/marketSelectors.js.map +0 -1
  302. package/lib/modularDrawer/data/entities/selectorUtils.d.ts.map +0 -1
  303. package/lib/modularDrawer/data/entities/selectorUtils.js.map +0 -1
  304. package/lib/modularDrawer/data/state-manager/api.js.map +0 -1
  305. package/lib/modularDrawer/data/state-manager/types.d.ts.map +0 -1
  306. package/lib/modularDrawer/data/state-manager/types.js.map +0 -1
  307. package/lib/modularDrawer/hooks/__test__/useAssetsData.test.d.ts.map +0 -1
  308. package/lib/modularDrawer/hooks/__test__/useAssetsData.test.js.map +0 -1
  309. package/lib/modularDrawer/hooks/useAssetsData.d.ts +0 -19
  310. package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +0 -1
  311. package/lib/modularDrawer/hooks/useAssetsData.js.map +0 -1
  312. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +0 -1
  313. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +0 -1
  314. package/lib/modularDrawer/hooks/useMarketByCurrencies.d.ts.map +0 -1
  315. package/lib/modularDrawer/hooks/useMarketByCurrencies.js.map +0 -1
  316. package/lib-es/e2e/families/sui.d.ts +0 -2
  317. package/lib-es/e2e/families/sui.d.ts.map +0 -1
  318. package/lib-es/e2e/families/sui.js +0 -7
  319. package/lib-es/e2e/families/sui.js.map +0 -1
  320. package/lib-es/modularDrawer/data/entities/index.d.ts.map +0 -1
  321. package/lib-es/modularDrawer/data/entities/index.js.map +0 -1
  322. package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts.map +0 -1
  323. package/lib-es/modularDrawer/data/entities/interestRateSelectors.js.map +0 -1
  324. package/lib-es/modularDrawer/data/entities/marketSelectors.d.ts.map +0 -1
  325. package/lib-es/modularDrawer/data/entities/marketSelectors.js.map +0 -1
  326. package/lib-es/modularDrawer/data/entities/selectorUtils.d.ts.map +0 -1
  327. package/lib-es/modularDrawer/data/entities/selectorUtils.js.map +0 -1
  328. package/lib-es/modularDrawer/data/state-manager/api.js.map +0 -1
  329. package/lib-es/modularDrawer/data/state-manager/types.d.ts.map +0 -1
  330. package/lib-es/modularDrawer/data/state-manager/types.js.map +0 -1
  331. package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.d.ts.map +0 -1
  332. package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.js.map +0 -1
  333. package/lib-es/modularDrawer/hooks/useAssetsData.d.ts +0 -19
  334. package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +0 -1
  335. package/lib-es/modularDrawer/hooks/useAssetsData.js.map +0 -1
  336. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +0 -1
  337. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +0 -1
  338. package/lib-es/modularDrawer/hooks/useMarketByCurrencies.d.ts.map +0 -1
  339. package/lib-es/modularDrawer/hooks/useMarketByCurrencies.js.map +0 -1
  340. package/src/e2e/families/sui.ts +0 -7
  341. /package/lib/{modularDrawer/data → dada-client}/entities/index.d.ts +0 -0
  342. /package/lib/{modularDrawer/data → dada-client}/entities/index.js +0 -0
  343. /package/lib/{modularDrawer/data → dada-client}/entities/interestRateSelectors.js +0 -0
  344. /package/lib/{modularDrawer/data → dada-client}/entities/marketSelectors.js +0 -0
  345. /package/lib/{modularDrawer/data → dada-client}/entities/selectorUtils.d.ts +0 -0
  346. /package/lib/{modularDrawer/data → dada-client}/entities/selectorUtils.js +0 -0
  347. /package/lib/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.d.ts +0 -0
  348. /package/lib/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.d.ts +0 -0
  349. /package/lib/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.d.ts +0 -0
  350. /package/lib/{modularDrawer/data → dada-client}/state-manager/types.d.ts +0 -0
  351. /package/lib/{modularDrawer/data → dada-client}/state-manager/types.js +0 -0
  352. /package/lib-es/{modularDrawer/data → dada-client}/entities/index.d.ts +0 -0
  353. /package/lib-es/{modularDrawer/data → dada-client}/entities/index.js +0 -0
  354. /package/lib-es/{modularDrawer/data → dada-client}/entities/interestRateSelectors.js +0 -0
  355. /package/lib-es/{modularDrawer/data → dada-client}/entities/marketSelectors.js +0 -0
  356. /package/lib-es/{modularDrawer/data → dada-client}/entities/selectorUtils.d.ts +0 -0
  357. /package/lib-es/{modularDrawer/data → dada-client}/entities/selectorUtils.js +0 -0
  358. /package/lib-es/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.d.ts +0 -0
  359. /package/lib-es/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.d.ts +0 -0
  360. /package/lib-es/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.d.ts +0 -0
  361. /package/lib-es/{modularDrawer/data → dada-client}/state-manager/types.d.ts +0 -0
  362. /package/lib-es/{modularDrawer/data → dada-client}/state-manager/types.js +0 -0
  363. /package/src/{modularDrawer/data → dada-client}/entities/index.ts +0 -0
  364. /package/src/{modularDrawer/data → dada-client}/entities/selectorUtils.ts +0 -0
  365. /package/src/{modularDrawer/data → dada-client}/state-manager/types.ts +0 -0
@@ -3,6 +3,7 @@ import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
3
3
  import { useEffect, useMemo, useState } from "react";
4
4
  import { isCurrencySupported, listSupportedCurrencies, listTokens } from "../currencies";
5
5
  import { loadCurrenciesByProvider } from "./helper";
6
+ import { useCurrenciesUnderFeatureFlag } from "../modularDrawer/hooks/useCurrenciesUnderFeatureFlag";
6
7
 
7
8
  // FIXME(LIVE-10505): bad performane & shared utility to move to coin-framework
8
9
  const listSupportedTokens = () => listTokens().filter(t => isCurrencySupported(t.parentCurrency));
@@ -16,11 +17,16 @@ export const useGroupedCurrenciesByProvider = (
16
17
  withLoading?: boolean,
17
18
  ): GroupedCurrencies | LoadingBasedGroupedCurrencies => {
18
19
  const [result, setResult] = useState(initialResult);
20
+ // the import is from MAD but as this hook will be removed, it's fine to keep it here
21
+ const { deactivatedCurrencyIds } = useCurrenciesUnderFeatureFlag();
19
22
 
20
23
  const [loadingStatus, setLoadingStatus] = useState<LoadingStatus>(LoadingStatus.Idle);
21
24
  const coinsAndTokensSupported = useMemo(
22
- () => (listSupportedCurrencies() as CryptoOrTokenCurrency[]).concat(listSupportedTokens()),
23
- [],
25
+ () =>
26
+ (listSupportedCurrencies() as CryptoOrTokenCurrency[])
27
+ .concat(listSupportedTokens())
28
+ .filter(c => !deactivatedCurrencyIds.has(c.id)),
29
+ [deactivatedCurrencyIds],
24
30
  );
25
31
 
26
32
  // Get mapped assets filtered by supported & sorted currencies, grouped by provider id
@@ -526,19 +526,6 @@ export class Account {
526
526
  1,
527
527
  );
528
528
 
529
- static readonly SUI_1 = new Account(
530
- Currency.SUI,
531
- "Sui 1",
532
- "0xc6169bcce8718609e43d179b087e6c1e2ac28e5325660af34d22fb5ce284031e",
533
- 0,
534
- );
535
- static readonly SUI_2 = new Account(
536
- Currency.SUI,
537
- "Sui 2",
538
- "0x6644c1ce77c5e5ef8d8bd3ae2a4e18239e5d418a5e0800ed5037818399e3a7f6",
539
- 1,
540
- );
541
-
542
529
  static readonly EMPTY = new Account(Currency.BTC, "Empty", "", 0);
543
530
  }
544
531
 
@@ -653,24 +640,6 @@ export class TokenAccount extends Account {
653
640
  TokenType.TRC20,
654
641
  Account.TRX_1,
655
642
  );
656
-
657
- static readonly SUI_USDC_1 = new TokenAccount(
658
- Currency.SUI_USDC,
659
- "SUI USDC 1",
660
- Account.SUI_1.address,
661
- 0,
662
- TokenType.ERC20,
663
- Account.SUI_1,
664
- );
665
-
666
- static readonly SUI_USDC_2 = new TokenAccount(
667
- Currency.SUI_USDC,
668
- "SUI USDC 2",
669
- Account.SUI_2.address,
670
- 1,
671
- TokenType.ERC20,
672
- Account.SUI_2,
673
- );
674
643
  }
675
644
 
676
645
  export type AccountType = Account | TokenAccount;
@@ -33,8 +33,6 @@ export class AppInfos {
33
33
 
34
34
  static readonly STELLAR = new AppInfos("Stellar");
35
35
 
36
- static readonly SUI = new AppInfos("Sui");
37
-
38
36
  static readonly BITCOIN_CASH = new AppInfos("Bitcoin Cash");
39
37
 
40
38
  static readonly ALGORAND = new AppInfos("Algorand");
@@ -83,7 +83,6 @@ export class Currency {
83
83
  static readonly XLM = new Currency("Stellar", "XLM", "stellar", AppInfos.STELLAR, [
84
84
  Network.STELLAR,
85
85
  ]);
86
- static readonly SUI = new Currency("Sui", "SUI", "sui", AppInfos.SUI, [Network.SUI]);
87
86
  static readonly BCH = new Currency("Bitcoin Cash", "BCH", "bitcoin_cash", AppInfos.BITCOIN_CASH, [
88
87
  Network.BITCOIN_CASH,
89
88
  ]);
@@ -208,13 +207,4 @@ export class Currency {
208
207
  static readonly OP = new Currency("OP Mainnet", "OP", "optimism", AppInfos.ETHEREUM, [
209
208
  Network.OPTIMISM,
210
209
  ]);
211
-
212
- static readonly SUI_USDC = new Currency(
213
- "USDC",
214
- "USDC",
215
- "sui/coin/usdc_0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::usdc",
216
- AppInfos.SUI,
217
- [Network.SUI],
218
- "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7",
219
- );
220
210
  }
@@ -16,7 +16,6 @@ export enum Network {
16
16
  XRP = "XRP",
17
17
  CARDANO = "Cardano",
18
18
  STELLAR = "Stellar",
19
- SUI = "Sui",
20
19
  BITCOIN_CASH = "Bitcoin Cash",
21
20
  ALGORAND = "Algorand",
22
21
  COSMOS = "Cosmos",
@@ -20,6 +20,7 @@ export class Provider {
20
20
  static readonly STADER_LABS = new Provider("stader-eth", "Stader Labs", false, true, true);
21
21
  static readonly LIDO = new Provider("lido", "Lido", false, true, true);
22
22
  static readonly TRANSAK = new Provider("transak", "Transak", false, true, true);
23
+ static readonly NEAR_INTENTS = new Provider("nearintents", "NEAR Intents", false, true, true);
23
24
 
24
25
  static getNameByUiName(uiName: string): string {
25
26
  const provider = Object.values(Provider).find(p => p.uiName === uiName);
@@ -2,5 +2,4 @@ export enum TokenType {
2
2
  ERC20 = "erc20",
3
3
  TRC20 = "trc20",
4
4
  SPL = "spl",
5
- SUI = "sui",
6
5
  }
@@ -2,11 +2,8 @@ export enum TransactionStatus {
2
2
  RECEIVED = "Received",
3
3
  DELEGATED = "Delegated",
4
4
  NFT_RECEIVED = "NFT Received",
5
- SEND = "Send",
6
5
  SENT = "Sent",
7
6
  FEES = "Fees",
8
7
  STAKED = "Staked",
9
8
  SENDING = "Sending",
10
- TRANSACTION_SENT = "Transaction sent",
11
- CONFIRMED = "Confirmed",
12
9
  }
@@ -42,7 +42,6 @@ import { Swap } from "./models/Swap";
42
42
  import { delegateOsmosis } from "./families/osmosis";
43
43
  import { AppInfos } from "./enum/AppInfos";
44
44
  import { DEVICE_LABELS_CONFIG } from "./data/deviceLabelsData";
45
- import { sendSui } from "./families/sui";
46
45
 
47
46
  const isSpeculosRemote = process.env.REMOTE_SPECULOS === "true";
48
47
 
@@ -224,14 +223,6 @@ export const specs: Specs = {
224
223
  },
225
224
  dependency: "",
226
225
  },
227
- Sui: {
228
- currency: getCryptoCurrencyById("sui"),
229
- appQuery: {
230
- model: getSpeculosModel(),
231
- appName: "Sui",
232
- },
233
- dependency: "",
234
- },
235
226
  Bitcoin_Cash: {
236
227
  currency: getCryptoCurrencyById("bitcoin_cash"),
237
228
  appQuery: {
@@ -641,10 +632,6 @@ export async function goToSettings() {
641
632
  await pressBoth();
642
633
  }
643
634
 
644
- export async function providePublicKey() {
645
- await pressRightButton();
646
- }
647
-
648
635
  type DeviceLabelsReturn = {
649
636
  delegateConfirmLabel: string;
650
637
  delegateVerifyLabel: string;
@@ -673,9 +660,6 @@ export function getDeviceLabels(appInfo: AppInfos): DeviceLabelsReturn {
673
660
  }
674
661
 
675
662
  export async function expectValidAddressDevice(account: Account, addressDisplayed: string) {
676
- if (account.currency === Currency.SUI_USDC) {
677
- providePublicKey();
678
- }
679
663
  const { receiveVerifyLabel, receiveConfirmLabel } = getDeviceLabels(account.currency.speculosApp);
680
664
 
681
665
  await waitFor(receiveVerifyLabel);
@@ -737,12 +721,6 @@ export async function signSendTransaction(tx: Transaction) {
737
721
  case Currency.HBAR:
738
722
  await sendHedera();
739
723
  break;
740
- case Currency.SUI:
741
- await sendSui();
742
- break;
743
- case Currency.SUI_USDC:
744
- await sendSui();
745
- break;
746
724
  default:
747
725
  throw new Error(`Unsupported currency: ${currencyName.ticker}`);
748
726
  }
package/src/e2e/swap.ts CHANGED
@@ -30,16 +30,16 @@ export async function getMinimumSwapAmount(AccountFrom: Account, AccountTo: Acco
30
30
 
31
31
  const minimumAmounts = data
32
32
  .filter((item: any) => item.parameter?.minAmount !== undefined)
33
- .map((item: any) => parseFloat(item.parameter.minAmount));
33
+ .map((item: any) => parseFloat(item.parameter.minAmount))
34
+ .filter((amount: number) => !isNaN(amount));
34
35
 
35
- const validMinimumAmounts = minimumAmounts.filter((amount: number) => !isNaN(amount));
36
-
37
- if (validMinimumAmounts.length === 0) {
36
+ if (minimumAmounts.length === 0) {
38
37
  throw new Error("No valid minimum amounts returned from swap quote API.");
39
38
  }
40
39
 
41
- return Math.max(...validMinimumAmounts);
40
+ return Math.max(...minimumAmounts);
42
41
  } catch (error) {
43
- console.error(error);
42
+ console.error("Error fetching swap minimum amount:", error);
43
+ throw error;
44
44
  }
45
45
  }
@@ -4,6 +4,8 @@ import type { TokenAccount, Account, SwapOperation, Operation } from "@ledgerhq/
4
4
  import type { SwapStatus, SwapStatusRequest, UpdateAccountSwapStatus } from "./types";
5
5
  import { log } from "@ledgerhq/logs";
6
6
 
7
+ const PROVIDERS_REQUIRING_OPERATION_ID = ["thorswap", "lifi", "nearintents"];
8
+
7
9
  const maybeGetUpdatedSwapHistory = async (
8
10
  swapHistory: SwapOperation[] | null | undefined,
9
11
  operations: Operation[] | null | undefined,
@@ -38,15 +40,15 @@ const maybeGetUpdatedSwapHistory = async (
38
40
  }
39
41
  } else {
40
42
  // Collect all others swaps that need status update via getMultipleStatus
41
- const transactionId =
42
- provider === "thorswap" || provider === "lifi"
43
- ? operations?.find(o => o.id.includes(operationId))?.hash
44
- : undefined;
43
+ const requiresOperationId = PROVIDERS_REQUIRING_OPERATION_ID.includes(provider);
44
+ const relatedTransactionId = requiresOperationId
45
+ ? operations?.find(op => op.id.includes(operationId))?.hash
46
+ : undefined;
45
47
  pendingSwapIds.push({
46
48
  provider,
47
49
  swapId,
48
- transactionId,
49
- ...((provider === "thorswap" || provider === "lifi") && { operationId }),
50
+ transactionId: relatedTransactionId,
51
+ ...(requiresOperationId && { operationId }),
50
52
  });
51
53
  }
52
54
  }
@@ -7,8 +7,8 @@ export const cantonConfig: Record<string, ConfigInfo> = {
7
7
  status: {
8
8
  type: "active",
9
9
  },
10
- nodeUrl: "https://canton-gateway.api.live.ledger.com/v1/node/ledger-mainnet-prd",
11
- nodeId: "ledger-live-mainnet-prd",
10
+ nodeUrl: "https://canton-gateway.api.live.ledger.com/v1/node/ledger-live-mainnet",
11
+ nodeId: "ledger-live-mainnet",
12
12
  gatewayUrl: "https://canton-gateway.api.live.ledger.com",
13
13
  minReserve: 0,
14
14
  useGateway: true,
@@ -22,8 +22,8 @@ export const cantonConfig: Record<string, ConfigInfo> = {
22
22
  status: {
23
23
  type: "active",
24
24
  },
25
- nodeUrl: "https://wallet-validator-devnet-canton.ledger-test.com",
26
- nodeId: "ledger-devnet-stg",
25
+ nodeUrl: "https://canton-gateway.api.live.ledger.com/v1/node/ledger-live-devnet",
26
+ nodeId: "ledger-live-devnet",
27
27
  gatewayUrl: "https://canton-gateway.api.live.ledger-test.com",
28
28
  minReserve: 0,
29
29
  useGateway: true,
@@ -31,19 +31,19 @@ export const cantonConfig: Record<string, ConfigInfo> = {
31
31
  nativeInstrumentId: "Amulet",
32
32
  },
33
33
  },
34
- config_currency_canton_network_localnet: {
34
+ config_currency_canton_network_testnet: {
35
35
  type: "object",
36
36
  default: {
37
37
  status: {
38
38
  type: "active",
39
39
  },
40
- nodeUrl: "http://localhost:2975/v2",
41
- nodeId: undefined,
42
- gatewayUrl: undefined,
40
+ nodeUrl: "https://canton-gateway.api.live.ledger.com/v1/node/ledger-live-testnet",
41
+ nodeId: "ledger-live-testnet",
42
+ gatewayUrl: "https://canton-gateway.api.live.ledger-test.com",
43
43
  minReserve: 0,
44
- useGateway: false,
45
- networkType: "localnet",
46
44
  nativeInstrumentId: "Amulet",
45
+ useGateway: true,
46
+ networkType: "testnet",
47
47
  },
48
48
  },
49
49
  };
@@ -0,0 +1,25 @@
1
+ import shouldUseReceiveOptions from "./shouldUseReceiveOptions";
2
+
3
+ describe("shouldUseReceiveOptions", () => {
4
+ it("returns true for 'ethereum/erc20/usd__coin'", () => {
5
+ expect(shouldUseReceiveOptions("ethereum/erc20/usd__coin")).toBe(true);
6
+ });
7
+
8
+ it("returns true for 'ethereum'", () => {
9
+ expect(shouldUseReceiveOptions("ethereum")).toBe(true);
10
+ });
11
+
12
+ it("returns false for undefined", () => {
13
+ expect(shouldUseReceiveOptions(undefined)).toBe(false);
14
+ });
15
+
16
+ it("returns false for empty string", () => {
17
+ expect(shouldUseReceiveOptions("")).toBe(false);
18
+ });
19
+
20
+ it("returns false for other currency ids", () => {
21
+ expect(shouldUseReceiveOptions("bitcoin")).toBe(false);
22
+ expect(shouldUseReceiveOptions("ethereum/erc20/other_token")).toBe(false);
23
+ expect(shouldUseReceiveOptions("usd__coin")).toBe(false);
24
+ });
25
+ });
@@ -0,0 +1,4 @@
1
+ const shouldUseReceiveOptions = (currencyId: string | undefined) =>
2
+ !!(currencyId && ["ethereum/erc20/usd__coin", "ethereum"].includes(currencyId));
3
+
4
+ export default shouldUseReceiveOptions;
@@ -13,6 +13,7 @@ import type { ConnectAppEvent, Input as ConnectAppInput } from "../connectApp";
13
13
  import { withDevice } from "../deviceAccess";
14
14
  import type { SignMessage, Result } from "./types";
15
15
  import { messageSigner as ACREMessageSigner } from "../../families/bitcoin/ACRESetup";
16
+ import { decodeAccountId } from "../../account";
16
17
 
17
18
  export const prepareMessageToSign = (account: Account, message: string): AnyMessage => {
18
19
  const utf8Message = Buffer.from(message, "hex").toString();
@@ -91,6 +92,15 @@ export const signMessageExec = ({ request, deviceId }: Input): Observable<Result
91
92
  throw new Error("account is required");
92
93
  }
93
94
 
95
+ const { type } = decodeAccountId(request.account.id);
96
+ if (type === "mock") {
97
+ return from(
98
+ Promise.resolve({
99
+ signature: "mockedSignature",
100
+ }),
101
+ );
102
+ }
103
+
94
104
  const result: Observable<Result> = withDevice(deviceId)(transport =>
95
105
  from(signMessage(transport, request.account!, request.message)),
96
106
  );
@@ -1,7 +1,7 @@
1
1
  import React, { useMemo } from "react";
2
2
  import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
3
- import { ApyType } from "../../utils/type";
4
- import { useInterestRatesByCurrencies } from "../useInterestRatesByCurrencies";
3
+ import { ApyType } from "../../../dada-client/types/trend";
4
+ import { useInterestRatesByCurrencies } from "../../../dada-client/hooks/useInterestRatesByCurrencies";
5
5
  import { getInterestRateForAsset } from "../../utils/getInterestRateForAsset";
6
6
 
7
7
  const createApyItem = ({
@@ -1,6 +1,6 @@
1
1
  import React, { useMemo } from "react";
2
2
  import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
3
- import { useMarketByCurrencies } from "../useMarketByCurrencies";
3
+ import { useMarketByCurrencies } from "../../../dada-client/hooks/useMarketByCurrencies";
4
4
 
5
5
  const createMarketTrendItem = ({
6
6
  percent,
@@ -1,6 +1,6 @@
1
1
  import React, { useMemo } from "react";
2
2
  import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
3
- import { useMarketByCurrencies } from "../useMarketByCurrencies";
3
+ import { useMarketByCurrencies } from "../../../dada-client/hooks/useMarketByCurrencies";
4
4
  import { counterValueFormatter } from "../../utils/counterValueFormatter";
5
5
  import { UseBalanceDeps } from "../../utils/type";
6
6
 
@@ -24,13 +24,11 @@ export const useAssetAccountCounts = ({
24
24
  accountIds,
25
25
  formatLabel,
26
26
  }: AccountModuleParams): AssetCountItem[] =>
27
- assets
28
- .map(asset => {
29
- const { length } = getAccountTuplesForCurrency(asset, nestedAccounts, accountIds);
30
- return {
31
- asset,
32
- label: formatLabel(length),
33
- count: length,
34
- };
35
- })
36
- .sort((a, b) => b.count - a.count);
27
+ assets.map(asset => {
28
+ const { length } = getAccountTuplesForCurrency(asset, nestedAccounts, accountIds);
29
+ return {
30
+ asset,
31
+ label: formatLabel(length),
32
+ count: length,
33
+ };
34
+ });
@@ -4,7 +4,7 @@ import {
4
4
  CreateAccountsCountAndApy,
5
5
  NetworkWithCount,
6
6
  } from "../utils/type";
7
- import { useInterestRatesByCurrencies } from "../hooks/useInterestRatesByCurrencies";
7
+ import { useInterestRatesByCurrencies } from "../../dada-client/hooks/useInterestRatesByCurrencies";
8
8
  import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
9
9
  import { getInterestRateForAsset } from "../utils/getInterestRateForAsset";
10
10
 
@@ -1,6 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
2
  import type { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
3
- import { compareByBalanceThenFiat } from "../utils/sortByBalance";
4
3
  import { UseBalanceDeps } from "../utils/type";
5
4
  import { getBalanceAndFiatValueByAssets } from "../utils/getBalanceAndFiatValueByAssets";
6
5
 
@@ -28,21 +27,13 @@ export function createUseRightBalanceNetwork({ useBalanceDeps, balanceItem }: Ne
28
27
 
29
28
  const balanceMap = new Map(networkBalanceData.map(b => [b.id, b]));
30
29
 
31
- const networksWithBalance = networks.map(network => {
30
+ return networks.map(network => {
32
31
  const balanceData = balanceMap.get(network.id) || {};
33
32
  return {
34
- network,
35
- balanceData,
33
+ ...network,
34
+ rightElement: balanceItem(balanceData),
35
+ balanceData: balanceData,
36
36
  };
37
37
  });
38
-
39
- networksWithBalance.sort((a, b) =>
40
- compareByBalanceThenFiat(a.balanceData, b.balanceData, discreet),
41
- );
42
-
43
- return networksWithBalance.map(({ network, balanceData }) => ({
44
- ...network,
45
- rightElement: balanceItem(balanceData),
46
- }));
47
38
  };
48
39
  }
@@ -10,8 +10,10 @@ import {
10
10
  NetworkHook,
11
11
  RightElementKind,
12
12
  AccountModuleParams,
13
+ BalanceUI,
13
14
  } from "../utils/type";
14
15
  import { composeHooks } from "../../utils/composeHooks";
16
+ import { compareByBalanceThenFiat } from "../utils/sortByBalance";
15
17
 
16
18
  export const getLeftElement =
17
19
  (NetworkConfigurationDeps: NetworkConfigurationDeps) =>
@@ -65,7 +67,10 @@ export const createNetworkConfigurationHook =
65
67
  assets: CryptoOrTokenCurrency[],
66
68
  networks: CryptoOrTokenCurrency[],
67
69
  ): Array<CryptoOrTokenCurrency & Network> => {
68
- const composedHook = composeHooks<CryptoOrTokenCurrency, Network>(
70
+ const composedHook = composeHooks<
71
+ CryptoOrTokenCurrency,
72
+ Network & { balanceData?: BalanceUI; count?: number }
73
+ >(
69
74
  ...hooks.map(
70
75
  hook => () =>
71
76
  hook({
@@ -75,6 +80,19 @@ export const createNetworkConfigurationHook =
75
80
  }),
76
81
  ),
77
82
  );
78
- return composedHook(assets);
83
+
84
+ const result = composedHook(assets);
85
+
86
+ if (leftElement === "numberOfAccounts" || leftElement === "numberOfAccountsAndApy") {
87
+ result.sort((a, b) => (b?.count || 0) - (a?.count || 0));
88
+ }
89
+
90
+ if (rightElement === "balance") {
91
+ const { discreet } = NetworkConfigurationDeps.useBalanceDeps();
92
+
93
+ result.sort((a, b) => compareByBalanceThenFiat(a?.balanceData, b?.balanceData, discreet));
94
+ }
95
+
96
+ return result;
79
97
  };
80
98
  };
@@ -4,7 +4,7 @@ import {
4
4
  mockScrollCryptoCurrency,
5
5
  usdcToken,
6
6
  } from "../../__mocks__/currencies.mock";
7
- import { ApyType } from "../type";
7
+ import { ApyType } from "../../../dada-client/types/trend";
8
8
 
9
9
  describe("getInterestRateForAsset", () => {
10
10
  const networks = [mockEthCryptoCurrency, usdcToken];
@@ -1,5 +1,5 @@
1
1
  import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
2
- import { ApyType } from "./type";
2
+ import { ApyType } from "../../dada-client/types/trend";
3
3
 
4
4
  type InterestRate = { value: number; type: ApyType };
5
5
  type InterestRateResult = {
@@ -5,10 +5,9 @@ import { ReactNode } from "react";
5
5
  import { Observable } from "rxjs";
6
6
  import { WalletAPIAccount } from "../../wallet-api/types";
7
7
  import { EnhancedModularDrawerConfiguration } from "../../wallet-api/ModularDrawer/types";
8
- import { InterestRate } from "../data/entities";
8
+ import { InterestRate } from "../../dada-client/entities";
9
9
  import { MarketItemResponse } from "../../market/utils/types";
10
-
11
- export type ApyType = "NRR" | "APY" | "APR";
10
+ import { ApyType } from "../../dada-client/types/trend";
12
11
 
13
12
  export type AssetType = {
14
13
  name: string;
@@ -75,7 +74,9 @@ export type NetworkHookParams = {
75
74
  networks: CryptoOrTokenCurrency[];
76
75
  accounts$?: Observable<WalletAPIAccount[]>;
77
76
  };
78
- export type NetworkHook = (params: NetworkHookParams) => Array<CryptoOrTokenCurrency & Network>;
77
+ export type NetworkHook = (
78
+ params: NetworkHookParams,
79
+ ) => Array<CryptoOrTokenCurrency & Network & { balanceData?: BalanceUI; count?: number }>;
79
80
 
80
81
  export type NetworkConfigurationDeps = {
81
82
  useAccountData: UseAccountData;
@@ -0,0 +1,23 @@
1
+ /* eslint-disable no-console */
2
+ import { RPCHandler, customWrapper } from "@ledgerhq/wallet-api-server";
3
+
4
+ export type DeeplinkOpenParams = {
5
+ url: string;
6
+ };
7
+
8
+ type Handlers = Record<"custom.deeplink.open", RPCHandler<void, DeeplinkOpenParams>>;
9
+
10
+ type DeeplinkUiHooks = {
11
+ "custom.deeplink.open": (params?: { url: string }) => void;
12
+ };
13
+
14
+ export const handlers = ({
15
+ uiHooks: { "custom.deeplink.open": uiDeeplinkOpen },
16
+ }: {
17
+ uiHooks: DeeplinkUiHooks;
18
+ }) =>
19
+ ({
20
+ "custom.deeplink.open": customWrapper<DeeplinkOpenParams, void>(params =>
21
+ uiDeeplinkOpen(params),
22
+ ),
23
+ }) as const satisfies Handlers;
@@ -1,2 +0,0 @@
1
- export declare function sendSui(): Promise<void>;
2
- //# sourceMappingURL=sui.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sui.d.ts","sourceRoot":"","sources":["../../../src/e2e/families/sui.ts"],"names":[],"mappings":"AAGA,wBAAsB,OAAO,kBAG5B"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sendSui = void 0;
4
- const speculos_1 = require("../speculos");
5
- const DeviceLabels_1 = require("../enum/DeviceLabels");
6
- async function sendSui() {
7
- await (0, speculos_1.pressUntilTextFound)(DeviceLabels_1.DeviceLabels.ACCEPT);
8
- await (0, speculos_1.pressBoth)();
9
- }
10
- exports.sendSui = sendSui;
11
- //# sourceMappingURL=sui.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sui.js","sourceRoot":"","sources":["../../../src/e2e/families/sui.ts"],"names":[],"mappings":";;;AAAA,0CAA6D;AAC7D,uDAAoD;AAE7C,KAAK,UAAU,OAAO;IAC3B,MAAM,IAAA,8BAAmB,EAAC,2BAAY,CAAC,MAAM,CAAC,CAAC;IAC/C,MAAM,IAAA,oBAAS,GAAE,CAAC;AACpB,CAAC;AAHD,0BAGC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAGrF,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC;AAGD,MAAM,WAAW,WAAW;IAC1B,yBAAyB;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,YAAY;IAC3B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,wCAAwC;IACxC,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAGD,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC9C,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACtC,0DAA0D;IAC1D,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAClD,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC5C,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACnD,oCAAoC;IACpC,eAAe,EAAE,eAAe,CAAC;CAClC;AAGD,MAAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC9C,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACtC,qFAAqF;IACrF,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/D,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC5C,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACnD,oCAAoC;IACpC,eAAe,EAAE,eAAe,CAAC;CAClC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/index.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interestRateSelectors.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/interestRateSelectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,EAAE,CACzC,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,MAAM,KACf,YAAY,GAAG,SAAqE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interestRateSelectors.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/interestRateSelectors.ts"],"names":[],"mappings":";;;AACA,mDAAuE;AAE1D,QAAA,4BAA4B,GAGT,IAAA,0CAA0B,EAAe,eAAe,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"marketSelectors.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/marketSelectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAAE,CACnC,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,MAAM,KACf,yBAAyB,GAAG,SACiC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"marketSelectors.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/marketSelectors.ts"],"names":[],"mappings":";;;AACA,mDAAuE;AAE1D,QAAA,sBAAsB,GAIjC,IAAA,0CAA0B,EAA4B,SAAS,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectorUtils.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/selectorUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,WAAW,QAAQ;IACvB,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KAC3C,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;KACxC,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAC1C,OAAO,EAAE,MAAM,GACd,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC,CAoB7C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectorUtils.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/selectorUtils.ts"],"names":[],"mappings":";;;AAAA,8CAA4D;AAc5D;;;;GAIG;AACH,SAAgB,0BAA0B,CACxC,OAAe;IAEf,OAAO,IAAA,wBAAc,EACnB;QACE,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,IAAI,EAAE;QACvD,CAAC,MAAgB,EAAE,UAAkB,EAAE,EAAE,CAAC,UAAU;KACrD,EACD,CAAC,OAAO,EAAE,UAAU,EAAiB,EAAE;QACrC,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;YAC1C,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC;YAChC,IAAI,CAAC,KAAK;gBAAE,SAAS;YAErB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;gBACxB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;gBACzC,IAAI,IAAI;oBAAE,OAAO,IAAI,CAAC;aACvB;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC,CACF,CAAC;AACJ,CAAC;AAtBD,gEAsBC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/state-manager/api.ts"],"names":[],"mappings":";;;AAAA,wDAA6F;AAC7F,yDAA0D;AAE1D,iDAA4C;AAC5C,mCAMiB;AAEjB,SAAS,uBAAuB,CAC9B,QAAwB,EACxB,IAAyB;IAEzB,MAAM,+BAA+B,GAAG,IAAA,+BAAgB,EAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;IAE3F,MAAM,UAAU,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,SAAS,CAAC;IAE7E,OAAO;QACL,GAAG,QAAQ;QACX,uBAAuB,EAAE,+BAA+B;QACxD,UAAU,EAAE;YACV,UAAU;SACX;KACF,CAAC;AACJ,CAAC;AAEY,QAAA,aAAa,GAAG,IAAA,iBAAS,EAAC;IACrC,WAAW,EAAE,eAAe;IAC5B,SAAS,EAAE,IAAA,sBAAc,EAAC;QACxB,OAAO,EAAE,EAAE,EAAE,8BAA8B;KAC5C,CAAC;IACF,QAAQ,EAAE,CAAC,sBAAc,CAAC,MAAM,CAAC;IACjC,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QACnB,aAAa,EAAE,KAAK,CAAC,aAAa,CAA2D;YAC3F,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;gBACjC,MAAM,MAAM,GAAG;oBACb,QAAQ,EAAE,GAAG;oBACb,GAAG,CAAC,SAAS,EAAE,MAAM,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC;oBACtD,GAAG,CAAC,QAAQ,EAAE,OAAO,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;oBAC3D,GAAG,CAAC,QAAQ,EAAE,WAAW;wBACvB,QAAQ,EAAE,WAAW,CAAC,MAAM,GAAG,CAAC;wBAChC,CAAC,QAAQ,EAAE,OAAO,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC;oBAC9D,GAAG,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;oBACpD,OAAO,EAAE,QAAQ,CAAC,OAAO;oBACzB,UAAU,EAAE,QAAQ,CAAC,OAAO;oBAC5B,cAAc,EAAE,CAAC,4BAAoB,CAAC,GAAG,EAAE,4BAAoB,CAAC,WAAW,CAAC;iBAC7E,CAAC;gBAEF,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,iBAAM,EAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,IAAA,iBAAM,EAAC,eAAe,CAAC,CAAC;gBAE1F,OAAO;oBACL,GAAG,EAAE,GAAG,OAAO,QAAQ;oBACvB,MAAM;iBACP,CAAC;YACJ,CAAC;YACD,YAAY,EAAE,CAAC,sBAAc,CAAC,MAAM,CAAC;YACrC,iBAAiB,EAAE,uBAAuB;YAC1C,oBAAoB,EAAE;gBACpB,gBAAgB,EAAE;oBAChB,MAAM,EAAE,EAAE;iBACX;gBACD,gBAAgB,EAAE,QAAQ,CAAC,EAAE;oBAC3B,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,EAAE;wBAClC,OAAO;4BACL,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;yBACvC,CAAC;qBACH;yBAAM;wBACL,OAAO,SAAS,CAAC;qBAClB;gBACH,CAAC;aACF;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAEY,qCAA6B,GAAK,qBAAa,+BAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/state-manager/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,oBAAY,cAAc;IACxB,MAAM,WAAW;CAClB;AAED,oBAAY,oBAAoB;IAC9B,GAAG,QAAQ;IACX,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,UAAU,EAAE;QACV,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/state-manager/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,mCAAiB,CAAA;AACnB,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,mDAA2B,CAAA;AAC7B,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}