@multiversx/sdk-dapp-liquidity 2.1.0-alpha.0 → 2.1.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (362) hide show
  1. package/all-networks--dfVLHLJ.js +2 -0
  2. package/all-networks-Czd8zS1n.mjs +4 -0
  3. package/api/checkAccount.js +1 -21
  4. package/api/checkAccount.mjs +13 -13
  5. package/api/confirmRate.js +1 -29
  6. package/api/confirmRate.mjs +17 -22
  7. package/api/getChains.js +1 -17
  8. package/api/getChains.mjs +10 -10
  9. package/api/getRate.js +1 -27
  10. package/api/getRate.mjs +17 -20
  11. package/api/getTokens.js +1 -22
  12. package/api/getTokens.mjs +14 -15
  13. package/api/getTokensBalances.js +1 -21
  14. package/api/getTokensBalances.mjs +13 -13
  15. package/api/getTransactions.js +1 -38
  16. package/api/getTransactions.mjs +25 -31
  17. package/api/index.js +1 -18
  18. package/api/index.mjs +16 -16
  19. package/api/sendTransactions.js +1 -32
  20. package/api/sendTransactions.mjs +19 -19
  21. package/api/tests/confirmRate.spec.js +1 -130
  22. package/api/tests/confirmRate.spec.mjs +44 -58
  23. package/api/tests/getChains.spec.js +1 -43
  24. package/api/tests/getChains.spec.mjs +15 -18
  25. package/api/tests/getRate.spec.js +1 -87
  26. package/api/tests/getRate.spec.mjs +35 -49
  27. package/api/tests/getTokens.spec.js +1 -68
  28. package/api/tests/getTokens.spec.mjs +23 -29
  29. package/api/tests/getTransactions.spec.js +1 -94
  30. package/api/tests/getTransactions.spec.mjs +35 -51
  31. package/api/tests/sendTransactions.spec.js +1 -96
  32. package/api/tests/sendTransactions.spec.mjs +44 -52
  33. package/constants/index.js +1 -4
  34. package/constants/index.mjs +2 -2
  35. package/default-D0Jk5ROI.mjs +4 -0
  36. package/default-DbU6vPaB.js +2 -0
  37. package/helpers/assertRateConfirmationMatchesIntent.js +1 -23
  38. package/helpers/assertRateConfirmationMatchesIntent.mjs +13 -16
  39. package/helpers/base64Utils.js +1 -31
  40. package/helpers/base64Utils.mjs +14 -24
  41. package/helpers/decodeLoginToken.js +1 -27
  42. package/helpers/decodeLoginToken.mjs +13 -18
  43. package/helpers/decodeToken.js +1 -39
  44. package/helpers/decodeToken.mjs +20 -31
  45. package/helpers/getApiURL.js +1 -7
  46. package/helpers/getApiURL.mjs +3 -5
  47. package/helpers/getBridgeURL.js +1 -7
  48. package/helpers/getBridgeURL.mjs +3 -5
  49. package/helpers/getDisplayName.js +1 -11
  50. package/helpers/getDisplayName.mjs +3 -8
  51. package/helpers/getMvxApiURL.js +1 -7
  52. package/helpers/getMvxApiURL.mjs +3 -5
  53. package/helpers/getMvxChainId.js +1 -7
  54. package/helpers/getMvxChainId.mjs +3 -5
  55. package/helpers/getMvxExplorerAddress.js +1 -7
  56. package/helpers/getMvxExplorerAddress.mjs +3 -5
  57. package/helpers/index.js +1 -26
  58. package/helpers/index.mjs +24 -24
  59. package/helpers/safeImageUrl.js +1 -23
  60. package/helpers/safeImageUrl.mjs +10 -20
  61. package/helpers/serializeTransaction.js +1 -8
  62. package/helpers/serializeTransaction.mjs +3 -5
  63. package/helpers/tests/assertRateConfirmationMatchesIntent.spec.js +1 -63
  64. package/helpers/tests/assertRateConfirmationMatchesIntent.spec.mjs +31 -41
  65. package/helpers/tests/base64Utils.spec.js +1 -29
  66. package/helpers/tests/base64Utils.spec.mjs +11 -24
  67. package/helpers/tests/decodeLoginToken.spec.js +1 -34
  68. package/helpers/tests/decodeLoginToken.spec.mjs +13 -24
  69. package/helpers/tests/decodeToken.spec.js +1 -27
  70. package/helpers/tests/decodeToken.spec.mjs +7 -12
  71. package/helpers/tests/safeImageUrl.spec.js +1 -48
  72. package/helpers/tests/safeImageUrl.spec.mjs +28 -43
  73. package/helpers/tests/serializeTransaction.spec.js +1 -36
  74. package/helpers/tests/serializeTransaction.spec.mjs +13 -24
  75. package/index.js +1 -232
  76. package/index.mjs +196 -196
  77. package/package.json +5 -4
  78. package/react.esm-B0AMOHxa.js +73 -0
  79. package/react.esm-BxvJJ86Q.mjs +9949 -0
  80. package/reactjs/adapters/SuiAdapter.js +1 -378
  81. package/reactjs/adapters/SuiAdapter.mjs +160 -217
  82. package/reactjs/components/AccountAddress/AccountAddress.js +1 -31
  83. package/reactjs/components/AccountAddress/AccountAddress.mjs +16 -16
  84. package/reactjs/components/AccountAddress/index.js +1 -4
  85. package/reactjs/components/AccountAddress/index.mjs +2 -2
  86. package/reactjs/components/AmountCard/AmountCard.js +1 -33
  87. package/reactjs/components/AmountCard/AmountCard.mjs +19 -21
  88. package/reactjs/components/AmountCard/index.js +1 -4
  89. package/reactjs/components/AmountCard/index.mjs +2 -2
  90. package/reactjs/components/AmountInput/AmountInput.js +1 -71
  91. package/reactjs/components/AmountInput/AmountInput.mjs +42 -46
  92. package/reactjs/components/AmountInput/index.js +1 -4
  93. package/reactjs/components/AmountInput/index.mjs +2 -2
  94. package/reactjs/components/BridgeForm/BridgeForm.d.ts +9 -0
  95. package/reactjs/components/BridgeForm/BridgeForm.js +1 -89
  96. package/reactjs/components/BridgeForm/BridgeForm.mjs +72 -79
  97. package/reactjs/components/BridgeForm/Deposit.js +1 -675
  98. package/reactjs/components/BridgeForm/Deposit.mjs +380 -504
  99. package/reactjs/components/BridgeForm/Transfer.js +1 -561
  100. package/reactjs/components/BridgeForm/Transfer.mjs +315 -428
  101. package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.js +1 -78
  102. package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.mjs +47 -70
  103. package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.js +1 -58
  104. package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.mjs +36 -47
  105. package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.js +1 -266
  106. package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.mjs +163 -231
  107. package/reactjs/components/BridgeForm/index.js +1 -4
  108. package/reactjs/components/BridgeForm/index.mjs +2 -2
  109. package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.js +1 -76
  110. package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.mjs +33 -65
  111. package/reactjs/components/BridgeHistory/BridgeHistory.js +1 -381
  112. package/reactjs/components/BridgeHistory/BridgeHistory.mjs +170 -200
  113. package/reactjs/components/BridgeHistory/index.js +1 -4
  114. package/reactjs/components/BridgeHistory/index.mjs +2 -2
  115. package/reactjs/components/Connect/BridgeAccountDisplay.js +1 -150
  116. package/reactjs/components/Connect/BridgeAccountDisplay.mjs +99 -115
  117. package/reactjs/components/Connect/BridgeConnectButton.js +1 -35
  118. package/reactjs/components/Connect/BridgeConnectButton.mjs +20 -20
  119. package/reactjs/components/Connect/ChainSelectConnect.js +1 -144
  120. package/reactjs/components/Connect/ChainSelectConnect.mjs +70 -83
  121. package/reactjs/components/Connect/CustomConnectButton.js +1 -40
  122. package/reactjs/components/Connect/CustomConnectButton.mjs +24 -30
  123. package/reactjs/components/Connect/MvxAccountDisplay.js +1 -97
  124. package/reactjs/components/Connect/MvxAccountDisplay.mjs +47 -50
  125. package/reactjs/components/Connect/MvxConnectButton.js +1 -43
  126. package/reactjs/components/Connect/MvxConnectButton.mjs +35 -40
  127. package/reactjs/components/Connect/SwitchChainButton.js +1 -29
  128. package/reactjs/components/Connect/SwitchChainButton.mjs +15 -18
  129. package/reactjs/components/Connect/index.js +1 -16
  130. package/reactjs/components/Connect/index.mjs +14 -14
  131. package/reactjs/components/CopyButton/CopyButton.js +1 -46
  132. package/reactjs/components/CopyButton/CopyButton.mjs +33 -36
  133. package/reactjs/components/CopyButton/index.js +1 -4
  134. package/reactjs/components/CopyButton/index.mjs +2 -2
  135. package/reactjs/components/CopyButton/utils/copyToClipboard.js +1 -38
  136. package/reactjs/components/CopyButton/utils/copyToClipboard.mjs +20 -32
  137. package/reactjs/components/CopyButton/utils/index.js +1 -4
  138. package/reactjs/components/CopyButton/utils/index.mjs +2 -2
  139. package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -90
  140. package/reactjs/components/DisplayAmount/DisplayAmount.mjs +68 -75
  141. package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.js +1 -39
  142. package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.mjs +26 -33
  143. package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.js +1 -61
  144. package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.mjs +38 -46
  145. package/reactjs/components/DisplayAmount/index.js +1 -4
  146. package/reactjs/components/DisplayAmount/index.mjs +2 -2
  147. package/reactjs/components/DisplayAmount/utils/index.js +1 -4
  148. package/reactjs/components/DisplayAmount/utils/index.mjs +2 -2
  149. package/reactjs/components/DisplayAmount/utils/truncateAmount.js +1 -21
  150. package/reactjs/components/DisplayAmount/utils/truncateAmount.mjs +9 -13
  151. package/reactjs/components/Error/Error.js +1 -66
  152. package/reactjs/components/Error/Error.mjs +29 -29
  153. package/reactjs/components/Error/index.js +1 -4
  154. package/reactjs/components/Error/index.mjs +2 -2
  155. package/reactjs/components/SmallLoader/SmallLoader.js +1 -21
  156. package/reactjs/components/SmallLoader/SmallLoader.mjs +13 -18
  157. package/reactjs/components/SmallLoader/index.js +1 -4
  158. package/reactjs/components/SmallLoader/index.mjs +2 -2
  159. package/reactjs/components/ToggleDirection/ToggleDirection.js +1 -30
  160. package/reactjs/components/ToggleDirection/ToggleDirection.mjs +22 -28
  161. package/reactjs/components/TokenSelector/TokenSelector.js +1 -172
  162. package/reactjs/components/TokenSelector/TokenSelector.mjs +98 -118
  163. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +1 -94
  164. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +48 -57
  165. package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js +1 -55
  166. package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs +45 -48
  167. package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.js +1 -18
  168. package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.mjs +9 -14
  169. package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.js +1 -6
  170. package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.mjs +2 -4
  171. package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js +1 -43
  172. package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs +21 -21
  173. package/reactjs/components/TokenSelector/components/SelectContainer.js +1 -40
  174. package/reactjs/components/TokenSelector/components/SelectContainer.mjs +36 -38
  175. package/reactjs/components/TokenSelector/components/SelectContent.js +1 -136
  176. package/reactjs/components/TokenSelector/components/SelectContent.mjs +79 -103
  177. package/reactjs/components/TokenSelector/components/SelectedOption.js +1 -28
  178. package/reactjs/components/TokenSelector/components/SelectedOption.mjs +22 -24
  179. package/reactjs/components/TokenSelector/components/TokenIcon.js +1 -82
  180. package/reactjs/components/TokenSelector/components/TokenIcon.mjs +52 -58
  181. package/reactjs/components/TokenSelector/components/TokenItem.js +1 -80
  182. package/reactjs/components/TokenSelector/components/TokenItem.mjs +41 -54
  183. package/reactjs/components/TokenSelector/components/TokenList.js +1 -23
  184. package/reactjs/components/TokenSelector/components/TokenList.mjs +19 -21
  185. package/reactjs/components/TokenSelector/components/TokenSymbol.js +1 -25
  186. package/reactjs/components/TokenSelector/components/TokenSymbol.mjs +14 -15
  187. package/reactjs/components/TokenSelector/index.js +1 -4
  188. package/reactjs/components/TokenSelector/index.mjs +2 -2
  189. package/reactjs/components/TransactionToast/TransactionToast.js +1 -53
  190. package/reactjs/components/TransactionToast/TransactionToast.mjs +27 -28
  191. package/reactjs/components/TransactionToast/TransactionToastContainer.js +1 -20
  192. package/reactjs/components/TransactionToast/TransactionToastContainer.mjs +16 -18
  193. package/reactjs/components/TransactionToast/index.js +1 -6
  194. package/reactjs/components/TransactionToast/index.mjs +4 -4
  195. package/reactjs/components/TrimAddress/TrimAddress.js +1 -27
  196. package/reactjs/components/TrimAddress/TrimAddress.mjs +19 -24
  197. package/reactjs/components/TrimAddress/index.js +1 -4
  198. package/reactjs/components/TrimAddress/index.mjs +2 -2
  199. package/reactjs/components/base/MxButton/MxButton.js +1 -71
  200. package/reactjs/components/base/MxButton/MxButton.mjs +46 -46
  201. package/reactjs/components/base/MxButton/index.js +1 -4
  202. package/reactjs/components/base/MxButton/index.mjs +2 -2
  203. package/reactjs/components/base/MxCard/MxCard.js +1 -54
  204. package/reactjs/components/base/MxCard/MxCard.mjs +34 -34
  205. package/reactjs/components/base/MxCard/index.js +1 -4
  206. package/reactjs/components/base/MxCard/index.mjs +2 -2
  207. package/reactjs/components/base/MxCircleLoader/MxCircleLoader.js +1 -28
  208. package/reactjs/components/base/MxCircleLoader/MxCircleLoader.mjs +24 -26
  209. package/reactjs/components/base/MxCircleLoader/index.js +1 -4
  210. package/reactjs/components/base/MxCircleLoader/index.mjs +2 -2
  211. package/reactjs/components/base/MxLink/MxLink.js +1 -70
  212. package/reactjs/components/base/MxLink/MxLink.mjs +44 -46
  213. package/reactjs/components/base/MxLink/index.js +1 -4
  214. package/reactjs/components/base/MxLink/index.mjs +2 -2
  215. package/reactjs/components/base/MxSearch/MxSearch.js +1 -69
  216. package/reactjs/components/base/MxSearch/MxSearch.mjs +37 -41
  217. package/reactjs/components/base/MxSearch/index.js +1 -4
  218. package/reactjs/components/base/MxSearch/index.mjs +2 -2
  219. package/reactjs/components/base/MxSlideover/MxSlideover.js +1 -78
  220. package/reactjs/components/base/MxSlideover/MxSlideover.mjs +72 -74
  221. package/reactjs/components/base/MxSlideover/index.js +1 -4
  222. package/reactjs/components/base/MxSlideover/index.mjs +2 -2
  223. package/reactjs/components/base/MxTooltip/MxTooltip.js +1 -163
  224. package/reactjs/components/base/MxTooltip/MxTooltip.mjs +92 -135
  225. package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.js +1 -33
  226. package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.mjs +29 -31
  227. package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.js +1 -4
  228. package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.mjs +2 -2
  229. package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.js +1 -27
  230. package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.mjs +23 -25
  231. package/reactjs/components/base/MxTooltip/components/TooltipContent/index.js +1 -4
  232. package/reactjs/components/base/MxTooltip/components/TooltipContent/index.mjs +2 -2
  233. package/reactjs/components/base/MxTooltip/components/index.js +1 -6
  234. package/reactjs/components/base/MxTooltip/components/index.mjs +4 -4
  235. package/reactjs/components/base/MxTooltip/index.js +1 -4
  236. package/reactjs/components/base/MxTooltip/index.mjs +2 -2
  237. package/reactjs/components/base/index.js +1 -14
  238. package/reactjs/components/base/index.mjs +12 -12
  239. package/reactjs/components/index.js +1 -54
  240. package/reactjs/components/index.mjs +52 -52
  241. package/reactjs/constants/chains.js +1 -54
  242. package/reactjs/constants/chains.mjs +33 -52
  243. package/reactjs/constants/index.js +1 -13
  244. package/reactjs/constants/index.mjs +9 -10
  245. package/reactjs/context/Web3AppProvider.js +1 -42
  246. package/reactjs/context/Web3AppProvider.mjs +34 -36
  247. package/reactjs/context/queryClient.js +1 -11
  248. package/reactjs/context/queryClient.mjs +5 -8
  249. package/reactjs/context/useWeb3App.js +1 -12
  250. package/reactjs/context/useWeb3App.mjs +7 -8
  251. package/reactjs/helpers/index.js +1 -6
  252. package/reactjs/helpers/index.mjs +4 -4
  253. package/reactjs/helpers/resolveBridgeApiChainId.js +1 -40
  254. package/reactjs/helpers/resolveBridgeApiChainId.mjs +21 -34
  255. package/reactjs/hooks/index.js +1 -35
  256. package/reactjs/hooks/index.mjs +33 -33
  257. package/reactjs/hooks/tests/useGenericSignMessage.spec.js +1 -68
  258. package/reactjs/hooks/tests/useGenericSignMessage.spec.mjs +23 -38
  259. package/reactjs/hooks/tests/useSignTransaction.spec.js +1 -195
  260. package/reactjs/hooks/tests/useSignTransaction.spec.mjs +72 -110
  261. package/reactjs/hooks/useAccount.js +1 -13
  262. package/reactjs/hooks/useAccount.mjs +7 -8
  263. package/reactjs/hooks/useBalances.js +1 -53
  264. package/reactjs/hooks/useBalances.mjs +28 -40
  265. package/reactjs/hooks/useBridgeApiChainId.js +1 -13
  266. package/reactjs/hooks/useBridgeApiChainId.mjs +9 -9
  267. package/reactjs/hooks/useBridgeFormik.js +1 -167
  268. package/reactjs/hooks/useBridgeFormik.mjs +110 -155
  269. package/reactjs/hooks/useDebounce.js +1 -13
  270. package/reactjs/hooks/useDebounce.mjs +8 -10
  271. package/reactjs/hooks/useFetchBridgeData.js +1 -45
  272. package/reactjs/hooks/useFetchBridgeData.mjs +37 -38
  273. package/reactjs/hooks/useFetchTokens.js +1 -115
  274. package/reactjs/hooks/useFetchTokens.mjs +80 -108
  275. package/reactjs/hooks/useGenericSignMessage.js +1 -75
  276. package/reactjs/hooks/useGenericSignMessage.mjs +44 -64
  277. package/reactjs/hooks/useGetChainId.js +1 -11
  278. package/reactjs/hooks/useGetChainId.mjs +7 -8
  279. package/reactjs/hooks/useResolveTokenChain.js +1 -20
  280. package/reactjs/hooks/useResolveTokenChain.mjs +11 -14
  281. package/reactjs/hooks/useSendTransactions.js +1 -25
  282. package/reactjs/hooks/useSendTransactions.mjs +19 -23
  283. package/reactjs/hooks/useSignTransaction.js +1 -112
  284. package/reactjs/hooks/useSignTransaction.mjs +50 -76
  285. package/reactjs/hooks/useSuiConnect.js +1 -86
  286. package/reactjs/hooks/useSuiConnect.mjs +52 -70
  287. package/reactjs/hooks/validation/index.js +1 -10
  288. package/reactjs/hooks/validation/index.mjs +8 -8
  289. package/reactjs/hooks/validation/useAmountSchema.js +1 -32
  290. package/reactjs/hooks/validation/useAmountSchema.mjs +8 -11
  291. package/reactjs/hooks/validation/useSecondAmountSchema.js +1 -26
  292. package/reactjs/hooks/validation/useSecondAmountSchema.mjs +5 -6
  293. package/reactjs/hooks/validation/useTestHasEnoughFunds.js +1 -37
  294. package/reactjs/hooks/validation/useTestHasEnoughFunds.mjs +20 -29
  295. package/reactjs/hooks/validation/useTestIsConnected.js +1 -27
  296. package/reactjs/hooks/validation/useTestIsConnected.mjs +13 -19
  297. package/reactjs/index.js +1 -190
  298. package/reactjs/index.mjs +154 -154
  299. package/reactjs/init/index.js +1 -5
  300. package/reactjs/init/index.mjs +3 -3
  301. package/reactjs/init/init.js +1 -147
  302. package/reactjs/init/init.mjs +57 -78
  303. package/reactjs/queries/index.js +1 -17
  304. package/reactjs/queries/index.mjs +15 -15
  305. package/reactjs/queries/useCheckAccount.query.js +1 -39
  306. package/reactjs/queries/useCheckAccount.query.mjs +29 -33
  307. package/reactjs/queries/useGetAllTokens.query.js +1 -35
  308. package/reactjs/queries/useGetAllTokens.query.mjs +26 -30
  309. package/reactjs/queries/useGetChains.query.js +1 -34
  310. package/reactjs/queries/useGetChains.query.mjs +26 -28
  311. package/reactjs/queries/useGetHistory.query.js +1 -69
  312. package/reactjs/queries/useGetHistory.query.mjs +53 -57
  313. package/reactjs/queries/useGetMvxTokensBalances.query.js +1 -66
  314. package/reactjs/queries/useGetMvxTokensBalances.query.mjs +38 -46
  315. package/reactjs/queries/useGetNonMvxTokensBalances.query.js +1 -81
  316. package/reactjs/queries/useGetNonMvxTokensBalances.query.mjs +49 -57
  317. package/reactjs/queries/useGetRate.mutation.js +1 -18
  318. package/reactjs/queries/useGetRate.mutation.mjs +12 -15
  319. package/reactjs/reexports.js +1 -48
  320. package/reactjs/reexports.mjs +13 -13
  321. package/reactjs/utils/delay.js +1 -6
  322. package/reactjs/utils/delay.mjs +3 -3
  323. package/reactjs/utils/formatAmount.js +1 -23
  324. package/reactjs/utils/formatAmount.mjs +16 -17
  325. package/reactjs/utils/getCleanStringAmount.js +1 -11
  326. package/reactjs/utils/getCleanStringAmount.mjs +6 -8
  327. package/reactjs/utils/getCompletePathname.js +1 -5
  328. package/reactjs/utils/getCompletePathname.mjs +3 -3
  329. package/reactjs/utils/getInitialTokens.js +1 -12
  330. package/reactjs/utils/getInitialTokens.mjs +6 -7
  331. package/reactjs/utils/hasEnoughFunds.js +1 -19
  332. package/reactjs/utils/hasEnoughFunds.mjs +11 -14
  333. package/reactjs/utils/index.js +1 -26
  334. package/reactjs/utils/index.mjs +24 -24
  335. package/reactjs/utils/isStringFloat.js +1 -21
  336. package/reactjs/utils/isStringFloat.mjs +11 -18
  337. package/reactjs/utils/mxClsx.js +1 -8
  338. package/reactjs/utils/mxClsx.mjs +4 -6
  339. package/reactjs/utils/pipe.js +1 -25
  340. package/reactjs/utils/pipe.mjs +13 -17
  341. package/reactjs/utils/removeCommas.js +1 -6
  342. package/reactjs/utils/removeCommas.mjs +2 -4
  343. package/reactjs/utils/roundAmount.js +1 -40
  344. package/reactjs/utils/roundAmount.mjs +16 -36
  345. package/reactjs/utils/testNumber.js +1 -4
  346. package/reactjs/utils/testNumber.mjs +2 -2
  347. package/store/inMemoryStore.js +1 -39
  348. package/store/inMemoryStore.mjs +17 -21
  349. package/style.css +1 -2274
  350. package/types/chainType.js +1 -11
  351. package/types/chainType.mjs +2 -9
  352. package/types/errors.js +1 -9
  353. package/types/errors.mjs +4 -5
  354. package/types/providerType.js +1 -9
  355. package/types/providerType.mjs +2 -7
  356. package/types/transaction.d.ts +2 -0
  357. package/all-networks-EJIVYZ_i.mjs +0 -4
  358. package/all-networks-NYACMyeN.js +0 -4
  359. package/default-BYtXv70Z.mjs +0 -4
  360. package/default-H3AbmzFV.js +0 -4
  361. package/react.esm-7GsOwMPq.js +0 -11815
  362. package/react.esm-CU-Iqz8D.mjs +0 -11796
