@ledgerhq/live-common 34.45.0-nightly.1 → 34.45.0-nightly.2

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 (291) hide show
  1. package/lib/__tests__/test-helpers/bridge.d.ts.map +1 -1
  2. package/lib/__tests__/test-helpers/bridge.js +3 -1
  3. package/lib/__tests__/test-helpers/bridge.js.map +1 -1
  4. package/lib/braze/anonymousUsers.d.ts +1 -0
  5. package/lib/braze/anonymousUsers.d.ts.map +1 -1
  6. package/lib/braze/anonymousUsers.js +7 -5
  7. package/lib/braze/anonymousUsers.js.map +1 -1
  8. package/lib/bridge/generic-alpaca/accountBridge.d.ts +1 -1
  9. package/lib/bridge/generic-alpaca/accountBridge.d.ts.map +1 -1
  10. package/lib/bridge/generic-alpaca/accountBridge.js.map +1 -1
  11. package/lib/bridge/generic-alpaca/alpaca/index.d.ts +1 -1
  12. package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  13. package/lib/bridge/generic-alpaca/alpaca/index.js +4 -2
  14. package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  15. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts +4 -4
  16. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts.map +1 -1
  17. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.js +10 -10
  18. package/lib/bridge/generic-alpaca/alpaca/network/network-alpaca.js.map +1 -1
  19. package/lib/bridge/generic-alpaca/broadcast.d.ts +1 -1
  20. package/lib/bridge/generic-alpaca/broadcast.d.ts.map +1 -1
  21. package/lib/bridge/generic-alpaca/broadcast.js.map +1 -1
  22. package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts +17 -0
  23. package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -0
  24. package/lib/bridge/generic-alpaca/buildSubAccounts.js +75 -0
  25. package/lib/bridge/generic-alpaca/buildSubAccounts.js.map +1 -0
  26. package/lib/bridge/generic-alpaca/createTransaction.d.ts +17 -9
  27. package/lib/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
  28. package/lib/bridge/generic-alpaca/createTransaction.js +36 -10
  29. package/lib/bridge/generic-alpaca/createTransaction.js.map +1 -1
  30. package/lib/bridge/generic-alpaca/currencyBridge.d.ts +1 -1
  31. package/lib/bridge/generic-alpaca/currencyBridge.d.ts.map +1 -1
  32. package/lib/bridge/generic-alpaca/currencyBridge.js.map +1 -1
  33. package/lib/bridge/generic-alpaca/estimateMaxSpendable.d.ts +1 -1
  34. package/lib/bridge/generic-alpaca/estimateMaxSpendable.d.ts.map +1 -1
  35. package/lib/bridge/generic-alpaca/estimateMaxSpendable.js +9 -0
  36. package/lib/bridge/generic-alpaca/estimateMaxSpendable.js.map +1 -1
  37. package/lib/bridge/generic-alpaca/getAccountShape.d.ts +1 -1
  38. package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  39. package/lib/bridge/generic-alpaca/getAccountShape.js +66 -37
  40. package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  41. package/lib/bridge/generic-alpaca/getTransactionStatus.d.ts +1 -1
  42. package/lib/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
  43. package/lib/bridge/generic-alpaca/getTransactionStatus.js +27 -15
  44. package/lib/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
  45. package/lib/bridge/generic-alpaca/prepareTransaction.d.ts +5 -1
  46. package/lib/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
  47. package/lib/bridge/generic-alpaca/prepareTransaction.js +28 -5
  48. package/lib/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
  49. package/lib/bridge/generic-alpaca/signOperation.d.ts +1 -1
  50. package/lib/bridge/generic-alpaca/signOperation.d.ts.map +1 -1
  51. package/lib/bridge/generic-alpaca/signOperation.js +64 -13
  52. package/lib/bridge/generic-alpaca/signOperation.js.map +1 -1
  53. package/lib/bridge/generic-alpaca/signer/index.d.ts +1 -1
  54. package/lib/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
  55. package/lib/bridge/generic-alpaca/signer/index.js +38 -5
  56. package/lib/bridge/generic-alpaca/signer/index.js.map +1 -1
  57. package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -0
  58. package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
  59. package/lib/bridge/generic-alpaca/signer/signTransaction.js +8 -1
  60. package/lib/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
  61. package/lib/bridge/generic-alpaca/signer/types.d.ts +3 -0
  62. package/lib/bridge/generic-alpaca/signer/types.d.ts.map +1 -1
  63. package/lib/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js +70 -46
  64. package/lib/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js.map +1 -1
  65. package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js +1 -1
  66. package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
  67. package/lib/bridge/generic-alpaca/tests/signOperation.test.js +25 -22
  68. package/lib/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
  69. package/lib/bridge/generic-alpaca/tests/utils.test.d.ts.map +1 -0
  70. package/lib/bridge/generic-alpaca/{utils.test.js → tests/utils.test.js} +1 -1
  71. package/lib/bridge/generic-alpaca/tests/utils.test.js.map +1 -0
  72. package/lib/bridge/generic-alpaca/utils.d.ts +36 -1
  73. package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
  74. package/lib/bridge/generic-alpaca/utils.js +130 -14
  75. package/lib/bridge/generic-alpaca/utils.js.map +1 -1
  76. package/lib/bridge/impl.d.ts.map +1 -1
  77. package/lib/bridge/impl.js +5 -4
  78. package/lib/bridge/impl.js.map +1 -1
  79. package/lib/e2e/enum/Account.js +4 -4
  80. package/lib/e2e/enum/Account.js.map +1 -1
  81. package/lib/e2e/enum/AppInfos.d.ts +1 -1
  82. package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
  83. package/lib/e2e/enum/AppInfos.js +1 -1
  84. package/lib/e2e/enum/AppInfos.js.map +1 -1
  85. package/lib/e2e/enum/Currency.d.ts.map +1 -1
  86. package/lib/e2e/enum/Currency.js +3 -3
  87. package/lib/e2e/enum/Currency.js.map +1 -1
  88. package/lib/e2e/speculos.js +2 -2
  89. package/lib/e2e/speculos.js.map +1 -1
  90. package/lib/families/stellar/bridge/logic.d.ts +1 -1
  91. package/lib/families/stellar/bridge/logic.d.ts.map +1 -1
  92. package/lib/families/stellar/bridge/logic.js +1 -1
  93. package/lib/families/stellar/bridge/logic.js.map +1 -1
  94. package/lib/families/stellar/bridge/mock.js +2 -2
  95. package/lib/families/stellar/bridge/mock.js.map +1 -1
  96. package/lib/families/stellar/setup.d.ts +3 -6
  97. package/lib/families/stellar/setup.d.ts.map +1 -1
  98. package/lib/families/stellar/setup.js +3 -12
  99. package/lib/families/stellar/setup.js.map +1 -1
  100. package/lib/families/xrp/bridge/mock.js +2 -2
  101. package/lib/families/xrp/bridge/mock.js.map +1 -1
  102. package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
  103. package/lib/featureFlags/defaultFeatures.js +4 -2
  104. package/lib/featureFlags/defaultFeatures.js.map +1 -1
  105. package/lib/generated/bridge/js.d.ts +0 -1
  106. package/lib/generated/bridge/js.d.ts.map +1 -1
  107. package/lib/generated/bridge/js.js +12 -14
  108. package/lib/generated/bridge/js.js.map +1 -1
  109. package/lib/generated/transaction.d.ts +1 -1
  110. package/lib/modularDrawer/__test__/useModularDrawerVisibility.test.js +229 -14
  111. package/lib/modularDrawer/__test__/useModularDrawerVisibility.test.js.map +1 -1
  112. package/lib/modularDrawer/enums.d.ts +0 -1
  113. package/lib/modularDrawer/enums.d.ts.map +1 -1
  114. package/lib/modularDrawer/enums.js +0 -1
  115. package/lib/modularDrawer/enums.js.map +1 -1
  116. package/lib/modularDrawer/useModularDrawerVisibility.d.ts +7 -1
  117. package/lib/modularDrawer/useModularDrawerVisibility.d.ts.map +1 -1
  118. package/lib/modularDrawer/useModularDrawerVisibility.js +18 -2
  119. package/lib/modularDrawer/useModularDrawerVisibility.js.map +1 -1
  120. package/lib-es/__tests__/test-helpers/bridge.d.ts.map +1 -1
  121. package/lib-es/__tests__/test-helpers/bridge.js +3 -1
  122. package/lib-es/__tests__/test-helpers/bridge.js.map +1 -1
  123. package/lib-es/braze/anonymousUsers.d.ts +1 -0
  124. package/lib-es/braze/anonymousUsers.d.ts.map +1 -1
  125. package/lib-es/braze/anonymousUsers.js +5 -4
  126. package/lib-es/braze/anonymousUsers.js.map +1 -1
  127. package/lib-es/bridge/generic-alpaca/accountBridge.d.ts +1 -1
  128. package/lib-es/bridge/generic-alpaca/accountBridge.d.ts.map +1 -1
  129. package/lib-es/bridge/generic-alpaca/accountBridge.js.map +1 -1
  130. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts +1 -1
  131. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  132. package/lib-es/bridge/generic-alpaca/alpaca/index.js +4 -2
  133. package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  134. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts +4 -4
  135. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.d.ts.map +1 -1
  136. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.js +10 -10
  137. package/lib-es/bridge/generic-alpaca/alpaca/network/network-alpaca.js.map +1 -1
  138. package/lib-es/bridge/generic-alpaca/broadcast.d.ts +1 -1
  139. package/lib-es/bridge/generic-alpaca/broadcast.d.ts.map +1 -1
  140. package/lib-es/bridge/generic-alpaca/broadcast.js.map +1 -1
  141. package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts +17 -0
  142. package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -0
  143. package/lib-es/bridge/generic-alpaca/buildSubAccounts.js +65 -0
  144. package/lib-es/bridge/generic-alpaca/buildSubAccounts.js.map +1 -0
  145. package/lib-es/bridge/generic-alpaca/createTransaction.d.ts +17 -9
  146. package/lib-es/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
  147. package/lib-es/bridge/generic-alpaca/createTransaction.js +35 -9
  148. package/lib-es/bridge/generic-alpaca/createTransaction.js.map +1 -1
  149. package/lib-es/bridge/generic-alpaca/currencyBridge.d.ts +1 -1
  150. package/lib-es/bridge/generic-alpaca/currencyBridge.d.ts.map +1 -1
  151. package/lib-es/bridge/generic-alpaca/currencyBridge.js.map +1 -1
  152. package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.d.ts +1 -1
  153. package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.d.ts.map +1 -1
  154. package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.js +9 -0
  155. package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.js.map +1 -1
  156. package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts +1 -1
  157. package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  158. package/lib-es/bridge/generic-alpaca/getAccountShape.js +66 -37
  159. package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  160. package/lib-es/bridge/generic-alpaca/getTransactionStatus.d.ts +1 -1
  161. package/lib-es/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
  162. package/lib-es/bridge/generic-alpaca/getTransactionStatus.js +27 -15
  163. package/lib-es/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
  164. package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts +5 -1
  165. package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
  166. package/lib-es/bridge/generic-alpaca/prepareTransaction.js +26 -4
  167. package/lib-es/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
  168. package/lib-es/bridge/generic-alpaca/signOperation.d.ts +1 -1
  169. package/lib-es/bridge/generic-alpaca/signOperation.d.ts.map +1 -1
  170. package/lib-es/bridge/generic-alpaca/signOperation.js +61 -13
  171. package/lib-es/bridge/generic-alpaca/signOperation.js.map +1 -1
  172. package/lib-es/bridge/generic-alpaca/signer/index.d.ts +1 -1
  173. package/lib-es/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
  174. package/lib-es/bridge/generic-alpaca/signer/index.js +39 -6
  175. package/lib-es/bridge/generic-alpaca/signer/index.js.map +1 -1
  176. package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -0
  177. package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
  178. package/lib-es/bridge/generic-alpaca/signer/signTransaction.js +6 -0
  179. package/lib-es/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
  180. package/lib-es/bridge/generic-alpaca/signer/types.d.ts +3 -0
  181. package/lib-es/bridge/generic-alpaca/signer/types.d.ts.map +1 -1
  182. package/lib-es/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js +70 -46
  183. package/lib-es/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js.map +1 -1
  184. package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js +1 -1
  185. package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
  186. package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js +25 -22
  187. package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
  188. package/lib-es/bridge/generic-alpaca/tests/utils.test.d.ts.map +1 -0
  189. package/lib-es/bridge/generic-alpaca/{utils.test.js → tests/utils.test.js} +1 -1
  190. package/lib-es/bridge/generic-alpaca/tests/utils.test.js.map +1 -0
  191. package/lib-es/bridge/generic-alpaca/utils.d.ts +36 -1
  192. package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
  193. package/lib-es/bridge/generic-alpaca/utils.js +130 -14
  194. package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
  195. package/lib-es/bridge/impl.d.ts.map +1 -1
  196. package/lib-es/bridge/impl.js +5 -4
  197. package/lib-es/bridge/impl.js.map +1 -1
  198. package/lib-es/e2e/enum/Account.js +4 -4
  199. package/lib-es/e2e/enum/Account.js.map +1 -1
  200. package/lib-es/e2e/enum/AppInfos.d.ts +1 -1
  201. package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
  202. package/lib-es/e2e/enum/AppInfos.js +1 -1
  203. package/lib-es/e2e/enum/AppInfos.js.map +1 -1
  204. package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
  205. package/lib-es/e2e/enum/Currency.js +3 -3
  206. package/lib-es/e2e/enum/Currency.js.map +1 -1
  207. package/lib-es/e2e/speculos.js +2 -2
  208. package/lib-es/e2e/speculos.js.map +1 -1
  209. package/lib-es/families/stellar/bridge/logic.d.ts +1 -1
  210. package/lib-es/families/stellar/bridge/logic.d.ts.map +1 -1
  211. package/lib-es/families/stellar/bridge/logic.js +1 -1
  212. package/lib-es/families/stellar/bridge/logic.js.map +1 -1
  213. package/lib-es/families/stellar/bridge/mock.js +2 -2
  214. package/lib-es/families/stellar/bridge/mock.js.map +1 -1
  215. package/lib-es/families/stellar/setup.d.ts +3 -6
  216. package/lib-es/families/stellar/setup.d.ts.map +1 -1
  217. package/lib-es/families/stellar/setup.js +2 -10
  218. package/lib-es/families/stellar/setup.js.map +1 -1
  219. package/lib-es/families/xrp/bridge/mock.js +2 -2
  220. package/lib-es/families/xrp/bridge/mock.js.map +1 -1
  221. package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
  222. package/lib-es/featureFlags/defaultFeatures.js +4 -2
  223. package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
  224. package/lib-es/generated/bridge/js.d.ts +0 -1
  225. package/lib-es/generated/bridge/js.d.ts.map +1 -1
  226. package/lib-es/generated/bridge/js.js +0 -2
  227. package/lib-es/generated/bridge/js.js.map +1 -1
  228. package/lib-es/generated/transaction.d.ts +1 -1
  229. package/lib-es/modularDrawer/__test__/useModularDrawerVisibility.test.js +229 -14
  230. package/lib-es/modularDrawer/__test__/useModularDrawerVisibility.test.js.map +1 -1
  231. package/lib-es/modularDrawer/enums.d.ts +0 -1
  232. package/lib-es/modularDrawer/enums.d.ts.map +1 -1
  233. package/lib-es/modularDrawer/enums.js +0 -1
  234. package/lib-es/modularDrawer/enums.js.map +1 -1
  235. package/lib-es/modularDrawer/useModularDrawerVisibility.d.ts +7 -1
  236. package/lib-es/modularDrawer/useModularDrawerVisibility.d.ts.map +1 -1
  237. package/lib-es/modularDrawer/useModularDrawerVisibility.js +18 -2
  238. package/lib-es/modularDrawer/useModularDrawerVisibility.js.map +1 -1
  239. package/package.json +43 -42
  240. package/src/__tests__/test-helpers/bridge.ts +3 -1
  241. package/src/braze/anonymousUsers.ts +7 -4
  242. package/src/bridge/generic-alpaca/accountBridge.ts +1 -4
  243. package/src/bridge/generic-alpaca/alpaca/index.ts +7 -2
  244. package/src/bridge/generic-alpaca/alpaca/network/network-alpaca.ts +17 -22
  245. package/src/bridge/generic-alpaca/broadcast.ts +1 -4
  246. package/src/bridge/generic-alpaca/buildSubAccounts.ts +110 -0
  247. package/src/bridge/generic-alpaca/createTransaction.ts +48 -18
  248. package/src/bridge/generic-alpaca/currencyBridge.ts +1 -1
  249. package/src/bridge/generic-alpaca/estimateMaxSpendable.ts +13 -4
  250. package/src/bridge/generic-alpaca/getAccountShape.ts +84 -46
  251. package/src/bridge/generic-alpaca/getTransactionStatus.ts +46 -22
  252. package/src/bridge/generic-alpaca/prepareTransaction.ts +41 -7
  253. package/src/bridge/generic-alpaca/signOperation.ts +85 -18
  254. package/src/bridge/generic-alpaca/signer/index.ts +43 -7
  255. package/src/bridge/generic-alpaca/signer/signTransaction.ts +11 -0
  256. package/src/bridge/generic-alpaca/signer/types.ts +1 -0
  257. package/src/bridge/generic-alpaca/tests/estimateMaxSpendable.test.ts +72 -47
  258. package/src/bridge/generic-alpaca/tests/prepareTransaction.test.ts +1 -1
  259. package/src/bridge/generic-alpaca/tests/signOperation.test.ts +28 -26
  260. package/src/bridge/generic-alpaca/{utils.test.ts → tests/utils.test.ts} +1 -1
  261. package/src/bridge/generic-alpaca/utils.ts +158 -18
  262. package/src/bridge/impl.ts +5 -4
  263. package/src/e2e/enum/Account.ts +4 -4
  264. package/src/e2e/enum/AppInfos.ts +1 -1
  265. package/src/e2e/enum/Currency.ts +3 -13
  266. package/src/e2e/speculos.ts +2 -2
  267. package/src/families/stellar/__snapshots__/bridge.integration.test.ts.snap +569 -2068
  268. package/src/families/stellar/bridge/logic.ts +1 -1
  269. package/src/families/stellar/bridge/mock.ts +2 -2
  270. package/src/families/stellar/setup.ts +2 -22
  271. package/src/families/xrp/bridge/mock.ts +2 -2
  272. package/src/featureFlags/defaultFeatures.ts +4 -2
  273. package/src/generated/bridge/js.ts +0 -2
  274. package/src/modularDrawer/__test__/useModularDrawerVisibility.test.ts +345 -14
  275. package/src/modularDrawer/enums.ts +0 -1
  276. package/src/modularDrawer/useModularDrawerVisibility.ts +26 -2
  277. package/lib/bridge/generic-alpaca/utils.test.d.ts.map +0 -1
  278. package/lib/bridge/generic-alpaca/utils.test.js.map +0 -1
  279. package/lib/families/canton/bridge.integration.test.d.ts +0 -2
  280. package/lib/families/canton/bridge.integration.test.d.ts.map +0 -1
  281. package/lib/families/canton/bridge.integration.test.js +0 -7
  282. package/lib/families/canton/bridge.integration.test.js.map +0 -1
  283. package/lib-es/bridge/generic-alpaca/utils.test.d.ts.map +0 -1
  284. package/lib-es/bridge/generic-alpaca/utils.test.js.map +0 -1
  285. package/lib-es/families/canton/bridge.integration.test.d.ts +0 -2
  286. package/lib-es/families/canton/bridge.integration.test.d.ts.map +0 -1
  287. package/lib-es/families/canton/bridge.integration.test.js +0 -5
  288. package/lib-es/families/canton/bridge.integration.test.js.map +0 -1
  289. package/src/families/canton/bridge.integration.test.ts +0 -6
  290. /package/lib/bridge/generic-alpaca/{utils.test.d.ts → tests/utils.test.d.ts} +0 -0
  291. /package/lib-es/bridge/generic-alpaca/{utils.test.d.ts → tests/utils.test.d.ts} +0 -0
