@ledgerhq/live-common 34.49.0 → 34.50.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 (465) hide show
  1. package/lib/__tests__/test-helpers/bridge.js +1 -1
  2. package/lib/__tests__/test-helpers/bridge.js.map +1 -1
  3. package/lib/__tests__/test-helpers/environment.js +2 -0
  4. package/lib/__tests__/test-helpers/environment.js.map +1 -1
  5. package/lib/apps/config.js +1 -1
  6. package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  7. package/lib/bridge/generic-alpaca/alpaca/index.js +3 -0
  8. package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  9. package/lib/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
  10. package/lib/bridge/generic-alpaca/createTransaction.js +11 -0
  11. package/lib/bridge/generic-alpaca/createTransaction.js.map +1 -1
  12. package/lib/bridge/generic-alpaca/estimateMaxSpendable.d.ts.map +1 -1
  13. package/lib/bridge/generic-alpaca/estimateMaxSpendable.js +2 -3
  14. package/lib/bridge/generic-alpaca/estimateMaxSpendable.js.map +1 -1
  15. package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  16. package/lib/bridge/generic-alpaca/getAccountShape.js +11 -3
  17. package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  18. package/lib/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
  19. package/lib/bridge/generic-alpaca/getTransactionStatus.js +6 -4
  20. package/lib/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
  21. package/lib/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
  22. package/lib/bridge/generic-alpaca/prepareTransaction.js +32 -4
  23. package/lib/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
  24. package/lib/bridge/generic-alpaca/signOperation.d.ts.map +1 -1
  25. package/lib/bridge/generic-alpaca/signOperation.js +4 -2
  26. package/lib/bridge/generic-alpaca/signOperation.js.map +1 -1
  27. package/lib/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
  28. package/lib/bridge/generic-alpaca/signer/index.js +37 -0
  29. package/lib/bridge/generic-alpaca/signer/index.js.map +1 -1
  30. package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -0
  31. package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
  32. package/lib/bridge/generic-alpaca/signer/signTransaction.js +8 -1
  33. package/lib/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
  34. package/lib/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js +15 -1
  35. package/lib/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js.map +1 -1
  36. package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js +1 -1
  37. package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
  38. package/lib/bridge/generic-alpaca/tests/signOperation.test.js +2 -2
  39. package/lib/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
  40. package/lib/bridge/generic-alpaca/types.d.ts +7 -1
  41. package/lib/bridge/generic-alpaca/types.d.ts.map +1 -1
  42. package/lib/bridge/generic-alpaca/utils.d.ts +7 -1
  43. package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
  44. package/lib/bridge/generic-alpaca/utils.js +31 -29
  45. package/lib/bridge/generic-alpaca/utils.js.map +1 -1
  46. package/lib/bridge/generic-alpaca/utils.test.js +32 -0
  47. package/lib/bridge/generic-alpaca/utils.test.js.map +1 -1
  48. package/lib/bridge/impl.d.ts.map +1 -1
  49. package/lib/bridge/impl.js +1 -0
  50. package/lib/bridge/impl.js.map +1 -1
  51. package/lib/bridge/react/BridgeSync.d.ts.map +1 -1
  52. package/lib/bridge/react/BridgeSync.js +17 -4
  53. package/lib/bridge/react/BridgeSync.js.map +1 -1
  54. package/lib/bridge/syncSessionManager/index.d.ts +18 -0
  55. package/lib/bridge/syncSessionManager/index.d.ts.map +1 -0
  56. package/lib/bridge/syncSessionManager/index.js +75 -0
  57. package/lib/bridge/syncSessionManager/index.js.map +1 -0
  58. package/lib/bridge/syncSessionManager/index.test.d.ts +2 -0
  59. package/lib/bridge/syncSessionManager/index.test.d.ts.map +1 -0
  60. package/lib/bridge/syncSessionManager/index.test.js +118 -0
  61. package/lib/bridge/syncSessionManager/index.test.js.map +1 -0
  62. package/lib/deposit/deposit.integration.test.js +60 -1
  63. package/lib/deposit/deposit.integration.test.js.map +1 -1
  64. package/lib/e2e/data/deviceLabelsData.js +2 -2
  65. package/lib/e2e/data/deviceLabelsData.js.map +1 -1
  66. package/lib/e2e/enum/Account.d.ts +2 -0
  67. package/lib/e2e/enum/Account.d.ts.map +1 -1
  68. package/lib/e2e/enum/Account.js +3 -1
  69. package/lib/e2e/enum/Account.js.map +1 -1
  70. package/lib/e2e/enum/DeviceLabels.d.ts +3 -9
  71. package/lib/e2e/enum/DeviceLabels.d.ts.map +1 -1
  72. package/lib/e2e/enum/DeviceLabels.js +2 -8
  73. package/lib/e2e/enum/DeviceLabels.js.map +1 -1
  74. package/lib/e2e/enum/Network.d.ts +1 -0
  75. package/lib/e2e/enum/Network.d.ts.map +1 -1
  76. package/lib/e2e/enum/Network.js +1 -0
  77. package/lib/e2e/enum/Network.js.map +1 -1
  78. package/lib/e2e/families/bitcoin.d.ts +1 -0
  79. package/lib/e2e/families/bitcoin.d.ts.map +1 -1
  80. package/lib/e2e/families/bitcoin.js +28 -1
  81. package/lib/e2e/families/bitcoin.js.map +1 -1
  82. package/lib/e2e/families/tezos.d.ts.map +1 -1
  83. package/lib/e2e/families/tezos.js +5 -3
  84. package/lib/e2e/families/tezos.js.map +1 -1
  85. package/lib/e2e/index.d.ts +8 -0
  86. package/lib/e2e/index.d.ts.map +1 -1
  87. package/lib/e2e/models/Swap.d.ts +2 -0
  88. package/lib/e2e/models/Swap.d.ts.map +1 -1
  89. package/lib/e2e/models/Swap.js +6 -0
  90. package/lib/e2e/models/Swap.js.map +1 -1
  91. package/lib/e2e/speculos.d.ts +8 -0
  92. package/lib/e2e/speculos.d.ts.map +1 -1
  93. package/lib/e2e/speculos.js +23 -31
  94. package/lib/e2e/speculos.js.map +1 -1
  95. package/lib/exchange/providers/swap.js +2 -2
  96. package/lib/exchange/providers/swap.js.map +1 -1
  97. package/lib/families/canton/bridge/mock.d.ts.map +1 -1
  98. package/lib/families/canton/bridge/mock.js +1 -0
  99. package/lib/families/canton/bridge/mock.js.map +1 -1
  100. package/lib/families/canton/config.d.ts.map +1 -1
  101. package/lib/families/canton/config.js +2 -0
  102. package/lib/families/canton/config.js.map +1 -1
  103. package/lib/families/celo/bridge.integration.test.js +4 -1
  104. package/lib/families/celo/bridge.integration.test.js.map +1 -1
  105. package/lib/families/cosmos/datasets/axelar.integration.test.js +4 -1
  106. package/lib/families/cosmos/datasets/axelar.integration.test.js.map +1 -1
  107. package/lib/families/cosmos/datasets/desmos.integration.test.js +4 -1
  108. package/lib/families/cosmos/datasets/desmos.integration.test.js.map +1 -1
  109. package/lib/families/cosmos/datasets/onomy.integration.test.js +4 -1
  110. package/lib/families/cosmos/datasets/onomy.integration.test.js.map +1 -1
  111. package/lib/families/evm/config.d.ts.map +1 -1
  112. package/lib/families/evm/config.js +26 -0
  113. package/lib/families/evm/config.js.map +1 -1
  114. package/lib/families/filecoin/bridge.integration.test.js +4 -1
  115. package/lib/families/filecoin/bridge.integration.test.js.map +1 -1
  116. package/lib/families/mina/bridge.integration.test.js +4 -1
  117. package/lib/families/mina/bridge.integration.test.js.map +1 -1
  118. package/lib/families/multiversx/synchronisation.integration.test.js +4 -1
  119. package/lib/families/multiversx/synchronisation.integration.test.js.map +1 -1
  120. package/lib/families/tezos/react.d.ts +2 -1
  121. package/lib/families/tezos/react.d.ts.map +1 -1
  122. package/lib/families/tezos/react.js +19 -1
  123. package/lib/families/tezos/react.js.map +1 -1
  124. package/lib/families/tezos/setup.d.ts +1 -4
  125. package/lib/families/tezos/setup.d.ts.map +1 -1
  126. package/lib/families/tezos/setup.js +3 -11
  127. package/lib/families/tezos/setup.js.map +1 -1
  128. package/lib/families/ton/bridge.integration.test.js +4 -1
  129. package/lib/families/ton/bridge.integration.test.js.map +1 -1
  130. package/lib/featureFlags/defaultFeatures.d.ts +2 -0
  131. package/lib/featureFlags/defaultFeatures.d.ts.map +1 -1
  132. package/lib/featureFlags/defaultFeatures.js +4 -0
  133. package/lib/featureFlags/defaultFeatures.js.map +1 -1
  134. package/lib/featureFlags/useFeature.d.ts +1 -1
  135. package/lib/featureFlags/useFeature.d.ts.map +1 -1
  136. package/lib/generated/bridge/js.d.ts +0 -1
  137. package/lib/generated/bridge/js.d.ts.map +1 -1
  138. package/lib/generated/bridge/js.js +10 -12
  139. package/lib/generated/bridge/js.js.map +1 -1
  140. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts +1 -0
  141. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  142. package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.d.ts +1 -0
  143. package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.d.ts.map +1 -1
  144. package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.d.ts +1 -0
  145. package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.d.ts.map +1 -1
  146. package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts +6 -1
  147. package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -1
  148. package/lib/modularDrawer/hooks/useRightBalanceAsset.js +11 -14
  149. package/lib/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -1
  150. package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts +3 -1
  151. package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
  152. package/lib/modularDrawer/hooks/useRightBalanceNetwork.js +3 -3
  153. package/lib/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
  154. package/lib/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
  155. package/lib/modularDrawer/modules/createAssetConfiguration.js +1 -0
  156. package/lib/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
  157. package/lib/modularDrawer/utils/groupCurrenciesByProvider.d.ts +7 -0
  158. package/lib/modularDrawer/utils/groupCurrenciesByProvider.d.ts.map +1 -0
  159. package/lib/modularDrawer/utils/groupCurrenciesByProvider.js +21 -0
  160. package/lib/modularDrawer/utils/groupCurrenciesByProvider.js.map +1 -0
  161. package/lib/modularDrawer/utils/index.d.ts +2 -1
  162. package/lib/modularDrawer/utils/index.d.ts.map +1 -1
  163. package/lib/modularDrawer/utils/index.js +3 -1
  164. package/lib/modularDrawer/utils/index.js.map +1 -1
  165. package/lib/modularDrawer/utils/type.d.ts +18 -0
  166. package/lib/modularDrawer/utils/type.d.ts.map +1 -1
  167. package/lib/notifications/ServiceStatusProvider/entry-points.d.ts +3 -0
  168. package/lib/notifications/ServiceStatusProvider/entry-points.d.ts.map +1 -0
  169. package/lib/notifications/ServiceStatusProvider/entry-points.js +3 -0
  170. package/lib/notifications/ServiceStatusProvider/entry-points.js.map +1 -0
  171. package/lib/notifications/ServiceStatusProvider/index.d.ts +18 -1
  172. package/lib/notifications/ServiceStatusProvider/index.d.ts.map +1 -1
  173. package/lib/notifications/ServiceStatusProvider/index.js +47 -9
  174. package/lib/notifications/ServiceStatusProvider/index.js.map +1 -1
  175. package/lib/notifications/ServiceStatusProvider/index.test.d.ts +2 -0
  176. package/lib/notifications/ServiceStatusProvider/index.test.d.ts.map +1 -0
  177. package/lib/notifications/ServiceStatusProvider/index.test.js +88 -0
  178. package/lib/notifications/ServiceStatusProvider/index.test.js.map +1 -0
  179. package/lib/notifications/ServiceStatusProvider/ledger-components.d.ts +2 -0
  180. package/lib/notifications/ServiceStatusProvider/ledger-components.d.ts.map +1 -0
  181. package/lib/notifications/ServiceStatusProvider/ledger-components.js +17 -0
  182. package/lib/notifications/ServiceStatusProvider/ledger-components.js.map +1 -0
  183. package/lib/notifications/ServiceStatusProvider/mocks/ledgerStatus.d.ts +154 -0
  184. package/lib/notifications/ServiceStatusProvider/mocks/ledgerStatus.d.ts.map +1 -0
  185. package/lib/notifications/ServiceStatusProvider/mocks/ledgerStatus.js +1192 -0
  186. package/lib/notifications/ServiceStatusProvider/mocks/ledgerStatus.js.map +1 -0
  187. package/lib/notifications/ServiceStatusProvider/types.d.ts +3 -1
  188. package/lib/notifications/ServiceStatusProvider/types.d.ts.map +1 -1
  189. package/lib/wallet-api/react.d.ts +1 -1
  190. package/lib/wallet-api/react.d.ts.map +1 -1
  191. package/lib/wallet-api/react.js +1 -1
  192. package/lib/wallet-api/react.js.map +1 -1
  193. package/lib-es/__tests__/test-helpers/bridge.js +1 -1
  194. package/lib-es/__tests__/test-helpers/bridge.js.map +1 -1
  195. package/lib-es/__tests__/test-helpers/environment.js +2 -0
  196. package/lib-es/__tests__/test-helpers/environment.js.map +1 -1
  197. package/lib-es/apps/config.js +1 -1
  198. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  199. package/lib-es/bridge/generic-alpaca/alpaca/index.js +3 -0
  200. package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  201. package/lib-es/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
  202. package/lib-es/bridge/generic-alpaca/createTransaction.js +11 -0
  203. package/lib-es/bridge/generic-alpaca/createTransaction.js.map +1 -1
  204. package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.d.ts.map +1 -1
  205. package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.js +2 -3
  206. package/lib-es/bridge/generic-alpaca/estimateMaxSpendable.js.map +1 -1
  207. package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  208. package/lib-es/bridge/generic-alpaca/getAccountShape.js +11 -3
  209. package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  210. package/lib-es/bridge/generic-alpaca/getTransactionStatus.d.ts.map +1 -1
  211. package/lib-es/bridge/generic-alpaca/getTransactionStatus.js +6 -4
  212. package/lib-es/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
  213. package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
  214. package/lib-es/bridge/generic-alpaca/prepareTransaction.js +32 -4
  215. package/lib-es/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
  216. package/lib-es/bridge/generic-alpaca/signOperation.d.ts.map +1 -1
  217. package/lib-es/bridge/generic-alpaca/signOperation.js +4 -2
  218. package/lib-es/bridge/generic-alpaca/signOperation.js.map +1 -1
  219. package/lib-es/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
  220. package/lib-es/bridge/generic-alpaca/signer/index.js +38 -1
  221. package/lib-es/bridge/generic-alpaca/signer/index.js.map +1 -1
  222. package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -0
  223. package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
  224. package/lib-es/bridge/generic-alpaca/signer/signTransaction.js +6 -0
  225. package/lib-es/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
  226. package/lib-es/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js +15 -1
  227. package/lib-es/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js.map +1 -1
  228. package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js +1 -1
  229. package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
  230. package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js +2 -2
  231. package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
  232. package/lib-es/bridge/generic-alpaca/types.d.ts +7 -1
  233. package/lib-es/bridge/generic-alpaca/types.d.ts.map +1 -1
  234. package/lib-es/bridge/generic-alpaca/utils.d.ts +7 -1
  235. package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
  236. package/lib-es/bridge/generic-alpaca/utils.js +31 -29
  237. package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
  238. package/lib-es/bridge/generic-alpaca/utils.test.js +33 -1
  239. package/lib-es/bridge/generic-alpaca/utils.test.js.map +1 -1
  240. package/lib-es/bridge/impl.d.ts.map +1 -1
  241. package/lib-es/bridge/impl.js +1 -0
  242. package/lib-es/bridge/impl.js.map +1 -1
  243. package/lib-es/bridge/react/BridgeSync.d.ts.map +1 -1
  244. package/lib-es/bridge/react/BridgeSync.js +17 -4
  245. package/lib-es/bridge/react/BridgeSync.js.map +1 -1
  246. package/lib-es/bridge/syncSessionManager/index.d.ts +18 -0
  247. package/lib-es/bridge/syncSessionManager/index.d.ts.map +1 -0
  248. package/lib-es/bridge/syncSessionManager/index.js +68 -0
  249. package/lib-es/bridge/syncSessionManager/index.js.map +1 -0
  250. package/lib-es/bridge/syncSessionManager/index.test.d.ts +2 -0
  251. package/lib-es/bridge/syncSessionManager/index.test.d.ts.map +1 -0
  252. package/lib-es/bridge/syncSessionManager/index.test.js +116 -0
  253. package/lib-es/bridge/syncSessionManager/index.test.js.map +1 -0
  254. package/lib-es/deposit/deposit.integration.test.js +37 -1
  255. package/lib-es/deposit/deposit.integration.test.js.map +1 -1
  256. package/lib-es/e2e/data/deviceLabelsData.js +2 -2
  257. package/lib-es/e2e/data/deviceLabelsData.js.map +1 -1
  258. package/lib-es/e2e/enum/Account.d.ts +2 -0
  259. package/lib-es/e2e/enum/Account.d.ts.map +1 -1
  260. package/lib-es/e2e/enum/Account.js +3 -1
  261. package/lib-es/e2e/enum/Account.js.map +1 -1
  262. package/lib-es/e2e/enum/DeviceLabels.d.ts +3 -9
  263. package/lib-es/e2e/enum/DeviceLabels.d.ts.map +1 -1
  264. package/lib-es/e2e/enum/DeviceLabels.js +2 -8
  265. package/lib-es/e2e/enum/DeviceLabels.js.map +1 -1
  266. package/lib-es/e2e/enum/Network.d.ts +1 -0
  267. package/lib-es/e2e/enum/Network.d.ts.map +1 -1
  268. package/lib-es/e2e/enum/Network.js +1 -0
  269. package/lib-es/e2e/enum/Network.js.map +1 -1
  270. package/lib-es/e2e/families/bitcoin.d.ts +1 -0
  271. package/lib-es/e2e/families/bitcoin.d.ts.map +1 -1
  272. package/lib-es/e2e/families/bitcoin.js +27 -1
  273. package/lib-es/e2e/families/bitcoin.js.map +1 -1
  274. package/lib-es/e2e/families/tezos.d.ts.map +1 -1
  275. package/lib-es/e2e/families/tezos.js +6 -4
  276. package/lib-es/e2e/families/tezos.js.map +1 -1
  277. package/lib-es/e2e/index.d.ts +8 -0
  278. package/lib-es/e2e/index.d.ts.map +1 -1
  279. package/lib-es/e2e/models/Swap.d.ts +2 -0
  280. package/lib-es/e2e/models/Swap.d.ts.map +1 -1
  281. package/lib-es/e2e/models/Swap.js +6 -0
  282. package/lib-es/e2e/models/Swap.js.map +1 -1
  283. package/lib-es/e2e/speculos.d.ts +8 -0
  284. package/lib-es/e2e/speculos.d.ts.map +1 -1
  285. package/lib-es/e2e/speculos.js +23 -32
  286. package/lib-es/e2e/speculos.js.map +1 -1
  287. package/lib-es/exchange/providers/swap.js +2 -2
  288. package/lib-es/exchange/providers/swap.js.map +1 -1
  289. package/lib-es/families/canton/bridge/mock.d.ts.map +1 -1
  290. package/lib-es/families/canton/bridge/mock.js +1 -0
  291. package/lib-es/families/canton/bridge/mock.js.map +1 -1
  292. package/lib-es/families/canton/config.d.ts.map +1 -1
  293. package/lib-es/families/canton/config.js +2 -0
  294. package/lib-es/families/canton/config.js.map +1 -1
  295. package/lib-es/families/celo/bridge.integration.test.js +4 -1
  296. package/lib-es/families/celo/bridge.integration.test.js.map +1 -1
  297. package/lib-es/families/cosmos/datasets/axelar.integration.test.js +4 -1
  298. package/lib-es/families/cosmos/datasets/axelar.integration.test.js.map +1 -1
  299. package/lib-es/families/cosmos/datasets/desmos.integration.test.js +4 -1
  300. package/lib-es/families/cosmos/datasets/desmos.integration.test.js.map +1 -1
  301. package/lib-es/families/cosmos/datasets/onomy.integration.test.js +4 -1
  302. package/lib-es/families/cosmos/datasets/onomy.integration.test.js.map +1 -1
  303. package/lib-es/families/evm/config.d.ts.map +1 -1
  304. package/lib-es/families/evm/config.js +26 -0
  305. package/lib-es/families/evm/config.js.map +1 -1
  306. package/lib-es/families/filecoin/bridge.integration.test.js +4 -1
  307. package/lib-es/families/filecoin/bridge.integration.test.js.map +1 -1
  308. package/lib-es/families/mina/bridge.integration.test.js +4 -1
  309. package/lib-es/families/mina/bridge.integration.test.js.map +1 -1
  310. package/lib-es/families/multiversx/synchronisation.integration.test.js +4 -1
  311. package/lib-es/families/multiversx/synchronisation.integration.test.js.map +1 -1
  312. package/lib-es/families/tezos/react.d.ts +2 -1
  313. package/lib-es/families/tezos/react.d.ts.map +1 -1
  314. package/lib-es/families/tezos/react.js +17 -0
  315. package/lib-es/families/tezos/react.js.map +1 -1
  316. package/lib-es/families/tezos/setup.d.ts +1 -4
  317. package/lib-es/families/tezos/setup.d.ts.map +1 -1
  318. package/lib-es/families/tezos/setup.js +2 -9
  319. package/lib-es/families/tezos/setup.js.map +1 -1
  320. package/lib-es/families/ton/bridge.integration.test.js +4 -1
  321. package/lib-es/families/ton/bridge.integration.test.js.map +1 -1
  322. package/lib-es/featureFlags/defaultFeatures.d.ts +2 -0
  323. package/lib-es/featureFlags/defaultFeatures.d.ts.map +1 -1
  324. package/lib-es/featureFlags/defaultFeatures.js +4 -0
  325. package/lib-es/featureFlags/defaultFeatures.js.map +1 -1
  326. package/lib-es/featureFlags/useFeature.d.ts +1 -1
  327. package/lib-es/featureFlags/useFeature.d.ts.map +1 -1
  328. package/lib-es/generated/bridge/js.d.ts +0 -1
  329. package/lib-es/generated/bridge/js.d.ts.map +1 -1
  330. package/lib-es/generated/bridge/js.js +0 -2
  331. package/lib-es/generated/bridge/js.js.map +1 -1
  332. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts +1 -0
  333. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  334. package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.d.ts +1 -0
  335. package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.d.ts.map +1 -1
  336. package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.d.ts +1 -0
  337. package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.d.ts.map +1 -1
  338. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts +6 -1
  339. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -1
  340. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js +11 -14
  341. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -1
  342. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts +3 -1
  343. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
  344. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js +3 -3
  345. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
  346. package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
  347. package/lib-es/modularDrawer/modules/createAssetConfiguration.js +1 -0
  348. package/lib-es/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
  349. package/lib-es/modularDrawer/utils/groupCurrenciesByProvider.d.ts +7 -0
  350. package/lib-es/modularDrawer/utils/groupCurrenciesByProvider.d.ts.map +1 -0
  351. package/lib-es/modularDrawer/utils/groupCurrenciesByProvider.js +17 -0
  352. package/lib-es/modularDrawer/utils/groupCurrenciesByProvider.js.map +1 -0
  353. package/lib-es/modularDrawer/utils/index.d.ts +2 -1
  354. package/lib-es/modularDrawer/utils/index.d.ts.map +1 -1
  355. package/lib-es/modularDrawer/utils/index.js +2 -1
  356. package/lib-es/modularDrawer/utils/index.js.map +1 -1
  357. package/lib-es/modularDrawer/utils/type.d.ts +18 -0
  358. package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
  359. package/lib-es/notifications/ServiceStatusProvider/entry-points.d.ts +3 -0
  360. package/lib-es/notifications/ServiceStatusProvider/entry-points.d.ts.map +1 -0
  361. package/lib-es/notifications/ServiceStatusProvider/entry-points.js +2 -0
  362. package/lib-es/notifications/ServiceStatusProvider/entry-points.js.map +1 -0
  363. package/lib-es/notifications/ServiceStatusProvider/index.d.ts +18 -1
  364. package/lib-es/notifications/ServiceStatusProvider/index.d.ts.map +1 -1
  365. package/lib-es/notifications/ServiceStatusProvider/index.js +47 -9
  366. package/lib-es/notifications/ServiceStatusProvider/index.js.map +1 -1
  367. package/lib-es/notifications/ServiceStatusProvider/index.test.d.ts +2 -0
  368. package/lib-es/notifications/ServiceStatusProvider/index.test.d.ts.map +1 -0
  369. package/lib-es/notifications/ServiceStatusProvider/index.test.js +86 -0
  370. package/lib-es/notifications/ServiceStatusProvider/index.test.js.map +1 -0
  371. package/lib-es/notifications/ServiceStatusProvider/ledger-components.d.ts +2 -0
  372. package/lib-es/notifications/ServiceStatusProvider/ledger-components.d.ts.map +1 -0
  373. package/lib-es/notifications/ServiceStatusProvider/ledger-components.js +14 -0
  374. package/lib-es/notifications/ServiceStatusProvider/ledger-components.js.map +1 -0
  375. package/lib-es/notifications/ServiceStatusProvider/mocks/ledgerStatus.d.ts +154 -0
  376. package/lib-es/notifications/ServiceStatusProvider/mocks/ledgerStatus.d.ts.map +1 -0
  377. package/lib-es/notifications/ServiceStatusProvider/mocks/ledgerStatus.js +1189 -0
  378. package/lib-es/notifications/ServiceStatusProvider/mocks/ledgerStatus.js.map +1 -0
  379. package/lib-es/notifications/ServiceStatusProvider/types.d.ts +3 -1
  380. package/lib-es/notifications/ServiceStatusProvider/types.d.ts.map +1 -1
  381. package/lib-es/wallet-api/react.d.ts +1 -1
  382. package/lib-es/wallet-api/react.d.ts.map +1 -1
  383. package/lib-es/wallet-api/react.js +1 -1
  384. package/lib-es/wallet-api/react.js.map +1 -1
  385. package/package.json +45 -45
  386. package/src/__tests__/test-helpers/bridge.ts +1 -1
  387. package/src/__tests__/test-helpers/environment.ts +2 -0
  388. package/src/apps/config.ts +1 -1
  389. package/src/bridge/generic-alpaca/alpaca/index.ts +4 -0
  390. package/src/bridge/generic-alpaca/createTransaction.ts +11 -0
  391. package/src/bridge/generic-alpaca/estimateMaxSpendable.ts +6 -3
  392. package/src/bridge/generic-alpaca/getAccountShape.ts +13 -3
  393. package/src/bridge/generic-alpaca/getTransactionStatus.ts +6 -4
  394. package/src/bridge/generic-alpaca/prepareTransaction.ts +59 -6
  395. package/src/bridge/generic-alpaca/signOperation.ts +8 -2
  396. package/src/bridge/generic-alpaca/signer/index.ts +44 -1
  397. package/src/bridge/generic-alpaca/signer/signTransaction.ts +10 -0
  398. package/src/bridge/generic-alpaca/tests/estimateMaxSpendable.test.ts +15 -1
  399. package/src/bridge/generic-alpaca/tests/prepareTransaction.test.ts +1 -0
  400. package/src/bridge/generic-alpaca/tests/signOperation.test.ts +2 -2
  401. package/src/bridge/generic-alpaca/types.ts +13 -2
  402. package/src/bridge/generic-alpaca/utils.test.ts +65 -0
  403. package/src/bridge/generic-alpaca/utils.ts +42 -30
  404. package/src/bridge/impl.ts +1 -0
  405. package/src/bridge/react/BridgeSync.tsx +17 -3
  406. package/src/bridge/syncSessionManager/index.test.ts +151 -0
  407. package/src/bridge/syncSessionManager/index.ts +93 -0
  408. package/src/deposit/deposit.integration.test.ts +41 -2
  409. package/src/e2e/data/deviceLabelsData.ts +2 -2
  410. package/src/e2e/enum/Account.ts +13 -0
  411. package/src/e2e/enum/DeviceLabels.ts +2 -8
  412. package/src/e2e/enum/Network.ts +1 -0
  413. package/src/e2e/families/bitcoin.ts +33 -1
  414. package/src/e2e/families/tezos.ts +13 -4
  415. package/src/e2e/models/Swap.ts +8 -0
  416. package/src/e2e/speculos.ts +26 -35
  417. package/src/exchange/providers/swap.ts +2 -2
  418. package/src/families/canton/bridge/mock.ts +1 -0
  419. package/src/families/canton/config.ts +2 -0
  420. package/src/families/celo/bridge.integration.test.ts +4 -1
  421. package/src/families/cosmos/datasets/__snapshots__/babylon.integration.test.ts.snap +2 -2
  422. package/src/families/cosmos/datasets/__snapshots__/cosmos.integration.test.ts.snap +299 -4
  423. package/src/families/cosmos/datasets/__snapshots__/cryptoOrg.integration.test.ts.snap +2 -2
  424. package/src/families/cosmos/datasets/__snapshots__/injective.integration.test.ts.snap +2 -2
  425. package/src/families/cosmos/datasets/__snapshots__/mantra.integration.test.ts.snap +2 -2
  426. package/src/families/cosmos/datasets/__snapshots__/osmosis.integration.test.ts.snap +2 -2
  427. package/src/families/cosmos/datasets/__snapshots__/persistence.integration.test.ts.snap +4 -4
  428. package/src/families/cosmos/datasets/__snapshots__/stargaze.integration.test.ts.snap +2 -2
  429. package/src/families/cosmos/datasets/__snapshots__/xion.integration.test.ts.snap +2 -2
  430. package/src/families/cosmos/datasets/axelar.integration.test.ts +4 -1
  431. package/src/families/cosmos/datasets/desmos.integration.test.ts +4 -1
  432. package/src/families/cosmos/datasets/onomy.integration.test.ts +4 -1
  433. package/src/families/evm/config.ts +26 -0
  434. package/src/families/filecoin/bridge.integration.test.ts +4 -1
  435. package/src/families/internet_computer/__snapshots__/bridge.integration.test.ts.snap +60 -3
  436. package/src/families/mina/bridge.integration.test.ts +4 -1
  437. package/src/families/multiversx/synchronisation.integration.test.ts +5 -1
  438. package/src/families/polkadot/__snapshots__/bridge.integration.test.ts.snap +50 -4
  439. package/src/families/stacks/__snapshots__/bridge.integration.test.ts.snap +23 -3
  440. package/src/families/stellar/__snapshots__/bridge.integration.test.ts.snap +1490 -60
  441. package/src/families/tezos/react.ts +20 -1
  442. package/src/families/tezos/setup.ts +3 -22
  443. package/src/families/ton/bridge.integration.test.ts +4 -1
  444. package/src/featureFlags/defaultFeatures.ts +4 -0
  445. package/src/generated/bridge/js.ts +0 -2
  446. package/src/modularDrawer/hooks/useRightBalanceAsset.tsx +26 -21
  447. package/src/modularDrawer/hooks/useRightBalanceNetwork.tsx +4 -2
  448. package/src/modularDrawer/modules/createAssetConfiguration.ts +1 -0
  449. package/src/modularDrawer/utils/groupCurrenciesByProvider.ts +27 -0
  450. package/src/modularDrawer/utils/index.ts +2 -0
  451. package/src/modularDrawer/utils/type.ts +19 -0
  452. package/src/notifications/ServiceStatusProvider/entry-points.ts +3 -0
  453. package/src/notifications/ServiceStatusProvider/index.test.ts +102 -0
  454. package/src/notifications/ServiceStatusProvider/index.tsx +61 -13
  455. package/src/notifications/ServiceStatusProvider/ledger-components.ts +13 -0
  456. package/src/notifications/ServiceStatusProvider/mocks/ledgerStatus.ts +1188 -0
  457. package/src/notifications/ServiceStatusProvider/types.ts +4 -1
  458. package/src/wallet-api/react.ts +3 -3
  459. package/src/families/celo/__snapshots__/bridge.integration.test.ts.snap +0 -285
  460. package/src/families/cosmos/datasets/__snapshots__/axelar.integration.test.ts.snap +0 -45
  461. package/src/families/cosmos/datasets/__snapshots__/desmos.integration.test.ts.snap +0 -45
  462. package/src/families/cosmos/datasets/__snapshots__/onomy.integration.test.ts.snap +0 -45
  463. package/src/families/filecoin/__snapshots__/bridge.integration.test.ts.snap +0 -242
  464. package/src/families/mina/__snapshots__/bridge.integration.test.ts.snap +0 -169
  465. package/src/families/ton/__snapshots__/bridge.integration.test.ts.snap +0 -338
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/notifications/ServiceStatusProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAmD,YAAY,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,KAAK,EAAE,KAAK,EAAE,yBAAyB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAK5F,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,OAAO,CAAC,EAAE,yBAAyB,CAAC;CACrC,CAAC;AAEF,KAAK,GAAG,GAAG;IACT,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,GAAG,CAAC;AAU5C,w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qBAAqB,wDAK/B,KAAK,KAAG,YAgCV,CAAC"}
@@ -3,6 +3,7 @@ import defaultNetworkApi from "./api";
3
3
  import { fromPromise } from "xstate";
