@ledgerhq/live-common 34.48.0-nightly.9 → 34.48.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 (455) hide show
  1. package/lib/__tests__/test-helpers/environment.js +0 -1
  2. package/lib/__tests__/test-helpers/environment.js.map +1 -1
  3. package/lib/apps/inlineAppInstall.d.ts +3 -1
  4. package/lib/apps/inlineAppInstall.d.ts.map +1 -1
  5. package/lib/apps/inlineAppInstall.js +2 -2
  6. package/lib/apps/inlineAppInstall.js.map +1 -1
  7. package/lib/apps/react.d.ts +2 -1
  8. package/lib/apps/react.d.ts.map +1 -1
  9. package/lib/apps/react.js +2 -2
  10. package/lib/apps/react.js.map +1 -1
  11. package/lib/apps/runner.d.ts +4 -2
  12. package/lib/apps/runner.d.ts.map +1 -1
  13. package/lib/apps/runner.js +4 -3
  14. package/lib/apps/runner.js.map +1 -1
  15. package/lib/bridge/generic-alpaca/accountBridge.d.ts +1 -2
  16. package/lib/bridge/generic-alpaca/accountBridge.d.ts.map +1 -1
  17. package/lib/bridge/generic-alpaca/accountBridge.js +2 -2
  18. package/lib/bridge/generic-alpaca/accountBridge.js.map +1 -1
  19. package/lib/bridge/generic-alpaca/alpaca/index.d.ts +1 -1
  20. package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  21. package/lib/bridge/generic-alpaca/alpaca/index.js +6 -10
  22. package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  23. package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js +9 -37
  24. package/lib/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -1
  25. package/lib/bridge/generic-alpaca/createTransaction.d.ts +1 -1
  26. package/lib/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
  27. package/lib/bridge/generic-alpaca/createTransaction.js +0 -8
  28. package/lib/bridge/generic-alpaca/createTransaction.js.map +1 -1
  29. package/lib/bridge/generic-alpaca/currencyBridge.d.ts +1 -2
  30. package/lib/bridge/generic-alpaca/currencyBridge.d.ts.map +1 -1
  31. package/lib/bridge/generic-alpaca/currencyBridge.js +2 -3
  32. package/lib/bridge/generic-alpaca/currencyBridge.js.map +1 -1
  33. package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  34. package/lib/bridge/generic-alpaca/getAccountShape.js +4 -4
  35. package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  36. package/lib/bridge/generic-alpaca/signer/index.d.ts +10 -2
  37. package/lib/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
  38. package/lib/bridge/generic-alpaca/signer/index.js +2 -2
  39. package/lib/bridge/generic-alpaca/signer/index.js.map +1 -1
  40. package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts +3 -2
  41. package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
  42. package/lib/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
  43. package/lib/bridge/generic-alpaca/signer/types.d.ts +0 -11
  44. package/lib/bridge/generic-alpaca/signer/types.d.ts.map +1 -1
  45. package/lib/bridge/generic-alpaca/utils.d.ts +0 -2
  46. package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
  47. package/lib/bridge/generic-alpaca/utils.js +1 -15
  48. package/lib/bridge/generic-alpaca/utils.js.map +1 -1
  49. package/lib/bridge/generic-alpaca/utils.test.js +0 -21
  50. package/lib/bridge/generic-alpaca/utils.test.js.map +1 -1
  51. package/lib/config/sharedConfig.d.ts.map +1 -1
  52. package/lib/config/sharedConfig.js +28 -30
  53. package/lib/config/sharedConfig.js.map +1 -1
  54. package/lib/e2e/enum/Account.d.ts +0 -2
  55. package/lib/e2e/enum/Account.d.ts.map +1 -1
  56. package/lib/e2e/enum/Account.js +0 -2
  57. package/lib/e2e/enum/Account.js.map +1 -1
  58. package/lib/e2e/enum/AppInfos.d.ts +0 -1
  59. package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
  60. package/lib/e2e/enum/AppInfos.js +0 -1
  61. package/lib/e2e/enum/AppInfos.js.map +1 -1
  62. package/lib/e2e/enum/Currency.d.ts +0 -1
  63. package/lib/e2e/enum/Currency.d.ts.map +1 -1
  64. package/lib/e2e/enum/Currency.js +0 -1
  65. package/lib/e2e/enum/Currency.js.map +1 -1
  66. package/lib/e2e/enum/DeviceLabels.d.ts +1 -2
  67. package/lib/e2e/enum/DeviceLabels.d.ts.map +1 -1
  68. package/lib/e2e/enum/DeviceLabels.js +0 -1
  69. package/lib/e2e/enum/DeviceLabels.js.map +1 -1
  70. package/lib/e2e/enum/Network.d.ts +1 -2
  71. package/lib/e2e/enum/Network.d.ts.map +1 -1
  72. package/lib/e2e/enum/Network.js +0 -1
  73. package/lib/e2e/enum/Network.js.map +1 -1
  74. package/lib/e2e/index.d.ts +4 -1
  75. package/lib/e2e/index.d.ts.map +1 -1
  76. package/lib/e2e/speculos.d.ts.map +1 -1
  77. package/lib/e2e/speculos.js +0 -13
  78. package/lib/e2e/speculos.js.map +1 -1
  79. package/lib/env.react.d.ts +1 -1
  80. package/lib/env.react.d.ts.map +1 -1
  81. package/lib/exchange/swap/transactionStrategies.d.ts +11 -38
  82. package/lib/exchange/swap/transactionStrategies.d.ts.map +1 -1
  83. package/lib/exchange/swap/transactionStrategies.js +47 -93
  84. package/lib/exchange/swap/transactionStrategies.js.map +1 -1
  85. package/lib/families/canton/config.d.ts.map +1 -1
  86. package/lib/families/canton/config.js +5 -3
  87. package/lib/families/canton/config.js.map +1 -1
  88. package/lib/families/canton/setup.d.ts.map +1 -1
  89. package/lib/families/canton/setup.js +5 -5
  90. package/lib/families/canton/setup.js.map +1 -1
  91. package/lib/families/evm/config.js +2 -2
  92. package/lib/families/evm/config.js.map +1 -1
  93. package/lib/families/xrp/setup.d.ts +2 -2
  94. package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
  95. package/lib/featureFlags/defaultFeatures.js +2 -4
  96. package/lib/featureFlags/defaultFeatures.js.map +1 -1
  97. package/lib/featureFlags/useFeature.d.ts +1 -1
  98. package/lib/featureFlags/useFeature.d.ts.map +1 -1
  99. package/lib/generated/bridge/js.d.ts +0 -1
  100. package/lib/generated/bridge/js.d.ts.map +1 -1
  101. package/lib/generated/bridge/js.js +22 -24
  102. package/lib/generated/bridge/js.js.map +1 -1
  103. package/lib/generated/bridge/mock.d.ts +1 -1
  104. package/lib/generated/cli-transaction.d.ts +2 -13
  105. package/lib/generated/cli-transaction.d.ts.map +1 -1
  106. package/lib/generated/cli-transaction.js +26 -28
  107. package/lib/generated/cli-transaction.js.map +1 -1
  108. package/lib/generated/deviceTransactionConfig.d.ts +0 -2
  109. package/lib/generated/deviceTransactionConfig.d.ts.map +1 -1
  110. package/lib/generated/deviceTransactionConfig.js +22 -24
  111. package/lib/generated/deviceTransactionConfig.js.map +1 -1
  112. package/lib/generated/hw-getAddress.d.ts +0 -1
  113. package/lib/generated/hw-getAddress.d.ts.map +1 -1
  114. package/lib/generated/hw-getAddress.js +26 -28
  115. package/lib/generated/hw-getAddress.js.map +1 -1
  116. package/lib/generated/platformAdapter.d.ts +1 -1
  117. package/lib/generated/specs.d.ts +1 -1
  118. package/lib/generated/transaction.d.ts +3 -11
  119. package/lib/generated/transaction.d.ts.map +1 -1
  120. package/lib/generated/transaction.js +26 -28
  121. package/lib/generated/transaction.js.map +1 -1
  122. package/lib/generated/types.d.ts +4 -5
  123. package/lib/generated/types.d.ts.map +1 -1
  124. package/lib/generated/walletApiAdapter.d.ts +1 -1
  125. package/lib/hw/actions/app.d.ts.map +1 -1
  126. package/lib/hw/actions/app.js.map +1 -1
  127. package/lib/hw/getDeviceNameMaxLength.d.ts.map +1 -1
  128. package/lib/hw/getDeviceNameMaxLength.js +0 -2
  129. package/lib/hw/getDeviceNameMaxLength.js.map +1 -1
  130. package/lib/hw/getDeviceNameMaxLength.test.js +0 -12
  131. package/lib/hw/getDeviceNameMaxLength.test.js.map +1 -1
  132. package/lib/modularDrawer/data/state-manager/api.d.ts.map +1 -1
  133. package/lib/modularDrawer/data/state-manager/api.js +2 -3
  134. package/lib/modularDrawer/data/state-manager/api.js.map +1 -1
  135. package/lib/modularDrawer/data/state-manager/types.d.ts +0 -1
  136. package/lib/modularDrawer/data/state-manager/types.d.ts.map +1 -1
  137. package/lib/modularDrawer/hooks/useAssetsData.d.ts +1 -3
  138. package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
  139. package/lib/modularDrawer/hooks/useAssetsData.js +3 -6
  140. package/lib/modularDrawer/hooks/useAssetsData.js.map +1 -1
  141. package/lib/notifications/ServiceStatusProvider/index.d.ts +1 -16
  142. package/lib/notifications/ServiceStatusProvider/index.d.ts.map +1 -1
  143. package/lib/notifications/ServiceStatusProvider/index.js +7 -31
  144. package/lib/notifications/ServiceStatusProvider/index.js.map +1 -1
  145. package/lib/wallet-api/ACRE/server.d.ts +6 -13
  146. package/lib/wallet-api/ACRE/server.d.ts.map +1 -1
  147. package/lib/wallet-api/ACRE/server.js +1 -142
  148. package/lib/wallet-api/ACRE/server.js.map +1 -1
  149. package/lib/wallet-api/Exchange/server.d.ts.map +1 -1
  150. package/lib/wallet-api/Exchange/server.js +13 -16
  151. package/lib/wallet-api/Exchange/server.js.map +1 -1
  152. package/lib-es/__tests__/test-helpers/environment.js +0 -1
  153. package/lib-es/__tests__/test-helpers/environment.js.map +1 -1
  154. package/lib-es/apps/inlineAppInstall.d.ts +3 -1
  155. package/lib-es/apps/inlineAppInstall.d.ts.map +1 -1
  156. package/lib-es/apps/inlineAppInstall.js +2 -2
  157. package/lib-es/apps/inlineAppInstall.js.map +1 -1
  158. package/lib-es/apps/react.d.ts +2 -1
  159. package/lib-es/apps/react.d.ts.map +1 -1
  160. package/lib-es/apps/react.js +2 -2
  161. package/lib-es/apps/react.js.map +1 -1
  162. package/lib-es/apps/runner.d.ts +4 -2
  163. package/lib-es/apps/runner.d.ts.map +1 -1
  164. package/lib-es/apps/runner.js +4 -3
  165. package/lib-es/apps/runner.js.map +1 -1
  166. package/lib-es/bridge/generic-alpaca/accountBridge.d.ts +1 -2
  167. package/lib-es/bridge/generic-alpaca/accountBridge.d.ts.map +1 -1
  168. package/lib-es/bridge/generic-alpaca/accountBridge.js +2 -2
  169. package/lib-es/bridge/generic-alpaca/accountBridge.js.map +1 -1
  170. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts +1 -1
  171. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  172. package/lib-es/bridge/generic-alpaca/alpaca/index.js +6 -10
  173. package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  174. package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js +9 -37
  175. package/lib-es/bridge/generic-alpaca/alpaca/index.unit.test.js.map +1 -1
  176. package/lib-es/bridge/generic-alpaca/createTransaction.d.ts +1 -1
  177. package/lib-es/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
  178. package/lib-es/bridge/generic-alpaca/createTransaction.js +0 -8
  179. package/lib-es/bridge/generic-alpaca/createTransaction.js.map +1 -1
  180. package/lib-es/bridge/generic-alpaca/currencyBridge.d.ts +1 -2
  181. package/lib-es/bridge/generic-alpaca/currencyBridge.d.ts.map +1 -1
  182. package/lib-es/bridge/generic-alpaca/currencyBridge.js +2 -3
  183. package/lib-es/bridge/generic-alpaca/currencyBridge.js.map +1 -1
  184. package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  185. package/lib-es/bridge/generic-alpaca/getAccountShape.js +4 -4
  186. package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  187. package/lib-es/bridge/generic-alpaca/signer/index.d.ts +10 -2
  188. package/lib-es/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
  189. package/lib-es/bridge/generic-alpaca/signer/index.js +2 -2
  190. package/lib-es/bridge/generic-alpaca/signer/index.js.map +1 -1
  191. package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts +3 -2
  192. package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
  193. package/lib-es/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
  194. package/lib-es/bridge/generic-alpaca/signer/types.d.ts +0 -11
  195. package/lib-es/bridge/generic-alpaca/signer/types.d.ts.map +1 -1
  196. package/lib-es/bridge/generic-alpaca/utils.d.ts +0 -2
  197. package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
  198. package/lib-es/bridge/generic-alpaca/utils.js +0 -13
  199. package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
  200. package/lib-es/bridge/generic-alpaca/utils.test.js +1 -22
  201. package/lib-es/bridge/generic-alpaca/utils.test.js.map +1 -1
  202. package/lib-es/config/sharedConfig.d.ts.map +1 -1
  203. package/lib-es/config/sharedConfig.js +0 -2
  204. package/lib-es/config/sharedConfig.js.map +1 -1
  205. package/lib-es/e2e/enum/Account.d.ts +0 -2
  206. package/lib-es/e2e/enum/Account.d.ts.map +1 -1
  207. package/lib-es/e2e/enum/Account.js +0 -2
  208. package/lib-es/e2e/enum/Account.js.map +1 -1
  209. package/lib-es/e2e/enum/AppInfos.d.ts +0 -1
  210. package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
  211. package/lib-es/e2e/enum/AppInfos.js +0 -1
  212. package/lib-es/e2e/enum/AppInfos.js.map +1 -1
  213. package/lib-es/e2e/enum/Currency.d.ts +0 -1
  214. package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
  215. package/lib-es/e2e/enum/Currency.js +0 -1
  216. package/lib-es/e2e/enum/Currency.js.map +1 -1
  217. package/lib-es/e2e/enum/DeviceLabels.d.ts +1 -2
  218. package/lib-es/e2e/enum/DeviceLabels.d.ts.map +1 -1
  219. package/lib-es/e2e/enum/DeviceLabels.js +0 -1
  220. package/lib-es/e2e/enum/DeviceLabels.js.map +1 -1
  221. package/lib-es/e2e/enum/Network.d.ts +1 -2
  222. package/lib-es/e2e/enum/Network.d.ts.map +1 -1
  223. package/lib-es/e2e/enum/Network.js +0 -1
  224. package/lib-es/e2e/enum/Network.js.map +1 -1
  225. package/lib-es/e2e/index.d.ts +4 -1
  226. package/lib-es/e2e/index.d.ts.map +1 -1
  227. package/lib-es/e2e/speculos.d.ts.map +1 -1
  228. package/lib-es/e2e/speculos.js +0 -13
  229. package/lib-es/e2e/speculos.js.map +1 -1
  230. package/lib-es/env.react.d.ts +1 -1
  231. package/lib-es/env.react.d.ts.map +1 -1
  232. package/lib-es/exchange/swap/transactionStrategies.d.ts +11 -38
  233. package/lib-es/exchange/swap/transactionStrategies.d.ts.map +1 -1
  234. package/lib-es/exchange/swap/transactionStrategies.js +44 -87
  235. package/lib-es/exchange/swap/transactionStrategies.js.map +1 -1
  236. package/lib-es/families/canton/config.d.ts.map +1 -1
  237. package/lib-es/families/canton/config.js +5 -3
  238. package/lib-es/families/canton/config.js.map +1 -1
  239. package/lib-es/families/canton/setup.d.ts.map +1 -1
  240. package/lib-es/families/canton/setup.js +5 -5
  241. package/lib-es/families/canton/setup.js.map +1 -1
  242. package/lib-es/families/evm/config.js +2 -2
  243. package/lib-es/families/evm/config.js.map +1 -1
  244. package/lib-es/families/xrp/setup.d.ts +2 -2
  245. package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
  246. package/lib-es/featureFlags/defaultFeatures.js +2 -4
  247. package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
  248. package/lib-es/featureFlags/useFeature.d.ts +1 -1
  249. package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
  250. package/lib-es/generated/bridge/js.d.ts +0 -1
  251. package/lib-es/generated/bridge/js.d.ts.map +1 -1
  252. package/lib-es/generated/bridge/js.js +0 -2
  253. package/lib-es/generated/bridge/js.js.map +1 -1
  254. package/lib-es/generated/bridge/mock.d.ts +1 -1
  255. package/lib-es/generated/cli-transaction.d.ts +2 -13
  256. package/lib-es/generated/cli-transaction.d.ts.map +1 -1
  257. package/lib-es/generated/cli-transaction.js +0 -2
  258. package/lib-es/generated/cli-transaction.js.map +1 -1
  259. package/lib-es/generated/deviceTransactionConfig.d.ts +0 -2
  260. package/lib-es/generated/deviceTransactionConfig.d.ts.map +1 -1
  261. package/lib-es/generated/deviceTransactionConfig.js +0 -2
  262. package/lib-es/generated/deviceTransactionConfig.js.map +1 -1
  263. package/lib-es/generated/hw-getAddress.d.ts +0 -1
  264. package/lib-es/generated/hw-getAddress.d.ts.map +1 -1
  265. package/lib-es/generated/hw-getAddress.js +0 -2
  266. package/lib-es/generated/hw-getAddress.js.map +1 -1
  267. package/lib-es/generated/platformAdapter.d.ts +1 -1
  268. package/lib-es/generated/specs.d.ts +1 -1
  269. package/lib-es/generated/transaction.d.ts +3 -11
  270. package/lib-es/generated/transaction.d.ts.map +1 -1
  271. package/lib-es/generated/transaction.js +0 -2
  272. package/lib-es/generated/transaction.js.map +1 -1
  273. package/lib-es/generated/types.d.ts +4 -5
  274. package/lib-es/generated/types.d.ts.map +1 -1
  275. package/lib-es/generated/walletApiAdapter.d.ts +1 -1
  276. package/lib-es/hw/actions/app.d.ts.map +1 -1
  277. package/lib-es/hw/actions/app.js.map +1 -1
  278. package/lib-es/hw/getDeviceNameMaxLength.d.ts.map +1 -1
  279. package/lib-es/hw/getDeviceNameMaxLength.js +0 -2
  280. package/lib-es/hw/getDeviceNameMaxLength.js.map +1 -1
  281. package/lib-es/hw/getDeviceNameMaxLength.test.js +0 -12
  282. package/lib-es/hw/getDeviceNameMaxLength.test.js.map +1 -1
  283. package/lib-es/modularDrawer/data/state-manager/api.d.ts.map +1 -1
  284. package/lib-es/modularDrawer/data/state-manager/api.js +2 -3
  285. package/lib-es/modularDrawer/data/state-manager/api.js.map +1 -1
  286. package/lib-es/modularDrawer/data/state-manager/types.d.ts +0 -1
  287. package/lib-es/modularDrawer/data/state-manager/types.d.ts.map +1 -1
  288. package/lib-es/modularDrawer/hooks/useAssetsData.d.ts +1 -3
  289. package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +1 -1
  290. package/lib-es/modularDrawer/hooks/useAssetsData.js +3 -6
  291. package/lib-es/modularDrawer/hooks/useAssetsData.js.map +1 -1
  292. package/lib-es/notifications/ServiceStatusProvider/index.d.ts +1 -16
  293. package/lib-es/notifications/ServiceStatusProvider/index.d.ts.map +1 -1
  294. package/lib-es/notifications/ServiceStatusProvider/index.js +7 -31
  295. package/lib-es/notifications/ServiceStatusProvider/index.js.map +1 -1
  296. package/lib-es/wallet-api/ACRE/server.d.ts +6 -13
  297. package/lib-es/wallet-api/ACRE/server.d.ts.map +1 -1
  298. package/lib-es/wallet-api/ACRE/server.js +2 -140
  299. package/lib-es/wallet-api/ACRE/server.js.map +1 -1
  300. package/lib-es/wallet-api/Exchange/server.d.ts.map +1 -1
  301. package/lib-es/wallet-api/Exchange/server.js +13 -16
  302. package/lib-es/wallet-api/Exchange/server.js.map +1 -1
  303. package/package.json +55 -58
  304. package/src/__tests__/test-helpers/environment.ts +0 -1
  305. package/src/apps/inlineAppInstall.ts +4 -1
  306. package/src/apps/react.ts +3 -1
  307. package/src/apps/runner.ts +8 -1
  308. package/src/bridge/generic-alpaca/accountBridge.ts +3 -8
  309. package/src/bridge/generic-alpaca/alpaca/index.ts +18 -13
  310. package/src/bridge/generic-alpaca/alpaca/index.unit.test.ts +10 -38
  311. package/src/bridge/generic-alpaca/createTransaction.ts +1 -9
  312. package/src/bridge/generic-alpaca/currencyBridge.ts +2 -8
  313. package/src/bridge/generic-alpaca/getAccountShape.ts +5 -4
  314. package/src/bridge/generic-alpaca/signer/index.ts +15 -5
  315. package/src/bridge/generic-alpaca/signer/signTransaction.ts +3 -4
  316. package/src/bridge/generic-alpaca/signer/types.ts +0 -14
  317. package/src/bridge/generic-alpaca/utils.test.ts +1 -29
  318. package/src/bridge/generic-alpaca/utils.ts +0 -15
  319. package/src/config/sharedConfig.ts +0 -2
  320. package/src/e2e/enum/Account.ts +0 -14
  321. package/src/e2e/enum/AppInfos.ts +0 -2
  322. package/src/e2e/enum/Currency.ts +0 -2
  323. package/src/e2e/enum/DeviceLabels.ts +0 -1
  324. package/src/e2e/enum/Network.ts +0 -1
  325. package/src/e2e/speculos.ts +0 -13
  326. package/src/exchange/swap/transactionStrategies.ts +73 -121
  327. package/src/families/canton/config.ts +6 -3
  328. package/src/families/canton/setup.ts +5 -6
  329. package/src/families/evm/config.ts +2 -2
  330. package/src/families/hedera/__snapshots__/bridge.integration.test.ts.snap +2 -2
  331. package/src/featureFlags/defaultFeatures.ts +2 -4
  332. package/src/generated/bridge/js.ts +0 -2
  333. package/src/generated/cli-transaction.ts +0 -2
  334. package/src/generated/deviceTransactionConfig.ts +0 -2
  335. package/src/generated/hw-getAddress.ts +0 -2
  336. package/src/generated/transaction.ts +0 -2
  337. package/src/generated/types.ts +0 -10
  338. package/src/hw/actions/app.ts +1 -0
  339. package/src/hw/getDeviceNameMaxLength.test.ts +0 -16
  340. package/src/hw/getDeviceNameMaxLength.ts +0 -2
  341. package/src/modularDrawer/data/state-manager/api.ts +2 -4
  342. package/src/modularDrawer/data/state-manager/types.ts +0 -1
  343. package/src/modularDrawer/hooks/useAssetsData.ts +9 -24
  344. package/src/notifications/ServiceStatusProvider/index.tsx +12 -37
  345. package/src/wallet-api/ACRE/server.ts +14 -202
  346. package/src/wallet-api/Exchange/server.ts +14 -17
  347. package/lib/bridge/generic-alpaca/signer/Eth.d.ts +0 -8
  348. package/lib/bridge/generic-alpaca/signer/Eth.d.ts.map +0 -1
  349. package/lib/bridge/generic-alpaca/signer/Eth.js +0 -51
  350. package/lib/bridge/generic-alpaca/signer/Eth.js.map +0 -1
  351. package/lib/bridge/generic-alpaca/tests/getAccountShape.test.d.ts +0 -2
  352. package/lib/bridge/generic-alpaca/tests/getAccountShape.test.d.ts.map +0 -1
  353. package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js +0 -144
  354. package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js.map +0 -1
  355. package/lib/e2e/families/kaspa.d.ts +0 -4
  356. package/lib/e2e/families/kaspa.d.ts.map +0 -1
  357. package/lib/e2e/families/kaspa.js +0 -23
  358. package/lib/e2e/families/kaspa.js.map +0 -1
  359. package/lib/families/kaspa/bridge.integration.test.d.ts +0 -2
  360. package/lib/families/kaspa/bridge.integration.test.d.ts.map +0 -1
  361. package/lib/families/kaspa/bridge.integration.test.js +0 -7
  362. package/lib/families/kaspa/bridge.integration.test.js.map +0 -1
  363. package/lib/families/kaspa/config.d.ts +0 -3
  364. package/lib/families/kaspa/config.d.ts.map +0 -1
  365. package/lib/families/kaspa/config.js +0 -14
  366. package/lib/families/kaspa/config.js.map +0 -1
  367. package/lib/families/kaspa/react.d.ts +0 -4
  368. package/lib/families/kaspa/react.d.ts.map +0 -1
  369. package/lib/families/kaspa/react.js +0 -18
  370. package/lib/families/kaspa/react.js.map +0 -1
  371. package/lib/families/kaspa/setup.d.ts +0 -18
  372. package/lib/families/kaspa/setup.d.ts.map +0 -1
  373. package/lib/families/kaspa/setup.js +0 -24
  374. package/lib/families/kaspa/setup.js.map +0 -1
  375. package/lib/families/kaspa/types.d.ts +0 -2
  376. package/lib/families/kaspa/types.d.ts.map +0 -1
  377. package/lib/families/kaspa/types.js +0 -18
  378. package/lib/families/kaspa/types.js.map +0 -1
  379. package/lib/modularDrawer/hooks/useSearch.d.ts +0 -16
  380. package/lib/modularDrawer/hooks/useSearch.d.ts.map +0 -1
  381. package/lib/modularDrawer/hooks/useSearch.js +0 -24
  382. package/lib/modularDrawer/hooks/useSearch.js.map +0 -1
  383. package/lib/notifications/ServiceStatusProvider/index.test.d.ts +0 -2
  384. package/lib/notifications/ServiceStatusProvider/index.test.d.ts.map +0 -1
  385. package/lib/notifications/ServiceStatusProvider/index.test.js +0 -88
  386. package/lib/notifications/ServiceStatusProvider/index.test.js.map +0 -1
  387. package/lib/notifications/ServiceStatusProvider/ledger-components.d.ts +0 -2
  388. package/lib/notifications/ServiceStatusProvider/ledger-components.d.ts.map +0 -1
  389. package/lib/notifications/ServiceStatusProvider/ledger-components.js +0 -16
  390. package/lib/notifications/ServiceStatusProvider/ledger-components.js.map +0 -1
  391. package/lib/wallet-api/ACRE/server.test.d.ts +0 -2
  392. package/lib/wallet-api/ACRE/server.test.d.ts.map +0 -1
  393. package/lib/wallet-api/ACRE/server.test.js +0 -393
  394. package/lib/wallet-api/ACRE/server.test.js.map +0 -1
  395. package/lib-es/bridge/generic-alpaca/signer/Eth.d.ts +0 -8
  396. package/lib-es/bridge/generic-alpaca/signer/Eth.d.ts.map +0 -1
  397. package/lib-es/bridge/generic-alpaca/signer/Eth.js +0 -47
  398. package/lib-es/bridge/generic-alpaca/signer/Eth.js.map +0 -1
  399. package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.d.ts +0 -2
  400. package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.d.ts.map +0 -1
  401. package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js +0 -139
  402. package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js.map +0 -1
  403. package/lib-es/e2e/families/kaspa.d.ts +0 -4
  404. package/lib-es/e2e/families/kaspa.d.ts.map +0 -1
  405. package/lib-es/e2e/families/kaspa.js +0 -15
  406. package/lib-es/e2e/families/kaspa.js.map +0 -1
  407. package/lib-es/families/kaspa/bridge.integration.test.d.ts +0 -2
  408. package/lib-es/families/kaspa/bridge.integration.test.d.ts.map +0 -1
  409. package/lib-es/families/kaspa/bridge.integration.test.js +0 -5
  410. package/lib-es/families/kaspa/bridge.integration.test.js.map +0 -1
  411. package/lib-es/families/kaspa/config.d.ts +0 -3
  412. package/lib-es/families/kaspa/config.d.ts.map +0 -1
  413. package/lib-es/families/kaspa/config.js +0 -11
  414. package/lib-es/families/kaspa/config.js.map +0 -1
  415. package/lib-es/families/kaspa/react.d.ts +0 -4
  416. package/lib-es/families/kaspa/react.d.ts.map +0 -1
  417. package/lib-es/families/kaspa/react.js +0 -14
  418. package/lib-es/families/kaspa/react.js.map +0 -1
  419. package/lib-es/families/kaspa/setup.d.ts +0 -18
  420. package/lib-es/families/kaspa/setup.d.ts.map +0 -1
  421. package/lib-es/families/kaspa/setup.js +0 -16
  422. package/lib-es/families/kaspa/setup.js.map +0 -1
  423. package/lib-es/families/kaspa/types.d.ts +0 -2
  424. package/lib-es/families/kaspa/types.d.ts.map +0 -1
  425. package/lib-es/families/kaspa/types.js +0 -2
  426. package/lib-es/families/kaspa/types.js.map +0 -1
  427. package/lib-es/modularDrawer/hooks/useSearch.d.ts +0 -16
  428. package/lib-es/modularDrawer/hooks/useSearch.d.ts.map +0 -1
  429. package/lib-es/modularDrawer/hooks/useSearch.js +0 -20
  430. package/lib-es/modularDrawer/hooks/useSearch.js.map +0 -1
  431. package/lib-es/notifications/ServiceStatusProvider/index.test.d.ts +0 -2
  432. package/lib-es/notifications/ServiceStatusProvider/index.test.d.ts.map +0 -1
  433. package/lib-es/notifications/ServiceStatusProvider/index.test.js +0 -86
  434. package/lib-es/notifications/ServiceStatusProvider/index.test.js.map +0 -1
  435. package/lib-es/notifications/ServiceStatusProvider/ledger-components.d.ts +0 -2
  436. package/lib-es/notifications/ServiceStatusProvider/ledger-components.d.ts.map +0 -1
  437. package/lib-es/notifications/ServiceStatusProvider/ledger-components.js +0 -13
  438. package/lib-es/notifications/ServiceStatusProvider/ledger-components.js.map +0 -1
  439. package/lib-es/wallet-api/ACRE/server.test.d.ts +0 -2
  440. package/lib-es/wallet-api/ACRE/server.test.d.ts.map +0 -1
  441. package/lib-es/wallet-api/ACRE/server.test.js +0 -388
  442. package/lib-es/wallet-api/ACRE/server.test.js.map +0 -1
  443. package/src/bridge/generic-alpaca/signer/Eth.ts +0 -70
  444. package/src/bridge/generic-alpaca/tests/getAccountShape.test.ts +0 -173
  445. package/src/e2e/families/kaspa.ts +0 -17
  446. package/src/families/kaspa/__snapshots__/bridge.integration.test.ts.snap +0 -66
  447. package/src/families/kaspa/bridge.integration.test.ts +0 -5
  448. package/src/families/kaspa/config.ts +0 -12
  449. package/src/families/kaspa/react.ts +0 -19
  450. package/src/families/kaspa/setup.ts +0 -27
  451. package/src/families/kaspa/types.ts +0 -1
  452. package/src/modularDrawer/hooks/useSearch.ts +0 -52
  453. package/src/notifications/ServiceStatusProvider/index.test.ts +0 -102
  454. package/src/notifications/ServiceStatusProvider/ledger-components.ts +0 -12
  455. package/src/wallet-api/ACRE/server.test.ts +0 -470