@@ -1 +1 @@
1
- export * from "@ledgerhq/coin-stellar/bridge/logic";
1
+ export * from "@ledgerhq/coin-stellar/logic";
@@ -55,8 +55,8 @@ const createTransaction = (): Transaction => ({
55
55
  memoType: null,
56
56
  useAllAmount: false,
57
57
  mode: "send",
58
- assetCode: "",
59
- assetIssuer: "",
58
+ assetReference: "",
59
+ assetOwner: "",
60
60
  });
61
61
 
62
62
  const updateTransaction = (t, patch) => {
@@ -1,37 +1,17 @@
1
1
  // Goal of this file is to inject all necessary device/signer dependency to coin-modules
2
- import { createBridges } from "@ledgerhq/coin-stellar/bridge/index";
3
2
  import makeCliTools from "@ledgerhq/coin-stellar/test/cli";
4
- import { StellarCoinConfig } from "@ledgerhq/coin-stellar/config";
5
3
  import stellarResolver from "@ledgerhq/coin-stellar/signer/index";
6
- import type {
7
- StellarAccount,
8
- Transaction,
9
- TransactionStatus,
10
- } from "@ledgerhq/coin-stellar/types/index";
11
- import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies";
12
4
  import Stellar from "@ledgerhq/hw-app-str";
13
5
  import Transport from "@ledgerhq/hw-transport";
14
- import type { Bridge } from "@ledgerhq/types-live";
15
- import { CreateSigner, createResolver, executeWithSigner } from "../../bridge/setup";
16
- import { getCurrencyConfiguration } from "../../config";
6
+ import { CreateSigner, createResolver } from "../../bridge/setup";
17
7
  import { Resolver } from "../../hw/getAddress/types";
18
8
 
19
9
  const createSigner: CreateSigner<Stellar> = (transport: Transport) => {
20
10
  return new Stellar(transport);
21
11
  };
22
12
 
23
- const stellar = getCryptoCurrencyById("stellar");
24
- function getCurrencyConfig(): StellarCoinConfig {
25
- return getCurrencyConfiguration(stellar);
26
- }
27
-
28
- const bridge: Bridge<Transaction, StellarAccount, TransactionStatus> = createBridges(
29
- executeWithSigner(createSigner),
30
- getCurrencyConfig,
31
- );
32
-
33
13
  const resolver: Resolver = createResolver(createSigner, stellarResolver);
34
14
 
35
15
  const cliTools = makeCliTools();
36
16
 
37
- export { bridge, cliTools, resolver };
17
+ export { cliTools, resolver };
@@ -33,13 +33,13 @@ export function addNotCreatedRippleMockAddress(addr: string) {
33
33
  notCreatedAddresses.push(addr);
34
34
  }
35
35
 
36
- const defaultGetFees = (a: Account, t: any) => t.fee || new BigNumber(0);
36
+ const defaultGetFees = (a: Account, t: any) => t.fees;
37
37
 
38
38
  const createTransaction = (): Transaction => ({
39
39
  family: "xrp",
40
40
  amount: new BigNumber(0),
41
41
  recipient: "",
42
- fee: new BigNumber(10),
42
+ fees: new BigNumber(10),
43
43
  feeCustomUnit: getCryptoCurrencyById("ripple").units[1],
44
44
  tag: undefined,
45
45
  networkInfo: null,
@@ -616,8 +616,9 @@ export const DEFAULT_FEATURES: Features = {
616
616
  ...DEFAULT_FEATURE,
617
617
  params: {
618
618
  add_account: true,
619
- earn_flow: true,
620
619
  live_app: true,
620
+ live_apps_allowlist: [],
621
+ live_apps_blocklist: [],
621
622
  receive_flow: true,
622
623
  send_flow: true,
623
624
  enableModularization: false,
@@ -628,8 +629,9 @@ export const DEFAULT_FEATURES: Features = {
628
629
  ...DEFAULT_FEATURE,
629
630
  params: {
630
631
  add_account: true,
631
- earn_flow: true,
632
632
  live_app: true,
633
+ live_apps_allowlist: [],
634
+ live_apps_blocklist: [],
633
635
  receive_flow: true,
634
636
  send_flow: true,
635
637
  enableModularization: false,
@@ -16,7 +16,6 @@ import { bridge as near } from "../../families/near/setup";
16
16
  import { bridge as polkadot } from "../../families/polkadot/setup";
17
17
  import { bridge as solana } from "../../families/solana/setup";
18
18
  import { bridge as stacks } from "../../families/stacks/setup";
19
- import { bridge as stellar } from "../../families/stellar/setup";
20
19
  import { bridge as tezos } from "../../families/tezos/setup";
21
20
  import { bridge as ton } from "../../families/ton/setup";
22
21
  import { bridge as tron } from "../../families/tron/setup";
@@ -43,7 +42,6 @@ export default {
43
42
  polkadot,
44
43
  solana,
45
44
  stacks,
46
- stellar,
47
45
  tezos,
48
46
  ton,
49
47
  tron,
@@ -29,7 +29,9 @@ describe("useModularDrawerVisibility", () => {
29
29
  },
30
30
  );
31
31
 
32
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.ADD_ACCOUNT)).toBe(false);
32
+ expect(
33
+ result.current.isModularDrawerVisible({ location: ModularDrawerLocation.ADD_ACCOUNT }),
34
+ ).toBe(false);
33
35
  });
34
36
 
35
37
  it("should return false if the location param is not set", () => {
@@ -47,7 +49,9 @@ describe("useModularDrawerVisibility", () => {
47
49
  },
48
50
  );
49
51
 
50
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.ADD_ACCOUNT)).toBe(false);
52
+ expect(
53
+ result.current.isModularDrawerVisible({ location: ModularDrawerLocation.ADD_ACCOUNT }),
54
+ ).toBe(false);
51
55
  });
52
56
 
53
57
  it("should return the correct visibility for each location", () => {
@@ -56,7 +60,6 @@ describe("useModularDrawerVisibility", () => {
56
60
  enabled: true,
57
61
  params: {
58
62
  [ModularDrawerLocation.ADD_ACCOUNT]: true,
59
- [ModularDrawerLocation.EARN_FLOW]: false,
60
63
  },
61
64
  },
62
65
  };
@@ -71,9 +74,15 @@ describe("useModularDrawerVisibility", () => {
71
74
  },
72
75
  );
73
76
 
74
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.ADD_ACCOUNT)).toBe(true);
75
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.EARN_FLOW)).toBe(false);
76
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.LIVE_APP)).toBe(false);
77
+ expect(
78
+ result.current.isModularDrawerVisible({ location: ModularDrawerLocation.ADD_ACCOUNT }),
79
+ ).toBe(true);
80
+ expect(
81
+ result.current.isModularDrawerVisible({
82
+ location: ModularDrawerLocation.LIVE_APP,
83
+ liveAppId: "earn",
84
+ }),
85
+ ).toBe(false);
77
86
  });
