@multiversx/sdk-dapp-liquidity 2.0.0 → 2.1.0-alpha.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 (375) 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.d.ts +8 -0
  38. package/helpers/assertRateConfirmationMatchesIntent.js +2 -0
  39. package/helpers/assertRateConfirmationMatchesIntent.mjs +20 -0
  40. package/helpers/base64Utils.js +1 -31
  41. package/helpers/base64Utils.mjs +14 -24
  42. package/helpers/decodeLoginToken.js +1 -27
  43. package/helpers/decodeLoginToken.mjs +13 -18
  44. package/helpers/decodeToken.js +1 -39
  45. package/helpers/decodeToken.mjs +20 -31
  46. package/helpers/getApiURL.js +1 -7
  47. package/helpers/getApiURL.mjs +3 -5
  48. package/helpers/getBridgeURL.js +1 -7
  49. package/helpers/getBridgeURL.mjs +3 -5
  50. package/helpers/getDisplayName.js +1 -11
  51. package/helpers/getDisplayName.mjs +3 -8
  52. package/helpers/getMvxApiURL.js +1 -7
  53. package/helpers/getMvxApiURL.mjs +3 -5
  54. package/helpers/getMvxChainId.js +1 -7
  55. package/helpers/getMvxChainId.mjs +3 -5
  56. package/helpers/getMvxExplorerAddress.js +1 -7
  57. package/helpers/getMvxExplorerAddress.mjs +3 -5
  58. package/helpers/index.d.ts +2 -0
  59. package/helpers/index.js +1 -22
  60. package/helpers/index.mjs +24 -20
  61. package/helpers/safeImageUrl.d.ts +1 -0
  62. package/helpers/safeImageUrl.js +2 -0
  63. package/helpers/safeImageUrl.mjs +13 -0
  64. package/helpers/serializeTransaction.js +1 -8
  65. package/helpers/serializeTransaction.mjs +3 -5
  66. package/helpers/tests/assertRateConfirmationMatchesIntent.spec.d.ts +1 -0
  67. package/helpers/tests/assertRateConfirmationMatchesIntent.spec.js +2 -0
  68. package/helpers/tests/assertRateConfirmationMatchesIntent.spec.mjs +52 -0
  69. package/helpers/tests/base64Utils.spec.js +1 -29
  70. package/helpers/tests/base64Utils.spec.mjs +11 -24
  71. package/helpers/tests/decodeLoginToken.spec.js +1 -34
  72. package/helpers/tests/decodeLoginToken.spec.mjs +13 -24
  73. package/helpers/tests/decodeToken.spec.js +1 -27
  74. package/helpers/tests/decodeToken.spec.mjs +7 -12
  75. package/helpers/tests/safeImageUrl.spec.d.ts +1 -0
  76. package/helpers/tests/safeImageUrl.spec.js +2 -0
  77. package/helpers/tests/safeImageUrl.spec.mjs +32 -0
  78. package/helpers/tests/serializeTransaction.spec.d.ts +1 -0
  79. package/helpers/tests/serializeTransaction.spec.js +2 -0
  80. package/helpers/tests/serializeTransaction.spec.mjs +24 -0
  81. package/index.js +1 -228
  82. package/index.mjs +196 -192
  83. package/package.json +14 -9
  84. package/react.esm-B0AMOHxa.js +73 -0
  85. package/react.esm-BxvJJ86Q.mjs +9949 -0
  86. package/reactjs/adapters/SuiAdapter.d.ts +14 -0
  87. package/reactjs/adapters/SuiAdapter.js +1 -349
  88. package/reactjs/adapters/SuiAdapter.mjs +171 -199
  89. package/reactjs/components/AccountAddress/AccountAddress.js +1 -31
  90. package/reactjs/components/AccountAddress/AccountAddress.mjs +16 -16
  91. package/reactjs/components/AccountAddress/index.js +1 -4
  92. package/reactjs/components/AccountAddress/index.mjs +2 -2
  93. package/reactjs/components/AmountCard/AmountCard.js +1 -33
  94. package/reactjs/components/AmountCard/AmountCard.mjs +19 -21
  95. package/reactjs/components/AmountCard/index.js +1 -4
  96. package/reactjs/components/AmountCard/index.mjs +2 -2
  97. package/reactjs/components/AmountInput/AmountInput.js +1 -71
  98. package/reactjs/components/AmountInput/AmountInput.mjs +42 -46
  99. package/reactjs/components/AmountInput/index.js +1 -4
  100. package/reactjs/components/AmountInput/index.mjs +2 -2
  101. package/reactjs/components/BridgeForm/BridgeForm.d.ts +9 -0
  102. package/reactjs/components/BridgeForm/BridgeForm.js +1 -89
  103. package/reactjs/components/BridgeForm/BridgeForm.mjs +72 -79
  104. package/reactjs/components/BridgeForm/Deposit.js +1 -673
  105. package/reactjs/components/BridgeForm/Deposit.mjs +381 -503
  106. package/reactjs/components/BridgeForm/Transfer.js +1 -559
  107. package/reactjs/components/BridgeForm/Transfer.mjs +316 -427
  108. package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.js +1 -78
  109. package/reactjs/components/BridgeForm/hooks/useBridgeAmounts.mjs +47 -70
  110. package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.js +1 -58
  111. package/reactjs/components/BridgeForm/hooks/useBridgeRateFetching.mjs +36 -47
  112. package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.js +1 -266
  113. package/reactjs/components/BridgeForm/hooks/useBridgeTokenSelection.mjs +163 -231
  114. package/reactjs/components/BridgeForm/index.js +1 -4
  115. package/reactjs/components/BridgeForm/index.mjs +2 -2
  116. package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.js +1 -76
  117. package/reactjs/components/BridgeForm/utils/bridgeFormHelpers.mjs +35 -65
  118. package/reactjs/components/BridgeHistory/BridgeHistory.js +1 -367
  119. package/reactjs/components/BridgeHistory/BridgeHistory.mjs +177 -193
  120. package/reactjs/components/BridgeHistory/index.js +1 -4
  121. package/reactjs/components/BridgeHistory/index.mjs +2 -2
  122. package/reactjs/components/Connect/BridgeAccountDisplay.js +1 -150
  123. package/reactjs/components/Connect/BridgeAccountDisplay.mjs +99 -115
  124. package/reactjs/components/Connect/BridgeConnectButton.js +1 -34
  125. package/reactjs/components/Connect/BridgeConnectButton.mjs +20 -19
  126. package/reactjs/components/Connect/ChainSelectConnect.js +1 -144
  127. package/reactjs/components/Connect/ChainSelectConnect.mjs +70 -83
  128. package/reactjs/components/Connect/CustomConnectButton.js +1 -40
  129. package/reactjs/components/Connect/CustomConnectButton.mjs +24 -30
  130. package/reactjs/components/Connect/MvxAccountDisplay.js +1 -97
  131. package/reactjs/components/Connect/MvxAccountDisplay.mjs +47 -50
  132. package/reactjs/components/Connect/MvxConnectButton.js +1 -43
  133. package/reactjs/components/Connect/MvxConnectButton.mjs +35 -40
  134. package/reactjs/components/Connect/SwitchChainButton.js +1 -29
  135. package/reactjs/components/Connect/SwitchChainButton.mjs +15 -18
  136. package/reactjs/components/Connect/index.js +1 -16
  137. package/reactjs/components/Connect/index.mjs +14 -14
  138. package/reactjs/components/CopyButton/CopyButton.js +1 -46
  139. package/reactjs/components/CopyButton/CopyButton.mjs +33 -36
  140. package/reactjs/components/CopyButton/index.js +1 -4
  141. package/reactjs/components/CopyButton/index.mjs +2 -2
  142. package/reactjs/components/CopyButton/utils/copyToClipboard.js +1 -38
  143. package/reactjs/components/CopyButton/utils/copyToClipboard.mjs +20 -32
  144. package/reactjs/components/CopyButton/utils/index.js +1 -4
  145. package/reactjs/components/CopyButton/utils/index.mjs +2 -2
  146. package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -90
  147. package/reactjs/components/DisplayAmount/DisplayAmount.mjs +68 -75
  148. package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.js +1 -39
  149. package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.mjs +26 -33
  150. package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.js +1 -61
  151. package/reactjs/components/DisplayAmount/components/PrecisedAmount/PrecisedAmount.mjs +38 -46
  152. package/reactjs/components/DisplayAmount/index.js +1 -4
  153. package/reactjs/components/DisplayAmount/index.mjs +2 -2
  154. package/reactjs/components/DisplayAmount/utils/index.js +1 -4
  155. package/reactjs/components/DisplayAmount/utils/index.mjs +2 -2
  156. package/reactjs/components/DisplayAmount/utils/truncateAmount.js +1 -21
  157. package/reactjs/components/DisplayAmount/utils/truncateAmount.mjs +9 -13
  158. package/reactjs/components/Error/Error.js +1 -66
  159. package/reactjs/components/Error/Error.mjs +29 -29
  160. package/reactjs/components/Error/index.js +1 -4
  161. package/reactjs/components/Error/index.mjs +2 -2
  162. package/reactjs/components/SmallLoader/SmallLoader.js +1 -21
  163. package/reactjs/components/SmallLoader/SmallLoader.mjs +13 -18
  164. package/reactjs/components/SmallLoader/index.js +1 -4
  165. package/reactjs/components/SmallLoader/index.mjs +2 -2
  166. package/reactjs/components/ToggleDirection/ToggleDirection.js +1 -30
  167. package/reactjs/components/ToggleDirection/ToggleDirection.mjs +22 -28
  168. package/reactjs/components/TokenSelector/TokenSelector.js +1 -172
  169. package/reactjs/components/TokenSelector/TokenSelector.mjs +98 -118
  170. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +1 -94
  171. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +48 -57
  172. package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js +1 -51
  173. package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs +45 -44
  174. package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.js +1 -18
  175. package/reactjs/components/TokenSelector/components/ChainSelect/components/FormatChainOptionLabel.mjs +9 -14
  176. package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.js +1 -6
  177. package/reactjs/components/TokenSelector/components/ChainSelect/components/IndicatorSeparator.mjs +2 -4
  178. package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js +1 -39
  179. package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs +22 -18
  180. package/reactjs/components/TokenSelector/components/SelectContainer.js +1 -40
  181. package/reactjs/components/TokenSelector/components/SelectContainer.mjs +36 -38
  182. package/reactjs/components/TokenSelector/components/SelectContent.js +1 -136
  183. package/reactjs/components/TokenSelector/components/SelectContent.mjs +79 -103
  184. package/reactjs/components/TokenSelector/components/SelectedOption.js +1 -28
  185. package/reactjs/components/TokenSelector/components/SelectedOption.mjs +22 -24
  186. package/reactjs/components/TokenSelector/components/TokenIcon.js +1 -81
  187. package/reactjs/components/TokenSelector/components/TokenIcon.mjs +52 -57
  188. package/reactjs/components/TokenSelector/components/TokenItem.js +1 -80
  189. package/reactjs/components/TokenSelector/components/TokenItem.mjs +41 -54
  190. package/reactjs/components/TokenSelector/components/TokenList.js +1 -23
  191. package/reactjs/components/TokenSelector/components/TokenList.mjs +19 -21
  192. package/reactjs/components/TokenSelector/components/TokenSymbol.js +1 -25
  193. package/reactjs/components/TokenSelector/components/TokenSymbol.mjs +14 -15
  194. package/reactjs/components/TokenSelector/index.js +1 -4
  195. package/reactjs/components/TokenSelector/index.mjs +2 -2
  196. package/reactjs/components/TransactionToast/TransactionToast.js +1 -53
  197. package/reactjs/components/TransactionToast/TransactionToast.mjs +27 -28
  198. package/reactjs/components/TransactionToast/TransactionToastContainer.js +1 -20
  199. package/reactjs/components/TransactionToast/TransactionToastContainer.mjs +16 -18
  200. package/reactjs/components/TransactionToast/index.js +1 -6
  201. package/reactjs/components/TransactionToast/index.mjs +4 -4
  202. package/reactjs/components/TrimAddress/TrimAddress.js +1 -27
  203. package/reactjs/components/TrimAddress/TrimAddress.mjs +19 -24
  204. package/reactjs/components/TrimAddress/index.js +1 -4
  205. package/reactjs/components/TrimAddress/index.mjs +2 -2
  206. package/reactjs/components/base/MxButton/MxButton.js +1 -71
  207. package/reactjs/components/base/MxButton/MxButton.mjs +46 -46
  208. package/reactjs/components/base/MxButton/index.js +1 -4
  209. package/reactjs/components/base/MxButton/index.mjs +2 -2
  210. package/reactjs/components/base/MxCard/MxCard.js +1 -54
  211. package/reactjs/components/base/MxCard/MxCard.mjs +34 -34
  212. package/reactjs/components/base/MxCard/index.js +1 -4
  213. package/reactjs/components/base/MxCard/index.mjs +2 -2
  214. package/reactjs/components/base/MxCircleLoader/MxCircleLoader.js +1 -28
  215. package/reactjs/components/base/MxCircleLoader/MxCircleLoader.mjs +24 -26
  216. package/reactjs/components/base/MxCircleLoader/index.js +1 -4
  217. package/reactjs/components/base/MxCircleLoader/index.mjs +2 -2
  218. package/reactjs/components/base/MxLink/MxLink.js +1 -70
  219. package/reactjs/components/base/MxLink/MxLink.mjs +44 -46
  220. package/reactjs/components/base/MxLink/index.js +1 -4
  221. package/reactjs/components/base/MxLink/index.mjs +2 -2
  222. package/reactjs/components/base/MxSearch/MxSearch.js +1 -69
  223. package/reactjs/components/base/MxSearch/MxSearch.mjs +37 -41
  224. package/reactjs/components/base/MxSearch/index.js +1 -4
  225. package/reactjs/components/base/MxSearch/index.mjs +2 -2
  226. package/reactjs/components/base/MxSlideover/MxSlideover.js +1 -78
  227. package/reactjs/components/base/MxSlideover/MxSlideover.mjs +72 -74
  228. package/reactjs/components/base/MxSlideover/index.js +1 -4
  229. package/reactjs/components/base/MxSlideover/index.mjs +2 -2
  230. package/reactjs/components/base/MxTooltip/MxTooltip.js +1 -163
  231. package/reactjs/components/base/MxTooltip/MxTooltip.mjs +92 -135
  232. package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.js +1 -33
  233. package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.mjs +29 -31
  234. package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.js +1 -4
  235. package/reactjs/components/base/MxTooltip/components/TooltipContainer/index.mjs +2 -2
  236. package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.js +1 -27
  237. package/reactjs/components/base/MxTooltip/components/TooltipContent/TooltipContent.mjs +23 -25
  238. package/reactjs/components/base/MxTooltip/components/TooltipContent/index.js +1 -4
  239. package/reactjs/components/base/MxTooltip/components/TooltipContent/index.mjs +2 -2
  240. package/reactjs/components/base/MxTooltip/components/index.js +1 -6
  241. package/reactjs/components/base/MxTooltip/components/index.mjs +4 -4
  242. package/reactjs/components/base/MxTooltip/index.js +1 -4
  243. package/reactjs/components/base/MxTooltip/index.mjs +2 -2
  244. package/reactjs/components/base/index.js +1 -14
  245. package/reactjs/components/base/index.mjs +12 -12
  246. package/reactjs/components/index.js +1 -54
  247. package/reactjs/components/index.mjs +52 -52
  248. package/reactjs/constants/chains.js +1 -54
  249. package/reactjs/constants/chains.mjs +33 -52
  250. package/reactjs/constants/index.js +1 -13
  251. package/reactjs/constants/index.mjs +9 -10
  252. package/reactjs/context/Web3AppProvider.js +1 -40
  253. package/reactjs/context/Web3AppProvider.mjs +34 -34
  254. package/reactjs/context/queryClient.js +1 -11
  255. package/reactjs/context/queryClient.mjs +5 -8
  256. package/reactjs/context/useWeb3App.js +1 -12
  257. package/reactjs/context/useWeb3App.mjs +7 -8
  258. package/reactjs/helpers/index.js +1 -6
  259. package/reactjs/helpers/index.mjs +4 -4
  260. package/reactjs/helpers/resolveBridgeApiChainId.js +1 -40
  261. package/reactjs/helpers/resolveBridgeApiChainId.mjs +21 -34
  262. package/reactjs/hooks/index.js +1 -35
  263. package/reactjs/hooks/index.mjs +33 -33
  264. package/reactjs/hooks/tests/useGenericSignMessage.spec.d.ts +1 -0
  265. package/reactjs/hooks/tests/useGenericSignMessage.spec.js +2 -0
  266. package/reactjs/hooks/tests/useGenericSignMessage.spec.mjs +52 -0
  267. package/reactjs/hooks/tests/useSignTransaction.spec.d.ts +1 -0
  268. package/reactjs/hooks/tests/useSignTransaction.spec.js +2 -0
  269. package/reactjs/hooks/tests/useSignTransaction.spec.mjs +156 -0
  270. package/reactjs/hooks/useAccount.js +1 -13
  271. package/reactjs/hooks/useAccount.mjs +7 -8
  272. package/reactjs/hooks/useBalances.js +1 -53
  273. package/reactjs/hooks/useBalances.mjs +28 -40
  274. package/reactjs/hooks/useBridgeApiChainId.js +1 -13
  275. package/reactjs/hooks/useBridgeApiChainId.mjs +9 -9
  276. package/reactjs/hooks/useBridgeFormik.js +1 -162
  277. package/reactjs/hooks/useBridgeFormik.mjs +110 -150
  278. package/reactjs/hooks/useDebounce.js +1 -13
  279. package/reactjs/hooks/useDebounce.mjs +8 -10
  280. package/reactjs/hooks/useFetchBridgeData.js +1 -45
  281. package/reactjs/hooks/useFetchBridgeData.mjs +37 -38
  282. package/reactjs/hooks/useFetchTokens.js +1 -113
  283. package/reactjs/hooks/useFetchTokens.mjs +80 -106
  284. package/reactjs/hooks/useGenericSignMessage.js +1 -55
  285. package/reactjs/hooks/useGenericSignMessage.mjs +47 -47
  286. package/reactjs/hooks/useGetChainId.js +1 -11
  287. package/reactjs/hooks/useGetChainId.mjs +7 -8
  288. package/reactjs/hooks/useResolveTokenChain.js +1 -20
  289. package/reactjs/hooks/useResolveTokenChain.mjs +11 -14
  290. package/reactjs/hooks/useSendTransactions.js +1 -25
  291. package/reactjs/hooks/useSendTransactions.mjs +19 -23
  292. package/reactjs/hooks/useSignTransaction.js +1 -86
  293. package/reactjs/hooks/useSignTransaction.mjs +59 -59
  294. package/reactjs/hooks/useSuiConnect.js +1 -86
  295. package/reactjs/hooks/useSuiConnect.mjs +52 -70
  296. package/reactjs/hooks/validation/index.js +1 -10
  297. package/reactjs/hooks/validation/index.mjs +8 -8
  298. package/reactjs/hooks/validation/useAmountSchema.js +1 -32
  299. package/reactjs/hooks/validation/useAmountSchema.mjs +8 -11
  300. package/reactjs/hooks/validation/useSecondAmountSchema.js +1 -26
  301. package/reactjs/hooks/validation/useSecondAmountSchema.mjs +5 -6
  302. package/reactjs/hooks/validation/useTestHasEnoughFunds.js +1 -37
  303. package/reactjs/hooks/validation/useTestHasEnoughFunds.mjs +20 -29
  304. package/reactjs/hooks/validation/useTestIsConnected.js +1 -27
  305. package/reactjs/hooks/validation/useTestIsConnected.mjs +13 -19
  306. package/reactjs/index.js +1 -190
  307. package/reactjs/index.mjs +154 -154
  308. package/reactjs/init/index.js +1 -5
  309. package/reactjs/init/index.mjs +3 -3
  310. package/reactjs/init/init.d.ts +1 -0
  311. package/reactjs/init/init.js +1 -139
  312. package/reactjs/init/init.mjs +59 -72
  313. package/reactjs/queries/index.js +1 -17
  314. package/reactjs/queries/index.mjs +15 -15
  315. package/reactjs/queries/useCheckAccount.query.js +1 -39
  316. package/reactjs/queries/useCheckAccount.query.mjs +29 -33
  317. package/reactjs/queries/useGetAllTokens.query.js +1 -35
  318. package/reactjs/queries/useGetAllTokens.query.mjs +26 -30
  319. package/reactjs/queries/useGetChains.query.js +1 -34
  320. package/reactjs/queries/useGetChains.query.mjs +26 -28
  321. package/reactjs/queries/useGetHistory.query.d.ts +1 -1
  322. package/reactjs/queries/useGetHistory.query.js +1 -68
  323. package/reactjs/queries/useGetHistory.query.mjs +55 -58
  324. package/reactjs/queries/useGetMvxTokensBalances.query.d.ts +1 -1
  325. package/reactjs/queries/useGetMvxTokensBalances.query.js +1 -71
  326. package/reactjs/queries/useGetMvxTokensBalances.query.mjs +40 -53
  327. package/reactjs/queries/useGetNonMvxTokensBalances.query.d.ts +1 -1
  328. package/reactjs/queries/useGetNonMvxTokensBalances.query.js +1 -81
  329. package/reactjs/queries/useGetNonMvxTokensBalances.query.mjs +51 -59
  330. package/reactjs/queries/useGetRate.mutation.js +1 -18
  331. package/reactjs/queries/useGetRate.mutation.mjs +12 -15
  332. package/reactjs/reexports.js +1 -48
  333. package/reactjs/reexports.mjs +13 -13
  334. package/reactjs/utils/delay.js +1 -6
  335. package/reactjs/utils/delay.mjs +3 -3
  336. package/reactjs/utils/formatAmount.js +1 -23
  337. package/reactjs/utils/formatAmount.mjs +16 -17
  338. package/reactjs/utils/getCleanStringAmount.js +1 -11
  339. package/reactjs/utils/getCleanStringAmount.mjs +6 -8
  340. package/reactjs/utils/getCompletePathname.js +1 -5
  341. package/reactjs/utils/getCompletePathname.mjs +3 -3
  342. package/reactjs/utils/getInitialTokens.js +1 -12
  343. package/reactjs/utils/getInitialTokens.mjs +6 -7
  344. package/reactjs/utils/hasEnoughFunds.js +1 -19
  345. package/reactjs/utils/hasEnoughFunds.mjs +11 -14
  346. package/reactjs/utils/index.js +1 -26
  347. package/reactjs/utils/index.mjs +24 -24
  348. package/reactjs/utils/isStringFloat.js +1 -21
  349. package/reactjs/utils/isStringFloat.mjs +11 -18
  350. package/reactjs/utils/mxClsx.js +1 -8
  351. package/reactjs/utils/mxClsx.mjs +4 -6
  352. package/reactjs/utils/pipe.js +1 -25
  353. package/reactjs/utils/pipe.mjs +13 -17
  354. package/reactjs/utils/removeCommas.js +1 -6
  355. package/reactjs/utils/removeCommas.mjs +2 -4
  356. package/reactjs/utils/roundAmount.js +1 -40
  357. package/reactjs/utils/roundAmount.mjs +16 -36
  358. package/reactjs/utils/testNumber.js +1 -4
  359. package/reactjs/utils/testNumber.mjs +2 -2
  360. package/store/inMemoryStore.js +1 -39
  361. package/store/inMemoryStore.mjs +17 -21
  362. package/style.css +1 -2274
  363. package/types/chainType.js +1 -11
  364. package/types/chainType.mjs +2 -9
  365. package/types/errors.d.ts +3 -0
  366. package/types/errors.js +2 -0
  367. package/types/errors.mjs +8 -0
  368. package/types/providerType.js +1 -9
  369. package/types/providerType.mjs +2 -7
  370. package/types/transaction.d.ts +2 -0
  371. package/all-networks-EJIVYZ_i.mjs +0 -4
  372. package/all-networks-NYACMyeN.js +0 -4
  373. package/default-BYtXv70Z.mjs +0 -4
  374. package/default-H3AbmzFV.js +0 -4
  375. package/reactjs/hooks/useSignTransaction.d.ts +0 -511
