@ledgerhq/live-common 34.53.0-nightly.20251115023630 → 34.53.0-nightly.20251119023741

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 (601) hide show
  1. package/lib/__tests__/test-helpers/bridge.d.ts.map +1 -1
  2. package/lib/__tests__/test-helpers/bridge.js +0 -4
  3. package/lib/__tests__/test-helpers/bridge.js.map +1 -1
  4. package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  5. package/lib/bridge/generic-alpaca/getAccountShape.js +12 -10
  6. package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  7. package/lib/currencies/helpers.d.ts +1 -3
  8. package/lib/currencies/helpers.d.ts.map +1 -1
  9. package/lib/currencies/helpers.js +1 -27
  10. package/lib/currencies/helpers.js.map +1 -1
  11. package/lib/dada-client/hooks/useAssetsData.d.ts +1 -0
  12. package/lib/dada-client/hooks/useAssetsData.d.ts.map +1 -1
  13. package/lib/dada-client/hooks/useAssetsData.js +1 -0
  14. package/lib/dada-client/hooks/useAssetsData.js.map +1 -1
  15. package/lib/deposit/type.d.ts +0 -17
  16. package/lib/deposit/type.d.ts.map +1 -1
  17. package/lib/deposit/type.js.map +1 -1
  18. package/lib/deviceSDK/actions/getBatteryStatuses.d.ts +2 -1
  19. package/lib/deviceSDK/actions/getBatteryStatuses.d.ts.map +1 -1
  20. package/lib/deviceSDK/actions/getBatteryStatuses.js +2 -2
  21. package/lib/deviceSDK/actions/getBatteryStatuses.js.map +1 -1
  22. package/lib/deviceSDK/actions/getDeviceInfo.d.ts +2 -1
  23. package/lib/deviceSDK/actions/getDeviceInfo.d.ts.map +1 -1
  24. package/lib/deviceSDK/actions/getDeviceInfo.js +2 -2
  25. package/lib/deviceSDK/actions/getDeviceInfo.js.map +1 -1
  26. package/lib/deviceSDK/actions/getLatestAvailableFirmware.d.ts +2 -1
  27. package/lib/deviceSDK/actions/getLatestAvailableFirmware.d.ts.map +1 -1
  28. package/lib/deviceSDK/actions/getLatestAvailableFirmware.js +6 -3
  29. package/lib/deviceSDK/actions/getLatestAvailableFirmware.js.map +1 -1
  30. package/lib/deviceSDK/actions/toggleOnboardingEarlyCheck.d.ts +2 -1
  31. package/lib/deviceSDK/actions/toggleOnboardingEarlyCheck.d.ts.map +1 -1
  32. package/lib/deviceSDK/actions/toggleOnboardingEarlyCheck.js +2 -2
  33. package/lib/deviceSDK/actions/toggleOnboardingEarlyCheck.js.map +1 -1
  34. package/lib/deviceSDK/actions/updateFirmware.d.ts +2 -1
  35. package/lib/deviceSDK/actions/updateFirmware.d.ts.map +1 -1
  36. package/lib/deviceSDK/actions/updateFirmware.js +4 -3
  37. package/lib/deviceSDK/actions/updateFirmware.js.map +1 -1
  38. package/lib/deviceSDK/hooks/useBatteryStatuses.d.ts +2 -1
  39. package/lib/deviceSDK/hooks/useBatteryStatuses.d.ts.map +1 -1
  40. package/lib/deviceSDK/hooks/useBatteryStatuses.js +3 -2
  41. package/lib/deviceSDK/hooks/useBatteryStatuses.js.map +1 -1
  42. package/lib/deviceSDK/hooks/useGetDeviceInfo.d.ts +2 -1
  43. package/lib/deviceSDK/hooks/useGetDeviceInfo.d.ts.map +1 -1
  44. package/lib/deviceSDK/hooks/useGetDeviceInfo.js +3 -3
  45. package/lib/deviceSDK/hooks/useGetDeviceInfo.js.map +1 -1
  46. package/lib/deviceSDK/hooks/useGetLatestAvailableFirmware.d.ts +2 -1
  47. package/lib/deviceSDK/hooks/useGetLatestAvailableFirmware.d.ts.map +1 -1
  48. package/lib/deviceSDK/hooks/useGetLatestAvailableFirmware.js +2 -1
  49. package/lib/deviceSDK/hooks/useGetLatestAvailableFirmware.js.map +1 -1
  50. package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.d.ts +2 -1
  51. package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.d.ts.map +1 -1
  52. package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.js +3 -2
  53. package/lib/deviceSDK/hooks/useToggleOnboardingEarlyChecks.js.map +1 -1
  54. package/lib/deviceSDK/hooks/useUpdateFirmware.d.ts +2 -1
  55. package/lib/deviceSDK/hooks/useUpdateFirmware.d.ts.map +1 -1
  56. package/lib/deviceSDK/hooks/useUpdateFirmware.js +3 -2
  57. package/lib/deviceSDK/hooks/useUpdateFirmware.js.map +1 -1
  58. package/lib/deviceSDK/tasks/core.d.ts +1 -1
  59. package/lib/deviceSDK/tasks/core.d.ts.map +1 -1
  60. package/lib/deviceSDK/tasks/core.js +1 -1
  61. package/lib/deviceSDK/tasks/core.js.map +1 -1
  62. package/lib/deviceSDK/tasks/getBatteryStatuses.d.ts +1 -0
  63. package/lib/deviceSDK/tasks/getBatteryStatuses.d.ts.map +1 -1
  64. package/lib/deviceSDK/tasks/getBatteryStatuses.js +2 -2
  65. package/lib/deviceSDK/tasks/getBatteryStatuses.js.map +1 -1
  66. package/lib/deviceSDK/tasks/getDeviceInfo.d.ts +2 -1
  67. package/lib/deviceSDK/tasks/getDeviceInfo.d.ts.map +1 -1
  68. package/lib/deviceSDK/tasks/getDeviceInfo.js +2 -2
  69. package/lib/deviceSDK/tasks/getDeviceInfo.js.map +1 -1
  70. package/lib/deviceSDK/tasks/getLatestFirmware.d.ts +1 -0
  71. package/lib/deviceSDK/tasks/getLatestFirmware.d.ts.map +1 -1
  72. package/lib/deviceSDK/tasks/getLatestFirmware.js +2 -2
  73. package/lib/deviceSDK/tasks/getLatestFirmware.js.map +1 -1
  74. package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.d.ts +1 -0
  75. package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.d.ts.map +1 -1
  76. package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.js +2 -2
  77. package/lib/deviceSDK/tasks/toggleOnboardingEarlyCheck.js.map +1 -1
  78. package/lib/deviceSDK/tasks/updateFirmware.d.ts +1 -0
  79. package/lib/deviceSDK/tasks/updateFirmware.d.ts.map +1 -1
  80. package/lib/deviceSDK/tasks/updateFirmware.js +2 -2
  81. package/lib/deviceSDK/tasks/updateFirmware.js.map +1 -1
  82. package/lib/deviceSDK/transports/core.d.ts +1 -0
  83. package/lib/deviceSDK/transports/core.d.ts.map +1 -1
  84. package/lib/deviceSDK/transports/core.js +2 -2
  85. package/lib/deviceSDK/transports/core.js.map +1 -1
  86. package/lib/e2e/enum/Account.d.ts +0 -1
  87. package/lib/e2e/enum/Account.d.ts.map +1 -1
  88. package/lib/e2e/enum/Account.js +0 -1
  89. package/lib/e2e/enum/Account.js.map +1 -1
  90. package/lib/e2e/enum/Currency.d.ts +0 -1
  91. package/lib/e2e/enum/Currency.d.ts.map +1 -1
  92. package/lib/e2e/enum/Currency.js +1 -5
  93. package/lib/e2e/enum/Currency.js.map +1 -1
  94. package/lib/e2e/enum/ReceiveFundsOptions.d.ts +6 -0
  95. package/lib/e2e/enum/ReceiveFundsOptions.d.ts.map +1 -0
  96. package/lib/e2e/enum/ReceiveFundsOptions.js +8 -0
  97. package/lib/e2e/enum/ReceiveFundsOptions.js.map +1 -0
  98. package/lib/exchange/providers/swap.d.ts +1 -0
  99. package/lib/exchange/providers/swap.d.ts.map +1 -1
  100. package/lib/exchange/providers/swap.js +5 -1
  101. package/lib/exchange/providers/swap.js.map +1 -1
  102. package/lib/exchange/swap/hooks/v5/useFetchCurrencyAll.d.ts.map +1 -1
  103. package/lib/exchange/swap/hooks/v5/useFetchCurrencyAll.js +2 -3
  104. package/lib/exchange/swap/hooks/v5/useFetchCurrencyAll.js.map +1 -1
  105. package/lib/exchange/swap/hooks/v5/useFilteredProviders.d.ts.map +1 -1
  106. package/lib/exchange/swap/hooks/v5/useFilteredProviders.js +15 -10
  107. package/lib/exchange/swap/hooks/v5/useFilteredProviders.js.map +1 -1
  108. package/lib/hw/actions/app.d.ts.map +1 -1
  109. package/lib/hw/actions/app.js +2 -1
  110. package/lib/hw/actions/app.js.map +1 -1
  111. package/lib/hw/actions/customLockScreenLoad.d.ts +1 -1
  112. package/lib/hw/actions/customLockScreenLoad.d.ts.map +1 -1
  113. package/lib/hw/actions/customLockScreenLoad.js +2 -0
  114. package/lib/hw/actions/customLockScreenLoad.js.map +1 -1
  115. package/lib/hw/actions/implementations.d.ts +1 -0
  116. package/lib/hw/actions/implementations.d.ts.map +1 -1
  117. package/lib/hw/actions/implementations.js +12 -2
  118. package/lib/hw/actions/implementations.js.map +1 -1
  119. package/lib/hw/connectApp.d.ts +2 -1
  120. package/lib/hw/connectApp.d.ts.map +1 -1
  121. package/lib/hw/connectApp.js +4 -4
  122. package/lib/hw/connectApp.js.map +1 -1
  123. package/lib/hw/connectManager.d.ts +2 -1
  124. package/lib/hw/connectManager.d.ts.map +1 -1
  125. package/lib/hw/connectManager.js +4 -4
  126. package/lib/hw/connectManager.js.map +1 -1
  127. package/lib/hw/customLockScreenFetch.d.ts +2 -1
  128. package/lib/hw/customLockScreenFetch.d.ts.map +1 -1
  129. package/lib/hw/customLockScreenFetch.js +2 -2
  130. package/lib/hw/customLockScreenFetch.js.map +1 -1
  131. package/lib/hw/customLockScreenLoad.d.ts +2 -1
  132. package/lib/hw/customLockScreenLoad.d.ts.map +1 -1
  133. package/lib/hw/customLockScreenLoad.js +2 -2
  134. package/lib/hw/customLockScreenLoad.js.map +1 -1
  135. package/lib/hw/deviceAccess.d.ts +3 -3
  136. package/lib/hw/deviceAccess.d.ts.map +1 -1
  137. package/lib/hw/deviceAccess.js +2 -1
  138. package/lib/hw/deviceAccess.js.map +1 -1
  139. package/lib/hw/getGenuineCheckFromDeviceId.d.ts +2 -1
  140. package/lib/hw/getGenuineCheckFromDeviceId.d.ts.map +1 -1
  141. package/lib/hw/getGenuineCheckFromDeviceId.js +2 -2
  142. package/lib/hw/getGenuineCheckFromDeviceId.js.map +1 -1
  143. package/lib/hw/getOnboardingStatePolling.d.ts +2 -1
  144. package/lib/hw/getOnboardingStatePolling.d.ts.map +1 -1
  145. package/lib/hw/getOnboardingStatePolling.js +5 -2
  146. package/lib/hw/getOnboardingStatePolling.js.map +1 -1
  147. package/lib/hw/hooks/useGenuineCheck.d.ts +2 -1
  148. package/lib/hw/hooks/useGenuineCheck.d.ts.map +1 -1
  149. package/lib/hw/hooks/useGenuineCheck.js +3 -1
  150. package/lib/hw/hooks/useGenuineCheck.js.map +1 -1
  151. package/lib/hw/index.d.ts +6 -2
  152. package/lib/hw/index.d.ts.map +1 -1
  153. package/lib/hw/index.js +6 -6
  154. package/lib/hw/index.js.map +1 -1
  155. package/lib/hw/installLanguage.d.ts +2 -1
  156. package/lib/hw/installLanguage.d.ts.map +1 -1
  157. package/lib/hw/installLanguage.js +2 -2
  158. package/lib/hw/installLanguage.js.map +1 -1
  159. package/lib/market/hooks/useMarketDataProvider.js +1 -0
  160. package/lib/market/hooks/useMarketDataProvider.js.map +1 -1
  161. package/lib/market/utils/types.d.ts +1 -0
  162. package/lib/market/utils/types.d.ts.map +1 -1
  163. package/lib/market/utils/types.js.map +1 -1
  164. package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.d.ts.map +1 -1
  165. package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js +2 -0
  166. package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js.map +1 -1
  167. package/lib/modularDrawer/hooks/useNetworkAccountCounts.d.ts +1 -5
  168. package/lib/modularDrawer/hooks/useNetworkAccountCounts.d.ts.map +1 -1
  169. package/lib/modularDrawer/hooks/useNetworkAccountCounts.js +2 -2
  170. package/lib/modularDrawer/hooks/useNetworkAccountCounts.js.map +1 -1
  171. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts +1 -1
  172. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
  173. package/lib/modularDrawer/modules/createNetworkConfiguration.js +1 -2
  174. package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
  175. package/lib/modularDrawer/utils/{groupCurrenciesByProvider.d.ts → groupCurrenciesByAsset.d.ts} +2 -2
  176. package/lib/modularDrawer/utils/groupCurrenciesByAsset.d.ts.map +1 -0
  177. package/lib/modularDrawer/utils/{groupCurrenciesByProvider.js → groupCurrenciesByAsset.js} +7 -7
  178. package/lib/modularDrawer/utils/groupCurrenciesByAsset.js.map +1 -0
  179. package/lib/modularDrawer/utils/index.d.ts +1 -1
  180. package/lib/modularDrawer/utils/index.d.ts.map +1 -1
  181. package/lib/modularDrawer/utils/index.js +3 -3
  182. package/lib/modularDrawer/utils/index.js.map +1 -1
  183. package/lib/modularDrawer/utils/type.d.ts +0 -5
  184. package/lib/modularDrawer/utils/type.d.ts.map +1 -1
  185. package/lib/onboarding/hooks/useOnboardingStatePolling.d.ts.map +1 -1
  186. package/lib/onboarding/hooks/useOnboardingStatePolling.js +1 -0
  187. package/lib/onboarding/hooks/useOnboardingStatePolling.js.map +1 -1
  188. package/lib/platform/filters.d.ts +1 -2
  189. package/lib/platform/filters.d.ts.map +1 -1
  190. package/lib/platform/filters.js +1 -17
  191. package/lib/platform/filters.js.map +1 -1
  192. package/lib/platform/helpers.d.ts +1 -5
  193. package/lib/platform/helpers.d.ts.map +1 -1
  194. package/lib/platform/helpers.js +1 -33
  195. package/lib/platform/helpers.js.map +1 -1
  196. package/lib/platform/react.d.ts +2 -3
  197. package/lib/platform/react.d.ts.map +1 -1
  198. package/lib/platform/react.js +66 -16
  199. package/lib/platform/react.js.map +1 -1
  200. package/lib/platform/types.d.ts +3 -3
  201. package/lib/platform/types.d.ts.map +1 -1
  202. package/lib/utils/getAccountTuplesForCurrency.d.ts +1 -1
  203. package/lib/utils/getAccountTuplesForCurrency.d.ts.map +1 -1
  204. package/lib/utils/getAccountTuplesForCurrency.js +2 -3
  205. package/lib/utils/getAccountTuplesForCurrency.js.map +1 -1
  206. package/lib/wallet-api/Exchange/server.d.ts.map +1 -1
  207. package/lib/wallet-api/Exchange/server.js +5 -4
  208. package/lib/wallet-api/Exchange/server.js.map +1 -1
  209. package/lib/wallet-api/converters.d.ts +1 -0
  210. package/lib/wallet-api/converters.d.ts.map +1 -1
  211. package/lib/wallet-api/converters.js +7 -2
  212. package/lib/wallet-api/converters.js.map +1 -1
  213. package/lib/wallet-api/react.d.ts +6 -11
  214. package/lib/wallet-api/react.d.ts.map +1 -1
  215. package/lib/wallet-api/react.js +291 -135
  216. package/lib/wallet-api/react.js.map +1 -1
  217. package/lib/wallet-api/tracking.d.ts +6 -0
  218. package/lib/wallet-api/tracking.d.ts.map +1 -1
  219. package/lib/wallet-api/tracking.js +20 -0
  220. package/lib/wallet-api/tracking.js.map +1 -1
  221. package/lib/wallet-api/types.d.ts +3 -0
  222. package/lib/wallet-api/types.d.ts.map +1 -1
  223. package/lib/wallet-api/useDappLogic.d.ts.map +1 -1
  224. package/lib/wallet-api/useDappLogic.js +65 -80
  225. package/lib/wallet-api/useDappLogic.js.map +1 -1
  226. package/lib/wallet-api/utils/deriveAccountIdForManifest.d.ts +6 -0
  227. package/lib/wallet-api/utils/deriveAccountIdForManifest.d.ts.map +1 -1
  228. package/lib/wallet-api/utils/deriveAccountIdForManifest.js +13 -3
  229. package/lib/wallet-api/utils/deriveAccountIdForManifest.js.map +1 -1
  230. package/lib-es/__tests__/test-helpers/bridge.d.ts.map +1 -1
  231. package/lib-es/__tests__/test-helpers/bridge.js +0 -4
  232. package/lib-es/__tests__/test-helpers/bridge.js.map +1 -1
  233. package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  234. package/lib-es/bridge/generic-alpaca/getAccountShape.js +13 -11
  235. package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  236. package/lib-es/currencies/helpers.d.ts +1 -3
  237. package/lib-es/currencies/helpers.d.ts.map +1 -1
  238. package/lib-es/currencies/helpers.js +0 -24
  239. package/lib-es/currencies/helpers.js.map +1 -1
  240. package/lib-es/dada-client/hooks/useAssetsData.d.ts +1 -0
  241. package/lib-es/dada-client/hooks/useAssetsData.d.ts.map +1 -1
  242. package/lib-es/dada-client/hooks/useAssetsData.js +1 -0
  243. package/lib-es/dada-client/hooks/useAssetsData.js.map +1 -1
  244. package/lib-es/deposit/type.d.ts +0 -17
  245. package/lib-es/deposit/type.d.ts.map +1 -1
  246. package/lib-es/deposit/type.js.map +1 -1
  247. package/lib-es/deviceSDK/actions/getBatteryStatuses.d.ts +2 -1
  248. package/lib-es/deviceSDK/actions/getBatteryStatuses.d.ts.map +1 -1
  249. package/lib-es/deviceSDK/actions/getBatteryStatuses.js +2 -2
  250. package/lib-es/deviceSDK/actions/getBatteryStatuses.js.map +1 -1
  251. package/lib-es/deviceSDK/actions/getDeviceInfo.d.ts +2 -1
  252. package/lib-es/deviceSDK/actions/getDeviceInfo.d.ts.map +1 -1
  253. package/lib-es/deviceSDK/actions/getDeviceInfo.js +2 -2
  254. package/lib-es/deviceSDK/actions/getDeviceInfo.js.map +1 -1
  255. package/lib-es/deviceSDK/actions/getLatestAvailableFirmware.d.ts +2 -1
  256. package/lib-es/deviceSDK/actions/getLatestAvailableFirmware.d.ts.map +1 -1
  257. package/lib-es/deviceSDK/actions/getLatestAvailableFirmware.js +6 -3
  258. package/lib-es/deviceSDK/actions/getLatestAvailableFirmware.js.map +1 -1
  259. package/lib-es/deviceSDK/actions/toggleOnboardingEarlyCheck.d.ts +2 -1
  260. package/lib-es/deviceSDK/actions/toggleOnboardingEarlyCheck.d.ts.map +1 -1
  261. package/lib-es/deviceSDK/actions/toggleOnboardingEarlyCheck.js +2 -2
  262. package/lib-es/deviceSDK/actions/toggleOnboardingEarlyCheck.js.map +1 -1
  263. package/lib-es/deviceSDK/actions/updateFirmware.d.ts +2 -1
  264. package/lib-es/deviceSDK/actions/updateFirmware.d.ts.map +1 -1
  265. package/lib-es/deviceSDK/actions/updateFirmware.js +4 -3
  266. package/lib-es/deviceSDK/actions/updateFirmware.js.map +1 -1
  267. package/lib-es/deviceSDK/hooks/useBatteryStatuses.d.ts +2 -1
  268. package/lib-es/deviceSDK/hooks/useBatteryStatuses.d.ts.map +1 -1
  269. package/lib-es/deviceSDK/hooks/useBatteryStatuses.js +3 -2
  270. package/lib-es/deviceSDK/hooks/useBatteryStatuses.js.map +1 -1
  271. package/lib-es/deviceSDK/hooks/useGetDeviceInfo.d.ts +2 -1
  272. package/lib-es/deviceSDK/hooks/useGetDeviceInfo.d.ts.map +1 -1
  273. package/lib-es/deviceSDK/hooks/useGetDeviceInfo.js +3 -3
  274. package/lib-es/deviceSDK/hooks/useGetDeviceInfo.js.map +1 -1
  275. package/lib-es/deviceSDK/hooks/useGetLatestAvailableFirmware.d.ts +2 -1
  276. package/lib-es/deviceSDK/hooks/useGetLatestAvailableFirmware.d.ts.map +1 -1
  277. package/lib-es/deviceSDK/hooks/useGetLatestAvailableFirmware.js +2 -1
  278. package/lib-es/deviceSDK/hooks/useGetLatestAvailableFirmware.js.map +1 -1
  279. package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.d.ts +2 -1
  280. package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.d.ts.map +1 -1
  281. package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.js +3 -2
  282. package/lib-es/deviceSDK/hooks/useToggleOnboardingEarlyChecks.js.map +1 -1
  283. package/lib-es/deviceSDK/hooks/useUpdateFirmware.d.ts +2 -1
  284. package/lib-es/deviceSDK/hooks/useUpdateFirmware.d.ts.map +1 -1
  285. package/lib-es/deviceSDK/hooks/useUpdateFirmware.js +3 -2
  286. package/lib-es/deviceSDK/hooks/useUpdateFirmware.js.map +1 -1
  287. package/lib-es/deviceSDK/tasks/core.d.ts +1 -1
  288. package/lib-es/deviceSDK/tasks/core.d.ts.map +1 -1
  289. package/lib-es/deviceSDK/tasks/core.js +1 -1
  290. package/lib-es/deviceSDK/tasks/core.js.map +1 -1
  291. package/lib-es/deviceSDK/tasks/getBatteryStatuses.d.ts +1 -0
  292. package/lib-es/deviceSDK/tasks/getBatteryStatuses.d.ts.map +1 -1
  293. package/lib-es/deviceSDK/tasks/getBatteryStatuses.js +2 -2
  294. package/lib-es/deviceSDK/tasks/getBatteryStatuses.js.map +1 -1
  295. package/lib-es/deviceSDK/tasks/getDeviceInfo.d.ts +2 -1
  296. package/lib-es/deviceSDK/tasks/getDeviceInfo.d.ts.map +1 -1
  297. package/lib-es/deviceSDK/tasks/getDeviceInfo.js +2 -2
  298. package/lib-es/deviceSDK/tasks/getDeviceInfo.js.map +1 -1
  299. package/lib-es/deviceSDK/tasks/getLatestFirmware.d.ts +1 -0
  300. package/lib-es/deviceSDK/tasks/getLatestFirmware.d.ts.map +1 -1
  301. package/lib-es/deviceSDK/tasks/getLatestFirmware.js +2 -2
  302. package/lib-es/deviceSDK/tasks/getLatestFirmware.js.map +1 -1
  303. package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.d.ts +1 -0
  304. package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.d.ts.map +1 -1
  305. package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.js +2 -2
  306. package/lib-es/deviceSDK/tasks/toggleOnboardingEarlyCheck.js.map +1 -1
  307. package/lib-es/deviceSDK/tasks/updateFirmware.d.ts +1 -0
  308. package/lib-es/deviceSDK/tasks/updateFirmware.d.ts.map +1 -1
  309. package/lib-es/deviceSDK/tasks/updateFirmware.js +2 -2
  310. package/lib-es/deviceSDK/tasks/updateFirmware.js.map +1 -1
  311. package/lib-es/deviceSDK/transports/core.d.ts +1 -0
  312. package/lib-es/deviceSDK/transports/core.d.ts.map +1 -1
  313. package/lib-es/deviceSDK/transports/core.js +2 -2
  314. package/lib-es/deviceSDK/transports/core.js.map +1 -1
  315. package/lib-es/e2e/enum/Account.d.ts +0 -1
  316. package/lib-es/e2e/enum/Account.d.ts.map +1 -1
  317. package/lib-es/e2e/enum/Account.js +0 -1
  318. package/lib-es/e2e/enum/Account.js.map +1 -1
  319. package/lib-es/e2e/enum/Currency.d.ts +0 -1
  320. package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
  321. package/lib-es/e2e/enum/Currency.js +1 -5
  322. package/lib-es/e2e/enum/Currency.js.map +1 -1
  323. package/lib-es/e2e/enum/ReceiveFundsOptions.d.ts +6 -0
  324. package/lib-es/e2e/enum/ReceiveFundsOptions.d.ts.map +1 -0
  325. package/lib-es/e2e/enum/ReceiveFundsOptions.js +5 -0
  326. package/lib-es/e2e/enum/ReceiveFundsOptions.js.map +1 -0
  327. package/lib-es/exchange/providers/swap.d.ts +1 -0
  328. package/lib-es/exchange/providers/swap.d.ts.map +1 -1
  329. package/lib-es/exchange/providers/swap.js +3 -0
  330. package/lib-es/exchange/providers/swap.js.map +1 -1
  331. package/lib-es/exchange/swap/hooks/v5/useFetchCurrencyAll.d.ts.map +1 -1
  332. package/lib-es/exchange/swap/hooks/v5/useFetchCurrencyAll.js +2 -3
  333. package/lib-es/exchange/swap/hooks/v5/useFetchCurrencyAll.js.map +1 -1
  334. package/lib-es/exchange/swap/hooks/v5/useFilteredProviders.d.ts.map +1 -1
  335. package/lib-es/exchange/swap/hooks/v5/useFilteredProviders.js +17 -12
  336. package/lib-es/exchange/swap/hooks/v5/useFilteredProviders.js.map +1 -1
  337. package/lib-es/hw/actions/app.d.ts.map +1 -1
  338. package/lib-es/hw/actions/app.js +2 -1
  339. package/lib-es/hw/actions/app.js.map +1 -1
  340. package/lib-es/hw/actions/customLockScreenLoad.d.ts +1 -1
  341. package/lib-es/hw/actions/customLockScreenLoad.d.ts.map +1 -1
  342. package/lib-es/hw/actions/customLockScreenLoad.js +2 -0
  343. package/lib-es/hw/actions/customLockScreenLoad.js.map +1 -1
  344. package/lib-es/hw/actions/implementations.d.ts +1 -0
  345. package/lib-es/hw/actions/implementations.d.ts.map +1 -1
  346. package/lib-es/hw/actions/implementations.js +12 -2
  347. package/lib-es/hw/actions/implementations.js.map +1 -1
  348. package/lib-es/hw/connectApp.d.ts +2 -1
  349. package/lib-es/hw/connectApp.d.ts.map +1 -1
  350. package/lib-es/hw/connectApp.js +4 -4
  351. package/lib-es/hw/connectApp.js.map +1 -1
  352. package/lib-es/hw/connectManager.d.ts +2 -1
  353. package/lib-es/hw/connectManager.d.ts.map +1 -1
  354. package/lib-es/hw/connectManager.js +4 -4
  355. package/lib-es/hw/connectManager.js.map +1 -1
  356. package/lib-es/hw/customLockScreenFetch.d.ts +2 -1
  357. package/lib-es/hw/customLockScreenFetch.d.ts.map +1 -1
  358. package/lib-es/hw/customLockScreenFetch.js +2 -2
  359. package/lib-es/hw/customLockScreenFetch.js.map +1 -1
  360. package/lib-es/hw/customLockScreenLoad.d.ts +2 -1
  361. package/lib-es/hw/customLockScreenLoad.d.ts.map +1 -1
  362. package/lib-es/hw/customLockScreenLoad.js +2 -2
  363. package/lib-es/hw/customLockScreenLoad.js.map +1 -1
  364. package/lib-es/hw/deviceAccess.d.ts +3 -3
  365. package/lib-es/hw/deviceAccess.d.ts.map +1 -1
  366. package/lib-es/hw/deviceAccess.js +2 -1
  367. package/lib-es/hw/deviceAccess.js.map +1 -1
  368. package/lib-es/hw/getGenuineCheckFromDeviceId.d.ts +2 -1
  369. package/lib-es/hw/getGenuineCheckFromDeviceId.d.ts.map +1 -1
  370. package/lib-es/hw/getGenuineCheckFromDeviceId.js +2 -2
  371. package/lib-es/hw/getGenuineCheckFromDeviceId.js.map +1 -1
  372. package/lib-es/hw/getOnboardingStatePolling.d.ts +2 -1
  373. package/lib-es/hw/getOnboardingStatePolling.d.ts.map +1 -1
  374. package/lib-es/hw/getOnboardingStatePolling.js +5 -2
  375. package/lib-es/hw/getOnboardingStatePolling.js.map +1 -1
  376. package/lib-es/hw/hooks/useGenuineCheck.d.ts +2 -1
  377. package/lib-es/hw/hooks/useGenuineCheck.d.ts.map +1 -1
  378. package/lib-es/hw/hooks/useGenuineCheck.js +3 -1
  379. package/lib-es/hw/hooks/useGenuineCheck.js.map +1 -1
  380. package/lib-es/hw/index.d.ts +6 -2
  381. package/lib-es/hw/index.d.ts.map +1 -1
  382. package/lib-es/hw/index.js +6 -6
  383. package/lib-es/hw/index.js.map +1 -1
  384. package/lib-es/hw/installLanguage.d.ts +2 -1
  385. package/lib-es/hw/installLanguage.d.ts.map +1 -1
  386. package/lib-es/hw/installLanguage.js +2 -2
  387. package/lib-es/hw/installLanguage.js.map +1 -1
  388. package/lib-es/market/hooks/useMarketDataProvider.js +1 -0
  389. package/lib-es/market/hooks/useMarketDataProvider.js.map +1 -1
  390. package/lib-es/market/utils/types.d.ts +1 -0
  391. package/lib-es/market/utils/types.d.ts.map +1 -1
  392. package/lib-es/market/utils/types.js.map +1 -1
  393. package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.d.ts.map +1 -1
  394. package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js +2 -0
  395. package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js.map +1 -1
  396. package/lib-es/modularDrawer/hooks/useNetworkAccountCounts.d.ts +1 -5
  397. package/lib-es/modularDrawer/hooks/useNetworkAccountCounts.d.ts.map +1 -1
  398. package/lib-es/modularDrawer/hooks/useNetworkAccountCounts.js +2 -2
  399. package/lib-es/modularDrawer/hooks/useNetworkAccountCounts.js.map +1 -1
  400. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts +1 -1
  401. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
  402. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +1 -2
  403. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
  404. package/lib-es/modularDrawer/utils/{groupCurrenciesByProvider.d.ts → groupCurrenciesByAsset.d.ts} +2 -2
  405. package/lib-es/modularDrawer/utils/groupCurrenciesByAsset.d.ts.map +1 -0
  406. package/lib-es/modularDrawer/utils/{groupCurrenciesByProvider.js → groupCurrenciesByAsset.js} +5 -5
  407. package/lib-es/modularDrawer/utils/groupCurrenciesByAsset.js.map +1 -0
  408. package/lib-es/modularDrawer/utils/index.d.ts +1 -1
  409. package/lib-es/modularDrawer/utils/index.d.ts.map +1 -1
  410. package/lib-es/modularDrawer/utils/index.js +1 -1
  411. package/lib-es/modularDrawer/utils/index.js.map +1 -1
  412. package/lib-es/modularDrawer/utils/type.d.ts +0 -5
  413. package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
  414. package/lib-es/onboarding/hooks/useOnboardingStatePolling.d.ts.map +1 -1
  415. package/lib-es/onboarding/hooks/useOnboardingStatePolling.js +1 -0
  416. package/lib-es/onboarding/hooks/useOnboardingStatePolling.js.map +1 -1
  417. package/lib-es/platform/filters.d.ts +1 -2
  418. package/lib-es/platform/filters.d.ts.map +1 -1
  419. package/lib-es/platform/filters.js +0 -15
  420. package/lib-es/platform/filters.js.map +1 -1
  421. package/lib-es/platform/helpers.d.ts +1 -5
  422. package/lib-es/platform/helpers.d.ts.map +1 -1
  423. package/lib-es/platform/helpers.js +1 -30
  424. package/lib-es/platform/helpers.js.map +1 -1
  425. package/lib-es/platform/react.d.ts +2 -3
  426. package/lib-es/platform/react.d.ts.map +1 -1
  427. package/lib-es/platform/react.js +67 -16
  428. package/lib-es/platform/react.js.map +1 -1
  429. package/lib-es/platform/types.d.ts +3 -3
  430. package/lib-es/platform/types.d.ts.map +1 -1
  431. package/lib-es/utils/getAccountTuplesForCurrency.d.ts +1 -1
  432. package/lib-es/utils/getAccountTuplesForCurrency.d.ts.map +1 -1
  433. package/lib-es/utils/getAccountTuplesForCurrency.js +2 -3
  434. package/lib-es/utils/getAccountTuplesForCurrency.js.map +1 -1
  435. package/lib-es/wallet-api/Exchange/server.d.ts.map +1 -1
  436. package/lib-es/wallet-api/Exchange/server.js +5 -4
  437. package/lib-es/wallet-api/Exchange/server.js.map +1 -1
  438. package/lib-es/wallet-api/converters.d.ts +1 -0
  439. package/lib-es/wallet-api/converters.d.ts.map +1 -1
  440. package/lib-es/wallet-api/converters.js +5 -1
  441. package/lib-es/wallet-api/converters.js.map +1 -1
  442. package/lib-es/wallet-api/react.d.ts +6 -11
  443. package/lib-es/wallet-api/react.d.ts.map +1 -1
  444. package/lib-es/wallet-api/react.js +289 -131
  445. package/lib-es/wallet-api/react.js.map +1 -1
  446. package/lib-es/wallet-api/tracking.d.ts +6 -0
  447. package/lib-es/wallet-api/tracking.d.ts.map +1 -1
  448. package/lib-es/wallet-api/tracking.js +20 -0
  449. package/lib-es/wallet-api/tracking.js.map +1 -1
  450. package/lib-es/wallet-api/types.d.ts +3 -0
  451. package/lib-es/wallet-api/types.d.ts.map +1 -1
  452. package/lib-es/wallet-api/useDappLogic.d.ts.map +1 -1
  453. package/lib-es/wallet-api/useDappLogic.js +62 -77
  454. package/lib-es/wallet-api/useDappLogic.js.map +1 -1
  455. package/lib-es/wallet-api/utils/deriveAccountIdForManifest.d.ts +6 -0
  456. package/lib-es/wallet-api/utils/deriveAccountIdForManifest.d.ts.map +1 -1
  457. package/lib-es/wallet-api/utils/deriveAccountIdForManifest.js +11 -2
  458. package/lib-es/wallet-api/utils/deriveAccountIdForManifest.js.map +1 -1
  459. package/package.json +56 -56
  460. package/src/__tests__/test-helpers/bridge.ts +0 -2
  461. package/src/bridge/generic-alpaca/getAccountShape.ts +15 -12
  462. package/src/bridge/generic-alpaca/tests/getAccountShape.test.ts +142 -101
  463. package/src/currencies/helpers.ts +1 -42
  464. package/src/dada-client/hooks/useAssetsData.ts +1 -0
  465. package/src/deposit/type.ts +0 -21
  466. package/src/deviceSDK/actions/getBatteryStatuses.ts +3 -1
  467. package/src/deviceSDK/actions/getDeviceInfo.ts +3 -2
  468. package/src/deviceSDK/actions/getLatestAvailableFirmware.test.ts +31 -0
  469. package/src/deviceSDK/actions/getLatestAvailableFirmware.ts +7 -2
  470. package/src/deviceSDK/actions/toggleOnboardingEarlyCheck.ts +3 -1
  471. package/src/deviceSDK/actions/updateFirmware.ts +5 -2
  472. package/src/deviceSDK/hooks/useBatteryStatuses.test.ts +3 -1
  473. package/src/deviceSDK/hooks/useBatteryStatuses.ts +4 -1
  474. package/src/deviceSDK/hooks/useGetDeviceInfo.ts +4 -2
  475. package/src/deviceSDK/hooks/useGetLatestAvailableFirmware.ts +3 -0
  476. package/src/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.ts +2 -0
  477. package/src/deviceSDK/hooks/useToggleOnboardingEarlyChecks.ts +4 -1
  478. package/src/deviceSDK/hooks/useUpdateFirmware.ts +4 -1
  479. package/src/deviceSDK/tasks/core.test.ts +20 -0
  480. package/src/deviceSDK/tasks/core.ts +2 -1
  481. package/src/deviceSDK/tasks/getBatteryStatuses.ts +6 -1
  482. package/src/deviceSDK/tasks/getDeviceInfo.ts +6 -2
  483. package/src/deviceSDK/tasks/getLatestFirmware.ts +6 -1
  484. package/src/deviceSDK/tasks/toggleOnboardingEarlyCheck.test.ts +3 -0
  485. package/src/deviceSDK/tasks/toggleOnboardingEarlyCheck.ts +6 -1
  486. package/src/deviceSDK/tasks/updateFirmware.ts +6 -1
  487. package/src/deviceSDK/transports/core.ts +6 -3
  488. package/src/e2e/enum/Account.ts +0 -6
  489. package/src/e2e/enum/Currency.ts +1 -5
  490. package/src/e2e/enum/ReceiveFundsOptions.ts +7 -0
  491. package/src/exchange/providers/swap.ts +4 -0
  492. package/src/exchange/swap/hooks/v5/useFetchCurrencyAll.ts +2 -3
  493. package/src/exchange/swap/hooks/v5/useFilteredProviders.ts +37 -12
  494. package/src/families/stellar/__snapshots__/bridge.integration.test.ts.snap +84 -12
  495. package/src/hw/actions/app.ts +2 -1
  496. package/src/hw/actions/customLockScreenLoad.ts +6 -2
  497. package/src/hw/actions/implementations.ts +17 -3
  498. package/src/hw/connectApp.ts +12 -5
  499. package/src/hw/connectManager.ts +13 -6
  500. package/src/hw/customLockScreenFetch.ts +10 -2
  501. package/src/hw/customLockScreenLoad.test.ts +28 -3
  502. package/src/hw/customLockScreenLoad.ts +10 -2
  503. package/src/hw/deviceAccess.ts +4 -3
  504. package/src/hw/getGenuineCheckFromDeviceId.test.ts +4 -0
  505. package/src/hw/getGenuineCheckFromDeviceId.ts +6 -1
  506. package/src/hw/getOnboardingStatePolling.test.ts +34 -0
  507. package/src/hw/getOnboardingStatePolling.ts +6 -3
  508. package/src/hw/hooks/useGenuineCheck.test.ts +37 -0
  509. package/src/hw/hooks/useGenuineCheck.ts +4 -0
  510. package/src/hw/index.test.ts +27 -6
  511. package/src/hw/index.ts +15 -8
  512. package/src/hw/installLanguage.ts +6 -1
  513. package/src/market/hooks/useMarketDataProvider.ts +1 -0
  514. package/src/market/utils/types.ts +1 -0
  515. package/src/modularDrawer/hooks/__test__/useAssetAccountCounts.test.ts +0 -5
  516. package/src/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.ts +2 -0
  517. package/src/modularDrawer/hooks/useNetworkAccountCounts.tsx +1 -6
  518. package/src/modularDrawer/modules/__test__/createAssetConfiguration.test.tsx +2 -2
  519. package/src/modularDrawer/modules/createNetworkConfiguration.ts +1 -2
  520. package/src/modularDrawer/utils/__tests__/{groupCurrenciesByProvider.test.ts → groupCurrenciesByAsset.test.ts} +6 -6
  521. package/src/modularDrawer/utils/{groupCurrenciesByProvider.ts → groupCurrenciesByAsset.ts} +4 -4
  522. package/src/modularDrawer/utils/index.ts +1 -1
  523. package/src/modularDrawer/utils/type.ts +0 -5
  524. package/src/onboarding/hooks/useOnboardingStatePolling.ts +1 -0
  525. package/src/platform/filters.ts +1 -23
  526. package/src/platform/helpers.ts +2 -49
  527. package/src/platform/react.ts +86 -22
  528. package/src/platform/types.ts +1 -1
  529. package/src/utils/__tests__/getAccountTuplesForCurrency.test.ts +0 -30
  530. package/src/utils/getAccountTuplesForCurrency.ts +1 -6
  531. package/src/wallet-api/Exchange/server.test.ts +0 -5
  532. package/src/wallet-api/Exchange/server.ts +7 -6
  533. package/src/wallet-api/converters.ts +6 -1
  534. package/src/wallet-api/react.ts +310 -137
  535. package/src/wallet-api/tracking.ts +22 -0
  536. package/src/wallet-api/types.ts +5 -0
  537. package/src/wallet-api/useDappLogic.ts +91 -106
  538. package/src/wallet-api/utils/deriveAccountIdForManifest.ts +14 -2
  539. package/lib/deposit/helper.d.ts +0 -8
  540. package/lib/deposit/helper.d.ts.map +0 -1
  541. package/lib/deposit/helper.js +0 -125
  542. package/lib/deposit/helper.js.map +0 -1
  543. package/lib/deposit/index.d.ts +0 -3
  544. package/lib/deposit/index.d.ts.map +0 -1
  545. package/lib/deposit/index.js +0 -6
  546. package/lib/deposit/index.js.map +0 -1
  547. package/lib/deposit/mock.d.ts +0 -75
  548. package/lib/deposit/mock.d.ts.map +0 -1
  549. package/lib/deposit/mock.js +0 -15111
  550. package/lib/deposit/mock.js.map +0 -1
  551. package/lib/deposit/useGroupedCurrenciesByProvider.hook.d.ts +0 -3
  552. package/lib/deposit/useGroupedCurrenciesByProvider.hook.d.ts.map +0 -1
  553. package/lib/deposit/useGroupedCurrenciesByProvider.hook.js +0 -40
  554. package/lib/deposit/useGroupedCurrenciesByProvider.hook.js.map +0 -1
  555. package/lib/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.d.ts +0 -22
  556. package/lib/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.d.ts.map +0 -1
  557. package/lib/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.js +0 -41
  558. package/lib/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.js.map +0 -1
  559. package/lib/modularDrawer/utils/currencyUtils.d.ts +0 -10
  560. package/lib/modularDrawer/utils/currencyUtils.d.ts.map +0 -1
  561. package/lib/modularDrawer/utils/currencyUtils.js +0 -74
  562. package/lib/modularDrawer/utils/currencyUtils.js.map +0 -1
  563. package/lib/modularDrawer/utils/groupCurrenciesByProvider.d.ts.map +0 -1
  564. package/lib/modularDrawer/utils/groupCurrenciesByProvider.js.map +0 -1
  565. package/lib-es/deposit/helper.d.ts +0 -8
  566. package/lib-es/deposit/helper.d.ts.map +0 -1
  567. package/lib-es/deposit/helper.js +0 -117
  568. package/lib-es/deposit/helper.js.map +0 -1
  569. package/lib-es/deposit/index.d.ts +0 -3
  570. package/lib-es/deposit/index.d.ts.map +0 -1
  571. package/lib-es/deposit/index.js +0 -3
  572. package/lib-es/deposit/index.js.map +0 -1
  573. package/lib-es/deposit/mock.d.ts +0 -75
  574. package/lib-es/deposit/mock.d.ts.map +0 -1
  575. package/lib-es/deposit/mock.js +0 -15108
  576. package/lib-es/deposit/mock.js.map +0 -1
  577. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.d.ts +0 -3
  578. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.d.ts.map +0 -1
  579. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.js +0 -36
  580. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.js.map +0 -1
  581. package/lib-es/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.d.ts +0 -22
  582. package/lib-es/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.d.ts.map +0 -1
  583. package/lib-es/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.js +0 -38
  584. package/lib-es/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.js.map +0 -1
  585. package/lib-es/modularDrawer/utils/currencyUtils.d.ts +0 -10
  586. package/lib-es/modularDrawer/utils/currencyUtils.d.ts.map +0 -1
  587. package/lib-es/modularDrawer/utils/currencyUtils.js +0 -65
  588. package/lib-es/modularDrawer/utils/currencyUtils.js.map +0 -1
  589. package/lib-es/modularDrawer/utils/groupCurrenciesByProvider.d.ts.map +0 -1
  590. package/lib-es/modularDrawer/utils/groupCurrenciesByProvider.js.map +0 -1
  591. package/src/currencies/helpers.test.ts +0 -20
  592. package/src/deposit/deposit.integration.test.ts +0 -88
  593. package/src/deposit/deposit.test.ts +0 -684
  594. package/src/deposit/helper.ts +0 -143
  595. package/src/deposit/index.ts +0 -3
  596. package/src/deposit/mock.ts +0 -15112
  597. package/src/deposit/useGroupedCurrenciesByProvider.hook.ts +0 -46
  598. package/src/modularDrawer/__mocks__/useGroupedCurrenciesByProvider.mock.ts +0 -49
  599. package/src/modularDrawer/modules/__test__/createNetworkConfiguration.test.ts +0 -342
  600. package/src/modularDrawer/utils/__tests__/currencyUtils.test.ts +0 -126
  601. package/src/modularDrawer/utils/currencyUtils.ts +0 -95