78
87
  });
79
88
 
@@ -96,7 +105,9 @@ describe("useModularDrawerVisibility", () => {
96
105
  },
97
106
  );
98
107
 
99
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.ADD_ACCOUNT)).toBe(false);
108
+ expect(
109
+ result.current.isModularDrawerVisible({ location: ModularDrawerLocation.ADD_ACCOUNT }),
110
+ ).toBe(false);
100
111
  });
101
112
 
102
113
  it("should return false if the location param is not set", () => {
@@ -114,7 +125,9 @@ describe("useModularDrawerVisibility", () => {
114
125
  },
115
126
  );
116
127
 
117
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.ADD_ACCOUNT)).toBe(false);
128
+ expect(
129
+ result.current.isModularDrawerVisible({ location: ModularDrawerLocation.ADD_ACCOUNT }),
130
+ ).toBe(false);
118
131
  });
119
132
 
120
133
  it("should return the correct visibility for each location", () => {
@@ -123,7 +136,6 @@ describe("useModularDrawerVisibility", () => {
123
136
  enabled: true,
124
137
  params: {
125
138
  [ModularDrawerLocation.ADD_ACCOUNT]: false,
126
- [ModularDrawerLocation.EARN_FLOW]: true,
127
139
  [ModularDrawerLocation.RECEIVE_FLOW]: true,
128
140
  },
129
141
  },
@@ -139,11 +151,330 @@ describe("useModularDrawerVisibility", () => {
139
151
  },
140
152
  );
141
153
 
142
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.ADD_ACCOUNT)).toBe(false);
143
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.EARN_FLOW)).toBe(true);
144
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.RECEIVE_FLOW)).toBe(true);
145
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.LIVE_APP)).toBe(false);
146
- expect(result.current.isModularDrawerVisible(ModularDrawerLocation.SEND_FLOW)).toBe(false);
154
+ expect(
155
+ result.current.isModularDrawerVisible({ location: ModularDrawerLocation.ADD_ACCOUNT }),
156
+ ).toBe(false);
157
+ expect(
158
+ result.current.isModularDrawerVisible({ location: ModularDrawerLocation.RECEIVE_FLOW }),
159
+ ).toBe(true);
160
+ expect(
161
+ result.current.isModularDrawerVisible({
162
+ location: ModularDrawerLocation.LIVE_APP,
163
+ liveAppId: "earn",
164
+ }),
165
+ ).toBe(false);
166
+ expect(
167
+ result.current.isModularDrawerVisible({ location: ModularDrawerLocation.SEND_FLOW }),
168
+ ).toBe(false);
169
+ });
170
+ });
171
+
172
+ describe("Live app whitelist and blacklist logic", () => {
173
+ describe("lldModularDrawer", () => {
174
+ it("should return false if live_app location is not enabled", () => {
175
+ const mockedFeatures = {
176
+ lldModularDrawer: {
177
+ enabled: true,
178
+ params: {
179
+ [ModularDrawerLocation.LIVE_APP]: false,
180
+ live_apps_allowlist: ["earn"],
181
+ live_apps_blocklist: [],
182
+ },
183
+ },
184
+ };
185
+
186
+ const { result } = renderHook(
187
+ () =>
188
+ useModularDrawerVisibility({
189
+ modularDrawerFeatureFlagKey: "lldModularDrawer",
190
+ }),
191
+ {
192
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
193
+ },
194
+ );
195
+
196
+ expect(
197
+ result.current.isModularDrawerVisible({
198
+ location: ModularDrawerLocation.LIVE_APP,
199
+ liveAppId: "earn",
200
+ }),
201
+ ).toBe(false);
202
+ });
203
+
204
+ it("should return true for whitelisted apps when whitelist is provided", () => {
205
+ const mockedFeatures = {
206
+ lldModularDrawer: {
207
+ enabled: true,
208
+ params: {
209
+ [ModularDrawerLocation.LIVE_APP]: true,
210
+ live_apps_allowlist: ["earn", "swap"],
211
+ live_apps_blocklist: [],
212
+ },
213
+ },
214
+ };
215
+
216
+ const { result } = renderHook(
217
+ () =>
218
+ useModularDrawerVisibility({
219
+ modularDrawerFeatureFlagKey: "lldModularDrawer",
220
+ }),
221
+ {
222
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
223
+ },
224
+ );
225
+
226
+ expect(
227
+ result.current.isModularDrawerVisible({
228
+ location: ModularDrawerLocation.LIVE_APP,
229
+ liveAppId: "earn",
230
+ }),
231
+ ).toBe(true);
232
+
233
+ expect(
234
+ result.current.isModularDrawerVisible({
235
+ location: ModularDrawerLocation.LIVE_APP,
236
+ liveAppId: "swap",
237
+ }),
238
+ ).toBe(true);
239
+ });
240
+
241
+ it("should return false for non-whitelisted apps when whitelist is provided", () => {
242
+ const mockedFeatures = {
243
+ lldModularDrawer: {
244
+ enabled: true,
245
+ params: {
246
+ [ModularDrawerLocation.LIVE_APP]: true,
247
+ live_apps_allowlist: ["earn"],
248
+ live_apps_blocklist: [],
249
+ },
250
+ },
251
+ };
252
+
253
+ const { result } = renderHook(
254
+ () =>
255
+ useModularDrawerVisibility({
256
+ modularDrawerFeatureFlagKey: "lldModularDrawer",
257
+ }),
258
+ {
259
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
260
+ },
261
+ );
262
+
263
+ expect(
264
+ result.current.isModularDrawerVisible({
265
+ location: ModularDrawerLocation.LIVE_APP,
266
+ liveAppId: "swap",
267
+ }),
268
+ ).toBe(false);
269
+
270
+ expect(
271
+ result.current.isModularDrawerVisible({
272
+ location: ModularDrawerLocation.LIVE_APP,
273
+ liveAppId: "unknown-app",
274
+ }),
275
+ ).toBe(false);
276
+ });
277
+
278
+ it("should return false for blacklisted apps", () => {
279
+ const mockedFeatures = {
280
+ lldModularDrawer: {
281
+ enabled: true,
282
+ params: {
283
+ [ModularDrawerLocation.LIVE_APP]: true,
284
+ live_apps_allowlist: [],
285
+ live_apps_blocklist: ["blocked-app", "another-blocked-app"],
286
+ },
287
+ },
288
+ };
289
+
290
+ const { result } = renderHook(
291
+ () =>
292
+ useModularDrawerVisibility({
293
+ modularDrawerFeatureFlagKey: "lldModularDrawer",
294
+ }),
295
+ {
296
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
297
+ },
298
+ );
299
+
300
+ expect(
301
+ result.current.isModularDrawerVisible({
302
+ location: ModularDrawerLocation.LIVE_APP,
303
+ liveAppId: "blocked-app",
304
+ }),
305
+ ).toBe(false);
306
+
307
+ expect(
308
+ result.current.isModularDrawerVisible({
309
+ location: ModularDrawerLocation.LIVE_APP,
310
+ liveAppId: "another-blocked-app",
311
+ }),
312
+ ).toBe(false);
313
+ });
314
+
315
+ it("should return true for non-blacklisted apps when no whitelist is provided", () => {
316
+ const mockedFeatures = {
317
+ lldModularDrawer: {
318
+ enabled: true,
319
+ params: {
320
+ [ModularDrawerLocation.LIVE_APP]: true,
321
+ live_apps_allowlist: [],
322
+ live_apps_blocklist: ["blocked-app"],
323
+ },
324
+ },
325
+ };
326
+
327
+ const { result } = renderHook(
328
+ () =>
329
+ useModularDrawerVisibility({
330
+ modularDrawerFeatureFlagKey: "lldModularDrawer",
331
+ }),
332
+ {
333
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
334
+ },
335
+ );
336
+
337
+ expect(
338
+ result.current.isModularDrawerVisible({
339
+ location: ModularDrawerLocation.LIVE_APP,
340
+ liveAppId: "allowed-app",
341
+ }),
342
+ ).toBe(true);
343
+
344
+ expect(
345
+ result.current.isModularDrawerVisible({
346
+ location: ModularDrawerLocation.LIVE_APP,
347
+ liveAppId: "earn",
348
+ }),
349
+ ).toBe(true);
350
+ });
351
+
352
+ it("should prioritize blacklist over whitelist", () => {
353
+ const mockedFeatures = {
354
+ lldModularDrawer: {
355
+ enabled: true,
356
+ params: {
357
+ [ModularDrawerLocation.LIVE_APP]: true,
358
+ live_apps_allowlist: ["earn", "swap"],
359
+ live_apps_blocklist: ["swap"],
360
+ },
361
+ },
362
+ };
363
+
364
+ const { result } = renderHook(
365
+ () =>
366
+ useModularDrawerVisibility({
367
+ modularDrawerFeatureFlagKey: "lldModularDrawer",
368
+ }),
369
+ {
370
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
371
+ },
372
+ );
373
+
374
+ expect(
375
+ result.current.isModularDrawerVisible({
376
+ location: ModularDrawerLocation.LIVE_APP,
377
+ liveAppId: "earn",
378
+ }),
379
+ ).toBe(true);
380
+
381
+ expect(
382
+ result.current.isModularDrawerVisible({
383
+ location: ModularDrawerLocation.LIVE_APP,
384
+ liveAppId: "swap",
385
+ }),
386
+ ).toBe(false);
387
+ });
388
+
389
+ it("should handle missing whitelist and blacklist arrays", () => {
390
+ const mockedFeatures = {
391
+ lldModularDrawer: {
392
+ enabled: true,
393
+ params: {
394
+ [ModularDrawerLocation.LIVE_APP]: true,
395
+ },
396
+ },
397
+ };
398
+
399
+ const { result } = renderHook(
400
+ () =>
401
+ useModularDrawerVisibility({
402
+ modularDrawerFeatureFlagKey: "lldModularDrawer",
403
+ }),
404
+ {
405
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
406
+ },
407
+ );
408
+
409
+ expect(
410
+ result.current.isModularDrawerVisible({
411
+ location: ModularDrawerLocation.LIVE_APP,
412
+ liveAppId: "any-app",
413
+ }),
414
+ ).toBe(true);
415
+ });
416
+ });
417
+
418
+ describe("llmModularDrawer", () => {
419
+ it("should return true for whitelisted apps", () => {
420
+ const mockedFeatures = {
421
+ llmModularDrawer: {
422
+ enabled: true,
423
+ params: {
424
+ [ModularDrawerLocation.LIVE_APP]: true,
425
+ live_apps_allowlist: ["earn", "swap"],
426
+ live_apps_blocklist: [],
427
+ },
428
+ },
429
+ };
430
+
431
+ const { result } = renderHook(
432
+ () =>
433
+ useModularDrawerVisibility({
434
+ modularDrawerFeatureFlagKey: "llmModularDrawer",
435
+ }),
436
+ {
437
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
438
+ },
439
+ );
440
+
441
+ expect(
442
+ result.current.isModularDrawerVisible({
443
+ location: ModularDrawerLocation.LIVE_APP,
444
+ liveAppId: "earn",
445
+ }),
446
+ ).toBe(true);
447
+ });
448
+
449
+ it("should return false for blacklisted apps even if whitelisted", () => {
450
+ const mockedFeatures = {
451
+ llmModularDrawer: {
452
+ enabled: true,
453
+ params: {
454
+ [ModularDrawerLocation.LIVE_APP]: true,
455
+ live_apps_allowlist: ["earn", "swap"],
456
+ live_apps_blocklist: ["swap"],
457
+ },
458
+ },
459
+ };
460
+
461
+ const { result } = renderHook(
462
+ () =>
463
+ useModularDrawerVisibility({
464
+ modularDrawerFeatureFlagKey: "llmModularDrawer",
465
+ }),
466
+ {
467
+ wrapper: makeMockedFeatureFlagsProviderWrapper(makeMockedContextValue(mockedFeatures)),
468
+ },
469
+ );
470
+
471
+ expect(
472
+ result.current.isModularDrawerVisible({
473
+ location: ModularDrawerLocation.LIVE_APP,
474
+ liveAppId: "swap",
475
+ }),
476
+ ).toBe(false);
477
+ });
147
478
  });
148
479
  });
