@ledgerhq/live-common 34.47.0 → 34.48.0-nightly.1

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 (449) hide show
  1. package/lib/bridge/crypto-assets/cal-integration.d.ts +4 -0
  2. package/lib/bridge/crypto-assets/cal-integration.d.ts.map +1 -0
  3. package/lib/bridge/crypto-assets/cal-integration.js +26 -0
  4. package/lib/bridge/crypto-assets/cal-integration.js.map +1 -0
  5. package/lib/bridge/crypto-assets/cal-integration.test.d.ts +2 -0
  6. package/lib/bridge/crypto-assets/cal-integration.test.d.ts.map +1 -0
  7. package/lib/bridge/crypto-assets/cal-integration.test.js +45 -0
  8. package/lib/bridge/crypto-assets/cal-integration.test.js.map +1 -0
  9. package/lib/bridge/crypto-assets/cal-store.d.ts +14 -0
  10. package/lib/bridge/crypto-assets/cal-store.d.ts.map +1 -0
  11. package/lib/bridge/crypto-assets/cal-store.js +58 -0
  12. package/lib/bridge/crypto-assets/cal-store.js.map +1 -0
  13. package/lib/bridge/crypto-assets/cal-store.test.d.ts +2 -0
  14. package/lib/bridge/crypto-assets/cal-store.test.d.ts.map +1 -0
  15. package/lib/bridge/crypto-assets/cal-store.test.js +70 -0
  16. package/lib/bridge/crypto-assets/cal-store.test.js.map +1 -0
  17. package/lib/bridge/crypto-assets/index.d.ts.map +1 -1
  18. package/lib/bridge/crypto-assets/index.js +4 -0
  19. package/lib/bridge/crypto-assets/index.js.map +1 -1
  20. package/lib/bridge/crypto-assets/index.test.js +36 -0
  21. package/lib/bridge/crypto-assets/index.test.js.map +1 -1
  22. package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  23. package/lib/bridge/generic-alpaca/alpaca/index.js +6 -1
  24. package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  25. package/lib/bridge/generic-alpaca/alpaca/index.unit.test.d.ts +2 -0
  26. package/lib/bridge/generic-alpaca/alpaca/index.unit.test.d.ts.map +1 -0
  27. package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js +89 -0
  28. package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -0
  29. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts +2 -2
  30. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts.map +1 -1
  31. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.js +2 -2
  32. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.js.map +1 -1
  33. package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts +2 -3
  34. package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -1
  35. package/lib/bridge/generic-alpaca/buildSubAccounts.js +4 -14
  36. package/lib/bridge/generic-alpaca/buildSubAccounts.js.map +1 -1
  37. package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  38. package/lib/bridge/generic-alpaca/getAccountShape.js +4 -4
  39. package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  40. package/lib/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
  41. package/lib/bridge/generic-alpaca/getTransactionStatus.js +0 -1
  42. package/lib/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
  43. package/lib/bridge/generic-alpaca/prepareTransaction.d.ts +14 -3
  44. package/lib/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
  45. package/lib/bridge/generic-alpaca/prepareTransaction.js +21 -5
  46. package/lib/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
  47. package/lib/bridge/generic-alpaca/signOperation.js +1 -1
  48. package/lib/bridge/generic-alpaca/signOperation.js.map +1 -1
  49. package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
  50. package/lib/bridge/generic-alpaca/utils.js +6 -5
  51. package/lib/bridge/generic-alpaca/utils.js.map +1 -1
  52. package/lib/bridge/generic-alpaca/utils.test.d.ts.map +1 -0
  53. package/lib/bridge/generic-alpaca/utils.test.js +123 -0
  54. package/lib/bridge/generic-alpaca/utils.test.js.map +1 -0
  55. package/lib/e2e/enum/DeviceLabels.d.ts +9 -6
  56. package/lib/e2e/enum/DeviceLabels.d.ts.map +1 -1
  57. package/lib/e2e/enum/DeviceLabels.js +8 -5
  58. package/lib/e2e/enum/DeviceLabels.js.map +1 -1
  59. package/lib/e2e/families/tezos.d.ts.map +1 -1
  60. package/lib/e2e/families/tezos.js +2 -0
  61. package/lib/e2e/families/tezos.js.map +1 -1
  62. package/lib/e2e/index.d.ts +7 -6
  63. package/lib/e2e/index.d.ts.map +1 -1
  64. package/lib/e2e/speculos.d.ts +2 -1
  65. package/lib/e2e/speculos.d.ts.map +1 -1
  66. package/lib/e2e/speculos.js +25 -17
  67. package/lib/e2e/speculos.js.map +1 -1
  68. package/lib/env.react.d.ts +1 -1
  69. package/lib/env.react.d.ts.map +1 -1
  70. package/lib/exchange/platform/transfer/completeExchange.d.ts.map +1 -1
  71. package/lib/exchange/platform/transfer/completeExchange.js +3 -5
  72. package/lib/exchange/platform/transfer/completeExchange.js.map +1 -1
  73. package/lib/exchange/swap/completeExchange.d.ts.map +1 -1
  74. package/lib/exchange/swap/completeExchange.js +5 -2
  75. package/lib/exchange/swap/completeExchange.js.map +1 -1
  76. package/lib/exchange/swap/initSwap.d.ts.map +1 -1
  77. package/lib/exchange/swap/initSwap.js +5 -2
  78. package/lib/exchange/swap/initSwap.js.map +1 -1
  79. package/lib/families/canton/config.d.ts.map +1 -1
  80. package/lib/families/canton/config.js +4 -0
  81. package/lib/families/canton/config.js.map +1 -1
  82. package/lib/families/solana/setup.d.ts.map +1 -1
  83. package/lib/families/solana/setup.js +9 -0
  84. package/lib/families/solana/setup.js.map +1 -1
  85. package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
  86. package/lib/featureFlags/defaultFeatures.js +1 -2
  87. package/lib/featureFlags/defaultFeatures.js.map +1 -1
  88. package/lib/featureFlags/useFeature.d.ts +1 -1
  89. package/lib/featureFlags/useFeature.d.ts.map +1 -1
  90. package/lib/modularDrawer/__mocks__/dada.mock.d.ts +3336 -0
  91. package/lib/modularDrawer/__mocks__/dada.mock.d.ts.map +1 -0
  92. package/lib/modularDrawer/__mocks__/dada.mock.js +3879 -0
  93. package/lib/modularDrawer/__mocks__/dada.mock.js.map +1 -0
  94. package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts +16 -0
  95. package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts.map +1 -0
  96. package/lib/modularDrawer/data/entities/interestRateSelectors.js +21 -0
  97. package/lib/modularDrawer/data/entities/interestRateSelectors.js.map +1 -0
  98. package/lib/modularDrawer/data/state-manager/api.d.ts +727 -37
  99. package/lib/modularDrawer/data/state-manager/api.d.ts.map +1 -1
  100. package/lib/modularDrawer/data/state-manager/api.js +38 -17
  101. package/lib/modularDrawer/data/state-manager/api.js.map +1 -1
  102. package/lib/modularDrawer/data/state-manager/types.d.ts +24 -0
  103. package/lib/modularDrawer/data/state-manager/types.d.ts.map +1 -0
  104. package/lib/modularDrawer/data/state-manager/types.js +13 -0
  105. package/lib/modularDrawer/data/state-manager/types.js.map +1 -0
  106. package/lib/modularDrawer/hooks/__test__/useAssetsData.test.js +134 -78
  107. package/lib/modularDrawer/hooks/__test__/useAssetsData.test.js.map +1 -1
  108. package/lib/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.d.ts +2 -0
  109. package/lib/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.d.ts.map +1 -0
  110. package/lib/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.js +206 -0
  111. package/lib/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.js.map +1 -0
  112. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts +3 -3
  113. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  114. package/lib/modularDrawer/hooks/modules/useLeftApyModule.js +43 -10
  115. package/lib/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
  116. package/lib/modularDrawer/hooks/{modules/useAssetAccountCounts.d.ts → useAssetAccountCounts.d.ts} +1 -1
  117. package/lib/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -0
  118. package/lib/modularDrawer/hooks/{modules/useAssetAccountCounts.js → useAssetAccountCounts.js} +1 -1
  119. package/lib/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -0
  120. package/lib/modularDrawer/hooks/useAssetsData.d.ts +10 -6
  121. package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
  122. package/lib/modularDrawer/hooks/useAssetsData.js +40 -17
  123. package/lib/modularDrawer/hooks/useAssetsData.js.map +1 -1
  124. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts +3 -0
  125. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
  126. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js +23 -0
  127. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +1 -0
  128. package/lib/modularDrawer/hooks/useLeftAccounts.d.ts +13 -0
  129. package/lib/modularDrawer/hooks/useLeftAccounts.d.ts.map +1 -0
  130. package/lib/modularDrawer/hooks/useLeftAccounts.js +15 -0
  131. package/lib/modularDrawer/hooks/useLeftAccounts.js.map +1 -0
  132. package/lib/modularDrawer/hooks/useLeftAccountsApy.d.ts +4 -0
  133. package/lib/modularDrawer/hooks/useLeftAccountsApy.d.ts.map +1 -0
  134. package/lib/modularDrawer/hooks/useLeftAccountsApy.js +30 -0
  135. package/lib/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -0
  136. package/lib/modularDrawer/hooks/useModularDrawerConfiguration.d.ts +13 -0
  137. package/lib/modularDrawer/hooks/useModularDrawerConfiguration.d.ts.map +1 -0
  138. package/lib/modularDrawer/hooks/useModularDrawerConfiguration.js +29 -0
  139. package/lib/modularDrawer/hooks/useModularDrawerConfiguration.js.map +1 -0
  140. package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts +57 -0
  141. package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -0
  142. package/lib/modularDrawer/hooks/useRightBalanceAsset.js +87 -0
  143. package/lib/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -0
  144. package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts +63 -0
  145. package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -0
  146. package/lib/modularDrawer/hooks/useRightBalanceNetwork.js +66 -0
  147. package/lib/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -0
  148. package/lib/modularDrawer/modules/createAssetConfiguration.d.ts +4 -0
  149. package/lib/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -0
  150. package/lib/modularDrawer/modules/createAssetConfiguration.js +41 -0
  151. package/lib/modularDrawer/modules/createAssetConfiguration.js.map +1 -0
  152. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts +6 -0
  153. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -0
  154. package/lib/modularDrawer/modules/createNetworkConfiguration.js +54 -0
  155. package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -0
  156. package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts +2 -0
  157. package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts.map +1 -0
  158. package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js +36 -0
  159. package/lib/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js.map +1 -0
  160. package/lib/modularDrawer/utils/buildProviderCurrenciesMap.d.ts +9 -0
  161. package/lib/modularDrawer/utils/buildProviderCurrenciesMap.d.ts.map +1 -0
  162. package/lib/modularDrawer/utils/buildProviderCurrenciesMap.js +17 -0
  163. package/lib/modularDrawer/utils/buildProviderCurrenciesMap.js.map +1 -0
  164. package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts +13 -0
  165. package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -0
  166. package/lib/modularDrawer/utils/getInterestRateForAsset.js +20 -0
  167. package/lib/modularDrawer/utils/getInterestRateForAsset.js.map +1 -0
  168. package/lib/modularDrawer/utils/getLoadingStatus.d.ts +9 -0
  169. package/lib/modularDrawer/utils/getLoadingStatus.d.ts.map +1 -0
  170. package/lib/modularDrawer/utils/getLoadingStatus.js +18 -0
  171. package/lib/modularDrawer/utils/getLoadingStatus.js.map +1 -0
  172. package/lib/modularDrawer/utils/sortByBalance.d.ts +6 -0
  173. package/lib/modularDrawer/utils/sortByBalance.d.ts.map +1 -0
  174. package/lib/modularDrawer/utils/sortByBalance.js +32 -0
  175. package/lib/modularDrawer/utils/sortByBalance.js.map +1 -0
  176. package/lib/modularDrawer/utils/type.d.ts +90 -1
  177. package/lib/modularDrawer/utils/type.d.ts.map +1 -1
  178. package/lib/wallet-api/Exchange/server.js +2 -2
  179. package/lib/wallet-api/Exchange/server.js.map +1 -1
  180. package/lib/wallet-api/ModularDrawer/types.d.ts +6 -6
  181. package/lib/wallet-api/ModularDrawer/types.d.ts.map +1 -1
  182. package/lib/wallet-api/ModularDrawer/types.js +1 -1
  183. package/lib/wallet-api/ModularDrawer/types.js.map +1 -1
  184. package/lib/wallet-api/react.d.ts +2 -0
  185. package/lib/wallet-api/react.d.ts.map +1 -1
  186. package/lib/wallet-api/react.js +3 -1
  187. package/lib/wallet-api/react.js.map +1 -1
  188. package/lib-es/bridge/crypto-assets/cal-integration.d.ts +4 -0
  189. package/lib-es/bridge/crypto-assets/cal-integration.d.ts.map +1 -0
  190. package/lib-es/bridge/crypto-assets/cal-integration.js +21 -0
  191. package/lib-es/bridge/crypto-assets/cal-integration.js.map +1 -0
  192. package/lib-es/bridge/crypto-assets/cal-integration.test.d.ts +2 -0
  193. package/lib-es/bridge/crypto-assets/cal-integration.test.d.ts.map +1 -0
  194. package/lib-es/bridge/crypto-assets/cal-integration.test.js +43 -0
  195. package/lib-es/bridge/crypto-assets/cal-integration.test.js.map +1 -0
  196. package/lib-es/bridge/crypto-assets/cal-store.d.ts +14 -0
  197. package/lib-es/bridge/crypto-assets/cal-store.d.ts.map +1 -0
  198. package/lib-es/bridge/crypto-assets/cal-store.js +54 -0
  199. package/lib-es/bridge/crypto-assets/cal-store.js.map +1 -0
  200. package/lib-es/bridge/crypto-assets/cal-store.test.d.ts +2 -0
  201. package/lib-es/bridge/crypto-assets/cal-store.test.d.ts.map +1 -0
  202. package/lib-es/bridge/crypto-assets/cal-store.test.js +68 -0
  203. package/lib-es/bridge/crypto-assets/cal-store.test.js.map +1 -0
  204. package/lib-es/bridge/crypto-assets/index.d.ts.map +1 -1
  205. package/lib-es/bridge/crypto-assets/index.js +4 -0
  206. package/lib-es/bridge/crypto-assets/index.js.map +1 -1
  207. package/lib-es/bridge/crypto-assets/index.test.js +36 -0
  208. package/lib-es/bridge/crypto-assets/index.test.js.map +1 -1
  209. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  210. package/lib-es/bridge/generic-alpaca/alpaca/index.js +6 -1
  211. package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  212. package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.d.ts +2 -0
  213. package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.d.ts.map +1 -0
  214. package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js +64 -0
  215. package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -0
  216. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts +2 -2
  217. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts.map +1 -1
  218. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.js +2 -2
  219. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.js.map +1 -1
  220. package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts +2 -3
  221. package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -1
  222. package/lib-es/bridge/generic-alpaca/buildSubAccounts.js +4 -12
  223. package/lib-es/bridge/generic-alpaca/buildSubAccounts.js.map +1 -1
  224. package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  225. package/lib-es/bridge/generic-alpaca/getAccountShape.js +3 -3
  226. package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  227. package/lib-es/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
  228. package/lib-es/bridge/generic-alpaca/getTransactionStatus.js +0 -1
  229. package/lib-es/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
  230. package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts +14 -3
  231. package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
  232. package/lib-es/bridge/generic-alpaca/prepareTransaction.js +21 -5
  233. package/lib-es/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
  234. package/lib-es/bridge/generic-alpaca/signOperation.js +1 -1
  235. package/lib-es/bridge/generic-alpaca/signOperation.js.map +1 -1
  236. package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
  237. package/lib-es/bridge/generic-alpaca/utils.js +6 -5
  238. package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
  239. package/lib-es/bridge/generic-alpaca/utils.test.d.ts.map +1 -0
  240. package/lib-es/bridge/generic-alpaca/utils.test.js +118 -0
  241. package/lib-es/bridge/generic-alpaca/utils.test.js.map +1 -0
  242. package/lib-es/e2e/enum/DeviceLabels.d.ts +9 -6
  243. package/lib-es/e2e/enum/DeviceLabels.d.ts.map +1 -1
  244. package/lib-es/e2e/enum/DeviceLabels.js +8 -5
  245. package/lib-es/e2e/enum/DeviceLabels.js.map +1 -1
  246. package/lib-es/e2e/families/tezos.d.ts.map +1 -1
  247. package/lib-es/e2e/families/tezos.js +2 -0
  248. package/lib-es/e2e/families/tezos.js.map +1 -1
  249. package/lib-es/e2e/index.d.ts +7 -6
  250. package/lib-es/e2e/index.d.ts.map +1 -1
  251. package/lib-es/e2e/speculos.d.ts +2 -1
  252. package/lib-es/e2e/speculos.d.ts.map +1 -1
  253. package/lib-es/e2e/speculos.js +23 -16
  254. package/lib-es/e2e/speculos.js.map +1 -1
  255. package/lib-es/env.react.d.ts +1 -1
  256. package/lib-es/env.react.d.ts.map +1 -1
  257. package/lib-es/exchange/platform/transfer/completeExchange.d.ts.map +1 -1
  258. package/lib-es/exchange/platform/transfer/completeExchange.js +3 -2
  259. package/lib-es/exchange/platform/transfer/completeExchange.js.map +1 -1
  260. package/lib-es/exchange/swap/completeExchange.d.ts.map +1 -1
  261. package/lib-es/exchange/swap/completeExchange.js +5 -2
  262. package/lib-es/exchange/swap/completeExchange.js.map +1 -1
  263. package/lib-es/exchange/swap/initSwap.d.ts.map +1 -1
  264. package/lib-es/exchange/swap/initSwap.js +5 -2
  265. package/lib-es/exchange/swap/initSwap.js.map +1 -1
  266. package/lib-es/families/canton/config.d.ts.map +1 -1
  267. package/lib-es/families/canton/config.js +4 -0
  268. package/lib-es/families/canton/config.js.map +1 -1
  269. package/lib-es/families/solana/setup.d.ts.map +1 -1
  270. package/lib-es/families/solana/setup.js +9 -0
  271. package/lib-es/families/solana/setup.js.map +1 -1
  272. package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
  273. package/lib-es/featureFlags/defaultFeatures.js +1 -2
  274. package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
  275. package/lib-es/featureFlags/useFeature.d.ts +1 -1
  276. package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
  277. package/lib-es/modularDrawer/__mocks__/dada.mock.d.ts +3336 -0
  278. package/lib-es/modularDrawer/__mocks__/dada.mock.d.ts.map +1 -0
  279. package/lib-es/modularDrawer/__mocks__/dada.mock.js +3876 -0
  280. package/lib-es/modularDrawer/__mocks__/dada.mock.js.map +1 -0
  281. package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts +16 -0
  282. package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts.map +1 -0
  283. package/lib-es/modularDrawer/data/entities/interestRateSelectors.js +18 -0
  284. package/lib-es/modularDrawer/data/entities/interestRateSelectors.js.map +1 -0
  285. package/lib-es/modularDrawer/data/state-manager/api.d.ts +727 -37
  286. package/lib-es/modularDrawer/data/state-manager/api.d.ts.map +1 -1
  287. package/lib-es/modularDrawer/data/state-manager/api.js +35 -14
  288. package/lib-es/modularDrawer/data/state-manager/api.js.map +1 -1
  289. package/lib-es/modularDrawer/data/state-manager/types.d.ts +24 -0
  290. package/lib-es/modularDrawer/data/state-manager/types.d.ts.map +1 -0
  291. package/lib-es/modularDrawer/data/state-manager/types.js +10 -0
  292. package/lib-es/modularDrawer/data/state-manager/types.js.map +1 -0
  293. package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.js +135 -79
  294. package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.js.map +1 -1
  295. package/lib-es/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.d.ts +2 -0
  296. package/lib-es/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.d.ts.map +1 -0
  297. package/lib-es/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.js +204 -0
  298. package/lib-es/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.js.map +1 -0
  299. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts +3 -3
  300. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  301. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js +21 -8
  302. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
  303. package/lib-es/modularDrawer/hooks/{modules/useAssetAccountCounts.d.ts → useAssetAccountCounts.d.ts} +1 -1
  304. package/lib-es/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -0
  305. package/lib-es/modularDrawer/hooks/{modules/useAssetAccountCounts.js → useAssetAccountCounts.js} +1 -1
  306. package/lib-es/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -0
  307. package/lib-es/modularDrawer/hooks/useAssetsData.d.ts +10 -6
  308. package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
  309. package/lib-es/modularDrawer/hooks/useAssetsData.js +42 -19
  310. package/lib-es/modularDrawer/hooks/useAssetsData.js.map +1 -1
  311. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts +3 -0
  312. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
  313. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js +19 -0
  314. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +1 -0
  315. package/lib-es/modularDrawer/hooks/useLeftAccounts.d.ts +13 -0
  316. package/lib-es/modularDrawer/hooks/useLeftAccounts.d.ts.map +1 -0
  317. package/lib-es/modularDrawer/hooks/useLeftAccounts.js +11 -0
  318. package/lib-es/modularDrawer/hooks/useLeftAccounts.js.map +1 -0
  319. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.d.ts +4 -0
  320. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.d.ts.map +1 -0
  321. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js +26 -0
  322. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -0
  323. package/lib-es/modularDrawer/hooks/useModularDrawerConfiguration.d.ts +13 -0
  324. package/lib-es/modularDrawer/hooks/useModularDrawerConfiguration.d.ts.map +1 -0
  325. package/lib-es/modularDrawer/hooks/useModularDrawerConfiguration.js +25 -0
  326. package/lib-es/modularDrawer/hooks/useModularDrawerConfiguration.js.map +1 -0
  327. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts +57 -0
  328. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -0
  329. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js +83 -0
  330. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -0
  331. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts +63 -0
  332. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -0
  333. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js +62 -0
  334. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -0
  335. package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts +4 -0
  336. package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -0
  337. package/lib-es/modularDrawer/modules/createAssetConfiguration.js +39 -0
  338. package/lib-es/modularDrawer/modules/createAssetConfiguration.js.map +1 -0
  339. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts +6 -0
  340. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -0
  341. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +48 -0
  342. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -0
  343. package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts +2 -0
  344. package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.d.ts.map +1 -0
  345. package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js +34 -0
  346. package/lib-es/modularDrawer/utils/__tests__/getInterestRateForAsset.test.js.map +1 -0
  347. package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.d.ts +9 -0
  348. package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.d.ts.map +1 -0
  349. package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.js +13 -0
  350. package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.js.map +1 -0
  351. package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts +13 -0
  352. package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -0
  353. package/lib-es/modularDrawer/utils/getInterestRateForAsset.js +16 -0
  354. package/lib-es/modularDrawer/utils/getInterestRateForAsset.js.map +1 -0
  355. package/lib-es/modularDrawer/utils/getLoadingStatus.d.ts +9 -0
  356. package/lib-es/modularDrawer/utils/getLoadingStatus.d.ts.map +1 -0
  357. package/lib-es/modularDrawer/utils/getLoadingStatus.js +14 -0
  358. package/lib-es/modularDrawer/utils/getLoadingStatus.js.map +1 -0
  359. package/lib-es/modularDrawer/utils/sortByBalance.d.ts +6 -0
  360. package/lib-es/modularDrawer/utils/sortByBalance.d.ts.map +1 -0
  361. package/lib-es/modularDrawer/utils/sortByBalance.js +25 -0
  362. package/lib-es/modularDrawer/utils/sortByBalance.js.map +1 -0
  363. package/lib-es/modularDrawer/utils/type.d.ts +90 -1
  364. package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
  365. package/lib-es/wallet-api/Exchange/server.js +2 -2
  366. package/lib-es/wallet-api/Exchange/server.js.map +1 -1
  367. package/lib-es/wallet-api/ModularDrawer/types.d.ts +6 -6
  368. package/lib-es/wallet-api/ModularDrawer/types.d.ts.map +1 -1
  369. package/lib-es/wallet-api/ModularDrawer/types.js +1 -1
  370. package/lib-es/wallet-api/ModularDrawer/types.js.map +1 -1
  371. package/lib-es/wallet-api/react.d.ts +2 -0
  372. package/lib-es/wallet-api/react.d.ts.map +1 -1
  373. package/lib-es/wallet-api/react.js +3 -1
  374. package/lib-es/wallet-api/react.js.map +1 -1
  375. package/package.json +51 -51
  376. package/src/bridge/crypto-assets/cal-integration.test.ts +53 -0
  377. package/src/bridge/crypto-assets/cal-integration.ts +23 -0
  378. package/src/bridge/crypto-assets/cal-store.test.ts +93 -0
  379. package/src/bridge/crypto-assets/cal-store.ts +63 -0
  380. package/src/bridge/crypto-assets/index.test.ts +47 -0
  381. package/src/bridge/crypto-assets/index.ts +5 -0
  382. package/src/bridge/generic-alpaca/alpaca/index.ts +14 -1
  383. package/src/bridge/generic-alpaca/alpaca/index.unit.test.ts +78 -0
  384. package/src/bridge/generic-alpaca/alpaca/network/network-alpaca.ts +5 -4
  385. package/src/bridge/generic-alpaca/buildSubAccounts.ts +5 -14
  386. package/src/bridge/generic-alpaca/getAccountShape.ts +3 -4
  387. package/src/bridge/generic-alpaca/getTransactionStatus.ts +0 -1
  388. package/src/bridge/generic-alpaca/prepareTransaction.ts +44 -17
  389. package/src/bridge/generic-alpaca/signOperation.ts +1 -1
  390. package/src/bridge/generic-alpaca/utils.test.ts +133 -0
  391. package/src/bridge/generic-alpaca/utils.ts +7 -5
  392. package/src/e2e/enum/DeviceLabels.ts +8 -5
  393. package/src/e2e/families/tezos.ts +2 -0
  394. package/src/e2e/speculos.ts +24 -17
  395. package/src/exchange/platform/transfer/completeExchange.ts +3 -2
  396. package/src/exchange/swap/completeExchange.ts +5 -2
  397. package/src/exchange/swap/initSwap.ts +5 -4
  398. package/src/families/canton/config.ts +5 -0
  399. package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +27 -7
  400. package/src/families/solana/setup.ts +9 -0
  401. package/src/featureFlags/defaultFeatures.ts +1 -2
  402. package/src/modularDrawer/__mocks__/dada.mock.ts +3890 -0
  403. package/src/modularDrawer/data/entities/interestRateSelectors.ts +39 -0
  404. package/src/modularDrawer/data/state-manager/api.ts +42 -27
  405. package/src/modularDrawer/data/state-manager/types.ts +28 -0
  406. package/src/modularDrawer/hooks/__test__/useAssetsData.test.ts +141 -80
  407. package/src/modularDrawer/hooks/__test__/useModularDrawerConfiguration.test.ts +251 -0
  408. package/src/modularDrawer/hooks/modules/useLeftApyModule.tsx +27 -9
  409. package/src/modularDrawer/hooks/{modules/useAssetAccountCounts.tsx → useAssetAccountCounts.tsx} +2 -2
  410. package/src/modularDrawer/hooks/useAssetsData.ts +59 -22
  411. package/src/modularDrawer/hooks/useInterestRatesByCurrencies.ts +23 -0
  412. package/src/modularDrawer/hooks/useLeftAccounts.tsx +23 -0
  413. package/src/modularDrawer/hooks/useLeftAccountsApy.tsx +44 -0
  414. package/src/modularDrawer/hooks/useModularDrawerConfiguration.ts +33 -0
  415. package/src/modularDrawer/hooks/useRightBalanceAsset.tsx +140 -0
  416. package/src/modularDrawer/hooks/useRightBalanceNetwork.tsx +116 -0
  417. package/src/modularDrawer/modules/createAssetConfiguration.ts +62 -0
  418. package/src/modularDrawer/modules/createNetworkConfiguration.ts +87 -0
  419. package/src/modularDrawer/utils/__tests__/getInterestRateForAsset.test.ts +58 -0
  420. package/src/modularDrawer/utils/buildProviderCurrenciesMap.tsx +25 -0
  421. package/src/modularDrawer/utils/getInterestRateForAsset.ts +32 -0
  422. package/src/modularDrawer/utils/getLoadingStatus.ts +24 -0
  423. package/src/modularDrawer/utils/sortByBalance.tsx +32 -0
  424. package/src/modularDrawer/utils/type.ts +98 -0
  425. package/src/wallet-api/Exchange/server.ts +2 -2
  426. package/src/wallet-api/ModularDrawer/types.ts +1 -1
  427. package/src/wallet-api/react.ts +5 -1
  428. package/lib/bridge/generic-alpaca/tests/utils.test.d.ts.map +0 -1
  429. package/lib/bridge/generic-alpaca/tests/utils.test.js +0 -20
  430. package/lib/bridge/generic-alpaca/tests/utils.test.js.map +0 -1
  431. package/lib/modularDrawer/hooks/modules/useAssetAccountCounts.d.ts.map +0 -1
  432. package/lib/modularDrawer/hooks/modules/useAssetAccountCounts.js.map +0 -1
  433. package/lib/modularDrawer/types.d.ts +0 -2
  434. package/lib/modularDrawer/types.d.ts.map +0 -1
  435. package/lib/modularDrawer/types.js +0 -3
  436. package/lib/modularDrawer/types.js.map +0 -1
  437. package/lib-es/bridge/generic-alpaca/tests/utils.test.d.ts.map +0 -1
  438. package/lib-es/bridge/generic-alpaca/tests/utils.test.js +0 -18
  439. package/lib-es/bridge/generic-alpaca/tests/utils.test.js.map +0 -1
  440. package/lib-es/modularDrawer/hooks/modules/useAssetAccountCounts.d.ts.map +0 -1
  441. package/lib-es/modularDrawer/hooks/modules/useAssetAccountCounts.js.map +0 -1
  442. package/lib-es/modularDrawer/types.d.ts +0 -2
  443. package/lib-es/modularDrawer/types.d.ts.map +0 -1
  444. package/lib-es/modularDrawer/types.js +0 -2
  445. package/lib-es/modularDrawer/types.js.map +0 -1
  446. package/src/bridge/generic-alpaca/tests/utils.test.ts +0 -19
  447. package/src/modularDrawer/types.ts +0 -1
  448. /package/lib/bridge/generic-alpaca/{tests/utils.test.d.ts → utils.test.d.ts} +0 -0
  449. /package/lib-es/bridge/generic-alpaca/{tests/utils.test.d.ts → utils.test.d.ts} +0 -0
