@multiversx/sdk-dapp-liquidity 1.1.0-alpha.8 → 1.1.1-alpha.0

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 (408) hide show
  1. package/README.md +1 -2
  2. package/api/checkAccount.d.ts +9 -0
  3. package/api/checkAccount.js +22 -0
  4. package/api/checkAccount.mjs +21 -0
  5. package/api/getChains.d.ts +3 -1
  6. package/api/getChains.js +10 -4
  7. package/api/getChains.mjs +10 -4
  8. package/api/getTokens.d.ts +3 -1
  9. package/api/getTokens.js +13 -4
  10. package/api/getTokens.mjs +13 -4
  11. package/api/getTokensBalances.d.ts +2 -1
  12. package/api/getTokensBalances.js +9 -4
  13. package/api/getTokensBalances.mjs +9 -4
  14. package/api/getTransactions.d.ts +2 -1
  15. package/api/getTransactions.js +13 -7
  16. package/api/getTransactions.mjs +13 -7
  17. package/api/index.d.ts +2 -0
  18. package/api/index.js +4 -0
  19. package/api/index.mjs +4 -0
  20. package/api/linkAccount.d.ts +10 -0
  21. package/api/linkAccount.js +32 -0
  22. package/api/linkAccount.mjs +31 -0
  23. package/api/tests/getChains.spec.js +10 -3
  24. package/api/tests/getChains.spec.mjs +10 -3
  25. package/api/tests/getTokens.spec.js +16 -5
  26. package/api/tests/getTokens.spec.mjs +16 -5
  27. package/api/tests/getTransactions.spec.js +86 -68
  28. package/api/tests/getTransactions.spec.mjs +86 -68
  29. package/constants/index.d.ts +1 -1
  30. package/constants/index.js +1 -1
  31. package/constants/index.mjs +1 -1
  32. package/dto/Chain.dto.d.ts +4 -1
  33. package/dto/CheckAccount.dto.d.ts +4 -0
  34. package/dto/CheckAccount.dto.js +2 -0
  35. package/dto/CheckAccount.dto.mjs +1 -0
  36. package/dto/Token.dto.d.ts +6 -2
  37. package/dto/Transaction.dto.d.ts +1 -0
  38. package/getConnections-BBxOUh4c.mjs +50 -0
  39. package/getConnections-DufiP2Qa.js +50 -0
  40. package/index.js +49 -19
  41. package/index.mjs +19 -19
  42. package/package.json +10 -6
  43. package/reactjs/components/AmountInput/AmountInput.d.ts +1 -1
  44. package/reactjs/components/BridgeForm/BridgeForm.d.ts +6 -2
  45. package/reactjs/components/BridgeForm/BridgeForm.js +58 -706
  46. package/reactjs/components/BridgeForm/BridgeForm.mjs +59 -707
  47. package/reactjs/components/BridgeForm/Deposit.d.ts +23 -0
  48. package/reactjs/components/BridgeForm/Deposit.js +857 -0
  49. package/reactjs/components/BridgeForm/Deposit.mjs +856 -0
  50. package/reactjs/components/BridgeForm/Transfer.d.ts +23 -0
  51. package/reactjs/components/BridgeForm/Transfer.js +712 -0
  52. package/reactjs/components/BridgeForm/Transfer.mjs +711 -0
  53. package/reactjs/components/BridgeHistory/BridgeHistory.js +22 -13
  54. package/reactjs/components/BridgeHistory/BridgeHistory.mjs +17 -8
  55. package/reactjs/components/Connect/BridgeAccountDisplay.js +60 -9
  56. package/reactjs/components/Connect/BridgeAccountDisplay.mjs +60 -9
  57. package/reactjs/components/Connect/BridgeConnectButton.js +1 -1
  58. package/reactjs/components/Connect/BridgeConnectButton.mjs +1 -1
  59. package/reactjs/components/Connect/CustomConnectButton.js +2 -6
  60. package/reactjs/components/Connect/CustomConnectButton.mjs +1 -5
  61. package/reactjs/components/Connect/MvxConnectButton.d.ts +2 -4
  62. package/reactjs/components/Connect/MvxConnectButton.js +2 -2
  63. package/reactjs/components/Connect/MvxConnectButton.mjs +2 -2
  64. package/reactjs/components/Connect/SwitchChainButton.js +2 -7
  65. package/reactjs/components/Connect/SwitchChainButton.mjs +1 -6
  66. package/reactjs/components/CopyButton/CopyButton.js +2 -2
  67. package/reactjs/components/CopyButton/CopyButton.mjs +2 -2
  68. package/reactjs/components/DisplayAmount/components/AnimateNumber/AnimateNumber.js +5 -5
  69. package/reactjs/components/TokenSelector/TokenSelector.d.ts +2 -1
  70. package/reactjs/components/TokenSelector/TokenSelector.js +17 -9
  71. package/reactjs/components/TokenSelector/TokenSelector.mjs +13 -5
  72. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.d.ts +2 -1
  73. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.js +11 -5
  74. package/reactjs/components/TokenSelector/components/ChainSelect/ChainSelect.mjs +8 -2
  75. package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.d.ts +1 -0
  76. package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.js +2 -2
  77. package/reactjs/components/TokenSelector/components/ChainSelect/components/ChainOptionLabel.mjs +2 -2
  78. package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.js +2 -2
  79. package/reactjs/components/TokenSelector/components/ChainSelect/components/SelectedChainOption.mjs +2 -2
  80. package/reactjs/components/TokenSelector/components/ChainSelect/types/chainSelectOption.d.ts +1 -0
  81. package/reactjs/components/TokenSelector/components/ChainSelect/types/partialChainOption.d.ts +1 -0
  82. package/reactjs/components/TokenSelector/components/SelectContent.d.ts +2 -1
  83. package/reactjs/components/TokenSelector/components/SelectContent.js +12 -9
  84. package/reactjs/components/TokenSelector/components/SelectContent.mjs +4 -1
  85. package/reactjs/components/TokenSelector/components/TokenIcon.js +5 -5
  86. package/reactjs/components/TokenSelector/components/TokenIcon.mjs +2 -2
  87. package/reactjs/components/TokenSelector/components/TokenItem.js +9 -9
  88. package/reactjs/components/TokenSelector/components/TokenItem.mjs +6 -6
  89. package/reactjs/components/TokenSelector/components/TokenList.js +1 -1
  90. package/reactjs/components/TokenSelector/components/TokenList.mjs +1 -1
  91. package/reactjs/components/base/MxCard/MxCard.js +2 -2
  92. package/reactjs/components/base/MxLink/MxLink.js +2 -2
  93. package/reactjs/components/base/MxSearch/MxSearch.js +4 -4
  94. package/reactjs/components/base/MxSlideover/MxSlideover.js +4 -4
  95. package/reactjs/components/base/MxTooltip/MxTooltip.js +9 -9
  96. package/reactjs/components/base/MxTooltip/components/TooltipContainer/TooltipContainer.js +2 -2
  97. package/reactjs/context/Web3AppProvider.d.ts +8 -1
  98. package/reactjs/context/Web3AppProvider.js +14 -6
  99. package/reactjs/context/Web3AppProvider.mjs +11 -3
  100. package/reactjs/context/useWeb3App.js +2 -2
  101. package/reactjs/hooks/index.js +1 -1
  102. package/reactjs/hooks/index.mjs +2 -2
  103. package/reactjs/hooks/useAccount.js +1 -6
  104. package/reactjs/hooks/useAccount.mjs +1 -6
  105. package/reactjs/hooks/useBalances.d.ts +2 -3
  106. package/reactjs/hooks/useBalances.js +51 -4
  107. package/reactjs/hooks/useBalances.mjs +51 -4
  108. package/reactjs/hooks/useBridgeFormik.d.ts +4 -4
  109. package/reactjs/hooks/useBridgeFormik.js +44 -70
  110. package/reactjs/hooks/useBridgeFormik.mjs +39 -65
  111. package/reactjs/hooks/useDebounce.js +3 -3
  112. package/reactjs/hooks/useFetchBridgeData.d.ts +12 -5
  113. package/reactjs/hooks/useFetchBridgeData.js +0 -2
  114. package/reactjs/hooks/useFetchBridgeData.mjs +0 -2
  115. package/reactjs/hooks/useFetchTokens.d.ts +12 -5
  116. package/reactjs/hooks/useFetchTokens.js +20 -21
  117. package/reactjs/hooks/useFetchTokens.mjs +14 -15
  118. package/reactjs/hooks/useFiatData.d.ts +6 -2
  119. package/reactjs/hooks/useFiatData.js +6 -6
  120. package/reactjs/hooks/useFiatData.mjs +1 -1
  121. package/reactjs/hooks/useGenericSignMessage.d.ts +3 -0
  122. package/reactjs/hooks/useGenericSignMessage.js +42 -0
  123. package/reactjs/hooks/useGenericSignMessage.mjs +41 -0
  124. package/reactjs/hooks/useGetChainId.js +3 -3
  125. package/reactjs/hooks/useGetChainId.mjs +1 -1
  126. package/reactjs/hooks/useResolveTokenChain.js +3 -3
  127. package/reactjs/hooks/useResolveTokenChain.mjs +1 -1
  128. package/reactjs/hooks/useSendTransactions.js +2 -2
  129. package/reactjs/hooks/useSignTransaction.d.ts +94 -67
  130. package/reactjs/hooks/useSignTransaction.js +46 -4
  131. package/reactjs/hooks/useSignTransaction.mjs +46 -4
  132. package/reactjs/hooks/validation/useTestHasEnoughFunds.js +3 -3
  133. package/reactjs/hooks/validation/useTestIsConnected.js +2 -2
  134. package/reactjs/index.js +45 -19
  135. package/reactjs/index.mjs +15 -19
  136. package/reactjs/init/init.d.ts +220 -1
  137. package/reactjs/init/init.js +31 -20
  138. package/reactjs/init/init.mjs +23 -12
  139. package/reactjs/init/tests/init.spec.js +6 -7
  140. package/reactjs/init/tests/init.spec.mjs +5 -6
  141. package/reactjs/queries/index.d.ts +1 -2
  142. package/reactjs/queries/index.js +3 -5
  143. package/reactjs/queries/index.mjs +3 -5
  144. package/reactjs/queries/useCheckAccount.query.d.ts +3 -0
  145. package/reactjs/queries/useCheckAccount.query.js +50 -0
  146. package/reactjs/queries/useCheckAccount.query.mjs +49 -0
  147. package/reactjs/queries/useGetAllTokens.query.js +6 -2
  148. package/reactjs/queries/useGetAllTokens.query.mjs +6 -2
  149. package/reactjs/queries/useGetChains.query.js +6 -2
  150. package/reactjs/queries/useGetChains.query.mjs +6 -2
  151. package/reactjs/queries/useGetHistory.query.js +6 -2
  152. package/reactjs/queries/useGetHistory.query.mjs +6 -2
  153. package/reactjs/queries/useGetMvxTokensBalances.query.d.ts +6 -2
  154. package/reactjs/queries/useGetMvxTokensBalances.query.js +17 -6
  155. package/reactjs/queries/useGetMvxTokensBalances.query.mjs +15 -4
  156. package/reactjs/queries/{useGetEvmTokensBalances.query.d.ts → useGetNonMvxTokensBalances.query.d.ts} +7 -3
  157. package/reactjs/queries/{useGetEvmTokensBalances.query.js → useGetNonMvxTokensBalances.query.js} +18 -16
  158. package/reactjs/queries/{useGetEvmTokensBalances.query.mjs → useGetNonMvxTokensBalances.query.mjs} +18 -16
  159. package/reactjs/queries/useLinkAccount.mutation.d.ts +6 -0
  160. package/reactjs/queries/useLinkAccount.mutation.js +19 -0
  161. package/reactjs/queries/useLinkAccount.mutation.mjs +18 -0
  162. package/reactjs/reexports.d.ts +2 -1
  163. package/reactjs/reexports.js +41 -13
  164. package/reactjs/reexports.mjs +11 -13
  165. package/reactjs/utils/getInitialTokens.d.ts +4 -1
  166. package/reactjs/utils/getInitialTokens.js +3 -3
  167. package/reactjs/utils/getInitialTokens.mjs +3 -3
  168. package/style.css +4 -0
  169. package/types/chainType.d.ts +6 -0
  170. package/types/chainType.js +11 -0
  171. package/types/chainType.mjs +10 -0
  172. package/types/linkAccount.d.ts +6 -0
  173. package/types/linkAccount.js +2 -0
  174. package/types/linkAccount.mjs +1 -0
  175. package/types/providerType.d.ts +1 -1
  176. package/types/providerType.js +1 -1
  177. package/types/providerType.mjs +1 -1
  178. package/types/transaction.d.ts +17 -1
  179. package/types/utxo.d.ts +11 -0
  180. package/types/utxo.js +2 -0
  181. package/types/utxo.mjs +1 -0
  182. package/add-6Hktd7HI.mjs +0 -19
  183. package/add-juzQkMr_.js +0 -20
  184. package/all-wallets-CDBHcdBW.mjs +0 -10
  185. package/all-wallets-DWuLhbnN.js +0 -11
  186. package/app-store-2Caui3Hv.mjs +0 -21
  187. package/app-store-Cppxe4t5.js +0 -22
  188. package/apple-DKtoJZe9.mjs +0 -22
  189. package/apple-nexFyqTC.js +0 -23
  190. package/arrow-bottom-BVz7XUz-.js +0 -13
  191. package/arrow-bottom-C5NamQSq.mjs +0 -12
  192. package/arrow-bottom-circle-CvWQP3gd.js +0 -16
  193. package/arrow-bottom-circle-DZRlr5gZ.mjs +0 -15
  194. package/arrow-left-BjtUA8Tn.mjs +0 -12
  195. package/arrow-left-ywqF3CIm.js +0 -13
  196. package/arrow-right-BM5qYgEx.js +0 -13
  197. package/arrow-right-EfRPXJ8g.mjs +0 -12
  198. package/arrow-top-DIZLgKAv.mjs +0 -12
  199. package/arrow-top-MEfOCzpg.js +0 -13
  200. package/bank-B5GtM-iL.mjs +0 -18
  201. package/bank-dWinx5sN.js +0 -19
  202. package/bitcoin-1SWAuj8n.mjs +0 -3792
  203. package/bitcoin-DHwiZolS.js +0 -3792
  204. package/browser-BCJFo3OQ.mjs +0 -18
  205. package/browser-DbtgVP-h.js +0 -19
  206. package/card-Bgar5aKz.js +0 -19
  207. package/card-vGuo5IOR.mjs +0 -18
  208. package/checkmark-BKBFeuP5.mjs +0 -15
  209. package/checkmark-bold-BYb8CUZ8.js +0 -13
  210. package/checkmark-bold-BiFMlocx.mjs +0 -12
  211. package/checkmark-l8h3sm_g.js +0 -16
  212. package/chevron-bottom-DfebxTNv.js +0 -13
  213. package/chevron-bottom-qpBNc49E.mjs +0 -12
  214. package/chevron-left-Coi_nNKR.mjs +0 -12
  215. package/chevron-left-FnvKOdGV.js +0 -13
  216. package/chevron-right-Be3FE3hr.js +0 -13
  217. package/chevron-right-CRz3MalJ.mjs +0 -12
  218. package/chevron-top-C68v_E2c.mjs +0 -12
  219. package/chevron-top-COvCOnB2.js +0 -13
  220. package/chrome-store-CPJDJNPu.mjs +0 -65
  221. package/chrome-store-FqwxUZG7.js +0 -66
  222. package/clock-ByjZ4ilt.js +0 -13
  223. package/clock-DrLinnc4.mjs +0 -12
  224. package/close-CKfcXm4W.js +0 -13
  225. package/close-yanFPosb.mjs +0 -12
  226. package/coinPlaceholder-3S4HUg2d.js +0 -13
  227. package/coinPlaceholder-BIfIkMfn.mjs +0 -12
  228. package/compass-CV7Q0BRl.mjs +0 -12
  229. package/compass-Cbi2jkxk.js +0 -13
  230. package/copy-Ca63iQNd.mjs +0 -19
  231. package/copy-DwGrXa_8.js +0 -20
  232. package/cursor-BOhtgld_.mjs +0 -7
  233. package/cursor-CWmF-b84.js +0 -8
  234. package/cursor-transparent-BwVGzwtu.mjs +0 -16
  235. package/cursor-transparent-C1tHtAAt.js +0 -17
  236. package/desktop-332WWCVu.mjs +0 -13
  237. package/desktop-DFpoQ2XQ.js +0 -14
  238. package/disconnect-_clyltwg.js +0 -13
  239. package/disconnect-i16vASLo.mjs +0 -12
  240. package/discord-B3xzyS21.js +0 -22
  241. package/discord-Cmks8AXc.mjs +0 -21
  242. package/email-B4Qs8Wql.mjs +0 -797
  243. package/email-CSDaC3PV.js +0 -793
  244. package/embedded-wallet-Z38VX5nD.js +0 -547
  245. package/embedded-wallet-iJQprDOK.mjs +0 -550
  246. package/etherscan-DiQKb9JJ.mjs +0 -10
  247. package/etherscan-DiZfBzq1.js +0 -11
  248. package/exclamation-triangle-BzIxINm5.js +0 -9
  249. package/exclamation-triangle-DgSYWQO-.mjs +0 -8
  250. package/extension-BO0Cd6z8.mjs +0 -12
  251. package/extension-bF9Sb9iB.js +0 -13
  252. package/external-link-5DYOaT3U.js +0 -13
  253. package/external-link-C6tOSZPl.mjs +0 -12
  254. package/facebook-BNpFIEwz.js +0 -31
  255. package/facebook-BxE8Pfgx.mjs +0 -30
  256. package/farcaster-Cn4wtliN.js +0 -17
  257. package/farcaster-lOD2t_ep.mjs +0 -16
  258. package/filters-DIWesbdh.js +0 -13
  259. package/filters-DQYjZNck.mjs +0 -12
  260. package/github-BK40bIpw.js +0 -23
  261. package/github-DvTIEePs.mjs +0 -22
  262. package/google-BEZdehYk.js +0 -23
  263. package/google-BQODtHO9.mjs +0 -22
  264. package/help-circle-BoaBQK8j.mjs +0 -16
  265. package/help-circle-Dafpc2S0.js +0 -17
  266. package/id-D38R6u_z.js +0 -17
  267. package/id-Te72spgu.mjs +0 -16
  268. package/if-defined-Ckbxb_LZ.js +0 -808
  269. package/if-defined-DwE54thp.mjs +0 -808
  270. package/image-Dtdls2gL.js +0 -9
  271. package/image-pcAZlse8.mjs +0 -8
  272. package/index-B0-hXPyA.mjs +0 -276
  273. package/index-B5VBriCp.js +0 -166
  274. package/index-B6PAkUMD.mjs +0 -55
  275. package/index-BI3g_V6a.js +0 -258
  276. package/index-BMOzU0g_.mjs +0 -101
  277. package/index-BREDoavK.mjs +0 -62
  278. package/index-BieKpvUd.mjs +0 -166
  279. package/index-Bm64lTwT.mjs +0 -101
  280. package/index-BmdNakBG.mjs +0 -176
  281. package/index-BqWHWBPd.js +0 -2237
  282. package/index-BsSQctOn.mjs +0 -107
  283. package/index-CB8Xl3BI.mjs +0 -273
  284. package/index-CE-ThOUU.js +0 -682
  285. package/index-CJtYUGWk.js +0 -101
  286. package/index-CNBa_yb_.js +0 -273
  287. package/index-CNGSm-3v.js +0 -144
  288. package/index-CZ8svgH6.js +0 -566
  289. package/index-CgQUQyKy.mjs +0 -812
  290. package/index-CkqN9i4B.js +0 -103
  291. package/index-Cwx48WwC.js +0 -265
  292. package/index-CxbGh3dD.js +0 -59
  293. package/index-D-QW67ts.js +0 -57
  294. package/index-D09okGU-.mjs +0 -329
  295. package/index-D5JBvvTH.mjs +0 -82
  296. package/index-D97ZdUzy.mjs +0 -95
  297. package/index-D9W5rupt.js +0 -107
  298. package/index-DAAXziQn.mjs +0 -57
  299. package/index-DF_4TKAG.js +0 -344
  300. package/index-DFgTp8ma.mjs +0 -259
  301. package/index-DHQBI2q7.mjs +0 -9536
  302. package/index-DHd3241q.mjs +0 -2235
  303. package/index-DLv0901W.js +0 -9510
  304. package/index-DNH3d6sj.js +0 -97
  305. package/index-DTpnJ3r_.mjs +0 -344
  306. package/index-DahyraMD.js +0 -178
  307. package/index-Dp8ypte2.js +0 -84
  308. package/index-HSJrj1ec.mjs +0 -680
  309. package/index-Ksar04rg.js +0 -64
  310. package/index-Oc6Afuhx.mjs +0 -263
  311. package/index-Sl878vk4.mjs +0 -566
  312. package/index-Uj_cxq0b.js +0 -152
  313. package/index-VLLsIwhe.mjs +0 -70
  314. package/index-XZhf4PTD.js +0 -72
  315. package/index-f9NdzhLG.mjs +0 -145
  316. package/index-h3HYCin8.js +0 -331
  317. package/index-kH104rXk.js +0 -814
  318. package/index-o5mkLIxK.js +0 -278
  319. package/index-zw-X0o15.mjs +0 -150
  320. package/info-DIiGb1WG.mjs +0 -7
  321. package/info-_1FcljSX.js +0 -8
  322. package/info-circle-C0cfc1Ai.mjs +0 -16
  323. package/info-circle-DNrGAlaC.js +0 -17
  324. package/lightbulb-DAhFAQxe.mjs +0 -7
  325. package/lightbulb-xep8mw9e.js +0 -8
  326. package/mail-BP4O1jha.mjs +0 -12
  327. package/mail-DizrQGIr.js +0 -13
  328. package/mobile-DN0RkiUA.mjs +0 -13
  329. package/mobile-jaedeM4x.js +0 -14
  330. package/more-BwUSQJtS.mjs +0 -15
  331. package/more-Db1xellQ.js +0 -16
  332. package/network-placeholder-BFwoDmjz.mjs +0 -18
  333. package/network-placeholder-Bnr8tbL-.js +0 -19
  334. package/nftPlaceholder-B1JCCbzW.mjs +0 -12
  335. package/nftPlaceholder-BwnfvXxH.js +0 -13
  336. package/off-DgfbvVEQ.js +0 -13
  337. package/off-HoeLvIQv.mjs +0 -12
  338. package/onramp-D1g6Jbkc.js +0 -1587
  339. package/onramp-LOJyQFpR.mjs +0 -1593
  340. package/play-store-3rRSeyAn.js +0 -37
  341. package/play-store-BzzZjkgk.mjs +0 -36
  342. package/plus-DY8W7EOO.js +0 -18
  343. package/plus-wT-ccjDA.mjs +0 -17
  344. package/qr-code-BEaXe2LV.js +0 -11
  345. package/qr-code-BjTH6iOp.mjs +0 -10
  346. package/react-59f9mIHr.mjs +0 -25357
  347. package/react-DGsKaIEu.mjs +0 -6077
  348. package/react-dVsV8KsZ.js +0 -6077
  349. package/react-m2gZQZx4.js +0 -25357
  350. package/reactjs/queries/useGetTokens.query.d.ts +0 -3
  351. package/reactjs/queries/useGetTokens.query.js +0 -34
  352. package/reactjs/queries/useGetTokens.query.mjs +0 -33
  353. package/receive-Cs1s1gYM.mjs +0 -216
  354. package/receive-UwRW4C9x.js +0 -216
  355. package/recycle-horizontal-BNBaqSZz.js +0 -14
  356. package/recycle-horizontal-CeHfqJIc.mjs +0 -13
  357. package/refresh-BA2xhh9V.js +0 -13
  358. package/refresh-qhuKtgB7.mjs +0 -12
  359. package/reown-logo-CuHLfpEw.mjs +0 -16
  360. package/reown-logo-Tq7bFUT6.js +0 -17
  361. package/search-6n0Ff_dt.mjs +0 -12
  362. package/search-Cx4Blqfv.js +0 -13
  363. package/send-B657IEsU.mjs +0 -1193
  364. package/send-B8cwQAnQ.js +0 -1191
  365. package/send-D1dMQkPK.js +0 -20
  366. package/send-t0dgu5ob.mjs +0 -19
  367. package/socials-BxPH0UFz.js +0 -723
  368. package/socials-_cnavCl9.mjs +0 -725
  369. package/swapHorizontal-BVGXUTXy.js +0 -13
  370. package/swapHorizontal-CZDLEGAJ.mjs +0 -12
  371. package/swapHorizontalBold-CYGMAdYJ.mjs +0 -12
  372. package/swapHorizontalBold-CtYibkOJ.js +0 -13
  373. package/swapHorizontalMedium-BWtcSeVX.mjs +0 -20
  374. package/swapHorizontalMedium-CX8g5USa.js +0 -21
  375. package/swapHorizontalRoundedBold-D69LbTIY.js +0 -13
  376. package/swapHorizontalRoundedBold-DLqIi8XJ.mjs +0 -12
  377. package/swapVertical-Bygn2_8O.mjs +0 -12
  378. package/swapVertical-YEu2FTpl.js +0 -13
  379. package/swaps-BUgwNzkE.js +0 -1906
  380. package/swaps-CN6V4itg.mjs +0 -1908
  381. package/telegram-B3TsPPWG.mjs +0 -20
  382. package/telegram-BzZxoCON.js +0 -21
  383. package/three-dots-B9-WRm9o.mjs +0 -9
  384. package/three-dots-kGCFeW5_.js +0 -10
  385. package/transactions-C4LyMy2H.js +0 -37
  386. package/transactions-Cgbyv_T6.mjs +0 -37
  387. package/twitch-BBdiYoRQ.js +0 -23
  388. package/twitch-BNJQGRXy.mjs +0 -22
  389. package/twitterIcon-CR6NDfBD.js +0 -11
  390. package/twitterIcon-Onqp_sDr.mjs +0 -10
  391. package/useBalances-CMixgIRU.js +0 -196
  392. package/useBalances-rRug6Uza.mjs +0 -196
  393. package/verify-B99cyMD7.js +0 -13
  394. package/verify-Eoq8GSce.mjs +0 -12
  395. package/verify-filled-BQXXBU08.mjs +0 -12
  396. package/verify-filled-CiEDnETf.js +0 -13
  397. package/w3m-modal-B7NYvu08.js +0 -1208
  398. package/w3m-modal-Bu0ZSyML.mjs +0 -1208
  399. package/wallet-BcT8lNii.js +0 -13
  400. package/wallet-dOYVmmoC.mjs +0 -12
  401. package/wallet-placeholder-D_dKjqBq.mjs +0 -18
  402. package/wallet-placeholder-_pc2YkIy.js +0 -19
  403. package/walletconnect-CP6kDQcs.mjs +0 -38
  404. package/walletconnect-yIf5ci65.js +0 -39
  405. package/warning-circle-CKiBhLmZ.js +0 -17
  406. package/warning-circle-D0zgojhL.mjs +0 -16
  407. package/x-D4lyzn0g.js +0 -17
  408. package/x-DyfNtc-k.mjs +0 -16
