@multiversx/sdk-dapp 5.0.4 → 5.0.5

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 (1350) hide show
  1. package/out/__chunks__/chunk-22CLXEB2.mjs +2 -0
  2. package/out/__chunks__/chunk-3FX5RTHT.mjs +2 -0
  3. package/out/__chunks__/chunk-456YSI54.mjs +2 -0
  4. package/out/__chunks__/chunk-4ZQAHMC7.mjs +2 -0
  5. package/out/__chunks__/chunk-5HV6ENMZ.mjs +2 -0
  6. package/out/__chunks__/chunk-5HWBV7UA.mjs +2 -0
  7. package/out/__chunks__/chunk-5ZNSOJRW.mjs +2 -0
  8. package/out/__chunks__/chunk-653M72HI.mjs +2 -0
  9. package/out/__chunks__/chunk-6LQPIIN7.mjs +2 -0
  10. package/out/__chunks__/chunk-6QUYC43H.mjs +2 -0
  11. package/out/__chunks__/chunk-76URRONH.mjs +2 -0
  12. package/out/__chunks__/chunk-AAT5TA2C.mjs +2 -0
  13. package/out/__chunks__/chunk-AOT45CLU.mjs +2 -0
  14. package/out/__chunks__/chunk-BIKDLBHK.mjs +2 -0
  15. package/out/__chunks__/chunk-BLNUEDNB.mjs +2 -0
  16. package/out/__chunks__/chunk-CDQ2BNUD.mjs +2 -0
  17. package/out/__chunks__/chunk-CQFFB5WA.mjs +2 -0
  18. package/out/__chunks__/chunk-EHU6U444.mjs +2 -0
  19. package/out/__chunks__/chunk-EQSRTMFM.mjs +2 -0
  20. package/out/__chunks__/chunk-F7TDWWAZ.mjs +2 -0
  21. package/out/__chunks__/chunk-FWC42IFM.mjs +2 -0
  22. package/out/__chunks__/chunk-FYA6M3N3.mjs +2 -0
  23. package/out/__chunks__/chunk-G4Z3ZQR6.mjs +2 -0
  24. package/out/__chunks__/chunk-HCKBJTY3.mjs +2 -0
  25. package/out/__chunks__/chunk-HCKBJTY3.mjs.map +7 -0
  26. package/out/__chunks__/chunk-HF5UK7AF.mjs +2 -0
  27. package/out/__chunks__/chunk-HLBGYEYU.mjs +2 -0
  28. package/out/__chunks__/chunk-HLNCW36T.mjs +2 -0
  29. package/out/__chunks__/chunk-IRLEEOUA.mjs +2 -0
  30. package/out/__chunks__/chunk-J55M6HRJ.mjs +2 -0
  31. package/out/__chunks__/chunk-JBF4OOHG.mjs +2 -0
  32. package/out/__chunks__/chunk-JIDXMYLT.mjs +2 -0
  33. package/out/__chunks__/chunk-JQ6DWF4A.mjs +2 -0
  34. package/out/__chunks__/chunk-KE7YRXWM.mjs +2 -0
  35. package/out/__chunks__/chunk-KIU22HW5.mjs +2 -0
  36. package/out/__chunks__/chunk-KK2BMMWL.mjs +2 -0
  37. package/out/__chunks__/chunk-KZAQIHS2.mjs +2 -0
  38. package/out/__chunks__/chunk-LG4JGQOF.mjs +2 -0
  39. package/out/__chunks__/chunk-MOJR7L2A.mjs +2 -0
  40. package/out/__chunks__/chunk-MSYOA2HY.mjs +2 -0
  41. package/out/__chunks__/chunk-N6PKXG4Q.mjs +2 -0
  42. package/out/__chunks__/chunk-NDIJUIRP.mjs +2 -0
  43. package/out/__chunks__/chunk-NTGUPGTV.mjs +2 -0
  44. package/out/__chunks__/chunk-NVLWSC4J.mjs +2 -0
  45. package/out/__chunks__/chunk-NW6VE6YC.mjs +2 -0
  46. package/out/__chunks__/chunk-NW6VE6YC.mjs.map +7 -0
  47. package/out/__chunks__/chunk-OIJVN33N.mjs +2 -0
  48. package/out/__chunks__/chunk-OLPUNT27.mjs +2 -0
  49. package/out/__chunks__/chunk-P5RC6PN5.mjs +2 -0
  50. package/out/__chunks__/chunk-PJAESU4Q.mjs +2 -0
  51. package/out/__chunks__/chunk-PLUWBWJ2.mjs +2 -0
  52. package/out/__chunks__/chunk-PLUWBWJ2.mjs.map +7 -0
  53. package/out/__chunks__/chunk-PZYLVHXW.mjs +2 -0
  54. package/out/__chunks__/chunk-RJKYCUB2.mjs +2 -0
  55. package/out/__chunks__/chunk-RQ5H245L.mjs +2 -0
  56. package/out/__chunks__/chunk-S75Q25RY.mjs +2 -0
  57. package/out/__chunks__/chunk-SF4BD7ZP.mjs +2 -0
  58. package/out/__chunks__/chunk-SIRUYWHD.mjs +2 -0
  59. package/out/__chunks__/chunk-SMLKNW6G.mjs +2 -0
  60. package/out/__chunks__/chunk-SXX3XHAW.mjs +2 -0
  61. package/out/__chunks__/chunk-TS77UH5B.mjs +2 -0
  62. package/out/__chunks__/chunk-TS77UH5B.mjs.map +7 -0
  63. package/out/__chunks__/chunk-TUKLXZGE.mjs +2 -0
  64. package/out/__chunks__/chunk-TX6KTAJL.mjs +2 -0
  65. package/out/__chunks__/chunk-UJJ2TXN5.mjs +2 -0
  66. package/out/__chunks__/chunk-ULK34VWM.mjs +2 -0
  67. package/out/__chunks__/chunk-ULK34VWM.mjs.map +7 -0
  68. package/out/__chunks__/chunk-UOUYS55Y.mjs +2 -0
  69. package/out/__chunks__/chunk-UUV2STLQ.mjs +2 -0
  70. package/out/__chunks__/chunk-UUV2STLQ.mjs.map +7 -0
  71. package/out/__chunks__/chunk-UZOPRGVU.mjs +2 -0
  72. package/out/__chunks__/chunk-UZV2AYS7.mjs +2 -0
  73. package/out/__chunks__/chunk-V3FPOJA5.mjs +2 -0
  74. package/out/__chunks__/chunk-V7PT3KKW.mjs +2 -0
  75. package/out/__chunks__/chunk-VBMIE7MG.mjs +2 -0
  76. package/out/__chunks__/chunk-VJOUHZ3O.mjs +2 -0
  77. package/out/__chunks__/chunk-VPS6ARX6.mjs +2 -0
  78. package/out/__chunks__/chunk-VWJRTO5A.mjs +2 -0
  79. package/out/__chunks__/chunk-WJ7ALCIQ.mjs +2 -0
  80. package/out/__chunks__/chunk-WJCTIZ2A.mjs +2 -0
  81. package/out/__chunks__/chunk-WONHL4N2.mjs +2 -0
  82. package/out/__chunks__/chunk-WZRJWY5M.mjs +2 -0
  83. package/out/__chunks__/chunk-X7R7RLVZ.mjs +2 -0
  84. package/out/__chunks__/chunk-XIR5WVK3.mjs +2 -0
  85. package/out/__chunks__/chunk-XKOP7FDQ.mjs +2 -0
  86. package/out/__chunks__/chunk-XNLP533V.mjs +2 -0
  87. package/out/__chunks__/chunk-XRMMQJV3.mjs +2 -0
  88. package/out/__chunks__/chunk-Y7IZFCJ5.mjs +2 -0
  89. package/out/__chunks__/chunk-YLOVIFPG.mjs +2 -0
  90. package/out/__chunks__/chunk-YRZADY4X.mjs +2 -0
  91. package/out/__chunks__/chunk-YTYVQKLJ.mjs +2 -0
  92. package/out/__chunks__/chunk-ZC2OOJ2D.mjs +2 -0
  93. package/out/__mocks__/accountConfig.cjs +37 -0
  94. package/out/__mocks__/accountConfig.cjs.map +7 -0
  95. package/out/__mocks__/data/account.cjs +38 -0
  96. package/out/__mocks__/data/account.cjs.map +7 -0
  97. package/out/__mocks__/data/blocks.cjs +34 -0
  98. package/out/__mocks__/data/blocks.cjs.map +7 -0
  99. package/out/__mocks__/data/dappConfig.cjs +43 -0
  100. package/out/__mocks__/data/dappConfig.cjs.map +7 -0
  101. package/out/__mocks__/data/index.cjs +35 -0
  102. package/out/__mocks__/data/index.cjs.map +7 -0
  103. package/out/__mocks__/data/networkConfig.cjs +56 -0
  104. package/out/__mocks__/data/networkConfig.cjs.map +7 -0
  105. package/out/__mocks__/data/socketResponse.cjs +35 -0
  106. package/out/__mocks__/data/socketResponse.cjs.map +7 -0
  107. package/out/__mocks__/data/websocketConfig.cjs +29 -0
  108. package/out/__mocks__/data/websocketConfig.cjs.map +7 -0
  109. package/out/__mocks__/data/wrapEgldContract.cjs +54 -0
  110. package/out/__mocks__/data/wrapEgldContract.cjs.map +7 -0
  111. package/out/__mocks__/index.cjs +27 -0
  112. package/out/__mocks__/index.cjs.map +7 -0
  113. package/out/__mocks__/server.cjs +65 -0
  114. package/out/__mocks__/server.cjs.map +7 -0
  115. package/out/__mocks__/utils/index.cjs +25 -0
  116. package/out/__mocks__/utils/index.cjs.map +7 -0
  117. package/out/__mocks__/utils/mockWindowHistory.cjs +45 -0
  118. package/out/__mocks__/utils/mockWindowHistory.cjs.map +7 -0
  119. package/out/__mocks__/utils/mockWindowLocation.cjs +45 -0
  120. package/out/__mocks__/utils/mockWindowLocation.cjs.map +7 -0
  121. package/out/apiCalls/account/getAccountFromApi.cjs +60 -0
  122. package/out/apiCalls/account/getAccountFromApi.cjs.map +7 -0
  123. package/out/apiCalls/account/getScamAddressData.cjs +52 -0
  124. package/out/apiCalls/account/getScamAddressData.cjs.map +7 -0
  125. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  126. package/out/apiCalls/account/index.cjs +23 -0
  127. package/out/apiCalls/account/index.cjs.map +7 -0
  128. package/out/apiCalls/configuration/getCleanApiAddress.cjs +35 -0
  129. package/out/apiCalls/configuration/getCleanApiAddress.cjs.map +7 -0
  130. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  131. package/out/apiCalls/configuration/getGasStationMetadata.cjs +65 -0
  132. package/out/apiCalls/configuration/getGasStationMetadata.cjs.map +7 -0
  133. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  134. package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs +62 -0
  135. package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs.map +7 -0
  136. package/out/apiCalls/configuration/getServerConfiguration.cjs +66 -0
  137. package/out/apiCalls/configuration/getServerConfiguration.cjs.map +7 -0
  138. package/out/apiCalls/configuration/index.cjs +25 -0
  139. package/out/apiCalls/configuration/index.cjs.map +7 -0
  140. package/out/apiCalls/economics/getEconomics.cjs +55 -0
  141. package/out/apiCalls/economics/getEconomics.cjs.map +7 -0
  142. package/out/apiCalls/endpoints.cjs +101 -0
  143. package/out/apiCalls/endpoints.cjs.map +7 -0
  144. package/out/apiCalls/index.cjs +33 -0
  145. package/out/apiCalls/index.cjs.map +7 -0
  146. package/out/apiCalls/index.mjs +1 -1
  147. package/out/apiCalls/tokens/getPersistedToken.cjs +43 -0
  148. package/out/apiCalls/tokens/getPersistedToken.cjs.map +7 -0
  149. package/out/apiCalls/tokens/getPersistedTokenDetails.cjs +73 -0
  150. package/out/apiCalls/tokens/getPersistedTokenDetails.cjs.map +7 -0
  151. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  152. package/out/apiCalls/tokens/getTokenDetails.cjs +75 -0
  153. package/out/apiCalls/tokens/getTokenDetails.cjs.map +7 -0
  154. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  155. package/out/apiCalls/tokens/index.cjs +23 -0
  156. package/out/apiCalls/tokens/index.cjs.map +7 -0
  157. package/out/apiCalls/tokens/index.mjs +1 -1
  158. package/out/apiCalls/tokens/tokenDataStorage.cjs +59 -0
  159. package/out/apiCalls/tokens/tokenDataStorage.cjs.map +7 -0
  160. package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs +55 -0
  161. package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs.map +7 -0
  162. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  163. package/out/apiCalls/transactions/getTransactionByHash.cjs +52 -0
  164. package/out/apiCalls/transactions/getTransactionByHash.cjs.map +7 -0
  165. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  166. package/out/apiCalls/transactions/getTransactions.cjs +77 -0
  167. package/out/apiCalls/transactions/getTransactions.cjs.map +7 -0
  168. package/out/apiCalls/transactions/getTransactionsByHashes.cjs +48 -0
  169. package/out/apiCalls/transactions/getTransactionsByHashes.cjs.map +7 -0
  170. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  171. package/out/apiCalls/utils/axiosFetcher.cjs +30 -0
  172. package/out/apiCalls/utils/axiosFetcher.cjs.map +7 -0
  173. package/out/apiCalls/utils/axiosInstance.cjs +106 -0
  174. package/out/apiCalls/utils/axiosInstance.cjs.map +7 -0
  175. package/out/apiCalls/utils/getCleanApiAddress.cjs +31 -0
  176. package/out/apiCalls/utils/getCleanApiAddress.cjs.map +7 -0
  177. package/out/apiCalls/utils/index.cjs +27 -0
  178. package/out/apiCalls/utils/index.cjs.map +7 -0
  179. package/out/apiCalls/websocket/getWebsocketUrl.cjs +50 -0
  180. package/out/apiCalls/websocket/getWebsocketUrl.cjs.map +7 -0
  181. package/out/apiCalls/websocket/index.cjs +23 -0
  182. package/out/apiCalls/websocket/index.cjs.map +7 -0
  183. package/out/constants/UITags.enum.cjs +38 -0
  184. package/out/constants/UITags.enum.cjs.map +7 -0
  185. package/out/constants/browser.constants.cjs +35 -0
  186. package/out/constants/browser.constants.cjs.map +7 -0
  187. package/out/constants/browser.constants.mjs +1 -1
  188. package/out/constants/index.cjs +41 -0
  189. package/out/constants/index.cjs.map +7 -0
  190. package/out/constants/index.mjs +1 -1
  191. package/out/constants/ledger.constants.cjs +132 -0
  192. package/out/constants/ledger.constants.cjs.map +7 -0
  193. package/out/constants/mvx.constants.cjs +59 -0
  194. package/out/constants/mvx.constants.cjs.map +7 -0
  195. package/out/constants/network.constants.cjs +114 -0
  196. package/out/constants/network.constants.cjs.map +7 -0
  197. package/out/constants/placeholders.constants.cjs +35 -0
  198. package/out/constants/placeholders.constants.cjs.map +7 -0
  199. package/out/constants/providerFactory.constants.cjs +39 -0
  200. package/out/constants/providerFactory.constants.cjs.map +7 -0
  201. package/out/constants/providerFactory.constants.mjs +1 -1
  202. package/out/constants/storage.constants.cjs +41 -0
  203. package/out/constants/storage.constants.cjs.map +7 -0
  204. package/out/constants/storage.constants.mjs +1 -1
  205. package/out/constants/transactions.constants.cjs +62 -0
  206. package/out/constants/transactions.constants.cjs.map +7 -0
  207. package/out/constants/walletConnect.constants.cjs +33 -0
  208. package/out/constants/walletConnect.constants.cjs.map +7 -0
  209. package/out/constants/webWalletProvider.constants.cjs +47 -0
  210. package/out/constants/webWalletProvider.constants.cjs.map +7 -0
  211. package/out/constants/websocket.constants.cjs +40 -0
  212. package/out/constants/websocket.constants.cjs.map +7 -0
  213. package/out/constants/window.constants.cjs +32 -0
  214. package/out/constants/window.constants.cjs.map +7 -0
  215. package/out/constants/window.constants.mjs +1 -1
  216. package/out/controllers/FormatAmountController/FormatAmountController.cjs +58 -0
  217. package/out/controllers/FormatAmountController/FormatAmountController.cjs.map +7 -0
  218. package/out/controllers/FormatAmountController/index.cjs +23 -0
  219. package/out/controllers/FormatAmountController/index.cjs.map +7 -0
  220. package/out/controllers/FormatAmountController/types.cjs +17 -0
  221. package/out/controllers/FormatAmountController/types.cjs.map +7 -0
  222. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +35 -0
  223. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs.map +7 -0
  224. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  225. package/out/controllers/TransactionsHistoryController/index.cjs +23 -0
  226. package/out/controllers/TransactionsHistoryController/index.cjs.map +7 -0
  227. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  228. package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +131 -0
  229. package/out/controllers/TransactionsTableController/TransactionsTableController.cjs.map +7 -0
  230. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  231. package/out/controllers/TransactionsTableController/index.cjs +23 -0
  232. package/out/controllers/TransactionsTableController/index.cjs.map +7 -0
  233. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  234. package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs +17 -0
  235. package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs.map +7 -0
  236. package/out/controllers/index.cjs +23 -0
  237. package/out/controllers/index.cjs.map +7 -0
  238. package/out/index.cjs +33 -0
  239. package/out/index.cjs.map +7 -0
  240. package/out/index.mjs +1 -1
  241. package/out/lib/sdkCore.cjs +47 -0
  242. package/out/lib/sdkCore.cjs.map +7 -0
  243. package/out/lib/sdkDappUi.cjs +54 -0
  244. package/out/lib/sdkDappUi.cjs.map +7 -0
  245. package/out/lib/sdkDappUi.mjs +1 -1
  246. package/out/lib/sdkDappUtils.cjs +45 -0
  247. package/out/lib/sdkDappUtils.cjs.map +7 -0
  248. package/out/lib/sdkWebWalletCrossWindowProvider.cjs +34 -0
  249. package/out/lib/sdkWebWalletCrossWindowProvider.cjs.map +7 -0
  250. package/out/lib/sdkWebWalletIframeProvider.cjs +29 -0
  251. package/out/lib/sdkWebWalletIframeProvider.cjs.map +7 -0
  252. package/out/lib/sdkWebviewProvider.cjs +29 -0
  253. package/out/lib/sdkWebviewProvider.cjs.map +7 -0
  254. package/out/managers/LogoutManager/LogoutManager.cjs +168 -0
  255. package/out/managers/LogoutManager/LogoutManager.cjs.map +7 -0
  256. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  257. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs +57 -0
  258. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs.map +7 -0
  259. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +158 -0
  260. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs.map +7 -0
  261. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  262. package/out/managers/NotificationsFeedManager/index.cjs +25 -0
  263. package/out/managers/NotificationsFeedManager/index.cjs.map +7 -0
  264. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  265. package/out/managers/NotificationsFeedManager/types/index.cjs +23 -0
  266. package/out/managers/NotificationsFeedManager/types/index.cjs.map +7 -0
  267. package/out/managers/NotificationsFeedManager/types/notifications.types.cjs +36 -0
  268. package/out/managers/NotificationsFeedManager/types/notifications.types.cjs.map +7 -0
  269. package/out/managers/TransactionManager/TransactionManager.cjs +198 -0
  270. package/out/managers/TransactionManager/TransactionManager.cjs.map +7 -0
  271. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  272. package/out/managers/TransactionManager/TransactionManager.types.cjs +17 -0
  273. package/out/managers/TransactionManager/TransactionManager.types.cjs.map +7 -0
  274. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +51 -0
  275. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs.map +7 -0
  276. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  277. package/out/managers/TransactionManager/helpers/getToastDuration.cjs +53 -0
  278. package/out/managers/TransactionManager/helpers/getToastDuration.cjs.map +7 -0
  279. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  280. package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +54 -0
  281. package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs.map +7 -0
  282. package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs +31 -0
  283. package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs.map +7 -0
  284. package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs +48 -0
  285. package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs.map +7 -0
  286. package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs +42 -0
  287. package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs.map +7 -0
  288. package/out/managers/TransactionManager/index.cjs +23 -0
  289. package/out/managers/TransactionManager/index.cjs.map +7 -0
  290. package/out/managers/TransactionManager/index.mjs +1 -1
  291. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +168 -0
  292. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +7 -0
  293. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  294. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs +37 -0
  295. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs.map +7 -0
  296. package/out/managers/UnlockPanelManager/index.cjs +23 -0
  297. package/out/managers/UnlockPanelManager/index.cjs.map +7 -0
  298. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  299. package/out/managers/index.cjs +25 -0
  300. package/out/managers/index.cjs.map +7 -0
  301. package/out/managers/index.mjs +1 -1
  302. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs +215 -0
  303. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs.map +7 -0
  304. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  305. package/out/managers/internal/LedgerConnectStateManager/index.cjs +25 -0
  306. package/out/managers/internal/LedgerConnectStateManager/index.cjs.map +7 -0
  307. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  308. package/out/managers/internal/LedgerConnectStateManager/types/index.cjs +23 -0
  309. package/out/managers/internal/LedgerConnectStateManager/types/index.cjs.map +7 -0
  310. package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs +37 -0
  311. package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs.map +7 -0
  312. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +125 -0
  313. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs.map +7 -0
  314. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  315. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs +59 -0
  316. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs.map +7 -0
  317. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  318. package/out/managers/internal/PendingTransactionsStateManager/index.cjs +25 -0
  319. package/out/managers/internal/PendingTransactionsStateManager/index.cjs.map +7 -0
  320. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  321. package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs +23 -0
  322. package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs.map +7 -0
  323. package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs +33 -0
  324. package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs.map +7 -0
  325. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs +63 -0
  326. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs.map +7 -0
  327. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  328. package/out/managers/internal/SidePanelBaseManager/index.cjs +23 -0
  329. package/out/managers/internal/SidePanelBaseManager/index.cjs.map +7 -0
  330. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  331. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs +139 -0
  332. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs.map +7 -0
  333. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  334. package/out/managers/internal/SignTransactionsStateManager/index.cjs +23 -0
  335. package/out/managers/internal/SignTransactionsStateManager/index.cjs.map +7 -0
  336. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  337. package/out/managers/internal/SignTransactionsStateManager/types/index.cjs +23 -0
  338. package/out/managers/internal/SignTransactionsStateManager/types/index.cjs.map +7 -0
  339. package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs +37 -0
  340. package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs.map +7 -0
  341. package/out/managers/internal/ToastManager/ToastManager.cjs +268 -0
  342. package/out/managers/internal/ToastManager/ToastManager.cjs.map +7 -0
  343. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  344. package/out/managers/internal/ToastManager/helpers/LifetimeManager.cjs +72 -0
  345. package/out/managers/internal/ToastManager/helpers/LifetimeManager.cjs.map +7 -0
  346. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  347. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.cjs +88 -0
  348. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.cjs.map +7 -0
  349. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  350. package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs +61 -0
  351. package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs.map +7 -0
  352. package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.cjs +104 -0
  353. package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.cjs.map +7 -0
  354. package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.cjs +41 -0
  355. package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.cjs.map +7 -0
  356. package/out/managers/internal/ToastManager/types/index.cjs +23 -0
  357. package/out/managers/internal/ToastManager/types/index.cjs.map +7 -0
  358. package/out/managers/internal/ToastManager/types/toast.types.cjs +48 -0
  359. package/out/managers/internal/ToastManager/types/toast.types.cjs.map +7 -0
  360. package/out/managers/internal/UIBaseManager/UIBaseManager.cjs +103 -0
  361. package/out/managers/internal/UIBaseManager/UIBaseManager.cjs.map +7 -0
  362. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  363. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs +79 -0
  364. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs.map +7 -0
  365. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  366. package/out/managers/internal/WalletConnectStateManager/index.cjs +23 -0
  367. package/out/managers/internal/WalletConnectStateManager/index.cjs.map +7 -0
  368. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  369. package/out/managers/internal/index.cjs +38 -0
  370. package/out/managers/internal/index.cjs.map +7 -0
  371. package/out/managers/internal/index.mjs +1 -1
  372. package/out/methods/account/getAccount.cjs +33 -0
  373. package/out/methods/account/getAccount.cjs.map +7 -0
  374. package/out/methods/account/getAccount.mjs +1 -1
  375. package/out/methods/account/getAccountInfo.cjs +33 -0
  376. package/out/methods/account/getAccountInfo.cjs.map +7 -0
  377. package/out/methods/account/getAccountInfo.mjs +1 -1
  378. package/out/methods/account/getAddress.cjs +33 -0
  379. package/out/methods/account/getAddress.cjs.map +7 -0
  380. package/out/methods/account/getAddress.mjs +1 -1
  381. package/out/methods/account/getIsLoggedIn.cjs +33 -0
  382. package/out/methods/account/getIsLoggedIn.cjs.map +7 -0
  383. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  384. package/out/methods/account/getLatestNonce.cjs +55 -0
  385. package/out/methods/account/getLatestNonce.cjs.map +7 -0
  386. package/out/methods/account/getLatestNonce.mjs +1 -1
  387. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs +62 -0
  388. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs.map +7 -0
  389. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  390. package/out/methods/initApp/initApp.cjs +113 -0
  391. package/out/methods/initApp/initApp.cjs.map +7 -0
  392. package/out/methods/initApp/initApp.mjs +1 -1
  393. package/out/methods/initApp/initApp.types.cjs +17 -0
  394. package/out/methods/initApp/initApp.types.cjs.map +7 -0
  395. package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +173 -0
  396. package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.map +7 -0
  397. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  398. package/out/methods/initApp/websocket/registerWebsocket.cjs +38 -0
  399. package/out/methods/initApp/websocket/registerWebsocket.cjs.map +7 -0
  400. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  401. package/out/methods/loginInfo/getLoginInfo.cjs +37 -0
  402. package/out/methods/loginInfo/getLoginInfo.cjs.map +7 -0
  403. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  404. package/out/methods/network/getEgldLabel.cjs +33 -0
  405. package/out/methods/network/getEgldLabel.cjs.map +7 -0
  406. package/out/methods/network/getEgldLabel.mjs +1 -1
  407. package/out/methods/network/getExplorerAddress.cjs +33 -0
  408. package/out/methods/network/getExplorerAddress.cjs.map +7 -0
  409. package/out/methods/network/getExplorerAddress.mjs +1 -1
  410. package/out/methods/network/getNetworkConfig.cjs +33 -0
  411. package/out/methods/network/getNetworkConfig.cjs.map +7 -0
  412. package/out/methods/network/getNetworkConfig.mjs +1 -1
  413. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs +147 -0
  414. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs.map +7 -0
  415. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  416. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs +44 -0
  417. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs.map +7 -0
  418. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  419. package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs +41 -0
  420. package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs.map +7 -0
  421. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs +23 -0
  422. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs.map +7 -0
  423. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  424. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs +58 -0
  425. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs.map +7 -0
  426. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  427. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs +50 -0
  428. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs.map +7 -0
  429. package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +38 -0
  430. package/out/methods/trackTransactions/helpers/getPollingInterval.cjs.map +7 -0
  431. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  432. package/out/methods/trackTransactions/trackTransactions.cjs +118 -0
  433. package/out/methods/trackTransactions/trackTransactions.cjs.map +7 -0
  434. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  435. package/out/methods/transactions/getFailedTransactions.cjs +33 -0
  436. package/out/methods/transactions/getFailedTransactions.cjs.map +7 -0
  437. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  438. package/out/methods/transactions/getFailedTransactionsSessions.cjs +33 -0
  439. package/out/methods/transactions/getFailedTransactionsSessions.cjs.map +7 -0
  440. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  441. package/out/methods/transactions/getPendingTransactions.cjs +33 -0
  442. package/out/methods/transactions/getPendingTransactions.cjs.map +7 -0
  443. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  444. package/out/methods/transactions/getPendingTransactionsSessions.cjs +33 -0
  445. package/out/methods/transactions/getPendingTransactionsSessions.cjs.map +7 -0
  446. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  447. package/out/methods/transactions/getSuccessfulTransactions.cjs +33 -0
  448. package/out/methods/transactions/getSuccessfulTransactions.cjs.map +7 -0
  449. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  450. package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs +33 -0
  451. package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs.map +7 -0
  452. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  453. package/out/methods/transactions/getTransactionSessions.cjs +33 -0
  454. package/out/methods/transactions/getTransactionSessions.cjs.map +7 -0
  455. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  456. package/out/providers/DappProvider/DappProvider.cjs +113 -0
  457. package/out/providers/DappProvider/DappProvider.cjs.map +7 -0
  458. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  459. package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs +37 -0
  460. package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs.map +7 -0
  461. package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs +47 -0
  462. package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs.map +7 -0
  463. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +67 -0
  464. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs.map +7 -0
  465. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  466. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs +45 -0
  467. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs.map +7 -0
  468. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  469. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs +45 -0
  470. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs.map +7 -0
  471. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  472. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs +56 -0
  473. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs.map +7 -0
  474. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  475. package/out/providers/DappProvider/helpers/login/login.cjs +122 -0
  476. package/out/providers/DappProvider/helpers/login/login.cjs.map +7 -0
  477. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  478. package/out/providers/DappProvider/helpers/logout/logout.cjs +64 -0
  479. package/out/providers/DappProvider/helpers/logout/logout.cjs.map +7 -0
  480. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  481. package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +79 -0
  482. package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs.map +7 -0
  483. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  484. package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs +33 -0
  485. package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs.map +7 -0
  486. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs +43 -0
  487. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs.map +7 -0
  488. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  489. package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs +61 -0
  490. package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs.map +7 -0
  491. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +59 -0
  492. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +7 -0
  493. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  494. package/out/providers/DappProvider/index.cjs +23 -0
  495. package/out/providers/DappProvider/index.cjs.map +7 -0
  496. package/out/providers/DappProvider/index.mjs +1 -1
  497. package/out/providers/ProviderFactory.cjs +131 -0
  498. package/out/providers/ProviderFactory.cjs.map +7 -0
  499. package/out/providers/ProviderFactory.mjs +1 -1
  500. package/out/providers/helpers/accountProvider.cjs +39 -0
  501. package/out/providers/helpers/accountProvider.cjs.map +7 -0
  502. package/out/providers/helpers/accountProvider.mjs +1 -1
  503. package/out/providers/helpers/cancelCrossWindowAction.cjs +38 -0
  504. package/out/providers/helpers/cancelCrossWindowAction.cjs.map +7 -0
  505. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  506. package/out/providers/helpers/clearInitiatedLogins.cjs +58 -0
  507. package/out/providers/helpers/clearInitiatedLogins.cjs.map +7 -0
  508. package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
  509. package/out/providers/helpers/emptyProvider.cjs +107 -0
  510. package/out/providers/helpers/emptyProvider.cjs.map +7 -0
  511. package/out/providers/helpers/emptyProvider.mjs +1 -1
  512. package/out/providers/helpers/restoreProvider.cjs +53 -0
  513. package/out/providers/helpers/restoreProvider.cjs.map +7 -0
  514. package/out/providers/helpers/restoreProvider.mjs +1 -1
  515. package/out/providers/index.cjs +32 -0
  516. package/out/providers/index.cjs.map +7 -0
  517. package/out/providers/index.mjs +1 -1
  518. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +130 -0
  519. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +7 -0
  520. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  521. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +107 -0
  522. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +7 -0
  523. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  524. package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs +23 -0
  525. package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs.map +7 -0
  526. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  527. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +97 -0
  528. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs.map +7 -0
  529. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  530. package/out/providers/strategies/ExtensionProviderStrategy/index.cjs +23 -0
  531. package/out/providers/strategies/ExtensionProviderStrategy/index.cjs.map +7 -0
  532. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  533. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +121 -0
  534. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +7 -0
  535. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  536. package/out/providers/strategies/IframeProviderStrategy/index.cjs +25 -0
  537. package/out/providers/strategies/IframeProviderStrategy/index.cjs.map +7 -0
  538. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  539. package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs +17 -0
  540. package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs.map +7 -0
  541. package/out/providers/strategies/IframeProviderStrategy/types/index.cjs +23 -0
  542. package/out/providers/strategies/IframeProviderStrategy/types/index.cjs.map +7 -0
  543. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +182 -0
  544. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +7 -0
  545. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  546. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs +125 -0
  547. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs.map +7 -0
  548. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  549. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs +69 -0
  550. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs.map +7 -0
  551. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  552. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs +38 -0
  553. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs.map +7 -0
  554. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  555. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs +48 -0
  556. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs.map +7 -0
  557. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs +81 -0
  558. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs.map +7 -0
  559. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  560. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs +83 -0
  561. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs.map +7 -0
  562. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  563. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs +33 -0
  564. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs.map +7 -0
  565. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  566. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs +66 -0
  567. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs.map +7 -0
  568. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  569. package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs +62 -0
  570. package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs.map +7 -0
  571. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs +47 -0
  572. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs.map +7 -0
  573. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  574. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs +23 -0
  575. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs.map +7 -0
  576. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  577. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs +122 -0
  578. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs.map +7 -0
  579. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  580. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs +17 -0
  581. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs.map +7 -0
  582. package/out/providers/strategies/LedgerProviderStrategy/index.cjs +25 -0
  583. package/out/providers/strategies/LedgerProviderStrategy/index.cjs.map +7 -0
  584. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  585. package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs +23 -0
  586. package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs.map +7 -0
  587. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs +38 -0
  588. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs.map +7 -0
  589. package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs +17 -0
  590. package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs.map +7 -0
  591. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +281 -0
  592. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +7 -0
  593. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  594. package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs +25 -0
  595. package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs.map +7 -0
  596. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  597. package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs +23 -0
  598. package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs.map +7 -0
  599. package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs +49 -0
  600. package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs.map +7 -0
  601. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs +186 -0
  602. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs.map +7 -0
  603. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  604. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs +23 -0
  605. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs.map +7 -0
  606. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  607. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs +98 -0
  608. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs.map +7 -0
  609. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  610. package/out/providers/strategies/WebviewProviderStrategy/index.cjs +23 -0
  611. package/out/providers/strategies/WebviewProviderStrategy/index.cjs.map +7 -0
  612. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  613. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs +42 -0
  614. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs.map +7 -0
  615. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  616. package/out/providers/strategies/helpers/index.cjs +29 -0
  617. package/out/providers/strategies/helpers/index.cjs.map +7 -0
  618. package/out/providers/strategies/helpers/index.mjs +1 -1
  619. package/out/providers/strategies/helpers/signMessage/signMessage.cjs +84 -0
  620. package/out/providers/strategies/helpers/signMessage/signMessage.cjs.map +7 -0
  621. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  622. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs +51 -0
  623. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs.map +7 -0
  624. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +87 -0
  625. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs.map +7 -0
  626. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  627. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +183 -0
  628. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +7 -0
  629. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  630. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +39 -0
  631. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs.map +7 -0
  632. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +266 -0
  633. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs.map +7 -0
  634. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs +94 -0
  635. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs.map +7 -0
  636. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  637. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs +34 -0
  638. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs.map +7 -0
  639. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs +93 -0
  640. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs.map +7 -0
  641. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs +44 -0
  642. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs.map +7 -0
  643. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs +40 -0
  644. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs.map +7 -0
  645. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs +39 -0
  646. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs.map +7 -0
  647. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs +51 -0
  648. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs.map +7 -0
  649. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs +55 -0
  650. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs.map +7 -0
  651. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  652. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs +36 -0
  653. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs.map +7 -0
  654. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs +37 -0
  655. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs.map +7 -0
  656. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs +127 -0
  657. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs.map +7 -0
  658. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs +119 -0
  659. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs.map +7 -0
  660. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +87 -0
  661. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +7 -0
  662. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs +47 -0
  663. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs.map +7 -0
  664. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs +40 -0
  665. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs.map +7 -0
  666. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +51 -0
  667. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs.map +7 -0
  668. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  669. package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs +34 -0
  670. package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs.map +7 -0
  671. package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +232 -0
  672. package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +7 -0
  673. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  674. package/out/providers/strategies/index.cjs +31 -0
  675. package/out/providers/strategies/index.cjs.map +7 -0
  676. package/out/providers/strategies/index.mjs +1 -1
  677. package/out/providers/types/providerFactory.types.cjs +38 -0
  678. package/out/providers/types/providerFactory.types.cjs.map +7 -0
  679. package/out/providers/types/providerFactory.types.d.ts +1 -0
  680. package/out/providers/types/providerFactory.types.mjs +1 -1
  681. package/out/react/account/useGetAccount.cjs +33 -0
  682. package/out/react/account/useGetAccount.cjs.map +7 -0
  683. package/out/react/account/useGetAccount.mjs +1 -1
  684. package/out/react/account/useGetAccountInfo.cjs +33 -0
  685. package/out/react/account/useGetAccountInfo.cjs.map +7 -0
  686. package/out/react/account/useGetAccountInfo.mjs +1 -1
  687. package/out/react/account/useGetIsLoggedIn.cjs +34 -0
  688. package/out/react/account/useGetIsLoggedIn.cjs.map +7 -0
  689. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  690. package/out/react/account/useGetLatestNonce.cjs +35 -0
  691. package/out/react/account/useGetLatestNonce.cjs.map +7 -0
  692. package/out/react/account/useGetLatestNonce.mjs +1 -1
  693. package/out/react/index.cjs +23 -0
  694. package/out/react/index.cjs.map +7 -0
  695. package/out/react/index.mjs +1 -1
  696. package/out/react/loginInfo/useGetLoginInfo.cjs +36 -0
  697. package/out/react/loginInfo/useGetLoginInfo.cjs.map +7 -0
  698. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  699. package/out/react/network/useGetNetworkConfig.cjs +33 -0
  700. package/out/react/network/useGetNetworkConfig.cjs.map +7 -0
  701. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  702. package/out/react/store/createBoundedStore.cjs +30 -0
  703. package/out/react/store/createBoundedStore.cjs.map +7 -0
  704. package/out/react/store/getReactStore.cjs +31 -0
  705. package/out/react/store/getReactStore.cjs.map +7 -0
  706. package/out/react/store/getReactStore.mjs +1 -1
  707. package/out/react/store/useSelector.cjs +33 -0
  708. package/out/react/store/useSelector.cjs.map +7 -0
  709. package/out/react/store/useSelector.mjs +1 -1
  710. package/out/react/transactions/useGetFailedTransactions.cjs +34 -0
  711. package/out/react/transactions/useGetFailedTransactions.cjs.map +7 -0
  712. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  713. package/out/react/transactions/useGetFailedTransactionsSessions.cjs +34 -0
  714. package/out/react/transactions/useGetFailedTransactionsSessions.cjs.map +7 -0
  715. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  716. package/out/react/transactions/useGetPendingTransactions.cjs +34 -0
  717. package/out/react/transactions/useGetPendingTransactions.cjs.map +7 -0
  718. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  719. package/out/react/transactions/useGetPendingTransactionsSessions.cjs +34 -0
  720. package/out/react/transactions/useGetPendingTransactionsSessions.cjs.map +7 -0
  721. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  722. package/out/react/transactions/useGetSuccessfulTransactions.cjs +34 -0
  723. package/out/react/transactions/useGetSuccessfulTransactions.cjs.map +7 -0
  724. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  725. package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs +36 -0
  726. package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs.map +7 -0
  727. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  728. package/out/react/transactions/useGetTransactionSessions.cjs +34 -0
  729. package/out/react/transactions/useGetTransactionSessions.cjs.map +7 -0
  730. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  731. package/out/services/index.cjs +23 -0
  732. package/out/services/index.cjs.map +7 -0
  733. package/out/services/index.mjs +1 -1
  734. package/out/services/nativeAuth/helpers/decodeLoginToken.cjs +63 -0
  735. package/out/services/nativeAuth/helpers/decodeLoginToken.cjs.map +7 -0
  736. package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs +73 -0
  737. package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs.map +7 -0
  738. package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs +101 -0
  739. package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs.map +7 -0
  740. package/out/services/nativeAuth/helpers/index.cjs +27 -0
  741. package/out/services/nativeAuth/helpers/index.cjs.map +7 -0
  742. package/out/services/nativeAuth/index.cjs +23 -0
  743. package/out/services/nativeAuth/index.cjs.map +7 -0
  744. package/out/services/nativeAuth/index.mjs +1 -1
  745. package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs +42 -0
  746. package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs.map +7 -0
  747. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  748. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs +43 -0
  749. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs.map +7 -0
  750. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  751. package/out/services/nativeAuth/methods/getTokenExpiration.cjs +52 -0
  752. package/out/services/nativeAuth/methods/getTokenExpiration.cjs.map +7 -0
  753. package/out/services/nativeAuth/methods/index.cjs +25 -0
  754. package/out/services/nativeAuth/methods/index.cjs.map +7 -0
  755. package/out/services/nativeAuth/methods/index.mjs +1 -1
  756. package/out/services/nativeAuth/nativeAuth.cjs +82 -0
  757. package/out/services/nativeAuth/nativeAuth.cjs.map +7 -0
  758. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  759. package/out/services/nativeAuth/nativeAuth.types.cjs +17 -0
  760. package/out/services/nativeAuth/nativeAuth.types.cjs.map +7 -0
  761. package/out/store/actions/account/accountActions.cjs +95 -0
  762. package/out/store/actions/account/accountActions.cjs.map +7 -0
  763. package/out/store/actions/account/accountActions.mjs +1 -1
  764. package/out/store/actions/account/index.cjs +23 -0
  765. package/out/store/actions/account/index.cjs.map +7 -0
  766. package/out/store/actions/account/index.mjs +1 -1
  767. package/out/store/actions/cache/cacheActions.cjs +62 -0
  768. package/out/store/actions/cache/cacheActions.cjs.map +7 -0
  769. package/out/store/actions/cache/cacheActions.mjs +1 -1
  770. package/out/store/actions/cache/index.cjs +23 -0
  771. package/out/store/actions/cache/index.cjs.map +7 -0
  772. package/out/store/actions/cache/index.mjs +1 -1
  773. package/out/store/actions/config/configActions.cjs +61 -0
  774. package/out/store/actions/config/configActions.cjs.map +7 -0
  775. package/out/store/actions/config/configActions.mjs +1 -1
  776. package/out/store/actions/config/index.cjs +23 -0
  777. package/out/store/actions/config/index.cjs.map +7 -0
  778. package/out/store/actions/config/index.mjs +1 -1
  779. package/out/store/actions/index.cjs +35 -0
  780. package/out/store/actions/index.cjs.map +7 -0
  781. package/out/store/actions/index.mjs +1 -1
  782. package/out/store/actions/loginInfo/loginInfoActions.cjs +134 -0
  783. package/out/store/actions/loginInfo/loginInfoActions.cjs.map +7 -0
  784. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  785. package/out/store/actions/network/index.cjs +23 -0
  786. package/out/store/actions/network/index.cjs.map +7 -0
  787. package/out/store/actions/network/index.mjs +1 -1
  788. package/out/store/actions/network/initializeNetwork.cjs +71 -0
  789. package/out/store/actions/network/initializeNetwork.cjs.map +7 -0
  790. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  791. package/out/store/actions/network/networkActions.cjs +42 -0
  792. package/out/store/actions/network/networkActions.cjs.map +7 -0
  793. package/out/store/actions/network/networkActions.mjs +1 -1
  794. package/out/store/actions/sharedActions/index.cjs +23 -0
  795. package/out/store/actions/sharedActions/index.cjs.map +7 -0
  796. package/out/store/actions/sharedActions/index.mjs +1 -1
  797. package/out/store/actions/sharedActions/sharedActions.cjs +50 -0
  798. package/out/store/actions/sharedActions/sharedActions.cjs.map +7 -0
  799. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  800. package/out/store/actions/toasts/index.cjs +23 -0
  801. package/out/store/actions/toasts/index.cjs.map +7 -0
  802. package/out/store/actions/toasts/index.mjs +1 -1
  803. package/out/store/actions/toasts/toastsActions.cjs +178 -0
  804. package/out/store/actions/toasts/toastsActions.cjs.map +7 -0
  805. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  806. package/out/store/actions/transactions/transactionStateByStatus.cjs +145 -0
  807. package/out/store/actions/transactions/transactionStateByStatus.cjs.map +7 -0
  808. package/out/store/actions/transactions/transactionsActions.cjs +134 -0
  809. package/out/store/actions/transactions/transactionsActions.cjs.map +7 -0
  810. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  811. package/out/store/actions/ui/index.cjs +23 -0
  812. package/out/store/actions/ui/index.cjs.map +7 -0
  813. package/out/store/actions/ui/index.mjs +1 -1
  814. package/out/store/actions/ui/uiActions.cjs +36 -0
  815. package/out/store/actions/ui/uiActions.cjs.map +7 -0
  816. package/out/store/actions/ui/uiActions.mjs +1 -1
  817. package/out/store/middleware/applyMiddlewares.cjs +32 -0
  818. package/out/store/middleware/applyMiddlewares.cjs.map +7 -0
  819. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  820. package/out/store/middleware/index.cjs +23 -0
  821. package/out/store/middleware/index.cjs.map +7 -0
  822. package/out/store/middleware/index.mjs +1 -1
  823. package/out/store/middleware/logoutMiddleware.cjs +79 -0
  824. package/out/store/middleware/logoutMiddleware.cjs.map +7 -0
  825. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  826. package/out/store/selectors/accountSelectors.cjs +61 -0
  827. package/out/store/selectors/accountSelectors.cjs.map +7 -0
  828. package/out/store/selectors/cacheSelector.cjs +32 -0
  829. package/out/store/selectors/cacheSelector.cjs.map +7 -0
  830. package/out/store/selectors/configSelectors.cjs +37 -0
  831. package/out/store/selectors/configSelectors.cjs.map +7 -0
  832. package/out/store/selectors/index.cjs +33 -0
  833. package/out/store/selectors/index.cjs.map +7 -0
  834. package/out/store/selectors/loginInfoSelectors.cjs +44 -0
  835. package/out/store/selectors/loginInfoSelectors.cjs.map +7 -0
  836. package/out/store/selectors/networkSelectors.cjs +43 -0
  837. package/out/store/selectors/networkSelectors.cjs.map +7 -0
  838. package/out/store/selectors/storeSelector.cjs +29 -0
  839. package/out/store/selectors/storeSelector.cjs.map +7 -0
  840. package/out/store/selectors/toastsSelectors.cjs +35 -0
  841. package/out/store/selectors/toastsSelectors.cjs.map +7 -0
  842. package/out/store/selectors/transactionsSelector.cjs +151 -0
  843. package/out/store/selectors/transactionsSelector.cjs.map +7 -0
  844. package/out/store/selectors/uiSelectors.cjs +32 -0
  845. package/out/store/selectors/uiSelectors.cjs.map +7 -0
  846. package/out/store/slices/account/account.types.cjs +17 -0
  847. package/out/store/slices/account/account.types.cjs.map +7 -0
  848. package/out/store/slices/account/accountSlice.cjs +44 -0
  849. package/out/store/slices/account/accountSlice.cjs.map +7 -0
  850. package/out/store/slices/account/emptyAccount.cjs +39 -0
  851. package/out/store/slices/account/emptyAccount.cjs.map +7 -0
  852. package/out/store/slices/account/index.cjs +29 -0
  853. package/out/store/slices/account/index.cjs.map +7 -0
  854. package/out/store/slices/cache/cacheSlice.cjs +35 -0
  855. package/out/store/slices/cache/cacheSlice.cjs.map +7 -0
  856. package/out/store/slices/cache/cacheSlice.types.cjs +17 -0
  857. package/out/store/slices/cache/cacheSlice.types.cjs.map +7 -0
  858. package/out/store/slices/cache/index.cjs +29 -0
  859. package/out/store/slices/cache/index.cjs.map +7 -0
  860. package/out/store/slices/config/config.types.cjs +17 -0
  861. package/out/store/slices/config/config.types.cjs.map +7 -0
  862. package/out/store/slices/config/configSlice.cjs +38 -0
  863. package/out/store/slices/config/configSlice.cjs.map +7 -0
  864. package/out/store/slices/config/index.cjs +29 -0
  865. package/out/store/slices/config/index.cjs.map +7 -0
  866. package/out/store/slices/index.cjs +35 -0
  867. package/out/store/slices/index.cjs.map +7 -0
  868. package/out/store/slices/loginInfo/index.cjs +29 -0
  869. package/out/store/slices/loginInfo/index.cjs.map +7 -0
  870. package/out/store/slices/loginInfo/loginInfo.types.cjs +17 -0
  871. package/out/store/slices/loginInfo/loginInfo.types.cjs.map +7 -0
  872. package/out/store/slices/loginInfo/loginInfoSlice.cjs +45 -0
  873. package/out/store/slices/loginInfo/loginInfoSlice.cjs.map +7 -0
  874. package/out/store/slices/network/emptyNetwork.cjs +42 -0
  875. package/out/store/slices/network/emptyNetwork.cjs.map +7 -0
  876. package/out/store/slices/network/index.cjs +29 -0
  877. package/out/store/slices/network/index.cjs.map +7 -0
  878. package/out/store/slices/network/network.types.cjs +17 -0
  879. package/out/store/slices/network/network.types.cjs.map +7 -0
  880. package/out/store/slices/network/networkSlice.cjs +36 -0
  881. package/out/store/slices/network/networkSlice.cjs.map +7 -0
  882. package/out/store/slices/network/networkSlice.types.cjs +17 -0
  883. package/out/store/slices/network/networkSlice.types.cjs.map +7 -0
  884. package/out/store/slices/toast/index.cjs +29 -0
  885. package/out/store/slices/toast/index.cjs.map +7 -0
  886. package/out/store/slices/toast/toastSlice.cjs +38 -0
  887. package/out/store/slices/toast/toastSlice.cjs.map +7 -0
  888. package/out/store/slices/toast/toastSlice.types.cjs +17 -0
  889. package/out/store/slices/toast/toastSlice.types.cjs.map +7 -0
  890. package/out/store/slices/transactions/index.cjs +29 -0
  891. package/out/store/slices/transactions/index.cjs.map +7 -0
  892. package/out/store/slices/transactions/transactionsSlice.cjs +35 -0
  893. package/out/store/slices/transactions/transactionsSlice.cjs.map +7 -0
  894. package/out/store/slices/transactions/transactionsSlice.types.cjs +17 -0
  895. package/out/store/slices/transactions/transactionsSlice.types.cjs.map +7 -0
  896. package/out/store/slices/ui/index.cjs +29 -0
  897. package/out/store/slices/ui/index.cjs.map +7 -0
  898. package/out/store/slices/ui/ui.types.cjs +17 -0
  899. package/out/store/slices/ui/ui.types.cjs.map +7 -0
  900. package/out/store/slices/ui/uiSlice.cjs +35 -0
  901. package/out/store/slices/ui/uiSlice.cjs.map +7 -0
  902. package/out/store/storage/inMemoryStorage.cjs +52 -0
  903. package/out/store/storage/inMemoryStorage.cjs.map +7 -0
  904. package/out/store/storage/index.cjs +25 -0
  905. package/out/store/storage/index.cjs.map +7 -0
  906. package/out/store/storage/index.mjs +1 -1
  907. package/out/store/storage/storageCallback.cjs +30 -0
  908. package/out/store/storage/storageCallback.cjs.map +7 -0
  909. package/out/store/storage/storageCallback.mjs +1 -1
  910. package/out/store/store.cjs +81 -0
  911. package/out/store/store.cjs.map +7 -0
  912. package/out/store/store.mjs +1 -1
  913. package/out/store/store.types.cjs +17 -0
  914. package/out/store/store.types.cjs.map +7 -0
  915. package/out/types/account.types.cjs +17 -0
  916. package/out/types/account.types.cjs.map +7 -0
  917. package/out/types/enums.types.cjs +120 -0
  918. package/out/types/enums.types.cjs.map +7 -0
  919. package/out/types/index.cjs +35 -0
  920. package/out/types/index.cjs.map +7 -0
  921. package/out/types/login.types.cjs +17 -0
  922. package/out/types/login.types.cjs.map +7 -0
  923. package/out/types/manager.types.cjs +17 -0
  924. package/out/types/manager.types.cjs.map +7 -0
  925. package/out/types/network.types.cjs +17 -0
  926. package/out/types/network.types.cjs.map +7 -0
  927. package/out/types/provider.types.cjs +35 -0
  928. package/out/types/provider.types.cjs.map +7 -0
  929. package/out/types/serverTransactions.types.cjs +155 -0
  930. package/out/types/serverTransactions.types.cjs.map +7 -0
  931. package/out/types/subscriptions.type.cjs +34 -0
  932. package/out/types/subscriptions.type.cjs.map +7 -0
  933. package/out/types/suspiciousLink.types.cjs +17 -0
  934. package/out/types/suspiciousLink.types.cjs.map +7 -0
  935. package/out/types/theme.types.cjs +34 -0
  936. package/out/types/theme.types.cjs.map +7 -0
  937. package/out/types/tokens.types.cjs +40 -0
  938. package/out/types/tokens.types.cjs.map +7 -0
  939. package/out/types/transaction-list-item.types.cjs +115 -0
  940. package/out/types/transaction-list-item.types.cjs.map +7 -0
  941. package/out/types/transactions.types.cjs +35 -0
  942. package/out/types/transactions.types.cjs.map +7 -0
  943. package/out/types/transactions.types.d.ts +1 -1
  944. package/out/types/transactions.types.mjs.map +1 -1
  945. package/out/types/websocket.types.cjs +17 -0
  946. package/out/types/websocket.types.cjs.map +7 -0
  947. package/out/utils/ComponentFactory.cjs +51 -0
  948. package/out/utils/ComponentFactory.cjs.map +7 -0
  949. package/out/utils/ComponentFactory.d.ts +1 -1
  950. package/out/utils/ComponentFactory.mjs +1 -1
  951. package/out/utils/account/fetchAccount.cjs +30 -0
  952. package/out/utils/account/fetchAccount.cjs.map +7 -0
  953. package/out/utils/account/index.cjs +29 -0
  954. package/out/utils/account/index.cjs.map +7 -0
  955. package/out/utils/account/index.mjs +1 -1
  956. package/out/utils/account/refreshAccount.cjs +80 -0
  957. package/out/utils/account/refreshAccount.cjs.map +7 -0
  958. package/out/utils/account/refreshAccount.mjs +1 -1
  959. package/out/utils/account/refreshNativeAuthTokenLogin.cjs +66 -0
  960. package/out/utils/account/refreshNativeAuthTokenLogin.cjs.map +7 -0
  961. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  962. package/out/utils/account/trimUsernameDomain.cjs +36 -0
  963. package/out/utils/account/trimUsernameDomain.cjs.map +7 -0
  964. package/out/utils/asyncActions/index.cjs +23 -0
  965. package/out/utils/asyncActions/index.cjs.map +7 -0
  966. package/out/utils/asyncActions/sleep.cjs +36 -0
  967. package/out/utils/asyncActions/sleep.cjs.map +7 -0
  968. package/out/utils/dateTime/getUnixTimestamp.cjs +31 -0
  969. package/out/utils/dateTime/getUnixTimestamp.cjs.map +7 -0
  970. package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs +33 -0
  971. package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs.map +7 -0
  972. package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs +31 -0
  973. package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs.map +7 -0
  974. package/out/utils/dateTime/index.cjs +27 -0
  975. package/out/utils/dateTime/index.cjs.map +7 -0
  976. package/out/utils/decoders/base64Utils.cjs +58 -0
  977. package/out/utils/decoders/base64Utils.cjs.map +7 -0
  978. package/out/utils/decoders/decodePart.cjs +40 -0
  979. package/out/utils/decoders/decodePart.cjs.map +7 -0
  980. package/out/utils/decoders/index.cjs +31 -0
  981. package/out/utils/decoders/index.cjs.map +7 -0
  982. package/out/utils/decoders/isAscii.cjs +29 -0
  983. package/out/utils/decoders/isAscii.cjs.map +7 -0
  984. package/out/utils/decoders/isUtf8.cjs +36 -0
  985. package/out/utils/decoders/isUtf8.cjs.map +7 -0
  986. package/out/utils/decoders/stringContainsNumbers.cjs +29 -0
  987. package/out/utils/decoders/stringContainsNumbers.cjs.map +7 -0
  988. package/out/utils/index.cjs +41 -0
  989. package/out/utils/index.cjs.map +7 -0
  990. package/out/utils/index.mjs +1 -1
  991. package/out/utils/network/index.cjs +23 -0
  992. package/out/utils/network/index.cjs.map +7 -0
  993. package/out/utils/network/setAxiosInterceptors.cjs +67 -0
  994. package/out/utils/network/setAxiosInterceptors.cjs.map +7 -0
  995. package/out/utils/operations/capitalize.cjs +29 -0
  996. package/out/utils/operations/capitalize.cjs.map +7 -0
  997. package/out/utils/operations/getUsdValue.cjs +46 -0
  998. package/out/utils/operations/getUsdValue.cjs.map +7 -0
  999. package/out/utils/operations/pluralize.cjs +29 -0
  1000. package/out/utils/operations/pluralize.cjs.map +7 -0
  1001. package/out/utils/operations/timeRemaining.cjs +110 -0
  1002. package/out/utils/operations/timeRemaining.cjs.map +7 -0
  1003. package/out/utils/operations/trimAmountDecimals.cjs +60 -0
  1004. package/out/utils/operations/trimAmountDecimals.cjs.map +7 -0
  1005. package/out/utils/retryMultipleTimes.cjs +45 -0
  1006. package/out/utils/retryMultipleTimes.cjs.map +7 -0
  1007. package/out/utils/transactions/explorerUrlBuilder.cjs +54 -0
  1008. package/out/utils/transactions/explorerUrlBuilder.cjs.map +7 -0
  1009. package/out/utils/transactions/getActiveTransactionsStatus.cjs +47 -0
  1010. package/out/utils/transactions/getActiveTransactionsStatus.cjs.map +7 -0
  1011. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  1012. package/out/utils/transactions/getExplorerLink.cjs +50 -0
  1013. package/out/utils/transactions/getExplorerLink.cjs.map +7 -0
  1014. package/out/utils/transactions/getHumanReadableTimeFormat.cjs +47 -0
  1015. package/out/utils/transactions/getHumanReadableTimeFormat.cjs.map +7 -0
  1016. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +110 -0
  1017. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs.map +7 -0
  1018. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  1019. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs +50 -0
  1020. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs.map +7 -0
  1021. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +107 -0
  1022. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs.map +7 -0
  1023. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs +36 -0
  1024. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs.map +7 -0
  1025. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs +55 -0
  1026. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs.map +7 -0
  1027. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs +71 -0
  1028. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs.map +7 -0
  1029. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs +41 -0
  1030. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs.map +7 -0
  1031. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs +54 -0
  1032. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs.map +7 -0
  1033. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs +60 -0
  1034. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs.map +7 -0
  1035. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs +53 -0
  1036. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs.map +7 -0
  1037. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs +37 -0
  1038. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs.map +7 -0
  1039. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs +33 -0
  1040. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs.map +7 -0
  1041. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs +23 -0
  1042. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs.map +7 -0
  1043. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs +17 -0
  1044. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs.map +7 -0
  1045. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +83 -0
  1046. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs.map +7 -0
  1047. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  1048. package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs +31 -0
  1049. package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs.map +7 -0
  1050. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +66 -0
  1051. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs.map +7 -0
  1052. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  1053. package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs +31 -0
  1054. package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs.map +7 -0
  1055. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +44 -0
  1056. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs.map +7 -0
  1057. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  1058. package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs +122 -0
  1059. package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs.map +7 -0
  1060. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +47 -0
  1061. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs.map +7 -0
  1062. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  1063. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs +40 -0
  1064. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs.map +7 -0
  1065. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  1066. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs +44 -0
  1067. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs.map +7 -0
  1068. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs +35 -0
  1069. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs.map +7 -0
  1070. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs +33 -0
  1071. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs.map +7 -0
  1072. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs +42 -0
  1073. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs.map +7 -0
  1074. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs +41 -0
  1075. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs.map +7 -0
  1076. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs +50 -0
  1077. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs.map +7 -0
  1078. package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs +47 -0
  1079. package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs.map +7 -0
  1080. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  1081. package/out/utils/transactions/getInterpretedTransaction/index.cjs +25 -0
  1082. package/out/utils/transactions/getInterpretedTransaction/index.cjs.map +7 -0
  1083. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  1084. package/out/utils/transactions/getScamFlag.cjs +88 -0
  1085. package/out/utils/transactions/getScamFlag.cjs.map +7 -0
  1086. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs +57 -0
  1087. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs.map +7 -0
  1088. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  1089. package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs +40 -0
  1090. package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs.map +7 -0
  1091. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs +64 -0
  1092. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs.map +7 -0
  1093. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs +53 -0
  1094. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs.map +7 -0
  1095. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs +36 -0
  1096. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs.map +7 -0
  1097. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  1098. package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs +39 -0
  1099. package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs.map +7 -0
  1100. package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs +37 -0
  1101. package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs.map +7 -0
  1102. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs +113 -0
  1103. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs.map +7 -0
  1104. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs +59 -0
  1105. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs.map +7 -0
  1106. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs +75 -0
  1107. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs.map +7 -0
  1108. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs +63 -0
  1109. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs.map +7 -0
  1110. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs +91 -0
  1111. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs.map +7 -0
  1112. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs +66 -0
  1113. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs.map +7 -0
  1114. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs +38 -0
  1115. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs.map +7 -0
  1116. package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs +50 -0
  1117. package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs.map +7 -0
  1118. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  1119. package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs +38 -0
  1120. package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs.map +7 -0
  1121. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs +95 -0
  1122. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs.map +7 -0
  1123. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  1124. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs +81 -0
  1125. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs.map +7 -0
  1126. package/out/utils/transactions/getTransactionsHistory/index.cjs +25 -0
  1127. package/out/utils/transactions/getTransactionsHistory/index.cjs.map +7 -0
  1128. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  1129. package/out/utils/transactions/index.cjs +29 -0
  1130. package/out/utils/transactions/index.cjs.map +7 -0
  1131. package/out/utils/transactions/index.mjs +1 -1
  1132. package/out/utils/transactions/isGuardianTx.cjs +43 -0
  1133. package/out/utils/transactions/isGuardianTx.cjs.map +7 -0
  1134. package/out/utils/validation/addressIsValid.cjs +40 -0
  1135. package/out/utils/validation/addressIsValid.cjs.map +7 -0
  1136. package/out/utils/validation/getIdentifierType.cjs +54 -0
  1137. package/out/utils/validation/getIdentifierType.cjs.map +7 -0
  1138. package/out/utils/validation/hex.cjs +36 -0
  1139. package/out/utils/validation/hex.cjs.map +7 -0
  1140. package/out/utils/validation/index.cjs +31 -0
  1141. package/out/utils/validation/index.cjs.map +7 -0
  1142. package/out/utils/validation/isContract.cjs +96 -0
  1143. package/out/utils/validation/isContract.cjs.map +7 -0
  1144. package/out/utils/validation/maxDecimals.cjs +34 -0
  1145. package/out/utils/validation/maxDecimals.cjs.map +7 -0
  1146. package/out/utils/visual/index.cjs +23 -0
  1147. package/out/utils/visual/index.cjs.map +7 -0
  1148. package/out/utils/visual/index.mjs +1 -1
  1149. package/out/utils/visual/switchTheme.cjs +38 -0
  1150. package/out/utils/visual/switchTheme.cjs.map +7 -0
  1151. package/out/utils/visual/switchTheme.mjs +1 -1
  1152. package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.cjs +36 -0
  1153. package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.cjs.map +7 -0
  1154. package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
  1155. package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs +34 -0
  1156. package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs.map +7 -0
  1157. package/out/utils/window/buildUrlParams.cjs +37 -0
  1158. package/out/utils/window/buildUrlParams.cjs.map +7 -0
  1159. package/out/utils/window/getIsAuthRoute.cjs +38 -0
  1160. package/out/utils/window/getIsAuthRoute.cjs.map +7 -0
  1161. package/out/utils/window/getIsInIframe.cjs +44 -0
  1162. package/out/utils/window/getIsInIframe.cjs.map +7 -0
  1163. package/out/utils/window/getIsInIframe.mjs +1 -1
  1164. package/out/utils/window/getWindowLocation.cjs +56 -0
  1165. package/out/utils/window/getWindowLocation.cjs.map +7 -0
  1166. package/out/utils/window/getWindowParentOrigin.cjs +47 -0
  1167. package/out/utils/window/getWindowParentOrigin.cjs.map +7 -0
  1168. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  1169. package/out/utils/window/index.cjs +33 -0
  1170. package/out/utils/window/index.cjs.map +7 -0
  1171. package/out/utils/window/index.mjs +1 -1
  1172. package/out/utils/window/isWindowAvailable.cjs +29 -0
  1173. package/out/utils/window/isWindowAvailable.cjs.map +7 -0
  1174. package/out/utils/window/matchPath.cjs +114 -0
  1175. package/out/utils/window/matchPath.cjs.map +7 -0
  1176. package/out/utils/window/sanitizeCallbackUrl.cjs +39 -0
  1177. package/out/utils/window/sanitizeCallbackUrl.cjs.map +7 -0
  1178. package/package.json +3 -3
  1179. package/out/__chunks__/chunk-24YYMWQL.mjs +0 -2
  1180. package/out/__chunks__/chunk-2GOJSBHM.mjs +0 -2
  1181. package/out/__chunks__/chunk-3KJKVWZX.mjs +0 -2
  1182. package/out/__chunks__/chunk-3MEAYEOP.mjs +0 -2
  1183. package/out/__chunks__/chunk-4WOBJUND.mjs +0 -2
  1184. package/out/__chunks__/chunk-57JT3YYO.mjs +0 -2
  1185. package/out/__chunks__/chunk-5CBADUK2.mjs +0 -2
  1186. package/out/__chunks__/chunk-5EIUN6H3.mjs +0 -2
  1187. package/out/__chunks__/chunk-5PFAZNIO.mjs +0 -2
  1188. package/out/__chunks__/chunk-5PFAZNIO.mjs.map +0 -7
  1189. package/out/__chunks__/chunk-62NTXA3Q.mjs +0 -2
  1190. package/out/__chunks__/chunk-64YGT5EQ.mjs +0 -2
  1191. package/out/__chunks__/chunk-6K5K2OJF.mjs +0 -2
  1192. package/out/__chunks__/chunk-6QSDEIFP.mjs +0 -2
  1193. package/out/__chunks__/chunk-A3CN5JWD.mjs +0 -2
  1194. package/out/__chunks__/chunk-AFO4MJ3Y.mjs +0 -2
  1195. package/out/__chunks__/chunk-AL3SMFKF.mjs +0 -2
  1196. package/out/__chunks__/chunk-ANRHXERH.mjs +0 -2
  1197. package/out/__chunks__/chunk-AZOEX4RJ.mjs +0 -2
  1198. package/out/__chunks__/chunk-B3E34X2P.mjs +0 -2
  1199. package/out/__chunks__/chunk-B5DFRWKW.mjs +0 -2
  1200. package/out/__chunks__/chunk-B5OM6BTD.mjs +0 -2
  1201. package/out/__chunks__/chunk-BDAB6XQS.mjs +0 -2
  1202. package/out/__chunks__/chunk-BHRUDWJV.mjs +0 -2
  1203. package/out/__chunks__/chunk-BPYUCILD.mjs +0 -2
  1204. package/out/__chunks__/chunk-BZCIDXIT.mjs +0 -2
  1205. package/out/__chunks__/chunk-CA5CTMET.mjs +0 -2
  1206. package/out/__chunks__/chunk-CKPRCP4B.mjs +0 -2
  1207. package/out/__chunks__/chunk-CUSPTSTX.mjs +0 -2
  1208. package/out/__chunks__/chunk-CV6QXSKF.mjs +0 -2
  1209. package/out/__chunks__/chunk-CXEW3QBW.mjs +0 -2
  1210. package/out/__chunks__/chunk-D5DPZ3O3.mjs +0 -2
  1211. package/out/__chunks__/chunk-DCD7Z6NA.mjs +0 -2
  1212. package/out/__chunks__/chunk-E26YTVSR.mjs +0 -2
  1213. package/out/__chunks__/chunk-EDKNWPTP.mjs +0 -2
  1214. package/out/__chunks__/chunk-EDKNWPTP.mjs.map +0 -7
  1215. package/out/__chunks__/chunk-F3VTVR46.mjs +0 -2
  1216. package/out/__chunks__/chunk-F7QRSVP4.mjs +0 -2
  1217. package/out/__chunks__/chunk-FINVDQGG.mjs +0 -2
  1218. package/out/__chunks__/chunk-FK73FOXL.mjs +0 -2
  1219. package/out/__chunks__/chunk-FYJSQ5IQ.mjs +0 -2
  1220. package/out/__chunks__/chunk-H3YYJVD2.mjs +0 -2
  1221. package/out/__chunks__/chunk-IEGMED5L.mjs +0 -2
  1222. package/out/__chunks__/chunk-IFIL5YA5.mjs +0 -2
  1223. package/out/__chunks__/chunk-IFIL5YA5.mjs.map +0 -7
  1224. package/out/__chunks__/chunk-ITL2BSZK.mjs +0 -2
  1225. package/out/__chunks__/chunk-J7WSX6RF.mjs +0 -2
  1226. package/out/__chunks__/chunk-JGHTVPC7.mjs +0 -2
  1227. package/out/__chunks__/chunk-JKR3KSKZ.mjs +0 -2
  1228. package/out/__chunks__/chunk-KELD3JME.mjs +0 -2
  1229. package/out/__chunks__/chunk-KRHBIYXH.mjs +0 -2
  1230. package/out/__chunks__/chunk-MEGLLCCR.mjs +0 -2
  1231. package/out/__chunks__/chunk-MPCAGTJW.mjs +0 -2
  1232. package/out/__chunks__/chunk-NQSC7H2H.mjs +0 -2
  1233. package/out/__chunks__/chunk-OO76QA6O.mjs +0 -2
  1234. package/out/__chunks__/chunk-OZ4ZZI3H.mjs +0 -2
  1235. package/out/__chunks__/chunk-PHBORH3K.mjs +0 -2
  1236. package/out/__chunks__/chunk-PHBORH3K.mjs.map +0 -7
  1237. package/out/__chunks__/chunk-PHT4H7NQ.mjs +0 -2
  1238. package/out/__chunks__/chunk-PL64ZI4J.mjs +0 -2
  1239. package/out/__chunks__/chunk-PO5CKWAW.mjs +0 -2
  1240. package/out/__chunks__/chunk-Q3WLMRWP.mjs +0 -2
  1241. package/out/__chunks__/chunk-Q6O5CYQO.mjs +0 -2
  1242. package/out/__chunks__/chunk-QC2L7ZLQ.mjs +0 -2
  1243. package/out/__chunks__/chunk-QW3IVSVZ.mjs +0 -2
  1244. package/out/__chunks__/chunk-QWV25ZSJ.mjs +0 -2
  1245. package/out/__chunks__/chunk-RJSOXNSA.mjs +0 -2
  1246. package/out/__chunks__/chunk-RNLXKFRP.mjs +0 -2
  1247. package/out/__chunks__/chunk-RZURE24V.mjs +0 -2
  1248. package/out/__chunks__/chunk-S2FQWSUO.mjs +0 -2
  1249. package/out/__chunks__/chunk-S2FQWSUO.mjs.map +0 -7
  1250. package/out/__chunks__/chunk-S4QEQGMS.mjs +0 -2
  1251. package/out/__chunks__/chunk-S7K3MC3O.mjs +0 -2
  1252. package/out/__chunks__/chunk-T7DLVQ6J.mjs +0 -2
  1253. package/out/__chunks__/chunk-THNK25ZD.mjs +0 -2
  1254. package/out/__chunks__/chunk-TI73UXGG.mjs +0 -2
  1255. package/out/__chunks__/chunk-TNL55CRB.mjs +0 -2
  1256. package/out/__chunks__/chunk-UBLZ4XV2.mjs +0 -2
  1257. package/out/__chunks__/chunk-WS2TTYTH.mjs +0 -2
  1258. package/out/__chunks__/chunk-WTNCKB4A.mjs +0 -2
  1259. package/out/__chunks__/chunk-XAYCFZAU.mjs +0 -2
  1260. package/out/__chunks__/chunk-XIXT6MEM.mjs +0 -2
  1261. package/out/__chunks__/chunk-Y3FWIS2E.mjs +0 -2
  1262. package/out/__chunks__/chunk-Y7YFB6KR.mjs +0 -2
  1263. package/out/__chunks__/chunk-YFM4XPJB.mjs +0 -2
  1264. package/out/__chunks__/chunk-YRMDKZSS.mjs +0 -2
  1265. package/out/__chunks__/chunk-YRRGPWNG.mjs +0 -2
  1266. package/out/__chunks__/chunk-Z36DGV3K.mjs +0 -2
  1267. package/out/__chunks__/chunk-ZECWUL7N.mjs +0 -2
  1268. package/out/__chunks__/chunk-ZECWUL7N.mjs.map +0 -7
  1269. package/out/__chunks__/chunk-ZT7AZLRE.mjs +0 -2
  1270. package/out/__chunks__/chunk-ZW3NEESY.mjs +0 -2
  1271. /package/out/__chunks__/{chunk-A3CN5JWD.mjs.map → chunk-22CLXEB2.mjs.map} +0 -0
  1272. /package/out/__chunks__/{chunk-FINVDQGG.mjs.map → chunk-3FX5RTHT.mjs.map} +0 -0
  1273. /package/out/__chunks__/{chunk-FK73FOXL.mjs.map → chunk-456YSI54.mjs.map} +0 -0
  1274. /package/out/__chunks__/{chunk-CV6QXSKF.mjs.map → chunk-4ZQAHMC7.mjs.map} +0 -0
  1275. /package/out/__chunks__/{chunk-QW3IVSVZ.mjs.map → chunk-5HV6ENMZ.mjs.map} +0 -0
  1276. /package/out/__chunks__/{chunk-J7WSX6RF.mjs.map → chunk-5HWBV7UA.mjs.map} +0 -0
  1277. /package/out/__chunks__/{chunk-KELD3JME.mjs.map → chunk-5ZNSOJRW.mjs.map} +0 -0
  1278. /package/out/__chunks__/{chunk-Q3WLMRWP.mjs.map → chunk-653M72HI.mjs.map} +0 -0
  1279. /package/out/__chunks__/{chunk-FYJSQ5IQ.mjs.map → chunk-6LQPIIN7.mjs.map} +0 -0
  1280. /package/out/__chunks__/{chunk-PL64ZI4J.mjs.map → chunk-6QUYC43H.mjs.map} +0 -0
  1281. /package/out/__chunks__/{chunk-QWV25ZSJ.mjs.map → chunk-76URRONH.mjs.map} +0 -0
  1282. /package/out/__chunks__/{chunk-AFO4MJ3Y.mjs.map → chunk-AAT5TA2C.mjs.map} +0 -0
  1283. /package/out/__chunks__/{chunk-T7DLVQ6J.mjs.map → chunk-AOT45CLU.mjs.map} +0 -0
  1284. /package/out/__chunks__/{chunk-CUSPTSTX.mjs.map → chunk-BIKDLBHK.mjs.map} +0 -0
  1285. /package/out/__chunks__/{chunk-YRRGPWNG.mjs.map → chunk-BLNUEDNB.mjs.map} +0 -0
  1286. /package/out/__chunks__/{chunk-TI73UXGG.mjs.map → chunk-CDQ2BNUD.mjs.map} +0 -0
  1287. /package/out/__chunks__/{chunk-H3YYJVD2.mjs.map → chunk-CQFFB5WA.mjs.map} +0 -0
  1288. /package/out/__chunks__/{chunk-RJSOXNSA.mjs.map → chunk-EHU6U444.mjs.map} +0 -0
  1289. /package/out/__chunks__/{chunk-AZOEX4RJ.mjs.map → chunk-EQSRTMFM.mjs.map} +0 -0
  1290. /package/out/__chunks__/{chunk-B5DFRWKW.mjs.map → chunk-F7TDWWAZ.mjs.map} +0 -0
  1291. /package/out/__chunks__/{chunk-4WOBJUND.mjs.map → chunk-FWC42IFM.mjs.map} +0 -0
  1292. /package/out/__chunks__/{chunk-D5DPZ3O3.mjs.map → chunk-FYA6M3N3.mjs.map} +0 -0
  1293. /package/out/__chunks__/{chunk-OZ4ZZI3H.mjs.map → chunk-G4Z3ZQR6.mjs.map} +0 -0
  1294. /package/out/__chunks__/{chunk-MEGLLCCR.mjs.map → chunk-HF5UK7AF.mjs.map} +0 -0
  1295. /package/out/__chunks__/{chunk-PHT4H7NQ.mjs.map → chunk-HLBGYEYU.mjs.map} +0 -0
  1296. /package/out/__chunks__/{chunk-ZT7AZLRE.mjs.map → chunk-HLNCW36T.mjs.map} +0 -0
  1297. /package/out/__chunks__/{chunk-XIXT6MEM.mjs.map → chunk-IRLEEOUA.mjs.map} +0 -0
  1298. /package/out/__chunks__/{chunk-BHRUDWJV.mjs.map → chunk-J55M6HRJ.mjs.map} +0 -0
  1299. /package/out/__chunks__/{chunk-S4QEQGMS.mjs.map → chunk-JBF4OOHG.mjs.map} +0 -0
  1300. /package/out/__chunks__/{chunk-RNLXKFRP.mjs.map → chunk-JIDXMYLT.mjs.map} +0 -0
  1301. /package/out/__chunks__/{chunk-OO76QA6O.mjs.map → chunk-JQ6DWF4A.mjs.map} +0 -0
  1302. /package/out/__chunks__/{chunk-CKPRCP4B.mjs.map → chunk-KE7YRXWM.mjs.map} +0 -0
  1303. /package/out/__chunks__/{chunk-AL3SMFKF.mjs.map → chunk-KIU22HW5.mjs.map} +0 -0
  1304. /package/out/__chunks__/{chunk-24YYMWQL.mjs.map → chunk-KK2BMMWL.mjs.map} +0 -0
  1305. /package/out/__chunks__/{chunk-BPYUCILD.mjs.map → chunk-KZAQIHS2.mjs.map} +0 -0
  1306. /package/out/__chunks__/{chunk-F3VTVR46.mjs.map → chunk-LG4JGQOF.mjs.map} +0 -0
  1307. /package/out/__chunks__/{chunk-6K5K2OJF.mjs.map → chunk-MOJR7L2A.mjs.map} +0 -0
  1308. /package/out/__chunks__/{chunk-B3E34X2P.mjs.map → chunk-MSYOA2HY.mjs.map} +0 -0
  1309. /package/out/__chunks__/{chunk-CXEW3QBW.mjs.map → chunk-N6PKXG4Q.mjs.map} +0 -0
  1310. /package/out/__chunks__/{chunk-KRHBIYXH.mjs.map → chunk-NDIJUIRP.mjs.map} +0 -0
  1311. /package/out/__chunks__/{chunk-NQSC7H2H.mjs.map → chunk-NTGUPGTV.mjs.map} +0 -0
  1312. /package/out/__chunks__/{chunk-S7K3MC3O.mjs.map → chunk-NVLWSC4J.mjs.map} +0 -0
  1313. /package/out/__chunks__/{chunk-IEGMED5L.mjs.map → chunk-OIJVN33N.mjs.map} +0 -0
  1314. /package/out/__chunks__/{chunk-XAYCFZAU.mjs.map → chunk-OLPUNT27.mjs.map} +0 -0
  1315. /package/out/__chunks__/{chunk-PO5CKWAW.mjs.map → chunk-P5RC6PN5.mjs.map} +0 -0
  1316. /package/out/__chunks__/{chunk-MPCAGTJW.mjs.map → chunk-PJAESU4Q.mjs.map} +0 -0
  1317. /package/out/__chunks__/{chunk-5EIUN6H3.mjs.map → chunk-PZYLVHXW.mjs.map} +0 -0
  1318. /package/out/__chunks__/{chunk-F7QRSVP4.mjs.map → chunk-RJKYCUB2.mjs.map} +0 -0
  1319. /package/out/__chunks__/{chunk-Q6O5CYQO.mjs.map → chunk-RQ5H245L.mjs.map} +0 -0
  1320. /package/out/__chunks__/{chunk-2GOJSBHM.mjs.map → chunk-S75Q25RY.mjs.map} +0 -0
  1321. /package/out/__chunks__/{chunk-ITL2BSZK.mjs.map → chunk-SF4BD7ZP.mjs.map} +0 -0
  1322. /package/out/__chunks__/{chunk-6QSDEIFP.mjs.map → chunk-SIRUYWHD.mjs.map} +0 -0
  1323. /package/out/__chunks__/{chunk-Y7YFB6KR.mjs.map → chunk-SMLKNW6G.mjs.map} +0 -0
  1324. /package/out/__chunks__/{chunk-64YGT5EQ.mjs.map → chunk-SXX3XHAW.mjs.map} +0 -0
  1325. /package/out/__chunks__/{chunk-BDAB6XQS.mjs.map → chunk-TUKLXZGE.mjs.map} +0 -0
  1326. /package/out/__chunks__/{chunk-5CBADUK2.mjs.map → chunk-TX6KTAJL.mjs.map} +0 -0
  1327. /package/out/__chunks__/{chunk-YRMDKZSS.mjs.map → chunk-UJJ2TXN5.mjs.map} +0 -0
  1328. /package/out/__chunks__/{chunk-E26YTVSR.mjs.map → chunk-UOUYS55Y.mjs.map} +0 -0
  1329. /package/out/__chunks__/{chunk-ANRHXERH.mjs.map → chunk-UZOPRGVU.mjs.map} +0 -0
  1330. /package/out/__chunks__/{chunk-Y3FWIS2E.mjs.map → chunk-UZV2AYS7.mjs.map} +0 -0
  1331. /package/out/__chunks__/{chunk-YFM4XPJB.mjs.map → chunk-V3FPOJA5.mjs.map} +0 -0
  1332. /package/out/__chunks__/{chunk-Z36DGV3K.mjs.map → chunk-V7PT3KKW.mjs.map} +0 -0
  1333. /package/out/__chunks__/{chunk-BZCIDXIT.mjs.map → chunk-VBMIE7MG.mjs.map} +0 -0
  1334. /package/out/__chunks__/{chunk-62NTXA3Q.mjs.map → chunk-VJOUHZ3O.mjs.map} +0 -0
  1335. /package/out/__chunks__/{chunk-UBLZ4XV2.mjs.map → chunk-VPS6ARX6.mjs.map} +0 -0
  1336. /package/out/__chunks__/{chunk-B5OM6BTD.mjs.map → chunk-VWJRTO5A.mjs.map} +0 -0
  1337. /package/out/__chunks__/{chunk-57JT3YYO.mjs.map → chunk-WJ7ALCIQ.mjs.map} +0 -0
  1338. /package/out/__chunks__/{chunk-JGHTVPC7.mjs.map → chunk-WJCTIZ2A.mjs.map} +0 -0
  1339. /package/out/__chunks__/{chunk-QC2L7ZLQ.mjs.map → chunk-WONHL4N2.mjs.map} +0 -0
  1340. /package/out/__chunks__/{chunk-WTNCKB4A.mjs.map → chunk-WZRJWY5M.mjs.map} +0 -0
  1341. /package/out/__chunks__/{chunk-ZW3NEESY.mjs.map → chunk-X7R7RLVZ.mjs.map} +0 -0
  1342. /package/out/__chunks__/{chunk-THNK25ZD.mjs.map → chunk-XIR5WVK3.mjs.map} +0 -0
  1343. /package/out/__chunks__/{chunk-CA5CTMET.mjs.map → chunk-XKOP7FDQ.mjs.map} +0 -0
  1344. /package/out/__chunks__/{chunk-3MEAYEOP.mjs.map → chunk-XNLP533V.mjs.map} +0 -0
  1345. /package/out/__chunks__/{chunk-3KJKVWZX.mjs.map → chunk-XRMMQJV3.mjs.map} +0 -0
  1346. /package/out/__chunks__/{chunk-WS2TTYTH.mjs.map → chunk-Y7IZFCJ5.mjs.map} +0 -0
  1347. /package/out/__chunks__/{chunk-DCD7Z6NA.mjs.map → chunk-YLOVIFPG.mjs.map} +0 -0
  1348. /package/out/__chunks__/{chunk-RZURE24V.mjs.map → chunk-YRZADY4X.mjs.map} +0 -0
  1349. /package/out/__chunks__/{chunk-JKR3KSKZ.mjs.map → chunk-YTYVQKLJ.mjs.map} +0 -0
  1350. /package/out/__chunks__/{chunk-TNL55CRB.mjs.map → chunk-ZC2OOJ2D.mjs.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a as I}from"./chunk-PJDJEPY2.mjs";import{a as l}from"./chunk-FYA6M3N3.mjs";import{a as f}from"./chunk-N6PKXG4Q.mjs";import{j as m,k as d,l as p,n as u}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-VPS6ARX6.mjs";var q=async({toastList:S,transactionsSessions:g,account:o,existingCompletedTransactions:y=[]})=>{let n=[],a=[...y],r=l(),F=f();for(let t of S.transactionToasts){let e=g[t.toastId];if(!e?.status)continue;let{status:s,transactions:C,transactionsDisplayInfo:P}=e,x=await T({transactions:C,address:o.address,explorerAddress:r,egldLabel:F}),A=u(s),E=p(s),L=d(s),i=A||E||L,v=m(s),{startTime:R,endTime:b}=t;if(i&&a.some(h=>h.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:x,transactionsDisplayInfo:P,explorerAddress:r,startTime:R,endTime:b});i&&a.push(c),v&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{q as a};