@@ -1,338 +1,308 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { faArrowDownShortWide } from "@fortawesome/free-solid-svg-icons/faArrowDownShortWide";
3
- import { faArrowUpShortWide } from "@fortawesome/free-solid-svg-icons/faArrowUpShortWide";
4
- import { faCircleCheck } from "@fortawesome/free-solid-svg-icons/faCircleCheck";
5
- import { faCircleXmark } from "@fortawesome/free-solid-svg-icons/faCircleXmark";
6
- import { faClock } from "@fortawesome/free-solid-svg-icons/faClock";
7
- import { faClose } from "@fortawesome/free-solid-svg-icons/faClose";
8
- import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
9
- import { useMemo, useCallback } from "react";
1
+ import { jsx as l, jsxs as t, Fragment as R } from "react/jsx-runtime";
2
+ import { faArrowDownShortWide as G } from "@fortawesome/free-solid-svg-icons/faArrowDownShortWide";
3
+ import { faArrowUpShortWide as Q } from "@fortawesome/free-solid-svg-icons/faArrowUpShortWide";
4
+ import { faCircleCheck as Y } from "@fortawesome/free-solid-svg-icons/faCircleCheck";
5
+ import { faCircleXmark as Z } from "@fortawesome/free-solid-svg-icons/faCircleXmark";
6
+ import { faClock as V } from "@fortawesome/free-solid-svg-icons/faClock";
7
+ import { faClose as J } from "@fortawesome/free-solid-svg-icons/faClose";
8
+ import { FontAwesomeIcon as o } from "@fortawesome/react-fontawesome";
9
+ import { useMemo as p, useCallback as K } from "react";
10
10
  import "yup";