package/README.md CHANGED
@@ -161,12 +161,11 @@ const App = () => {
161
161
 
162
162
  return (
163
163
  // Wrap your app with Web3AppProvider to enable multi-chain connections
164
- <Web3AppProvider appKit={provider.appKit} config={provider.config} options={provider.options}>
164
+ <Web3AppProvider appKit={provider.appKit} config={provider.config} options={provider.options} nativeAuthToken={nativeAuthToken}>
165
165
  <BridgeForm
166
166
  mvxChainId={"44"}
167
167
  mvxAddress={mvxAccount?.address}
168
168
  username={mvxAccount?.username}
169
- nativeAuthToken={nativeAuthToken}
170
169
  callbackRoute={"/deposit"}
171
170
  showHistory={showHistory}
172
171
  onSuccessfullySentTransaction={(txHashes) => {
@@ -0,0 +1,9 @@
1
+ import { CheckAccountDto } from '../dto/CheckAccount.dto';
2
+ import { AxiosResponse } from 'axios';
3
+
4
+ export declare function checkAccount({ url, walletAddress, chainId, nativeAuthToken }: {
5
+ url: string;
6
+ walletAddress: string;
7
+ chainId: string;
8
+ nativeAuthToken: string;
9
+ }): Promise<AxiosResponse<CheckAccountDto>>;
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const axios = require("axios");
5
+ async function checkAccount({
6
+ url,
7
+ walletAddress,
8
+ chainId,
9
+ nativeAuthToken
10
+ }) {
11
+ const config = {
12
+ baseURL: url,
13
+ headers: {
14
+ Authorization: `Bearer ${nativeAuthToken}`
15
+ }
16
+ };
17
+ return await axios.get(
18
+ `/user/checkAccount?walletAddress=${walletAddress}&chainId=${chainId}`,
19
+ config
20
+ );
21
+ }
22
+ exports.checkAccount = checkAccount;
@@ -0,0 +1,21 @@
1
+ import axios from "axios";
2
+ async function checkAccount({
3
+ url,
4
+ walletAddress,
5
+ chainId,
6
+ nativeAuthToken
7
+ }) {
8
+ const config = {
9
+ baseURL: url,
10
+ headers: {
11
+ Authorization: `Bearer ${nativeAuthToken}`
12
+ }
13
+ };
14
+ return await axios.get(
15
+ `/user/checkAccount?walletAddress=${walletAddress}&chainId=${chainId}`,
16
+ config
17
+ );
18
+ }
19
+ export {
20
+ checkAccount
21
+ };
@@ -1,6 +1,8 @@
1
1
  import { ChainDTO } from '../dto/Chain.dto';
2
2
  import { AxiosResponse } from 'axios';
3
3
 
4
- export declare function getChains({ url }: {
4
+ export declare function getChains({ url, nativeAuthToken, bridgeOnly }: {
5
5
  url: string;
6
+ nativeAuthToken: string;
7
+ bridgeOnly: boolean;
6
8
  }): Promise<AxiosResponse<ChainDTO[]>>;
package/api/getChains.js CHANGED
@@ -3,10 +3,16 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const axios = require("axios");
5
5
  async function getChains({
6
- url
6
+ url,
7
+ nativeAuthToken,
8
+ bridgeOnly
7
9
  }) {
8
- return await axios.get("/chains", {
9
- baseURL: url
10
- });
10
+ const config = {
11
+ baseURL: url,
12
+ headers: {
13
+ Authorization: `Bearer ${nativeAuthToken}`
14
+ }
15
+ };
16
+ return await axios.get(`/chains?isBridge=${bridgeOnly}`, config);
11
17
  }
12
18
  exports.getChains = getChains;
package/api/getChains.mjs CHANGED
@@ -1,10 +1,16 @@
1
1
  import axios from "axios";
2
2
  async function getChains({
3
- url
3
+ url,
4
+ nativeAuthToken,
5
+ bridgeOnly
4
6
  }) {
5
- return await axios.get("/chains", {
6
- baseURL: url
7
- });
7
+ const config = {
8
+ baseURL: url,
9
+ headers: {
10
+ Authorization: `Bearer ${nativeAuthToken}`
11
+ }
12
+ };
13
+ return await axios.get(`/chains?isBridge=${bridgeOnly}`, config);
8
14
  }
9
15
  export {
10
16
  getChains
@@ -1,7 +1,9 @@
1
1
  import { TokenType } from '../types/token';
2
2
  import { AxiosResponse } from 'axios';
3
3
 
4
- export declare function getTokens({ url, chainId }: {
4
+ export declare function getTokens({ url, chainId, nativeAuthToken, bridgeOnly }: {
5
5
  url: string;
6
6
  chainId?: number;
7
+ nativeAuthToken: string;
8
+ bridgeOnly: boolean;
7
9
  }): Promise<AxiosResponse<TokenType[]>>;
package/api/getTokens.js CHANGED
@@ -4,11 +4,20 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const axios = require("axios");
5
5
  async function getTokens({
6
6
  url,
7
- chainId
7
+ chainId,
8
+ nativeAuthToken,
9
+ bridgeOnly
8
10
  }) {
11
+ const config = {
12
+ baseURL: url,
13
+ headers: {
14
+ Authorization: `Bearer ${nativeAuthToken}`
15
+ }
16
+ };
9
17
  const endpoint = chainId ? `/tokens/${chainId}` : "/tokens";
10
- return await axios.get(endpoint, {
11
- baseURL: url
12
- });
18
+ return await axios.get(
19
+ `${endpoint}?isBridge=${bridgeOnly}`,
20
+ config
21
+ );
13
22
  }
14
23
  exports.getTokens = getTokens;
package/api/getTokens.mjs CHANGED
@@ -1,12 +1,21 @@
1
1
  import axios from "axios";
2
2
  async function getTokens({
3
3
  url,
4
- chainId
4
+ chainId,
5
+ nativeAuthToken,
6
+ bridgeOnly
5
7
  }) {
8
+ const config = {
9
+ baseURL: url,
10
+ headers: {
11
+ Authorization: `Bearer ${nativeAuthToken}`
12
+ }
13
+ };
6
14
  const endpoint = chainId ? `/tokens/${chainId}` : "/tokens";
7
- return await axios.get(endpoint, {
8
- baseURL: url
9
- });
15
+ return await axios.get(
16
+ `${endpoint}?isBridge=${bridgeOnly}`,
17
+ config
18
+ );
10
19
  }
11
20
  export {
12
21
  getTokens
@@ -1,8 +1,9 @@
1
1
  import { TokenBalanceDTO } from '../dto/TokenBalance.dto';
2
2
  import { AxiosResponse } from 'axios';
3
3
 
4
- export declare function getTokensBalances({ url, userAddress, chainId }: {
4
+ export declare function getTokensBalances({ url, userAddress, chainId, nativeAuthToken }: {
5
5
  url: string;
6
6
  userAddress: string;
7
7
  chainId: string;
8
+ nativeAuthToken: string;
8
9
  }): Promise<AxiosResponse<TokenBalanceDTO[]>>;
@@ -5,13 +5,18 @@ const axios = require("axios");
5
5
  async function getTokensBalances({
6
6
  url,
7
7
  userAddress,
8
- chainId
8
+ chainId,
9
+ nativeAuthToken
9
10
  }) {
11
+ const config = {
12
+ baseURL: url,
13
+ headers: {
14
+ Authorization: `Bearer ${nativeAuthToken}`
15
+ }
16
+ };
10
17
  return await axios.get(
11
18
  `/tokens/balances/${userAddress}/${chainId}`,
12
- {
13
- baseURL: url
14
- }
19
+ config
15
20
  );
16
21
  }
17
22
  exports.getTokensBalances = getTokensBalances;
@@ -2,13 +2,18 @@ import axios from "axios";
2
2
  async function getTokensBalances({
3
3
  url,
4
4
  userAddress,
5
- chainId
5
+ chainId,
6
+ nativeAuthToken
6
7
  }) {
8
+ const config = {
9
+ baseURL: url,
10
+ headers: {
11
+ Authorization: `Bearer ${nativeAuthToken}`
12
+ }
13
+ };
7
14
  return await axios.get(
8
15
  `/tokens/balances/${userAddress}/${chainId}`,
9
- {
10
- baseURL: url
11
- }
16
+ config
12
17
  );
13
18
  }
14
19
  export {
@@ -2,7 +2,7 @@ import { ProviderType } from 'types/providerType';
2
2
  import { TransactionDTO } from 'dto/Transaction.dto';
3
3
  import { AxiosResponse } from 'axios';
4
4
 
5
- export declare function getTransactions({ url, address, sender, provider, status, tokenIn, tokenOut }: {
5
+ export declare function getTransactions({ url, address, sender, provider, status, tokenIn, tokenOut, nativeAuthToken }: {
6
6
  url: string;
7
7
  address: string;
8
8
  sender?: string;
@@ -10,4 +10,5 @@ export declare function getTransactions({ url, address, sender, provider, status
10
10
  status?: string;
11
11
  tokenIn?: string;
12
12
  tokenOut?: string;
13
+ nativeAuthToken: string;
13
14
  }): Promise<AxiosResponse<TransactionDTO[]>>;
@@ -9,7 +9,8 @@ async function getTransactions({
9
9
  provider,
10
10
  status,
11
11
  tokenIn,
12
- tokenOut
12
+ tokenOut,
13
+ nativeAuthToken
13
14
  }) {
14
15
  const queryParams = new URLSearchParams({
15
16
  receiver: address || "",
@@ -19,15 +20,20 @@ async function getTransactions({
19
20
  tokenIn: tokenIn || "",
20
21
  tokenOut: tokenOut || ""
21
22
  });
22
- for (const [key, value] of queryParams.entries()) {
23
- if (!value) {
23
+ const params = Object.entries(Object.fromEntries(queryParams.entries()));
24
+ for (const [key, value] of params) {
25
+ if (value === "") {
24
26
  queryParams.delete(key);
25
27
  }
26
28
  }
27
29
  const queryString = queryParams.toString();
28
- const endpointWithParams = `/transactions/?${queryString}`;
29
- return await axios.get(endpointWithParams, {
30
- baseURL: url
31
- });
30
+ const endpointWithParams = `/transactions?${queryString}`;
31
+ const config = {
32
+ baseURL: url,
33
+ headers: {
34
+ Authorization: `Bearer ${nativeAuthToken}`
35
+ }
36
+ };
37
+ return await axios.get(endpointWithParams, config);
32
38
  }
33
39
  exports.getTransactions = getTransactions;
@@ -6,7 +6,8 @@ async function getTransactions({
6
6
  provider,
7
7
  status,
8
8
  tokenIn,
9
- tokenOut
9
+ tokenOut,
10
+ nativeAuthToken
10
11
  }) {
11
12
  const queryParams = new URLSearchParams({
12
13
  receiver: address || "",
@@ -16,16 +17,21 @@ async function getTransactions({
16
17
  tokenIn: tokenIn || "",
17
18
  tokenOut: tokenOut || ""
18
19
  });
19
- for (const [key, value] of queryParams.entries()) {
20
- if (!value) {
20
+ const params = Object.entries(Object.fromEntries(queryParams.entries()));
21
+ for (const [key, value] of params) {
22
+ if (value === "") {
21
23
  queryParams.delete(key);
22
24
  }
23
25
  }
24
26
  const queryString = queryParams.toString();
25
- const endpointWithParams = `/transactions/?${queryString}`;
26
- return await axios.get(endpointWithParams, {
27
- baseURL: url
28
- });
27
+ const endpointWithParams = `/transactions?${queryString}`;
28
+ const config = {
29
+ baseURL: url,
30
+ headers: {
31
+ Authorization: `Bearer ${nativeAuthToken}`
32
+ }
33
+ };
34
+ return await axios.get(endpointWithParams, config);
29
35
  }
30
36
  export {
31
37
  getTransactions
package/api/index.d.ts CHANGED
@@ -5,3 +5,5 @@ export * from './getTokens';
5
5
  export * from './getTokensBalances';
6
6
  export * from './getTransactions';
7
7
  export * from './sendTransactions';
8
+ export * from './checkAccount';
9
+ export * from './linkAccount';
package/api/index.js CHANGED
@@ -8,6 +8,8 @@ const api_getTokens = require("./getTokens.js");
8
8
  const api_getTokensBalances = require("./getTokensBalances.js");
9
9
  const api_getTransactions = require("./getTransactions.js");
10
10
  const api_sendTransactions = require("./sendTransactions.js");
11
+ const api_checkAccount = require("./checkAccount.js");
12
+ const api_linkAccount = require("./linkAccount.js");
11
13
  exports.confirmRate = api_confirmRate.confirmRate;
12
14
  exports.getChains = api_getChains.getChains;
13
15
  exports.getRate = api_getRate.getRate;
@@ -15,3 +17,5 @@ exports.getTokens = api_getTokens.getTokens;
15
17
  exports.getTokensBalances = api_getTokensBalances.getTokensBalances;
16
18
  exports.getTransactions = api_getTransactions.getTransactions;
17
19
  exports.sendTransactions = api_sendTransactions.sendTransactions;
20
+ exports.checkAccount = api_checkAccount.checkAccount;
21
+ exports.linkAccount = api_linkAccount.linkAccount;
package/api/index.mjs CHANGED
@@ -5,12 +5,16 @@ import { getTokens } from "./getTokens.mjs";
5
5
  import { getTokensBalances } from "./getTokensBalances.mjs";
6
6
  import { getTransactions } from "./getTransactions.mjs";
7
7
  import { sendTransactions } from "./sendTransactions.mjs";
8
+ import { checkAccount } from "./checkAccount.mjs";
9
+ import { linkAccount } from "./linkAccount.mjs";
8
10
  export {
11
+ checkAccount,
9
12
  confirmRate,
10
13
  getChains,
11
14
  getRate,
12
15
  getTokens,
13
16
  getTokensBalances,
14
17
  getTransactions,
18
+ linkAccount,
15
19
  sendTransactions
16
20
  };
@@ -0,0 +1,10 @@
1
+ import { LinkAccountRequestBody } from '../types/linkAccount';
2
+ import { AxiosResponse } from 'axios';
3
+
4
+ interface LinkAccountProps {
5
+ url: string;
6
+ nativeAuthToken: string;
7
+ body: LinkAccountRequestBody;
8
+ }
9
+ export declare function linkAccount({ url, nativeAuthToken, body }: LinkAccountProps): Promise<AxiosResponse>;
10
+ export {};
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const axios = require("axios");
5
+ const helpers_decodeToken = require("../helpers/decodeToken.js");
6
+ async function linkAccount({
7
+ url,
8
+ nativeAuthToken,
9
+ body
10
+ }) {
11
+ var _a;
12
+ const config = {
13
+ baseURL: url,
14
+ headers: {
15
+ Authorization: `Bearer ${nativeAuthToken}`
16
+ }
17
+ };
18
+ if (!nativeAuthToken) {
19
+ (_a = config.headers) == null ? true : delete _a.Authorization;
20
+ }
21
+ const decodedToken = await helpers_decodeToken.decodeToken(nativeAuthToken);
22
+ config.headers = {
23
+ ...config.headers,
24
+ origin: decodedToken == null ? void 0 : decodedToken.origin
25
+ };
26
+ return await axios.post(
27
+ `/user/linkAccount`,
28
+ body,
29
+ config
30
+ );
31
+ }
32
+ exports.linkAccount = linkAccount;
@@ -0,0 +1,31 @@
1
+ import axios from "axios";
2
+ import { decodeToken } from "../helpers/decodeToken.mjs";
3
+ async function linkAccount({
4
+ url,
5
+ nativeAuthToken,
6
+ body
7
+ }) {
8
+ var _a;
9
+ const config = {
10
+ baseURL: url,
11
+ headers: {
12
+ Authorization: `Bearer ${nativeAuthToken}`
13
+ }
14
+ };
15
+ if (!nativeAuthToken) {
16
+ (_a = config.headers) == null ? true : delete _a.Authorization;
17
+ }
18
+ const decodedToken = await decodeToken(nativeAuthToken);
19
+ config.headers = {
20
+ ...config.headers,
21
+ origin: decodedToken == null ? void 0 : decodedToken.origin
22
+ };
23
+ return await axios.post(
24
+ `/user/linkAccount`,
25
+ body,
26
+ config
27
+ );
28
+ }
29
+ export {
30
+ linkAccount
31
+ };
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  const axios = require("axios");
4
+ const types_chainType = require("../../types/chainType.js");
4
5
  const api_getChains = require("../getChains.js");
5
6
  jest.mock("axios");
6
7
  const mockedAxios = axios;
@@ -13,7 +14,7 @@ describe("getChains", () => {
13
14
  chainName: "msx",
14
15
  pngUrl: "https://devnet-tools.multiversx.com/liquidity-sdk/ethereum/icon.png",
15
16
  svgUrl: "https://devnet-tools.multiversx.com/liquidity-sdk/ethereum/icon.svg",
16
- chainType: "type1",
17
+ chainType: types_chainType.ChainType.evm,
17
18
  rpc: "rpc1",
18
19
  blockExplorerUrls: ["explorer1"],
19
20
  nativeCurrency: {
@@ -26,12 +27,18 @@ describe("getChains", () => {
26
27
  }
27
28
  ];
28
29
  mockedAxios.get.mockResolvedValue({ data: response });
29
- const result = await api_getChains.getChains({ url });
30
+ const result = await api_getChains.getChains({
31
+ url,
32
+ nativeAuthToken: "ZKssadass",
33
+ bridgeOnly: false
34
+ });
30
35
  expect(mockedAxios.get).toHaveBeenCalledWith("/chains", { baseURL: url });
31
36
  expect(result.data).toEqual(response);
32
37
  });
33
38
  it("handles error when fetching chains", async () => {
34
39
  mockedAxios.get.mockRejectedValue(new Error("Network Error"));
35
- await expect(api_getChains.getChains({ url })).rejects.toThrow("Network Error");
40
+ await expect(
41
+ api_getChains.getChains({ url, nativeAuthToken: "ZKssadass", bridgeOnly: false })
42
+ ).rejects.toThrow("Network Error");
36
43
  });
37
44
  });
@@ -1,4 +1,5 @@
1
1
  import axios from "axios";
2
+ import { ChainType } from "../../types/chainType.mjs";
2
3
  import { getChains } from "../getChains.mjs";
3
4
  jest.mock("axios");
4
5
  const mockedAxios = axios;
@@ -11,7 +12,7 @@ describe("getChains", () => {
11
12
  chainName: "msx",
12
13
  pngUrl: "https://devnet-tools.multiversx.com/liquidity-sdk/ethereum/icon.png",
13
14
  svgUrl: "https://devnet-tools.multiversx.com/liquidity-sdk/ethereum/icon.svg",
14
- chainType: "type1",
15
+ chainType: ChainType.evm,
15
16
  rpc: "rpc1",
16
17
  blockExplorerUrls: ["explorer1"],
17
18
  nativeCurrency: {
@@ -24,12 +25,18 @@ describe("getChains", () => {
24
25
  }
25
26
  ];
26
27
  mockedAxios.get.mockResolvedValue({ data: response });
27
- const result = await getChains({ url });
28
+ const result = await getChains({
29
+ url,
30
+ nativeAuthToken: "ZKssadass",
31
+ bridgeOnly: false
32
+ });
28
33
  expect(mockedAxios.get).toHaveBeenCalledWith("/chains", { baseURL: url });
29
34
  expect(result.data).toEqual(response);
30
35
  });
31
36
  it("handles error when fetching chains", async () => {
32
37
  mockedAxios.get.mockRejectedValue(new Error("Network Error"));
33
- await expect(getChains({ url })).rejects.toThrow("Network Error");
38
+ await expect(
39
+ getChains({ url, nativeAuthToken: "ZKssadass", bridgeOnly: false })
40
+ ).rejects.toThrow("Network Error");
34
41
  });
35
42
  });
@@ -9,7 +9,7 @@ describe("getTokens", () => {
9
9
  it("fetches tokens successfully without chainId", async () => {
10
10
  const response = [
11
11
  {
12
- chainId: 1,
12
+ chainId: "1",
13
13
  address: "0x123",
14
14
  name: "Token One",
15
15
  symbol: "T1",
@@ -24,7 +24,11 @@ describe("getTokens", () => {
24
24
  }
25
25
  ];
26
26
  mockedAxios.get.mockResolvedValue({ data: response });
27
- const result = await api_getTokens.getTokens({ url });
27
+ const result = await api_getTokens.getTokens({
28
+ url,
29
+ nativeAuthToken: "",
30
+ bridgeOnly: false
31
+ });
28
32
  expect(mockedAxios.get).toHaveBeenCalledWith("/tokens", { baseURL: url });
29
33
  expect(result.data).toEqual(response);
30
34
  });
@@ -32,7 +36,7 @@ describe("getTokens", () => {
32
36
  const chainId = 1;
33
37
  const response = [
34
38
  {
35
- chainId: 1,
39
+ chainId: "1",
36
40
  address: "0x123",
37
41
  name: "Token One",
38
42
  symbol: "T1",
@@ -47,7 +51,12 @@ describe("getTokens", () => {
47
51
  }
48
52
  ];
49
53
  mockedAxios.get.mockResolvedValue({ data: response });
50
- const result = await api_getTokens.getTokens({ url, chainId });
54
+ const result = await api_getTokens.getTokens({
55
+ url,
56
+ chainId,
57
+ nativeAuthToken: "",
58
+ bridgeOnly: false
59
+ });
51
60
  expect(mockedAxios.get).toHaveBeenCalledWith(`/tokens/${chainId}`, {
52
61
  baseURL: url
53
62
  });
@@ -55,6 +64,8 @@ describe("getTokens", () => {
55
64
  });
56
65
  it("handles error when fetching tokens", async () => {
57
66
  mockedAxios.get.mockRejectedValue(new Error("Network Error"));
58
- await expect(api_getTokens.getTokens({ url })).rejects.toThrow("Network Error");
67
+ await expect(
68
+ api_getTokens.getTokens({ url, nativeAuthToken: "", bridgeOnly: false })
69
+ ).rejects.toThrow("Network Error");
59
70
  });
60
71
  });
@@ -7,7 +7,7 @@ describe("getTokens", () => {
7
7
  it("fetches tokens successfully without chainId", async () => {
8
8
  const response = [
9
9
  {
10
- chainId: 1,
10
+ chainId: "1",
11
11
  address: "0x123",
12
12
  name: "Token One",
13
13
  symbol: "T1",
@@ -22,7 +22,11 @@ describe("getTokens", () => {
22
22
  }
23
23
  ];
24
24
  mockedAxios.get.mockResolvedValue({ data: response });
25
- const result = await getTokens({ url });
25
+ const result = await getTokens({
26
+ url,
27
+ nativeAuthToken: "",
28
+ bridgeOnly: false
29
+ });
26
30
  expect(mockedAxios.get).toHaveBeenCalledWith("/tokens", { baseURL: url });
27
31
  expect(result.data).toEqual(response);
28
32
  });
@@ -30,7 +34,7 @@ describe("getTokens", () => {
30
34
  const chainId = 1;
31
35
  const response = [
32
36
  {
33
- chainId: 1,
37
+ chainId: "1",
34
38
  address: "0x123",
35
39
  name: "Token One",
36
40
  symbol: "T1",
@@ -45,7 +49,12 @@ describe("getTokens", () => {
45
49
  }
46
50
  ];
47
51
  mockedAxios.get.mockResolvedValue({ data: response });
48
- const result = await getTokens({ url, chainId });
52
+ const result = await getTokens({
53
+ url,
54
+ chainId,
55
+ nativeAuthToken: "",
56
+ bridgeOnly: false
57
+ });
49
58
  expect(mockedAxios.get).toHaveBeenCalledWith(`/tokens/${chainId}`, {
50
59
  baseURL: url
51
60
  });
@@ -53,6 +62,8 @@ describe("getTokens", () => {
53
62
  });
54
63
  it("handles error when fetching tokens", async () => {
55
64
  mockedAxios.get.mockRejectedValue(new Error("Network Error"));
56
- await expect(getTokens({ url })).rejects.toThrow("Network Error");
65
+ await expect(
66
+ getTokens({ url, nativeAuthToken: "", bridgeOnly: false })
67
+ ).rejects.toThrow("Network Error");
57
68
  });
58
69
  });