149
480
  });
@@ -1,6 +1,5 @@
1
1
  export enum ModularDrawerLocation {
2
2
  ADD_ACCOUNT = "add_account",
3
- EARN_FLOW = "earn_flow",
4
3
  LIVE_APP = "live_app",
5
4
  RECEIVE_FLOW = "receive_flow",
6
5
  SEND_FLOW = "send_flow",
@@ -4,6 +4,10 @@ import { ModularDrawerLocation } from "./enums";
4
4
 
5
5
  type ModularDrawerFeatureFlagKey = "lldModularDrawer" | "llmModularDrawer";
6
6
 
7
+ export type ModularDrawerVisibleParams =
8
+ | { location: ModularDrawerLocation.LIVE_APP; liveAppId: string }
9
+ | { location: Exclude<ModularDrawerLocation, ModularDrawerLocation.LIVE_APP> };
10
+
7
11
  export function useModularDrawerVisibility({
8
12
  modularDrawerFeatureFlagKey,
9
13
  }: {
@@ -12,9 +16,29 @@ export function useModularDrawerVisibility({
12
16
  const featureModularDrawer = useFeature(modularDrawerFeatureFlagKey);
13
17
 
14
18
  const isModularDrawerVisible = useCallback(
15
- (location: ModularDrawerLocation) => {
19
+ (params: ModularDrawerVisibleParams) => {
16
20
  if (!featureModularDrawer?.enabled) return false;
17
- return featureModularDrawer.params?.[location] ?? false;
21
+
22
+ if (params.location === ModularDrawerLocation.LIVE_APP) {
23
+ const isLiveAppEnabled = featureModularDrawer.params?.[params.location] ?? false;
24
+ if (!isLiveAppEnabled) return false;
25
+
26
+ const { liveAppId } = params;
27
+ const allowed = featureModularDrawer.params?.live_apps_allowlist ?? [];
28
+ const blocked = featureModularDrawer.params?.live_apps_blocklist ?? [];
29
+
30
+ if (allowed.length > 0 && !allowed.includes(liveAppId)) {
31
+ return false;
32
+ }
33
+
34
+ if (blocked.includes(liveAppId)) {
35
+ return false;
36
+ }
37
+
38
+ return true;
39
+ }
40
+
41
+ return featureModularDrawer.params?.[params.location] ?? false;
18
42
  },
19
43
  [featureModularDrawer],
20
44
  );
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../src/bridge/generic-alpaca/utils.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../../src/bridge/generic-alpaca/utils.test.ts"],"names":[],"mappings":";;AAAA,mCAAyC;AAEzC,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC9B,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;YACtC,MAAM,CAAC,IAAA,sBAAc,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;gBACjF,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;aACzB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;YACvD,MAAM,CAAC,IAAA,sBAAc,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;gBACjF,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;aACzB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import "../../__tests__/test-helpers/setup";
2
- //# sourceMappingURL=bridge.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bridge.integration.test.d.ts","sourceRoot":"","sources":["../../../src/families/canton/bridge.integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("../../__tests__/test-helpers/setup");
4
- const index_1 = require("@ledgerhq/coin-canton/test/index");
5
- const bridge_1 = require("../../__tests__/test-helpers/bridge");
6
- (0, bridge_1.testBridge)(index_1.dataset);
7
- //# sourceMappingURL=bridge.integration.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bridge.integration.test.js","sourceRoot":"","sources":["../../../src/families/canton/bridge.integration.test.ts"],"names":[],"mappings":";;AAAA,8CAA4C;AAE5C,4DAA2D;AAC3D,gEAAiE;AAEjE,IAAA,mBAAU,EAAC,eAAO,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../src/bridge/generic-alpaca/utils.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../../src/bridge/generic-alpaca/utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;QAC9B,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;YACtC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;gBACjF,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;aACzB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,+CAA+C,EAAE,GAAG,EAAE;YACvD,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;gBACjF,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;aACzB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import "../../__tests__/test-helpers/setup";
2
- //# sourceMappingURL=bridge.integration.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bridge.integration.test.d.ts","sourceRoot":"","sources":["../../../src/families/canton/bridge.integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC"}
@@ -1,5 +0,0 @@
1
- import "../../__tests__/test-helpers/setup";
2
- import { dataset } from "@ledgerhq/coin-canton/test/index";
3
- import { testBridge } from "../../__tests__/test-helpers/bridge";
4
- testBridge(dataset);
5
- //# sourceMappingURL=bridge.integration.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bridge.integration.test.js","sourceRoot":"","sources":["../../../src/families/canton/bridge.integration.test.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEjE,UAAU,CAAC,OAAO,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- import "../../__tests__/test-helpers/setup";
2
-
3
- import { dataset } from "@ledgerhq/coin-canton/test/index";
4
- import { testBridge } from "../../__tests__/test-helpers/bridge";
5
-
6
- testBridge(dataset);