11
11
  import "@multiversx/sdk-dapp-utils/out/helpers/parseAmount";
12
12
  import "bignumber.js";
13
- import { useAccount } from "../../hooks/useAccount.mjs";
13
+ import { useAccount as ee } from "../../hooks/useAccount.mjs";
14
14
  import "@reown/appkit/react";
15
15
  import "axios";
16
- import { useWeb3App } from "../../context/useWeb3App.mjs";
16
+ import { useWeb3App as le } from "../../context/useWeb3App.mjs";
17
17
  import "formik";
18
- import { ProviderType } from "../../../types/providerType.mjs";
19
- import { useFetchBridgeData } from "../../hooks/useFetchBridgeData.mjs";
20
- import { MVX_CHAIN_IDS } from "../../../constants/index.mjs";
18
+ import { ProviderType as ie } from "../../../types/providerType.mjs";
19
+ import { useFetchBridgeData as te } from "../../hooks/useFetchBridgeData.mjs";
20
+ import { MVX_CHAIN_IDS as re } from "../../../constants/index.mjs";
21
21
  import "@tanstack/react-query";
22
22
  import "../../constants/index.mjs";
23
23
  import "@reown/appkit-adapter-solana/react";
24
24
  import "@solana/web3.js";
25
25
  import "wagmi";