@@ -3,7 +3,6 @@ import * as xrpModule from "@ledgerhq/coin-xrp/api/index";
3
3
  import * as stellarModule from "@ledgerhq/coin-stellar/api/index";
4
4
  import * as cantonModule from "@ledgerhq/coin-canton/api/index";
5
5
  import * as tronModule from "@ledgerhq/coin-tron/api/index";
6
- import * as evmModule from "@ledgerhq/coin-evm/api/index";
7
6
  import * as config from "../../../config";
8
7
  import * as networkApi from "./network/network-alpaca";
9
8
  import * as cryptoAssets from "@ledgerhq/cryptoassets/currencies";
@@ -11,7 +10,7 @@ import * as cryptoAssets from "@ledgerhq/cryptoassets/currencies";
11
10
  const mockApiInstance = { mock: "api" };
12
11
 
13
12
  jest.mock("@ledgerhq/cryptoassets/currencies", () => ({
14
- findCryptoCurrencyById: jest.fn(),
13
+ getCryptoCurrencyById: jest.fn(),
15
14
  }));
16
15
 
17
16
  jest.mock("../../../config", () => ({
@@ -34,37 +33,18 @@ jest.mock("@ledgerhq/coin-tron/api/index", () => ({
34
33
  createApi: jest.fn(),
35
34
  }));
36
35
 
37
- jest.mock("@ledgerhq/coin-evm/api/index", () => ({
38
- createApi: jest.fn(),
39
- }));
40
-
41
36
  jest.mock("./network/network-alpaca", () => ({
42
37
  getNetworkAlpacaApi: jest.fn(),
43
38
  }));
44
39
 
45
40
  describe("getAlpacaApi", () => {
41
+ const mockCurrency = { id: "mock-currency" };
42
+
46
43
  beforeEach(() => {
47
44
  jest.clearAllMocks();
48
45
 
49
46
  // Common mocks
50
- (cryptoAssets.findCryptoCurrencyById as jest.Mock).mockImplementation(id => {
51
- switch (id) {
52
- case "ripple":
53
- return { family: "xrp" };
54
- case "stellar":
55
- return { family: "stellar" };
56
- case "canton":
57
- return { family: "canton" };
58
- case "tron":
59
- return { family: "tron" };
60
- case "ethereum":
61
- return { family: "evm" };
62
- case "sonic":
63
- return { family: "evm" };
64
- default:
65
- return undefined;
66
- }
67
- });
47
+ (cryptoAssets.getCryptoCurrencyById as jest.Mock).mockReturnValue(mockCurrency);
68
48
  (config.getCurrencyConfiguration as jest.Mock).mockReturnValue({ config: true });
69
49
 
70
50
  // API mocks
@@ -72,29 +52,21 @@ describe("getAlpacaApi", () => {
72
52
  jest.spyOn(stellarModule, "createApi").mockReturnValue(mockApiInstance as any);
73
53
  jest.spyOn(cantonModule, "createApi").mockReturnValue(mockApiInstance as any);
74
54
  jest.spyOn(tronModule, "createApi").mockReturnValue(mockApiInstance as any);
75
- jest.spyOn(evmModule, "createApi").mockReturnValue(mockApiInstance as any);
76
55
  jest.spyOn(networkApi, "getNetworkAlpacaApi").mockReturnValue(mockApiInstance as any);
77
56
  });
78
57
 
79
58
  const testCases = [
80
- { network: "xrp", module: xrpModule, label: "XRP", params: [{ config: true }] },
81
- { network: "stellar", module: stellarModule, label: "Stellar", params: [{ config: true }] },
82
- { network: "tron", module: tronModule, label: "Tron", params: [{ config: true }] },
83
- { network: "canton", module: cantonModule, label: "Canton", params: [{ config: true }] },
84
- {
85
- network: "ethereum",
86
- module: evmModule,
87
- label: "Ethereum",
88
- params: [{ config: true }, "ethereum"],
89
- },
90
- { network: "sonic", module: evmModule, label: "Sonic", params: [{ config: true }, "sonic"] },
59
+ { network: "xrp", module: xrpModule, label: "XRP" },
60
+ { network: "stellar", module: stellarModule, label: "Stellar" },
61
+ { network: "tron", module: tronModule, label: "Tron" },
62
+ { network: "canton", module: cantonModule, label: "Canton" },
91
63
  ];
92
64
 
93
- testCases.forEach(({ network, module, label, params }) => {
65
+ testCases.forEach(({ network, module, label }) => {
94
66
  it(`should return ${label} API for network "${network}" and kind "local"`, () => {
95
67
  const result = getAlpacaApi(network, "local");
96
68
  expect(result).toEqual(mockApiInstance);
97
- expect(module.createApi).toHaveBeenCalledWith(...params);
69
+ expect(module.createApi).toHaveBeenCalledWith({ config: true });
98
70
  });
99
71
  });
100
72
 
@@ -19,7 +19,7 @@ export function createTransaction(account: Account | TokenAccount): TransactionC
19
19
  feeCustomUnit?: Unit | null | undefined;
20
20
  memoType?: string | null;
21
21
  memoValue?: string | null;
22
- mode?: "send" | "changeTrust" | "send-legacy" | "send-eip1559";
22
+ mode?: "send" | "changeTrust";
23
23
  assetReference?: string;
24
24
  assetOwner?: string;
25
25
  networkInfo?: NetworkInfo | null;
@@ -51,14 +51,6 @@ export function createTransaction(account: Account | TokenAccount): TransactionC
51
51
  assetOwner: "",
52
52
  networkInfo: null,
53
53
  };
54
- case "evm": {
55
- return {
56
- mode: "send-eip1559",
57
- family: currency.family,
58
- amount: new BigNumber(0),
59
- recipient: "",
60
- };
61
- }
62
54
  default:
63
55
  throw new Error(`Unsupported currency family: ${currency.family}`);
64
56
  }
@@ -2,14 +2,8 @@ import { makeScanAccounts } from "@ledgerhq/coin-framework/bridge/jsHelpers";
2
2
  import { CurrencyBridge } from "@ledgerhq/types-live";
3
3
  import { genericGetAccountShape } from "./getAccountShape";
4
4
  import { getSigner } from "./signer";
5
- import type { AlpacaSigner } from "./signer/types";
6
5
 
7
- export function getAlpacaCurrencyBridge(
8
- network: string,
9
- kind: string,
10
- customSigner?: AlpacaSigner,
11
- ): CurrencyBridge {
12
- const signer = customSigner ?? getSigner(network);
6
+ export function getAlpacaCurrencyBridge(network: string, kind: string): CurrencyBridge {
13
7
  return {
14
8
  preload: () => Promise.resolve({}),
15
9
  hydrate: () => {
@@ -17,7 +11,7 @@ export function getAlpacaCurrencyBridge(
17
11
  },
18
12
  scanAccounts: makeScanAccounts({
19
13
  getAccountShape: genericGetAccountShape(network, kind),
20
- getAddressFn: signer.getAddress.bind(signer),
14
+ getAddressFn: getSigner(network).getAddress,
21
15
  }),
22
16
  };
23
17
  }
@@ -73,7 +73,7 @@ export function genericGetAccountShape(network: string, kind: string): GetAccoun
73
73
  getTokenFromAsset: alpacaApi.getTokenFromAsset,
74
74
  }) || [];
75
75
 
76
- const operations = mergedOps.map(op => {
76
+ const operationsWithSubs = mergedOps.map(op => {
77
77
  const subOperations = inferSubOperations(op.hash, subAccounts);
78
78
 
79
79
  return {
@@ -85,12 +85,13 @@ export function genericGetAccountShape(network: string, kind: string): GetAccoun
85
85
  const res = {
86
86
  id: accountId,
87
87
  xpub: address,
88
- blockHeight: operations.length === 0 ? 0 : blockInfo.height || initialAccount?.blockHeight,
88
+ blockHeight:
89
+ operationsWithSubs.length === 0 ? 0 : blockInfo.height || initialAccount?.blockHeight,
89
90
  balance: new BigNumber(nativeBalance.toString()),
90
91
  spendableBalance: new BigNumber(spendableBalance.toString()),
91
- operations,
92
+ operations: operationsWithSubs,
92
93
  subAccounts,
93
- operationsCount: operations.length,
94
+ operationsCount: operationsWithSubs.length,
94
95
  };
95
96
  return res;
96
97
  };
@@ -1,12 +1,22 @@
1
+ import { GetAddressFn } from "@ledgerhq/coin-framework/bridge/getAddressWrapper";
1
2
  import xrpGetAddress from "@ledgerhq/coin-xrp/signer/getAddress";
2
3
  import stellarGetAddress from "@ledgerhq/coin-stellar/signer/getAddress";
3
- import Stellar from "@ledgerhq/hw-app-str";
4
- import { signTransaction, stellarSignTransaction } from "./signTransaction";
5
- import { StrKey } from "@stellar/stellar-sdk";
6
4
  import { CreateSigner, executeWithSigner } from "../../setup";
7
5
  import Xrp from "@ledgerhq/hw-app-xrp";
6
+ import Stellar from "@ledgerhq/hw-app-str";
7
+
8
8
  import Transport from "@ledgerhq/hw-transport";
9
- import { AlpacaSigner } from "./types";
9
+ import { signTransaction, stellarSignTransaction } from "./signTransaction";
10
+ import { SignerContext } from "@ledgerhq/coin-framework/signer";
11
+ import { SignTransactionOptions } from "./types";
12
+ import { StrKey } from "@stellar/stellar-sdk";
13
+
14
+ export type AlpacaSigner = {
15
+ getAddress: GetAddressFn;
16
+ signTransaction?: (deviceId: string, opts: SignTransactionOptions) => Promise<string>;
17
+ signMessage?: (message: string) => Promise<string>;
18
+ context: SignerContext<any>;
19
+ };
10
20
 
11
21
  const createSignerXrp: CreateSigner<Xrp> = (transport: Transport) => {
12
22
  return new Xrp(transport);
@@ -37,7 +47,7 @@ const createSignerStellar: CreateSigner<Stellar> = (transport: Transport) => {
37
47
 
38
48
  const signerContextStellar = executeWithSigner(createSignerStellar);
39
49
 
40
- export function getSigner(network: string): AlpacaSigner {
50
+ export function getSigner(network): AlpacaSigner {
41
51
  switch (network) {
42
52
  case "ripple":
43
53
  case "xrp": {
@@ -1,10 +1,9 @@
1
1
  import { SignerContext } from "@ledgerhq/coin-framework/signer";
2
+ import { XrpSigner } from "@ledgerhq/coin-xrp/index";
3
+ import { SignTransactionOptions } from "./types";
2
4
  import { StellarSigner } from "@ledgerhq/coin-stellar/types/signer";
3
- import { LegacySigner, SignTransactionOptions } from "./types";
4
5
 
5
- export const signTransaction = <Signer extends LegacySigner>(
6
- signerContext: SignerContext<Signer>,
7
- ) => {
6
+ export const signTransaction = (signerContext: SignerContext<XrpSigner>) => {
8
7
  return async (deviceId: string, { path, rawTxHex }: SignTransactionOptions) => {
9
8
  const signedTx = await signerContext(deviceId, signer =>
10
9
  signer.signTransaction(path, rawTxHex),
@@ -1,17 +1,3 @@
1
- import { GetAddressFn } from "@ledgerhq/coin-framework/bridge/getAddressWrapper";
2
- import { SignerContext } from "@ledgerhq/coin-framework/signer";
3
-
4
- export type LegacySigner = {
5
- signTransaction: (path: string, rawTxHex: string) => Promise<string>;
6
- };
7
-
8
- export type AlpacaSigner<S = unknown> = {
9
- getAddress: GetAddressFn;
10
- signTransaction?: (deviceId: string, opts: SignTransactionOptions) => Promise<string>;
11
- signMessage?: (message: string) => Promise<string>;
12
- context: SignerContext<S>;
13
- };
14
-
15
1
  export type SignTransactionOptions = {
16
2
  rawTxHex: string;
17
3
  path: string;
@@ -1,36 +1,8 @@
1
- import {
2
- adaptCoreOperationToLiveOperation,
3
- extractBalance,
4
- findCryptoCurrencyByNetwork,
5
- } from "./utils";
1
+ import { adaptCoreOperationToLiveOperation, extractBalance } from "./utils";
6
2
  import BigNumber from "bignumber.js";
7
3
  import { Operation as CoreOperation } from "@ledgerhq/coin-framework/api/types";
8
4
 
9
5
  describe("Alpaca utils", () => {
10
- describe("findCryptoCurrencyByNetwork", () => {
11
- it("finds a crypto currency by id", () => {
12
- expect(findCryptoCurrencyByNetwork("ethereum")).toMatchObject({
13
- id: "ethereum",
14
- family: "evm",
15
- });
16
- });
17
-
18
- it("takes currency remapping into account", () => {
19
- expect(findCryptoCurrencyByNetwork("ripple")).toMatchObject({
20
- id: "ripple",
21
- family: "xrp",
22
- });
23
- expect(findCryptoCurrencyByNetwork("xrp")).toMatchObject({
24
- id: "ripple",
25
- family: "xrp",
26
- });
27
- });
28
-
29
- it("does not find non existing currencies", () => {
30
- expect(findCryptoCurrencyByNetwork("non_existing_currency")).toBeUndefined();
31
- });
32
- });
33
-
34
6
  describe("extractBalance", () => {
35
7
  it("extracts an existing balance", () => {
36
8
  expect(extractBalance([{ value: 4n, asset: { type: "type1" } }], "type1")).toEqual({
@@ -7,15 +7,6 @@ import {
7
7
  Operation as CoreOperation,
8
8
  TransactionIntent,
9
9
  } from "@ledgerhq/coin-framework/api/types";
10
- import { findCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies";
11
- import { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
12
-
13
- export function findCryptoCurrencyByNetwork(network: string): CryptoCurrency | undefined {
14
- const networksRemap = {
15
- xrp: "ripple",
16
- };
17
- return findCryptoCurrencyById(networksRemap[network] ?? network);
18
- }
19
10
 
20
11
  export function extractBalance(balances: Balance[], type: string): Balance {
21
12
  return (
@@ -119,12 +110,6 @@ export function transactionToIntent(
119
110
  case "send":
120
111
  transactionType = "send";
121
112
  break;
122
- case "send-legacy":
123
- transactionType = "send-legacy";
124
- break;
125
- case "send-eip1559":
126
- transactionType = "send-eip1559";
127
- break;
128
113
  default:
129
114
  throw new Error(`Unsupported transaction mode: ${transaction.mode}`);
130
115
  }
@@ -11,7 +11,6 @@ import { evmConfig } from "../families/evm/config";
11
11
  import { fileCoinConfig } from "../families/filecoin/config";
12
12
  import { hederaConfig } from "../families/hedera/config";
13
13
  import { internetComputerConfig } from "../families/internet_computer/config";
14
- import { kaspaConfig } from "../families/kaspa/config";
15
14
  import { nearConfig } from "../families/near/config";
16
15
  import { minaConfig } from "../families/mina/config";
17
16
  import { polkadotConfig } from "../families/polkadot/config";
@@ -56,7 +55,6 @@ export const liveConfig: ConfigSchema = {
56
55
  ...fileCoinConfig,
57
56
  ...hederaConfig,
58
57
  ...internetComputerConfig,
59
- ...kaspaConfig,
60
58
  ...nearConfig,
61
59
  ...minaConfig,
62
60
  ...polkadotConfig,
@@ -276,20 +276,6 @@ export class Account {
276
276
  0,
277
277
  );
278
278
 
279
- static readonly KASPA_1 = new Account(
280
- Currency.KAS,
281
- "KASPA 1",
282
- "kaspa:kaspa:qqpqtujclz2usyj7rgmhghfu8e5echrh8t2pkz69tq37uclfrpu3g0w6laqqk",
283
- 0,
284
- );
285
-
286
- static readonly KASPA_2 = new Account(
287
- Currency.KAS,
288
- "KASPA 2",
289
- "kaspa:qrx2agwk93qyjvlcuzz5jy37knt298zupvw2ls05p4te55c29uwuyzzra5qkv",
290
- 1,
291
- );
292
-
293
279
  static readonly LTC_1 = new Account(
294
280
  Currency.LTC,
295
281
  "Litecoin 1",
@@ -60,6 +60,4 @@ export class AppInfos {
60
60
  static readonly CELO = new AppInfos("Celo");
61
61
 
62
62
  static readonly LTC = new AppInfos("Litecoin");
63
-
64
- static readonly KASPA = new AppInfos("Kaspa");
65
63
  }
@@ -25,8 +25,6 @@ export class Currency {
25
25
 
26
26
  static readonly APT = new Currency("Aptos", "APT", "aptos", AppInfos.APTOS, [Network.APTOS]);
27
27
 
28
- static readonly KAS = new Currency("Kaspa", "KAS", "kaspa", AppInfos.KASPA, [Network.KASPA]);
29
-
30
28
  static readonly tBTC = new Currency(
31
29
  "Bitcoin Testnet",
32
30
  "𝚝BTC",
@@ -57,5 +57,4 @@ export enum DeviceLabels {
57
57
  VERIFY_SOLANA_ADDRESS = "Verify Solana address",
58
58
  REVIEW_TRANSACTION = "Review transaction",
59
59
  I_UNDERSTAND = "I understand",
60
- RECEIVE_ADDRESS_DOES_NOT_BELONG = "Receive address does",
61
60
  }
@@ -30,5 +30,4 @@ export enum Network {
30
30
  OSMOSIS = "Osmosis",
31
31
  MULTIVERS_X = "MultiversX",
32
32
  LITECOIN = "Litecoin",
33
- KASPA = "Kaspa",
34
33
  }
@@ -30,7 +30,6 @@ import { sendXRP } from "./families/xrp";
30
30
  import { delegateAptos, sendAptos } from "./families/aptos";
31
31
  import { delegateNear } from "./families/near";
32
32
  import { delegateCosmos, sendCosmos } from "./families/cosmos";
33
- import { sendKaspa } from "./families/kaspa";
34
33
  import { delegateSolana, sendSolana } from "./families/solana";
35
34
  import { delegateTezos } from "./families/tezos";
36
35
  import { delegateCelo } from "./families/celo";
@@ -326,14 +325,6 @@ export const specs: Specs = {
326
325
  },
327
326
  dependency: "",
328
327
  },
329
- Kaspa: {
330
- currency: getCryptoCurrencyById("kaspa"),
331
- appQuery: {
332
- model: getSpeculosModel(),
333
- appName: "Kaspa",
334
- },
335
- dependency: "",
336
- },
337
328
  };
338
329
 
339
330
  export async function startSpeculos(
@@ -686,9 +677,6 @@ export async function signSendTransaction(tx: Transaction) {
686
677
  case Currency.APT:
687
678
  await sendAptos();
688
679
  break;
689
- case Currency.KAS:
690
- await sendKaspa();
691
- break;
692
680
  default:
693
681
  throw new Error(`Unsupported currency: ${currencyName.ticker}`);
694
682
  }
@@ -747,7 +735,6 @@ export async function verifyAmountsAndAcceptSwap(swap: Swap, amount: string) {
747
735
  }
748
736
 
749
737
  export async function verifyAmountsAndAcceptSwapForDifferentSeed(swap: Swap, amount: string) {
750
- await waitFor(DeviceLabels.RECEIVE_ADDRESS_DOES_NOT_BELONG);
751
738
  await pressUntilTextFound(DeviceLabels.I_UNDERSTAND);
752
739
  await pressBoth();
753
740
  const events = await pressUntilTextFound(DeviceLabels.SIGN_TRANSACTION);