2
+ //# sourceMappingURL=chunk-22CLXEB2.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-SIRUYWHD.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{u as n}from"./chunk-JIDXMYLT.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-3FX5RTHT.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as r}from"./chunk-S75Q25RY.mjs";import{a as o}from"./chunk-WE7YOBO7.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
2
+ //# sourceMappingURL=chunk-456YSI54.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as i}from"./chunk-WZRJWY5M.mjs";import{a}from"./chunk-5HV6ENMZ.mjs";import{a as u}from"./chunk-AOT45CLU.mjs";import{c as n}from"./chunk-UOUYS55Y.mjs";import{a as s}from"./chunk-HCKBJTY3.mjs";var c=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&c(r,s.localStorage);try{return u(),n.forEach(g=>g()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
2
+ //# sourceMappingURL=chunk-4ZQAHMC7.mjs.map
@@ -0,0 +1,2 @@
1
+ import{u as t}from"./chunk-JIDXMYLT.mjs";import{c as r}from"./chunk-UERJ6AKK.mjs";function m(e=t()){return r(e)}export{m as a};
2
+ //# sourceMappingURL=chunk-5HV6ENMZ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-NVLWSC4J.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-5HWBV7UA.mjs.map
@@ -0,0 +1,2 @@
1
+ import{u as e}from"./chunk-JIDXMYLT.mjs";import{b as t}from"./chunk-SAAOQW7P.mjs";import{x as r}from"./chunk-KD2IQ32V.mjs";import i from"axios";var T=async o=>{let{apiAddress:s}=t(e()),{data:a}=await i.get(`${s}/${r}`,{params:{hashes:o.join(","),withScResults:!0}});return a};export{T as a};
2
+ //# sourceMappingURL=chunk-5ZNSOJRW.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-5HWBV7UA.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-653M72HI.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as g}from"./chunk-HBQQS6GA.mjs";import{u as m}from"./chunk-JIDXMYLT.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-6LQPIIN7.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as ae}from"./chunk-G4Z3ZQR6.mjs";import{a as se}from"./chunk-M3YL36ZL.mjs";import{a as te}from"./chunk-NTGUPGTV.mjs";import{a as U}from"./chunk-VBMIE7MG.mjs";import{a as ie}from"./chunk-UJJ2TXN5.mjs";import{a as re}from"./chunk-KE7YRXWM.mjs";import{a as I}from"./chunk-KZAQIHS2.mjs";import{a as ee}from"./chunk-YUFPUG5O.mjs";import{a as de}from"./chunk-UZOPRGVU.mjs";import{a as p}from"./chunk-J55M6HRJ.mjs";import{a as Z}from"./chunk-653M72HI.mjs";import{a as ne}from"./chunk-NDIJUIRP.mjs";import{a as oe}from"./chunk-F7TDWWAZ.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-TS77UH5B.mjs";import{a as y}from"./chunk-OLPUNT27.mjs";import{g as K}from"./chunk-CAA4VJRH.mjs";import{a as q}from"./chunk-5HV6ENMZ.mjs";import{a as D}from"./chunk-4TBVQD27.mjs";import{a as X}from"./chunk-AOT45CLU.mjs";import{a as F,s as j,u as l}from"./chunk-JIDXMYLT.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=se.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 de;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 ae(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-6QUYC43H.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-PLUWBWJ2.mjs";var o=s=>`Unable to perform ${s}, Provider not initialized`,e=class{init(){return Promise.resolve(!1)}login(n){throw new Error(o(`login with options: ${n}`))}logout(n){throw new Error(o(`logout with options: ${n}`))}getAccount(){throw new Error(o("unable to get account"))}setAccount(n){throw new Error(o(`unable to set account with: ${n}`))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(n,r){throw new Error(o(`sendTransaction with transactions: ${n} options: ${r}`))}signTransaction(n,r){throw new Error(o(`signTransaction with transactions: ${JSON.stringify(n)} options: ${r}`))}signTransactions(n){throw new Error(o(`signTransactions with transactions: ${JSON.stringify(n)}`))}signMessage(n,r){throw new Error(o(`signMessage with ${n} and options ${r}`))}sendCustomMessage({method:n,params:r}){throw new Error(o(`sendCustomMessage with method: ${n} params: ${r}`))}sendCustomRequest(n){throw new Error(o(`sendSessionEvent with options: ${n}`))}async getAddress(){throw new Error(o("getAddress"))}getType(){return t.none}},c=new e;export{e as a,c as b};
2
+ //# sourceMappingURL=chunk-76URRONH.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-YLOVIFPG.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
2
+ //# sourceMappingURL=chunk-AAT5TA2C.mjs.map
@@ -0,0 +1,2 @@
1
+ import{l as p,s as e}from"./chunk-JIDXMYLT.mjs";import{c as i}from"./chunk-NTEMINYA.mjs";var T=()=>e().setState(p),m=({address:o,providerType:d})=>{e().setState(({account:r,loginInfo:t})=>{r.address=o,r.publicKey=new i(o).hex(),t&&(t.providerType=d)},!1,"loginAction")};export{T as a,m as b};
2
+ //# sourceMappingURL=chunk-AOT45CLU.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as k}from"./chunk-P5RC6PN5.mjs";import{a as T}from"./chunk-XCVEFI4B.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as m}from"./chunk-FNYBJAH3.mjs";import{a as l}from"./chunk-U3UMCTU6.mjs";import{c as d}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-UK5MEKBE.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-BIKDLBHK.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-YRZADY4X.mjs";var o={async getTransactionsHistory(s){return await t(s)}};export{o as a};
2
+ //# sourceMappingURL=chunk-BLNUEDNB.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-PLUWBWJ2.mjs";var s={[e.crossWindow]:"MultiversX Web Wallet",[e.extension]:"MultiversX Wallet Extension",[e.walletConnect]:"xPortal App",[e.ledger]:"Ledger",[e.metamask]:"MetaMask Snap",[e.passkey]:"Passkey",[e.webview]:"Webview",[e.none]:""};export{s as a};
2
+ //# sourceMappingURL=chunk-CDQ2BNUD.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-NVLWSC4J.mjs";import{c as e}from"./chunk-MGFIOCA4.mjs";var o=class i extends s{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._ppuMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,ppuOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){let t=0;a.filter(n=>n!=null).forEach(n=>{let r=n?Number(n.gasPrice):0;this.updateGasPriceMap({nonce:Number(n.nonce),ppu:t,initialGasPrice:r})}),this.updateCommonData({ppu:t})}updateGasPriceMap({nonce:a,ppu:t,initialGasPrice:n}){this._ppuMap[a]={...this._ppuMap[a],ppu:t},n&&(this._ppuMap[a].initialGasPrice=n)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,t){switch(a){case"NonFungibleESDT":this.data.nftTransaction=t,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=t,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get ppuMap(){return this._ppuMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
2
+ //# sourceMappingURL=chunk-CQFFB5WA.mjs.map
@@ -0,0 +1,2 @@
1
+ import{u as e}from"./chunk-JIDXMYLT.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-EHU6U444.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-5ZNSOJRW.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-EQSRTMFM.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as i}from"./chunk-FKBLKOLI.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as o}from"./chunk-YTYVQKLJ.mjs";import{u as n}from"./chunk-JIDXMYLT.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var w=async r=>{let{isGuarded:s}=o();if(!i({isGuarded:s,transactions:r}))return r;let a=r[0].getSender().bech32().toString(),{walletAddress:d}=e(n());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
2
+ //# sourceMappingURL=chunk-F7TDWWAZ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as c}from"./chunk-JIDXMYLT.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-FWC42IFM.mjs.map
@@ -0,0 +1,2 @@
1
+ import{u as e}from"./chunk-JIDXMYLT.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";function d(t=e()){return r(t).explorerAddress}export{d as a};
2
+ //# sourceMappingURL=chunk-FYA6M3N3.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-M3YL36ZL.mjs";import{a as o}from"./chunk-QJGFIK7H.mjs";import{a as r}from"./chunk-PLUWBWJ2.mjs";var p=t=>(Object.values(r).forEach(i=>{if(i!==t?.skipLoginMethod)switch(i){case r.crossWindow:{let e=o.getInstance();e.isInitialized()&&e.onDestroy();break}case r.metamask:case r.passkey:{let e=s.getInstance();e.isInitialized()&&e.dispose();break}default:break}}),null);export{p as a};
2
+ //# sourceMappingURL=chunk-G4Z3ZQR6.mjs.map
@@ -0,0 +1,2 @@
1
+ var o=typeof window<"u"?window:{},n="5.0.5";export{o as a,n as b};
2
+ //# sourceMappingURL=chunk-HCKBJTY3.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/constants/window.constants.ts"],
4
+ "sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.0.5'; // will be replaced at build time\n"],
5
+ "mappings": "AAAO,IAAMA,EACX,OAAO,OAAW,IAAc,OAAU,CAAC,EAEhCC,EAAU",
6
+ "names": ["safeWindow", "version"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as w}from"./chunk-KK2BMMWL.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as y}from"./chunk-TS77UH5B.mjs";import{h as l}from"./chunk-CAA4VJRH.mjs";import{b as S}from"./chunk-3ZEUVYQF.mjs";import{a as f}from"./chunk-SF4BD7ZP.mjs";import{a as g}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-YTYVQKLJ.mjs";import{u as d}from"./chunk-JIDXMYLT.mjs";import{b as p}from"./chunk-SAAOQW7P.mjs";import{e as T}from"./chunk-NTEMINYA.mjs";import A from"axios";var o=class o{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(i=>({...i,status:i.status??"pending"})),e=g(n),s=f({transactions:n,transactionsDisplayInfo:t.transactionsDisplayInfo,status:e??"sent",sessionInformation:t.sessionInformation});if(t.disableToasts===!0)return s;let c=w(a);return y({toastId:s,totalDuration:c}),s};this.sendSignedTransactions=async a=>{let{apiAddress:t,apiTimeout:n}=p(d()),e=a.map(r=>A.post(`${t}/transactions`,r.toPlainObject(),{timeout:Number(n)})),s=await Promise.all(e),c=new T;return s.map(({data:r})=>({...a.find(x=>c.computeTransactionHash(x)===r.txHash)?.toPlainObject(),...r,status:"pending",hash:r.txHash}))};this.sendSignedBatchTransactions=async a=>{let{address:t}=h(),{apiAddress:n,apiTimeout:e}=p(d());if(!t)return{error:"Invalid address provided. You need to be logged in to send transactions"};let s=this.buildBatchId(t),i={transactions:a.map(m=>m.map(u=>this.parseSignedTransaction(u))),id:s},{data:r}=await A.post(`${n}/batch`,i,{timeout:Number(e)});return{data:r}};this.buildBatchId=a=>`${Date.now().toString()}${l}${a}`;this.sequentialToFlatArray=(a=[])=>this.getIsSequential(a)?a.flat():a;this.getIsSequential=a=>a?.every(t=>Array.isArray(t));this.parseSignedTransaction=a=>{let t=new T,n={...a.toPlainObject(),hash:t.computeTransactionHash(a),status:"pending"};return b({data:n.data})&&(delete n.senderUsername,delete n.receiverUsername),n}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};o.instance=null;var v=o;export{v as a};
2
+ //# sourceMappingURL=chunk-HF5UK7AF.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as e}from"./chunk-JIDXMYLT.mjs";var o=t=>e().setState(({ui:n})=>{n.isSidePanelOpen=t},!1,"setIsSidePanelOpen");export{o as a};
2
+ //# sourceMappingURL=chunk-HLBGYEYU.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-HCKBJTY3.mjs";function n(t){try{if(!e)return;e.document.documentElement.dataset.theme=t}catch{}}export{n as a};
2
+ //# sourceMappingURL=chunk-HLNCW36T.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as u}from"./chunk-TQA3JDNV.mjs";import{u as s}from"./chunk-JIDXMYLT.mjs";import{e as a}from"./chunk-UERJ6AKK.mjs";function x(n){let e=s(),o=u(e),c=a(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t||n.nonce,c)}export{x as a};
2
+ //# sourceMappingURL=chunk-IRLEEOUA.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-653M72HI.mjs";import{a as e}from"./chunk-5HV6ENMZ.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-J55M6HRJ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-PJAESU4Q.mjs";function S(e){return t()(e)}export{S as a};
2
+ //# sourceMappingURL=chunk-JBF4OOHG.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as s,f as l}from"./chunk-UERJ6AKK.mjs";import{f as a}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-XKOP7FDQ.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as g,b as c}from"./chunk-WZGG2YKQ.mjs";import{a as f,b as m}from"./chunk-X4XULIVT.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 p}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as h,devtools as O,persist as V}from"zustand/middleware";import{immer as H}from"zustand/middleware/immer";import{createStore as N}from"zustand/vanilla";var A=e=>{e.account=g,e.loginInfo=f,e.transactions=d,e.toasts=S};function R(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),n=a(e),{address:i,publicKey:M}=s(e);if(i&&M!==new p(i).hex()&&A(e),!t)return;if(n==null){w(R());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var W=(e,t)=>{C(e)};var z=e=>{let t=N(O(V(H((...n)=>({network:x(...n),account:c(...n),loginInfo:m(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:h(e)})));return t.subscribe(W),t},r,D=e=>{r=e},o=()=>(r||D(z(()=>new v)),r),ae=(e=k)=>D(z(e)),pe=()=>o().getState();var fe=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),me=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.walletLogin=e},!1,"setWalletLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),Te=e=>o().setState(({loginInfo:t})=>{t.logoutRoute=e},!1,"setLogoutRoute"),ye=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{fe as a,me as b,Se as c,ue as d,de as e,Le as f,xe as g,Te as h,ye as i,E as j,b as k,A as l,R as m,w as n,C as o,W as p,z as q,D as r,o as s,ae as t,pe as u};
2
+ //# sourceMappingURL=chunk-JIDXMYLT.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-TX6KTAJL.mjs";import{a as f}from"./chunk-6FXEHNGW.mjs";import{f as m}from"./chunk-PJWJZHIS.mjs";import x from"bignumber.js";var v=async({manager:e,provider:d})=>{if(!e||!d)throw new Error("Provider is not initialized.");let{network:u}=b(),n=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await w({baseURL:u.apiAddress}),l=c=>c.index>=n&&c.index<n+e.addressesPerPage,I=r.reduce((c,s)=>Object.assign(c,{[s.index]:s}),{}),A=r.filter(l),y=!!I[n];if(e.updateAccountScreen({isLoading:!y}),A.length>0){e.updateAccountScreen({accounts:A});return}try{let c=await d.getAccounts(n,e.addressesPerPage),s=c.map((t,o)=>({address:t,balance:"...",index:o+n})),L=[...r,...s],j=c.map(t=>f({address:t,baseURL:u.apiAddress})),O=await Promise.all(j),i=L.reduce((t,o)=>Object.assign(t,{[o.address]:o}),{});O.forEach(t=>{if(!t||!a||!a.price)return;let o=new x(t.balance),U=o.dividedBy(x(10).pow(18)).toFormat(4).toString();if(o.isNaN())return;let h=g({amount:m({input:t.balance}),usd:a?.price});i[t.address].balance=U,i[t.address].usdValue=h});let p=Object.values(i).sort((t,o)=>t.index-o.index),S=p.filter(l);e.updateAllAccounts(p),e.updateAccountScreen({accounts:S,isLoading:!1})}catch(c){console.error("Failed to fetch accounts:",c)}};export{v as a};
2
+ //# sourceMappingURL=chunk-JQ6DWF4A.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as g}from"./chunk-KZAQIHS2.mjs";import{a as f}from"./chunk-FRDR4A7Z.mjs";import{t as c}from"./chunk-TS77UH5B.mjs";import{u as n}from"./chunk-JIDXMYLT.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-KE7YRXWM.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-6QUYC43H.mjs";import{s as n}from"./chunk-TS77UH5B.mjs";import{u as m}from"./chunk-JIDXMYLT.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-PLUWBWJ2.mjs";import{a as f}from"./chunk-MSYOA2HY.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-KIU22HW5.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-YNXPGS77.mjs";import{c as r,d as a}from"./chunk-CAA4VJRH.mjs";import{u as e}from"./chunk-JIDXMYLT.mjs";import{a as n}from"./chunk-UERJ6AKK.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
2
+ //# sourceMappingURL=chunk-KK2BMMWL.mjs.map
@@ -0,0 +1,2 @@
1
+ import{u as e}from"./chunk-JIDXMYLT.mjs";import{f as t}from"./chunk-UERJ6AKK.mjs";function n(o=e()){return t(o)}export{n as a};
2
+ //# sourceMappingURL=chunk-KZAQIHS2.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as N}from"./chunk-Q2Q4XN4M.mjs";import{b}from"./chunk-WONHL4N2.mjs";import{d as C,e as I}from"./chunk-FWC42IFM.mjs";import{s as p}from"./chunk-JIDXMYLT.mjs";import{b as E}from"./chunk-SAAOQW7P.mjs";import{a as y}from"./chunk-MGQ373AO.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as L}from"socket.io-client";var U=3e3,d=3,k=500,W=1e3,M=1e3,S="batchUpdated",w="connect",O="connect_error",A="disconnect";async function K(l){let{apiAddress:_,websocketUrl:g}=E(p().getState());if(!l)throw new Error("Websocket could not be initialized: address missing");let o=null,n=null,c=e=>{t.status=e,b(e)},R=e=>{o&&clearTimeout(o),o=setTimeout(()=>{C(e)},W)},h=e=>{n&&clearTimeout(n),n=setTimeout(()=>{I(e)},W)},D=()=>{let e=t.instance;e&&(e.off(O),e.off(w),e.off(S),e.off(A),e.close(),console.log("Websocket disconnected.")),c("not_initialized"),t.instance=null,o&&clearTimeout(o),n&&clearTimeout(n)},m=y(async()=>{let e=async(i=d,a=k)=>{let f=0,r=null,s=null,T=async()=>{if(f>=i){console.warn("WebSocket reconnection failed after max attempts."),c("not_initialized");return}f++,t.instance?.off(),t.instance?.close(),t.instance=null;try{await m(),r=setTimeout(()=>{t.instance?.connected||(s=setTimeout(T,a))},M)}catch{s=setTimeout(T,a)}};return T(),()=>{r&&(clearTimeout(r),r=null),s&&(clearTimeout(s),s=null)}};c("pending");let u=g??await N(_);if(!u){c("not_initialized");return}t.instance=L(u,{forceNew:!0,reconnection:!0,reconnectionAttempts:d,timeout:U,query:{address:l}}),t.instance.onAny(R),t.instance.on(S,h),t.instance.on(w,()=>{console.log("Websocket connected."),c("completed")}),t.instance.on(O,async i=>{console.warn("Websocket connect error: ",i.message),(await e())()}),t.instance.on(A,async()=>{console.warn("Websocket disconnected. Trying to reconnect..."),(await e())()})},{retries:2,delay:k});return t.status==="not_initialized"&&!t.instance?.active&&await m(),{closeConnection:D}}export{K as a};
2
+ //# sourceMappingURL=chunk-LG4JGQOF.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as u}from"./chunk-YTYVQKLJ.mjs";import{a as f}from"./chunk-S75Q25RY.mjs";import{a as g}from"./chunk-EHU6U444.mjs";import{b as a}from"./chunk-JIDXMYLT.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-MOJR7L2A.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-UZV2AYS7.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-MSYOA2HY.mjs.map
@@ -0,0 +1,2 @@
1
+ import{u as t}from"./chunk-JIDXMYLT.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";function g(r=t()){return e(r).egldLabel}export{g as a};
2
+ //# sourceMappingURL=chunk-N6PKXG4Q.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as B}from"./chunk-ZC2OOJ2D.mjs";import{a as b}from"./chunk-VJOUHZ3O.mjs";import{a as k}from"./chunk-QXC4D3AC.mjs";import{a as R}from"./chunk-OD4ANAAQ.mjs";import{a as D}from"./chunk-RJKYCUB2.mjs";import{a as I}from"./chunk-PHOF3Z5D.mjs";import{a as j}from"./chunk-2DFE24NA.mjs";import{a as _}from"./chunk-F7TDWWAZ.mjs";import{a as A}from"./chunk-CQFFB5WA.mjs";import{a as O}from"./chunk-N6PKXG4Q.mjs";import{u as x}from"./chunk-JIDXMYLT.mjs";import{b as v}from"./chunk-SAAOQW7P.mjs";import{a as G,c as U,f as F}from"./chunk-PJWJZHIS.mjs";import{a as w}from"./chunk-NTEMINYA.mjs";import{c as N}from"./chunk-MGFIOCA4.mjs";async function Dn({transactions:z=[],handleSign:H,guardTransactions:K=_}){let{account:{address:y,shard:E,username:h}}=B(),g=v(x()),C=O(),{allTransactions:e,parsedTransactionsByDataField:L}=R(z),p=[],n=A.getInstance();if(await n.openUI(),!n)throw new Error("Unable to establish connection with sign screens");let W=async()=>{await b(),n.closeUI()};return n.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",W),new Promise(async(X,M)=>{let d=[],Y=await k({baseURL:g.apiAddress});n.notifyDataUpdate(),n.initializeGasPriceMap(e.map(t=>t.transaction));let l=Y?.price,a=0,T=async()=>{let c=e[a]?.transaction,i=Number(c.nonce);try{n.updateIsLoading(!0);let{commonData:r,tokenTransaction:o,fungibleTransaction:s}=await D({allTransactions:e,currentScreenIndex:a,egldLabel:C,network:g,gasPriceData:n.ppuMap[i],price:l,address:y,username:h,shard:E,signedIndexes:p,parsedTransactionsByDataField:L});o&&n.updateTokenTransaction(o),s&&n.updateNonFungibleTransaction(s.type,s),n.updateCommonData(r)}catch(r){console.error(`Error fetching common data for transaction at index ${a}:`,r)}finally{n.updateIsLoading(!1)}},$=()=>{a>0&&(a--,T())},q=(t=0)=>{let i=e[a].transaction,r=Number(i.nonce);n.updateGasPriceMap({nonce:r,ppu:t}),n.updateCommonData({ppu:t});let o=i.toPlainObject(),s=I({transaction:o,gasPriceData:n.ppuMap[r]}),P=w.newFromPlainObject({...o,gasPrice:s}),u=j({transaction:P,price:l}),m=F({input:s.toString(),decimals:U,addCommas:!0,digits:G});n.updateCommonData({feeLimit:u.feeLimitFormatted,feeInFiatLimit:u.feeInFiatLimit,gasPrice:m,ppu:t})},J=async()=>{M(new Error("Transaction signing cancelled by user")),await b(),n.closeUI()},f=()=>{a<n.transactionsCount-1&&(a++,T())},Q=async()=>{let c=e[a].transaction,i=Number(c.nonce),{commonData:r}=await D({allTransactions:e,currentScreenIndex:a,egldLabel:C,network:g,gasPriceData:n.ppuMap[i],price:l,address:y,username:h,shard:E,signedIndexes:p,parsedTransactionsByDataField:L});if(!r.needsSigning)return p.push(a),f();let o=c.toPlainObject(),s=o.nonce,P=I({transaction:o,gasPriceData:n.ppuMap[s]}),u=w.newFromPlainObject({...o,gasPrice:P});try{let m=await H([u]);m&&(p.push(a),d.push(m[0]));let nn=a===e.length-1,an=e.filter(S=>S.needsSigning),tn=d.length===an.length;if(nn&&tn){let S=await K(d);return n.closeUI(),X(S)}f()}catch(m){n.closeUI(),M(m)}},V=new Map([["NEXT_SIGN_TRANSACTIONS",f],["CONFIRM_SIGN_TRANSACTIONS",Q],["CLOSE_SIGN_TRANSACTIONS",J],["BACK_SIGN_TRANSACTIONS",$],["SET_PPU_SIGN_TRANSACTIONS",q]]);function Z(){for(let[t,c]of V)n.subscribeToEventBus(t,c)}Z(),await T()})}export{Dn as a};
2
+ //# sourceMappingURL=chunk-NDIJUIRP.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as h}from"./chunk-VBMIE7MG.mjs";import{a as s}from"./chunk-JQ6DWF4A.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-FYA6M3N3.mjs";import{b as A}from"./chunk-FWC42IFM.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{g as p}from"./chunk-JIDXMYLT.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-NTGUPGTV.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as n}from"./chunk-XIR5WVK3.mjs";import{a as t}from"./chunk-HLBGYEYU.mjs";var s=class extends n{constructor({uiDataUpdateEvent:e,uiTag:i}){super({uiDataUpdateEvent:e,uiTag:i});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}async destroy(){this.setIsSidePanelOpen(!1),await this.uiElement?.closeWithAnimation?.(),super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{s as a};
2
+ //# sourceMappingURL=chunk-NVLWSC4J.mjs.map
@@ -0,0 +1,2 @@
1
+ import{d as s}from"./chunk-6QUYC43H.mjs";import{a as u}from"./chunk-NVLWSC4J.mjs";import{u as c}from"./chunk-JIDXMYLT.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-CDQ2BNUD.mjs";import{a as o}from"./chunk-PLUWBWJ2.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:a})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:a})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:a}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(o).filter(n=>![o.none,o.webview,o.passkey].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
2
+ //# sourceMappingURL=chunk-NW6VE6YC.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/managers/UnlockPanelManager/UnlockPanelManager.ts"],
4
+ "sourcesContent": ["import { providerLabels } from 'constants/providerFactory.constants';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxUnlockPanel } from 'lib/sdkDappUi';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport {\n IProviderBase,\n IProviderFactory,\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport {\n OnCloseUnlockPanelType,\n LoginHandlerType,\n UnlockPanelEventsEnum,\n UnlockPanelManagerInitParamsType\n} from './UnlockPanelManager.types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager';\n\ninterface IUnlockPanelManagerData {\n providers: IProviderBase[] | null;\n walletAddress: string | null;\n}\n\nexport class UnlockPanelManager extends SidePanelBaseManager<\n MvxUnlockPanel,\n IUnlockPanelManagerData,\n UnlockPanelEventsEnum\n> {\n protected initialData: IUnlockPanelManagerData = {\n providers: null,\n walletAddress: null\n };\n\n private static instance: UnlockPanelManager;\n private static loginHandler: LoginHandlerType | null = null;\n private static onClose: OnCloseUnlockPanelType | null = null;\n private static allowedProviders?: ProviderType[] | null = null;\n\n constructor() {\n super({\n uiTag: UITagsEnum.UNLOCK_PANEL,\n uiDataUpdateEvent: UnlockPanelEventsEnum.OPEN\n });\n\n this.data = this.initialData;\n }\n\n public static getInstance(): UnlockPanelManager {\n if (!UnlockPanelManager.instance) {\n UnlockPanelManager.instance = new UnlockPanelManager();\n }\n return UnlockPanelManager.instance;\n }\n\n public static init(params: UnlockPanelManagerInitParamsType) {\n this.loginHandler = params.loginHandler;\n this.allowedProviders = params.allowedProviders;\n\n if (params.onClose) {\n this.onClose = params.onClose;\n }\n\n return this.getInstance();\n }\n\n public openUnlockPanel = async () => {\n const { walletAddress } = networkSelector(getState());\n\n this.data = {\n providers: this.getProvidersList(),\n walletAddress\n };\n\n await this.openUI();\n this.notifyDataUpdate();\n };\n\n protected setupEventListeners = async () => {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(UnlockPanelEventsEnum.LOGIN, this.handleLogin);\n this.subscribeToEventBus(\n UnlockPanelEventsEnum.CANCEL_LOGIN,\n this.handleCancelLogin\n );\n this.subscribeToEventBus(UnlockPanelEventsEnum.CLOSE, this.handleCloseUI);\n };\n\n private readonly handleCloseUI = async (options?: {\n isLoginFinished?: boolean;\n }) => {\n if (!options?.isLoginFinished && UnlockPanelManager.onClose) {\n UnlockPanelManager.onClose();\n }\n\n this.closeUI();\n };\n\n private readonly handleLogin = async ({ type, anchor }: IProviderFactory) => {\n if (!UnlockPanelManager.loginHandler) {\n throw new Error(\n 'Login callback not initialized. Please call `init()` first.'\n );\n }\n\n try {\n if (this.isSimpleLoginCallback(UnlockPanelManager.loginHandler)) {\n const provider = await ProviderFactory.create({ type, anchor });\n await provider.login();\n UnlockPanelManager.loginHandler();\n } else {\n UnlockPanelManager.loginHandler({ type, anchor });\n }\n await this.handleCloseUI({ isLoginFinished: true });\n } catch (error) {\n console.error(error);\n this.eventBus?.publish(\n UnlockPanelEventsEnum.CANCEL_IN_PROVIDER,\n this.data\n );\n }\n };\n\n private readonly handleCancelLogin = async () => {\n await ProviderFactory.destroy();\n };\n\n private readonly isSimpleLoginCallback = (\n login: LoginHandlerType\n ): login is () => void => {\n const takesZeroArguments = login.length === 0;\n return takesZeroArguments;\n };\n\n private getProvidersList(): IProviderBase[] {\n const customProviders = ProviderFactory.customProviders;\n\n const defaultProviderTypes = Object.values(ProviderTypeEnum).filter(\n (type) => {\n const excludedProviders: string[] = [\n ProviderTypeEnum.none,\n ProviderTypeEnum.webview,\n ProviderTypeEnum.passkey // temporary disabled\n ];\n return !excludedProviders.includes(type);\n }\n );\n\n const allAvailableProviderTypes = [\n ...defaultProviderTypes,\n ...customProviders.map((p) => p.type)\n ];\n\n const customProviderLabels = customProviders.reduce(\n (acc, provider) => {\n acc[provider.type] = provider.name;\n return acc;\n },\n {} as Record<ProviderType, string>\n );\n\n const allAvailableLabels = {\n ...providerLabels,\n ...customProviderLabels\n };\n\n const allowedProviderTypes = UnlockPanelManager.allowedProviders\n ? UnlockPanelManager?.allowedProviders.filter((type) =>\n allAvailableProviderTypes.includes(type)\n )\n : allAvailableProviderTypes;\n\n const providerList = allowedProviderTypes.map((type) => {\n const custom = customProviders.find(\n (customProvider) => customProvider.type === type\n );\n if (custom) {\n return custom;\n }\n\n return {\n name: type in allAvailableLabels ? allAvailableLabels[type] : type,\n type\n };\n });\n\n return providerList;\n }\n}\n"],
5
+ "mappings": "sPAyBO,IAAMA,EAAN,MAAMA,UAA2BC,CAItC,CAWA,aAAc,CACZ,MAAM,CACJ,yBACA,wBACF,CAAC,EAdH,KAAU,YAAuC,CAC/C,UAAW,KACX,cAAe,IACjB,EAkCA,KAAO,gBAAkB,SAAY,CACnC,GAAM,CAAE,cAAAC,CAAc,EAAIC,EAAgBC,EAAS,CAAC,EAEpD,KAAK,KAAO,CACV,UAAW,KAAK,iBAAiB,EACjC,cAAAF,CACF,EAEA,MAAM,KAAK,OAAO,EAClB,KAAK,iBAAiB,CACxB,EAEA,KAAU,oBAAsB,SAAY,CACrC,KAAK,WAIV,KAAK,4BAAiD,KAAK,WAAW,EACtE,KAAK,mCAEH,KAAK,iBACP,EACA,KAAK,4BAAiD,KAAK,aAAa,EAC1E,EAEA,KAAiB,cAAgB,MAAOG,GAElC,CACA,CAACA,GAAS,iBAAmBL,EAAmB,SAClDA,EAAmB,QAAQ,EAG7B,KAAK,QAAQ,CACf,EAEA,KAAiB,YAAc,MAAO,CAAE,KAAAM,EAAM,OAAAC,CAAO,IAAwB,CAC3E,GAAI,CAACP,EAAmB,aACtB,MAAM,IAAI,MACR,6DACF,EAGF,GAAI,CACE,KAAK,sBAAsBA,EAAmB,YAAY,GAE5D,MADiB,MAAMQ,EAAgB,OAAO,CAAE,KAAAF,EAAM,OAAAC,CAAO,CAAC,GAC/C,MAAM,EACrBP,EAAmB,aAAa,GAEhCA,EAAmB,aAAa,CAAE,KAAAM,EAAM,OAAAC,CAAO,CAAC,EAElD,MAAM,KAAK,cAAc,CAAE,gBAAiB,EAAK,CAAC,CACpD,OAASE,EAAO,CACd,QAAQ,MAAMA,CAAK,EACnB,KAAK,UAAU,6BAEb,KAAK,IACP,CACF,CACF,EAEA,KAAiB,kBAAoB,SAAY,CAC/C,MAAMD,EAAgB,QAAQ,CAChC,EAEA,KAAiB,sBACfE,GAE2BA,EAAM,SAAW,EAxF5C,KAAK,KAAO,KAAK,WACnB,CAEA,OAAc,aAAkC,CAC9C,OAAKV,EAAmB,WACtBA,EAAmB,SAAW,IAAIA,GAE7BA,EAAmB,QAC5B,CAEA,OAAc,KAAKW,EAA0C,CAC3D,YAAK,aAAeA,EAAO,aAC3B,KAAK,iBAAmBA,EAAO,iBAE3BA,EAAO,UACT,KAAK,QAAUA,EAAO,SAGjB,KAAK,YAAY,CAC1B,CAyEQ,kBAAoC,CAC1C,IAAMC,EAAkBJ,EAAgB,gBAalCK,EAA4B,CAChC,GAZ2B,OAAO,OAAOC,CAAgB,EAAE,OAC1DR,GAMQ,CAL6B,CAClCQ,EAAiB,KACjBA,EAAiB,QACjBA,EAAiB,OACnB,EAC0B,SAASR,CAAI,CAE3C,EAIE,GAAGM,EAAgB,IAAKG,GAAMA,EAAE,IAAI,CACtC,EAEMC,EAAuBJ,EAAgB,OAC3C,CAACK,EAAKC,KACJD,EAAIC,EAAS,IAAI,EAAIA,EAAS,KACvBD,GAET,CAAC,CACH,EAEME,EAAqB,CACzB,GAAGC,EACH,GAAGJ,CACL,EAsBA,OApB6BhB,EAAmB,iBAC5CA,GAAoB,iBAAiB,OAAQM,GAC3CO,EAA0B,SAASP,CAAI,CACzC,EACAO,GAEsC,IAAKP,GAAS,CACtD,IAAMe,EAAST,EAAgB,KAC5BU,GAAmBA,EAAe,OAAShB,CAC9C,EACA,OAAIe,GAIG,CACL,KAAMf,KAAQa,EAAqBA,EAAmBb,CAAI,EAAIA,EAC9D,KAAAA,CACF,CACF,CAAC,CAGH,CACF,EAvKaN,EAWI,aAAwC,KAX5CA,EAYI,QAAyC,KAZ7CA,EAaI,iBAA2C,KAbrD,IAAMuB,EAANvB",
6
+ "names": ["_UnlockPanelManager", "SidePanelBaseManager", "walletAddress", "networkSelector", "getState", "options", "type", "anchor", "ProviderFactory", "error", "login", "params", "customProviders", "allAvailableProviderTypes", "ProviderTypeEnum", "p", "customProviderLabels", "acc", "provider", "allAvailableLabels", "providerLabels", "custom", "customProvider", "UnlockPanelManager"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-HCKBJTY3.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-OIJVN33N.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-XIR5WVK3.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
2
+ //# sourceMappingURL=chunk-OLPUNT27.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as l}from"./chunk-6LQPIIN7.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-P5RC6PN5.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-EMIDMARK.mjs";import{s as e}from"./chunk-JIDXMYLT.mjs";var m=()=>t(e());export{m as a};
2
+ //# sourceMappingURL=chunk-PJAESU4Q.mjs.map
@@ -0,0 +1,2 @@
1
+ var e={extension:"extension",metamask:"metamask",passkey:"passkey",walletConnect:"walletConnect",ledger:"ledger",crossWindow:"crossWindow",webview:"webview",none:""};export{e as a};
2
+ //# sourceMappingURL=chunk-PLUWBWJ2.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/providers/types/providerFactory.types.ts"],
4
+ "sourcesContent": ["import type { IDAppProviderBase } from '@multiversx/sdk-dapp-utils';\n\nexport interface IProvider<T extends ProviderType = ProviderType>\n extends IDAppProviderBase {\n init: () => Promise<boolean>;\n login: (options?: { callbackUrl?: string; token?: string }) => Promise<{\n address: string;\n signature: string;\n multisig?: string;\n impersonate?: string;\n accessToken?: string;\n [key: string]: unknown;\n }>;\n logout: () => Promise<boolean>;\n cancelLogin?: () => void;\n getType: () => T;\n getAddress(): Promise<string | undefined>;\n}\n\nexport interface IProviderConfig {\n account?: {\n address: string;\n };\n}\n\nexport const ProviderTypeEnum = {\n extension: 'extension',\n metamask: 'metamask',\n passkey: 'passkey',\n walletConnect: 'walletConnect',\n ledger: 'ledger',\n crossWindow: 'crossWindow',\n webview: 'webview',\n none: ''\n} as const;\n\nexport type ProviderType =\n | (typeof ProviderTypeEnum)[keyof typeof ProviderTypeEnum]\n | (string & {}); // This allows custom providers to be used as a string\n\nexport interface IProviderFactory<T extends ProviderType = ProviderType> {\n type: T;\n anchor?: HTMLElement;\n}\n\nexport interface IProviderBase<T extends ProviderType = ProviderType> {\n name: string;\n type: T;\n iconUrl?: string;\n}\nexport interface ICustomProvider<T extends ProviderType = ProviderType>\n extends IProviderBase<T> {\n constructor: (options?: {\n address?: string;\n anchor?: HTMLElement;\n }) => Promise<IProvider>;\n}\n"],
5
+ "mappings": "AAyBO,IAAMA,EAAmB,CAC9B,UAAW,YACX,SAAU,WACV,QAAS,UACT,cAAe,gBACf,OAAQ,SACR,YAAa,cACb,QAAS,UACT,KAAM,EACR",
6
+ "names": ["ProviderTypeEnum"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{t as g}from"./chunk-TS77UH5B.mjs";import{s as u}from"./chunk-JIDXMYLT.mjs";import{a as p}from"./chunk-UERJ6AKK.mjs";import{a as h,c as l,g as c}from"./chunk-NTEMINYA.mjs";import{a as y}from"./chunk-HCKBJTY3.mjs";var M=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=u();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){y.addEventListener("message",this.handleMessage)}stopListening(){y.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case o.finalizeHandshakeRequest:this.handshake({event:e});break;case o.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case o.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case o.signTransactionsRequest:this.signTransactions({event:e});break;case i.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=p(this.store.getState()),r=g(),n=new c({address:new l(t),data:new Uint8Array(Buffer.from(a))}),d=(await r.signMessage(n))?.signature??"";e.source?.postMessage({type:i.loginResponse,payload:{data:{address:t,signature:Buffer.from(d).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&this.handleLoginCancelled()}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:i.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=p(this.store.getState()),{message:t}=s;try{let r=new c({address:new l(a),data:new Uint8Array(Buffer.from(t))}),d=(await g().signMessage(r))?.signature??"";e.source?.postMessage({type:i.signMessageResponse,payload:{data:{signature:Buffer.from(d).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(n=>h.newFromPlainObject(n)),r=await s.signTransactions(t);e.source?.postMessage({type:i.signTransactionsResponse,payload:{data:r.map(n=>n.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{M as a};
2
+ //# sourceMappingURL=chunk-PZYLVHXW.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as V}from"./chunk-7Z7IX367.mjs";import{a as B}from"./chunk-VCQBYNNS.mjs";import{a as $}from"./chunk-LN5UXO64.mjs";import{a as _}from"./chunk-PHOF3Z5D.mjs";import{a as U}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-ROZAXUMC.mjs";import{a as M}from"./chunk-BETSOJFK.mjs";import{a as w}from"./chunk-2DFE24NA.mjs";import{a as O}from"./chunk-YGI3KXMZ.mjs";import{a as x}from"./chunk-6LQPIIN7.mjs";import{a as v}from"./chunk-RYIJWGFA.mjs";import{t as G}from"./chunk-TS77UH5B.mjs";import{a as L}from"./chunk-FYA6M3N3.mjs";import{a as h}from"./chunk-BRJNX4JF.mjs";import{a as b,c as C,f as u}from"./chunk-PJWJZHIS.mjs";import{a as P}from"./chunk-KD2IQ32V.mjs";import{c as f}from"./chunk-TI37DKBT.mjs";import{k as A}from"./chunk-LHEH7L4L.mjs";import{a as F}from"./chunk-HCKBJTY3.mjs";import{BigNumber as yt}from"bignumber.js";async function Kt({allTransactions:T,currentScreenIndex:m,egldLabel:o,network:e,gasPriceData:c,price:S,address:p,username:z,shard:j,signedIndexes:i,parsedTransactionsByDataField:q}){let t=T[m],H=t?.transaction?.sender.toString(),K=t?.transaction,D=null,y=null,W=R({egldLabel:o,sender:H,apiAddress:e.apiAddress,address:p,parsedTransactionsByDataField:q}),a=t.transaction.toPlainObject(),n=await W(t),d=!n?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=n?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await x({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:s,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:s,amount:I,imageURL:Y};else{let E=({addCommas:Dt})=>u({input:d?t.transaction.value.toString():I,decimals:d?Number(e.decimals):X,digits:Number(e.digits),showLastNonZeroDecimal:!1,addCommas:Dt}),ut=E({addCommas:!0}),ft=E({addCommas:!1}),Tt=Number(d?S:Q),St=O({amount:ft,usd:Tt,addEqualSign:!0});D={identifier:(s===A?o:s)??o,amount:ut,usdValue:St}}let{feeLimitFormatted:tt,feeInFiatLimit:nt}=w({transaction:K,price:S}),ot=$({shard:j,initialGasPrice:c.initialGasPrice,transaction:a,gasStationMetadata:e.gasStationMetadata}),et=_({transaction:a,gasPriceData:c}),it=G().getType(),at=v(it),N=T.length,rt=i.length>0?i[i.length-1]+1:0,st=f(t.transaction.data.toString()??""),k=U(n?.transactionTokenInfo),mt=M({data:st,identifier:s,highlight:k}),ct=L(),pt=h({to:`/${P}/${p}`,explorerAddress:ct}),dt=N===1||n?.needsSigning&&!i.includes(m),gt=u({input:et.toString(),decimals:C,addCommas:!0,digits:b}),lt=new yt(a.gasLimit).toFormat({decimalSeparator:",",groupSeparator:".",groupSize:3});return{commonData:{receiver:a.receiver.toString(),data:f(t.transaction.data.toString()??""),decodedData:mt,gasPrice:gt,gasLimit:lt,explorerLink:pt,ppu:c.ppu,ppuOptions:ot,egldLabel:o,tokenType:V(r),feeLimit:tt,feeInFiatLimit:nt,transactionsCount:N,currentIndex:m,currentIndexToSign:rt,highlight:k,scCall:B(n?.transactionTokenInfo),needsSigning:dt,isEditable:n?.needsSigning,providerName:at,address:p,username:z,origin:F.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{Kt as a};
2
+ //# sourceMappingURL=chunk-RJKYCUB2.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as s}from"./chunk-X6MN67NW.mjs";import{u as m}from"./chunk-JIDXMYLT.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
2
+ //# sourceMappingURL=chunk-RQ5H245L.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-X7R7RLVZ.mjs";import{a as g}from"./chunk-3S57OP4Z.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
2
+ //# sourceMappingURL=chunk-S75Q25RY.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as u}from"./chunk-L3MWDI6J.mjs";import{s as i}from"./chunk-JIDXMYLT.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-SF4BD7ZP.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as h}from"./chunk-EQSRTMFM.mjs";import{a as S}from"./chunk-XNLP533V.mjs";import{a as o}from"./chunk-FMQYLMTU.mjs";import{a as y}from"./chunk-MFUQ5NBC.mjs";import{b as i,c as f}from"./chunk-SF4BD7ZP.mjs";import{l}from"./chunk-65L5EBBL.mjs";var u={};async function d({serverTransaction:e,sessionId:t,isSequential:c}){let{hash:a,status:r,results:m,invalidTransaction:n,hasStatusChanged:p}=e;try{if(u[a]>30){i({sessionId:t,status:"timedOut"}),await o({sessionId:t,status:"timedOut"});return}if(n&&!c||r==="sent"){u[a]=u[a]?u[a]+1:1;return}if(c&&!r){let s=f({sessionId:t,transaction:e});await o({sessionId:t,status:s});return}if(p){let s=f({sessionId:t,transaction:e});await o({sessionId:t,status:s})}l(r)&&await S({sessionId:t,hash:a,results:m})}catch(T){console.error(T),i({sessionId:t,status:"timedOut"}),await o({sessionId:t,status:"timedOut"})}}async function R({sessionId:e,transactionBatch:t,isSequential:c}){try{if(t==null)return;let a=y(t),r=await h(a);for(let n of r)await d({serverTransaction:n,sessionId:e,isSequential:c});if(r.every(n=>n.status!=="pending")){if(r.every(s=>s.status==="success"))return i({sessionId:e,status:"success"});if(r.some(s=>s.status==="fail"))return i({sessionId:e,status:"fail"});if(r.every(s=>s.invalidTransaction))return i({sessionId:e,status:"invalid"})}}catch(a){console.error(a)}}export{R as a};
2
+ //# sourceMappingURL=chunk-SIRUYWHD.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-5HV6ENMZ.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
2
+ //# sourceMappingURL=chunk-SMLKNW6G.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as g}from"./chunk-V7PT3KKW.mjs";import{a as k}from"./chunk-3FX5RTHT.mjs";import{s as f}from"./chunk-JIDXMYLT.mjs";import{d as b}from"./chunk-UERJ6AKK.mjs";import{c as n}from"./chunk-UOUYS55Y.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-SXX3XHAW.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as et}from"./chunk-BLNUEDNB.mjs";import{a as mt}from"./chunk-6UZHM5LW.mjs";import{a as b}from"./chunk-22CLXEB2.mjs";import{a as pt}from"./chunk-WJCTIZ2A.mjs";import{a as w}from"./chunk-SXX3XHAW.mjs";import{a as Z,b as tt,g as st,l as ot}from"./chunk-CAA4VJRH.mjs";import{a as gt}from"./chunk-4ZQAHMC7.mjs";import{b as S}from"./chunk-WZRJWY5M.mjs";import{a as dt}from"./chunk-Y7IZFCJ5.mjs";import{a as It}from"./chunk-4ODPAHHA.mjs";import{a as ht}from"./chunk-MDVI45IV.mjs";import{a as ft}from"./chunk-SMLKNW6G.mjs";import{a as f}from"./chunk-TX6KTAJL.mjs";import{a as X}from"./chunk-5HV6ENMZ.mjs";import{a as ut}from"./chunk-NVLWSC4J.mjs";import{a as L}from"./chunk-IRLEEOUA.mjs";import{a as C,f as lt}from"./chunk-FWC42IFM.mjs";import{b as Tt}from"./chunk-AOT45CLU.mjs";import{d as rt}from"./chunk-SF4BD7ZP.mjs";import{k as it,l as nt,n as at}from"./chunk-65L5EBBL.mjs";import{a as A}from"./chunk-HORSXVIV.mjs";import{a as vt}from"./chunk-YTYVQKLJ.mjs";import{a as Q}from"./chunk-S75Q25RY.mjs";import{a as E}from"./chunk-QTKK6OSJ.mjs";import{a as J}from"./chunk-6ACLOUQ3.mjs";import{a as y}from"./chunk-6FXEHNGW.mjs";import{a as yt}from"./chunk-NJN53MJV.mjs";import{a as j}from"./chunk-YSCND2MX.mjs";import{a as V,b as q,s as u,u as Y}from"./chunk-JIDXMYLT.mjs";import{c as H,f as $}from"./chunk-UERJ6AKK.mjs";import{b as g}from"./chunk-VNLGNNIL.mjs";import{b as v}from"./chunk-6JM4DPOH.mjs";import{b as G,c as K,f as z}from"./chunk-NTEMINYA.mjs";import{b as Et}from"./chunk-76URRONH.mjs";import{a as ct}from"./chunk-ULK34VWM.mjs";import{a as I}from"./chunk-PLUWBWJ2.mjs";import W from"lodash.isequal";import Lt from"lodash.isequal";var Ft="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",x=class e extends ut{constructor(){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.store=u();this.initialData={pendingTransactions:[],historicTransactions:[]};this.closeUI=async()=>{this.data.pendingTransactions.length>0?(this.unsubscribeFunctions.forEach(s=>s.forEach(o=>o())),this.unsubscribeFunctions.clear(),await this.uiElement?.closeWithAnimation()):super.closeUI()};this.data={...this.initialData}}static getInstance(){return e.instance||(e.instance=new e),e.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){p.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let o=this.store.subscribe(async({toasts:i,transactions:n},{toasts:a,transactions:c})=>{(!Lt(a.transactionToasts,i.transactionToasts)||!Lt(c,n))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(Ft,[o]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=p.getInstance();await this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s,account:o,toasts:i,network:n}=this.store.getState(),{pendingTransactionToasts:a}=await b({toastList:i,transactionsSessions:s,account:o});this.data.pendingTransactions=a,this.data.historicTransactions=await et.getTransactionsHistory({transactionsSessions:s,address:o.address,explorerAddress:n.network.explorerAddress,egldLabel:n.network.egldLabel}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){rt(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};import R from"bignumber.js";var N=class e{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),s=g(t),{isExpired:o}=E(s?.nativeAuthToken);o?h().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let t=this.store.getState(),s=g(t),o=$(t);return!!(s?.nativeAuthToken&&o)};this.addPlannedLogout=()=>{let t=h(),s=H(this.store.getState()),o=t.getType()===I.webview;if(!s||o)return;this.addLogoutWarning();let i=g(this.store.getState()),{secondsUntilExpires:n,expiresAt:a}=E(i?.nativeAuthToken),c=new R(String(n)),r=`${s}_${a}`,m=this.plannedLogoutKey===r;if(!(n&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=r,clearTimeout(this.plannedLogoutTimeoutRef??0);let d=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{p.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},d.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},d.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=v(this.store.getState()),s=g(this.store.getState()),{secondsUntilExpires:o}=E(s?.nativeAuthToken),i=new R(String(o)),n=i.times(1e3);if(!o||i.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new R(t?.tokenExpirationToastWarningSeconds??0).times(1e3),r=i.times(1e3).minus(c),m=mt(n.toNumber()),l=r.isLessThanOrEqualTo(0)?0:r.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{p.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return e.instance||(e.instance=new e),e.instance}};async function B({address:e,provider:t,apiAddress:s}){let o=await y({address:e,baseURL:s});if(!o)throw new Error("Account not found");Tt({address:e,providerType:t.getType()});let i={...o,username:A(o.username),nonce:L(o)};C(i),await S(e),w(),o.shard!=null&&await pt({shard:Number(o.shard),apiAddress:s})}async function kt(e){let{network:{apiAddress:t}}=f();await e.login();let s=await e.getAddress();if(!s)throw new Error("Address not found");return await B({address:s,provider:e,apiAddress:t}),{address:s}}async function Dt({provider:e,nativeAuthConfig:t,token:s}){let{network:{apiAddress:o}}=f(),i=Q(t),n=s;n||(n=await i.initialize({noCache:!0}));let{address:a,signature:c,...r}=await e.login({token:n});if(!a)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let l=J(r?.accessToken)?r.accessToken:i.getToken({address:a,token:n,signature:c});q({loginToken:n,signature:c,nativeAuthToken:l});let d=await dt({loginToken:n,extraInfoData:{multisig:r?.multisig,impersonate:r?.impersonate},address:a});return await B({address:d,provider:e,apiAddress:o}),{address:d,signature:c}}async function bt(e,t){let s=v(Y());if(s)return await Dt({provider:e,nativeAuthConfig:s,token:t?.token});let{address:o}=await kt(e);return await S(o),w(),{address:o}}var U={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${tt}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${Z}-${Date.now()}`}},Rt={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},Bt=e=>{for(let[t,s]of Object.entries(Rt))if(e.includes(t))return s;return"Error when signing"};function _(e,t="error"){let s=e?.message,o=Bt(s),n=o!=="Error when signing"?"warning":t,a=Object.keys(U).includes(n)?U[n]:U.error,{toastId:c,iconClassName:r,title:m}=a;return M({toastId:c,duration:1e4,icon:"times",iconClassName:r,message:o,title:m}),o}async function Ct({provider:e,transactions:t,options:s={}}){await St();let{isGuarded:o,activeGuardianAddress:i,nonce:n}=vt(),a=e.getType()===I.ledger,c=It({latestNonce:n,transactions:t}),r=i&&o&&!s.skipGuardian?c?.map(l=>(l.version=G.withTxOptions().valueOf(),l.options=z.withOptions({guarded:!0,...a?{hashSign:!0}:{}}).valueOf(),l.guardian=K.newFromBech32(i),l)):c,m=await e.signTransactions(r)??[];return lt(n+m.length),m}var O=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let s=await bt(this.provider,t);return V(this.provider.getType()),wt(this),N.getInstance().init(),s}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let s=await gt({provider:this.provider,options:t});return this._isLoggingOut=!1,s}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,s){try{return await Ct({provider:this.provider,transactions:t,options:s})}catch(o){let i=_(o);throw new Error(i)}}async signMessage(t,s){try{return await ft({provider:this.provider,message:t,options:s})}catch(o){let i=_(o,"warning");throw new Error(i)}}async verifyMessage(t){return await ht(t)}cancelLogin(){this.provider.cancelLogin?.()}};var At=null;function wt(e){At=e}function h(){return At||new O(Et)}var Ut=async()=>{try{let e=X(),{network:t}=f();try{let s=await y({address:e,baseURL:t.apiAddress});if(s!=null){let o={...s,username:A(s.username),nonce:L(s)};return C(o),o}}catch(s){console.error("Failed getting account ",s)}}catch(e){console.error("Failed getting address ",e)}return null};async function St(){let e=h();if(e==null)throw"Provider not initialized";try{if(!e.init)throw"Current provider does not have init() function";return await e.init()?Ut():void 0}catch(t){console.error("Failed initializing provider ",t)}}var F={},T={},_t=(e,t)=>{u().setState(({toasts:s})=>{let o=s.customToasts.length>0?Math.max(...s.customToasts.map(r=>parseInt(r.toastId.split("-").pop()??"0"))):0,i=t??`custom-toast-${o+1}`,n=s.customToasts.findIndex(r=>r.toastId===i),a={...e,toastId:i};if(n!==-1){s.customToasts[n]=a;return}s.customToasts.push({...a,toastId:i})},!1,"addCustomToast")},P=e=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(s=>s.toastId!==e)},!1,"removeCustomToast")},xt=()=>{u().setState(({toasts:e})=>{e.customToasts=[]},!1,"removeAllCustomToasts")},zo=()=>{u().setState(({toasts:e})=>{e.transactionToasts=[]})},Nt=({toastId:e,totalDuration:t})=>{let s="";return u().setState(({toasts:o})=>{let i=o.transactionToasts.length>0?Math.max(...o.transactionToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0;s=e??`transaction-toast-${i+1}`,o.transactionToasts.push({startTime:j(),endTime:yt(t),toastId:s})},!1,"addTransactionToast"),s},k=e=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(s=>s.toastId!==e)},!1,"removeTransactionToast"),delete T[e],delete F[e]},M=e=>{let{toasts:t}=u().getState(),s=t.customToasts.length>0?Math.max(...t.customToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0,o=e.toastId||`custom-toast-${s+1}`;return e.onClose&&(T[o]=e.onClose),e.instantiateToastElement?(F[o]=e.instantiateToastElement,u().setState(({toasts:i})=>{let n=i.customToasts.findIndex(r=>r.toastId===o),a={...e,instantiateToastElement:null,toastId:o};n!==-1?i.customToasts[n]=a:i.customToasts.push(a)},!1,"createCustomToast"),o):(_t(e,o),o)};var Mt=1e4,D=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=Mt;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let s=setTimeout(()=>{k(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,s)};this.startWithCustomDuration=(t,s)=>{if(this.stop(t),s<=0)return;let o=setTimeout(()=>{P(t);let i=T[t];i?.()},s);this.timeoutIntervals.set(t,o)};this.stop=t=>{let s=this.timeoutIntervals.get(t);s&&(clearTimeout(s),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||Mt}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};var p=class e{constructor(){this.isCreatingElement=!1;this.toastsElement=null;this.transactionToasts=[];this.customToasts=[];this.storeToastsSubscription=()=>null;this.eventBusUnsubscribeFunctions=[];this.eventBus=null;this.store=u();this.destroy(),this.lifetimeManager=new D,this.notificationsFeedManager=x.getInstance()}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.subscribeToEventBusNotifications(),this.storeToastsSubscription=this.store.subscribe(async({toasts:s,transactions:o},{toasts:i,transactions:n})=>{(!W(i.transactionToasts,s.transactionToasts)||!W(n,o))&&await this.updateTransactionToastsList(),W(i.customToasts,s.customToasts)||await this.updateCustomToastList()})}static getInstance(){return e.instance||(e.instance=new e),e.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),o=s[t];if(!o)return!1;let{status:i}=o,n=at(i),a=nt(i),c=it(i),r=a||c||n;return r?(this.successfulToastLifetime&&this.lifetimeManager.start(t),r):(this.lifetimeManager.stop(t),r)}async createTransactionToast(t,s){let o=Nt({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),o}createCustomToast(t){let s=M(t);return this.updateCustomToastList(),s}async updateTransactionToastsList(){let{toasts:t,transactions:s,account:o}=this.store.getState(),{pendingTransactionToasts:i,completedTransactionToasts:n}=await b({toastList:t,transactionsSessions:s,account:o});this.transactionToasts=[...i,...n];for(let a of t.transactionToasts)this.handleCompletedTransaction(a.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let i="message"in s?{...s}:{...s,instantiateToastElement:F[s.toastId]};this.customToasts.push(i),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",this.customToasts)}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await ct.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}handleTransactionToastClose(t){this.handleCompletedTransaction(t)&&k(t)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.handleCloseToast.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.handleCloseToast.bind(this))}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}async showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}handleCloseToast(t){if(this.customToasts.find(o=>o.toastId===t)){this.lifetimeManager.stop(t);let o=T[t];o?.(),P(t);return}this.handleTransactionToastClose(t)}async publishTransactionToasts(){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts),this.hideToasts();return}if(!this.eventBus){let t=await this.createToastListElement();if(!t)return;this.eventBus=await t.getEventBus()}this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts)}destroy(){this.storeToastsSubscription(),this.lifetimeManager?.destroy(),this.notificationsFeedManager?.destroy(),xt(),this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[]}};export{x as a,F as b,T as c,_t as d,P as e,xt as f,zo as g,Nt as h,k as i,M as j,D as k,p as l,N as m,B as n,bt as o,_ as p,Ct as q,O as r,wt as s,h as t,St as u};
2
+ //# sourceMappingURL=chunk-TS77UH5B.mjs.map