@@ -8,16 +8,15 @@ import { getAccountBridge } from "../bridge";
8
8
  import { getEnv } from "@ledgerhq/live-env";
9
9
  import network from "@ledgerhq/live-network/network";
10
10
  import { getWalletAPITransactionSignFlowInfos } from "./converters";
11
- import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/index";
12
- import { getCryptoAssetsStore } from "../bridge/crypto-assets/index";
13
11
  import { prepareMessageToSign } from "../hw/signMessage/index";
14
- import { CurrentAccountHistDB, UiHook, usePermission } from "./react";
12
+ import { CurrentAccountHistDB, UiHook } from "./react";
15
13
  import BigNumber from "bignumber.js";
16
14
  import { safeEncodeEIP55 } from "@ledgerhq/coin-evm/utils";
17
15
  import { SmartWebsocket } from "./SmartWebsocket";
18
16
  import { stripHexPrefix } from "./helpers";
19
17
  import { getTxType } from "./utils/txTrackingHelper";
20
18
  import { Transaction as EvmTransaction } from "@ledgerhq/coin-evm/types/transaction";
19
+ import { getCryptoAssetsStore } from "../bridge/crypto-assets";
21
20
 
22
21
  type MessageId = number | string | null;
23
22
 
@@ -88,6 +87,8 @@ export function useDappCurrentAccount(currentAccountHistDb?: CurrentAccountHistD
88
87
  return { currentAccount, setCurrentAccount, setCurrentAccountHist };
89
88
  }
