@ledgerhq/live-common 34.50.0 → 34.51.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 (710) 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 +1 -1
  4. package/lib/__tests__/test-helpers/environment.js.map +1 -1
  5. package/lib/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  6. package/lib/bridge/generic-alpaca/alpaca/index.js +3 -0
  7. package/lib/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  8. package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts +4 -4
  9. package/lib/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -1
  10. package/lib/bridge/generic-alpaca/buildSubAccounts.js +7 -9
  11. package/lib/bridge/generic-alpaca/buildSubAccounts.js.map +1 -1
  12. package/lib/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
  13. package/lib/bridge/generic-alpaca/createTransaction.js +11 -0
  14. package/lib/bridge/generic-alpaca/createTransaction.js.map +1 -1
  15. package/lib/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  16. package/lib/bridge/generic-alpaca/getAccountShape.js +15 -9
  17. package/lib/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  18. package/lib/bridge/generic-alpaca/getTransactionStatus.js +1 -1
  19. package/lib/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
  20. package/lib/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
  21. package/lib/bridge/generic-alpaca/prepareTransaction.js +29 -4
  22. package/lib/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
  23. package/lib/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
  24. package/lib/bridge/generic-alpaca/signer/index.js +37 -0
  25. package/lib/bridge/generic-alpaca/signer/index.js.map +1 -1
  26. package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -0
  27. package/lib/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
  28. package/lib/bridge/generic-alpaca/signer/signTransaction.js +8 -1
  29. package/lib/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
  30. package/lib/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js +15 -1
  31. package/lib/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js.map +1 -1
  32. package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js +5 -3
  33. package/lib/bridge/generic-alpaca/tests/getAccountShape.test.js.map +1 -1
  34. package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js +60 -0
  35. package/lib/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
  36. package/lib/bridge/generic-alpaca/tests/signOperation.test.js +1 -1
  37. package/lib/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
  38. package/lib/bridge/generic-alpaca/types.d.ts +1 -2
  39. package/lib/bridge/generic-alpaca/types.d.ts.map +1 -1
  40. package/lib/bridge/generic-alpaca/utils.d.ts +2 -2
  41. package/lib/bridge/generic-alpaca/utils.d.ts.map +1 -1
  42. package/lib/bridge/generic-alpaca/utils.js +23 -4
  43. package/lib/bridge/generic-alpaca/utils.js.map +1 -1
  44. package/lib/bridge/impl.d.ts.map +1 -1
  45. package/lib/bridge/impl.js +1 -0
  46. package/lib/bridge/impl.js.map +1 -1
  47. package/lib/dada-client/entities/index.d.ts.map +1 -0
  48. package/lib/dada-client/entities/index.js.map +1 -0
  49. package/lib/{modularDrawer/data → dada-client}/entities/interestRateSelectors.d.ts +1 -1
  50. package/lib/dada-client/entities/interestRateSelectors.d.ts.map +1 -0
  51. package/lib/dada-client/entities/interestRateSelectors.js.map +1 -0
  52. package/lib/{modularDrawer/data → dada-client}/entities/marketSelectors.d.ts +1 -1
  53. package/lib/dada-client/entities/marketSelectors.d.ts.map +1 -0
  54. package/lib/dada-client/entities/marketSelectors.js.map +1 -0
  55. package/lib/dada-client/entities/selectorUtils.d.ts.map +1 -0
  56. package/lib/dada-client/entities/selectorUtils.js.map +1 -0
  57. package/lib/dada-client/hooks/__tests__/useAssetsData.test.d.ts.map +1 -0
  58. package/lib/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.js +2 -2
  59. package/lib/dada-client/hooks/__tests__/useAssetsData.test.js.map +1 -0
  60. package/lib/dada-client/hooks/useAssetData.d.ts +10 -0
  61. package/lib/dada-client/hooks/useAssetData.d.ts.map +1 -0
  62. package/lib/dada-client/hooks/useAssetData.js +23 -0
  63. package/lib/dada-client/hooks/useAssetData.js.map +1 -0
  64. package/lib/dada-client/hooks/useAssetsData.d.ts +19 -0
  65. package/lib/dada-client/hooks/useAssetsData.d.ts.map +1 -0
  66. package/lib/{modularDrawer → dada-client}/hooks/useAssetsData.js +1 -1
  67. package/lib/dada-client/hooks/useAssetsData.js.map +1 -0
  68. package/lib/dada-client/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
  69. package/lib/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.js +3 -3
  70. package/lib/dada-client/hooks/useInterestRatesByCurrencies.js.map +1 -0
  71. package/lib/dada-client/hooks/useMarketByCurrencies.d.ts.map +1 -0
  72. package/lib/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.js +5 -6
  73. package/lib/dada-client/hooks/useMarketByCurrencies.js.map +1 -0
  74. package/lib/{modularDrawer/data → dada-client}/state-manager/api.d.ts +134 -1
  75. package/lib/{modularDrawer/data → dada-client}/state-manager/api.d.ts.map +1 -1
  76. package/lib/{modularDrawer/data → dada-client}/state-manager/api.js +21 -2
  77. package/lib/dada-client/state-manager/api.js.map +1 -0
  78. package/lib/dada-client/state-manager/types.d.ts.map +1 -0
  79. package/lib/dada-client/state-manager/types.js.map +1 -0
  80. package/lib/dada-client/types/trend.d.ts +2 -0
  81. package/lib/dada-client/types/trend.d.ts.map +1 -0
  82. package/lib/dada-client/types/trend.js +3 -0
  83. package/lib/dada-client/types/trend.js.map +1 -0
  84. package/lib/deposit/useGroupedCurrenciesByProvider.hook.d.ts.map +1 -1
  85. package/lib/deposit/useGroupedCurrenciesByProvider.hook.js +6 -1
  86. package/lib/deposit/useGroupedCurrenciesByProvider.hook.js.map +1 -1
  87. package/lib/e2e/enum/Account.d.ts +2 -0
  88. package/lib/e2e/enum/Account.d.ts.map +1 -1
  89. package/lib/e2e/enum/Account.js +4 -0
  90. package/lib/e2e/enum/Account.js.map +1 -1
  91. package/lib/e2e/enum/AppInfos.d.ts +1 -0
  92. package/lib/e2e/enum/AppInfos.d.ts.map +1 -1
  93. package/lib/e2e/enum/AppInfos.js +1 -0
  94. package/lib/e2e/enum/AppInfos.js.map +1 -1
  95. package/lib/e2e/enum/Currency.d.ts +2 -0
  96. package/lib/e2e/enum/Currency.d.ts.map +1 -1
  97. package/lib/e2e/enum/Currency.js +4 -0
  98. package/lib/e2e/enum/Currency.js.map +1 -1
  99. package/lib/e2e/enum/Network.d.ts +2 -1
  100. package/lib/e2e/enum/Network.d.ts.map +1 -1
  101. package/lib/e2e/enum/Network.js +1 -0
  102. package/lib/e2e/enum/Network.js.map +1 -1
  103. package/lib/e2e/enum/Provider.d.ts +1 -0
  104. package/lib/e2e/enum/Provider.d.ts.map +1 -1
  105. package/lib/e2e/enum/Provider.js +1 -0
  106. package/lib/e2e/enum/Provider.js.map +1 -1
  107. package/lib/e2e/families/hedera.d.ts +2 -0
  108. package/lib/e2e/families/hedera.d.ts.map +1 -0
  109. package/lib/e2e/families/hedera.js +11 -0
  110. package/lib/e2e/families/hedera.js.map +1 -0
  111. package/lib/e2e/speculos.d.ts.map +1 -1
  112. package/lib/e2e/speculos.js +12 -0
  113. package/lib/e2e/speculos.js.map +1 -1
  114. package/lib/e2e/swap.d.ts +1 -1
  115. package/lib/e2e/swap.d.ts.map +1 -1
  116. package/lib/e2e/swap.js +6 -5
  117. package/lib/e2e/swap.js.map +1 -1
  118. package/lib/exchange/platform/types.d.ts +2 -0
  119. package/lib/exchange/platform/types.d.ts.map +1 -1
  120. package/lib/exchange/swap/completeExchange.d.ts.map +1 -1
  121. package/lib/exchange/swap/completeExchange.js +22 -1
  122. package/lib/exchange/swap/completeExchange.js.map +1 -1
  123. package/lib/exchange/swap/getIncompatibleCurrencyKeys.d.ts.map +1 -1
  124. package/lib/exchange/swap/getIncompatibleCurrencyKeys.js +8 -0
  125. package/lib/exchange/swap/getIncompatibleCurrencyKeys.js.map +1 -1
  126. package/lib/exchange/swap/postSwapState.d.ts.map +1 -1
  127. package/lib/exchange/swap/postSwapState.js +19 -23
  128. package/lib/exchange/swap/postSwapState.js.map +1 -1
  129. package/lib/exchange/swap/setBroadcastTransaction.d.ts +4 -4
  130. package/lib/exchange/swap/setBroadcastTransaction.js +7 -7
  131. package/lib/exchange/swap/setBroadcastTransaction.js.map +1 -1
  132. package/lib/exchange/swap/types.d.ts +3 -3
  133. package/lib/exchange/swap/types.d.ts.map +1 -1
  134. package/lib/exchange/swap/updateAccountSwapStatus.d.ts.map +1 -1
  135. package/lib/exchange/swap/updateAccountSwapStatus.js +6 -4
  136. package/lib/exchange/swap/updateAccountSwapStatus.js.map +1 -1
  137. package/lib/families/canton/config.js +10 -10
  138. package/lib/families/canton/config.js.map +1 -1
  139. package/lib/families/evm/shouldUseReceiveOptions.d.ts +3 -0
  140. package/lib/families/evm/shouldUseReceiveOptions.d.ts.map +1 -0
  141. package/lib/families/evm/shouldUseReceiveOptions.js +5 -0
  142. package/lib/families/evm/shouldUseReceiveOptions.js.map +1 -0
  143. package/lib/families/evm/shouldUseReceiveOptions.test.d.ts +2 -0
  144. package/lib/families/evm/shouldUseReceiveOptions.test.d.ts.map +1 -0
  145. package/lib/families/evm/shouldUseReceiveOptions.test.js +26 -0
  146. package/lib/families/evm/shouldUseReceiveOptions.test.js.map +1 -0
  147. package/lib/families/hedera/exchange.d.ts +9 -0
  148. package/lib/families/hedera/exchange.d.ts.map +1 -0
  149. package/lib/families/hedera/exchange.js +36 -0
  150. package/lib/families/hedera/exchange.js.map +1 -0
  151. package/lib/families/tezos/config.js +2 -2
  152. package/lib/families/tezos/react.d.ts +2 -1
  153. package/lib/families/tezos/react.d.ts.map +1 -1
  154. package/lib/families/tezos/react.js +19 -1
  155. package/lib/families/tezos/react.js.map +1 -1
  156. package/lib/families/tezos/setup.d.ts +1 -4
  157. package/lib/families/tezos/setup.d.ts.map +1 -1
  158. package/lib/families/tezos/setup.js +3 -11
  159. package/lib/families/tezos/setup.js.map +1 -1
  160. package/lib/generated/bridge/js.d.ts +0 -1
  161. package/lib/generated/bridge/js.d.ts.map +1 -1
  162. package/lib/generated/bridge/js.js +10 -12
  163. package/lib/generated/bridge/js.js.map +1 -1
  164. package/lib/hw/actions/completeExchange.d.ts +2 -0
  165. package/lib/hw/actions/completeExchange.d.ts.map +1 -1
  166. package/lib/hw/actions/completeExchange.js +1 -0
  167. package/lib/hw/actions/completeExchange.js.map +1 -1
  168. package/lib/hw/signMessage/index.d.ts.map +1 -1
  169. package/lib/hw/signMessage/index.js +7 -0
  170. package/lib/hw/signMessage/index.js.map +1 -1
  171. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts +1 -1
  172. package/lib/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  173. package/lib/modularDrawer/hooks/modules/useLeftApyModule.js +1 -1
  174. package/lib/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
  175. package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.js +1 -1
  176. package/lib/modularDrawer/hooks/modules/useLeftMarketTrendModule.js.map +1 -1
  177. package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.js +6 -3
  178. package/lib/modularDrawer/hooks/modules/useRightMarketTrendModule.js.map +1 -1
  179. package/lib/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -1
  180. package/lib/modularDrawer/hooks/useAssetAccountCounts.js +2 -4
  181. package/lib/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -1
  182. package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.d.ts +7 -0
  183. package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.d.ts.map +1 -0
  184. package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js +224 -0
  185. package/lib/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js.map +1 -0
  186. package/lib/modularDrawer/hooks/useLeftAccountsApy.js +1 -1
  187. package/lib/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
  188. package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts +8 -10
  189. package/lib/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -1
  190. package/lib/modularDrawer/hooks/useRightBalanceAsset.js +21 -64
  191. package/lib/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -1
  192. package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts +7 -28
  193. package/lib/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
  194. package/lib/modularDrawer/hooks/useRightBalanceNetwork.js +12 -56
  195. package/lib/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
  196. package/lib/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
  197. package/lib/modularDrawer/modules/createAssetConfiguration.js +2 -2
  198. package/lib/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
  199. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts +1 -1
  200. package/lib/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
  201. package/lib/modularDrawer/modules/createNetworkConfiguration.js +15 -4
  202. package/lib/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
  203. package/lib/modularDrawer/utils/__tests__/calculateProviderTotal.test.d.ts +2 -0
  204. package/lib/modularDrawer/utils/__tests__/calculateProviderTotal.test.d.ts.map +1 -0
  205. package/lib/modularDrawer/utils/__tests__/calculateProviderTotal.test.js +212 -0
  206. package/lib/modularDrawer/utils/__tests__/calculateProviderTotal.test.js.map +1 -0
  207. package/lib/modularDrawer/utils/__tests__/groupAccountsByAsset.test.d.ts +2 -0
  208. package/lib/modularDrawer/utils/__tests__/groupAccountsByAsset.test.d.ts.map +1 -0
  209. package/lib/modularDrawer/utils/__tests__/groupAccountsByAsset.test.js +202 -0
  210. package/lib/modularDrawer/utils/__tests__/groupAccountsByAsset.test.js.map +1 -0
  211. package/lib/modularDrawer/utils/calculateProviderTotal.d.ts +1 -0
  212. package/lib/modularDrawer/utils/calculateProviderTotal.d.ts.map +1 -1
  213. package/lib/modularDrawer/utils/calculateProviderTotal.js +10 -2
  214. package/lib/modularDrawer/utils/calculateProviderTotal.js.map +1 -1
  215. package/lib/modularDrawer/utils/currencyUtils.d.ts.map +1 -1
  216. package/lib/modularDrawer/utils/currencyUtils.js.map +1 -1
  217. package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts +6 -4
  218. package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts.map +1 -1
  219. package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.js +9 -22
  220. package/lib/modularDrawer/utils/getBalanceAndFiatValueByAssets.js.map +1 -1
  221. package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts +1 -1
  222. package/lib/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -1
  223. package/lib/modularDrawer/utils/groupAccountsByAsset.d.ts +4 -3
  224. package/lib/modularDrawer/utils/groupAccountsByAsset.d.ts.map +1 -1
  225. package/lib/modularDrawer/utils/groupAccountsByAsset.js +27 -11
  226. package/lib/modularDrawer/utils/groupAccountsByAsset.js.map +1 -1
  227. package/lib/modularDrawer/utils/index.d.ts +2 -6
  228. package/lib/modularDrawer/utils/index.d.ts.map +1 -1
  229. package/lib/modularDrawer/utils/index.js +2 -13
  230. package/lib/modularDrawer/utils/index.js.map +1 -1
  231. package/lib/modularDrawer/utils/index.test.js +0 -26
  232. package/lib/modularDrawer/utils/index.test.js.map +1 -1
  233. package/lib/modularDrawer/utils/sortByBalance.d.ts +1 -3
  234. package/lib/modularDrawer/utils/sortByBalance.d.ts.map +1 -1
  235. package/lib/modularDrawer/utils/sortByBalance.js +6 -18
  236. package/lib/modularDrawer/utils/sortByBalance.js.map +1 -1
  237. package/lib/modularDrawer/utils/type.d.ts +15 -17
  238. package/lib/modularDrawer/utils/type.d.ts.map +1 -1
  239. package/lib/wallet-api/CustomDeeplink/server.d.ts +16 -0
  240. package/lib/wallet-api/CustomDeeplink/server.d.ts.map +1 -0
  241. package/lib/wallet-api/CustomDeeplink/server.js +10 -0
  242. package/lib/wallet-api/CustomDeeplink/server.js.map +1 -0
  243. package/lib/wallet-api/Exchange/server.js +6 -6
  244. package/lib/wallet-api/Exchange/server.js.map +1 -1
  245. package/lib/wallet-api/constants.d.ts +1 -1
  246. package/lib/wallet-api/constants.d.ts.map +1 -1
  247. package/lib-es/__tests__/test-helpers/bridge.js +1 -1
  248. package/lib-es/__tests__/test-helpers/bridge.js.map +1 -1
  249. package/lib-es/__tests__/test-helpers/environment.js +1 -1
  250. package/lib-es/__tests__/test-helpers/environment.js.map +1 -1
  251. package/lib-es/bridge/generic-alpaca/alpaca/index.d.ts.map +1 -1
  252. package/lib-es/bridge/generic-alpaca/alpaca/index.js +3 -0
  253. package/lib-es/bridge/generic-alpaca/alpaca/index.js.map +1 -1
  254. package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts +4 -4
  255. package/lib-es/bridge/generic-alpaca/buildSubAccounts.d.ts.map +1 -1
  256. package/lib-es/bridge/generic-alpaca/buildSubAccounts.js +7 -9
  257. package/lib-es/bridge/generic-alpaca/buildSubAccounts.js.map +1 -1
  258. package/lib-es/bridge/generic-alpaca/createTransaction.d.ts.map +1 -1
  259. package/lib-es/bridge/generic-alpaca/createTransaction.js +11 -0
  260. package/lib-es/bridge/generic-alpaca/createTransaction.js.map +1 -1
  261. package/lib-es/bridge/generic-alpaca/getAccountShape.d.ts.map +1 -1
  262. package/lib-es/bridge/generic-alpaca/getAccountShape.js +15 -9
  263. package/lib-es/bridge/generic-alpaca/getAccountShape.js.map +1 -1
  264. package/lib-es/bridge/generic-alpaca/getTransactionStatus.js +1 -1
  265. package/lib-es/bridge/generic-alpaca/getTransactionStatus.js.map +1 -1
  266. package/lib-es/bridge/generic-alpaca/prepareTransaction.d.ts.map +1 -1
  267. package/lib-es/bridge/generic-alpaca/prepareTransaction.js +29 -4
  268. package/lib-es/bridge/generic-alpaca/prepareTransaction.js.map +1 -1
  269. package/lib-es/bridge/generic-alpaca/signer/index.d.ts.map +1 -1
  270. package/lib-es/bridge/generic-alpaca/signer/index.js +38 -1
  271. package/lib-es/bridge/generic-alpaca/signer/index.js.map +1 -1
  272. package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts +2 -0
  273. package/lib-es/bridge/generic-alpaca/signer/signTransaction.d.ts.map +1 -1
  274. package/lib-es/bridge/generic-alpaca/signer/signTransaction.js +6 -0
  275. package/lib-es/bridge/generic-alpaca/signer/signTransaction.js.map +1 -1
  276. package/lib-es/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js +15 -1
  277. package/lib-es/bridge/generic-alpaca/tests/estimateMaxSpendable.test.js.map +1 -1
  278. package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js +5 -3
  279. package/lib-es/bridge/generic-alpaca/tests/getAccountShape.test.js.map +1 -1
  280. package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js +60 -0
  281. package/lib-es/bridge/generic-alpaca/tests/prepareTransaction.test.js.map +1 -1
  282. package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js +1 -1
  283. package/lib-es/bridge/generic-alpaca/tests/signOperation.test.js.map +1 -1
  284. package/lib-es/bridge/generic-alpaca/types.d.ts +1 -2
  285. package/lib-es/bridge/generic-alpaca/types.d.ts.map +1 -1
  286. package/lib-es/bridge/generic-alpaca/utils.d.ts +2 -2
  287. package/lib-es/bridge/generic-alpaca/utils.d.ts.map +1 -1
  288. package/lib-es/bridge/generic-alpaca/utils.js +23 -4
  289. package/lib-es/bridge/generic-alpaca/utils.js.map +1 -1
  290. package/lib-es/bridge/impl.d.ts.map +1 -1
  291. package/lib-es/bridge/impl.js +1 -0
  292. package/lib-es/bridge/impl.js.map +1 -1
  293. package/lib-es/dada-client/entities/index.d.ts.map +1 -0
  294. package/lib-es/dada-client/entities/index.js.map +1 -0
  295. package/lib-es/{modularDrawer/data → dada-client}/entities/interestRateSelectors.d.ts +1 -1
  296. package/lib-es/dada-client/entities/interestRateSelectors.d.ts.map +1 -0
  297. package/lib-es/dada-client/entities/interestRateSelectors.js.map +1 -0
  298. package/lib-es/{modularDrawer/data → dada-client}/entities/marketSelectors.d.ts +1 -1
  299. package/lib-es/dada-client/entities/marketSelectors.d.ts.map +1 -0
  300. package/lib-es/dada-client/entities/marketSelectors.js.map +1 -0
  301. package/lib-es/dada-client/entities/selectorUtils.d.ts.map +1 -0
  302. package/lib-es/dada-client/entities/selectorUtils.js.map +1 -0
  303. package/lib-es/dada-client/hooks/__tests__/useAssetsData.test.d.ts.map +1 -0
  304. package/lib-es/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.js +2 -2
  305. package/lib-es/dada-client/hooks/__tests__/useAssetsData.test.js.map +1 -0
  306. package/lib-es/dada-client/hooks/useAssetData.d.ts +10 -0
  307. package/lib-es/dada-client/hooks/useAssetData.d.ts.map +1 -0
  308. package/lib-es/dada-client/hooks/useAssetData.js +19 -0
  309. package/lib-es/dada-client/hooks/useAssetData.js.map +1 -0
  310. package/lib-es/dada-client/hooks/useAssetsData.d.ts +19 -0
  311. package/lib-es/dada-client/hooks/useAssetsData.d.ts.map +1 -0
  312. package/lib-es/{modularDrawer → dada-client}/hooks/useAssetsData.js +1 -1
  313. package/lib-es/dada-client/hooks/useAssetsData.js.map +1 -0
  314. package/lib-es/dada-client/hooks/useInterestRatesByCurrencies.d.ts.map +1 -0
  315. package/lib-es/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.js +3 -3
  316. package/lib-es/dada-client/hooks/useInterestRatesByCurrencies.js.map +1 -0
  317. package/lib-es/dada-client/hooks/useMarketByCurrencies.d.ts.map +1 -0
  318. package/lib-es/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.js +5 -6
  319. package/lib-es/dada-client/hooks/useMarketByCurrencies.js.map +1 -0
  320. package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.d.ts +134 -1
  321. package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.d.ts.map +1 -1
  322. package/lib-es/{modularDrawer/data → dada-client}/state-manager/api.js +20 -1
  323. package/lib-es/dada-client/state-manager/api.js.map +1 -0
  324. package/lib-es/dada-client/state-manager/types.d.ts.map +1 -0
  325. package/lib-es/dada-client/state-manager/types.js.map +1 -0
  326. package/lib-es/dada-client/types/trend.d.ts +2 -0
  327. package/lib-es/dada-client/types/trend.d.ts.map +1 -0
  328. package/lib-es/dada-client/types/trend.js +2 -0
  329. package/lib-es/dada-client/types/trend.js.map +1 -0
  330. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.d.ts.map +1 -1
  331. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.js +6 -1
  332. package/lib-es/deposit/useGroupedCurrenciesByProvider.hook.js.map +1 -1
  333. package/lib-es/e2e/enum/Account.d.ts +2 -0
  334. package/lib-es/e2e/enum/Account.d.ts.map +1 -1
  335. package/lib-es/e2e/enum/Account.js +4 -0
  336. package/lib-es/e2e/enum/Account.js.map +1 -1
  337. package/lib-es/e2e/enum/AppInfos.d.ts +1 -0
  338. package/lib-es/e2e/enum/AppInfos.d.ts.map +1 -1
  339. package/lib-es/e2e/enum/AppInfos.js +1 -0
  340. package/lib-es/e2e/enum/AppInfos.js.map +1 -1
  341. package/lib-es/e2e/enum/Currency.d.ts +2 -0
  342. package/lib-es/e2e/enum/Currency.d.ts.map +1 -1
  343. package/lib-es/e2e/enum/Currency.js +4 -0
  344. package/lib-es/e2e/enum/Currency.js.map +1 -1
  345. package/lib-es/e2e/enum/Network.d.ts +2 -1
  346. package/lib-es/e2e/enum/Network.d.ts.map +1 -1
  347. package/lib-es/e2e/enum/Network.js +1 -0
  348. package/lib-es/e2e/enum/Network.js.map +1 -1
  349. package/lib-es/e2e/enum/Provider.d.ts +1 -0
  350. package/lib-es/e2e/enum/Provider.d.ts.map +1 -1
  351. package/lib-es/e2e/enum/Provider.js +1 -0
  352. package/lib-es/e2e/enum/Provider.js.map +1 -1
  353. package/lib-es/e2e/families/hedera.d.ts +2 -0
  354. package/lib-es/e2e/families/hedera.d.ts.map +1 -0
  355. package/lib-es/e2e/families/hedera.js +7 -0
  356. package/lib-es/e2e/families/hedera.js.map +1 -0
  357. package/lib-es/e2e/speculos.d.ts.map +1 -1
  358. package/lib-es/e2e/speculos.js +12 -0
  359. package/lib-es/e2e/speculos.js.map +1 -1
  360. package/lib-es/e2e/swap.d.ts +1 -1
  361. package/lib-es/e2e/swap.d.ts.map +1 -1
  362. package/lib-es/e2e/swap.js +6 -5
  363. package/lib-es/e2e/swap.js.map +1 -1
  364. package/lib-es/exchange/platform/types.d.ts +2 -0
  365. package/lib-es/exchange/platform/types.d.ts.map +1 -1
  366. package/lib-es/exchange/swap/completeExchange.d.ts.map +1 -1
  367. package/lib-es/exchange/swap/completeExchange.js +22 -1
  368. package/lib-es/exchange/swap/completeExchange.js.map +1 -1
  369. package/lib-es/exchange/swap/getIncompatibleCurrencyKeys.d.ts.map +1 -1
  370. package/lib-es/exchange/swap/getIncompatibleCurrencyKeys.js +8 -0
  371. package/lib-es/exchange/swap/getIncompatibleCurrencyKeys.js.map +1 -1
  372. package/lib-es/exchange/swap/postSwapState.d.ts.map +1 -1
  373. package/lib-es/exchange/swap/postSwapState.js +19 -23
  374. package/lib-es/exchange/swap/postSwapState.js.map +1 -1
  375. package/lib-es/exchange/swap/setBroadcastTransaction.d.ts +4 -4
  376. package/lib-es/exchange/swap/setBroadcastTransaction.js +7 -7
  377. package/lib-es/exchange/swap/setBroadcastTransaction.js.map +1 -1
  378. package/lib-es/exchange/swap/types.d.ts +3 -3
  379. package/lib-es/exchange/swap/types.d.ts.map +1 -1
  380. package/lib-es/exchange/swap/updateAccountSwapStatus.d.ts.map +1 -1
  381. package/lib-es/exchange/swap/updateAccountSwapStatus.js +6 -4
  382. package/lib-es/exchange/swap/updateAccountSwapStatus.js.map +1 -1
  383. package/lib-es/families/canton/config.js +10 -10
  384. package/lib-es/families/canton/config.js.map +1 -1
  385. package/lib-es/families/evm/shouldUseReceiveOptions.d.ts +3 -0
  386. package/lib-es/families/evm/shouldUseReceiveOptions.d.ts.map +1 -0
  387. package/lib-es/families/evm/shouldUseReceiveOptions.js +3 -0
  388. package/lib-es/families/evm/shouldUseReceiveOptions.js.map +1 -0
  389. package/lib-es/families/evm/shouldUseReceiveOptions.test.d.ts +2 -0
  390. package/lib-es/families/evm/shouldUseReceiveOptions.test.d.ts.map +1 -0
  391. package/lib-es/families/evm/shouldUseReceiveOptions.test.js +21 -0
  392. package/lib-es/families/evm/shouldUseReceiveOptions.test.js.map +1 -0
  393. package/lib-es/families/hedera/exchange.d.ts +9 -0
  394. package/lib-es/families/hedera/exchange.d.ts.map +1 -0
  395. package/lib-es/families/hedera/exchange.js +29 -0
  396. package/lib-es/families/hedera/exchange.js.map +1 -0
  397. package/lib-es/families/tezos/config.js +2 -2
  398. package/lib-es/families/tezos/react.d.ts +2 -1
  399. package/lib-es/families/tezos/react.d.ts.map +1 -1
  400. package/lib-es/families/tezos/react.js +17 -0
  401. package/lib-es/families/tezos/react.js.map +1 -1
  402. package/lib-es/families/tezos/setup.d.ts +1 -4
  403. package/lib-es/families/tezos/setup.d.ts.map +1 -1
  404. package/lib-es/families/tezos/setup.js +2 -9
  405. package/lib-es/families/tezos/setup.js.map +1 -1
  406. package/lib-es/generated/bridge/js.d.ts +0 -1
  407. package/lib-es/generated/bridge/js.d.ts.map +1 -1
  408. package/lib-es/generated/bridge/js.js +0 -2
  409. package/lib-es/generated/bridge/js.js.map +1 -1
  410. package/lib-es/hw/actions/completeExchange.d.ts +2 -0
  411. package/lib-es/hw/actions/completeExchange.d.ts.map +1 -1
  412. package/lib-es/hw/actions/completeExchange.js +1 -0
  413. package/lib-es/hw/actions/completeExchange.js.map +1 -1
  414. package/lib-es/hw/signMessage/index.d.ts.map +1 -1
  415. package/lib-es/hw/signMessage/index.js +7 -0
  416. package/lib-es/hw/signMessage/index.js.map +1 -1
  417. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts +1 -1
  418. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.d.ts.map +1 -1
  419. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js +1 -1
  420. package/lib-es/modularDrawer/hooks/modules/useLeftApyModule.js.map +1 -1
  421. package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.js +1 -1
  422. package/lib-es/modularDrawer/hooks/modules/useLeftMarketTrendModule.js.map +1 -1
  423. package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.js +2 -2
  424. package/lib-es/modularDrawer/hooks/modules/useRightMarketTrendModule.js.map +1 -1
  425. package/lib-es/modularDrawer/hooks/useAssetAccountCounts.d.ts.map +1 -1
  426. package/lib-es/modularDrawer/hooks/useAssetAccountCounts.js +2 -4
  427. package/lib-es/modularDrawer/hooks/useAssetAccountCounts.js.map +1 -1
  428. package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.d.ts +7 -0
  429. package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.d.ts.map +1 -0
  430. package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js +217 -0
  431. package/lib-es/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.js.map +1 -0
  432. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js +1 -1
  433. package/lib-es/modularDrawer/hooks/useLeftAccountsApy.js.map +1 -1
  434. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts +8 -10
  435. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.d.ts.map +1 -1
  436. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js +21 -64
  437. package/lib-es/modularDrawer/hooks/useRightBalanceAsset.js.map +1 -1
  438. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts +7 -28
  439. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.d.ts.map +1 -1
  440. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js +12 -56
  441. package/lib-es/modularDrawer/hooks/useRightBalanceNetwork.js.map +1 -1
  442. package/lib-es/modularDrawer/modules/createAssetConfiguration.d.ts.map +1 -1
  443. package/lib-es/modularDrawer/modules/createAssetConfiguration.js +2 -2
  444. package/lib-es/modularDrawer/modules/createAssetConfiguration.js.map +1 -1
  445. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts +1 -1
  446. package/lib-es/modularDrawer/modules/createNetworkConfiguration.d.ts.map +1 -1
  447. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js +15 -4
  448. package/lib-es/modularDrawer/modules/createNetworkConfiguration.js.map +1 -1
  449. package/lib-es/modularDrawer/utils/__tests__/calculateProviderTotal.test.d.ts +2 -0
  450. package/lib-es/modularDrawer/utils/__tests__/calculateProviderTotal.test.d.ts.map +1 -0
  451. package/lib-es/modularDrawer/utils/__tests__/calculateProviderTotal.test.js +207 -0
  452. package/lib-es/modularDrawer/utils/__tests__/calculateProviderTotal.test.js.map +1 -0
  453. package/lib-es/modularDrawer/utils/__tests__/currencyUtils.test.js +1 -1
  454. package/lib-es/modularDrawer/utils/__tests__/currencyUtils.test.js.map +1 -1
  455. package/lib-es/modularDrawer/utils/__tests__/groupAccountsByAsset.test.d.ts +2 -0
  456. package/lib-es/modularDrawer/utils/__tests__/groupAccountsByAsset.test.d.ts.map +1 -0
  457. package/lib-es/modularDrawer/utils/__tests__/groupAccountsByAsset.test.js +197 -0
  458. package/lib-es/modularDrawer/utils/__tests__/groupAccountsByAsset.test.js.map +1 -0
  459. package/lib-es/modularDrawer/utils/calculateProviderTotal.d.ts +1 -0
  460. package/lib-es/modularDrawer/utils/calculateProviderTotal.d.ts.map +1 -1
  461. package/lib-es/modularDrawer/utils/calculateProviderTotal.js +10 -2
  462. package/lib-es/modularDrawer/utils/calculateProviderTotal.js.map +1 -1
  463. package/lib-es/modularDrawer/utils/currencyUtils.d.ts.map +1 -1
  464. package/lib-es/modularDrawer/utils/currencyUtils.js.map +1 -1
  465. package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts +6 -4
  466. package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.d.ts.map +1 -1
  467. package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.js +9 -22
  468. package/lib-es/modularDrawer/utils/getBalanceAndFiatValueByAssets.js.map +1 -1
  469. package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts +1 -1
  470. package/lib-es/modularDrawer/utils/getInterestRateForAsset.d.ts.map +1 -1
  471. package/lib-es/modularDrawer/utils/groupAccountsByAsset.d.ts +4 -3
  472. package/lib-es/modularDrawer/utils/groupAccountsByAsset.d.ts.map +1 -1
  473. package/lib-es/modularDrawer/utils/groupAccountsByAsset.js +27 -11
  474. package/lib-es/modularDrawer/utils/groupAccountsByAsset.js.map +1 -1
  475. package/lib-es/modularDrawer/utils/index.d.ts +2 -6
  476. package/lib-es/modularDrawer/utils/index.d.ts.map +1 -1
  477. package/lib-es/modularDrawer/utils/index.js +2 -10
  478. package/lib-es/modularDrawer/utils/index.js.map +1 -1
  479. package/lib-es/modularDrawer/utils/index.test.js +1 -27
  480. package/lib-es/modularDrawer/utils/index.test.js.map +1 -1
  481. package/lib-es/modularDrawer/utils/sortByBalance.d.ts +1 -3
  482. package/lib-es/modularDrawer/utils/sortByBalance.d.ts.map +1 -1
  483. package/lib-es/modularDrawer/utils/sortByBalance.js +5 -15
  484. package/lib-es/modularDrawer/utils/sortByBalance.js.map +1 -1
  485. package/lib-es/modularDrawer/utils/type.d.ts +15 -17
  486. package/lib-es/modularDrawer/utils/type.d.ts.map +1 -1
  487. package/lib-es/wallet-api/CustomDeeplink/server.d.ts +16 -0
  488. package/lib-es/wallet-api/CustomDeeplink/server.d.ts.map +1 -0
  489. package/lib-es/wallet-api/CustomDeeplink/server.js +6 -0
  490. package/lib-es/wallet-api/CustomDeeplink/server.js.map +1 -0
  491. package/lib-es/wallet-api/Exchange/server.js +6 -6
  492. package/lib-es/wallet-api/Exchange/server.js.map +1 -1
  493. package/lib-es/wallet-api/constants.d.ts +1 -1
  494. package/lib-es/wallet-api/constants.d.ts.map +1 -1
  495. package/package.json +9 -7
  496. package/src/__tests__/test-helpers/bridge.ts +1 -1
  497. package/src/__tests__/test-helpers/environment.ts +1 -1
  498. package/src/bridge/generic-alpaca/alpaca/index.ts +4 -0
  499. package/src/bridge/generic-alpaca/buildSubAccounts.ts +28 -28
  500. package/src/bridge/generic-alpaca/createTransaction.ts +11 -0
  501. package/src/bridge/generic-alpaca/getAccountShape.ts +22 -15
  502. package/src/bridge/generic-alpaca/getTransactionStatus.ts +1 -1
  503. package/src/bridge/generic-alpaca/prepareTransaction.ts +47 -5
  504. package/src/bridge/generic-alpaca/signer/index.ts +44 -1
  505. package/src/bridge/generic-alpaca/signer/signTransaction.ts +10 -0
  506. package/src/bridge/generic-alpaca/tests/estimateMaxSpendable.test.ts +15 -1
  507. package/src/bridge/generic-alpaca/tests/getAccountShape.test.ts +5 -3
  508. package/src/bridge/generic-alpaca/tests/prepareTransaction.test.ts +78 -0
  509. package/src/bridge/generic-alpaca/tests/signOperation.test.ts +1 -1
  510. package/src/bridge/generic-alpaca/types.ts +10 -2
  511. package/src/bridge/generic-alpaca/utils.ts +25 -6
  512. package/src/bridge/impl.ts +1 -0
  513. package/src/dada-client/README.md +93 -0
  514. package/src/{modularDrawer/data → dada-client}/entities/interestRateSelectors.ts +1 -1
  515. package/src/{modularDrawer/data → dada-client}/entities/marketSelectors.ts +1 -1
  516. package/src/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.ts +2 -2
  517. package/src/dada-client/hooks/useAssetData.ts +22 -0
  518. package/src/{modularDrawer → dada-client}/hooks/useAssetsData.ts +2 -2
  519. package/src/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.ts +4 -4
  520. package/src/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.ts +5 -6
  521. package/src/{modularDrawer/data → dada-client}/state-manager/api.ts +22 -1
  522. package/src/dada-client/types/trend.ts +1 -0
  523. package/src/deposit/useGroupedCurrenciesByProvider.hook.ts +8 -2
  524. package/src/e2e/enum/Account.ts +10 -0
  525. package/src/e2e/enum/AppInfos.ts +2 -0
  526. package/src/e2e/enum/Currency.ts +11 -0
  527. package/src/e2e/enum/Network.ts +1 -0
  528. package/src/e2e/enum/Provider.ts +1 -0
  529. package/src/e2e/families/hedera.ts +7 -0
  530. package/src/e2e/speculos.ts +12 -0
  531. package/src/e2e/swap.ts +6 -6
  532. package/src/exchange/platform/types.ts +2 -0
  533. package/src/exchange/swap/completeExchange.ts +32 -2
  534. package/src/exchange/swap/getIncompatibleCurrencyKeys.ts +8 -0
  535. package/src/exchange/swap/postSwapState.ts +28 -32
  536. package/src/exchange/swap/setBroadcastTransaction.ts +12 -12
  537. package/src/exchange/swap/types.ts +3 -3
  538. package/src/exchange/swap/updateAccountSwapStatus.ts +8 -6
  539. package/src/families/canton/config.ts +10 -10
  540. package/src/families/evm/shouldUseReceiveOptions.test.ts +25 -0
  541. package/src/families/evm/shouldUseReceiveOptions.ts +4 -0
  542. package/src/families/hedera/exchange.ts +48 -0
  543. package/src/families/tezos/config.ts +2 -2
  544. package/src/families/tezos/react.ts +20 -1
  545. package/src/families/tezos/setup.ts +3 -22
  546. package/src/generated/bridge/js.ts +0 -2
  547. package/src/hw/actions/completeExchange.ts +3 -0
  548. package/src/hw/signMessage/index.ts +10 -0
  549. package/src/modularDrawer/hooks/modules/useLeftApyModule.tsx +2 -2
  550. package/src/modularDrawer/hooks/modules/useLeftMarketTrendModule.tsx +1 -1
  551. package/src/modularDrawer/hooks/modules/useRightMarketTrendModule.tsx +2 -2
  552. package/src/modularDrawer/hooks/useAssetAccountCounts.tsx +8 -10
  553. package/src/modularDrawer/hooks/useCurrenciesUnderFeatureFlag.ts +231 -0
  554. package/src/modularDrawer/hooks/useLeftAccountsApy.tsx +1 -1
  555. package/src/modularDrawer/hooks/useRightBalanceAsset.tsx +26 -102
  556. package/src/modularDrawer/hooks/useRightBalanceNetwork.tsx +19 -100
  557. package/src/modularDrawer/modules/createAssetConfiguration.ts +3 -11
  558. package/src/modularDrawer/modules/createNetworkConfiguration.ts +26 -10
  559. package/src/modularDrawer/utils/__tests__/calculateProviderTotal.test.ts +237 -0
  560. package/src/modularDrawer/utils/__tests__/currencyUtils.test.ts +1 -1
  561. package/src/modularDrawer/utils/__tests__/getInterestRateForAsset.test.ts +1 -1
  562. package/src/modularDrawer/utils/__tests__/groupAccountsByAsset.test.ts +228 -0
  563. package/src/modularDrawer/utils/calculateProviderTotal.ts +13 -2
  564. package/src/modularDrawer/utils/currencyUtils.ts +0 -1
  565. package/src/modularDrawer/utils/getBalanceAndFiatValueByAssets.ts +13 -37
  566. package/src/modularDrawer/utils/getInterestRateForAsset.ts +1 -1
  567. package/src/modularDrawer/utils/groupAccountsByAsset.ts +38 -19
  568. package/src/modularDrawer/utils/index.test.ts +1 -32
  569. package/src/modularDrawer/utils/index.ts +2 -23
  570. package/src/modularDrawer/utils/sortByBalance.tsx +5 -18
  571. package/src/modularDrawer/utils/type.ts +18 -14
  572. package/src/wallet-api/CustomDeeplink/server.ts +23 -0
  573. package/src/wallet-api/Exchange/server.ts +6 -6
  574. package/lib/modularDrawer/data/entities/index.d.ts.map +0 -1
  575. package/lib/modularDrawer/data/entities/index.js.map +0 -1
  576. package/lib/modularDrawer/data/entities/interestRateSelectors.d.ts.map +0 -1
  577. package/lib/modularDrawer/data/entities/interestRateSelectors.js.map +0 -1
  578. package/lib/modularDrawer/data/entities/marketSelectors.d.ts.map +0 -1
  579. package/lib/modularDrawer/data/entities/marketSelectors.js.map +0 -1
  580. package/lib/modularDrawer/data/entities/selectorUtils.d.ts.map +0 -1
  581. package/lib/modularDrawer/data/entities/selectorUtils.js.map +0 -1
  582. package/lib/modularDrawer/data/state-manager/api.js.map +0 -1
  583. package/lib/modularDrawer/data/state-manager/types.d.ts.map +0 -1
  584. package/lib/modularDrawer/data/state-manager/types.js.map +0 -1
  585. package/lib/modularDrawer/hooks/__test__/useAssetsData.test.d.ts.map +0 -1
  586. package/lib/modularDrawer/hooks/__test__/useAssetsData.test.js.map +0 -1
  587. package/lib/modularDrawer/hooks/useAssetsData.d.ts +0 -19
  588. package/lib/modularDrawer/hooks/useAssetsData.d.ts.map +0 -1
  589. package/lib/modularDrawer/hooks/useAssetsData.js.map +0 -1
  590. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +0 -1
  591. package/lib/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +0 -1
  592. package/lib/modularDrawer/hooks/useMarketByCurrencies.d.ts.map +0 -1
  593. package/lib/modularDrawer/hooks/useMarketByCurrencies.js.map +0 -1
  594. package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts +0 -2
  595. package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts.map +0 -1
  596. package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.js +0 -496
  597. package/lib/modularDrawer/utils/__tests__/counterValueFormatter.test.js.map +0 -1
  598. package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.d.ts +0 -2
  599. package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.d.ts.map +0 -1
  600. package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js +0 -28
  601. package/lib/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js.map +0 -1
  602. package/lib/modularDrawer/utils/buildProviderCurrenciesMap.d.ts +0 -9
  603. package/lib/modularDrawer/utils/buildProviderCurrenciesMap.d.ts.map +0 -1
  604. package/lib/modularDrawer/utils/buildProviderCurrenciesMap.js +0 -17
  605. package/lib/modularDrawer/utils/buildProviderCurrenciesMap.js.map +0 -1
  606. package/lib/modularDrawer/utils/counterValueFormatter.d.ts +0 -14
  607. package/lib/modularDrawer/utils/counterValueFormatter.d.ts.map +0 -1
  608. package/lib/modularDrawer/utils/counterValueFormatter.js +0 -107
  609. package/lib/modularDrawer/utils/counterValueFormatter.js.map +0 -1
  610. package/lib/modularDrawer/utils/getBalanceAndFiatValue.d.ts +0 -20
  611. package/lib/modularDrawer/utils/getBalanceAndFiatValue.d.ts.map +0 -1
  612. package/lib/modularDrawer/utils/getBalanceAndFiatValue.js +0 -39
  613. package/lib/modularDrawer/utils/getBalanceAndFiatValue.js.map +0 -1
  614. package/lib/modularDrawer/utils/getProviderCurrency.d.ts +0 -3
  615. package/lib/modularDrawer/utils/getProviderCurrency.d.ts.map +0 -1
  616. package/lib/modularDrawer/utils/getProviderCurrency.js +0 -14
  617. package/lib/modularDrawer/utils/getProviderCurrency.js.map +0 -1
  618. package/lib/modularDrawer/utils/haveOneCommonProvider.d.ts +0 -11
  619. package/lib/modularDrawer/utils/haveOneCommonProvider.d.ts.map +0 -1
  620. package/lib/modularDrawer/utils/haveOneCommonProvider.js +0 -29
  621. package/lib/modularDrawer/utils/haveOneCommonProvider.js.map +0 -1
  622. package/lib/modularDrawer/utils/parseToBigNumber.d.ts +0 -9
  623. package/lib/modularDrawer/utils/parseToBigNumber.d.ts.map +0 -1
  624. package/lib/modularDrawer/utils/parseToBigNumber.js +0 -24
  625. package/lib/modularDrawer/utils/parseToBigNumber.js.map +0 -1
  626. package/lib-es/modularDrawer/data/entities/index.d.ts.map +0 -1
  627. package/lib-es/modularDrawer/data/entities/index.js.map +0 -1
  628. package/lib-es/modularDrawer/data/entities/interestRateSelectors.d.ts.map +0 -1
  629. package/lib-es/modularDrawer/data/entities/interestRateSelectors.js.map +0 -1
  630. package/lib-es/modularDrawer/data/entities/marketSelectors.d.ts.map +0 -1
  631. package/lib-es/modularDrawer/data/entities/marketSelectors.js.map +0 -1
  632. package/lib-es/modularDrawer/data/entities/selectorUtils.d.ts.map +0 -1
  633. package/lib-es/modularDrawer/data/entities/selectorUtils.js.map +0 -1
  634. package/lib-es/modularDrawer/data/state-manager/api.js.map +0 -1
  635. package/lib-es/modularDrawer/data/state-manager/types.d.ts.map +0 -1
  636. package/lib-es/modularDrawer/data/state-manager/types.js.map +0 -1
  637. package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.d.ts.map +0 -1
  638. package/lib-es/modularDrawer/hooks/__test__/useAssetsData.test.js.map +0 -1
  639. package/lib-es/modularDrawer/hooks/useAssetsData.d.ts +0 -19
  640. package/lib-es/modularDrawer/hooks/useAssetsData.d.ts.map +0 -1
  641. package/lib-es/modularDrawer/hooks/useAssetsData.js.map +0 -1
  642. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.d.ts.map +0 -1
  643. package/lib-es/modularDrawer/hooks/useInterestRatesByCurrencies.js.map +0 -1
  644. package/lib-es/modularDrawer/hooks/useMarketByCurrencies.d.ts.map +0 -1
  645. package/lib-es/modularDrawer/hooks/useMarketByCurrencies.js.map +0 -1
  646. package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts +0 -2
  647. package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.d.ts.map +0 -1
  648. package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.js +0 -494
  649. package/lib-es/modularDrawer/utils/__tests__/counterValueFormatter.test.js.map +0 -1
  650. package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.d.ts +0 -2
  651. package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.d.ts.map +0 -1
  652. package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js +0 -26
  653. package/lib-es/modularDrawer/utils/__tests__/haveOneCommonProvider.test.js.map +0 -1
  654. package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.d.ts +0 -9
  655. package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.d.ts.map +0 -1
  656. package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.js +0 -13
  657. package/lib-es/modularDrawer/utils/buildProviderCurrenciesMap.js.map +0 -1
  658. package/lib-es/modularDrawer/utils/counterValueFormatter.d.ts +0 -14
  659. package/lib-es/modularDrawer/utils/counterValueFormatter.d.ts.map +0 -1
  660. package/lib-es/modularDrawer/utils/counterValueFormatter.js +0 -103
  661. package/lib-es/modularDrawer/utils/counterValueFormatter.js.map +0 -1
  662. package/lib-es/modularDrawer/utils/getBalanceAndFiatValue.d.ts +0 -20
  663. package/lib-es/modularDrawer/utils/getBalanceAndFiatValue.d.ts.map +0 -1
  664. package/lib-es/modularDrawer/utils/getBalanceAndFiatValue.js +0 -32
  665. package/lib-es/modularDrawer/utils/getBalanceAndFiatValue.js.map +0 -1
  666. package/lib-es/modularDrawer/utils/getProviderCurrency.d.ts +0 -3
  667. package/lib-es/modularDrawer/utils/getProviderCurrency.d.ts.map +0 -1
  668. package/lib-es/modularDrawer/utils/getProviderCurrency.js +0 -10
  669. package/lib-es/modularDrawer/utils/getProviderCurrency.js.map +0 -1
  670. package/lib-es/modularDrawer/utils/haveOneCommonProvider.d.ts +0 -11
  671. package/lib-es/modularDrawer/utils/haveOneCommonProvider.d.ts.map +0 -1
  672. package/lib-es/modularDrawer/utils/haveOneCommonProvider.js +0 -25
  673. package/lib-es/modularDrawer/utils/haveOneCommonProvider.js.map +0 -1
  674. package/lib-es/modularDrawer/utils/parseToBigNumber.d.ts +0 -9
  675. package/lib-es/modularDrawer/utils/parseToBigNumber.d.ts.map +0 -1
  676. package/lib-es/modularDrawer/utils/parseToBigNumber.js +0 -17
  677. package/lib-es/modularDrawer/utils/parseToBigNumber.js.map +0 -1
  678. package/src/modularDrawer/utils/__tests__/counterValueFormatter.test.ts +0 -549
  679. package/src/modularDrawer/utils/__tests__/haveOneCommonProvider.test.ts +0 -34
  680. package/src/modularDrawer/utils/buildProviderCurrenciesMap.tsx +0 -25
  681. package/src/modularDrawer/utils/counterValueFormatter.ts +0 -165
  682. package/src/modularDrawer/utils/getBalanceAndFiatValue.ts +0 -53
  683. package/src/modularDrawer/utils/getProviderCurrency.ts +0 -13
  684. package/src/modularDrawer/utils/haveOneCommonProvider.ts +0 -31
  685. package/src/modularDrawer/utils/parseToBigNumber.ts +0 -17
  686. /package/lib/{modularDrawer/data → dada-client}/entities/index.d.ts +0 -0
  687. /package/lib/{modularDrawer/data → dada-client}/entities/index.js +0 -0
  688. /package/lib/{modularDrawer/data → dada-client}/entities/interestRateSelectors.js +0 -0
  689. /package/lib/{modularDrawer/data → dada-client}/entities/marketSelectors.js +0 -0
  690. /package/lib/{modularDrawer/data → dada-client}/entities/selectorUtils.d.ts +0 -0
  691. /package/lib/{modularDrawer/data → dada-client}/entities/selectorUtils.js +0 -0
  692. /package/lib/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.d.ts +0 -0
  693. /package/lib/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.d.ts +0 -0
  694. /package/lib/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.d.ts +0 -0
  695. /package/lib/{modularDrawer/data → dada-client}/state-manager/types.d.ts +0 -0
  696. /package/lib/{modularDrawer/data → dada-client}/state-manager/types.js +0 -0
  697. /package/lib-es/{modularDrawer/data → dada-client}/entities/index.d.ts +0 -0
  698. /package/lib-es/{modularDrawer/data → dada-client}/entities/index.js +0 -0
  699. /package/lib-es/{modularDrawer/data → dada-client}/entities/interestRateSelectors.js +0 -0
  700. /package/lib-es/{modularDrawer/data → dada-client}/entities/marketSelectors.js +0 -0
  701. /package/lib-es/{modularDrawer/data → dada-client}/entities/selectorUtils.d.ts +0 -0
  702. /package/lib-es/{modularDrawer/data → dada-client}/entities/selectorUtils.js +0 -0
  703. /package/lib-es/{modularDrawer/hooks/__test__ → dada-client/hooks/__tests__}/useAssetsData.test.d.ts +0 -0
  704. /package/lib-es/{modularDrawer → dada-client}/hooks/useInterestRatesByCurrencies.d.ts +0 -0
  705. /package/lib-es/{modularDrawer → dada-client}/hooks/useMarketByCurrencies.d.ts +0 -0
  706. /package/lib-es/{modularDrawer/data → dada-client}/state-manager/types.d.ts +0 -0
  707. /package/lib-es/{modularDrawer/data → dada-client}/state-manager/types.js +0 -0
  708. /package/src/{modularDrawer/data → dada-client}/entities/index.ts +0 -0
  709. /package/src/{modularDrawer/data → dada-client}/entities/selectorUtils.ts +0 -0
  710. /package/src/{modularDrawer/data → dada-client}/state-manager/types.ts +0 -0
