@multiversx/sdk-dapp 5.1.2 → 5.1.3

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 (503) hide show
  1. package/out/__chunks__/{chunk-ZS4EBCWC.mjs → chunk-2GG67TZD.mjs} +2 -2
  2. package/out/__chunks__/chunk-2IUBMLF4.mjs +2 -0
  3. package/out/__chunks__/{chunk-CAA4VJRH.mjs.map → chunk-2IUBMLF4.mjs.map} +3 -3
  4. package/out/__chunks__/{chunk-YD2O3NV7.mjs → chunk-2KE2BNG7.mjs} +2 -2
  5. package/out/__chunks__/{chunk-2L25IGHZ.mjs → chunk-2KPILBQ2.mjs} +2 -2
  6. package/out/__chunks__/chunk-3JHE6RJX.mjs +2 -0
  7. package/out/__chunks__/{chunk-2DUVXRMU.mjs → chunk-3MJNBS6H.mjs} +2 -2
  8. package/out/__chunks__/{chunk-7VNNDJ7P.mjs → chunk-463K27BJ.mjs} +2 -2
  9. package/out/__chunks__/{chunk-7ONKP4ZG.mjs → chunk-4AGZHXFR.mjs} +2 -2
  10. package/out/__chunks__/{chunk-I6WJ63GD.mjs → chunk-4N34K4EN.mjs} +2 -2
  11. package/out/__chunks__/{chunk-IZ4B4B35.mjs → chunk-4PILLRHM.mjs} +2 -2
  12. package/out/__chunks__/{chunk-54XYKDH7.mjs → chunk-555CAG7Y.mjs} +2 -2
  13. package/out/__chunks__/{chunk-2ONA7QPD.mjs → chunk-5DP2QBUG.mjs} +2 -2
  14. package/out/__chunks__/{chunk-5KVNYLOM.mjs → chunk-6DWUEZO7.mjs} +2 -2
  15. package/out/__chunks__/{chunk-IWROXIQ5.mjs → chunk-6V76WUHS.mjs} +2 -2
  16. package/out/__chunks__/{chunk-VRG2R5C7.mjs → chunk-76A63VDO.mjs} +2 -2
  17. package/out/__chunks__/{chunk-UXYMY3HG.mjs → chunk-7HNMIUES.mjs} +2 -2
  18. package/out/__chunks__/{chunk-3CKDOF3O.mjs → chunk-A3CEGIRB.mjs} +2 -2
  19. package/out/__chunks__/chunk-AIKQPMR3.mjs +2 -0
  20. package/out/__chunks__/{chunk-LPGMDX6Q.mjs → chunk-AYURCZHZ.mjs} +2 -2
  21. package/out/__chunks__/chunk-BHAHZQVO.mjs +2 -0
  22. package/out/__chunks__/chunk-BHAHZQVO.mjs.map +7 -0
  23. package/out/__chunks__/{chunk-DJ2HTZOV.mjs → chunk-BUHHNIJJ.mjs} +2 -2
  24. package/out/__chunks__/{chunk-RNSBN5JT.mjs → chunk-C25AGRYE.mjs} +2 -2
  25. package/out/__chunks__/{chunk-RJOP7SCI.mjs → chunk-CIB3ITZR.mjs} +2 -2
  26. package/out/__chunks__/chunk-CUS6AHOH.mjs +2 -0
  27. package/out/__chunks__/chunk-DSVSX4ZT.mjs +2 -0
  28. package/out/__chunks__/chunk-DSVSX4ZT.mjs.map +7 -0
  29. package/out/__chunks__/chunk-DZ2BIDRW.mjs +2 -0
  30. package/out/__chunks__/chunk-DZ2BIDRW.mjs.map +7 -0
  31. package/out/__chunks__/chunk-EAH7XGM3.mjs +2 -0
  32. package/out/__chunks__/chunk-EAH7XGM3.mjs.map +7 -0
  33. package/out/__chunks__/{chunk-6PDGQGIS.mjs → chunk-EEWLVNMR.mjs} +2 -2
  34. package/out/__chunks__/{chunk-AXCK3KRV.mjs → chunk-END5ZJQH.mjs} +2 -2
  35. package/out/__chunks__/{chunk-I4HR64FU.mjs → chunk-F4RI663J.mjs} +2 -2
  36. package/out/__chunks__/{chunk-Y7QM3LPW.mjs → chunk-GVTM4RFC.mjs} +2 -2
  37. package/out/__chunks__/{chunk-YFXATY46.mjs → chunk-H3DYNUJU.mjs} +2 -2
  38. package/out/__chunks__/{chunk-BGUYSNNW.mjs → chunk-IBM2AHR2.mjs} +2 -2
  39. package/out/__chunks__/{chunk-FVFVOSQ4.mjs → chunk-J2SRCAF3.mjs} +2 -2
  40. package/out/__chunks__/chunk-J5EJIWY3.mjs +2 -0
  41. package/out/__chunks__/{chunk-WJI5FXSZ.mjs → chunk-JNJ4L4QD.mjs} +2 -2
  42. package/out/__chunks__/{chunk-KXUILKL2.mjs → chunk-JNUF7URZ.mjs} +2 -2
  43. package/out/__chunks__/chunk-JQDWP4DW.mjs +2 -0
  44. package/out/__chunks__/{chunk-S5YFFC7A.mjs → chunk-JW2RVDMU.mjs} +2 -2
  45. package/out/__chunks__/chunk-KIOUFP5Q.mjs +1 -0
  46. package/out/__chunks__/{chunk-CAAMS3C5.mjs → chunk-KIQFGAFN.mjs} +2 -2
  47. package/out/__chunks__/{chunk-5AZZG5KG.mjs → chunk-KJCSIEAC.mjs} +2 -2
  48. package/out/__chunks__/{chunk-4AUL3FHT.mjs → chunk-LC3EPABR.mjs} +2 -2
  49. package/out/__chunks__/{chunk-NZWPA245.mjs → chunk-MUMHVEIZ.mjs} +2 -2
  50. package/out/__chunks__/{chunk-LQ6WESDL.mjs → chunk-MZEDBAQE.mjs} +2 -2
  51. package/out/__chunks__/chunk-N342XMFH.mjs +6 -0
  52. package/out/__chunks__/chunk-N342XMFH.mjs.map +7 -0
  53. package/out/__chunks__/{chunk-PHMJQ5FC.mjs → chunk-NA5CDQ5C.mjs} +2 -2
  54. package/out/__chunks__/chunk-NJSC7RC2.mjs +2 -0
  55. package/out/__chunks__/chunk-OE5E647N.mjs +2 -0
  56. package/out/__chunks__/chunk-OFSHYRXC.mjs +2 -0
  57. package/out/__chunks__/chunk-OL6LWUIJ.mjs +1 -0
  58. package/out/__chunks__/chunk-OL6LWUIJ.mjs.map +7 -0
  59. package/out/__chunks__/chunk-OOVV574D.mjs +2 -0
  60. package/out/__chunks__/chunk-OOVV574D.mjs.map +7 -0
  61. package/out/__chunks__/{chunk-2HKAVY3C.mjs → chunk-PBMO4Y47.mjs} +2 -2
  62. package/out/__chunks__/{chunk-BQP6NPQM.mjs → chunk-PETVWH5Z.mjs} +2 -2
  63. package/out/__chunks__/{chunk-OCGNA44K.mjs → chunk-PIBYPDMV.mjs} +2 -2
  64. package/out/__chunks__/chunk-PLMCHSS6.mjs +2 -0
  65. package/out/__chunks__/chunk-PLMCHSS6.mjs.map +7 -0
  66. package/out/__chunks__/{chunk-DG77T3NS.mjs → chunk-PWXUYZF5.mjs} +2 -2
  67. package/out/__chunks__/{chunk-PO3ODHJ7.mjs → chunk-Q62OP5VI.mjs} +2 -2
  68. package/out/__chunks__/{chunk-Z63LDNZJ.mjs → chunk-QEU6LCSD.mjs} +2 -2
  69. package/out/__chunks__/{chunk-O24MRZB2.mjs → chunk-QGTHGE7E.mjs} +2 -2
  70. package/out/__chunks__/{chunk-XNIJIKGB.mjs → chunk-QLEOO5UN.mjs} +2 -2
  71. package/out/__chunks__/{chunk-BNBD3WVN.mjs → chunk-RBJ3O63I.mjs} +2 -2
  72. package/out/__chunks__/chunk-RN2VZOXB.mjs +2 -0
  73. package/out/__chunks__/{chunk-KP4MUQKU.mjs → chunk-S2HQMNW6.mjs} +2 -2
  74. package/out/__chunks__/{chunk-27OTZWDO.mjs → chunk-SYNNW6IN.mjs} +2 -2
  75. package/out/__chunks__/{chunk-STVYY4LI.mjs → chunk-SZ3AWPZH.mjs} +2 -2
  76. package/out/__chunks__/{chunk-XUADWD55.mjs → chunk-T2BVHJVW.mjs} +2 -2
  77. package/out/__chunks__/chunk-T3JST5WU.mjs +2 -0
  78. package/out/__chunks__/chunk-T3JST5WU.mjs.map +7 -0
  79. package/out/__chunks__/chunk-TFZ46GCB.mjs +1 -0
  80. package/out/__chunks__/chunk-TFZ46GCB.mjs.map +7 -0
  81. package/out/__chunks__/{chunk-72D44IHE.mjs → chunk-TJYR4CV6.mjs} +2 -2
  82. package/out/__chunks__/{chunk-GSRRAPL5.mjs → chunk-TSK44JFJ.mjs} +2 -2
  83. package/out/__chunks__/{chunk-N6QD4PLA.mjs → chunk-TURUYZA7.mjs} +2 -2
  84. package/out/__chunks__/chunk-U6OAEGT3.mjs +2 -0
  85. package/out/__chunks__/{chunk-ARAO6B2F.mjs → chunk-UGUQSBY5.mjs} +2 -2
  86. package/out/__chunks__/{chunk-DNFWIYZH.mjs → chunk-UNBTFF6K.mjs} +2 -2
  87. package/out/__chunks__/{chunk-TMMUB3IK.mjs → chunk-VQ4GD4WE.mjs} +2 -2
  88. package/out/__chunks__/{chunk-OP2PPPAN.mjs → chunk-VX6FOSXG.mjs} +2 -2
  89. package/out/__chunks__/{chunk-KAQ5IXKK.mjs → chunk-W6P2TQ3N.mjs} +2 -2
  90. package/out/__chunks__/{chunk-E5CUE265.mjs → chunk-WC4UR2ZF.mjs} +2 -2
  91. package/out/__chunks__/chunk-WJQVMI33.mjs +2 -0
  92. package/out/__chunks__/chunk-WJQVMI33.mjs.map +7 -0
  93. package/out/__chunks__/chunk-WJTCBV34.mjs +2 -0
  94. package/out/__chunks__/{chunk-6BF62TP4.mjs → chunk-WJXCNHT3.mjs} +2 -2
  95. package/out/__chunks__/chunk-XDYKH6G4.mjs +2 -0
  96. package/out/__chunks__/{chunk-KX5J6EMC.mjs.map → chunk-XDYKH6G4.mjs.map} +1 -1
  97. package/out/__chunks__/chunk-XFP6N66W.mjs +2 -0
  98. package/out/__chunks__/{chunk-CYEMHPEX.mjs → chunk-XHRRQNPV.mjs} +2 -2
  99. package/out/__chunks__/{chunk-DCX2NQAU.mjs → chunk-XIDZCWKE.mjs} +2 -2
  100. package/out/__chunks__/chunk-XIQFXEMO.mjs +2 -0
  101. package/out/__chunks__/{chunk-2SVWHJC4.mjs → chunk-XJQ4VZS2.mjs} +2 -2
  102. package/out/__chunks__/{chunk-JV7AJLRI.mjs → chunk-XQUUCE53.mjs} +2 -2
  103. package/out/__chunks__/{chunk-FFHHIKMI.mjs → chunk-Y7BUJTYP.mjs} +2 -2
  104. package/out/__chunks__/{chunk-H4DISFAI.mjs → chunk-YCSATFGK.mjs} +2 -2
  105. package/out/__chunks__/chunk-YJFGRD5R.mjs +2 -0
  106. package/out/__chunks__/chunk-YJIAAC7S.mjs +2 -0
  107. package/out/__chunks__/{chunk-XHKNB4IP.mjs → chunk-YY724VZR.mjs} +2 -2
  108. package/out/__chunks__/{chunk-4XIT3N7Y.mjs → chunk-ZDCPV3O4.mjs} +2 -2
  109. package/out/__chunks__/{chunk-UJUAT5NK.mjs → chunk-ZEQI7SII.mjs} +2 -2
  110. package/out/__chunks__/{chunk-PAAJPYAE.mjs → chunk-ZKAIQNIL.mjs} +2 -2
  111. package/out/__chunks__/{chunk-IR743HKQ.mjs → chunk-ZMLJXSO5.mjs} +2 -2
  112. package/out/__chunks__/{chunk-HOJ7JMTW.mjs → chunk-ZP44CDGG.mjs} +2 -2
  113. package/out/__chunks__/chunk-ZQOG6A2Z.mjs +2 -0
  114. package/out/__chunks__/{chunk-S53SAYHR.mjs → chunk-ZQOIMST2.mjs} +2 -2
  115. package/out/__mocks__/accountConfig.mjs +1 -1
  116. package/out/__mocks__/data/index.mjs +1 -1
  117. package/out/__mocks__/index.mjs +1 -1
  118. package/out/__mocks__/server.mjs +1 -1
  119. package/out/__mocks__/utils/index.mjs +1 -1
  120. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  121. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  122. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  123. package/out/apiCalls/index.mjs +1 -1
  124. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  125. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  126. package/out/apiCalls/tokens/index.mjs +1 -1
  127. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  128. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  129. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  130. package/out/constants/browser.constants.mjs +1 -1
  131. package/out/constants/index.mjs +1 -1
  132. package/out/constants/storage.constants.mjs +1 -1
  133. package/out/constants/transactions.constants.cjs +3 -0
  134. package/out/constants/transactions.constants.cjs.map +2 -2
  135. package/out/constants/transactions.constants.d.ts +1 -0
  136. package/out/constants/transactions.constants.mjs +1 -1
  137. package/out/constants/window.constants.cjs +1 -1
  138. package/out/constants/window.constants.cjs.map +1 -1
  139. package/out/constants/window.constants.mjs +1 -1
  140. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  141. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  142. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  143. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  144. package/out/index.mjs +1 -1
  145. package/out/lib/sdkDappUi.mjs +1 -1
  146. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  147. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  148. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  149. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  150. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  151. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  152. package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
  153. package/out/managers/TransactionManager/index.mjs +1 -1
  154. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  155. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  156. package/out/managers/index.mjs +1 -1
  157. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  158. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  159. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  160. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  161. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  162. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  163. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  164. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  165. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  166. package/out/managers/internal/ToastManager/ToastManager.cjs +3 -6
  167. package/out/managers/internal/ToastManager/ToastManager.cjs.map +2 -2
  168. package/out/managers/internal/ToastManager/ToastManager.d.ts +1 -1
  169. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  170. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  171. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  172. package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +1 -1
  173. package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
  174. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  175. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  176. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  177. package/out/managers/internal/index.mjs +1 -1
  178. package/out/methods/account/getAccount.mjs +1 -1
  179. package/out/methods/account/getAccountInfo.mjs +1 -1
  180. package/out/methods/account/getAddress.mjs +1 -1
  181. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  182. package/out/methods/account/getLatestNonce.mjs +1 -1
  183. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  184. package/out/methods/initApp/initApp.mjs +1 -1
  185. package/out/methods/initApp/initApp.mjs.map +1 -1
  186. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  187. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  188. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  189. package/out/methods/network/getEgldLabel.mjs +1 -1
  190. package/out/methods/network/getExplorerAddress.mjs +1 -1
  191. package/out/methods/network/getNetworkConfig.mjs +1 -1
  192. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  193. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  194. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  195. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  196. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  197. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  198. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  199. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  200. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  201. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  202. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  203. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  204. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  205. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  206. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  207. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  208. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  209. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  210. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  211. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  212. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  213. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  214. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  215. package/out/providers/DappProvider/index.mjs +1 -1
  216. package/out/providers/ProviderFactory.mjs +1 -1
  217. package/out/providers/helpers/accountProvider.mjs +1 -1
  218. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  219. package/out/providers/helpers/restoreProvider.mjs +1 -1
  220. package/out/providers/index.mjs +1 -1
  221. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  222. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  223. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  224. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  225. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  226. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  227. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  228. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  229. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  230. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  231. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  232. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  233. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  234. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  235. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  236. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  237. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  238. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  239. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  240. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  241. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  242. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  243. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  244. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  245. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  246. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  247. package/out/providers/strategies/helpers/index.mjs +1 -1
  248. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  249. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  250. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  251. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +2 -221
  252. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs.map +3 -3
  253. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
  254. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  255. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  256. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
  257. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +1 -1
  258. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
  259. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  260. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  261. package/out/providers/strategies/index.mjs +1 -1
  262. package/out/react/account/useGetAccount.mjs +1 -1
  263. package/out/react/account/useGetAccountInfo.mjs +1 -1
  264. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  265. package/out/react/account/useGetLatestNonce.mjs +1 -1
  266. package/out/react/index.mjs +1 -1
  267. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  268. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  269. package/out/react/store/getReactStore.mjs +1 -1
  270. package/out/react/store/useSelector.mjs +1 -1
  271. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  272. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  273. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  274. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  275. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  276. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  277. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  278. package/out/services/index.mjs +1 -1
  279. package/out/services/nativeAuth/index.mjs +1 -1
  280. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  281. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  282. package/out/services/nativeAuth/methods/index.mjs +1 -1
  283. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  284. package/out/store/actions/account/accountActions.mjs +1 -1
  285. package/out/store/actions/account/index.mjs +1 -1
  286. package/out/store/actions/cache/cacheActions.mjs +1 -1
  287. package/out/store/actions/cache/index.mjs +1 -1
  288. package/out/store/actions/config/configActions.mjs +1 -1
  289. package/out/store/actions/config/index.mjs +1 -1
  290. package/out/store/actions/index.mjs +1 -1
  291. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  292. package/out/store/actions/network/index.mjs +1 -1
  293. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  294. package/out/store/actions/network/networkActions.mjs +1 -1
  295. package/out/store/actions/sharedActions/index.mjs +1 -1
  296. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  297. package/out/store/actions/toasts/index.mjs +1 -1
  298. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  299. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  300. package/out/store/actions/ui/index.mjs +1 -1
  301. package/out/store/actions/ui/uiActions.mjs +1 -1
  302. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  303. package/out/store/middleware/index.mjs +1 -1
  304. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  305. package/out/store/selectors/index.mjs +1 -1
  306. package/out/store/storage/index.mjs +1 -1
  307. package/out/store/storage/storageCallback.mjs +1 -1
  308. package/out/store/store.mjs +1 -1
  309. package/out/types/index.mjs +1 -1
  310. package/out/utils/ComponentFactory.mjs +1 -1
  311. package/out/utils/account/index.mjs +1 -1
  312. package/out/utils/account/refreshAccount.mjs +1 -1
  313. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  314. package/out/utils/dateTime/index.mjs +1 -1
  315. package/out/utils/index.mjs +1 -1
  316. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  317. package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs +111 -0
  318. package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs.map +7 -0
  319. package/out/utils/transactions/getDecodedDataField/getDecodedDataField.d.ts +9 -0
  320. package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs +2 -0
  321. package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs.map +7 -0
  322. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +90 -0
  323. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs.map +7 -0
  324. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.d.ts +8 -0
  325. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs +2 -0
  326. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs.map +7 -0
  327. package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs +48 -0
  328. package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs.map +7 -0
  329. package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.d.ts +9 -0
  330. package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs +2 -0
  331. package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs.map +7 -0
  332. package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs +45 -0
  333. package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs.map +7 -0
  334. package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.d.ts +9 -0
  335. package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs +2 -0
  336. package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs.map +7 -0
  337. package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs +61 -0
  338. package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs.map +7 -0
  339. package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.d.ts +9 -0
  340. package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs +2 -0
  341. package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs.map +7 -0
  342. package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs +39 -0
  343. package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs.map +7 -0
  344. package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.d.ts +1 -0
  345. package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.mjs +2 -0
  346. package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.mjs.map +7 -0
  347. package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs +52 -0
  348. package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs.map +7 -0
  349. package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.d.ts +7 -0
  350. package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs +2 -0
  351. package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs.map +7 -0
  352. package/out/utils/transactions/getDecodedDataField/helpers/index.cjs +33 -0
  353. package/out/utils/transactions/getDecodedDataField/helpers/index.cjs.map +7 -0
  354. package/out/utils/transactions/getDecodedDataField/helpers/index.d.ts +6 -0
  355. package/out/utils/transactions/getDecodedDataField/helpers/index.mjs +2 -0
  356. package/out/utils/transactions/getDecodedDataField/helpers/index.mjs.map +7 -0
  357. package/out/utils/transactions/getDecodedDataField/index.cjs +25 -0
  358. package/out/utils/transactions/getDecodedDataField/index.cjs.map +7 -0
  359. package/out/utils/transactions/getDecodedDataField/index.d.ts +2 -0
  360. package/out/utils/transactions/getDecodedDataField/index.mjs +2 -0
  361. package/out/utils/transactions/getDecodedDataField/index.mjs.map +7 -0
  362. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  363. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
  364. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +1 -1
  365. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
  366. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  367. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  368. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  369. package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.mjs +1 -1
  370. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  371. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  372. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  373. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  374. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  375. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  376. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
  377. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  378. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  379. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
  380. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  381. package/out/utils/transactions/index.cjs +2 -0
  382. package/out/utils/transactions/index.cjs.map +2 -2
  383. package/out/utils/transactions/index.d.ts +1 -0
  384. package/out/utils/transactions/index.mjs +1 -1
  385. package/out/utils/validation/index.mjs +1 -1
  386. package/out/utils/validation/isContract.mjs +1 -1
  387. package/out/utils/visual/index.mjs +1 -1
  388. package/out/utils/visual/switchTheme.mjs +1 -1
  389. package/out/utils/window/getIsInIframe.mjs +1 -1
  390. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  391. package/out/utils/window/index.mjs +1 -1
  392. package/package.json +1 -1
  393. package/out/__chunks__/chunk-3NQTC6AZ.mjs +0 -2
  394. package/out/__chunks__/chunk-4EMQSUU6.mjs +0 -2
  395. package/out/__chunks__/chunk-5JYD7XMI.mjs +0 -2
  396. package/out/__chunks__/chunk-6CQMLD25.mjs +0 -1
  397. package/out/__chunks__/chunk-BETSOJFK.mjs +0 -6
  398. package/out/__chunks__/chunk-BETSOJFK.mjs.map +0 -7
  399. package/out/__chunks__/chunk-CAA4VJRH.mjs +0 -2
  400. package/out/__chunks__/chunk-IRBGQJE4.mjs +0 -2
  401. package/out/__chunks__/chunk-J64N3RXX.mjs +0 -2
  402. package/out/__chunks__/chunk-JN5CTLWW.mjs +0 -2
  403. package/out/__chunks__/chunk-KK25BEMY.mjs +0 -2
  404. package/out/__chunks__/chunk-KX5J6EMC.mjs +0 -2
  405. package/out/__chunks__/chunk-LTRQRVWX.mjs +0 -2
  406. package/out/__chunks__/chunk-LY3MRREN.mjs +0 -2
  407. package/out/__chunks__/chunk-LY3MRREN.mjs.map +0 -7
  408. package/out/__chunks__/chunk-MGHFXYZ5.mjs +0 -2
  409. package/out/__chunks__/chunk-MK36TMYT.mjs +0 -2
  410. package/out/__chunks__/chunk-OF3XH6ZU.mjs +0 -2
  411. package/out/__chunks__/chunk-QQEQNSRI.mjs +0 -2
  412. package/out/__chunks__/chunk-SGQJOLH2.mjs +0 -2
  413. package/out/__chunks__/chunk-TMOMM4JN.mjs +0 -2
  414. package/out/__chunks__/chunk-XUI3Z5NN.mjs +0 -2
  415. package/out/__chunks__/chunk-YVLFUMPH.mjs +0 -2
  416. /package/out/__chunks__/{chunk-ZS4EBCWC.mjs.map → chunk-2GG67TZD.mjs.map} +0 -0
  417. /package/out/__chunks__/{chunk-YD2O3NV7.mjs.map → chunk-2KE2BNG7.mjs.map} +0 -0
  418. /package/out/__chunks__/{chunk-2L25IGHZ.mjs.map → chunk-2KPILBQ2.mjs.map} +0 -0
  419. /package/out/__chunks__/{chunk-IRBGQJE4.mjs.map → chunk-3JHE6RJX.mjs.map} +0 -0
  420. /package/out/__chunks__/{chunk-2DUVXRMU.mjs.map → chunk-3MJNBS6H.mjs.map} +0 -0
  421. /package/out/__chunks__/{chunk-7VNNDJ7P.mjs.map → chunk-463K27BJ.mjs.map} +0 -0
  422. /package/out/__chunks__/{chunk-7ONKP4ZG.mjs.map → chunk-4AGZHXFR.mjs.map} +0 -0
  423. /package/out/__chunks__/{chunk-I6WJ63GD.mjs.map → chunk-4N34K4EN.mjs.map} +0 -0
  424. /package/out/__chunks__/{chunk-IZ4B4B35.mjs.map → chunk-4PILLRHM.mjs.map} +0 -0
  425. /package/out/__chunks__/{chunk-54XYKDH7.mjs.map → chunk-555CAG7Y.mjs.map} +0 -0
  426. /package/out/__chunks__/{chunk-2ONA7QPD.mjs.map → chunk-5DP2QBUG.mjs.map} +0 -0
  427. /package/out/__chunks__/{chunk-5KVNYLOM.mjs.map → chunk-6DWUEZO7.mjs.map} +0 -0
  428. /package/out/__chunks__/{chunk-IWROXIQ5.mjs.map → chunk-6V76WUHS.mjs.map} +0 -0
  429. /package/out/__chunks__/{chunk-VRG2R5C7.mjs.map → chunk-76A63VDO.mjs.map} +0 -0
  430. /package/out/__chunks__/{chunk-UXYMY3HG.mjs.map → chunk-7HNMIUES.mjs.map} +0 -0
  431. /package/out/__chunks__/{chunk-3CKDOF3O.mjs.map → chunk-A3CEGIRB.mjs.map} +0 -0
  432. /package/out/__chunks__/{chunk-5JYD7XMI.mjs.map → chunk-AIKQPMR3.mjs.map} +0 -0
  433. /package/out/__chunks__/{chunk-LPGMDX6Q.mjs.map → chunk-AYURCZHZ.mjs.map} +0 -0
  434. /package/out/__chunks__/{chunk-DJ2HTZOV.mjs.map → chunk-BUHHNIJJ.mjs.map} +0 -0
  435. /package/out/__chunks__/{chunk-RNSBN5JT.mjs.map → chunk-C25AGRYE.mjs.map} +0 -0
  436. /package/out/__chunks__/{chunk-RJOP7SCI.mjs.map → chunk-CIB3ITZR.mjs.map} +0 -0
  437. /package/out/__chunks__/{chunk-LTRQRVWX.mjs.map → chunk-CUS6AHOH.mjs.map} +0 -0
  438. /package/out/__chunks__/{chunk-6PDGQGIS.mjs.map → chunk-EEWLVNMR.mjs.map} +0 -0
  439. /package/out/__chunks__/{chunk-AXCK3KRV.mjs.map → chunk-END5ZJQH.mjs.map} +0 -0
  440. /package/out/__chunks__/{chunk-I4HR64FU.mjs.map → chunk-F4RI663J.mjs.map} +0 -0
  441. /package/out/__chunks__/{chunk-Y7QM3LPW.mjs.map → chunk-GVTM4RFC.mjs.map} +0 -0
  442. /package/out/__chunks__/{chunk-YFXATY46.mjs.map → chunk-H3DYNUJU.mjs.map} +0 -0
  443. /package/out/__chunks__/{chunk-BGUYSNNW.mjs.map → chunk-IBM2AHR2.mjs.map} +0 -0
  444. /package/out/__chunks__/{chunk-FVFVOSQ4.mjs.map → chunk-J2SRCAF3.mjs.map} +0 -0
  445. /package/out/__chunks__/{chunk-J64N3RXX.mjs.map → chunk-J5EJIWY3.mjs.map} +0 -0
  446. /package/out/__chunks__/{chunk-WJI5FXSZ.mjs.map → chunk-JNJ4L4QD.mjs.map} +0 -0
  447. /package/out/__chunks__/{chunk-KXUILKL2.mjs.map → chunk-JNUF7URZ.mjs.map} +0 -0
  448. /package/out/__chunks__/{chunk-MK36TMYT.mjs.map → chunk-JQDWP4DW.mjs.map} +0 -0
  449. /package/out/__chunks__/{chunk-S5YFFC7A.mjs.map → chunk-JW2RVDMU.mjs.map} +0 -0
  450. /package/out/__chunks__/{chunk-6CQMLD25.mjs.map → chunk-KIOUFP5Q.mjs.map} +0 -0
  451. /package/out/__chunks__/{chunk-CAAMS3C5.mjs.map → chunk-KIQFGAFN.mjs.map} +0 -0
  452. /package/out/__chunks__/{chunk-5AZZG5KG.mjs.map → chunk-KJCSIEAC.mjs.map} +0 -0
  453. /package/out/__chunks__/{chunk-4AUL3FHT.mjs.map → chunk-LC3EPABR.mjs.map} +0 -0
  454. /package/out/__chunks__/{chunk-NZWPA245.mjs.map → chunk-MUMHVEIZ.mjs.map} +0 -0
  455. /package/out/__chunks__/{chunk-LQ6WESDL.mjs.map → chunk-MZEDBAQE.mjs.map} +0 -0
  456. /package/out/__chunks__/{chunk-PHMJQ5FC.mjs.map → chunk-NA5CDQ5C.mjs.map} +0 -0
  457. /package/out/__chunks__/{chunk-XUI3Z5NN.mjs.map → chunk-NJSC7RC2.mjs.map} +0 -0
  458. /package/out/__chunks__/{chunk-MGHFXYZ5.mjs.map → chunk-OE5E647N.mjs.map} +0 -0
  459. /package/out/__chunks__/{chunk-TMOMM4JN.mjs.map → chunk-OFSHYRXC.mjs.map} +0 -0
  460. /package/out/__chunks__/{chunk-2HKAVY3C.mjs.map → chunk-PBMO4Y47.mjs.map} +0 -0
  461. /package/out/__chunks__/{chunk-BQP6NPQM.mjs.map → chunk-PETVWH5Z.mjs.map} +0 -0
  462. /package/out/__chunks__/{chunk-OCGNA44K.mjs.map → chunk-PIBYPDMV.mjs.map} +0 -0
  463. /package/out/__chunks__/{chunk-DG77T3NS.mjs.map → chunk-PWXUYZF5.mjs.map} +0 -0
  464. /package/out/__chunks__/{chunk-PO3ODHJ7.mjs.map → chunk-Q62OP5VI.mjs.map} +0 -0
  465. /package/out/__chunks__/{chunk-Z63LDNZJ.mjs.map → chunk-QEU6LCSD.mjs.map} +0 -0
  466. /package/out/__chunks__/{chunk-O24MRZB2.mjs.map → chunk-QGTHGE7E.mjs.map} +0 -0
  467. /package/out/__chunks__/{chunk-XNIJIKGB.mjs.map → chunk-QLEOO5UN.mjs.map} +0 -0
  468. /package/out/__chunks__/{chunk-BNBD3WVN.mjs.map → chunk-RBJ3O63I.mjs.map} +0 -0
  469. /package/out/__chunks__/{chunk-4EMQSUU6.mjs.map → chunk-RN2VZOXB.mjs.map} +0 -0
  470. /package/out/__chunks__/{chunk-KP4MUQKU.mjs.map → chunk-S2HQMNW6.mjs.map} +0 -0
  471. /package/out/__chunks__/{chunk-27OTZWDO.mjs.map → chunk-SYNNW6IN.mjs.map} +0 -0
  472. /package/out/__chunks__/{chunk-STVYY4LI.mjs.map → chunk-SZ3AWPZH.mjs.map} +0 -0
  473. /package/out/__chunks__/{chunk-XUADWD55.mjs.map → chunk-T2BVHJVW.mjs.map} +0 -0
  474. /package/out/__chunks__/{chunk-72D44IHE.mjs.map → chunk-TJYR4CV6.mjs.map} +0 -0
  475. /package/out/__chunks__/{chunk-GSRRAPL5.mjs.map → chunk-TSK44JFJ.mjs.map} +0 -0
  476. /package/out/__chunks__/{chunk-N6QD4PLA.mjs.map → chunk-TURUYZA7.mjs.map} +0 -0
  477. /package/out/__chunks__/{chunk-3NQTC6AZ.mjs.map → chunk-U6OAEGT3.mjs.map} +0 -0
  478. /package/out/__chunks__/{chunk-ARAO6B2F.mjs.map → chunk-UGUQSBY5.mjs.map} +0 -0
  479. /package/out/__chunks__/{chunk-DNFWIYZH.mjs.map → chunk-UNBTFF6K.mjs.map} +0 -0
  480. /package/out/__chunks__/{chunk-TMMUB3IK.mjs.map → chunk-VQ4GD4WE.mjs.map} +0 -0
  481. /package/out/__chunks__/{chunk-OP2PPPAN.mjs.map → chunk-VX6FOSXG.mjs.map} +0 -0
  482. /package/out/__chunks__/{chunk-KAQ5IXKK.mjs.map → chunk-W6P2TQ3N.mjs.map} +0 -0
  483. /package/out/__chunks__/{chunk-E5CUE265.mjs.map → chunk-WC4UR2ZF.mjs.map} +0 -0
  484. /package/out/__chunks__/{chunk-SGQJOLH2.mjs.map → chunk-WJTCBV34.mjs.map} +0 -0
  485. /package/out/__chunks__/{chunk-6BF62TP4.mjs.map → chunk-WJXCNHT3.mjs.map} +0 -0
  486. /package/out/__chunks__/{chunk-JN5CTLWW.mjs.map → chunk-XFP6N66W.mjs.map} +0 -0
  487. /package/out/__chunks__/{chunk-CYEMHPEX.mjs.map → chunk-XHRRQNPV.mjs.map} +0 -0
  488. /package/out/__chunks__/{chunk-DCX2NQAU.mjs.map → chunk-XIDZCWKE.mjs.map} +0 -0
  489. /package/out/__chunks__/{chunk-QQEQNSRI.mjs.map → chunk-XIQFXEMO.mjs.map} +0 -0
  490. /package/out/__chunks__/{chunk-2SVWHJC4.mjs.map → chunk-XJQ4VZS2.mjs.map} +0 -0
  491. /package/out/__chunks__/{chunk-JV7AJLRI.mjs.map → chunk-XQUUCE53.mjs.map} +0 -0
  492. /package/out/__chunks__/{chunk-FFHHIKMI.mjs.map → chunk-Y7BUJTYP.mjs.map} +0 -0
  493. /package/out/__chunks__/{chunk-H4DISFAI.mjs.map → chunk-YCSATFGK.mjs.map} +0 -0
  494. /package/out/__chunks__/{chunk-KK25BEMY.mjs.map → chunk-YJFGRD5R.mjs.map} +0 -0
  495. /package/out/__chunks__/{chunk-OF3XH6ZU.mjs.map → chunk-YJIAAC7S.mjs.map} +0 -0
  496. /package/out/__chunks__/{chunk-XHKNB4IP.mjs.map → chunk-YY724VZR.mjs.map} +0 -0
  497. /package/out/__chunks__/{chunk-4XIT3N7Y.mjs.map → chunk-ZDCPV3O4.mjs.map} +0 -0
  498. /package/out/__chunks__/{chunk-UJUAT5NK.mjs.map → chunk-ZEQI7SII.mjs.map} +0 -0
  499. /package/out/__chunks__/{chunk-PAAJPYAE.mjs.map → chunk-ZKAIQNIL.mjs.map} +0 -0
  500. /package/out/__chunks__/{chunk-IR743HKQ.mjs.map → chunk-ZMLJXSO5.mjs.map} +0 -0
  501. /package/out/__chunks__/{chunk-HOJ7JMTW.mjs.map → chunk-ZP44CDGG.mjs.map} +0 -0
  502. /package/out/__chunks__/{chunk-YVLFUMPH.mjs.map → chunk-ZQOG6A2Z.mjs.map} +0 -0
  503. /package/out/__chunks__/{chunk-S53SAYHR.mjs.map → chunk-ZQOIMST2.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-XVX7N3JK.mjs";import{a as m}from"./chunk-I3MK6KZJ.mjs";import{Address as l}from"@multiversx/sdk-core";import c from"bignumber.js";var s={tokenId:"",amount:""},g=e=>e.split("@").map((n,t)=>[2,3].includes(t)?n:f(n));function D(e){if(!e)return s;let d=e.startsWith("ESDTTransfer"),u=e.startsWith("ESDTNFTTransfer")&&e.includes("@"),a=e.startsWith("ESDTNFTBurn")&&e.includes("@");try{if(d){let[,n,t]=e.split("@"),o=Buffer.from(n,"hex").toString("ascii");if(!o)return s;let r=new c("0x"+t.replace("0x","")).toString(10);return{tokenId:o,amount:r}}let i=g(e);if(u){let[,n,t,o,r]=i;if([n,t,o,r].every(T=>!!T)&&m(new l(r).toBech32()))return{tokenId:`${n}-${t}`,amount:new c(o,16).toString(10),collection:n,nonce:t,receiver:new l(r).toBech32()}}if(a){let[,n,t,o]=i;if([n,t,o].every(r=>!!r))return{tokenId:`${n}-${t}`,amount:new c(o,16).toString(10),collection:n,nonce:t}}}catch{return s}return s}export{g as a,D as b};
2
- //# sourceMappingURL=chunk-ZS4EBCWC.mjs.map
1
+ import{a as m}from"./chunk-XVX7N3JK.mjs";import{a as f}from"./chunk-I3MK6KZJ.mjs";import{Address as l}from"@multiversx/sdk-core";import c from"bignumber.js";var s={tokenId:"",amount:""},g=e=>e.split("@").map((n,t)=>[2,3].includes(t)?n:m(n));function D(e){if(!e)return s;let d=e.startsWith("ESDTTransfer"),u=e.startsWith("ESDTNFTTransfer")&&e.includes("@"),a=e.startsWith("ESDTNFTBurn")&&e.includes("@");try{if(d){let[,n,t]=e.split("@"),o=Buffer.from(n,"hex").toString("ascii");if(!o)return s;let r=new c("0x"+t.replace("0x","")).toString(10);return{tokenId:o,amount:r}}let i=g(e);if(u){let[,n,t,o,r]=i;if([n,t,o,r].every(T=>!!T)&&f(new l(r).toBech32()))return{tokenId:`${n}-${t}`,amount:new c(o,16).toString(10),collection:n,nonce:t,receiver:new l(r).toBech32()}}if(a){let[,n,t,o]=i;if([n,t,o].every(r=>!!r))return{tokenId:`${n}-${t}`,amount:new c(o,16).toString(10),collection:n,nonce:t}}}catch{return s}return s}export{g as a,D as b};
2
+ //# sourceMappingURL=chunk-2GG67TZD.mjs.map
@@ -0,0 +1,2 @@
1
+ var _="cancel-transaction-toast",T="error-signing-toast",A=6e3,S=5,t=9e4,o=6e5,R=1e4,E="-",N=75,O=25,I=100,D=5e3,n=36e3;export{_ as a,T as b,A as c,S as d,t as e,o as f,R as g,E as h,N as i,O as j,I as k,D as l,n as m};
2
+ //# sourceMappingURL=chunk-2IUBMLF4.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants/transactions.constants.ts"],
4
- "sourcesContent": ["export const CANCEL_TRANSACTION_TOAST_ID = 'cancel-transaction-toast';\nexport const ERROR_SIGNING_TOAST_ID = 'error-signing-toast';\nexport const AVERAGE_TX_DURATION_MS = 6000;\nexport const CROSS_SHARD_ROUNDS = 5;\nexport const TRANSACTIONS_STATUS_POLLING_INTERVAL_MS = 90 * 1000; // 90sec\nexport const TRANSACTIONS_STATUS_DROP_INTERVAL_MS = 10 * 60 * 1000; // 10min\nexport const CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION = 10000;\nexport const BATCH_TRANSACTIONS_ID_SEPARATOR = '-';\nexport const SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE = 75;\nexport const CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE = 25;\nexport const PROGRESS_INTERVAL_DURATION_MS = 100;\nexport const DEFAULT_TOAST_LIEFTIME = 5000;\n"],
5
- "mappings": "AAAO,IAAMA,EAA8B,2BAC9BC,EAAyB,sBACzBC,EAAyB,IACzBC,EAAqB,EACrBC,EAA0C,IAC1CC,EAAuC,IACvCC,EAA4C,IAC5CC,EAAkC,IAClCC,EAA8C,GAC9CC,EAA+C,GAC/CC,EAAgC,IAChCC,EAAyB",
6
- "names": ["CANCEL_TRANSACTION_TOAST_ID", "ERROR_SIGNING_TOAST_ID", "AVERAGE_TX_DURATION_MS", "CROSS_SHARD_ROUNDS", "TRANSACTIONS_STATUS_POLLING_INTERVAL_MS", "TRANSACTIONS_STATUS_DROP_INTERVAL_MS", "CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION", "BATCH_TRANSACTIONS_ID_SEPARATOR", "SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE", "CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE", "PROGRESS_INTERVAL_DURATION_MS", "DEFAULT_TOAST_LIEFTIME"]
4
+ "sourcesContent": ["export const CANCEL_TRANSACTION_TOAST_ID = 'cancel-transaction-toast';\nexport const ERROR_SIGNING_TOAST_ID = 'error-signing-toast';\nexport const AVERAGE_TX_DURATION_MS = 6000;\nexport const CROSS_SHARD_ROUNDS = 5;\nexport const TRANSACTIONS_STATUS_POLLING_INTERVAL_MS = 90 * 1000; // 90sec\nexport const TRANSACTIONS_STATUS_DROP_INTERVAL_MS = 10 * 60 * 1000; // 10min\nexport const CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION = 10000;\nexport const BATCH_TRANSACTIONS_ID_SEPARATOR = '-';\nexport const SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE = 75;\nexport const CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE = 25;\nexport const PROGRESS_INTERVAL_DURATION_MS = 100;\nexport const DEFAULT_TOAST_LIEFTIME = 5000;\nexport const MAX_DECODE_TX_DATA_LENGTH = 36000;\n"],
5
+ "mappings": "AAAO,IAAMA,EAA8B,2BAC9BC,EAAyB,sBACzBC,EAAyB,IACzBC,EAAqB,EACrBC,EAA0C,IAC1CC,EAAuC,IACvCC,EAA4C,IAC5CC,EAAkC,IAClCC,EAA8C,GAC9CC,EAA+C,GAC/CC,EAAgC,IAChCC,EAAyB,IACzBC,EAA4B",
6
+ "names": ["CANCEL_TRANSACTION_TOAST_ID", "ERROR_SIGNING_TOAST_ID", "AVERAGE_TX_DURATION_MS", "CROSS_SHARD_ROUNDS", "TRANSACTIONS_STATUS_POLLING_INTERVAL_MS", "TRANSACTIONS_STATUS_DROP_INTERVAL_MS", "CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION", "BATCH_TRANSACTIONS_ID_SEPARATOR", "SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE", "CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE", "PROGRESS_INTERVAL_DURATION_MS", "DEFAULT_TOAST_LIEFTIME", "MAX_DECODE_TX_DATA_LENGTH"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{t as n}from"./chunk-LY3MRREN.mjs";import{a as i}from"./chunk-PLUWBWJ2.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
- //# sourceMappingURL=chunk-YD2O3NV7.mjs.map
1
+ import{t as n}from"./chunk-T3JST5WU.mjs";import{a as i}from"./chunk-PLUWBWJ2.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
+ //# sourceMappingURL=chunk-2KE2BNG7.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as h}from"./chunk-OP2PPPAN.mjs";import{a as s}from"./chunk-4XIT3N7Y.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-TMOMM4JN.mjs";import{b as A}from"./chunk-NZWPA245.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{f as p}from"./chunk-LPGMDX6Q.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-PLUWBWJ2.mjs";import{BigNumber as C}from"bignumber.js";async function M({options:d,config:i,provider:a,login:c}){let e=h.getInstance(),T=L(),b=k({loginToken:d?.token,version:i.version}),o={manager:e,provider:a};await s(o);let t=await new Promise(async function(E,w){async function g(r){let n=e?e.addressesPerPage??1:1,l=new C(r-1).times(n);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await s(o)}async function u(r){if(!(!a||!c)){e?.updateConfirmScreen({...b,selectedAddress:r.selectedAddress,explorerLink:I({to:`/${f}/${r.selectedAddress}`,explorerAddress:T})});try{let n=d?.token?await a.tokenLogin({token:Buffer.from(`${d?.token}{}`),addressIndex:r.addressIndex}):await c({addressIndex:r.addressIndex});E({address:n.address,signature:n.signature?n.signature.toString("hex"):"",addressIndex:r.addressIndex})}catch(n){console.error("User rejected login:",n),!!e?.getConfirmScreenData()&&await s(o)}}}async function m(){await s(o),e.unsubscribeFromAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g}),w("User cancelled login")}e.subscribeToAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g})}),{version:P,dataEnabled:v}=i;return p({index:t.addressIndex,loginType:x.ledger}),A({address:t.address,index:t.addressIndex,version:P,hasContractDataEnabled:v}),{address:t.address,signature:t.signature}}export{M as a};
2
- //# sourceMappingURL=chunk-2L25IGHZ.mjs.map
1
+ import{a as h}from"./chunk-VX6FOSXG.mjs";import{a as s}from"./chunk-ZDCPV3O4.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-OFSHYRXC.mjs";import{b as A}from"./chunk-MUMHVEIZ.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{f as p}from"./chunk-AYURCZHZ.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-PLUWBWJ2.mjs";import{BigNumber as C}from"bignumber.js";async function M({options:d,config:i,provider:a,login:c}){let e=h.getInstance(),T=L(),b=k({loginToken:d?.token,version:i.version}),o={manager:e,provider:a};await s(o);let t=await new Promise(async function(E,w){async function g(r){let n=e?e.addressesPerPage??1:1,l=new C(r-1).times(n);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await s(o)}async function u(r){if(!(!a||!c)){e?.updateConfirmScreen({...b,selectedAddress:r.selectedAddress,explorerLink:I({to:`/${f}/${r.selectedAddress}`,explorerAddress:T})});try{let n=d?.token?await a.tokenLogin({token:Buffer.from(`${d?.token}{}`),addressIndex:r.addressIndex}):await c({addressIndex:r.addressIndex});E({address:n.address,signature:n.signature?n.signature.toString("hex"):"",addressIndex:r.addressIndex})}catch(n){console.error("User rejected login:",n),!!e?.getConfirmScreenData()&&await s(o)}}}async function m(){await s(o),e.unsubscribeFromAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g}),w("User cancelled login")}e.subscribeToAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g})}),{version:P,dataEnabled:v}=i;return p({index:t.addressIndex,loginType:x.ledger}),A({address:t.address,index:t.addressIndex,version:P,hasContractDataEnabled:v}),{address:t.address,signature:t.signature}}export{M as a};
2
+ //# sourceMappingURL=chunk-2KPILBQ2.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as n}from"./chunk-AYURCZHZ.mjs";import{b as t}from"./chunk-UTWIKUIK.mjs";var c=a=>t(`transaction-${a}`)(n().getState())??null;export{c as a};
2
+ //# sourceMappingURL=chunk-3JHE6RJX.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-QQEQNSRI.mjs";import{a as k}from"./chunk-J64N3RXX.mjs";import{q as f}from"./chunk-LPGMDX6Q.mjs";import{d as b}from"./chunk-UERJ6AKK.mjs";import{c as n}from"./chunk-2SVWHJC4.mjs";import{b as i}from"./chunk-GGBMHKR4.mjs";async function N(){let o=f(),I=g(),s=null,t=null,l=b(o.getState())?.timestamp,c=()=>{k()},u=()=>{s??=setInterval(c,I)},m=()=>{s&&(clearInterval(s),s=null)},p=()=>{m();let a=o.subscribe(({account:{websocketEvent:e}})=>{e?.message&&l!==e.timestamp&&(l=e.timestamp,c())});n.set("websocketEventReceived",a)},S=()=>{i.status!=="not_initialized"||t||(t=setInterval(()=>{i.status==="completed"&&(clearInterval(t),t=null,p())},1e3))};c();let r=()=>{m(),t&&(clearInterval(t),t=null)},v=o.subscribe(({account:{address:a},config:{websocketStatus:e}},T)=>{if(T.config.websocketStatus!==e)switch(e){case"completed":p();break;case"pending":u(),S();break;default:a?u():r();break}});return n.set("websocketStatusChanged",v),n.set("websocketEventReceived",r),{stopTransactionsTracking:r}}export{N as a};
2
- //# sourceMappingURL=chunk-2DUVXRMU.mjs.map
1
+ import{a as g}from"./chunk-XIQFXEMO.mjs";import{a as k}from"./chunk-J5EJIWY3.mjs";import{q as f}from"./chunk-AYURCZHZ.mjs";import{d as b}from"./chunk-UERJ6AKK.mjs";import{c as n}from"./chunk-XJQ4VZS2.mjs";import{b as i}from"./chunk-GGBMHKR4.mjs";async function N(){let o=f(),I=g(),s=null,t=null,l=b(o.getState())?.timestamp,c=()=>{k()},u=()=>{s??=setInterval(c,I)},m=()=>{s&&(clearInterval(s),s=null)},p=()=>{m();let a=o.subscribe(({account:{websocketEvent:e}})=>{e?.message&&l!==e.timestamp&&(l=e.timestamp,c())});n.set("websocketEventReceived",a)},S=()=>{i.status!=="not_initialized"||t||(t=setInterval(()=>{i.status==="completed"&&(clearInterval(t),t=null,p())},1e3))};c();let r=()=>{m(),t&&(clearInterval(t),t=null)},v=o.subscribe(({account:{address:a},config:{websocketStatus:e}},T)=>{if(T.config.websocketStatus!==e)switch(e){case"completed":p();break;case"pending":u(),S();break;default:a?u():r();break}});return n.set("websocketStatusChanged",v),n.set("websocketEventReceived",r),{stopTransactionsTracking:r}}export{N as a};
2
+ //# sourceMappingURL=chunk-3MJNBS6H.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as de}from"./chunk-M3YL36ZL.mjs";import{a as se}from"./chunk-AQ6D3F5K.mjs";import{a as te}from"./chunk-2L25IGHZ.mjs";import{a as U}from"./chunk-OP2PPPAN.mjs";import{a as ie}from"./chunk-VRG2R5C7.mjs";import{a as re}from"./chunk-WJI5FXSZ.mjs";import{a as I}from"./chunk-SGQJOLH2.mjs";import{a as ee}from"./chunk-YUFPUG5O.mjs";import{a as ae}from"./chunk-DCX2NQAU.mjs";import{a as p}from"./chunk-Y7QM3LPW.mjs";import{a as Z}from"./chunk-RJOP7SCI.mjs";import{a as ne}from"./chunk-O24MRZB2.mjs";import{a as oe}from"./chunk-KP4MUQKU.mjs";import{a as Q}from"./chunk-QJGFIK7H.mjs";import{b as J}from"./chunk-4Z3DZ2A3.mjs";import{b as C,c as Y}from"./chunk-NRXYSTRW.mjs";import{j as $,l as O,r as M,s as P,t as L}from"./chunk-LY3MRREN.mjs";import{a as y}from"./chunk-E5CUE265.mjs";import{g as K}from"./chunk-CAA4VJRH.mjs";import{a as q}from"./chunk-OF3XH6ZU.mjs";import{a as D}from"./chunk-4TBVQD27.mjs";import{a as X}from"./chunk-2HKAVY3C.mjs";import{a as F,q as j,s as l}from"./chunk-LPGMDX6Q.mjs";import{f as R}from"./chunk-UERJ6AKK.mjs";import{b as E,c as V}from"./chunk-SAAOQW7P.mjs";import{a as B}from"./chunk-VNLGNNIL.mjs";import{b as H,c as G}from"./chunk-6JM4DPOH.mjs";import{a as c}from"./chunk-CDQ2BNUD.mjs";import{a as o}from"./chunk-PLUWBWJ2.mjs";import{IframeLoginTypes as pe}from"@multiversx/sdk-web-wallet-iframe-provider/out/constants";var f=class extends p{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await te({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!I())return;await U.getInstance().init(e)};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await ne({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await ce({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await re({shouldInitProvider:!0});this.provider=r}catch(r){throw $({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"times",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await this.initLegderConnectManager(this.options?.anchor);let e=U.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((n,s)=>ie({manager:e,resolve:n,reject:s,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ve=3e4,me=5e3,he=3e3,S=class a{constructor(){this.store=j();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let i=this.store.getState(),{providerType:e}=B(i),r=R(i);return!!(e===o.ledger&&r)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let i=J(l());if(!(!this.shouldCheckConnection()||i))try{await L().getProvider().getAddress()}catch{if(O.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",icon:"times",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,me)}},ve))};this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let i=new f({shouldInitProvider:!0});await i.init();let e=new M(i);i.getType=()=>o.ledger,P(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,O.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",duration:he,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var k=class extends p{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:r,manager:t}=await this.initSignState();try{let n=await this.provider.signTransactions(e)??[];return await oe(n)}catch(n){throw await r({shouldCancelAction:!0}),n}finally{t.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.crossWindow})};this.walletAddress=e?.walletAddress,this.provider=Q.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=E(l()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return o.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as ue}from"@multiversx/sdk-extension-provider/out/extensionProvider";var z=class extends p{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(n){throw await t({shouldCancelAction:!1}),n}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.extension})};this.provider=ue.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return o.extension}};var fe={passkey:o.passkey,metamask:o.metamask},T=class extends p{constructor({type:e,address:r,walletUrl:t}){super(r);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)}catch(n){throw await t({shouldCancelAction:!0}),n}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider||!this.type)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c[this.type]})};this.type=e,this.walletUrl=t??"",this.provider=de.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=E(l());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setLoginType(this.type),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return fe[this.type]}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as ye}from"@multiversx/sdk-wallet-connect-provider/out";var le=[C.CANCEL_ACTION,C.SIGN_LOGIN_TOKEN],_=class extends p{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.cancelActionAbortController=null;this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();this.cancelActionAbortController=new AbortController;let n=this.cancelActionAbortController.signal;try{let s=new Promise((h,v)=>{n.addEventListener("abort",()=>{v(new Error("cancelled by user"))})});return await Promise.race([this.provider.signTransactions(e),s])}catch(s){throw await t({shouldCancelAction:!0}),s}finally{r.closeUI()}};this.cancelAction=async()=>{this.sendCustomRequest({method:C.CANCEL_ACTION,action:ye.CANCEL_ACTION}),this.cancelActionAbortController?.abort()};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");this.cancelActionAbortController=new AbortController;let r=this.cancelActionAbortController.signal,t=new Promise((s,d)=>{r.addEventListener("abort",()=>{d(new Error("cancelled by user"))})});return await Promise.race([g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.extension}),t])};this.config=e}async init(){try{await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:n}=await this.provider.connect({methods:this.methods}),s=this.config.walletConnectDeepLink??D.walletConnectDeepLink;this._approval=n,y.getInstance().updateData({wcURI:t,walletConnectDeepLink:`${s}?wallet-connect=${encodeURIComponent(t)}`})}async initWalletConnectManager(){if(!!I())return;await y.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=I(),t=V(l());if(H(l())&&le.push(C.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let v={onClientLogin:()=>{},onClientLogout:()=>{X()},onClientEvent:m=>{}};try{let{walletConnectV2ProjectId:m,walletConnectV2Options:x={},walletConnectV2RelayAddress:W=""}=e,w=new Y(v,t,W,m,x);return await w.init(),{walletConnectProvider:w,dappMethods:le}}catch(m){throw console.error("Unable to connect",m),r&&await this.logout(),m}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=y.getInstance(),{uri:n="",approval:s}=await this.provider.connect({methods:this.methods}),d=this.config.walletConnectDeepLink??D.walletConnectDeepLink;t.updateData({wcURI:n,walletConnectDeepLink:`${d}?wallet-connect=${encodeURIComponent(n)}`});let h=await this.provider.login({approval:s,token:e?.token}),{address:v="",signature:m=""}=h??{};return t.handleClose({isLoginFinished:!!v}),{address:v,signature:m}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:n="",signature:s=""}=t??{};return y.getInstance().handleClose({isLoginFinished:!!n}),{address:n,signature:s}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var A=class{static set customProviders(i){this._customProviders=i}static get customProviders(){return this._customProviders}static async create({type:i,anchor:e}){let r=null;switch(i){case o.extension:{r=new z;break}case o.crossWindow:{r=new k;break}case o.ledger:{r=new f({anchor:e}),await S.getInstance().init();break}case o.metamask:{r=new T({type:pe.metamask});break}case o.passkey:{r=new T({type:pe.passkey});break}case o.walletConnect:{let s=G(l());if(!s?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new _({anchor:e,...s});break}case o.webview:{r=new ae;break}default:{let s=q();for(let d of this._customProviders)d.type===i&&(r=await d.constructor({address:s,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new M(r);P(t);let n=[o.crossWindow,o.metamask,o.passkey].includes(i);return se(n?{skipLoginMethod:i}:null),t}static async destroy(){L().cancelLogin(),P(null),F(o.none)}};A._customProviders=[];var Pe=(a,i)=>a.some(e=>e.type===i);async function g({message:a,handleSignMessage:i,cancelAction:e,providerType:r}){return await new Promise(async(n,s)=>{let{manager:d,onClose:h}=await Z({cancelAction:e}),v=Object.values(A.customProviders),m=v.reduce((u,N)=>(u[N.type]=N.name,u),{}),x={...c,...m},W=async()=>{await h({shouldCancelAction:!0}),s({message:"Signing canceled"})};d.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",W);let w=Pe(v,r)?r:o.none;d.updateData({name:x[w],type:w});try{let u=await i(a);n(u)}catch(u){await h({shouldCancelAction:!0}),s(u)}finally{d.closeUI()}})}async function ce({message:a,handleSignMessage:i}){try{return await g({message:a,handleSignMessage:i,providerType:c.ledger})}catch(e){let{errorMessage:r}=ee(e);throw r?{message:r}:e}}export{ce as a,f as b,S as c,A as d,g as e,k as f,z as g,T as h,_ as i};
2
- //# sourceMappingURL=chunk-7VNNDJ7P.mjs.map
1
+ import{a as de}from"./chunk-M3YL36ZL.mjs";import{a as se}from"./chunk-AQ6D3F5K.mjs";import{a as te}from"./chunk-2KPILBQ2.mjs";import{a as U}from"./chunk-VX6FOSXG.mjs";import{a as ie}from"./chunk-76A63VDO.mjs";import{a as re}from"./chunk-JNJ4L4QD.mjs";import{a as I}from"./chunk-WJTCBV34.mjs";import{a as ee}from"./chunk-YUFPUG5O.mjs";import{a as ae}from"./chunk-XIDZCWKE.mjs";import{a as p}from"./chunk-GVTM4RFC.mjs";import{a as Z}from"./chunk-CIB3ITZR.mjs";import{a as ne}from"./chunk-QGTHGE7E.mjs";import{a as oe}from"./chunk-S2HQMNW6.mjs";import{a as Q}from"./chunk-QJGFIK7H.mjs";import{b as J}from"./chunk-4Z3DZ2A3.mjs";import{b as C,c as Y}from"./chunk-NRXYSTRW.mjs";import{j as $,l as O,r as M,s as P,t as L}from"./chunk-T3JST5WU.mjs";import{a as y}from"./chunk-WC4UR2ZF.mjs";import{a as q}from"./chunk-YJIAAC7S.mjs";import{a as D}from"./chunk-4TBVQD27.mjs";import{a as X}from"./chunk-PBMO4Y47.mjs";import{g as K}from"./chunk-2IUBMLF4.mjs";import{a as F,q as j,s as l}from"./chunk-AYURCZHZ.mjs";import{f as R}from"./chunk-UERJ6AKK.mjs";import{b as E,c as V}from"./chunk-SAAOQW7P.mjs";import{a as B}from"./chunk-VNLGNNIL.mjs";import{b as H,c as G}from"./chunk-6JM4DPOH.mjs";import{a as c}from"./chunk-CDQ2BNUD.mjs";import{a as o}from"./chunk-PLUWBWJ2.mjs";import{IframeLoginTypes as pe}from"@multiversx/sdk-web-wallet-iframe-provider/out/constants";var f=class extends p{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await te({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!I())return;await U.getInstance().init(e)};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await ne({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await ce({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await re({shouldInitProvider:!0});this.provider=r}catch(r){throw $({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"times",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await this.initLegderConnectManager(this.options?.anchor);let e=U.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((n,s)=>ie({manager:e,resolve:n,reject:s,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ve=3e4,me=5e3,he=3e3,S=class a{constructor(){this.store=j();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let i=this.store.getState(),{providerType:e}=B(i),r=R(i);return!!(e===o.ledger&&r)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let i=J(l());if(!(!this.shouldCheckConnection()||i))try{await L().getProvider().getAddress()}catch{if(O.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",icon:"times",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,me)}},ve))};this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let i=new f({shouldInitProvider:!0});await i.init();let e=new M(i);i.getType=()=>o.ledger,P(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,O.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",duration:he,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var k=class extends p{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:r,manager:t}=await this.initSignState();try{let n=await this.provider.signTransactions(e)??[];return await oe(n)}catch(n){throw await r({shouldCancelAction:!0}),n}finally{t.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.crossWindow})};this.walletAddress=e?.walletAddress,this.provider=Q.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=E(l()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return o.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as ue}from"@multiversx/sdk-extension-provider/out/extensionProvider";var z=class extends p{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(n){throw await t({shouldCancelAction:!1}),n}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.extension})};this.provider=ue.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return o.extension}};var fe={passkey:o.passkey,metamask:o.metamask},T=class extends p{constructor({type:e,address:r,walletUrl:t}){super(r);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)}catch(n){throw await t({shouldCancelAction:!0}),n}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider||!this.type)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c[this.type]})};this.type=e,this.walletUrl=t??"",this.provider=de.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=E(l());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setLoginType(this.type),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return fe[this.type]}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as ye}from"@multiversx/sdk-wallet-connect-provider/out";var le=[C.CANCEL_ACTION,C.SIGN_LOGIN_TOKEN],_=class extends p{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.cancelActionAbortController=null;this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();this.cancelActionAbortController=new AbortController;let n=this.cancelActionAbortController.signal;try{let s=new Promise((h,v)=>{n.addEventListener("abort",()=>{v(new Error("cancelled by user"))})});return await Promise.race([this.provider.signTransactions(e),s])}catch(s){throw await t({shouldCancelAction:!0}),s}finally{r.closeUI()}};this.cancelAction=async()=>{this.sendCustomRequest({method:C.CANCEL_ACTION,action:ye.CANCEL_ACTION}),this.cancelActionAbortController?.abort()};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");this.cancelActionAbortController=new AbortController;let r=this.cancelActionAbortController.signal,t=new Promise((s,d)=>{r.addEventListener("abort",()=>{d(new Error("cancelled by user"))})});return await Promise.race([g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.extension}),t])};this.config=e}async init(){try{await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:n}=await this.provider.connect({methods:this.methods}),s=this.config.walletConnectDeepLink??D.walletConnectDeepLink;this._approval=n,y.getInstance().updateData({wcURI:t,walletConnectDeepLink:`${s}?wallet-connect=${encodeURIComponent(t)}`})}async initWalletConnectManager(){if(!!I())return;await y.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=I(),t=V(l());if(H(l())&&le.push(C.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let v={onClientLogin:()=>{},onClientLogout:()=>{X()},onClientEvent:m=>{}};try{let{walletConnectV2ProjectId:m,walletConnectV2Options:x={},walletConnectV2RelayAddress:W=""}=e,w=new Y(v,t,W,m,x);return await w.init(),{walletConnectProvider:w,dappMethods:le}}catch(m){throw console.error("Unable to connect",m),r&&await this.logout(),m}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=y.getInstance(),{uri:n="",approval:s}=await this.provider.connect({methods:this.methods}),d=this.config.walletConnectDeepLink??D.walletConnectDeepLink;t.updateData({wcURI:n,walletConnectDeepLink:`${d}?wallet-connect=${encodeURIComponent(n)}`});let h=await this.provider.login({approval:s,token:e?.token}),{address:v="",signature:m=""}=h??{};return t.handleClose({isLoginFinished:!!v}),{address:v,signature:m}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:n="",signature:s=""}=t??{};return y.getInstance().handleClose({isLoginFinished:!!n}),{address:n,signature:s}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var A=class{static set customProviders(i){this._customProviders=i}static get customProviders(){return this._customProviders}static async create({type:i,anchor:e}){let r=null;switch(i){case o.extension:{r=new z;break}case o.crossWindow:{r=new k;break}case o.ledger:{r=new f({anchor:e}),await S.getInstance().init();break}case o.metamask:{r=new T({type:pe.metamask});break}case o.passkey:{r=new T({type:pe.passkey});break}case o.walletConnect:{let s=G(l());if(!s?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new _({anchor:e,...s});break}case o.webview:{r=new ae;break}default:{let s=q();for(let d of this._customProviders)d.type===i&&(r=await d.constructor({address:s,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new M(r);P(t);let n=[o.crossWindow,o.metamask,o.passkey].includes(i);return se(n?{skipLoginMethod:i}:null),t}static async destroy(){L().cancelLogin(),P(null),F(o.none)}};A._customProviders=[];var Pe=(a,i)=>a.some(e=>e.type===i);async function g({message:a,handleSignMessage:i,cancelAction:e,providerType:r}){return await new Promise(async(n,s)=>{let{manager:d,onClose:h}=await Z({cancelAction:e}),v=Object.values(A.customProviders),m=v.reduce((u,N)=>(u[N.type]=N.name,u),{}),x={...c,...m},W=async()=>{await h({shouldCancelAction:!0}),s({message:"Signing canceled"})};d.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",W);let w=Pe(v,r)?r:o.none;d.updateData({name:x[w],type:w});try{let u=await i(a);n(u)}catch(u){await h({shouldCancelAction:!0}),s(u)}finally{d.closeUI()}})}async function ce({message:a,handleSignMessage:i}){try{return await g({message:a,handleSignMessage:i,providerType:c.ledger})}catch(e){let{errorMessage:r}=ee(e);throw r?{message:r}:e}}export{ce as a,f as b,S as c,A as d,g as e,k as f,z as g,T as h,_ as i};
2
+ //# sourceMappingURL=chunk-463K27BJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-XUADWD55.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
2
- //# sourceMappingURL=chunk-7ONKP4ZG.mjs.map
1
+ import{a as t}from"./chunk-T2BVHJVW.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
2
+ //# sourceMappingURL=chunk-4AGZHXFR.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-LPGMDX6Q.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as s,u as o}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function I({tokenId:n}){let t=a(m()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=c(n),i=n,p=k?s:o;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
2
- //# sourceMappingURL=chunk-I6WJ63GD.mjs.map
1
+ import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-AYURCZHZ.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as s,u as o}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function I({tokenId:n}){let t=a(m()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=c(n),i=n,p=k?s:o;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
2
+ //# sourceMappingURL=chunk-4N34K4EN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-I6WJ63GD.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
2
- //# sourceMappingURL=chunk-IZ4B4B35.mjs.map
1
+ import{a as l}from"./chunk-4N34K4EN.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
2
+ //# sourceMappingURL=chunk-4PILLRHM.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-KX5J6EMC.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
2
- //# sourceMappingURL=chunk-54XYKDH7.mjs.map
1
+ import{a as o}from"./chunk-XDYKH6G4.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
2
+ //# sourceMappingURL=chunk-555CAG7Y.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-RWQNLK3I.mjs";import{a}from"./chunk-RRK6GTWZ.mjs";import{a as o}from"./chunk-IPMSVHGJ.mjs";import{a as g}from"./chunk-PSJI2G34.mjs";import{a as i}from"./chunk-2CG6PNPJ.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as d}from"./chunk-VJBLHJYB.mjs";import{a as p,b as e}from"./chunk-HDRB2QL6.mjs";import{rest as t}from"msw";import{setupServer as u}from"msw/node";var s=m=>(R,f,n)=>f(n.status(200),n.json(m)),k=[t.get(`${e.apiAddress}/dapp/config`,s(c)),t.get(`${e.apiAddress}/network/config`,s(i)),t.get(`https://${o.url}/socket.io/`,s(g)),t.get(`${e.apiAddress}/websocket/config`,s(o)),t.get(`${e.apiAddress}/accounts/${p}`,s(a)),t.get(`${e.apiAddress}/accounts/${r.address}`,s(r)),t.get(`${e.apiAddress}/blocks`,s(d))],P=u(...k);export{t as a,s as b,P as c};
2
- //# sourceMappingURL=chunk-2ONA7QPD.mjs.map
1
+ import{a as r}from"./chunk-RWQNLK3I.mjs";import{a as d}from"./chunk-VJBLHJYB.mjs";import{a}from"./chunk-RRK6GTWZ.mjs";import{a as o}from"./chunk-IPMSVHGJ.mjs";import{a as g}from"./chunk-PSJI2G34.mjs";import{a as i}from"./chunk-2CG6PNPJ.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as p,b as e}from"./chunk-HDRB2QL6.mjs";import{rest as t}from"msw";import{setupServer as u}from"msw/node";var s=m=>(R,f,n)=>f(n.status(200),n.json(m)),k=[t.get(`${e.apiAddress}/dapp/config`,s(c)),t.get(`${e.apiAddress}/network/config`,s(i)),t.get(`https://${o.url}/socket.io/`,s(g)),t.get(`${e.apiAddress}/websocket/config`,s(o)),t.get(`${e.apiAddress}/accounts/${p}`,s(a)),t.get(`${e.apiAddress}/accounts/${r.address}`,s(r)),t.get(`${e.apiAddress}/blocks`,s(d))],P=u(...k);export{t as a,s as b,P as c};
2
+ //# sourceMappingURL=chunk-5DP2QBUG.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-XVX7N3JK.mjs";import{a as d}from"./chunk-I3MK6KZJ.mjs";import{Address as f}from"@multiversx/sdk-core";import s from"bignumber.js";var c={tokenId:"",amount:""},l=r=>r.split("@").map((t,e)=>[2,3].includes(e)?t:m(t));function y(r){if(!r)return c;let i=r.startsWith("ESDTTransfer"),a=r.startsWith("ESDTNFTTransfer")&&r.includes("@"),u=r.startsWith("ESDTNFTBurn")&&r.includes("@");if(i){let[,n,t]=r.split("@");try{let e=Buffer.from(n,"hex").toString("ascii");if(!e)return c;let o=new s("0x"+t.replace("0x","")).toString(10);return{tokenId:e,amount:o}}catch(e){console.error("Error getting token from transaction data",e)}}if(a)try{let[,n,t,e,o]=l(r);if([n,t,e,o].every(g=>!!g)&&d(new f(o).toBech32()))return{tokenId:`${n}-${t}`,amount:new s(e,16).toString(10),collection:n,nonce:t,receiver:new f(o).toBech32()}}catch{}if(u)try{let[,n,t,e]=l(r);if([n,t,e].every(o=>!!o))return{tokenId:`${n}-${t}`,amount:new s(e,16).toString(10),collection:n,nonce:t}}catch{}return c}export{l as a,y as b};
2
- //# sourceMappingURL=chunk-5KVNYLOM.mjs.map
1
+ import{a as d}from"./chunk-XVX7N3JK.mjs";import{a as m}from"./chunk-I3MK6KZJ.mjs";import{Address as f}from"@multiversx/sdk-core";import s from"bignumber.js";var c={tokenId:"",amount:""},l=r=>r.split("@").map((t,e)=>[2,3].includes(e)?t:d(t));function y(r){if(!r)return c;let i=r.startsWith("ESDTTransfer"),a=r.startsWith("ESDTNFTTransfer")&&r.includes("@"),u=r.startsWith("ESDTNFTBurn")&&r.includes("@");if(i){let[,n,t]=r.split("@");try{let e=Buffer.from(n,"hex").toString("ascii");if(!e)return c;let o=new s("0x"+t.replace("0x","")).toString(10);return{tokenId:e,amount:o}}catch(e){console.error("Error getting token from transaction data",e)}}if(a)try{let[,n,t,e,o]=l(r);if([n,t,e,o].every(g=>!!g)&&m(new f(o).toBech32()))return{tokenId:`${n}-${t}`,amount:new s(e,16).toString(10),collection:n,nonce:t,receiver:new f(o).toBech32()}}catch{}if(u)try{let[,n,t,e]=l(r);if([n,t,e].every(o=>!!o))return{tokenId:`${n}-${t}`,amount:new s(e,16).toString(10),collection:n,nonce:t}}catch{}return c}export{l as a,y as b};
2
+ //# sourceMappingURL=chunk-6DWUEZO7.mjs.map
@@ -1,2 +1,2 @@
1
- import{s as e}from"./chunk-LPGMDX6Q.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
- //# sourceMappingURL=chunk-IWROXIQ5.mjs.map
1
+ import{s as e}from"./chunk-AYURCZHZ.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
+ //# sourceMappingURL=chunk-6V76WUHS.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-WJI5FXSZ.mjs";import{a as c}from"./chunk-SGQJOLH2.mjs";import{a}from"./chunk-YUFPUG5O.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
2
- //# sourceMappingURL=chunk-VRG2R5C7.mjs.map
1
+ import{a as l}from"./chunk-JNJ4L4QD.mjs";import{a as c}from"./chunk-WJTCBV34.mjs";import{a}from"./chunk-YUFPUG5O.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
2
+ //# sourceMappingURL=chunk-76A63VDO.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-N6QD4PLA.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
2
- //# sourceMappingURL=chunk-UXYMY3HG.mjs.map
1
+ import{a as e}from"./chunk-TURUYZA7.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
2
+ //# sourceMappingURL=chunk-7HNMIUES.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as A}from"./chunk-TMMUB3IK.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as f}from"./chunk-LY3MRREN.mjs";import{h as u}from"./chunk-CAA4VJRH.mjs";import{b as S}from"./chunk-3ZEUVYQF.mjs";import{a as y}from"./chunk-RNSBN5JT.mjs";import{a as g}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-5JYD7XMI.mjs";import{s as m}from"./chunk-LPGMDX6Q.mjs";import{b as T}from"./chunk-SAAOQW7P.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:a,onFail:t})=>{S({onSuccess:a,onFail:t})};this.send=async a=>{if(a.length===0)throw new Error("No transactions to send");try{if(!I(a))return await this.sendSignedTransactions(a);let t=await this.sendSignedBatchTransactions(a);if(!t.data||t.data.error)throw new Error(t.data?.error??"Failed to send transactions");return t.data.transactions}catch(t){throw t.response?.data?.message??t.message}};this.track=async(a,t={disableToasts:!1})=>{let n=this.sequentialToFlatArray(a).map(e=>({...e,status:e.status??"pending"})),o=g(n),s=y({transactions:n,transactionsDisplayInfo:t.transactionsDisplayInfo,status:o??"sent",sessionInformation:t.sessionInformation});if(t.disableToasts===!0)return s;let i=A(a);return f({toastId:s,totalDuration:i}),s};this.sendSignedTransactions=async a=>{let{apiAddress:t,apiTimeout:n}=T(m());return await Promise.all(a.map(async s=>{let i=await w.post(`${t}/transactions`,s.toPlainObject(),{timeout:Number(n)}),e=i.data.txHash;return{...s.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async a=>{let{address:t}=h(),{apiAddress:n,apiTimeout:o}=T(m());if(!t)return{error:"Invalid address provided. You need to be logged in to send transactions"};let s=this.buildBatchId(t),e={transactions:a.map(p=>p.map(c=>c.toPlainObject())),id:s},{data:l}=await w.post(`${n}/batch`,e,{timeout:Number(o)}),B=l.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return b({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...l,transactions:B}}};this.buildBatchId=a=>`${Date.now().toString()}${u}${a}`;this.sequentialToFlatArray=(a=[])=>this.getIsSequential(a)?a.flat():a;this.getIsSequential=a=>a?.every(t=>Array.isArray(t))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
2
- //# sourceMappingURL=chunk-3CKDOF3O.mjs.map
1
+ import{a as A}from"./chunk-VQ4GD4WE.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as f}from"./chunk-T3JST5WU.mjs";import{b as S}from"./chunk-3ZEUVYQF.mjs";import{a as y}from"./chunk-C25AGRYE.mjs";import{a as g}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-AIKQPMR3.mjs";import{h as u}from"./chunk-2IUBMLF4.mjs";import{s as m}from"./chunk-AYURCZHZ.mjs";import{b as T}from"./chunk-SAAOQW7P.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:a,onFail:t})=>{S({onSuccess:a,onFail:t})};this.send=async a=>{if(a.length===0)throw new Error("No transactions to send");try{if(!I(a))return await this.sendSignedTransactions(a);let t=await this.sendSignedBatchTransactions(a);if(!t.data||t.data.error)throw new Error(t.data?.error??"Failed to send transactions");return t.data.transactions}catch(t){throw t.response?.data?.message??t.message}};this.track=async(a,t={disableToasts:!1})=>{let n=this.sequentialToFlatArray(a).map(e=>({...e,status:e.status??"pending"})),o=g(n),s=y({transactions:n,transactionsDisplayInfo:t.transactionsDisplayInfo,status:o??"sent",sessionInformation:t.sessionInformation});if(t.disableToasts===!0)return s;let i=A(a);return f({toastId:s,totalDuration:i}),s};this.sendSignedTransactions=async a=>{let{apiAddress:t,apiTimeout:n}=T(m());return await Promise.all(a.map(async s=>{let i=await w.post(`${t}/transactions`,s.toPlainObject(),{timeout:Number(n)}),e=i.data.txHash;return{...s.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async a=>{let{address:t}=h(),{apiAddress:n,apiTimeout:o}=T(m());if(!t)return{error:"Invalid address provided. You need to be logged in to send transactions"};let s=this.buildBatchId(t),e={transactions:a.map(p=>p.map(c=>c.toPlainObject())),id:s},{data:l}=await w.post(`${n}/batch`,e,{timeout:Number(o)}),B=l.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return b({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...l,transactions:B}}};this.buildBatchId=a=>`${Date.now().toString()}${u}${a}`;this.sequentialToFlatArray=(a=[])=>this.getIsSequential(a)?a.flat():a;this.getIsSequential=a=>a?.every(t=>Array.isArray(t))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
2
+ //# sourceMappingURL=chunk-A3CEGIRB.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as o}from"./chunk-AYURCZHZ.mjs";import{a as t}from"./chunk-UERJ6AKK.mjs";function n(r=o()){return t(r)}export{n as a};
2
+ //# sourceMappingURL=chunk-AIKQPMR3.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as s,f as a}from"./chunk-UERJ6AKK.mjs";import{f as p}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-JN5CTLWW.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as c,b as g}from"./chunk-WZGG2YKQ.mjs";import{a as m,b as f}from"./chunk-M7BM6QPB.mjs";import{a as T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as l}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=c,e.loginInfo=m,e.transactions=d,e.toasts=S};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=a(e),n=p(e),{address:i,publicKey:M}=s(e);if(i&&M!==new l(i).toHex()&&A(e),!t)return;if(n==null){w(H());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var z=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...n)=>({network:x(...n),account:g(...n),loginInfo:f(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:O(e)})));return t.subscribe(z),t},r,D=e=>{r=e},o=()=>(r||D(W(()=>new v)),r),pe=(e=k)=>{let t=W(e);return D(t),t},le=()=>o().getState();var me=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),fe=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{me as a,fe as b,Se as c,ue as d,de as e,Le as f,xe as g,E as h,b as i,A as j,H as k,w as l,C as m,z as n,W as o,D as p,o as q,pe as r,le as s};
2
- //# sourceMappingURL=chunk-LPGMDX6Q.mjs.map
1
+ import{b as s,f as a}from"./chunk-UERJ6AKK.mjs";import{f as p}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-XFP6N66W.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as c,b as g}from"./chunk-WZGG2YKQ.mjs";import{a as m,b as f}from"./chunk-M7BM6QPB.mjs";import{a as T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as l}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=c,e.loginInfo=m,e.transactions=d,e.toasts=S};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=a(e),n=p(e),{address:i,publicKey:M}=s(e);if(i&&M!==new l(i).toHex()&&A(e),!t)return;if(n==null){w(H());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var z=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...n)=>({network:x(...n),account:g(...n),loginInfo:f(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:O(e)})));return t.subscribe(z),t},r,D=e=>{r=e},o=()=>(r||D(W(()=>new v)),r),pe=(e=k)=>{let t=W(e);return D(t),t},le=()=>o().getState();var me=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),fe=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{me as a,fe as b,Se as c,ue as d,de as e,Le as f,xe as g,E as h,b as i,A as j,H as k,w as l,C as m,z as n,W as o,D as p,o as q,pe as r,le as s};
2
+ //# sourceMappingURL=chunk-AYURCZHZ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-EAH7XGM3.mjs";var n=({parts:r,decodeMethod:d,identifier:o,initialDecodedParts:e})=>d==="smart"?t({parts:r,decodedParts:e,identifier:o}):e;export{n as a};
2
+ //# sourceMappingURL=chunk-BHAHZQVO.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/utils/transactions/getDecodedDataField/helpers/getDecodedParts.ts"],
4
+ "sourcesContent": ["import { DecodeMethodEnum } from 'types/serverTransactions.types';\nimport { getSmartDecodedParts } from './getSmartDecodedParts';\n\ninterface IGetDecodedParts {\n parts: string[];\n decodeMethod: DecodeMethodEnum;\n initialDecodedParts: string[];\n identifier?: string;\n}\n\nexport const getDecodedParts = ({\n parts,\n decodeMethod,\n identifier,\n initialDecodedParts\n}: IGetDecodedParts) => {\n if (decodeMethod === DecodeMethodEnum.smart) {\n return getSmartDecodedParts({\n parts,\n decodedParts: initialDecodedParts,\n identifier\n });\n }\n\n return initialDecodedParts;\n};\n"],
5
+ "mappings": "yCAUO,IAAMA,EAAkB,CAAC,CAC9B,MAAAC,EACA,aAAAC,EACA,WAAAC,EACA,oBAAAC,CACF,IACMF,YACKG,EAAqB,CAC1B,MAAAJ,EACA,aAAcG,EACd,WAAAD,CACF,CAAC,EAGIC",
6
+ "names": ["getDecodedParts", "parts", "decodeMethod", "identifier", "initialDecodedParts", "getSmartDecodedParts"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-5JYD7XMI.mjs";import{a as f}from"./chunk-ARAO6B2F.mjs";import{a as g}from"./chunk-IWROXIQ5.mjs";import{b as a}from"./chunk-LPGMDX6Q.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
2
- //# sourceMappingURL=chunk-DJ2HTZOV.mjs.map
1
+ import{a as u}from"./chunk-AIKQPMR3.mjs";import{a as f}from"./chunk-UGUQSBY5.mjs";import{a as g}from"./chunk-6V76WUHS.mjs";import{b as a}from"./chunk-AYURCZHZ.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
2
+ //# sourceMappingURL=chunk-BUHHNIJJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-LPGMDX6Q.mjs";var g=({transactions:s,transactionsDisplayInfo:a,status:e,sessionInformation:t})=>{let o=Date.now().toString();return i().setState(({transactions:n})=>{n[o]={transactions:s,status:e,transactionsDisplayInfo:a,interpretedTransactions:{},sessionInformation:t}},!1,"createTransactionsSession"),o},T=({sessionId:s,status:a,errorMessage:e})=>{i().setState(({transactions:t})=>{t[s].status=a,t[s].errorMessage=e},!1,"updateTransactionsSession")},y=({sessionId:s,transaction:a})=>{let e=null;return i().setState(({transactions:t})=>{let o=t[s]?.transactions;if(o!=null){t[s].transactions=o.map(r=>r.hash===a.hash?{...r,...a??{}}:r);let n=u([...t[s].transactions]);n&&(T({sessionId:s,status:n}),e=n)}},!1,"updateTransactionStatus"),e},h=()=>{i().setState(({transactions:s,toasts:a})=>{let t=Object.keys(s).filter(n=>{let r=s[n];if(!r)return!1;let{status:c}=r;return!(c==="pending"||c==="signed"||c==="sent")});t.forEach(n=>{delete s[n]});let o=a.transactionToasts.filter(n=>!t.includes(n.toastId));a.transactionToasts=o},!1,"clearCompletedTransactions")};export{g as a,T as b,y as c,h as d};
2
- //# sourceMappingURL=chunk-RNSBN5JT.mjs.map
1
+ import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-AYURCZHZ.mjs";var g=({transactions:s,transactionsDisplayInfo:a,status:e,sessionInformation:t})=>{let o=Date.now().toString();return i().setState(({transactions:n})=>{n[o]={transactions:s,status:e,transactionsDisplayInfo:a,interpretedTransactions:{},sessionInformation:t}},!1,"createTransactionsSession"),o},T=({sessionId:s,status:a,errorMessage:e})=>{i().setState(({transactions:t})=>{t[s].status=a,t[s].errorMessage=e},!1,"updateTransactionsSession")},y=({sessionId:s,transaction:a})=>{let e=null;return i().setState(({transactions:t})=>{let o=t[s]?.transactions;if(o!=null){t[s].transactions=o.map(r=>r.hash===a.hash?{...r,...a??{}}:r);let n=u([...t[s].transactions]);n&&(T({sessionId:s,status:n}),e=n)}},!1,"updateTransactionStatus"),e},h=()=>{i().setState(({transactions:s,toasts:a})=>{let t=Object.keys(s).filter(n=>{let r=s[n];if(!r)return!1;let{status:c}=r;return!(c==="pending"||c==="signed"||c==="sent")});t.forEach(n=>{delete s[n]});let o=a.transactionToasts.filter(n=>!t.includes(n.toastId));a.transactionToasts=o},!1,"clearCompletedTransactions")};export{g as a,T as b,y as c,h as d};
2
+ //# sourceMappingURL=chunk-C25AGRYE.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-7ONKP4ZG.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
2
- //# sourceMappingURL=chunk-RJOP7SCI.mjs.map
1
+ import{a as e}from"./chunk-4AGZHXFR.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
2
+ //# sourceMappingURL=chunk-CIB3ITZR.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as o}from"./chunk-AYURCZHZ.mjs";import{a as t}from"./chunk-SAAOQW7P.mjs";function f(r=o()){return t(r)}export{f as a};
2
+ //# sourceMappingURL=chunk-CUS6AHOH.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as l}from"./chunk-DZ2BIDRW.mjs";import{a as s}from"./chunk-EAH7XGM3.mjs";import{a}from"./chunk-OOVV574D.mjs";var W=({parts:n,decodeMethod:i,decodedData:t,identifier:c})=>{let d=n.map((e,o)=>{if(n.length>=2&&(o===0&&e.length<64||o===1&&!n[0]))return/[^a-z0-9]/gi.test(e)?a({data:e,decodeMethod:i}):e;let r=l(e);return r?.length&&(t.validationWarnings=Array.from(new Set([...t.validationWarnings,...r]))),a({data:e,decodeMethod:i})});return i==="smart"?s({parts:n,decodedParts:d,identifier:c}):d};export{W as a};
2
+ //# sourceMappingURL=chunk-DSVSX4ZT.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.ts"],
4
+ "sourcesContent": ["import {\n DecodeMethodEnum,\n DecodedDisplayType\n} from 'types/serverTransactions.types';\nimport { decodeByMethod } from './decodeByMethod';\nimport { getHexValidationWarnings } from './getHexValidationWarnings';\nimport { getSmartDecodedParts } from './getSmartDecodedParts';\n\ninterface IGetDisplayValueAndValidationWarnings {\n parts: string[];\n decodeMethod: DecodeMethodEnum;\n decodedData: DecodedDisplayType;\n identifier?: string;\n}\n\nexport const getDisplayValueAndValidationWarnings = ({\n parts,\n decodeMethod,\n decodedData,\n identifier\n}: IGetDisplayValueAndValidationWarnings) => {\n const initialDecodedParts = parts.map((part, index) => {\n if (\n parts.length >= 2 &&\n ((index === 0 && part.length < 64) || (index === 1 && !parts[0]))\n ) {\n const encodedDisplayValue = /[^a-z0-9]/gi.test(part);\n\n if (encodedDisplayValue) {\n return decodeByMethod({ data: part, decodeMethod });\n }\n\n return part;\n }\n\n const hexValidationWarnings = getHexValidationWarnings(part);\n\n if (hexValidationWarnings?.length) {\n decodedData.validationWarnings = Array.from(\n new Set([...decodedData.validationWarnings, ...hexValidationWarnings])\n );\n }\n\n return decodeByMethod({ data: part, decodeMethod });\n });\n\n const decodedParts =\n decodeMethod === DecodeMethodEnum.smart\n ? getSmartDecodedParts({\n parts,\n decodedParts: initialDecodedParts,\n identifier\n })\n : initialDecodedParts;\n\n return decodedParts;\n};\n"],
5
+ "mappings": "sHAeO,IAAMA,EAAuC,CAAC,CACnD,MAAAC,EACA,aAAAC,EACA,YAAAC,EACA,WAAAC,CACF,IAA6C,CAC3C,IAAMC,EAAsBJ,EAAM,IAAI,CAACK,EAAMC,IAAU,CACrD,GACEN,EAAM,QAAU,IACdM,IAAU,GAAKD,EAAK,OAAS,IAAQC,IAAU,GAAK,CAACN,EAAM,CAAC,GAI9D,MAF4B,cAAc,KAAKK,CAAI,EAG1CE,EAAe,CAAE,KAAMF,EAAM,aAAAJ,CAAa,CAAC,EAG7CI,EAGT,IAAMG,EAAwBC,EAAyBJ,CAAI,EAE3D,OAAIG,GAAuB,SACzBN,EAAY,mBAAqB,MAAM,KACrC,IAAI,IAAI,CAAC,GAAGA,EAAY,mBAAoB,GAAGM,CAAqB,CAAC,CACvE,GAGKD,EAAe,CAAE,KAAMF,EAAM,aAAAJ,CAAa,CAAC,CACpD,CAAC,EAWD,OAREA,YACIS,EAAqB,CACnB,MAAAV,EACA,aAAcI,EACd,WAAAD,CACF,CAAC,EACDC,CAGR",
6
+ "names": ["getDisplayValueAndValidationWarnings", "parts", "decodeMethod", "decodedData", "identifier", "initialDecodedParts", "part", "index", "decodeByMethod", "hexValidationWarnings", "getHexValidationWarnings", "getSmartDecodedParts"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as e,b as i}from"./chunk-WRLZ5ICK.mjs";var o=n=>{let a=[];return n&&!e(n)&&a.push(`Invalid Hex characters on argument @${n}`),n&&!i(n)&&a.push(`Odd number of Hex characters on argument @${n}`),a};export{o as a};
2
+ //# sourceMappingURL=chunk-DZ2BIDRW.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.ts"],
4
+ "sourcesContent": ["import { isHexValidCharacters, isHexValidLength } from 'utils/validation/hex';\n\nexport const getHexValidationWarnings = (str: string) => {\n const warnings = [];\n\n if (str && !isHexValidCharacters(str)) {\n warnings.push(`Invalid Hex characters on argument @${str}`);\n }\n\n if (str && !isHexValidLength(str)) {\n warnings.push(`Odd number of Hex characters on argument @${str}`);\n }\n\n return warnings;\n};\n"],
5
+ "mappings": "gDAEO,IAAMA,EAA4BC,GAAgB,CACvD,IAAMC,EAAW,CAAC,EAElB,OAAID,GAAO,CAACE,EAAqBF,CAAG,GAClCC,EAAS,KAAK,uCAAuCD,CAAG,EAAE,EAGxDA,GAAO,CAACG,EAAiBH,CAAG,GAC9BC,EAAS,KAAK,6CAA6CD,CAAG,EAAE,EAG3DC,CACT",
6
+ "names": ["getHexValidationWarnings", "str", "warnings", "isHexValidCharacters", "isHexValidLength"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-OOVV574D.mjs";var f=({parts:e,decodedParts:d,identifier:o})=>{let r=[...d];if(e[0]==="ESDTNFTTransfer"&&e[2]&&(r[2]=t({data:e[2],decodeMethod:"decimal"})),o==="ESDTNFTTransfer"&&e[1]){let a=Buffer.from(String(e[1]),"base64");r[1]=t({data:a.toString("hex"),decodeMethod:"decimal"})}return r};export{f as a};
2
+ //# sourceMappingURL=chunk-EAH7XGM3.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.ts"],
4
+ "sourcesContent": ["import { TransactionTypesEnum } from 'types/enums.types';\nimport { DecodeMethodEnum } from 'types/serverTransactions.types';\nimport { decodeByMethod } from './decodeByMethod';\n\ninterface ISmartDecodedParts {\n parts: string[];\n decodedParts: string[];\n identifier?: string;\n}\n\nexport const getSmartDecodedParts = ({\n parts,\n decodedParts,\n identifier\n}: ISmartDecodedParts) => {\n const smartDecodedParts = [...decodedParts];\n\n if (parts[0] === TransactionTypesEnum.ESDTNFTTransfer && parts[2]) {\n smartDecodedParts[2] = decodeByMethod({\n data: parts[2],\n decodeMethod: DecodeMethodEnum.decimal\n });\n }\n\n if (identifier === TransactionTypesEnum.ESDTNFTTransfer && parts[1]) {\n const base64Buffer = Buffer.from(String(parts[1]), 'base64');\n smartDecodedParts[1] = decodeByMethod({\n data: base64Buffer.toString('hex'),\n decodeMethod: DecodeMethodEnum.decimal\n });\n }\n\n return smartDecodedParts;\n};\n"],
5
+ "mappings": "yCAUO,IAAMA,EAAuB,CAAC,CACnC,MAAAC,EACA,aAAAC,EACA,WAAAC,CACF,IAA0B,CACxB,IAAMC,EAAoB,CAAC,GAAGF,CAAY,EAS1C,GAPID,EAAM,CAAC,uBAA8CA,EAAM,CAAC,IAC9DG,EAAkB,CAAC,EAAIC,EAAe,CACpC,KAAMJ,EAAM,CAAC,EACb,sBACF,CAAC,GAGCE,uBAAuDF,EAAM,CAAC,EAAG,CACnE,IAAMK,EAAe,OAAO,KAAK,OAAOL,EAAM,CAAC,CAAC,EAAG,QAAQ,EAC3DG,EAAkB,CAAC,EAAIC,EAAe,CACpC,KAAMC,EAAa,SAAS,KAAK,EACjC,sBACF,CAAC,CACH,CAEA,OAAOF,CACT",
6
+ "names": ["getSmartDecodedParts", "parts", "decodedParts", "identifier", "smartDecodedParts", "decodeByMethod", "base64Buffer"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-KX5J6EMC.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
- //# sourceMappingURL=chunk-6PDGQGIS.mjs.map
1
+ import{a as t}from"./chunk-XDYKH6G4.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
+ //# sourceMappingURL=chunk-EEWLVNMR.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-JV7AJLRI.mjs";import e from"lodash.isempty";var p=async({transactionsSessions:t,address:i,explorerAddress:a,egldLabel:o})=>{if(e(t))return[];let n=s(t);return r({transactions:n,address:i,explorerAddress:a,egldLabel:o})};export{p as a};
2
- //# sourceMappingURL=chunk-AXCK3KRV.mjs.map
1
+ import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-XQUUCE53.mjs";import e from"lodash.isempty";var p=async({transactionsSessions:t,address:i,explorerAddress:a,egldLabel:o})=>{if(e(t))return[];let n=s(t);return r({transactions:n,address:i,explorerAddress:a,egldLabel:o})};export{p as a};
2
+ //# sourceMappingURL=chunk-END5ZJQH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-DG77T3NS.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
2
- //# sourceMappingURL=chunk-I4HR64FU.mjs.map
1
+ import{a as e}from"./chunk-PWXUYZF5.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
2
+ //# sourceMappingURL=chunk-F4RI663J.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-RJOP7SCI.mjs";import{a as e}from"./chunk-OF3XH6ZU.mjs";import{a as i}from"./chunk-CDQ2BNUD.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
2
- //# sourceMappingURL=chunk-Y7QM3LPW.mjs.map
1
+ import{a as s}from"./chunk-CIB3ITZR.mjs";import{a as e}from"./chunk-YJIAAC7S.mjs";import{a as i}from"./chunk-CDQ2BNUD.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
2
+ //# sourceMappingURL=chunk-GVTM4RFC.mjs.map
@@ -1,2 +1,2 @@
1
- import{e as o,f as a,g as i,h as r}from"./chunk-TQA3JDNV.mjs";import{s as c}from"./chunk-LPGMDX6Q.mjs";function b(){let t=c(),l=r(t),u=i(t),T=a(t),d=o(t),e=Object.keys(d)?.length>0,n=!e&&Object.keys(l)?.length>0,s=!e&&!n&&Object.keys(u)?.length>0,f=!e&&!n&&!s&&Object.keys(T).length>0;return{pending:e,timedOut:n,fail:s,success:f}}export{b as a};
2
- //# sourceMappingURL=chunk-YFXATY46.mjs.map
1
+ import{e as o,f as a,g as i,h as r}from"./chunk-TQA3JDNV.mjs";import{s as c}from"./chunk-AYURCZHZ.mjs";function b(){let t=c(),l=r(t),u=i(t),T=a(t),d=o(t),e=Object.keys(d)?.length>0,n=!e&&Object.keys(l)?.length>0,s=!e&&!n&&Object.keys(u)?.length>0,f=!e&&!n&&!s&&Object.keys(T).length>0;return{pending:e,timedOut:n,fail:s,success:f}}export{b as a};
2
+ //# sourceMappingURL=chunk-H3DYNUJU.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-IWROXIQ5.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
2
- //# sourceMappingURL=chunk-BGUYSNNW.mjs.map
1
+ import{a}from"./chunk-6V76WUHS.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
2
+ //# sourceMappingURL=chunk-IBM2AHR2.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-VDMJZZU4.mjs";import{b as r}from"./chunk-PLTUKRYU.mjs";import{j as n}from"./chunk-65L5EBBL.mjs";var y=({toastId:a,address:e,status:s,transactions:t,transactionsDisplayInfo:i,startTime:c,endTime:T})=>{let m=n(s),p=t[0]?.action?.name,f=r({address:e,sender:t[0]?.interactor??"",toastId:a,status:s,transactionsDisplayInfo:i,txActionName:p}),u=o(t);return{toastDataState:f,processedTransactionsStatus:u,transactionProgressState:m?{endTime:T,startTime:c}:null,toastId:a,transactions:t}};export{y as a};
2
- //# sourceMappingURL=chunk-FVFVOSQ4.mjs.map
1
+ import{b as r}from"./chunk-PLTUKRYU.mjs";import{a as o}from"./chunk-VDMJZZU4.mjs";import{j as n}from"./chunk-65L5EBBL.mjs";var y=({toastId:a,address:e,status:s,transactions:t,transactionsDisplayInfo:i,startTime:c,endTime:T})=>{let m=n(s),p=t[0]?.action?.name,f=r({address:e,sender:t[0]?.interactor??"",toastId:a,status:s,transactionsDisplayInfo:i,txActionName:p}),u=o(t);return{toastDataState:f,processedTransactionsStatus:u,transactionProgressState:m?{endTime:T,startTime:c}:null,toastId:a,transactions:t}};export{y as a};
2
+ //# sourceMappingURL=chunk-J2SRCAF3.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-ZQOIMST2.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{s as n}from"./chunk-AYURCZHZ.mjs";async function f(){let t=s(n());if(Object.keys(t).length>0)for(let[e,{transactions:c}]of Object.entries(t))await o({sessionId:e,transactionBatch:c})}export{f as a};
2
+ //# sourceMappingURL=chunk-J5EJIWY3.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-SGQJOLH2.mjs";import{a as f}from"./chunk-FRDR4A7Z.mjs";import{t as c}from"./chunk-LY3MRREN.mjs";import{s as n}from"./chunk-LPGMDX6Q.mjs";import{g as a}from"./chunk-UERJ6AKK.mjs";import{e as l}from"./chunk-VNLGNNIL.mjs";import{HWProvider as m}from"@multiversx/sdk-hw-provider";async function A(u){let v=g(),d=u?.shouldInitProvider||!v,o=l(n()),t=a(n()),r=c(),i=new m,I=async()=>{let e=o?.index!=null;if(r instanceof m&&r.isInitialized())return e&&await r.setAddressIndex(o.index),r;if(d&&!await i.init())throw new Error("Failed to initialize Ledger Provider");return e&&await i.setAddressIndex(o.index),i};try{if(!d&&t)return{ledgerProvider:i,ledgerConfig:{version:t.version,dataEnabled:t.hasContractDataEnabled}};let e=await I(),s=await f(e);return{ledgerProvider:e,ledgerConfig:s}}catch(e){throw console.error("Could not initialize ledger app",e),e}}export{A as a};
2
- //# sourceMappingURL=chunk-WJI5FXSZ.mjs.map
1
+ import{a as g}from"./chunk-WJTCBV34.mjs";import{a as f}from"./chunk-FRDR4A7Z.mjs";import{t as c}from"./chunk-T3JST5WU.mjs";import{s as n}from"./chunk-AYURCZHZ.mjs";import{g as a}from"./chunk-UERJ6AKK.mjs";import{e as l}from"./chunk-VNLGNNIL.mjs";import{HWProvider as m}from"@multiversx/sdk-hw-provider";async function A(u){let v=g(),d=u?.shouldInitProvider||!v,o=l(n()),t=a(n()),r=c(),i=new m,I=async()=>{let e=o?.index!=null;if(r instanceof m&&r.isInitialized())return e&&await r.setAddressIndex(o.index),r;if(d&&!await i.init())throw new Error("Failed to initialize Ledger Provider");return e&&await i.setAddressIndex(o.index),i};try{if(!d&&t)return{ledgerProvider:i,ledgerConfig:{version:t.version,dataEnabled:t.hasContractDataEnabled}};let e=await I(),s=await f(e);return{ledgerProvider:e,ledgerConfig:s}}catch(e){throw console.error("Could not initialize ledger app",e),e}}export{A as a};
2
+ //# sourceMappingURL=chunk-JNJ4L4QD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-HOJ7JMTW.mjs";import{d as m,e as l}from"./chunk-NZWPA245.mjs";import{q as a}from"./chunk-LPGMDX6Q.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var A=3e3,g=3,w=500,E=1e3,f="batchUpdated",p="connect",N="connect_error",b="disconnect";async function M(i){let{apiAddress:k,websocketUrl:I}=r(a().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let o=null,n=null,c=e=>{t.status=e,u(e)},d=e=>{o&&clearTimeout(o),o=setTimeout(()=>{m(e)},E)},C=e=>{n&&clearTimeout(n),n=setTimeout(()=>{l(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(b),e.close(),console.log("Websocket disconnected.")),c("not_initialized"),t.instance=null,o&&clearTimeout(o),n&&clearTimeout(n)},S=async()=>{c("pending");let e=I??await T(k);if(!e){c("not_initialized");return}t.instance=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:g,reconnectionDelay:w,timeout:A,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),c("completed")}),t.instance.on(N,s=>{console.warn("Websocket connect error: ",s.message)}),t.instance.on(b,s=>{console.warn("Websocket disconnected: ",s),c("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await S(),{closeConnection:W}}export{M as a};
2
- //# sourceMappingURL=chunk-KXUILKL2.mjs.map
1
+ import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-ZP44CDGG.mjs";import{d as m,e as l}from"./chunk-MUMHVEIZ.mjs";import{q as a}from"./chunk-AYURCZHZ.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var A=3e3,g=3,w=500,E=1e3,f="batchUpdated",p="connect",N="connect_error",b="disconnect";async function M(i){let{apiAddress:k,websocketUrl:I}=r(a().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let o=null,n=null,c=e=>{t.status=e,u(e)},d=e=>{o&&clearTimeout(o),o=setTimeout(()=>{m(e)},E)},C=e=>{n&&clearTimeout(n),n=setTimeout(()=>{l(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(b),e.close(),console.log("Websocket disconnected.")),c("not_initialized"),t.instance=null,o&&clearTimeout(o),n&&clearTimeout(n)},S=async()=>{c("pending");let e=I??await T(k);if(!e){c("not_initialized");return}t.instance=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:g,reconnectionDelay:w,timeout:A,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),c("completed")}),t.instance.on(N,s=>{console.warn("Websocket connect error: ",s.message)}),t.instance.on(b,s=>{console.warn("Websocket disconnected: ",s),c("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await S(),{closeConnection:W}}export{M as a};
2
+ //# sourceMappingURL=chunk-JNUF7URZ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-U6OAEGT3.mjs";function S(e){return t()(e)}export{S as a};
2
+ //# sourceMappingURL=chunk-JQDWP4DW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-7VNNDJ7P.mjs";import{s as n}from"./chunk-LY3MRREN.mjs";import{s as m}from"./chunk-LPGMDX6Q.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-PLUWBWJ2.mjs";import{a as f}from"./chunk-I4HR64FU.mjs";async function u(){let i=s(),o=f()||i?e.webview:t(m());if(!o)return;let r=await p.create({type:o});if(!r)throw new Error("Provider not found");(i||o===e.webview&&r.isInitialized())&&await r.login(),n(r)}export{u as a};
2
- //# sourceMappingURL=chunk-S5YFFC7A.mjs.map
1
+ import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-463K27BJ.mjs";import{s as n}from"./chunk-T3JST5WU.mjs";import{s as m}from"./chunk-AYURCZHZ.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-PLUWBWJ2.mjs";import{a as f}from"./chunk-F4RI663J.mjs";async function u(){let i=s(),o=f()||i?e.webview:t(m());if(!o)return;let r=await p.create({type:o});if(!r)throw new Error("Provider not found");(i||o===e.webview&&r.isInitialized())&&await r.login(),n(r)}export{u as a};
2
+ //# sourceMappingURL=chunk-JW2RVDMU.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-KIOUFP5Q.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-BQP6NPQM.mjs";import{b as r}from"./chunk-LQ6WESDL.mjs";import{s as i}from"./chunk-LPGMDX6Q.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=o(i());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
- //# sourceMappingURL=chunk-CAAMS3C5.mjs.map
1
+ import{a as n}from"./chunk-PETVWH5Z.mjs";import{b as r}from"./chunk-MZEDBAQE.mjs";import{s as i}from"./chunk-AYURCZHZ.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=o(i());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
+ //# sourceMappingURL=chunk-KIQFGAFN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-KX5J6EMC.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
- //# sourceMappingURL=chunk-5AZZG5KG.mjs.map
1
+ import{a as e}from"./chunk-XDYKH6G4.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
+ //# sourceMappingURL=chunk-KJCSIEAC.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as k}from"./chunk-IZ4B4B35.mjs";import{a as T}from"./chunk-XCVEFI4B.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as m}from"./chunk-DNFWIYZH.mjs";import{a as l}from"./chunk-U3UMCTU6.mjs";import{c as d}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-7CELSV4S.mjs";var p=class{static async processTransactions({address:u,egldLabel:v,explorerAddress:g,transactions:L}){let f=L.map(e=>m({address:u,explorerAddress:g,transaction:e}));return await Promise.all(f.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),a=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:h,receiverLockedAccount:D}=await k({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=T({transaction:e}),x=r?.token.type==="MetaESDT"?void 0:r?.badgeText,c=l.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??d,digits:2}),y={badge:x??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?v:"",link:n?.tokenExplorerLink??r?.tokenExplorerLink,linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:c.valueDecimal,valueInteger:c.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!D,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:a??"",description:`${a??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!h,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:y}}))}};export{p as a};
2
- //# sourceMappingURL=chunk-4AUL3FHT.mjs.map
1
+ import{a as k}from"./chunk-4PILLRHM.mjs";import{a as T}from"./chunk-XCVEFI4B.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as m}from"./chunk-UNBTFF6K.mjs";import{a as l}from"./chunk-U3UMCTU6.mjs";import{c as d}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-7CELSV4S.mjs";var p=class{static async processTransactions({address:u,egldLabel:v,explorerAddress:g,transactions:L}){let f=L.map(e=>m({address:u,explorerAddress:g,transaction:e}));return await Promise.all(f.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),a=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:h,receiverLockedAccount:D}=await k({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=T({transaction:e}),x=r?.token.type==="MetaESDT"?void 0:r?.badgeText,c=l.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??d,digits:2}),y={badge:x??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?v:"",link:n?.tokenExplorerLink??r?.tokenExplorerLink,linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:c.valueDecimal,valueInteger:c.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!D,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:a??"",description:`${a??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!h,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:y}}))}};export{p as a};
2
+ //# sourceMappingURL=chunk-LC3EPABR.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as c}from"./chunk-LPGMDX6Q.mjs";import{a as o}from"./chunk-JMC7CMTU.mjs";var r=e=>{c().setState(({account:t})=>{let s=t.address===e.address;t.accounts={[t.address]:s?e:o}},!1,"setAccount")},u=e=>c().setState(({account:t})=>{t.ledgerAccount=e},!1,"setLedgerAccount"),p=e=>c().setState(({account:t})=>{t.walletConnectAccount=e},!1,"setWalletConnectAccount"),l=e=>c().setState(({account:t})=>{t.websocketEvent={timestamp:Date.now(),message:e}},!1,"setWebsocketEvent"),m=e=>c().setState(({account:t})=>{t.websocketBatchEvent={timestamp:Date.now(),data:e}},!1,"setWebsocketBatchEvent"),A=e=>{c().setState(({account:t})=>{t.accounts[t.address].nonce=e},!1,"setAccountNonce")};export{r as a,u as b,p as c,l as d,m as e,A as f};
2
- //# sourceMappingURL=chunk-NZWPA245.mjs.map
1
+ import{q as c}from"./chunk-AYURCZHZ.mjs";import{a as o}from"./chunk-JMC7CMTU.mjs";var r=e=>{c().setState(({account:t})=>{let s=t.address===e.address;t.accounts={[t.address]:s?e:o}},!1,"setAccount")},u=e=>c().setState(({account:t})=>{t.ledgerAccount=e},!1,"setLedgerAccount"),p=e=>c().setState(({account:t})=>{t.walletConnectAccount=e},!1,"setWalletConnectAccount"),l=e=>c().setState(({account:t})=>{t.websocketEvent={timestamp:Date.now(),message:e}},!1,"setWebsocketEvent"),m=e=>c().setState(({account:t})=>{t.websocketBatchEvent={timestamp:Date.now(),data:e}},!1,"setWebsocketBatchEvent"),A=e=>{c().setState(({account:t})=>{t.accounts[t.address].nonce=e},!1,"setAccountNonce")};export{r as a,u as b,p as c,l as d,m as e,A as f};
2
+ //# sourceMappingURL=chunk-MUMHVEIZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-LPGMDX6Q.mjs";import{a as c}from"./chunk-SQVKVA7X.mjs";import{a as i}from"./chunk-ULUZWP2P.mjs";var e=o=>u().setState(({network:r})=>{r.network={...r.network,...o}},!1,"initializeNetworkConfig");var y=async({customNetworkConfig:o={},environment:r})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=r&&r in i,p=n?i[r]:{},s={...c,...p,...o},t={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await w(a),f=t.roundDuration?null:await l(a);if(f!=null&&(t.roundDuration=f.erd_round_duration),m!=null){let k={...t,...m,...o};return e(k),k}}return e(t),t};export{y as a,e as b};
2
- //# sourceMappingURL=chunk-LQ6WESDL.mjs.map
1
+ import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-AYURCZHZ.mjs";import{a as c}from"./chunk-SQVKVA7X.mjs";import{a as i}from"./chunk-ULUZWP2P.mjs";var e=o=>u().setState(({network:r})=>{r.network={...r.network,...o}},!1,"initializeNetworkConfig");var y=async({customNetworkConfig:o={},environment:r})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=r&&r in i,p=n?i[r]:{},s={...c,...p,...o},t={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await w(a),f=t.roundDuration?null:await l(a);if(f!=null&&(t.roundDuration=f.erd_round_duration),m!=null){let k={...t,...m,...o};return e(k),k}}return e(t),t};export{y as a,e as b};
2
+ //# sourceMappingURL=chunk-MZEDBAQE.mjs.map
@@ -0,0 +1,6 @@
1
+ import{m as D}from"./chunk-2IUBMLF4.mjs";import{a as f}from"./chunk-DSVSX4ZT.mjs";import{a as d}from"./chunk-WJQVMI33.mjs";import{a as m}from"./chunk-BHAHZQVO.mjs";import{a as s}from"./chunk-OOVV574D.mjs";var F=({data:t,decodeMethod:e,identifier:r,highlight:n=null})=>{let i={displayValue:"",validationWarnings:[],highlight:n};if(t.length>36e3&&["decimal","smart"].includes(e))return{...i,displayValue:t};let c=t.includes("@"),p=t.includes(`
2
+ `);if(!c&&!p)return{...i,displayValue:s({data:t,decodeMethod:e}),highlight:n&&s({data:n,decodeMethod:e})};if(c){let a=t.split("@"),l=f({parts:a,decodeMethod:e,identifier:r,decodedData:i}),o=n?d({data:n,identifier:r,decodeMethod:e,delimiter:"@"}):null;return{...i,displayValue:l.join("@"),highlight:o}}if(p){let a=t.split(`
3
+ `),l=a.map(u=>e==="raw"?u:s({data:Buffer.from(u,"base64").toString("hex"),decodeMethod:e})),o=m({parts:a,initialDecodedParts:l,identifier:r,decodeMethod:e}),y=n?d({data:n,identifier:r,decodeMethod:e,delimiter:`
4
+ `}):null;return{...i,displayValue:o.join(`
5
+ `),highlight:y}}return i};export{F as a};
6
+ //# sourceMappingURL=chunk-N342XMFH.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/utils/transactions/getDecodedDataField/getDecodedDataField.ts"],
4
+ "sourcesContent": ["import { MAX_DECODE_TX_DATA_LENGTH } from 'constants/transactions.constants';\nimport {\n DecodeMethodEnum,\n DecodedDisplayType\n} from 'types/serverTransactions.types';\nimport { decodeByMethod } from './helpers/decodeByMethod';\nimport { decodeHighlight } from './helpers/decodeHighlight';\nimport { getDecodedParts } from './helpers/getDecodedParts';\nimport { getDisplayValueAndValidationWarnings } from './helpers/getDisplayValueAndValidationWarnings';\n\ninterface IDecodedDataField {\n data: string;\n decodeMethod: DecodeMethodEnum;\n identifier?: string;\n highlight?: string | null;\n}\n\nexport const getDecodedDataField = ({\n data,\n decodeMethod,\n identifier,\n highlight = null\n}: IDecodedDataField): DecodedDisplayType => {\n const decodedData: DecodedDisplayType = {\n displayValue: '',\n validationWarnings: [],\n highlight\n };\n\n if (\n data.length > MAX_DECODE_TX_DATA_LENGTH &&\n [DecodeMethodEnum.decimal, DecodeMethodEnum.smart].includes(decodeMethod)\n ) {\n return {\n ...decodedData,\n displayValue: data\n };\n }\n\n const hasAt = data.includes('@');\n const hasNewLine = data.includes('\\n');\n\n if (!hasAt && !hasNewLine) {\n return {\n ...decodedData,\n displayValue: decodeByMethod({ data, decodeMethod }),\n highlight: highlight\n ? decodeByMethod({ data: highlight, decodeMethod })\n : highlight\n };\n }\n\n if (hasAt) {\n const parts = data.split('@');\n const decodedParts = getDisplayValueAndValidationWarnings({\n parts,\n decodeMethod,\n identifier,\n decodedData\n });\n\n const decodedHighlight = highlight\n ? decodeHighlight({\n data: highlight,\n identifier,\n decodeMethod,\n delimiter: '@'\n })\n : null;\n\n return {\n ...decodedData,\n displayValue: decodedParts.join('@'),\n highlight: decodedHighlight\n };\n }\n\n if (hasNewLine) {\n const parts = data.split('\\n');\n\n const initialDecodedParts = parts.map((part) => {\n if (decodeMethod === DecodeMethodEnum.raw) {\n return part;\n }\n\n return decodeByMethod({\n data: Buffer.from(part, 'base64').toString('hex'),\n decodeMethod\n });\n });\n\n const decodedParts = getDecodedParts({\n parts,\n initialDecodedParts,\n identifier,\n decodeMethod\n });\n\n const decodedHighlight = highlight\n ? decodeHighlight({\n data: highlight,\n identifier,\n decodeMethod,\n delimiter: '\\n'\n })\n : null;\n\n return {\n ...decodedData,\n displayValue: decodedParts.join('\\n'),\n highlight: decodedHighlight\n };\n }\n\n return decodedData;\n};\n"],
5
+ "mappings": "6MAiBO,IAAMA,EAAsB,CAAC,CAClC,KAAAC,EACA,aAAAC,EACA,WAAAC,EACA,UAAAC,EAAY,IACd,IAA6C,CAC3C,IAAMC,EAAkC,CACtC,aAAc,GACd,mBAAoB,CAAC,EACrB,UAAAD,CACF,EAEA,GACEH,EAAK,OAAS,MACd,kBAAiD,EAAE,SAASC,CAAY,EAExE,MAAO,CACL,GAAGG,EACH,aAAcJ,CAChB,EAGF,IAAMK,EAAQL,EAAK,SAAS,GAAG,EACzBM,EAAaN,EAAK,SAAS;AAAA,CAAI,EAErC,GAAI,CAACK,GAAS,CAACC,EACb,MAAO,CACL,GAAGF,EACH,aAAcG,EAAe,CAAE,KAAAP,EAAM,aAAAC,CAAa,CAAC,EACnD,UAAWE,GACPI,EAAe,CAAE,KAAMJ,EAAW,aAAAF,CAAa,CAAC,CAEtD,EAGF,GAAII,EAAO,CACT,IAAMG,EAAQR,EAAK,MAAM,GAAG,EACtBS,EAAeC,EAAqC,CACxD,MAAAF,EACA,aAAAP,EACA,WAAAC,EACA,YAAAE,CACF,CAAC,EAEKO,EAAmBR,EACrBS,EAAgB,CACd,KAAMT,EACN,WAAAD,EACA,aAAAD,EACA,UAAW,GACb,CAAC,EACD,KAEJ,MAAO,CACL,GAAGG,EACH,aAAcK,EAAa,KAAK,GAAG,EACnC,UAAWE,CACb,CACF,CAEA,GAAIL,EAAY,CACd,IAAME,EAAQR,EAAK,MAAM;AAAA,CAAI,EAEvBa,EAAsBL,EAAM,IAAKM,GACjCb,UACKa,EAGFP,EAAe,CACpB,KAAM,OAAO,KAAKO,EAAM,QAAQ,EAAE,SAAS,KAAK,EAChD,aAAAb,CACF,CAAC,CACF,EAEKQ,EAAeM,EAAgB,CACnC,MAAAP,EACA,oBAAAK,EACA,WAAAX,EACA,aAAAD,CACF,CAAC,EAEKU,EAAmBR,EACrBS,EAAgB,CACd,KAAMT,EACN,WAAAD,EACA,aAAAD,EACA,UAAW;AAAA,CACb,CAAC,EACD,KAEJ,MAAO,CACL,GAAGG,EACH,aAAcK,EAAa,KAAK;AAAA,CAAI,EACpC,UAAWE,CACb,CACF,CAEA,OAAOP,CACT",
6
+ "names": ["getDecodedDataField", "data", "decodeMethod", "identifier", "highlight", "decodedData", "hasAt", "hasNewLine", "decodeByMethod", "parts", "decodedParts", "getDisplayValueAndValidationWarnings", "decodedHighlight", "decodeHighlight", "initialDecodedParts", "part", "getDecodedParts"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{q as a}from"./chunk-LPGMDX6Q.mjs";var r=({key:e,value:t})=>{a().setState(({cache:c})=>{c[e]=t},!1,"saveToCache")},s=e=>{a().setState(({cache:t})=>{delete t[e]},!1,"removeFromCache")},h=()=>{a().setState(({cache:e})=>{Object.keys(e).forEach(t=>{delete e[t]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
- //# sourceMappingURL=chunk-PHMJQ5FC.mjs.map
1
+ import{q as a}from"./chunk-AYURCZHZ.mjs";var r=({key:e,value:t})=>{a().setState(({cache:c})=>{c[e]=t},!1,"saveToCache")},s=e=>{a().setState(({cache:t})=>{delete t[e]},!1,"removeFromCache")},h=()=>{a().setState(({cache:e})=>{Object.keys(e).forEach(t=>{delete e[t]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
+ //# sourceMappingURL=chunk-NA5CDQ5C.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as t}from"./chunk-AYURCZHZ.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";function g(r=t()){return e(r).egldLabel}export{g as a};
2
+ //# sourceMappingURL=chunk-NJSC7RC2.mjs.map