4
4
  import { useMachine } from "@xstate/react";
5
5
  import { serviceStatusMachine } from "./machine";
6
+ import { LEDGER_COMPONENTS } from "./ledger-components";
6
7
  const ServiceStatusContext = createContext({
7
8
  incidents: [],
8
9
  isLoading: false,
@@ -17,22 +18,59 @@ export function useServiceStatus() {
17
18
  function escapeRegExp(string) {
18
19
  return string.replace(/[.*+?^${}()[\]\\]/g, "\\$&"); // $& means the whole matched string
19
20
  }
20
- export function filterServiceStatusIncidents(incidents, tickers = []) {
21
- if (!tickers || tickers.length === 0 || !incidents || incidents.length === 0) {
21
+ function sanitizeName(name) {
22
+ return name.toLowerCase().trim().replace(/\s+/g, " "); // collapse multiple spaces
23
+ }
24
+ /**
25
+ * Filters service status incidents based on related tickers or Ledger components.
26
+ *
27
+ * ## Behavior:
28
+ * - If there are no `tickers` or no `incidents`, returns an empty list.
29
+ * - For each incident:
30
+ * 1. ✅ If the incident has no components → keep it (always relevant).
31
+ * 2. ✅ If at least one component name matches a known **Ledger component** → keep it.
32
+ * 3. ✅ If at least one component name contains a **currency ticker** → keep it.
33
+ * 4. ❌ Otherwise, the incident is discarded.
34
+ *
35
+ * @param {Incident[]} [incidents=[]] - List of incidents to filter.
36
+ * @param {string[]} [tickers=[]] - List of currency tickers to match against incident components.
37
+ * @param {EntryPoint} [entryPoint] - Entry point where the incidents are displayed (specifically for Ledger components)
38
+ * @returns {Incident[]} The list of incidents relevant to the provided tickers or Ledger components.
39
+ */
40
+ export function filterServiceStatusIncidents(incidents, tickers = [], entryPoint) {
41
+ if (!incidents.length)
42
+ return [];
43
+ if (!tickers.length)
22
44
  return [];
23
- }
24
- const tickersRegex = new RegExp(escapeRegExp(tickers.join("|")), "i");
25
- return incidents.filter(({ components }) => !components || // dont filter out if no components
26
- components.length === 0 ||
27
- components.some(({ name }) => tickersRegex.test(name)));
45
+ const tickerRegex = tickers.length
46
+ ? new RegExp(`\\b(${tickers.map(escapeRegExp).join("|")})\\b`, "i")
47
+ : null;
48
+ const ledgerComponentsSet = new Set(LEDGER_COMPONENTS.map(component => sanitizeName(component)));
49
+ return incidents.filter(({ components }) => {
50
+ // Keep global incidents with no components
51
+ if (!components?.length)
52
+ return true;
53
+ return components.some(({ name }) => {
54
+ const sanitizedName = sanitizeName(name);
55
+ // Show Ledger components only for Notification Center
56
+ if (entryPoint === "notifications" && ledgerComponentsSet.has(sanitizedName)) {
57
+ return true;
58
+ }
59
+ // Show coin/ticker-specific components for flows
60
+ if (tickerRegex && tickerRegex.test(sanitizedName)) {
61
+ return true;
62
+ }
63
+ return false;
64
+ });
65
+ });
28
66
  }
29
67
  // filter out service status incidents by given currencies or fallback on context currencies
30
68
  export function useFilteredServiceStatus(filters) {
31
69
  const stateData = useContext(ServiceStatusContext);
32
70
  const { incidents, context } = stateData;
33
71
  const filteredIncidents = useMemo(() => {
34
- return filterServiceStatusIncidents(incidents, filters?.tickers || context?.tickers);
35
- }, [incidents, context, filters?.tickers]);
72
+ return filterServiceStatusIncidents(incidents, filters?.tickers || context?.tickers, filters?.entryPoint);
73
+ }, [incidents, filters?.tickers, context?.tickers, filters?.entryPoint]);
36
74
  return { ...stateData, incidents: filteredIncidents };
37
75
  }
38
76
  export const ServiceStatusProvider = ({ children, autoUpdateDelay, networkApi = defaultNetworkApi, context, }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/notifications/ServiceStatusProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAgB,MAAM,OAAO,CAAC;AAE7F,OAAO,iBAAiB,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAA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,EAAE,aAAa;aACpB,CAAC,CAAC;QACL,CAAC;KACF,CAAC,EACF,CAAC,IAAI,CAAC,CACP,CAAC;IACF,MAAM,KAAK,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,GAAG,GAAG,EAAE,OAAO,EAAE,CAAC;IAC5D,OAAO,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,IAAG,QAAQ,CAAiC,CAAC;AACjG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/notifications/ServiceStatusProvider/index.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,86 @@
1
+ import { filterServiceStatusIncidents } from "./index";
2
+ import { LEDGER_COMPONENTS } from "./ledger-components";
3
+ const makeIncident = (overrides = {}) => ({
4
+ created_at: "2025-01-01T00:00:00Z",
5
+ id: Math.random().toString(16).slice(2),
6
+ impact: "minor",
7
+ incident_updates: [],
8
+ monitoring_at: null,
9
+ name: "Test incident",
10
+ page_id: null,
11
+ resolved_at: null,
12
+ shortlink: null,
13
+ status: "investigating",
14
+ updated_at: null,
15
+ ...overrides,
16
+ });
17
+ describe("filterServiceStatusIncidents", () => {
18
+ it("returns empty when no tickers or no incidents", () => {
19
+ expect(filterServiceStatusIncidents([], ["BTC"]).length).toBe(0);
20
+ expect(filterServiceStatusIncidents([makeIncident()], []).length).toBe(0);
21
+ });
22
+ it("matches incidents with known Ledger components (case-insensitive)", () => {
23
+ const incidents = [
24
+ makeIncident({ components: [{ id: "1", name: "Ledger Application Store" }] }),
25
+ makeIncident({ components: [{ id: "2", name: "ledger appliCAtion store" }] }),
26
+ makeIncident({ components: [{ id: "3", name: "Unknown Component" }] }),
27
+ ];
28
+ const result = filterServiceStatusIncidents(incidents, ["BTC"], "notifications");
29
+ expect(result.map(i => i.components?.[0].id)).toEqual(["1", "2"]);
30
+ });
31
+ it("matches incidents if a component contains a tracked ticker as a whole word (case-insensitive)", () => {
32
+ const incidents = [
33
+ makeIncident({ components: [{ id: "1", name: "BTC Node" }] }),
34
+ makeIncident({ components: [{ id: "2", name: "eth Node" }] }),
35
+ makeIncident({ components: [{ id: "3", name: "TETHER Service" }] }),
36
+ makeIncident({ components: [{ id: "4", name: "NOTBTCService" }] }),
37
+ ];
38
+ const result = filterServiceStatusIncidents(incidents, ["BTC", "ETH"]);
39
+ expect(result.map(i => i.components?.[0].id)).toEqual(["1", "2"]);
40
+ });
41
+ it("includes incidents with no components array or empty array", () => {
42
+ const incidents = [
43
+ makeIncident({ components: undefined }),
44
+ makeIncident({ components: [] }),
45
+ ];
46
+ const result = filterServiceStatusIncidents(incidents, ["BTC"]);
47
+ expect(result.length).toBe(2);
48
+ });
49
+ it("escapes tickers so special regex characters do not break matching", () => {
50
+ const incidents = [
51
+ makeIncident({ components: [{ id: "1", name: "USDT Node" }] }),
52
+ makeIncident({ components: [{ id: "2", name: "US.DT Node" }] }),
53
+ makeIncident({ components: [{ id: "3", name: "(USDT) Node" }] }),
54
+ makeIncident({ components: [{ id: "4", name: "Ethereum Node" }] }),
55
+ makeIncident({ components: [{ id: "5", name: "Ethereum (ETH) swap issue" }] }),
56
+ ];
57
+ const result = filterServiceStatusIncidents(incidents, ["USDT", "ETH"]);
58
+ expect(result.map(i => i.components?.[0].id)).toEqual(["1", "3", "5"]);
59
+ expect(result.length).toBe(3);
60
+ });
61
+ it("matches incidents for all known Ledger components", () => {
62
+ const incidents = LEDGER_COMPONENTS.map((name, index) => makeIncident({ components: [{ id: `${index + 1}`, name }] }));
63
+ const result = filterServiceStatusIncidents(incidents, ["BTC"], "notifications");
64
+ expect(result.length).toBe(LEDGER_COMPONENTS.length);
65
+ });
66
+ it("filters correctly with common tickers", () => {
67
+ const tickers = ["XRP", "SOL", "ETH", "BTC", "ADA", "USDC", "USDT"];
68
+ const incidents = [
69
+ makeIncident({ components: [{ id: "1", name: "BTC Node" }] }),
70
+ makeIncident({ components: [{ id: "2", name: "eth Node" }] }),
71
+ makeIncident({ components: [{ id: "3", name: "ADA-Service" }] }),
72
+ makeIncident({ components: [{ id: "4", name: "usdc gateway" }] }),
73
+ makeIncident({ components: [{ id: "5", name: "NOTUSDTService" }] }),
74
+ makeIncident({ components: [{ id: "6", name: "USDT" }] }),
75
+ makeIncident({ components: [{ id: "7", name: "xrp relayer" }] }),
76
+ makeIncident({ components: [{ id: "8", name: "SOL Node" }] }),
77
+ makeIncident({ components: [{ id: "9", name: "SOLANA Node" }] }),
78
+ makeIncident({ components: [{ id: "10", name: "Random Service" }] }),
79
+ makeIncident({ components: [] }),
80
+ ];
81
+ const result = filterServiceStatusIncidents(incidents, tickers);
82
+ expect(result.map(i => i.components?.[0]?.id)).toEqual(["1", "2", "3", "4", "6", "7", "8"]);
83
+ expect(result.length).toBe(8);
84
+ });
85
+ });
86
+ //# sourceMappingURL=index.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../src/notifications/ServiceStatusProvider/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,MAAM,YAAY,GAAG,CAAC,YAA+B,EAAE,EAAY,EAAE,CAAC,CAAC;IACrE,UAAU,EAAE,sBAAsB;IAClC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACvC,MAAM,EAAE,OAAO;IACf,gBAAgB,EAAE,EAAE;IACpB,aAAa,EAAE,IAAI;IACnB,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,IAAI;IACb,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,eAAe;IACvB,UAAU,EAAE,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AY,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;YAC7D,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;YAChE,YAAY,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,EAAE,CAAC;YACpE,YAAY,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;SACjC,CAAC;QAEF,MAAM,MAAM,GAAG,4BAA4B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAC5F,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const LEDGER_COMPONENTS: readonly ["Ledger Application Store", "Ledger Live Security Services", "Swap API", "Buy", "Earn Dashboard", "Crypto Assets Service", "Cloud Sync", "Trustchain", "Loyalty Program", "Card Program", "Countervalue API"];
2
+ //# sourceMappingURL=ledger-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ledger-components.d.ts","sourceRoot":"","sources":["../../../src/notifications/ServiceStatusProvider/ledger-components.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,yNAYpB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export const LEDGER_COMPONENTS = [
2
+ "Ledger Application Store",
3
+ "Ledger Live Security Services",
4
+ "Swap API",
5
+ "Buy",
6
+ "Earn Dashboard",
7
+ "Crypto Assets Service",
8
+ "Cloud Sync",
9
+ "Trustchain",
10
+ "Loyalty Program",
11
+ "Card Program",
12
+ "Countervalue API",
13
+ ];
14
+ //# sourceMappingURL=ledger-components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ledger-components.js","sourceRoot":"","sources":["../../../src/notifications/ServiceStatusProvider/ledger-components.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,0BAA0B;IAC1B,+BAA+B;IAC/B,UAAU;IACV,KAAK;IACL,gBAAgB;IAChB,uBAAuB;IACvB,YAAY;IACZ,YAAY;IACZ,iBAAiB;IACjB,cAAc;IACd,kBAAkB;CACV,CAAC"}
@@ -0,0 +1,154 @@
1
+ export declare const mockLedgerStatus: {
2
+ page: {
3
+ id: string;
4
+ name: string;
5
+ url: string;
6
+ time_zone: string;
7
+ updated_at: string;
8
+ };
9
+ components: ({
10
+ id: string;
11
+ name: string;
12
+ status: string;
13
+ created_at: string;
14
+ updated_at: string;
15
+ position: number;
16
+ description: null;
17
+ showcase: boolean;
18
+ start_date: string;
19
+ group_id: string;
20
+ page_id: string;
21
+ group: boolean;
22
+ only_show_if_degraded: boolean;
23
+ components?: undefined;
24
+ } | {
25
+ id: string;
26
+ name: string;
27
+ status: string;
28
+ created_at: string;
29
+ updated_at: string;
30
+ position: number;
31
+ description: null;
32
+ showcase: boolean;
33
+ start_date: null;
34
+ group_id: null;
35
+ page_id: string;
36
+ group: boolean;
37
+ only_show_if_degraded: boolean;
38
+ components: string[];
39
+ } | {
40
+ id: string;
41
+ name: string;
42
+ status: string;
43
+ created_at: string;
44
+ updated_at: string;
45
+ position: number;
46
+ description: null;
47
+ showcase: boolean;
48
+ start_date: string;
49
+ group_id: null;
50
+ page_id: string;
51
+ group: boolean;
52
+ only_show_if_degraded: boolean;
53
+ components?: undefined;
54
+ })[];
55
+ incidents: ({
56
+ id: string;
57
+ name: string;
58
+ status: string;
59
+ created_at: string;
60
+ updated_at: string;
61
+ monitoring_at: null;
62
+ resolved_at: null;
63
+ impact: string;
64
+ shortlink: string;
65
+ started_at: string;
66
+ page_id: string;
67
+ incident_updates: {
68
+ id: string;
69
+ status: string;
70
+ body: string;
71
+ incident_id: string;
72
+ created_at: string;
73
+ updated_at: string;
74
+ display_at: string;
75
+ affected_components: {
76
+ code: string;
77
+ name: string;
78
+ old_status: string;
79
+ new_status: string;
80
+ }[];
81
+ deliver_notifications: boolean;
82
+ custom_tweet: null;
83
+ tweet_id: null;
84
+ }[];
85
+ components: {
86
+ id: string;
87
+ name: string;
88
+ status: string;
89
+ created_at: string;
90
+ updated_at: string;
91
+ position: number;
92
+ description: null;
93
+ showcase: boolean;
94
+ start_date: string;
95
+ group_id: string;
96
+ page_id: string;
97
+ group: boolean;
98
+ only_show_if_degraded: boolean;
99
+ }[];
100
+ reminder_intervals: string;
101
+ } | {
102
+ id: string;
103
+ name: string;
104
+ status: string;
105
+ created_at: string;
106
+ updated_at: string;
107
+ monitoring_at: null;
108
+ resolved_at: null;
109
+ impact: string;
110
+ shortlink: string;
111
+ started_at: string;
112
+ page_id: string;
113
+ incident_updates: {
114
+ id: string;
115
+ status: string;
116
+ body: string;
117
+ incident_id: string;
118
+ created_at: string;
119
+ updated_at: string;
120
+ display_at: string;
121
+ affected_components: {
122
+ code: string;
123
+ name: string;
124
+ old_status: string;
125
+ new_status: string;
126
+ }[];
127
+ deliver_notifications: boolean;
128
+ custom_tweet: null;
129
+ tweet_id: null;
130
+ }[];
131
+ components: {
132
+ id: string;
133
+ name: string;
134
+ status: string;
135
+ created_at: string;
136
+ updated_at: string;
137
+ position: number;
138
+ description: null;
139
+ showcase: boolean;
140
+ start_date: string;
141
+ group_id: null;
142
+ page_id: string;
143
+ group: boolean;
144
+ only_show_if_degraded: boolean;
145
+ }[];
146
+ reminder_intervals: string;
147
+ })[];
148
+ scheduled_maintenances: never[];
149
+ status: {
150
+ indicator: string;
151
+ description: string;
152
+ };
153
+ };
154
+ //# sourceMappingURL=ledgerStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ledgerStatus.d.ts","sourceRoot":"","sources":["../../../../src/notifications/ServiceStatusProvider/mocks/ledgerStatus.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmqC5B,CAAC"}