26
26
  import "@reown/appkit-controllers";
27
- import { safeImageUrl } from "../../../helpers/safeImageUrl.mjs";
28
- import { useGetHistoryQuery } from "../../queries/useGetHistory.query.mjs";
29
- import { formatAmount } from "../../utils/formatAmount.mjs";
30
- import { mxClsx } from "../../utils/mxClsx.mjs";
31
- import { MxButton } from "../base/MxButton/MxButton.mjs";
32
- import { MxCard } from "../base/MxCard/MxCard.mjs";
27
+ import { safeImageUrl as a } from "../../../helpers/safeImageUrl.mjs";
28
+ import { useGetHistoryQuery as $ } from "../../queries/useGetHistory.query.mjs";
29
+ import { formatAmount as u } from "../../utils/formatAmount.mjs";
30
+ import { mxClsx as n } from "../../utils/mxClsx.mjs";
31
+ import { MxButton as se } from "../base/MxButton/MxButton.mjs";
32
+ import { MxCard as m } from "../base/MxCard/MxCard.mjs";
33
33
  import "../base/MxLink/MxLink.mjs";
34
34
  import "../base/MxSearch/MxSearch.mjs";
35
35
  import "@headlessui/react";
36
- import { MxTooltip } from "../base/MxTooltip/MxTooltip.mjs";
37
- const ArrowUpRight = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%206V13C15%2013.5625%2014.5312%2014%2014%2014C13.4375%2014%2013%2013.5625%2013%2013V8.4375L6.6875%2014.7188C6.3125%2015.125%205.65625%2015.125%205.28125%2014.7188C4.875%2014.3438%204.875%2013.6875%205.28125%2013.3125L11.5625%207H7C6.4375%207%206%206.5625%206%206C6%205.46875%206.4375%205%207%205H14C14.5312%205%2015%205.46875%2015%206Z'%20fill='%23CDD0DB'/%3e%3c/svg%3e";
38
- const BridgeHistory = ({
39
- mvxAddress,
40
- onClose
36
+ import { MxTooltip as f } from "../base/MxTooltip/MxTooltip.mjs";
37
+ const oe = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%206V13C15%2013.5625%2014.5312%2014%2014%2014C13.4375%2014%2013%2013.5625%2013%2013V8.4375L6.6875%2014.7188C6.3125%2015.125%205.65625%2015.125%205.28125%2014.7188C4.875%2014.3438%204.875%2013.6875%205.28125%2013.3125L11.5625%207H7C6.4375%207%206%206.5625%206%206C6%205.46875%206.4375%205%207%205H14C14.5312%205%2015%205.46875%2015%206Z'%20fill='%23CDD0DB'/%3e%3c/svg%3e", Fe = ({
38
+ mvxAddress: g,
39
+ onClose: F
41
40
  }) => {
42
- const { options, bridgeOnly } = useWeb3App();
43
- const bridgeAccount = useAccount();
44
- const {
45
- data: mvxTransactions,
46
- isLoading,
47
- isError
48
- } = useGetHistoryQuery({
49
- address: mvxAddress
50
- });
51
- const { data: bridgeTransactions } = useGetHistoryQuery({
52
- address: bridgeAccount.address ?? ""
53
- });
54
- const mergedTransactions = useMemo(() => {
55
- const mvxTxs = mvxTransactions ?? [];
56
- const bridgeTxs = bridgeOnly && bridgeTransactions ? bridgeTransactions : [];
57
- return [...mvxTxs, ...bridgeTxs].sort(
58
- (a, b) => b.depositTimestamp - a.depositTimestamp
41
+ const { options: w, bridgeOnly: N } = le(), P = ee(), {
42
+ data: b,
43
+ isLoading: v,
44
+ isError: _
45
+ } = $({
46
+ address: g
47
+ }), { data: h } = $({
48
+ address: P.address ?? ""
49
+ }), q = p(() => {
50
+ const e = b ?? [], s = N && h ? h : [];
51
+ return [...e, ...s].sort(
52
+ (c, d) => d.depositTimestamp - c.depositTimestamp
59
53
  );
60
- }, [bridgeOnly, bridgeTransactions, mvxTransactions]);
61
- const resolveTransactionIcon = useCallback((transaction) => {
62
- switch (transaction.status) {
54
+ }, [N, h, b]), y = K((e) => {
55
+ switch (e.status) {
63
56
  case "success":
64
- return /* @__PURE__ */ jsx(
65
- FontAwesomeIcon,
57
+ return /* @__PURE__ */ l(
58
+ o,
66
59
  {
67
- icon: faCircleCheck,
60
+ icon: Y,
68
61
  size: "lg",
69
62
  className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-green-400"
70
63
  }
71
64
  );
72
65
  case "failed":
73
- return /* @__PURE__ */ jsx(
74
- FontAwesomeIcon,
66
+ return /* @__PURE__ */ l(
67
+ o,
75
68
  {
76
- icon: faCircleXmark,
69
+ icon: Z,
77
70
  size: "lg",
78
71
  className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-red-400"
79
72
  }
80
73
  );
81
74
  default:
82
- return /* @__PURE__ */ jsx(
83
- FontAwesomeIcon,
75
+ return /* @__PURE__ */ l(
76
+ o,
84
77
  {
85
- icon: faClock,
78
+ icon: V,
86
79
  size: "lg",
87
80
  className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-yellow-400"
88
81
  }
89
82
  );
90
83
  }
91
- }, []);
92
- const transactions = useMemo(
93
- () => mergedTransactions == null ? void 0 : mergedTransactions.map((transaction) => {
94
- return {
95
- ...transaction,
96
- tokenDestination: transaction.tokenOut.toLowerCase(),
97
- tokenSource: transaction.tokenIn.toLowerCase(),
98
- sender: transaction.sender.toLowerCase(),
99
- statusIcon: resolveTransactionIcon(transaction)
100
- };
101
- }),
102
- [mergedTransactions, resolveTransactionIcon]
103
- );
104
- const {
105
- evmTokensWithBalances,
106
- mvxTokensWithBalances,
107
- chains,
108
- isTokensLoading: tokensLoading,
109
- isChainsLoading
110
- } = useFetchBridgeData({
111
- mvxAddress,
112
- mvxApiURL: options.mvxApiURL
113
- });
114
- const tokensMap = useMemo(() => {
115
- return [
116
- ...evmTokensWithBalances ?? [],
117
- ...mvxTokensWithBalances ?? []
118
- ].reduce(
119
- (acc, token) => {
120
- acc[token.address.toLowerCase()] = token;
121
- return acc;
122
- },
123
- {}
124
- );
125
- }, [evmTokensWithBalances, mvxTokensWithBalances]);
126
- const chainsMap = useMemo(() => {
127
- return (chains ?? []).reduce(
128
- (acc, chain) => {
129
- acc[chain.chainId.toString()] = chain;
130
- return acc;
131
- },
132
- {}
133
- );
134
- }, [chains]);
135
- const className = mxClsx(
84
+ }, []), r = p(
85
+ () => q == null ? void 0 : q.map((e) => ({
86
+ ...e,
87
+ tokenDestination: e.tokenOut.toLowerCase(),
88
+ tokenSource: e.tokenIn.toLowerCase(),
89
+ sender: e.sender.toLowerCase(),
90
+ statusIcon: y(e)
91
+ })),
92
+ [q, y]
93
+ ), {
94
+ evmTokensWithBalances: C,
95
+ mvxTokensWithBalances: k,
96
+ chains: S,
97
+ isTokensLoading: X,
98
+ isChainsLoading: E
99
+ } = te({
100
+ mvxAddress: g,
101
+ mvxApiURL: w.mvxApiURL
102
+ }), i = p(() => [
103
+ ...C ?? [],
104
+ ...k ?? []
105
+ ].reduce(
106
+ (e, s) => (e[s.address.toLowerCase()] = s, e),
107
+ {}
108
+ ), [C, k]), T = p(() => (S ?? []).reduce(
109
+ (e, s) => (e[s.chainId.toString()] = s, e),
110
+ {}
111
+ ), [S]), x = n(
136
112
  "liq-flex liq-flex-col liq-absolute liq-left-0 liq-top-0 liq-order-1 liq-mx-auto liq-w-full liq-gap-1 liq-pt-12 lg:liq-order-2 lg:liq-max-w-[27.5rem] !liq-min-h-[26rem] !liq-h-[26rem] !lg:liq-pt-0 !liq-bg-neutral-850 !liq-z-[16] !liq-p-2 !liq-pointer-events-auto",
137
113
  {
138
- "!liq-disabled !liq-animate-pulse": isLoading || tokensLoading || isChainsLoading
114
+ "!liq-disabled !liq-animate-pulse": v || X || E
139
115
  }
140
116
  );
141
- if (isLoading && !transactions) {
142
- return /* @__PURE__ */ jsx(MxCard, { className: mxClsx("liq-flex", className) });
143
- }
144
- if (isError && !transactions) {
145
- return /* @__PURE__ */ jsx(MxCard, { className: mxClsx("liq-flex liq-flex-col liq-gap-1", className), children: "Something went wrong. Please try again later." });
146
- }
147
- return /* @__PURE__ */ jsxs(MxCard, { className: mxClsx("liq-flex liq-flex-col liq-gap-1", className), children: [
148
- /* @__PURE__ */ jsxs(
117
+ return v && !r ? /* @__PURE__ */ l(m, { className: n("liq-flex", x) }) : _ && !r ? /* @__PURE__ */ l(m, { className: n("liq-flex liq-flex-col liq-gap-1", x), children: "Something went wrong. Please try again later." }) : /* @__PURE__ */ t(m, { className: n("liq-flex liq-flex-col liq-gap-1", x), children: [
118
+ /* @__PURE__ */ t(
149
119
  "div",
150
120
  {
151
121
  className: "liq-flex liq-items-center liq-justify-between liq-py-1 liq-mt-0.5",
152
122
  children: [
153
- /* @__PURE__ */ jsx("div", { className: "liq-flex liq-flex-1 liq-items-center liq-justify-center liq-text-center liq-text-lg", children: "History" }),
154
- /* @__PURE__ */ jsx(
155
- MxButton,
123
+ /* @__PURE__ */ l("div", { className: "liq-flex liq-flex-1 liq-items-center liq-justify-center liq-text-center liq-text-lg", children: "History" }),
124
+ /* @__PURE__ */ l(
125
+ se,
156
126
  {
157
127
  btnSize: "md",
158
128
  className: "liq-border-none !liq-p-0 !liq-mr-2",
159
129
  variant: "link-neutral-500",
160
- onClick: onClose,
161
- children: /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faClose, size: "xl" })
130
+ onClick: F,
131
+ children: /* @__PURE__ */ l(o, { icon: J, size: "xl" })
162
132
  }
163
133
  )
164
134
  ]
165
135
  }
166
136
  ),
167
- /* @__PURE__ */ jsxs("div", { className: "scrollbar-thin liq-flex liq-flex-1 liq-flex-col liq-gap-1 liq-overflow-y-scroll", children: [
168
- (transactions == null ? void 0 : transactions.length) === 0 && /* @__PURE__ */ jsx(
169
- MxCard,
137
+ /* @__PURE__ */ t("div", { className: "scrollbar-thin liq-flex liq-flex-1 liq-flex-col liq-gap-1 liq-overflow-y-scroll", children: [
138
+ (r == null ? void 0 : r.length) === 0 && /* @__PURE__ */ l(
139
+ m,
170
140
  {
171
141
  cardSize: "lg",
172
142
  variant: "transparent",
173
143
  className: "liq-align-center liq-flex liq-h-full liq-flex-col liq-justify-center liq-gap-4 liq-border-0 !liq-pb-8 !liq-pt-6 !sm:liq-pb-6 !lg:liq-p-4",
174
- children: /* @__PURE__ */ jsxs("div", { className: "liq-align-center liq-flex liq-flex-col liq-justify-center liq-gap-8", children: [
175
- /* @__PURE__ */ jsx("div", { className: "liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx(
176
- FontAwesomeIcon,
144
+ children: /* @__PURE__ */ t("div", { className: "liq-align-center liq-flex liq-flex-col liq-justify-center liq-gap-8", children: [
145
+ /* @__PURE__ */ l("div", { className: "liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ l(
146
+ o,
177
147
  {
178
- icon: faClock,
148
+ icon: V,
179
149
  size: "6x",
180
150
  className: "liq-rounded-full liq-bg-primary-400 liq-text-[#2b617a]"
181
151
  }
182
152
  ) }),
183
- /* @__PURE__ */ jsxs("div", { className: mxClsx("liq-flex liq-flex-col liq-items-center"), children: [
184
- /* @__PURE__ */ jsx("div", { className: "liq-text-xl", children: "No transactions" }),
185
- /* @__PURE__ */ jsx("div", { className: "liq-text-neutral-400", children: "Your transactions history will appear here" })
153
+ /* @__PURE__ */ t("div", { className: n("liq-flex liq-flex-col liq-items-center"), children: [
154
+ /* @__PURE__ */ l("div", { className: "liq-text-xl", children: "No transactions" }),
155
+ /* @__PURE__ */ l("div", { className: "liq-text-neutral-400", children: "Your transactions history will appear here" })
186
156
  ] })
187
157
  ] })
188
158
  }
189
159
  ),
190
- transactions && (transactions == null ? void 0 : transactions.length) > 0 && transactions.map((transaction, index) => {
191
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
192
- return /* @__PURE__ */ jsx(
193
- MxCard,
160
+ r && (r == null ? void 0 : r.length) > 0 && r.map((e, s) => {
161
+ var c, d, j, D, I, L, U, A, z, M, B, H, W, O;
162
+ return /* @__PURE__ */ l(
163
+ m,
194
164
  {
195
165
  cardSize: "lg",
196
166
  variant: "neutral-750",
197
167
  className: "liq-flex liq-flex-col liq-gap-4 !liq-outline liq-outline-transparent !liq-p-4 liq-border liq-border-neutral-750 liq-bg-neutral-850 hover:!liq-bg-neutral-700 !liq-rounded-lg",
198
- children: /* @__PURE__ */ jsxs("div", { className: "liq-align-center liq-flex liq-justify-between liq-gap-1", children: [
199
- /* @__PURE__ */ jsxs(
168
+ children: /* @__PURE__ */ t("div", { className: "liq-align-center liq-flex liq-justify-between liq-gap-1", children: [
169
+ /* @__PURE__ */ t(
200
170
  "div",
201
171
  {
202
- className: mxClsx("liq-flex liq-items-center liq-gap-1", {
203
- "liq-text-yellow-200": transaction.status === "pending",
204
- "liq-text-green-200": transaction.status === "success",
205
- "liq-text-red-200": transaction.status === "failed"
172
+ className: n("liq-flex liq-items-center liq-gap-1", {
173
+ "liq-text-yellow-200": e.status === "pending",
174
+ "liq-text-green-200": e.status === "success",
175
+ "liq-text-red-200": e.status === "failed"
206
176
  }),
207
177
  children: [
208
- /* @__PURE__ */ jsx(
209
- MxTooltip,
178
+ /* @__PURE__ */ l(
179
+ f,
210
180
  {
211
181
  placement: "top",
212
- buttonText: transaction.statusIcon,
182
+ buttonText: e.statusIcon,
213
183
  children: new Date(
214
- transaction.depositTimestamp * 1e3
184
+ e.depositTimestamp * 1e3
215
185
  ).toLocaleString()
216
186
  }
217
187
  ),
218
- MVX_CHAIN_IDS.includes(transaction.toChainId) ? /* @__PURE__ */ jsxs(Fragment, { children: [
219
- /* @__PURE__ */ jsx(
220
- MxTooltip,
188
+ re.includes(e.toChainId) ? /* @__PURE__ */ t(R, { children: [
189
+ /* @__PURE__ */ l(
190
+ f,
221
191
  {
222
192
  placement: "top",
223
- buttonText: /* @__PURE__ */ jsx(
224
- FontAwesomeIcon,
193
+ buttonText: /* @__PURE__ */ l(
194
+ o,
225
195
  {
226
- icon: faArrowDownShortWide,
196
+ icon: G,
227
197
  className: "liq-mx-1 liq-flex liq-items-center"
228
198
  }
229
199
  ),
230
200
  children: "Deposit"
231
201
  }
232
202
  ),
233
- /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
234
- decimals: (_a = tokensMap[transaction.tokenDestination]) == null ? void 0 : _a.decimals,
235
- amount: transaction.amountOut,
236
- addCommas: false,
203
+ /* @__PURE__ */ l("span", { className: "liq-text-wrap", children: u({
204
+ decimals: (c = i[e.tokenDestination]) == null ? void 0 : c.decimals,
205
+ amount: e.amountOut,
206
+ addCommas: !1,
237
207
  digits: 2
238
208
  }) }),
239
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: (_b = tokensMap[transaction.tokenDestination]) == null ? void 0 : _b.symbol }),
240
- /* @__PURE__ */ jsx(
209
+ /* @__PURE__ */ l("span", { className: "liq-whitespace-nowrap", children: (d = i[e.tokenDestination]) == null ? void 0 : d.symbol }),
210
+ /* @__PURE__ */ l(
241
211
  "img",
242
212
  {
243
- src: safeImageUrl(
244
- (_c = tokensMap[transaction.tokenDestination]) == null ? void 0 : _c.pngUrl
213
+ src: a(
214
+ (j = i[e.tokenDestination]) == null ? void 0 : j.pngUrl
245
215
  ),
246
216
  alt: "",
247
217
  className: "liq-h-[1.5rem] liq-w-[1.5rem] liq-rounded-lg"
248
218
  }
249
219
  ),
250
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: "from" }),
251
- /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
252
- decimals: (_d = tokensMap[transaction.tokenSource]) == null ? void 0 : _d.decimals,
253
- amount: transaction.amountIn,
254
- addCommas: false,
220
+ /* @__PURE__ */ l("span", { className: "liq-whitespace-nowrap", children: "from" }),
221
+ /* @__PURE__ */ l("span", { className: "liq-text-wrap", children: u({
222
+ decimals: (D = i[e.tokenSource]) == null ? void 0 : D.decimals,
223
+ amount: e.amountIn,
224
+ addCommas: !1,
255
225
  digits: 2
256
226
  }) }),
257
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: (_e = tokensMap[transaction.tokenSource]) == null ? void 0 : _e.symbol }),
258
- /* @__PURE__ */ jsxs("div", { className: "liq-flex liq-items-center liq-relative", children: [
259
- /* @__PURE__ */ jsx("div", { className: "liq-flex-shrink-0 liq-overflow-hidden liq-rounded-full liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx("div", { className: "liq-h-6 liq-w-6 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx(
227
+ /* @__PURE__ */ l("span", { className: "liq-whitespace-nowrap", children: (I = i[e.tokenSource]) == null ? void 0 : I.symbol }),
228
+ /* @__PURE__ */ t("div", { className: "liq-flex liq-items-center liq-relative", children: [
229
+ /* @__PURE__ */ l("div", { className: "liq-flex-shrink-0 liq-overflow-hidden liq-rounded-full liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ l("div", { className: "liq-h-6 liq-w-6 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ l(
260
230
  "img",
261
231
  {
262
- src: safeImageUrl(
263
- (_f = tokensMap[transaction.tokenSource]) == null ? void 0 : _f.pngUrl
232
+ src: a(
233
+ (L = i[e.tokenSource]) == null ? void 0 : L.pngUrl
264
234
  ),
265
235
  alt: "",
266
236
  className: "liq-asset-icon liq-sm liq-p-0"
267
237
  }
268
238
  ) }) }),
269
- /* @__PURE__ */ jsx(
239
+ /* @__PURE__ */ l(
270
240
  "img",
271
241
  {
272
- src: safeImageUrl(
273
- (_g = chainsMap[transaction.fromChainId]) == null ? void 0 : _g.pngUrl
242
+ src: a(
243
+ (U = T[e.fromChainId]) == null ? void 0 : U.pngUrl
274
244
  ),
275
245
  alt: "",
276
246
  className: "liq-absolute liq-left-3 liq-bottom-[-2px] liq-chain-icon liq-sm liq-w-5 liq-h-5 liq-border-[3px] liq-border-neutral-850 liq-rounded-lg"
277
247
  }
278
248
  )
279
249
  ] })
280
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
281
- /* @__PURE__ */ jsx(
282
- MxTooltip,
250
+ ] }) : /* @__PURE__ */ t(R, { children: [
251
+ /* @__PURE__ */ l(
252
+ f,
283
253
  {
284
254
  placement: "top",
285
- buttonText: /* @__PURE__ */ jsx(
286
- FontAwesomeIcon,
255
+ buttonText: /* @__PURE__ */ l(
256
+ o,
287
257
  {
288
- icon: faArrowUpShortWide,
258
+ icon: Q,
289
259
  className: "liq-mx-1 liq-flex liq-items-center"
290
260
  }
291
261
  ),
292
262
  children: "Transfer"
293
263
  }
294
264
  ),
295
- /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
296
- decimals: (_h = tokensMap[transaction.tokenSource]) == null ? void 0 : _h.decimals,
297
- amount: transaction.amountIn,
298
- addCommas: false,
265
+ /* @__PURE__ */ l("span", { className: "liq-text-wrap", children: u({
266
+ decimals: (A = i[e.tokenSource]) == null ? void 0 : A.decimals,
267
+ amount: e.amountIn,
268
+ addCommas: !1,
299
269
  digits: 2
300
270
  }) }),
301
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: (_i = tokensMap[transaction.tokenSource]) == null ? void 0 : _i.symbol }),
302
- /* @__PURE__ */ jsx(
271
+ /* @__PURE__ */ l("span", { className: "liq-whitespace-nowrap", children: (z = i[e.tokenSource]) == null ? void 0 : z.symbol }),
272
+ /* @__PURE__ */ l(
303
273
  "img",
304
274
  {
305
- src: safeImageUrl(
306
- (_j = tokensMap[transaction.tokenSource]) == null ? void 0 : _j.pngUrl
275
+ src: a(
276
+ (M = i[e.tokenSource]) == null ? void 0 : M.pngUrl
307
277
  ),
308
278
  alt: "",
309
279
  className: "liq-h-[1.5rem] liq-w-[1.5rem] liq-rounded-lg"
310
280
  }
311
281
  ),
312
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: "to" }),
313
- /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
314
- decimals: (_k = tokensMap[transaction.tokenDestination]) == null ? void 0 : _k.decimals,
315
- amount: transaction.amountOut,
316
- addCommas: false,
282
+ /* @__PURE__ */ l("span", { className: "liq-whitespace-nowrap", children: "to" }),
283
+ /* @__PURE__ */ l("span", { className: "liq-text-wrap", children: u({
284
+ decimals: (B = i[e.tokenDestination]) == null ? void 0 : B.decimals,
285
+ amount: e.amountOut,
286
+ addCommas: !1,
317
287
  digits: 2
318
288
  }) }),
319
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: (_l = tokensMap[transaction.tokenDestination]) == null ? void 0 : _l.symbol }),
320
- /* @__PURE__ */ jsxs("div", { className: "liq-flex liq-items-center liq-relative", children: [
321
- /* @__PURE__ */ jsx("div", { className: "liq-flex-shrink-0 liq-overflow-hidden liq-rounded-full liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx("div", { className: "liq-h-6 liq-w-6 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx(
289
+ /* @__PURE__ */ l("span", { className: "liq-whitespace-nowrap", children: (H = i[e.tokenDestination]) == null ? void 0 : H.symbol }),
290
+ /* @__PURE__ */ t("div", { className: "liq-flex liq-items-center liq-relative", children: [
291
+ /* @__PURE__ */ l("div", { className: "liq-flex-shrink-0 liq-overflow-hidden liq-rounded-full liq-h-8 liq-w-8 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ l("div", { className: "liq-h-6 liq-w-6 liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ l(
322
292
  "img",
323
293
  {
324
- src: safeImageUrl(
325
- (_m = tokensMap[transaction.tokenDestination]) == null ? void 0 : _m.pngUrl
294
+ src: a(
295
+ (W = i[e.tokenDestination]) == null ? void 0 : W.pngUrl
326
296
  ),
327
297
  alt: "",
328
298
  className: "liq-asset-icon liq-sm liq-p-0"
329
299
  }
330
300
  ) }) }),
331
- /* @__PURE__ */ jsx(
301
+ /* @__PURE__ */ l(
332
302
  "img",
333
303
  {
334
- src: safeImageUrl(
335
- (_n = chainsMap[transaction.toChainId]) == null ? void 0 : _n.pngUrl
304
+ src: a(
305
+ (O = T[e.toChainId]) == null ? void 0 : O.pngUrl
336
306
  ),
337
307
  alt: "",
338
308
  className: "liq-absolute liq-left-3 liq-bottom-[-2px] liq-chain-icon liq-sm liq-w-5 liq-h-5 liq-border-[3px] liq-border-neutral-850 liq-rounded-lg"
@@ -343,26 +313,26 @@ const BridgeHistory = ({
343
313
  ]
344
314
  }
345
315
  ),
346
- transaction.provider === ProviderType.MultiversxBridge && /* @__PURE__ */ jsx(
316
+ e.provider === ie.MultiversxBridge && /* @__PURE__ */ l(
347
317
  "a",
348
318
  {
349
- href: `${options.bridgeURL}/status/${transaction.txHash}`,
319
+ href: `${w.bridgeURL}/status/${e.txHash}`,
350
320
  target: "_blank",
351
321
  rel: "noopener noreferrer",
352
322
  className: "liq-flex",
353
- children: /* @__PURE__ */ jsx("div", { className: "liq-ml-auto liq-mr-0 liq-flex liq-items-center liq-gap-1", children: /* @__PURE__ */ jsx(
354
- MxTooltip,
323
+ children: /* @__PURE__ */ l("div", { className: "liq-ml-auto liq-mr-0 liq-flex liq-items-center liq-gap-1", children: /* @__PURE__ */ l(
324
+ f,
355
325
  {
356
326
  placement: "top",
357
- buttonText: /* @__PURE__ */ jsx(
327
+ buttonText: /* @__PURE__ */ l(
358
328
  "img",
359
329
  {
360
- src: ArrowUpRight,
330
+ src: oe,
361
331
  alt: "",
362
332
  className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-neutral-200"
363
333
  }
364
334
  ),
365
- shouldStopPropagation: false,
335
+ shouldStopPropagation: !1,
366
336
  children: "View"
367
337
  }
368
338
  ) })
@@ -370,12 +340,12 @@ const BridgeHistory = ({
370
340
  )
371
341
  ] })
372
342
  },
373
- `${transaction.txHash}-${index}`
343
+ `${e.txHash}-${s}`
374
344
  );
375
345
  })
376
346
  ] })
377
347
  ] });
378
348
  };
379
349
  export {
380
- BridgeHistory
350
+ Fe as BridgeHistory
381
351
  };
@@ -1,5 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const reactjs_components_BridgeHistory_BridgeHistory = require("./BridgeHistory.js");
5
- exports.BridgeHistory = reactjs_components_BridgeHistory_BridgeHistory.BridgeHistory;
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./BridgeHistory.js");exports.BridgeHistory=e.BridgeHistory;
@@ -1,4 +1,4 @@
1
- import { BridgeHistory } from "./BridgeHistory.mjs";
1
+ import { BridgeHistory as e } from "./BridgeHistory.mjs";
2
2
  export {
3
- BridgeHistory
3
+ e as BridgeHistory
4
4
  };