@@ -6,6 +6,7 @@ export enum DeviceLabels {
6
6
  SIGN = "Sign",
7
7
  APPROVE = "Approve",
8
8
  ACCEPT = "Accept",
9
+ ACCEPT_RISK = "Accept risk",
9
10
  TRANSFER = "Transfer",
10
11
  RECIPIENT = "Recipient",
11
12
  DEST = "Dest",
@@ -33,10 +34,11 @@ export enum DeviceLabels {
33
34
  DELEGATE_FROM = "Delegate from",
34
35
  PLEASE_REVIEW = "Please",
35
36
  VALUE = "Value",
36
- CONNECT_WITH = "Connect with",
37
- MAKE_SURE_TO_USE = "Make sure to use",
38
- YOUR_CRYPTO_ACCOUNTS = "Your crypto accounts",
37
+ CONNECT_TO = "Connect to",
38
+ CONNECT = "Connect",
39
+ LEDGER_LIVE_WILL_BE = "Ledger Live will be",
39
40
  TURN_ON_SYNC = "Turn on sync",
41
+ TURN_ON_SYNC2 = "Turn On sync",
40
42
  NEW_ORDINARY = "New ordinary",
41
43
  SEND_TO_ADDRESS_2 = "Send to address (2/2)",
42
44
  REVIEW_OPERATION = "Review",
@@ -46,12 +48,13 @@ export enum DeviceLabels {
46
48
  DELEGATE_STAKE = "Delegate stake",
47
49
  SETTINGS = "Settings",
48
50
  CONTRACT_DATA = "Contract data",
49
- REMOVE_PHONE_OR_COMPUTER = "Remove phone or",
50
- AFTER_REMOVING = "After removing, you",
51
+ REMOVE_FROM_LEDGER_SYNC = "Remove from",
52
+ REMOVE = "Remove",
51
53
  VERIFY_ETHEREUM = "Verify Ethereum",
52
54
  VERIFY_BSC = "Verify BSC",
53
55
  SIGN_TRANSACTION = "Sign transaction",
54
56
  VERIFY_POLYGON = "Verify Polygon",
55
57
  VERIFY_SOLANA_ADDRESS = "Verify Solana address",
56
58
  REVIEW_TRANSACTION = "Review transaction",
59
+ I_UNDERSTAND = "I understand",
57
60
  }
@@ -3,6 +3,8 @@ import { DeviceLabels } from "../enum/DeviceLabels";
3
3
 
4
4
  export async function delegateTezos() {
5
5
  await waitFor(DeviceLabels.REVIEW_OPERATION);
6
+ await pressUntilTextFound(DeviceLabels.ACCEPT_RISK);
7
+ await pressBoth();
6
8
  await pressUntilTextFound(DeviceLabels.ACCEPT);
7
9
  await pressBoth();
8
10
  }
@@ -460,7 +460,7 @@ async function retryAxiosRequest<T>(
460
460
  throw lastError!;
461
461
  }
462
462
 
463
- export async function waitFor(text: string, maxAttempts = 15): Promise<string[]> {
463
+ export async function waitFor(text: string, maxAttempts = 60): Promise<string[]> {
464
464
  const port = getEnv("SPECULOS_API_PORT");
465
465
  const address = getSpeculosAddress();
466
466
  const url = `${address}:${port}/events?stream=false&currentscreenonly=true`;
@@ -491,14 +491,14 @@ export async function pressBoth() {
491
491
 
492
492
  export async function pressUntilTextFound(
493
493
  targetText: string,
494
- maxAttempts: number = 15,
494
+ strictMatch: boolean = false,
495
495
  ): Promise<string[]> {
496
+ const maxAttempts = 15;
496
497
  const speculosApiPort = getEnv("SPECULOS_API_PORT");
497
498
 
498
499
  for (let attempts = 0; attempts < maxAttempts; attempts++) {
499
500
  const texts = await fetchCurrentScreenTexts(speculosApiPort);
500
-
501
- if (texts.includes(targetText)) {
501
+ if (strictMatch ? texts === targetText : texts.includes(targetText)) {
502
502
  return await fetchAllEvents(speculosApiPort);
503
503
  }
504
504
 
@@ -575,28 +575,25 @@ export async function waitForTimeOut(ms: number) {
575
575
  }
576
576
 
577
577
  export async function removeMemberLedgerSync() {
578
- await waitFor(DeviceLabels.CONNECT_WITH);
579
- await pressUntilTextFound(DeviceLabels.MAKE_SURE_TO_USE);
580
- await pressUntilTextFound(DeviceLabels.CONNECT_WITH);
578
+ await waitFor(DeviceLabels.CONNECT_TO);
579
+ await pressUntilTextFound(DeviceLabels.CONNECT, true);
581
580
  await pressBoth();
582
- await waitFor(DeviceLabels.REMOVE_PHONE_OR_COMPUTER);
583
- await pressUntilTextFound(DeviceLabels.AFTER_REMOVING);
584
- await pressUntilTextFound(DeviceLabels.REMOVE_PHONE_OR_COMPUTER);
581
+ await waitFor(DeviceLabels.REMOVE_FROM_LEDGER_SYNC);
582
+ await pressUntilTextFound(DeviceLabels.REMOVE, true);
585
583
  await pressBoth();
586
584
  await waitFor(DeviceLabels.TURN_ON_SYNC);
587
- await pressUntilTextFound(DeviceLabels.YOUR_CRYPTO_ACCOUNTS);
588
- await pressUntilTextFound(DeviceLabels.TURN_ON_SYNC);
585
+ await pressUntilTextFound(DeviceLabels.LEDGER_LIVE_WILL_BE);
586
+ await pressUntilTextFound(DeviceLabels.TURN_ON_SYNC2);
589
587
  await pressBoth();
590
588
  }
591
589
 
592
590
  export async function activateLedgerSync() {
593
- await waitFor(DeviceLabels.CONNECT_WITH);
594
- await pressUntilTextFound(DeviceLabels.MAKE_SURE_TO_USE);
595
- await pressUntilTextFound(DeviceLabels.CONNECT_WITH);
591
+ await waitFor(DeviceLabels.CONNECT_TO);
592
+ await pressUntilTextFound(DeviceLabels.CONNECT, true);
596
593
  await pressBoth();
597
594
  await waitFor(DeviceLabels.TURN_ON_SYNC);
598
- await pressUntilTextFound(DeviceLabels.YOUR_CRYPTO_ACCOUNTS);
599
- await pressUntilTextFound(DeviceLabels.TURN_ON_SYNC);
595
+ await pressUntilTextFound(DeviceLabels.LEDGER_LIVE_WILL_BE);
596
+ await pressUntilTextFound(DeviceLabels.TURN_ON_SYNC2);
600
597
  await pressBoth();
601
598
  }
602
599
 
@@ -731,12 +728,22 @@ export async function signDelegationTransaction(delegatingAccount: Delegate) {
731
728
  }
732
729
 
733
730
  export async function verifyAmountsAndAcceptSwap(swap: Swap, amount: string) {
731
+ await waitFor(DeviceLabels.REVIEW_TRANSACTION);
732
+ const events = await pressUntilTextFound(DeviceLabels.SIGN_TRANSACTION);
733
+ await verifySwapData(swap, events, amount);
734
+ await pressBoth();
735
+ }
736
+
737
+ export async function verifyAmountsAndAcceptSwapForDifferentSeed(swap: Swap, amount: string) {
738
+ await pressUntilTextFound(DeviceLabels.I_UNDERSTAND);
739
+ await pressBoth();
734
740
  const events = await pressUntilTextFound(DeviceLabels.SIGN_TRANSACTION);
735
741
  await verifySwapData(swap, events, amount);
736
742
  await pressBoth();
737
743
  }
738
744
 
739
745
  export async function verifyAmountsAndRejectSwap(swap: Swap, amount: string) {
746
+ await waitFor(DeviceLabels.REVIEW_TRANSACTION);
740
747
  const events = await pressUntilTextFound(DeviceLabels.REJECT);
741
748
  await verifySwapData(swap, events, amount);
742
749
  await pressBoth();
@@ -1,4 +1,4 @@
1
- import secp256k1 from "secp256k1";
1
+ import { secp256k1 } from "@noble/curves/secp256k1";
2
2
  import { firstValueFrom, from, Observable } from "rxjs";
3
3
  import { TransportStatusError, WrongDeviceForAccount } from "@ledgerhq/errors";
4
4
 
@@ -187,7 +187,8 @@ function convertSignature(signature: string, exchangeType: ExchangeTypes): Buffe
187
187
  return Buffer.from(base64Signature, "base64");
188
188
  }
189
189
  if (exchangeType === ExchangeTypes.Sell) return Buffer.from(signature, "hex");
190
- return <Buffer>secp256k1.signatureExport(Buffer.from(signature, "hex"));
190
+ const sig = secp256k1.Signature.fromCompact(Buffer.from(signature, "hex"));
191
+ return Buffer.from(sig.toDERRawBytes());
191
192
  }
192
193
 
193
194
  export default completeExchange;
@@ -14,7 +14,7 @@ import { getDefaultAccountName } from "@ledgerhq/live-wallet/accountName";
14
14
  import { log } from "@ledgerhq/logs";
15
15
  import BigNumber from "bignumber.js";
16
16
  import { Observable } from "rxjs";
17
- import secp256k1 from "secp256k1";
17
+ import { secp256k1 } from "@noble/curves/secp256k1";
18
18
  import { getCurrencyExchangeConfig } from "../";
19
19
  import { getAccountCurrency, getMainAccount } from "../../account";
20
20
  import { getAccountBridge } from "../../bridge";
@@ -271,7 +271,10 @@ const completeExchange = (
271
271
  function convertSignature(signature: string, exchangeType: ExchangeTypes): Buffer {
272
272
  return exchangeType === ExchangeTypes.SwapNg
273
273
  ? base64UrlDecode(signature)
274
- : <Buffer>secp256k1.signatureExport(Buffer.from(signature, "hex"));
274
+ : (() => {
275
+ const sig = secp256k1.Signature.fromCompact(Buffer.from(signature, "hex"));
276
+ return Buffer.from(sig.toDERRawBytes());
277
+ })();
275
278
  }
276
279
 
277
280
  function base64UrlDecode(base64Url: string): Buffer {
@@ -14,7 +14,7 @@ import { log } from "@ledgerhq/logs";
14
14
  import { BigNumber } from "bignumber.js";
15
15
  import invariant from "invariant";
16
16
  import { firstValueFrom, from, Observable } from "rxjs";
17
- import secp256k1 from "secp256k1";
17
+ import { secp256k1 } from "@noble/curves/secp256k1";
18
18
  import { getCurrencyExchangeConfig } from "../";
19
19
  import { getAccountCurrency, getMainAccount } from "../../account";
20
20
  import { getAccountBridge } from "../../bridge";
@@ -184,9 +184,10 @@ const initSwap = (input: InitSwapInput): Observable<SwapRequestEvent> => {
184
184
 
185
185
  await swap.processTransaction(Buffer.from(swapResult.binaryPayload, "hex"), estimatedFees);
186
186
  if (unsubscribed) return;
187
- const goodSign = <Buffer>(
188
- secp256k1.signatureExport(Buffer.from(swapResult.signature, "hex"))
189
- );
187
+ const goodSign = <Buffer>(() => {
188
+ const sig = secp256k1.Signature.fromCompact(Buffer.from(swapResult.signature, "hex"));
189
+ return Buffer.from(sig.toDERRawBytes());
190
+ })();
190
191
  await swap.checkTransactionSignature(goodSign);
191
192
  if (unsubscribed) return;
192
193
  const mainPayoutCurrency = getAccountCurrency(payoutAccount);
@@ -9,6 +9,7 @@ export const cantonConfig: Record<string, ConfigInfo> = {
9
9
  },
10
10
  // TBC
11
11
  nodeUrl: "https://wallet-validator-canton.ledger.com",
12
+ nodeId: "figment",
12
13
  // TBC
13
14
  gatewayUrl: "https://canton-gateway.api.live.ledger.com",
14
15
  minReserve: 0,
@@ -22,9 +23,12 @@ export const cantonConfig: Record<string, ConfigInfo> = {
22
23
  type: "active",
23
24
  },
24
25
  nodeUrl: "https://wallet-validator-devnet-canton.ledger-test.com",
26
+ nodeId: "ledger-live-devnet-prd",
25
27
  gatewayUrl: "https://canton-gateway.api.live.ledger-test.com",
26
28
  minReserve: 0,
27
29
  useGateway: true,
30
+ nativeInstrumentId:
31
+ "6e9fc50fb94e56751b49f09ba2dc84da53a9d7cff08115ebb4f6b7a12d0c990c:Splice.Amulet:Amulet",
28
32
  },
29
33
  },
30
34
  config_currency_canton_network_localnet: {
@@ -34,6 +38,7 @@ export const cantonConfig: Record<string, ConfigInfo> = {
34
38
  type: "active",
35
39
  },
36
40
  nodeUrl: "http://localhost:2975/v2",
41
+ nodeId: undefined,
37
42
  gatewayUrl: undefined,
38
43
  minReserve: 0,
39
44
  useGateway: false,
@@ -3,7 +3,7 @@
3
3
  exports[`hedera currency bridge scanAccounts hedera seed 1 1`] = `
4
4
  [
5
5
  {
6
- "balance": "942529312",
6
+ "balance": "942076781",
7
7
  "currencyId": "hedera",
8
8
  "derivationMode": "hederaBip44",
9
9
  "freshAddress": "0.0.1040977",
@@ -14,22 +14,22 @@ exports[`hedera currency bridge scanAccounts hedera seed 1 1`] = `
14
14
  },
15
15
  "id": "js:2:hedera:0.0.1040977:hederaBip44",
16
16
  "index": 0,
17
- "operationsCount": 40,
17
+ "operationsCount": 41,
18
18
  "pendingOperations": [],
19
19
  "seedIdentifier": "9e92a312233d5fd6b5a723875aeea2cea81a8e48ffc00341cff6dffcfd3ab7f2",
20
- "spendableBalance": "942529312",
20
+ "spendableBalance": "942076781",
21
21
  "subAccounts": [],
22
22
  "swapHistory": [],
23
23
  "syncHash": "0x30c71e3f",
24
24
  "used": true,
25
25
  },
26
26
  {
27
- "balance": "30000000",
27
+ "balance": "20000000",
28
28
  "id": "js:2:hedera:0.0.1040977:hederaBip44+hedera%2Fhts%2Ftune~!underscore!~fm~!underscore!~0.0.127877",
29
29
  "operationsCount": 0,
30
30
  "parentId": "js:2:hedera:0.0.1040977:hederaBip44",
31
31
  "pendingOperations": [],
32
- "spendableBalance": "30000000",
32
+ "spendableBalance": "20000000",
33
33
  "swapHistory": [],
34
34
  "tokenId": "hedera/hts/tune_fm_0.0.127877",
35
35
  "type": "TokenAccountRaw",
@@ -141,12 +141,12 @@ exports[`hedera currency bridge scanAccounts hedera seed 1 1`] = `
141
141
  "used": true,
142
142
  },
143
143
  {
144
- "balance": "328000000",
144
+ "balance": "338000000",
145
145
  "id": "js:2:hedera:0.0.8313485:hederaBip44+hedera%2Fhts%2Ftune~!underscore!~fm~!underscore!~0.0.127877",
146
146
  "operationsCount": 0,
147
147
  "parentId": "js:2:hedera:0.0.8313485:hederaBip44",
148
148
  "pendingOperations": [],
149
- "spendableBalance": "328000000",
149
+ "spendableBalance": "338000000",
150
150
  "swapHistory": [],
151
151
  "tokenId": "hedera/hts/tune_fm_0.0.127877",
152
152
  "type": "TokenAccountRaw",
@@ -724,6 +724,26 @@ exports[`hedera currency bridge scanAccounts hedera seed 1 2`] = `
724
724
  "type": "OUT",
725
725
  "value": "1000054816",
726
726
  },
727
+ {
728
+ "accountId": "js:2:hedera:0.0.1040977:hederaBip44",
729
+ "blockHash": null,
730
+ "blockHeight": 5,
731
+ "extra": {
732
+ "consensusTimestamp": "1756718310.549818000",
733
+ },
734
+ "fee": "452531",
735
+ "hasFailed": false,
736
+ "hash": "QDUwQqgrOgB4aPkMprRe3yiux277A7_PJVfpbv-P4GBMT33ahyXp8NQXbblLDA0c",
737
+ "id": "js:2:hedera:0.0.1040977:hederaBip44-QDUwQqgrOgB4aPkMprRe3yiux277A7_PJVfpbv-P4GBMT33ahyXp8NQXbblLDA0c-FEES",
738
+ "recipients": [
739
+ "0.0.8313485",
740
+ ],
741
+ "senders": [
742
+ "0.0.1040977",
743
+ ],
744
+ "type": "FEES",
745
+ "value": "452531",
746
+ },
727
747
  {
728
748
  "accountId": "js:2:hedera:0.0.1040977:hederaBip44",
729
749
  "blockHash": null,
@@ -19,6 +19,8 @@ import { SolanaCoinConfig } from "@ledgerhq/coin-solana/config";
19
19
  import { getCryptoCurrencyById } from "../../currencies";
20
20
  import { signMessage } from "@ledgerhq/coin-solana/hw-signMessage";
21
21
  import { LegacySignerSolana } from "@ledgerhq/live-signer-solana";
22
+ import { setShouldSkipTokenLoading } from "@ledgerhq/coin-solana/preload";
23
+ import { LiveConfig } from "@ledgerhq/live-config/LiveConfig";
22
24
  import { getCryptoAssetsStore } from "../../bridge/crypto-assets";
23
25
 
24
26
  const createSigner: CreateSigner<SolanaSigner> = (transport: Transport) =>
@@ -28,6 +30,13 @@ const getCurrencyConfig = () => {
28
30
  return getCurrencyConfiguration<SolanaCoinConfig>(getCryptoCurrencyById("solana"));
29
31
  };
30
32
 
33
+ try {
34
+ const isCALLazyLoadingEnabled = LiveConfig.getValueByKey("feature_cal_lazy_loading");
35
+ setShouldSkipTokenLoading(Boolean(isCALLazyLoadingEnabled));
36
+ } catch (error) {
37
+ setShouldSkipTokenLoading(false);
38
+ }
39
+
31
40
  const bridge: Bridge<Transaction, SolanaAccount, TransactionStatus> = createBridges(
32
41
  executeWithSigner(createSigner),
33
42
  getCurrencyConfig,
@@ -108,6 +108,7 @@ export const DEFAULT_FEATURES: Features = {
108
108
  postOnboardingAssetsTransfer: DEFAULT_FEATURE,
109
109
  counterValue: DEFAULT_FEATURE,
110
110
  mockFeature: DEFAULT_FEATURE,
111
+ calLedgerService: DEFAULT_FEATURE,
111
112
  ptxServiceCtaExchangeDrawer: DEFAULT_FEATURE,
112
113
  ptxServiceCtaScreens: DEFAULT_FEATURE,
113
114
  ptxSwapReceiveTRC20WithoutTrx: DEFAULT_FEATURE,
@@ -624,8 +625,6 @@ export const DEFAULT_FEATURES: Features = {
624
625
  enableModularization: false,
625
626
  },
626
627
  },
627
- lldModularDrawerBackendData: DEFAULT_FEATURE,
628
- llmModularDrawerBackendData: DEFAULT_FEATURE,
629
628
  llmModularDrawer: {
630
629
  ...DEFAULT_FEATURE,
631
630
  params: {