90
89
 
90
+ const globCurrencies = ["**"];
91
+
91
92
  function useDappAccountLogic({
92
93
  manifest,
93
94
  accounts,
@@ -100,7 +101,7 @@ function useDappAccountLogic({
100
101
  initialAccountId?: string;
101
102
  }) {
102
103
  const [initialAccountSelected, setInitialAccountSelected] = useState(false);
103
- const { currencyIds } = usePermission(manifest);
104
+ const currencyIds = manifest.currencies === "*" ? globCurrencies : manifest.currencies;
104
105
  const { currentAccount, setCurrentAccount, setCurrentAccountHist } =
105
106
  useDappCurrentAccount(currentAccountHistDb);
106
107
  const currentParentAccount = useMemo(() => {
@@ -434,7 +435,8 @@ export function useDappLogic({
434
435
  try {
435
436
  await new Promise<void>((resolve, reject) =>
436
437
  uiHook["account.request"]({
437
- currencies: [getCryptoCurrencyById(requestedCurrency.currency)],
438
+ currencyIds: [requestedCurrency.currency],
439
+ areCurrenciesFiltered: true,
438
440
  onSuccess: account => {
439
441
  setCurrentAccountHist(manifest.id, account);
440
442
  setCurrentAccount(account);
@@ -474,108 +476,95 @@ export function useDappLogic({
474
476
  : currentParentAccount.freshAddress;
475
477
 
476
478
  if (address.toLowerCase() === ethTX.from.toLowerCase()) {
477
- (async () => {
478
- let trackingData: DAppTrackingData | undefined;
479
- try {
480
- const signFlowInfos = getWalletAPITransactionSignFlowInfos({
481
- walletApiTransaction: tx,
479
+ let trackingData: DAppTrackingData | undefined;
480
+ try {
481
+ const signFlowInfos = getWalletAPITransactionSignFlowInfos({
482
+ walletApiTransaction: tx,
483
+ account: currentAccount,
484
+ });
485
+
486
+ const transactionType = getTxType(signFlowInfos.liveTx as EvmTransaction);
487
+
488
+ const accountCurrencyName =
489
+ currentAccount.type === "TokenAccount"
490
+ ? currentAccount.token.name
491
+ : currentAccount.currency.name;
492
+
493
+ const accountNetwork =
494
+ currentAccount.type === "TokenAccount"
495
+ ? currentAccount.token.parentCurrency.id
496
+ : currentAccount.currency.id;
497
+
498
+ const token = await getCryptoAssetsStore().findTokenByAddressInCurrency(
499
+ tx.recipient,
500
+ accountNetwork,
501
+ );
502
+
503
+ trackingData = {
504
+ type: transactionType,
505
+ currency: token ? token.name : accountCurrencyName,
506
+ network: token ? token.parentCurrency.id : accountNetwork,
507
+ };
508
+
509
+ const options = nanoApp
510
+ ? { hwAppId: nanoApp, dependencies: dependencies }
511
+ : undefined;
512
+ tracking.dappSendTransactionRequested(manifest, trackingData);
513
+
514
+ const signedTransaction = await new Promise<SignedOperation>((resolve, reject) =>
515
+ uiHook["transaction.sign"]({
482
516
  account: currentAccount,
483
- });
517
+ parentAccount: undefined,
518
+ signFlowInfos,
519
+ options,
520
+ onSuccess: signedOperation => {
521
+ resolve(signedOperation);
522
+ },
523
+ onError: error => {
524
+ reject(error);
525
+ },
526
+ }),
527
+ );
528
+
529
+ const bridge = getAccountBridge(currentAccount, undefined);
530
+ const mainAccount = getMainAccount(currentAccount, undefined);
484
531
 
485
- const transactionType = getTxType(signFlowInfos.liveTx as EvmTransaction);
486
-
487
- const token = await getCryptoAssetsStore().findTokenByAddressInCurrency(
488
- tx.recipient,
489
- currentAccount.type === "TokenAccount"
490
- ? currentAccount.token.parentCurrency.id
491
- : currentAccount.currency.id,
492
- );
493
-
494
- const accountCurrencyName =
495
- currentAccount.type === "TokenAccount"
496
- ? currentAccount.token.name
497
- : currentAccount.currency.name;
498
-
499
- const accountNetwork =
500
- currentAccount.type === "TokenAccount"
501
- ? currentAccount.token.parentCurrency.id
502
- : currentAccount.currency.id;
503
-
504
- trackingData = {
505
- type: transactionType,
506
- currency: token ? token.name : accountCurrencyName,
507
- network: token ? token.parentCurrency.id : accountNetwork,
508
- };
509
-
510
- const options = nanoApp
511
- ? { hwAppId: nanoApp, dependencies: dependencies }
512
- : undefined;
513
- tracking.dappSendTransactionRequested(manifest, trackingData);
514
-
515
- const signedTransaction = await new Promise<SignedOperation>((resolve, reject) =>
516
- uiHook["transaction.sign"]({
517
- account: currentAccount,
518
- parentAccount: undefined,
519
- signFlowInfos,
520
- options,
521
- onSuccess: signedOperation => {
522
- resolve(signedOperation);
523
- },
524
- onError: error => {
525
- reject(error);
526
- },
527
- }),
528
- );
529
-
530
- const bridge = getAccountBridge(currentAccount, undefined);
531
- const mainAccount = getMainAccount(currentAccount, undefined);
532
-
533
- let optimisticOperation: Operation = signedTransaction.operation;
534
-
535
- if (!getEnv("DISABLE_TRANSACTION_BROADCAST")) {
536
- optimisticOperation = await bridge.broadcast({
537
- account: mainAccount,
538
- signedOperation: signedTransaction,
539
- broadcastConfig: { mevProtected: !!mevProtected },
540
- });
541
- }
542
-
543
- uiHook["transaction.broadcast"](
544
- currentAccount,
545
- undefined,
546
- mainAccount,
547
- optimisticOperation,
548
- );
549
-
550
- tracking.dappSendTransactionSuccess(manifest, trackingData);
551
-
552
- postMessage(
553
- JSON.stringify({
554
- id: data.id,
555
- jsonrpc: "2.0",
556
- result: optimisticOperation.hash,
557
- }),
558
- );
559
- } catch (error) {
560
- tracking.dappSendTransactionFail(manifest, trackingData);
561
- postMessage(
562
- JSON.stringify({
563
- id: data.id,
564
- jsonrpc: "2.0",
565
- error: rejectedError("Transaction declined"),
566
- }),
567
- );
532
+ let optimisticOperation: Operation = signedTransaction.operation;
533
+
534
+ if (!getEnv("DISABLE_TRANSACTION_BROADCAST")) {
535
+ optimisticOperation = await bridge.broadcast({
536
+ account: mainAccount,
537
+ signedOperation: signedTransaction,
538
+ broadcastConfig: { mevProtected: !!mevProtected },
539
+ });
568
540
  }
569
- })().catch(error => {
570
- console.error("Error in eth_sendTransaction handler:", error);
541
+
542
+ uiHook["transaction.broadcast"](
543
+ currentAccount,
544
+ undefined,
545
+ mainAccount,
546
+ optimisticOperation,
547
+ );
548
+
549
+ tracking.dappSendTransactionSuccess(manifest, trackingData);
550
+
571
551
  postMessage(
572
552
  JSON.stringify({
573
553
  id: data.id,
574
554
  jsonrpc: "2.0",
575
- error: rejectedError("Transaction processing failed"),
555
+ result: optimisticOperation.hash,
576
556
  }),
577
557
  );
578
- });
558
+ } catch (error) {
559
+ tracking.dappSendTransactionFail(manifest, trackingData);
560
+ postMessage(
561
+ JSON.stringify({
562
+ id: data.id,
563
+ jsonrpc: "2.0",
564
+ error: rejectedError("Transaction declined"),
565
+ }),
566
+ );
567
+ }
579
568
  }
580
569
  break;
581
570
  }
@@ -684,17 +673,13 @@ export function useDappLogic({
684
673
  if (ws.current) {
685
674
  ws.current.send(data);
686
675
  } else if (currentNetwork.nodeURL?.startsWith("https:")) {
687
- network({
676
+ void network({
688
677
  method: "POST",
689
678
  url: currentNetwork.nodeURL,
690
679
  data,
691
- })
692
- .then(res => {
693
- postMessage(JSON.stringify(res.data));
694
- })
695
- .catch(() => {
696
- // Silently ignore network errors
697
- });
680
+ }).then(res => {
681
+ postMessage(JSON.stringify(res.data));
682
+ });
698
683
  }
699
684
  break;
700
685
  }
@@ -4,14 +4,26 @@ import { TokenAccount, Account, AccountLike } from "@ledgerhq/types-live";
4
4
  import { LiveAppManifest } from "../../platform/types";
5
5
  import semver from "semver";
6
6
 
7
+ /**
8
+ * Determines if a manifest uses (Ledger Live) account ID format or UUID (Wallet API) format.
9
+ * @param manifest - The live app manifest to check
10
+ * @returns true if the manifest uses encoded format (v3+ dapp), false otherwise
11
+ */
12
+ export function usesEncodedAccountIdFormat(manifest: LiveAppManifest): boolean {
13
+ return (
14
+ "dapp" in manifest &&
15
+ !!manifest.apiVersion &&
16
+ semver.satisfies(WALLET_API_VERSION, manifest.apiVersion)
17
+ );
18
+ }
19
+
7
20
  /** The dapp connector "v3" uses the ledger live account ID to find the correct account. Live app and dapp browser manifests require wallet API ID. */
8
21
  export function deriveAccountIdForManifest(
9
22
  accountId: Account["id"] | TokenAccount["id"] | AccountLike["id"],
10
23
  walletApiAccountId: WalletAPIAccount["id"] | string,
11
24
  manifest: LiveAppManifest,
12
25
  ) {
13
- const isDapp = "dapp" in manifest;
14
- if (isDapp && manifest.apiVersion && semver.satisfies(WALLET_API_VERSION, manifest.apiVersion)) {
26
+ if (usesEncodedAccountIdFormat(manifest)) {
15
27
  return accountId;
16
28
  }
17
29
  /** Assume dapp browser <=v2 or live app, fallback to wallet ID. */
@@ -1,8 +0,0 @@
1
- import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
2
- import { MappedAsset, GroupedCurrencies } from "./type";
3
- export declare const loadCurrenciesByProvider: (coinsAndTokensSupported: CryptoOrTokenCurrency[]) => Promise<GroupedCurrencies>;
4
- export declare const groupCurrenciesByProvider: (assets: MappedAsset[], sortedCurrencies: CryptoOrTokenCurrency[]) => GroupedCurrencies;
5
- export declare const searchByProviderId: (list: MappedAsset[], providerId: string) => MappedAsset[];
6
- export declare const searchByNameOrTicker: (list: MappedAsset[], nameOrTicker: string) => MappedAsset[];
7
- export declare const getTokenOrCryptoCurrencyById: (id: string) => Promise<CryptoOrTokenCurrency>;
8
- //# sourceMappingURL=helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/deposit/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAA0B,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAgEhF,eAAO,MAAM,wBAAwB,4BACV,qBAAqB,EAAE,KAC/C,QAAQ,iBAAiB,CAW3B,CAAC;AACF,eAAO,MAAM,yBAAyB,WAC5B,WAAW,EAAE,oBACH,qBAAqB,EAAE,KACxC,iBAwCF,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,WAAW,EAAE,cAAc,MAAM,kBACO,CAAC;AAClF,eAAO,MAAM,oBAAoB,SAAU,WAAW,EAAE,gBAAgB,MAAM,kBAK3E,CAAC;AAEJ,eAAO,MAAM,4BAA4B,OAAc,MAAM,KAAG,QAAQ,qBAAqB,CAS5F,CAAC"}
@@ -1,125 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTokenOrCryptoCurrencyById = exports.searchByNameOrTicker = exports.searchByProviderId = exports.groupCurrenciesByProvider = exports.loadCurrenciesByProvider = void 0;
4
- const currencies_1 = require("../currencies");
5
- const index_1 = require("../bridge/crypto-assets/index");
6
- const api_1 = require("./api");
7
- /**
8
- * WORKAROUND: Fallback mappings for currencies not yet available in getMappedAssets()
9
- * TODO: Remove these entries once they are properly supported by the mapping service
10
- *
11
- * Each entry maps a Ledger currency ID to its provider ID.
12
- * The provider ID is used to group currencies by their external provider (e.g., CoinGecko).
13
- */
14
- const FALLBACK_CURRENCY_MAPPINGS = {
15
- // Canton Network - using canton_network as both ledgerId and providerId
16
- canton_network: "canton_network",
17
- canton_network_devnet: "canton_network_devnet",
18
- canton_network_testnet: "canton_network_testnet",
19
- // Add more fallback mappings here as needed:
20
- // "ledger_currency_id": "provider_id",
21
- };
22
- /**
23
- * Creates synthetic MappedAsset entries for currencies that are not yet available
24
- * in the mapping service API but need to be supported.
25
- */
26
- const createFallbackMappedAssets = (currencies, existingAssets) => {
27
- const existingLedgerIds = new Set(existingAssets.map(asset => asset.ledgerId.toLowerCase()));
28
- const fallbackAssets = [];
29
- for (const [currencyId, providerId] of Object.entries(FALLBACK_CURRENCY_MAPPINGS)) {
30
- // Skip if currency already exists in mapped assets
31
- if (existingLedgerIds.has(currencyId.toLowerCase())) {
32
- continue;
33
- }
34
- // Find the currency in the list
35
- const currency = currencies.find(c => c.id === currencyId);
36
- if (currency) {
37
- fallbackAssets.push({
38
- $type: currency.type === "TokenCurrency" ? "Token" : "Coin",
39
- ledgerId: currency.id,
40
- providerId: providerId,
41
- name: currency.name,
42
- ticker: currency.ticker,
43
- network: currency.type === "TokenCurrency" ? currency.parentCurrency?.id : undefined,
44
- contract: currency.type === "TokenCurrency" ? currency.contractAddress : undefined,
45
- status: "active",
46
- reason: null,
47
- data: {
48
- img: "",
49
- marketCapRank: null,
50
- },
51
- ledgerCurrency: currency,
52
- });
53
- }
54
- }
55
- return fallbackAssets;
56
- };
57
- const loadCurrenciesByProvider = async (coinsAndTokensSupported) => {
58
- const [sortedCurrenciesSupported, assets] = await Promise.all([
59
- (0, currencies_1.currenciesByMarketcap)(coinsAndTokensSupported),
60
- (0, api_1.getMappedAssets)(),
61
- ]);
62
- // Merge API assets with fallback assets for currencies not yet in the API
63
- const fallbackAssets = createFallbackMappedAssets(sortedCurrenciesSupported, assets);
64
- const allAssets = [...assets, ...fallbackAssets];
65
- return (0, exports.groupCurrenciesByProvider)(allAssets, sortedCurrenciesSupported);
66
- };
67
- exports.loadCurrenciesByProvider = loadCurrenciesByProvider;
68
- const groupCurrenciesByProvider = (assets, sortedCurrencies) => {
69
- const assetsByLedgerId = new Map();
70
- for (const asset of assets) {
71
- /// FIXME(LIVE-10508) drop usage of toLowerCase
72
- assetsByLedgerId.set(asset.ledgerId.toLowerCase(), asset);
73
- }
74
- const assetsByProviderId = new Map();
75
- const sortedCryptoCurrencies = [];
76
- // iterate over currencies by preserving their order
77
- for (const ledgerCurrency of sortedCurrencies) {
78
- /// FIXME(LIVE-10508) drop usage of toLowerCase
79
- const asset = assetsByLedgerId.get(ledgerCurrency.id.toLowerCase());
80
- if (asset) {
81
- // we only yield the intersection of currencies and mapped assets
82
- const existingEntry = assetsByProviderId.get(asset.providerId);
83
- if (!existingEntry) {
84
- assetsByProviderId.set(asset.providerId, {
85
- providerId: asset.providerId,
86
- currenciesByNetwork: [ledgerCurrency],
87
- });
88
- }
89
- else {
90
- existingEntry.currenciesByNetwork.push(ledgerCurrency);
91
- }
92
- }
93
- }
94
- // in this case, the first currency of the provider is the one we want to display (Wasn't true)
95
- // So we need to take the first crypto or token currency of each provider to fix that
96
- for (const [, { currenciesByNetwork }] of assetsByProviderId.entries()) {
97
- const firstCrypto = currenciesByNetwork.find(c => c.type === "CryptoCurrency");
98
- const elem = firstCrypto ?? currenciesByNetwork.find(c => c.type === "TokenCurrency");
99
- if (elem) {
100
- sortedCryptoCurrencies.push(elem);
101
- }
102
- }
103
- return {
104
- currenciesByProvider: Array.from(assetsByProviderId.values()),
105
- sortedCryptoCurrencies,
106
- };
107
- };
108
- exports.groupCurrenciesByProvider = groupCurrenciesByProvider;
109
- const searchByProviderId = (list, providerId) => list.filter(elem => elem.providerId.toLowerCase() === providerId.toLowerCase());
110
- exports.searchByProviderId = searchByProviderId;
111
- const searchByNameOrTicker = (list, nameOrTicker) => list.filter(elem => elem.name.toLowerCase().includes(nameOrTicker.toLowerCase()) ||
112
- elem.ticker.toLowerCase().includes(nameOrTicker.toLowerCase()));
113
- exports.searchByNameOrTicker = searchByNameOrTicker;
114
- const getTokenOrCryptoCurrencyById = async (id) => {
115
- if ((0, currencies_1.hasCryptoCurrencyId)(id)) {
116
- return (0, currencies_1.getCryptoCurrencyById)(id);
117
- }
118
- const token = await (0, index_1.getCryptoAssetsStore)().findTokenById(id);
119
- if (!token) {
120
- throw new Error(`token with id "${id}" not found`);
121
- }
122
- return token;
123
- };
124
- exports.getTokenOrCryptoCurrencyById = getTokenOrCryptoCurrencyById;
125
- //# sourceMappingURL=helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/deposit/helper.ts"],"names":[],"mappings":"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"}
@@ -1,3 +0,0 @@
1
- import { useGroupedCurrenciesByProvider } from "./useGroupedCurrenciesByProvider.hook";
2
- export { useGroupedCurrenciesByProvider };
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deposit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AAEvF,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useGroupedCurrenciesByProvider = void 0;
4
- const useGroupedCurrenciesByProvider_hook_1 = require("./useGroupedCurrenciesByProvider.hook");
5
- Object.defineProperty(exports, "useGroupedCurrenciesByProvider", { enumerable: true, get: function () { return useGroupedCurrenciesByProvider_hook_1.useGroupedCurrenciesByProvider; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/deposit/index.ts"],"names":[],"mappings":";;;AAAA,+FAAuF;AAE9E,+GAFA,oEAA8B,OAEA"}
@@ -1,75 +0,0 @@
1
- export declare const MOCK_IDS: string[];
2
- export declare const MOCK_WITH_TOKEN_AND_CURRENCY_ASSET: ({
3
- $type: string;
4
- ledgerId: string;
5
- providerId: string;
6
- name: string;
7
- ticker: string;
8
- network: string;
9
- contract: string;
10
- status: string;
11
- reason: null;
12
- data: {
13
- img: string;
14
- marketCapRank: number;
15
- };
16
- } | {
17
- $type: string;
18
- ledgerId: string;
19
- providerId: string;
20
- name: string;
21
- ticker: string;
22
- status: string;
23
- reason: string;
24
- data: {
25
- img: string;
26
- marketCapRank: number;
27
- };
28
- network?: undefined;
29
- contract?: undefined;
30
- })[];
31
- export declare const MOCK_TOKENS_ONLY: {
32
- $type: string;
33
- contract: string;
34
- data: {
35
- img: string;
36
- marketCapRank: number;
37
- };
38
- ledgerId: string;
39
- name: string;
40
- network: string;
41
- providerId: string;
42
- reason: null;
43
- status: string;
44
- ticker: string;
45
- }[];
46
- export declare const MOCK_POL: ({
47
- $type: string;
48
- ledgerId: string;
49
- providerId: string;
50
- name: string;
51
- ticker: string;
52
- network: string;
53
- contract: string;
54
- status: string;
55
- reason: null;
56
- data: {
57
- img: string;
58
- marketCapRank: number;
59
- };
60
- } | {
61
- $type: string;
62
- ledgerId: string;
63
- providerId: string;
64
- name: string;
65
- ticker: string;
66
- status: string;
67
- reason: string;
68
- data: {
69
- img: string;
70
- marketCapRank: number;
71
- };
72
- network?: undefined;
73
- contract?: undefined;
74
- })[];
75
- //# sourceMappingURL=mock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/deposit/mock.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,UA8kdpB,CAAC;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyF9C,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;GA8C5B,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4CpB,CAAC"}