@@ -1,326 +1,309 @@
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 { useGetHistoryQuery } from "../../queries/useGetHistory.query.mjs";
28
- import { formatAmount } from "../../utils/formatAmount.mjs";
29
- import { mxClsx } from "../../utils/mxClsx.mjs";
30
- import { MxButton } from "../base/MxButton/MxButton.mjs";
31
- 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";
32
33
  import "../base/MxLink/MxLink.mjs";
33
34
  import "../base/MxSearch/MxSearch.mjs";
34
35
  import "@headlessui/react";
35
- import { MxTooltip } from "../base/MxTooltip/MxTooltip.mjs";
36
- 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";
37
- const BridgeHistory = ({
38
- mvxAddress,
39
- 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
40
40
  }) => {
41
- const { options, bridgeOnly } = useWeb3App();
42
- const bridgeAccount = useAccount();
43
- const {
44
- data: mvxTransactions,
45
- isLoading,
46
- isError
47
- } = useGetHistoryQuery({
48
- address: mvxAddress
49
- });
50
- const { data: bridgeTransactions } = useGetHistoryQuery({
51
- address: bridgeAccount.address ?? ""
52
- });
53
- const mergedTransactions = useMemo(() => {
54
- const mvxTxs = mvxTransactions ?? [];
55
- const bridgeTxs = bridgeOnly && bridgeTransactions ? bridgeTransactions : [];
56
- return [...mvxTxs, ...bridgeTxs].sort(
57
- (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
58
53
  );
59
- }, [bridgeOnly, bridgeTransactions, mvxTransactions]);
60
- const resolveTransactionIcon = useCallback((transaction) => {
61
- switch (transaction.status) {
54
+ }, [N, h, b]), y = K((e) => {
55
+ switch (e.status) {
62
56
  case "success":
63
- return /* @__PURE__ */ jsx(
64
- FontAwesomeIcon,
57
+ return /* @__PURE__ */ l(
58
+ o,
65
59
  {
66
- icon: faCircleCheck,
60
+ icon: Y,
67
61
  size: "lg",
68
62
  className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-green-400"
69
63
  }
70
64
  );
71
65
  case "failed":
72
- return /* @__PURE__ */ jsx(
73
- FontAwesomeIcon,
66
+ return /* @__PURE__ */ l(
67
+ o,
74
68
  {
75
- icon: faCircleXmark,
69
+ icon: Z,
76
70
  size: "lg",
77
71
  className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-red-400"
78
72
  }
79
73
  );
80
74
  default:
81
- return /* @__PURE__ */ jsx(
82
- FontAwesomeIcon,
75
+ return /* @__PURE__ */ l(
76
+ o,
83
77
  {
84
- icon: faClock,
78
+ icon: V,
85
79
  size: "lg",
86
80
  className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-yellow-400"
87
81
  }
88
82
  );
89
83
  }
90
- }, []);
91
- const transactions = useMemo(
92
- () => mergedTransactions == null ? void 0 : mergedTransactions.map((transaction) => {
93
- return {
94
- ...transaction,
95
- tokenDestination: transaction.tokenOut.toLowerCase(),
96
- tokenSource: transaction.tokenIn.toLowerCase(),
97
- sender: transaction.sender.toLowerCase(),
98
- statusIcon: resolveTransactionIcon(transaction)
99
- };
100
- }),
101
- [mergedTransactions, resolveTransactionIcon]
102
- );
103
- const {
104
- evmTokensWithBalances,
105
- mvxTokensWithBalances,
106
- chains,
107
- isTokensLoading: tokensLoading,
108
- isChainsLoading
109
- } = useFetchBridgeData({
110
- mvxAddress,
111
- mvxApiURL: options.mvxApiURL
112
- });
113
- const tokensMap = useMemo(() => {
114
- return [
115
- ...evmTokensWithBalances ?? [],
116
- ...mvxTokensWithBalances ?? []
117
- ].reduce(
118
- (acc, token) => {
119
- acc[token.address.toLowerCase()] = token;
120
- return acc;
121
- },
122
- {}
123
- );
124
- }, [evmTokensWithBalances, mvxTokensWithBalances]);
125
- const chainsMap = useMemo(() => {
126
- return (chains ?? []).reduce(
127
- (acc, chain) => {
128
- acc[chain.chainId.toString()] = chain;
129
- return acc;
130
- },
131
- {}
132
- );
133
- }, [chains]);
134
- 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(
135
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",
136
113
  {
137
- "!liq-disabled !liq-animate-pulse": isLoading || tokensLoading || isChainsLoading
114
+ "!liq-disabled !liq-animate-pulse": v || X || E
138
115
  }
139
116
  );
140
- if (isLoading && !transactions) {
141
- return /* @__PURE__ */ jsx(MxCard, { className: mxClsx("liq-flex", className) });
142
- }
143
- if (isError && !transactions) {
144
- return /* @__PURE__ */ jsx(MxCard, { className: mxClsx("liq-flex liq-flex-col liq-gap-1", className), children: "Something went wrong. Please try again later." });
145
- }
146
- return /* @__PURE__ */ jsxs(MxCard, { className: mxClsx("liq-flex liq-flex-col liq-gap-1", className), children: [
147
- /* @__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(
148
119
  "div",
149
120
  {
150
121
  className: "liq-flex liq-items-center liq-justify-between liq-py-1 liq-mt-0.5",
151
122
  children: [
152
- /* @__PURE__ */ jsx("div", { className: "liq-flex liq-flex-1 liq-items-center liq-justify-center liq-text-center liq-text-lg", children: "History" }),
153
- /* @__PURE__ */ jsx(
154
- 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,
155
126
  {
156
127
  btnSize: "md",
157
128
  className: "liq-border-none !liq-p-0 !liq-mr-2",
158
129
  variant: "link-neutral-500",
159
- onClick: onClose,
160
- children: /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faClose, size: "xl" })
130
+ onClick: F,
131
+ children: /* @__PURE__ */ l(o, { icon: J, size: "xl" })
161
132
  }
162
133
  )
163
134
  ]
164
135
  }
165
136
  ),
166
- /* @__PURE__ */ jsxs("div", { className: "scrollbar-thin liq-flex liq-flex-1 liq-flex-col liq-gap-1 liq-overflow-y-scroll", children: [
167
- (transactions == null ? void 0 : transactions.length) === 0 && /* @__PURE__ */ jsx(
168
- 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,
169
140
  {
170
141
  cardSize: "lg",
171
142
  variant: "transparent",
172
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",
173
- children: /* @__PURE__ */ jsxs("div", { className: "liq-align-center liq-flex liq-flex-col liq-justify-center liq-gap-8", children: [
174
- /* @__PURE__ */ jsx("div", { className: "liq-flex liq-items-center liq-justify-center", children: /* @__PURE__ */ jsx(
175
- 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,
176
147
  {
177
- icon: faClock,
148
+ icon: V,
178
149
  size: "6x",
179
150
  className: "liq-rounded-full liq-bg-primary-400 liq-text-[#2b617a]"
180
151
  }
181
152
  ) }),
182
- /* @__PURE__ */ jsxs("div", { className: mxClsx("liq-flex liq-flex-col liq-items-center"), children: [
183
- /* @__PURE__ */ jsx("div", { className: "liq-text-xl", children: "No transactions" }),
184
- /* @__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" })
185
156
  ] })
186
157
  ] })
187
158
  }
188
159
  ),
189
- transactions && (transactions == null ? void 0 : transactions.length) > 0 && transactions.map((transaction, index) => {
190
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
191
- return /* @__PURE__ */ jsx(
192
- 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,
193
164
  {
194
165
  cardSize: "lg",
195
166
  variant: "neutral-750",
196
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",
197
- children: /* @__PURE__ */ jsxs("div", { className: "liq-align-center liq-flex liq-justify-between liq-gap-1", children: [
198
- /* @__PURE__ */ jsxs(
168
+ children: /* @__PURE__ */ t("div", { className: "liq-align-center liq-flex liq-justify-between liq-gap-1", children: [
169
+ /* @__PURE__ */ t(
199
170
  "div",
200
171
  {
201
- className: mxClsx("liq-flex liq-items-center liq-gap-1", {
202
- "liq-text-yellow-200": transaction.status === "pending",
203
- "liq-text-green-200": transaction.status === "success",
204
- "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"
205
176
  }),
206
177
  children: [
207
- /* @__PURE__ */ jsx(
208
- MxTooltip,
178
+ /* @__PURE__ */ l(
179
+ f,
209
180
  {
210
181
  placement: "top",
211
- buttonText: transaction.statusIcon,
182
+ buttonText: e.statusIcon,
212
183
  children: new Date(
213
- transaction.depositTimestamp * 1e3
184
+ e.depositTimestamp * 1e3
214
185
  ).toLocaleString()
215
186
  }
216
187
  ),
217
- MVX_CHAIN_IDS.includes(transaction.toChainId) ? /* @__PURE__ */ jsxs(Fragment, { children: [
218
- /* @__PURE__ */ jsx(
219
- MxTooltip,
188
+ re.includes(e.toChainId) ? /* @__PURE__ */ t(R, { children: [
189
+ /* @__PURE__ */ l(
190
+ f,
220
191
  {
221
192
  placement: "top",
222
- buttonText: /* @__PURE__ */ jsx(
223
- FontAwesomeIcon,
193
+ buttonText: /* @__PURE__ */ l(
194
+ o,
224
195
  {
225
- icon: faArrowDownShortWide,
196
+ icon: G,
226
197
  className: "liq-mx-1 liq-flex liq-items-center"
227
198
  }
228
199
  ),
229
200
  children: "Deposit"
230
201
  }
231
202
  ),
232
- /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
233
- decimals: (_a = tokensMap[transaction.tokenDestination]) == null ? void 0 : _a.decimals,
234
- amount: transaction.amountOut,
235
- 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,
236
207
  digits: 2
237
208
  }) }),
238
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: (_b = tokensMap[transaction.tokenDestination]) == null ? void 0 : _b.symbol }),
239
- /* @__PURE__ */ jsx(
209
+ /* @__PURE__ */ l("span", { className: "liq-whitespace-nowrap", children: (d = i[e.tokenDestination]) == null ? void 0 : d.symbol }),
210
+ /* @__PURE__ */ l(
240
211
  "img",
241
212
  {
242
- src: (_c = tokensMap[transaction.tokenDestination]) == null ? void 0 : _c.pngUrl,
213
+ src: a(
214
+ (j = i[e.tokenDestination]) == null ? void 0 : j.pngUrl
215
+ ),
243
216
  alt: "",
244
217
  className: "liq-h-[1.5rem] liq-w-[1.5rem] liq-rounded-lg"
245
218
  }
246
219
  ),
247
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: "from" }),
248
- /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
249
- decimals: (_d = tokensMap[transaction.tokenSource]) == null ? void 0 : _d.decimals,
250
- amount: transaction.amountIn,
251
- 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,
252
225
  digits: 2
253
226
  }) }),
254
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: (_e = tokensMap[transaction.tokenSource]) == null ? void 0 : _e.symbol }),
255
- /* @__PURE__ */ jsxs("div", { className: "liq-flex liq-items-center liq-relative", children: [
256
- /* @__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(
257
230
  "img",
258
231
  {
259
- src: (_f = tokensMap[transaction.tokenSource]) == null ? void 0 : _f.pngUrl,
232
+ src: a(
233
+ (L = i[e.tokenSource]) == null ? void 0 : L.pngUrl
234
+ ),
260
235
  alt: "",
261
236
  className: "liq-asset-icon liq-sm liq-p-0"
262
237
  }
263
238
  ) }) }),
264
- /* @__PURE__ */ jsx(
239
+ /* @__PURE__ */ l(
265
240
  "img",
266
241
  {
267
- src: (_g = chainsMap[transaction.fromChainId]) == null ? void 0 : _g.pngUrl,
242
+ src: a(
243
+ (U = T[e.fromChainId]) == null ? void 0 : U.pngUrl
244
+ ),
268
245
  alt: "",
269
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"
270
247
  }
271
248
  )
272
249
  ] })
273
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
274
- /* @__PURE__ */ jsx(
275
- MxTooltip,
250
+ ] }) : /* @__PURE__ */ t(R, { children: [
251
+ /* @__PURE__ */ l(
252
+ f,
276
253
  {
277
254
  placement: "top",
278
- buttonText: /* @__PURE__ */ jsx(
279
- FontAwesomeIcon,
255
+ buttonText: /* @__PURE__ */ l(
256
+ o,
280
257
  {
281
- icon: faArrowUpShortWide,
258
+ icon: Q,
282
259
  className: "liq-mx-1 liq-flex liq-items-center"
283
260
  }
284
261
  ),
285
262
  children: "Transfer"
286
263
  }
287
264
  ),
288
- /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
289
- decimals: (_h = tokensMap[transaction.tokenSource]) == null ? void 0 : _h.decimals,
290
- amount: transaction.amountIn,
291
- 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,
292
269
  digits: 2
293
270
  }) }),
294
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: (_i = tokensMap[transaction.tokenSource]) == null ? void 0 : _i.symbol }),
295
- /* @__PURE__ */ jsx(
271
+ /* @__PURE__ */ l("span", { className: "liq-whitespace-nowrap", children: (z = i[e.tokenSource]) == null ? void 0 : z.symbol }),
272
+ /* @__PURE__ */ l(
296
273
  "img",
297
274
  {
298
- src: (_j = tokensMap[transaction.tokenSource]) == null ? void 0 : _j.pngUrl,
275
+ src: a(
276
+ (M = i[e.tokenSource]) == null ? void 0 : M.pngUrl
277
+ ),
299
278
  alt: "",
300
279
  className: "liq-h-[1.5rem] liq-w-[1.5rem] liq-rounded-lg"
301
280
  }
302
281
  ),
303
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: "to" }),
304
- /* @__PURE__ */ jsx("span", { className: "liq-text-wrap", children: formatAmount({
305
- decimals: (_k = tokensMap[transaction.tokenDestination]) == null ? void 0 : _k.decimals,
306
- amount: transaction.amountOut,
307
- 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,
308
287
  digits: 2
309
288
  }) }),
310
- /* @__PURE__ */ jsx("span", { className: "liq-whitespace-nowrap", children: (_l = tokensMap[transaction.tokenDestination]) == null ? void 0 : _l.symbol }),
311
- /* @__PURE__ */ jsxs("div", { className: "liq-flex liq-items-center liq-relative", children: [
312
- /* @__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(
313
292
  "img",
314
293
  {
315
- src: (_m = tokensMap[transaction.tokenDestination]) == null ? void 0 : _m.pngUrl,
294
+ src: a(
295
+ (W = i[e.tokenDestination]) == null ? void 0 : W.pngUrl
296
+ ),
316
297
  alt: "",
317
298
  className: "liq-asset-icon liq-sm liq-p-0"
318
299
  }
319
300
  ) }) }),
320
- /* @__PURE__ */ jsx(
301
+ /* @__PURE__ */ l(
321
302
  "img",
322
303
  {
323
- src: (_n = chainsMap[transaction.toChainId]) == null ? void 0 : _n.pngUrl,
304
+ src: a(
305
+ (O = T[e.toChainId]) == null ? void 0 : O.pngUrl
306
+ ),
324
307
  alt: "",
325
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"
326
309
  }
@@ -330,25 +313,26 @@ const BridgeHistory = ({
330
313
  ]
331
314
  }
332
315
  ),
333
- transaction.provider === ProviderType.MultiversxBridge && /* @__PURE__ */ jsx(
316
+ e.provider === ie.MultiversxBridge && /* @__PURE__ */ l(
334
317
  "a",
335
318
  {
336
- href: `${options.bridgeURL}/status/${transaction.txHash}`,
319
+ href: `${w.bridgeURL}/status/${e.txHash}`,
337
320
  target: "_blank",
321
+ rel: "noopener noreferrer",
338
322
  className: "liq-flex",
339
- children: /* @__PURE__ */ jsx("div", { className: "liq-ml-auto liq-mr-0 liq-flex liq-items-center liq-gap-1", children: /* @__PURE__ */ jsx(
340
- 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,
341
325
  {
342
326
  placement: "top",
343
- buttonText: /* @__PURE__ */ jsx(
327
+ buttonText: /* @__PURE__ */ l(
344
328
  "img",
345
329
  {
346
- src: ArrowUpRight,
330
+ src: oe,
347
331
  alt: "",
348
332
  className: "liq-flex liq-items-center liq-justify-center liq-rounded-full liq-text-neutral-200"
349
333
  }
350
334
  ),
351
- shouldStopPropagation: false,
335
+ shouldStopPropagation: !1,
352
336
  children: "View"
353
337
  }
354
338
  ) })
@@ -356,12 +340,12 @@ const BridgeHistory = ({
356
340
  )
357
341
  ] })
358
342
  },
359
- `${transaction.txHash}-${index}`
343
+ `${e.txHash}-${s}`
360
344
  );
361
345
  })
362
346
  ] })
363
347
  ] });
364
348
  };
365
349
  export {
366
- BridgeHistory
350
+ Fe as BridgeHistory
367
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
  };