@@ -567,9 +567,9 @@ export const handlers = ({
567
567
  targetCurrencyId: toCurrency?.id,
568
568
  hardwareWalletType: deviceInfo?.modelId as DeviceModelId,
569
569
  swapAppVersion,
570
- fromAccountId: fromAccount.id,
571
- toAccountId: toAccount?.id,
572
- amount: amountExpectedTo.toString(),
570
+ fromAccountAddress,
571
+ toAccountAddress,
572
+ fromAmount,
573
573
  });
574
574
 
575
575
  resolve({ operationHash, swapId });
@@ -586,11 +586,11 @@ export const handlers = ({
586
586
  hardwareWalletType: deviceInfo?.modelId as DeviceModelId,
587
587
  swapType: quoteId ? "fixed" : "float",
588
588
  swapAppVersion,
589
- fromAccountId: fromAccount.id,
590
- toAccountId: toAccount?.id,
589
+ fromAccountAddress,
590
+ toAccountAddress,
591
591
  refundAddress,
592
592
  payoutAddress,
593
- amount: amountExpectedTo.toString(),
593
+ fromAmount,
594
594
  seedIdFrom: mainFromAccount.seedIdentifier,
595
595
  seedIdTo: toParentAccount?.seedIdentifier || (toAccount as Account)?.seedIdentifier,
596
596
  });
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAGrF,MAAM,WAAW,eAAe;IAC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AAM,WAAW,UAAU;IACzB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC9C,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACtC,qFAAqF;IACrF,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/D,4CAA4C;IAC5C,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC5C,iCAAiC;IACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACnD,oCAAoC;IACpC,eAAe,EAAE,eAAe,CAAC;CAClC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/index.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interestRateSelectors.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/interestRateSelectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,EAAE,CACzC,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,MAAM,KACf,YAAY,GAAG,SAAqE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interestRateSelectors.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/interestRateSelectors.ts"],"names":[],"mappings":";;;AACA,mDAAuE;AAE1D,QAAA,4BAA4B,GAGT,IAAA,0CAA0B,EAAe,eAAe,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"marketSelectors.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/marketSelectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAA8B,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE,eAAO,MAAM,sBAAsB,EAAE,CACnC,KAAK,EAAE,QAAQ,EACf,UAAU,EAAE,MAAM,KACf,yBAAyB,GAAG,SACiC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"marketSelectors.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/marketSelectors.ts"],"names":[],"mappings":";;;AACA,mDAAuE;AAE1D,QAAA,sBAAsB,GAIjC,IAAA,0CAA0B,EAA4B,SAAS,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectorUtils.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/selectorUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,WAAW,QAAQ;IACvB,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KAC3C,CAAC;CACH;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE;QACL,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;KACxC,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAC1C,OAAO,EAAE,MAAM,GACd,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC,CAoB7C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectorUtils.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/entities/selectorUtils.ts"],"names":[],"mappings":";;;AAAA,8CAA4D;AAc5D;;;;GAIG;AACH,SAAgB,0BAA0B,CACxC,OAAe;IAEf,OAAO,IAAA,wBAAc,EACnB;QACE,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,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ACpB,gBAAgB,EAAE;oBAChB,MAAM,EAAE,EAAE;iBACX;gBACD,gBAAgB,EAAE,QAAQ,CAAC,EAAE;oBAC3B,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,EAAE;wBAClC,OAAO;4BACL,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,UAAU;yBACvC,CAAC;qBACH;yBAAM;wBACL,OAAO,SAAS,CAAC;qBAClB;gBACH,CAAC;aACF;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAEY,qCAA6B,GAAK,qBAAa,+BAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/data/state-manager/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,oBAAY,cAAc;IACxB,MAAM,WAAW;CAClB;AAED,oBAAY,oBAAoB;IAC9B,GAAG,QAAQ;IACX,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,UAAU,EAAE;QACV,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modularDrawer/data/state-manager/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAEX;AAFD,WAAY,cAAc;IACxB,mCAAiB,CAAA;AACnB,CAAC,EAFW,cAAc,8BAAd,cAAc,QAEzB;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,mDAA2B,CAAA;AAC7B,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAssetsData.test.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/hooks/__test__/useAssetsData.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAssetsData.test.js","sourceRoot":"","sources":["../../../../src/modularDrawer/hooks/__test__/useAssetsData.test.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,kDAAoD;AACpD,oDAAiD;AACjD,sDAA6E;AAE7E,IAAI,CAAC,IAAI,CAAC,8BAA8B,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/C,6BAA6B,EAAE,IAAI,CAAC,EAAE,EAAE;CACzC,CAAC,CAAC,CAAC;AAEJ,MAAM,iCAAiC,GAAG,IAAI,CAAC,MAAM,CAAC,mCAA6B,CAAC,CAAC;AAErF,MAAM,iBAAiB,GAAG;IACxB,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,SAAS;IAChB,aAAa,EAAE,IAAI,CAAC,EAAE,EAAE;IACxB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,KAAK;IACjB,OAAO,EAAE,KAAK;IACd,iBAAiB,EAAE,IAAI,CAAC,EAAE,EAAE;IAC5B,sBAAsB,EAAE,KAAK;IAC7B,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE;IAClB,MAAM,EAAE,SAAS;CAClB,CAAC;AAEF,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,iCAAiC,CAAC,eAAe,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,GAAG,EAAE,WAAW;oBAChB,KAAK,EAAE,MAAM;iBACd;gBACD,UAAU,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;aACtC;SACF,CAAC;QAEF,iCAAiC,CAAC,eAAe,CAAC;YAChD,GAAG,iBAAiB;YACpB,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE;SACzD,CAAC,CAAC;QAEH,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kBAAU,EAAC,GAAG,EAAE,CAAC,IAAA,6BAAa,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAEzF,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,GAAG,EAAE;QAC1D,iCAAiC,CAAC,eAAe,CAAC;YAChD,GAAG,iBAAiB;SACrB,CAAC,CAAC;QAEH,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kBAAU,EAAC,GAAG,EAAE,CAAC,IAAA,6BAAa,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QAEzF,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,CAAC;IAClD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import { AssetsDataWithPagination } from "../data/state-manager/types";
2
- export declare function useAssetsData({ search, currencyIds, useCase, areCurrenciesFiltered, product, version, isStaging, }: {
3
- search?: string;
4
- currencyIds?: string[];
5
- useCase?: string;
6
- areCurrenciesFiltered?: boolean;
7
- product: "llm" | "lld";
8
- version: string;
9
- isStaging?: boolean;
10
- }): {
11
- data: AssetsDataWithPagination | undefined;
12
- isLoading: boolean;
13
- error: import("@reduxjs/toolkit").SerializedError | undefined;
14
- loadNext: (() => import("@reduxjs/toolkit/query").InfiniteQueryActionCreatorResult<import("@reduxjs/toolkit/query").InfiniteQueryDefinition<import("../data/state-manager/types").GetAssetsDataParams, import("../data/state-manager/types").PageParam, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, import("../data/state-manager/types").AssetsDataTags, AssetsDataWithPagination, "assetsDataApi", unknown>>) | undefined;
15
- isSuccess: boolean;
16
- isError: boolean;
17
- refetch: () => import("@reduxjs/toolkit/query").InfiniteQueryActionCreatorResult<import("@reduxjs/toolkit/query").InfiniteQueryDefinition<import("../data/state-manager/types").GetAssetsDataParams, import("../data/state-manager/types").PageParam, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, import("../data/state-manager/types").AssetsDataTags, AssetsDataWithPagination, "assetsDataApi", unknown>>;
18
- };
19
- //# sourceMappingURL=useAssetsData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAssetsData.d.ts","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useAssetsData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAiBvE,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,OAAO,EACP,OAAO,EACP,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;;;;;;;EAoDA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAssetsData.js","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useAssetsData.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,mDAA0E;AAG1E,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,CAAC;IACvB,YAAY,EAAE,EAAE;IAChB,QAAQ,EAAE,EAAE;IACZ,uBAAuB,EAAE,EAAE;IAC3B,aAAa,EAAE,EAAE;IACjB,OAAO,EAAE,EAAE;IACX,eAAe,EAAE;QACf,aAAa,EAAE,EAAE;QACjB,eAAe,EAAE,EAAE;QACnB,GAAG,EAAE,EAAE;QACP,KAAK,EAAE,EAAE;KACV;IACD,UAAU,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;CAC/B,CAAC,CAAC;AAEH,SAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,WAAW,EACX,OAAO,EACP,qBAAqB,EACrB,OAAO,EACP,OAAO,EACP,SAAS,GASV;IACC,MAAM,EACJ,IAAI,EACJ,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,kBAAkB,GACnB,GAAG,IAAA,mCAA6B,EAAC;QAChC,MAAM;QACN,OAAO;QACP,WAAW,EAAE,qBAAqB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;QAC5D,OAAO;QACP,OAAO;QACP,SAAS;KACV,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC/B,OAAO,IAAI,EAAE,KAAK,CAAC,MAAM,CAA2B,CAAC,GAAG,EAAE,I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B,KAAK;QACL,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS;QAC7C,SAAS;QACT,OAAO;QACP,OAAO;KACR,CAAC;AACJ,CAAC;AApED,sCAoEC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInterestRatesByCurrencies.d.ts","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useInterestRatesByCurrencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAOrE,eAAO,MAAM,4BAA4B,eAAgB,qBAAqB,EAAE,QAc/E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useInterestRatesByCurrencies.js","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useInterestRatesByCurrencies.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,kFAAsF;AAGtF,MAAM,cAAc,GAAG,CAAC,IAAY,EAAmB,EAAE,CACvD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,CAAC;AAE9C,MAAM,4BAA4B,GAAG,CAAC,UAAmC,EAAE,EAAE;IAClF,OAAO,IAAA,yBAAW,EAAC,KAAK,CAAC,EAAE;QACzB,MAAM,KAAK,GAAiE,EAAE,CAAC;QAC/E,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5B,MAAM,OAAO,GAAG,IAAA,oDAA4B,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YACjE,IAAI,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBAC3C,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG;oBACnB,KAAK,EAAE,OAAO,CAAC,IAAI;oBACnB,IAAI,EAAE,OAAO,CAAC,IAAI;iBACnB,CAAC;aACH;QACH,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAdW,QAAA,4BAA4B,gCAcvC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMarketByCurrencies.d.ts","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useMarketByCurrencies.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAGrE,eAAO,MAAM,qBAAqB,eAAgB,qBAAqB,EAAE,QAwBxE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMarketByCurrencies.js","sourceRoot":"","sources":["../../../src/modularDrawer/hooks/useMarketByCurrencies.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE1C,sEAA0E;AAEnE,MAAM,qBAAqB,GAAG,CAAC,UAAmC,EAAE,EAAE;IAC3E,OAAO,IAAA,yBAAW,EAAC,KAAK,CAAC,EAAE;QACzB,MAAM,kBAAkB,GAGpB,EAAE,CAAC;QACP,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC5B,MAAM,cAAc,GAAG,IAAA,wCAAsB,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;YAClE,IACE,cAAc;gBACd,cAAc,CAAC,KAAK,KAAK,SAAS;gBAClC,cAAc,CAAC,wBAAwB,KAAK,SAAS,EACrD;gBACA,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG;oBAChC,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,CAAC;oBAC5D,GAAG,CAAC,cAAc,CAAC,wBAAwB,IAAI;wBAC7C,wBAAwB,EACtB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,wBAAwB,GAAG,GAAG,CAAC,GAAG,GAAG;qBAClE,CAAC;iBACH,CAAC;aACH;QACH,CAAC,CAAC,CAAC;QACH,OAAO,kBAAkB,CAAC;IAC5B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAxBW,QAAA,qBAAqB,yBAwBhC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=counterValueFormatter.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"counterValueFormatter.test.d.ts","sourceRoot":"","sources":["../../../../src/modularDrawer/utils/__tests__/counterValueFormatter.test.ts"],"names":[],"mappings":""}
@@ -1,496 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const counterValueFormatter_1 = require("../counterValueFormatter");
4
- const translations = {
5
- "numberCompactNotation.K": "K",
6
- "numberCompactNotation.M": "M",
7
- "numberCompactNotation.B": "B",
8
- };
9
- const mockT = jest.fn().mockImplementation((key) => {
10
- return translations[key] || key;
11
- });
12
- describe("counterValueFormatter", () => {
13
- it("should return '-' for NaN values", () => {
14
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
15
- value: NaN,
16
- locale: "en-US",
17
- });
18
- expect(result).toBe("-");
19
- });
20
- it("should format a number as currency", () => {
21
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
22
- value: 1234.56,
23
- currency: "USD",
24
- locale: "en-US",
25
- });
26
- expect(result).toBe("$1,234.56");
27
- });
28
- it("should format a number as decimal when no currency is provided", () => {
29
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
30
- value: 1234.56,
31
- locale: "en-US",
32
- });
33
- expect(result).toBe("1,234.56");
34
- });
35
- it("should format a number in compact notation when shorten is true", () => {
36
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
37
- value: 1234567,
38
- locale: "en-US",
39
- shorten: true,
40
- });
41
- expect(result).toContain("1.235M");
42
- });
43
- it("should include the ticker in the formatted value", () => {
44
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
45
- value: 1234.56,
46
- locale: "en-US",
47
- ticker: "BTC",
48
- });
49
- expect(result).toBe("1,234.56 BTC");
50
- });
51
- it("should allow zero values when allowZeroValue is true", () => {
52
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
53
- value: 0,
54
- locale: "en-US",
55
- allowZeroValue: true,
56
- });
57
- expect(result).toBe("0.00");
58
- });
59
- it("should format a number with specified decimal places set to 0", () => {
60
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
61
- value: 10.231023213,
62
- locale: "en-US",
63
- decimalPlaces: 0,
64
- allowZeroValue: true,
65
- });
66
- expect(result).toBe("10");
67
- });
68
- it("should format a number with specified decimal places set to 4", () => {
69
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
70
- value: 10.231023213,
71
- locale: "en-US",
72
- decimalPlaces: 4,
73
- allowZeroValue: true,
74
- });
75
- expect(result).toBe("10.2310");
76
- });
77
- it("should format a number in compact notation with translation", () => {
78
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
79
- value: 1234567,
80
- locale: "en-US",
81
- shorten: true,
82
- t: mockT,
83
- });
84
- expect(result).toContain("1.235 M");
85
- expect(mockT).toHaveBeenCalledWith("numberCompactNotation.M");
86
- });
87
- it("should handle different locales for formatting", () => {
88
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
89
- value: 1234.56,
90
- locale: "fr-FR",
91
- });
92
- expect(result).toBe("1\u202f234,56");
93
- });
94
- it("should handle invalid currency gracefully", () => {
95
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
96
- value: 1234.56,
97
- currency: "INVALID",
98
- locale: "en-US",
99
- });
100
- expect(result).toBe("1,234.56");
101
- });
102
- it("should return - if value is NaN and it's not discreet mode", () => {
103
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
104
- value: NaN,
105
- locale: "en-US",
106
- });
107
- expect(result).toBe("-");
108
- });
109
- it("should return sanitized value with *** in discreet mode for NaN", () => {
110
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
111
- value: NaN,
112
- locale: "en-US",
113
- discreetMode: true,
114
- });
115
- expect(result).toBe("***");
116
- });
117
- it("should return sanitized value with *** in discreet mode for zero value", () => {
118
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
119
- value: 0,
120
- locale: "en-US",
121
- discreetMode: true,
122
- });
123
- expect(result).toBe("***");
124
- });
125
- it("should return sanitized value with *** in discreet mode for non-zero value", () => {
126
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
127
- value: 1234.56,
128
- locale: "en-US",
129
- discreetMode: true,
130
- });
131
- expect(result).toBe("***");
132
- });
133
- it("should return sanitized value with *** in discreet mode for zero value with allowZeroValue", () => {
134
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
135
- value: 0,
136
- locale: "en-US",
137
- allowZeroValue: true,
138
- discreetMode: true,
139
- currency: "USD",
140
- });
141
- expect(result).toBe("$***");
142
- });
143
- describe("Multiple locales", () => {
144
- it("should format German locale with EUR currency", () => {
145
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
146
- value: 1234.56,
147
- locale: "de-DE",
148
- currency: "EUR",
149
- });
150
- expect(result).toBe("1.234,56\u00A0€");
151
- });
152
- it("should handle french locale", () => {
153
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
154
- value: 10.23,
155
- locale: "fr-FR",
156
- allowZeroValue: true,
157
- currency: "EUR",
158
- });
159
- expect(result).toBe("10,23\u00A0€");
160
- });
161
- it("should handle french locale with allowZeroValue", () => {
162
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
163
- value: 0,
164
- locale: "fr-FR",
165
- allowZeroValue: true,
166
- currency: "EUR",
167
- });
168
- expect(result).toBe("0,00\u00A0€");
169
- });
170
- it("should handle french locale with USD currency", () => {
171
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
172
- value: 0,
173
- locale: "fr-FR",
174
- allowZeroValue: true,
175
- currency: "USD",
176
- });
177
- expect(result).toBe("0,00\u00A0$US");
178
- });
179
- it("should format German locale with zero value", () => {
180
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
181
- value: 0,
182
- locale: "de-DE",
183
- currency: "EUR",
184
- allowZeroValue: true,
185
- });
186
- expect(result).toBe("0,00\u00A0€");
187
- });
188
- it("should format Japanese locale with JPY currency", () => {
189
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
190
- value: 1234.56,
191
- locale: "ja-JP",
192
- currency: "JPY",
193
- });
194
- expect(result).toBe("¥1,235");
195
- });
196
- it("should format Japanese locale with zero value", () => {
197
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
198
- value: 0,
199
- locale: "ja-JP",
200
- currency: "JPY",
201
- allowZeroValue: true,
202
- });
203
- expect(result).toBe("¥0");
204
- });
205
- it("should format UK locale with GBP currency", () => {
206
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
207
- value: 1234.56,
208
- locale: "en-GB",
209
- currency: "GBP",
210
- });
211
- expect(result).toBe("£1,234.56");
212
- });
213
- it("should format UK locale with zero value", () => {
214
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
215
- value: 0,
216
- locale: "en-GB",
217
- currency: "GBP",
218
- allowZeroValue: true,
219
- });
220
- expect(result).toBe("£0.00");
221
- });
222
- it("should format Italian locale with EUR currency", () => {
223
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
224
- value: 1234.56,
225
- locale: "it-IT",
226
- currency: "EUR",
227
- });
228
- expect(result).toBe("1234,56\u00A0€");
229
- });
230
- it("should format Italian locale with zero value", () => {
231
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
232
- value: 0,
233
- locale: "it-IT",
234
- currency: "EUR",
235
- allowZeroValue: true,
236
- });
237
- expect(result).toBe("0,00\u00A0€");
238
- });
239
- it("should format Spanish locale with EUR currency", () => {
240
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
241
- value: 1234.56,
242
- locale: "es-ES",
243
- currency: "EUR",
244
- });
245
- expect(result).toBe("1234,56\u00A0€");
246
- });
247
- it("should format Spanish locale with zero value", () => {
248
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
249
- value: 0,
250
- locale: "es-ES",
251
- currency: "EUR",
252
- allowZeroValue: true,
253
- });
254
- expect(result).toBe("0,00\u00A0€");
255
- });
256
- it("should format Chinese locale with CNY currency", () => {
257
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
258
- value: 1234.56,
259
- locale: "zh-CN",
260
- currency: "CNY",
261
- });
262
- expect(result).toBe("¥1,234.56");
263
- });
264
- it("should format Chinese locale with zero value", () => {
265
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
266
- value: 0,
267
- locale: "zh-CN",
268
- currency: "CNY",
269
- allowZeroValue: true,
270
- });
271
- expect(result).toBe("¥0.00");
272
- });
273
- it("should format Canadian locale with CAD currency", () => {
274
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
275
- value: 1234.56,
276
- locale: "en-CA",
277
- currency: "CAD",
278
- });
279
- expect(result).toBe("$1,234.56");
280
- });
281
- it("should format Canadian locale with zero value", () => {
282
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
283
- value: 0,
284
- locale: "en-CA",
285
- currency: "CAD",
286
- allowZeroValue: true,
287
- });
288
- expect(result).toBe("$0.00");
289
- });
290
- it("should format Brazilian locale with BRL currency", () => {
291
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
292
- value: 1234.56,
293
- locale: "pt-BR",
294
- currency: "BRL",
295
- });
296
- expect(result).toBe("R$\u00A01.234,56");
297
- });
298
- it("should format Brazilian locale with zero value", () => {
299
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
300
- value: 0,
301
- locale: "pt-BR",
302
- currency: "BRL",
303
- allowZeroValue: true,
304
- });
305
- expect(result).toBe("R$\u00A00,00");
306
- });
307
- it("should format Thai locale with THB currency", () => {
308
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
309
- value: 1234.56,
310
- locale: "th-TH",
311
- currency: "THB",
312
- });
313
- expect(result).toBe("฿1,234.56");
314
- });
315
- it("should format Thai locale with zero value", () => {
316
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
317
- value: 0,
318
- locale: "th-TH",
319
- currency: "THB",
320
- allowZeroValue: true,
321
- });
322
- expect(result).toBe("฿0.00");
323
- });
324
- it("should format Turkish locale with TRY currency", () => {
325
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
326
- value: 1234.56,
327
- locale: "tr-TR",
328
- currency: "TRY",
329
- });
330
- expect(result).toBe("₺1.234,56");
331
- });
332
- it("should format Turkish locale with zero value", () => {
333
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
334
- value: 0,
335
- locale: "tr-TR",
336
- currency: "TRY",
337
- allowZeroValue: true,
338
- });
339
- expect(result).toBe("₺0,00");
340
- });
341
- it("should format Russian locale with RUB currency", () => {
342
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
343
- value: 1234.56,
344
- locale: "ru-RU",
345
- currency: "RUB",
346
- });
347
- expect(result).toBe("1\u00A0234,56\u00A0₽");
348
- });
349
- it("should format Russian locale with zero value", () => {
350
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
351
- value: 0,
352
- locale: "ru-RU",
353
- currency: "RUB",
354
- allowZeroValue: true,
355
- });
356
- expect(result).toBe("0,00\u00A0₽");
357
- });
358
- it("should format Indian locale with INR currency", () => {
359
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
360
- value: 1234.56,
361
- locale: "hi-IN",
362
- currency: "INR",
363
- });
364
- expect(result).toBe("₹1,234.56");
365
- });
366
- it("should format Indian locale with zero value", () => {
367
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
368
- value: 0,
369
- locale: "hi-IN",
370
- currency: "INR",
371
- allowZeroValue: true,
372
- });
373
- expect(result).toBe("₹0.00");
374
- });
375
- it("should format Korean locale with KRW currency", () => {
376
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
377
- value: 1234.56,
378
- locale: "ko-KR",
379
- currency: "KRW",
380
- });
381
- expect(result).toBe("₩1,235");
382
- });
383
- it("should format Korean locale with zero value", () => {
384
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
385
- value: 0,
386
- locale: "ko-KR",
387
- currency: "KRW",
388
- allowZeroValue: true,
389
- });
390
- expect(result).toBe("₩0");
391
- });
392
- it("should format Mexican locale with MXN currency", () => {
393
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
394
- value: 1234.56,
395
- locale: "es-MX",
396
- currency: "MXN",
397
- });
398
- expect(result).toBe("$1,234.56");
399
- });
400
- it("should format Mexican locale with zero value", () => {
401
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
402
- value: 0,
403
- locale: "es-MX",
404
- currency: "MXN",
405
- allowZeroValue: true,
406
- });
407
- expect(result).toBe("$0.00");
408
- });
409
- it("should format South African locale with ZAR currency", () => {
410
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
411
- value: 1234.56,
412
- locale: "en-ZA",
413
- currency: "ZAR",
414
- });
415
- expect(result).toBe("R\u00A01\u00A0234,56");
416
- });
417
- it("should format South African locale with zero value", () => {
418
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
419
- value: 0,
420
- locale: "en-ZA",
421
- currency: "ZAR",
422
- allowZeroValue: true,
423
- });
424
- expect(result).toBe("R\u00A00,00");
425
- });
426
- it("should format Swedish locale with SEK currency", () => {
427
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
428
- value: 1234.56,
429
- locale: "sv-SE",
430
- currency: "SEK",
431
- });
432
- expect(result).toBe("1\u00A0234,56\u00A0kr");
433
- });
434
- it("should format Swedish locale with zero value", () => {
435
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
436
- value: 0,
437
- locale: "sv-SE",
438
- currency: "SEK",
439
- allowZeroValue: true,
440
- });
441
- expect(result).toBe("0,00\u00A0kr");
442
- });
443
- it("should format Norwegian locale with NOK currency", () => {
444
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
445
- value: 1234.56,
446
- locale: "no-NO",
447
- currency: "NOK",
448
- });
449
- expect(result).toBe("1\u00A0234,56\u00A0kr");
450
- });
451
- it("should format Norwegian locale with zero value", () => {
452
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
453
- value: 0,
454
- locale: "no-NO",
455
- currency: "NOK",
456
- allowZeroValue: true,
457
- });
458
- expect(result).toBe("0,00\u00A0kr");
459
- });
460
- it("should format Swiss locale with CHF currency", () => {
461
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
462
- value: 1234.56,
463
- locale: "de-CH",
464
- currency: "CHF",
465
- });
466
- expect(result).toBe("CHF\u00A01’234.56");
467
- });
468
- it("should format Swiss locale with zero value", () => {
469
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
470
- value: 0,
471
- locale: "de-CH",
472
- currency: "CHF",
473
- allowZeroValue: true,
474
- });
475
- expect(result).toBe("CHF\u00A00.00");
476
- });
477
- it("should format Vietnamese locale with VND currency", () => {
478
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
479
- value: 1234.56,
480
- locale: "vi-VN",
481
- currency: "VND",
482
- });
483
- expect(result).toBe("1.235\u00A0₫");
484
- });
485
- it("should format Vietnamese locale with zero value", () => {
486
- const result = (0, counterValueFormatter_1.counterValueFormatter)({
487
- value: 0,
488
- locale: "vi-VN",
489
- currency: "VND",
490
- allowZeroValue: true,
491
- });
492
- expect(result).toBe("0\u00A0₫");
493
- });
494
- });
495
- });
496
- //# sourceMappingURL=counterValueFormatter.test.js.map