@multiversx/sdk-dapp 5.3.2 → 5.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1059) hide show
  1. package/out/__chunks__/{chunk-4VUMAG4J.mjs → chunk-2JFN726G.mjs} +1 -1
  2. package/out/__chunks__/{chunk-4VUMAG4J.mjs.map → chunk-2JFN726G.mjs.map} +1 -1
  3. package/out/__chunks__/chunk-2QIUCSYX.mjs +2 -0
  4. package/out/__chunks__/chunk-2QIUCSYX.mjs.map +7 -0
  5. package/out/__chunks__/chunk-2XIBNXVY.mjs +2 -0
  6. package/out/__chunks__/chunk-3EKM2Y4K.mjs +2 -0
  7. package/out/__chunks__/chunk-3EKM2Y4K.mjs.map +7 -0
  8. package/out/__chunks__/{chunk-XV3H7VOE.mjs → chunk-3G2Q2LCB.mjs} +2 -2
  9. package/out/__chunks__/{chunk-YYH2GKPL.mjs → chunk-3GRRAVW4.mjs} +2 -2
  10. package/out/__chunks__/{chunk-YYH2GKPL.mjs.map → chunk-3GRRAVW4.mjs.map} +1 -1
  11. package/out/__chunks__/chunk-3KJMEECV.mjs +2 -0
  12. package/out/__chunks__/{chunk-IYM4ZX72.mjs → chunk-3NSS3FT6.mjs} +2 -2
  13. package/out/__chunks__/{chunk-M7B26JXO.mjs → chunk-3VIMQHXJ.mjs} +2 -2
  14. package/out/__chunks__/{chunk-KIMRQMXB.mjs → chunk-4PRJNNSH.mjs} +2 -2
  15. package/out/__chunks__/{chunk-KIMRQMXB.mjs.map → chunk-4PRJNNSH.mjs.map} +1 -1
  16. package/out/__chunks__/{chunk-TR2KNDCH.mjs → chunk-53NQH7NR.mjs} +2 -2
  17. package/out/__chunks__/chunk-53NQH7NR.mjs.map +7 -0
  18. package/out/__chunks__/{chunk-G5N56FHJ.mjs → chunk-5OMQOYP7.mjs} +2 -2
  19. package/out/__chunks__/chunk-5P3UEE7C.mjs +1 -0
  20. package/out/__chunks__/chunk-5R7MHTVH.mjs +2 -0
  21. package/out/__chunks__/chunk-5R7MHTVH.mjs.map +7 -0
  22. package/out/__chunks__/{chunk-6EKK7AJE.mjs → chunk-5WJQ2KWS.mjs} +2 -2
  23. package/out/__chunks__/chunk-65F23E3Q.mjs +2 -0
  24. package/out/__chunks__/chunk-6M3IQXQF.mjs +2 -0
  25. package/out/__chunks__/{chunk-LYSI4URP.mjs → chunk-6PCK2RPQ.mjs} +2 -2
  26. package/out/__chunks__/{chunk-K4JJZCL3.mjs → chunk-6QPOPWIN.mjs} +2 -2
  27. package/out/__chunks__/{chunk-LG6Q3PRI.mjs → chunk-6RCSIT2P.mjs} +2 -2
  28. package/out/__chunks__/chunk-6RYKBAUE.mjs +2 -0
  29. package/out/__chunks__/chunk-7BESPSVI.mjs +2 -0
  30. package/out/__chunks__/chunk-7BESPSVI.mjs.map +7 -0
  31. package/out/__chunks__/{chunk-5KYXNO4J.mjs → chunk-7FV6DEQX.mjs} +2 -2
  32. package/out/__chunks__/chunk-7GWD5XR7.mjs +2 -0
  33. package/out/__chunks__/chunk-7GWD5XR7.mjs.map +7 -0
  34. package/out/__chunks__/{chunk-5AGKFSA6.mjs → chunk-7TH3QSCV.mjs} +2 -2
  35. package/out/__chunks__/{chunk-CXAX5TAG.mjs → chunk-AFOS3Q4N.mjs} +2 -2
  36. package/out/__chunks__/chunk-AIQTIXFV.mjs +2 -0
  37. package/out/__chunks__/chunk-AMXCV2YT.mjs +2 -0
  38. package/out/__chunks__/{chunk-4GCIE2BM.mjs.map → chunk-AMXCV2YT.mjs.map} +1 -1
  39. package/out/__chunks__/{chunk-ZRSYQ3MT.mjs → chunk-AOLW46E4.mjs} +2 -2
  40. package/out/__chunks__/chunk-APCGI2A5.mjs +2 -0
  41. package/out/__chunks__/{chunk-LKOWOTL2.mjs → chunk-AWH3CO5C.mjs} +2 -2
  42. package/out/__chunks__/{chunk-MS7BFY27.mjs → chunk-BE5OKL3L.mjs} +2 -2
  43. package/out/__chunks__/chunk-BE5OKL3L.mjs.map +7 -0
  44. package/out/__chunks__/chunk-BFD5ZJOK.mjs +1 -0
  45. package/out/__chunks__/{chunk-DFSBS3PX.mjs → chunk-BHWSBAMZ.mjs} +2 -2
  46. package/out/__chunks__/chunk-BJSQMG6V.mjs +2 -0
  47. package/out/__chunks__/chunk-BJSQMG6V.mjs.map +7 -0
  48. package/out/__chunks__/chunk-BODQ3QWR.mjs +2 -0
  49. package/out/__chunks__/chunk-BODQ3QWR.mjs.map +7 -0
  50. package/out/__chunks__/{chunk-XDBKPKTG.mjs → chunk-BSA3IGL6.mjs} +2 -2
  51. package/out/__chunks__/chunk-C4FY7JBD.mjs +2 -0
  52. package/out/__chunks__/chunk-C4FY7JBD.mjs.map +7 -0
  53. package/out/__chunks__/chunk-CAOL6XLD.mjs +2 -0
  54. package/out/__chunks__/{chunk-RV6SJMD7.mjs → chunk-CMERGCP7.mjs} +2 -2
  55. package/out/__chunks__/chunk-D27ZK232.mjs +2 -0
  56. package/out/__chunks__/chunk-D4JFV2LM.mjs +2 -0
  57. package/out/__chunks__/chunk-D6CXZV4Y.mjs +2 -0
  58. package/out/__chunks__/{chunk-H73D4VUZ.mjs.map → chunk-D6CXZV4Y.mjs.map} +1 -1
  59. package/out/__chunks__/{chunk-CDWODCD7.mjs → chunk-DCLI63KS.mjs} +1 -1
  60. package/out/__chunks__/chunk-DCLI63KS.mjs.map +7 -0
  61. package/out/__chunks__/{chunk-6CLCXSHA.mjs → chunk-DIHGGV4M.mjs} +2 -2
  62. package/out/__chunks__/chunk-DIHGGV4M.mjs.map +7 -0
  63. package/out/__chunks__/{chunk-PKLBZG2R.mjs → chunk-DNYE6AJI.mjs} +2 -2
  64. package/out/__chunks__/chunk-EPB4JKWX.mjs +2 -0
  65. package/out/__chunks__/{chunk-K5K2FVFB.mjs.map → chunk-EPB4JKWX.mjs.map} +1 -1
  66. package/out/__chunks__/{chunk-ZKBKYLAP.mjs → chunk-ERDTZ52C.mjs} +2 -2
  67. package/out/__chunks__/chunk-F2W755EK.mjs +2 -0
  68. package/out/__chunks__/{chunk-NVBWPLR7.mjs → chunk-FDR5TTUS.mjs} +2 -2
  69. package/out/__chunks__/{chunk-DLCBEPEX.mjs → chunk-FE54XZXM.mjs} +2 -2
  70. package/out/__chunks__/{chunk-DLCBEPEX.mjs.map → chunk-FE54XZXM.mjs.map} +2 -2
  71. package/out/__chunks__/{chunk-7MBSWJUD.mjs → chunk-FK6DWWZF.mjs} +2 -2
  72. package/out/__chunks__/{chunk-NAYC2B72.mjs → chunk-FKUMHDP5.mjs} +2 -2
  73. package/out/__chunks__/{chunk-TFARIEZF.mjs → chunk-FNEL7WRG.mjs} +2 -2
  74. package/out/__chunks__/chunk-FNEL7WRG.mjs.map +7 -0
  75. package/out/__chunks__/{chunk-3XTYIGW5.mjs → chunk-GBDHEWNQ.mjs} +2 -2
  76. package/out/__chunks__/{chunk-WS2MTQIC.mjs → chunk-GYYGYOIE.mjs} +2 -2
  77. package/out/__chunks__/{chunk-PMATTOPD.mjs → chunk-HSF3JATH.mjs} +2 -2
  78. package/out/__chunks__/{chunk-5DILKRFV.mjs → chunk-HTT67LH3.mjs} +2 -2
  79. package/out/__chunks__/chunk-HX3JKALT.mjs +2 -0
  80. package/out/__chunks__/chunk-HX3JKALT.mjs.map +7 -0
  81. package/out/__chunks__/{chunk-NTPPBM7T.mjs → chunk-I3ILB737.mjs} +2 -2
  82. package/out/__chunks__/{chunk-N4KX33RW.mjs → chunk-IAN3XFXS.mjs} +2 -2
  83. package/out/__chunks__/{chunk-TQ7T6ULY.mjs → chunk-IHAZNPKL.mjs} +2 -2
  84. package/out/__chunks__/{chunk-JTV664SG.mjs → chunk-IHSJITVR.mjs} +2 -2
  85. package/out/__chunks__/chunk-IRFXPRDX.mjs +2 -0
  86. package/out/__chunks__/chunk-IRFXPRDX.mjs.map +7 -0
  87. package/out/__chunks__/chunk-IVMRBKXP.mjs +2 -0
  88. package/out/__chunks__/chunk-IVMRBKXP.mjs.map +7 -0
  89. package/out/__chunks__/{chunk-YGMILCHH.mjs → chunk-IZTW4MG5.mjs} +2 -2
  90. package/out/__chunks__/chunk-IZTW4MG5.mjs.map +7 -0
  91. package/out/__chunks__/chunk-JA27GJYB.mjs +2 -0
  92. package/out/__chunks__/chunk-JA27GJYB.mjs.map +7 -0
  93. package/out/__chunks__/chunk-JJUR63EV.mjs +2 -0
  94. package/out/__chunks__/{chunk-E77ZH5JT.mjs → chunk-JMK6YN6B.mjs} +2 -2
  95. package/out/__chunks__/{chunk-JZ22ZC2D.mjs → chunk-JO7KFAZC.mjs} +2 -2
  96. package/out/__chunks__/{chunk-3PAZABVI.mjs → chunk-JQ3KV55D.mjs} +2 -2
  97. package/out/__chunks__/chunk-K4E7GCWI.mjs +2 -0
  98. package/out/__chunks__/chunk-KKQKER7U.mjs +2 -0
  99. package/out/__chunks__/chunk-KKQKER7U.mjs.map +7 -0
  100. package/out/__chunks__/chunk-KLI5H35D.mjs +2 -0
  101. package/out/__chunks__/chunk-KMITMS2L.mjs +2 -0
  102. package/out/__chunks__/chunk-KMITMS2L.mjs.map +7 -0
  103. package/out/__chunks__/chunk-KOUT2Y7O.mjs +2 -0
  104. package/out/__chunks__/chunk-KOUT2Y7O.mjs.map +7 -0
  105. package/out/__chunks__/{chunk-GUAXMODN.mjs → chunk-KYQ5IP6W.mjs} +2 -2
  106. package/out/__chunks__/chunk-LASOW7GT.mjs +2 -0
  107. package/out/__chunks__/chunk-LASOW7GT.mjs.map +7 -0
  108. package/out/__chunks__/chunk-LFMHK4UE.mjs +2 -0
  109. package/out/__chunks__/{chunk-HFX5WAAI.mjs.map → chunk-LFMHK4UE.mjs.map} +1 -1
  110. package/out/__chunks__/{chunk-N5VJJRWV.mjs → chunk-LQAAQV3I.mjs} +2 -2
  111. package/out/__chunks__/chunk-LW6KBFPA.mjs +2 -0
  112. package/out/__chunks__/chunk-LW6KBFPA.mjs.map +7 -0
  113. package/out/__chunks__/{chunk-PW34EFS7.mjs → chunk-LZWEL473.mjs} +2 -2
  114. package/out/__chunks__/{chunk-W5MTQBQF.mjs → chunk-M3F2J3PW.mjs} +2 -2
  115. package/out/__chunks__/chunk-M3F2J3PW.mjs.map +7 -0
  116. package/out/__chunks__/chunk-MTGS435F.mjs +2 -0
  117. package/out/__chunks__/{chunk-OSG4UY2Z.mjs → chunk-NGJIMP5Y.mjs} +2 -2
  118. package/out/__chunks__/{chunk-7WJMUTGI.mjs → chunk-NQE5YCZP.mjs} +2 -2
  119. package/out/__chunks__/{chunk-H5NVCCUR.mjs → chunk-NWRCQLFI.mjs} +2 -2
  120. package/out/__chunks__/chunk-NYZ726DG.mjs +2 -0
  121. package/out/__chunks__/{chunk-5E32AO3E.mjs → chunk-O3F75VWG.mjs} +2 -2
  122. package/out/__chunks__/chunk-O3F75VWG.mjs.map +7 -0
  123. package/out/__chunks__/{chunk-OAPLU7UX.mjs → chunk-OBIQ63DJ.mjs} +2 -2
  124. package/out/__chunks__/chunk-ONT6BGYB.mjs +2 -0
  125. package/out/__chunks__/{chunk-CYCS3K6Q.mjs.map → chunk-ONT6BGYB.mjs.map} +2 -2
  126. package/out/__chunks__/chunk-OSV2GCKV.mjs +2 -0
  127. package/out/__chunks__/chunk-PCPUKFTJ.mjs +2 -0
  128. package/out/__chunks__/{chunk-URTM5OGN.mjs.map → chunk-PCPUKFTJ.mjs.map} +1 -1
  129. package/out/__chunks__/chunk-PGPTO2Q4.mjs +2 -0
  130. package/out/__chunks__/{chunk-3CG4C7T4.mjs.map → chunk-PGPTO2Q4.mjs.map} +1 -1
  131. package/out/__chunks__/{chunk-FNHO66WN.mjs → chunk-PIFCCIF3.mjs} +2 -2
  132. package/out/__chunks__/chunk-PJ5TKZD5.mjs +2 -0
  133. package/out/__chunks__/{chunk-4SS6EY66.mjs → chunk-PN7JDWSZ.mjs} +2 -2
  134. package/out/__chunks__/chunk-PS3SWN5M.mjs +2 -0
  135. package/out/__chunks__/chunk-PS3SWN5M.mjs.map +7 -0
  136. package/out/__chunks__/chunk-PWAP64SN.mjs +2 -0
  137. package/out/__chunks__/chunk-PWAP64SN.mjs.map +7 -0
  138. package/out/__chunks__/{chunk-2KGBHCEN.mjs → chunk-PWOYKKUY.mjs} +2 -2
  139. package/out/__chunks__/chunk-PWOYKKUY.mjs.map +7 -0
  140. package/out/__chunks__/{chunk-UT4BWFQH.mjs → chunk-PYRTFEMB.mjs} +2 -2
  141. package/out/__chunks__/chunk-PYRTFEMB.mjs.map +7 -0
  142. package/out/__chunks__/{chunk-LNXZQGLV.mjs → chunk-Q7YFEWWK.mjs} +2 -2
  143. package/out/__chunks__/{chunk-LNXZQGLV.mjs.map → chunk-Q7YFEWWK.mjs.map} +1 -1
  144. package/out/__chunks__/{chunk-ZATPIKZ2.mjs → chunk-QFXS7HGL.mjs} +2 -2
  145. package/out/__chunks__/chunk-QMZJNNU4.mjs +2 -0
  146. package/out/__chunks__/chunk-QMZJNNU4.mjs.map +7 -0
  147. package/out/__chunks__/chunk-QNYO7NI5.mjs +2 -0
  148. package/out/__chunks__/{chunk-LHEH7L4L.mjs.map → chunk-QNYO7NI5.mjs.map} +3 -3
  149. package/out/__chunks__/{chunk-UCFMVEOZ.mjs → chunk-QX32V6TT.mjs} +2 -2
  150. package/out/__chunks__/chunk-QX32V6TT.mjs.map +7 -0
  151. package/out/__chunks__/{chunk-O65OBG5D.mjs → chunk-QZC64RDG.mjs} +2 -2
  152. package/out/__chunks__/{chunk-AZA2GNTR.mjs → chunk-RDEVBV56.mjs} +2 -2
  153. package/out/__chunks__/{chunk-IVHD32VC.mjs → chunk-RIPIZH54.mjs} +2 -2
  154. package/out/__chunks__/chunk-RMLVJDCQ.mjs +2 -0
  155. package/out/__chunks__/chunk-RVBZZQS2.mjs +2 -0
  156. package/out/__chunks__/{chunk-FPKFAJNW.mjs → chunk-RXRVBUAX.mjs} +2 -2
  157. package/out/__chunks__/{chunk-VGGJESXR.mjs → chunk-SBCXU7OA.mjs} +2 -2
  158. package/out/__chunks__/chunk-SBCXU7OA.mjs.map +7 -0
  159. package/out/__chunks__/{chunk-SALLGAGD.mjs → chunk-SFXZJSEY.mjs} +2 -2
  160. package/out/__chunks__/{chunk-6F4OKEUQ.mjs → chunk-SYHILLXA.mjs} +2 -2
  161. package/out/__chunks__/{chunk-KDMYDO7R.mjs → chunk-TD26OL6Y.mjs} +2 -2
  162. package/out/__chunks__/chunk-TD26OL6Y.mjs.map +7 -0
  163. package/out/__chunks__/{chunk-HBPQEY3L.mjs → chunk-TRUOISVH.mjs} +2 -2
  164. package/out/__chunks__/chunk-TWLO2IAN.mjs +2 -0
  165. package/out/__chunks__/chunk-TWLO2IAN.mjs.map +7 -0
  166. package/out/__chunks__/{chunk-N55JEIM6.mjs → chunk-TWYGNEQS.mjs} +1 -1
  167. package/out/__chunks__/chunk-TWYGNEQS.mjs.map +7 -0
  168. package/out/__chunks__/{chunk-OIRXFS5Q.mjs → chunk-UJTYOT5N.mjs} +2 -2
  169. package/out/__chunks__/{chunk-SAN5F2PW.mjs → chunk-UWWAVJFM.mjs} +2 -2
  170. package/out/__chunks__/chunk-V5ZSFCKJ.mjs +2 -0
  171. package/out/__chunks__/{chunk-6JM4DPOH.mjs.map → chunk-V5ZSFCKJ.mjs.map} +3 -3
  172. package/out/__chunks__/{chunk-ATLICLWT.mjs → chunk-V7K77GSE.mjs} +2 -2
  173. package/out/__chunks__/{chunk-UPABDY55.mjs → chunk-VC74WYUB.mjs} +2 -2
  174. package/out/__chunks__/{chunk-BCSNXRMR.mjs → chunk-VCPH27TY.mjs} +1 -1
  175. package/out/__chunks__/chunk-VCPH27TY.mjs.map +7 -0
  176. package/out/__chunks__/chunk-VGDWWBLN.mjs +2 -0
  177. package/out/__chunks__/{chunk-NAYDJEWI.mjs → chunk-VSMFXZJI.mjs} +2 -2
  178. package/out/__chunks__/chunk-VSMFXZJI.mjs.map +7 -0
  179. package/out/__chunks__/{chunk-XXSANEEO.mjs → chunk-W2A2N772.mjs} +2 -2
  180. package/out/__chunks__/{chunk-U3MIDVR7.mjs → chunk-W3S6I34V.mjs} +1 -1
  181. package/out/__chunks__/chunk-W3S6I34V.mjs.map +7 -0
  182. package/out/__chunks__/{chunk-5W7PFHTT.mjs → chunk-WFMBEYKX.mjs} +2 -2
  183. package/out/__chunks__/{chunk-MLDUGECH.mjs → chunk-WMRVRNAI.mjs} +2 -2
  184. package/out/__chunks__/chunk-WMRVRNAI.mjs.map +7 -0
  185. package/out/__chunks__/chunk-WYE5FJIJ.mjs +2 -0
  186. package/out/__chunks__/chunk-WYE5FJIJ.mjs.map +7 -0
  187. package/out/__chunks__/{chunk-O6ALDFLM.mjs → chunk-WZEDZF3Q.mjs} +2 -2
  188. package/out/__chunks__/chunk-X6D2T4UF.mjs +2 -0
  189. package/out/__chunks__/{chunk-FRUJEORM.mjs.map → chunk-X6D2T4UF.mjs.map} +1 -1
  190. package/out/__chunks__/chunk-XA4YS4GK.mjs +2 -0
  191. package/out/__chunks__/chunk-XA4YS4GK.mjs.map +7 -0
  192. package/out/__chunks__/{chunk-4VA2SULD.mjs → chunk-XA6ZDGIQ.mjs} +1 -1
  193. package/out/__chunks__/chunk-XA6ZDGIQ.mjs.map +7 -0
  194. package/out/__chunks__/{chunk-4MCQ27VQ.mjs → chunk-XHCLYR42.mjs} +2 -2
  195. package/out/__chunks__/chunk-XHCLYR42.mjs.map +7 -0
  196. package/out/__chunks__/{chunk-7JDTQFLQ.mjs → chunk-XLMQWFKS.mjs} +2 -2
  197. package/out/__chunks__/chunk-XLMQWFKS.mjs.map +7 -0
  198. package/out/__chunks__/{chunk-HUXPA4C2.mjs → chunk-Y6QPE6SZ.mjs} +2 -2
  199. package/out/__chunks__/{chunk-7PE652LB.mjs → chunk-YGHJRPPY.mjs} +2 -2
  200. package/out/__chunks__/chunk-YMDS57T6.mjs +2 -0
  201. package/out/__chunks__/chunk-YMDS57T6.mjs.map +7 -0
  202. package/out/__chunks__/{chunk-TMRKN7VL.mjs → chunk-YXNJS4KL.mjs} +2 -2
  203. package/out/__chunks__/{chunk-7UA7QAEF.mjs → chunk-Z6OAKBWP.mjs} +2 -2
  204. package/out/__chunks__/chunk-Z6OAKBWP.mjs.map +7 -0
  205. package/out/__chunks__/chunk-ZOYJTXNI.mjs +2 -0
  206. package/out/__chunks__/chunk-ZOYJTXNI.mjs.map +7 -0
  207. package/out/apiCalls/account/getAccountFromApi.cjs +1 -1
  208. package/out/apiCalls/account/getAccountFromApi.cjs.map +3 -3
  209. package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
  210. package/out/apiCalls/account/getScamAddressData.cjs +1 -1
  211. package/out/apiCalls/account/getScamAddressData.cjs.map +3 -3
  212. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  213. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  214. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  215. package/out/apiCalls/economics/getEconomics.cjs +1 -1
  216. package/out/apiCalls/economics/getEconomics.cjs.map +3 -3
  217. package/out/apiCalls/economics/getEconomics.mjs +1 -1
  218. package/out/apiCalls/tokens/getPersistedToken.mjs +1 -1
  219. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  220. package/out/apiCalls/tokens/getTokenDetails.cjs +1 -1
  221. package/out/apiCalls/tokens/getTokenDetails.cjs.map +3 -3
  222. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  223. package/out/apiCalls/tokens/getTokenDetails.mjs.map +2 -2
  224. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  225. package/out/apiCalls/transactions/getTransactionByHash.cjs +1 -1
  226. package/out/apiCalls/transactions/getTransactionByHash.cjs.map +3 -3
  227. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  228. package/out/apiCalls/transactions/getTransactionByHash.mjs.map +2 -2
  229. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  230. package/out/constants/browser.constants.mjs +1 -1
  231. package/out/constants/browser.constants.mjs.map +4 -4
  232. package/out/constants/mvx.constants.cjs +1 -1
  233. package/out/constants/mvx.constants.cjs.map +3 -3
  234. package/out/constants/mvx.constants.d.ts +1 -0
  235. package/out/constants/mvx.constants.mjs +1 -1
  236. package/out/constants/storage.constants.cjs.map +1 -1
  237. package/out/constants/storage.constants.d.ts +1 -1
  238. package/out/constants/storage.constants.mjs +1 -1
  239. package/out/constants/webWalletProvider.constants.mjs +1 -1
  240. package/out/constants/webWalletProvider.constants.mjs.map +4 -4
  241. package/out/constants/window.constants.cjs +1 -1
  242. package/out/constants/window.constants.cjs.map +1 -1
  243. package/out/constants/window.constants.mjs +1 -1
  244. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +1 -1
  245. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs.map +3 -3
  246. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  247. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  248. package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +1 -1
  249. package/out/controllers/TransactionsTableController/TransactionsTableController.cjs.map +3 -3
  250. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  251. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  252. package/out/lib/sdkDappUi.mjs +1 -1
  253. package/out/managers/LogoutManager/LogoutManager.cjs +1 -1
  254. package/out/managers/LogoutManager/LogoutManager.cjs.map +3 -3
  255. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  256. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  257. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  258. package/out/managers/ToastManager/ToastManager.mjs +1 -1
  259. package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
  260. package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
  261. package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs +1 -1
  262. package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs.map +3 -3
  263. package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  264. package/out/managers/ToastManager/helpers/createTransactionToast.mjs +1 -1
  265. package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs +1 -1
  266. package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs.map +3 -3
  267. package/out/managers/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
  268. package/out/managers/ToastManager/helpers/getToastTransactionsStatus.cjs.map +1 -1
  269. package/out/managers/ToastManager/helpers/getToastTransactionsStatus.mjs +1 -1
  270. package/out/managers/ToastManager/index.mjs +1 -1
  271. package/out/managers/TransactionManager/TransactionManager.cjs +1 -1
  272. package/out/managers/TransactionManager/TransactionManager.cjs.map +3 -3
  273. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  274. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +1 -1
  275. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs.map +3 -3
  276. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  277. package/out/managers/TransactionManager/helpers/getToastDuration.cjs +1 -1
  278. package/out/managers/TransactionManager/helpers/getToastDuration.cjs.map +3 -3
  279. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  280. package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +1 -1
  281. package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs.map +3 -3
  282. package/out/managers/TransactionManager/helpers/getTransactionsStatus.d.ts +1 -1
  283. package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
  284. package/out/managers/TransactionManager/index.mjs +1 -1
  285. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -1
  286. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +3 -3
  287. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  288. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  289. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  290. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  291. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +1 -1
  292. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs.map +3 -3
  293. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  294. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  295. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  296. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  297. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  298. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  299. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  300. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  301. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  302. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  303. package/out/methods/account/getAccount.cjs +1 -1
  304. package/out/methods/account/getAccount.cjs.map +3 -3
  305. package/out/methods/account/getAccount.mjs +1 -1
  306. package/out/methods/account/getAccountInfo.cjs +1 -1
  307. package/out/methods/account/getAccountInfo.cjs.map +3 -3
  308. package/out/methods/account/getAccountInfo.d.ts +1 -1
  309. package/out/methods/account/getAccountInfo.mjs +1 -1
  310. package/out/methods/account/getAccountInfo.mjs.map +2 -2
  311. package/out/methods/account/getAddress.cjs +1 -1
  312. package/out/methods/account/getAddress.cjs.map +3 -3
  313. package/out/methods/account/getAddress.mjs +1 -1
  314. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  315. package/out/methods/account/getLatestNonce.mjs +1 -1
  316. package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
  317. package/out/methods/initApp/helpers/waitForStoreRehydration.cjs +1 -1
  318. package/out/methods/initApp/helpers/waitForStoreRehydration.cjs.map +3 -3
  319. package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
  320. package/out/methods/initApp/initApp.cjs +1 -1
  321. package/out/methods/initApp/initApp.cjs.map +3 -3
  322. package/out/methods/initApp/initApp.mjs +1 -1
  323. package/out/methods/initApp/initApp.mjs.map +3 -3
  324. package/out/methods/initApp/initApp.types.cjs.map +1 -1
  325. package/out/methods/initApp/initApp.types.d.ts +2 -0
  326. package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +1 -1
  327. package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.map +3 -3
  328. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  329. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  330. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  331. package/out/methods/loginInfo/getLoginInfo.mjs.map +1 -1
  332. package/out/methods/network/getEgldLabel.mjs +1 -1
  333. package/out/methods/network/getExplorerAddress.mjs +1 -1
  334. package/out/methods/network/getNetworkConfig.mjs +1 -1
  335. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  336. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.cjs +1 -1
  337. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.cjs.map +3 -3
  338. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
  339. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
  340. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
  341. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
  342. package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
  343. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  344. package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +1 -1
  345. package/out/methods/trackTransactions/helpers/getPollingInterval.cjs.map +3 -3
  346. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  347. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  348. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  349. package/out/methods/transactions/getFailedTransactions.mjs.map +1 -1
  350. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  351. package/out/methods/transactions/getFailedTransactionsSessions.mjs.map +1 -1
  352. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  353. package/out/methods/transactions/getPendingTransactions.mjs.map +1 -1
  354. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  355. package/out/methods/transactions/getPendingTransactionsSessions.mjs.map +1 -1
  356. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  357. package/out/methods/transactions/getSuccessfulTransactions.mjs.map +1 -1
  358. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  359. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs.map +1 -1
  360. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  361. package/out/methods/transactions/getTransactionSessions.mjs.map +1 -1
  362. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  363. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +1 -1
  364. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs.map +3 -3
  365. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  366. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  367. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  368. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  369. package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
  370. package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
  371. package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
  372. package/out/providers/DappProvider/helpers/login/login.cjs +1 -1
  373. package/out/providers/DappProvider/helpers/login/login.cjs.map +3 -3
  374. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  375. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  376. package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +1 -1
  377. package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs.map +3 -3
  378. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  379. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  380. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +1 -1
  381. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +3 -3
  382. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  383. package/out/providers/DappProvider/index.mjs +1 -1
  384. package/out/providers/ProviderFactory.cjs +1 -1
  385. package/out/providers/ProviderFactory.cjs.map +3 -3
  386. package/out/providers/ProviderFactory.mjs +1 -1
  387. package/out/providers/helpers/accountProvider.mjs +1 -1
  388. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  389. package/out/providers/helpers/restoreProvider.cjs +1 -1
  390. package/out/providers/helpers/restoreProvider.cjs.map +3 -3
  391. package/out/providers/helpers/restoreProvider.mjs +1 -1
  392. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +1 -1
  393. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +3 -3
  394. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +3 -0
  395. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  396. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +1 -1
  397. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +2 -2
  398. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  399. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  400. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +1 -1
  401. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs.map +2 -2
  402. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  403. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  404. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +1 -1
  405. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +2 -2
  406. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  407. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  408. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +1 -1
  409. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +3 -3
  410. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  411. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.cjs +1 -1
  412. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.cjs.map +3 -3
  413. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
  414. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getAuthTokenText.mjs +1 -1
  415. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.cjs +1 -1
  416. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.cjs.map +3 -3
  417. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.mjs +1 -1
  418. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
  419. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.cjs +1 -1
  420. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.cjs.map +3 -3
  421. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  422. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
  423. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
  424. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
  425. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.cjs +1 -1
  426. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.cjs.map +3 -3
  427. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.mjs +1 -1
  428. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
  429. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  430. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  431. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  432. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +1 -1
  433. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +3 -3
  434. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  435. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  436. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs +1 -1
  437. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs.map +3 -3
  438. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  439. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  440. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  441. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  442. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  443. package/out/providers/strategies/helpers/index.mjs +1 -1
  444. package/out/providers/strategies/helpers/signMessage/signMessage.cjs +1 -1
  445. package/out/providers/strategies/helpers/signMessage/signMessage.cjs.map +3 -3
  446. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  447. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +1 -1
  448. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs.map +3 -3
  449. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  450. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  451. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +1 -1
  452. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs.map +3 -3
  453. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.mjs +1 -1
  454. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
  455. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  456. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getGasPriceOptions.mjs +1 -1
  457. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  458. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
  459. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +1 -1
  460. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +2 -2
  461. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
  462. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +1 -1
  463. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs.map +3 -3
  464. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  465. package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +1 -1
  466. package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +3 -3
  467. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  468. package/out/react/account/useGetAccount.mjs +1 -1
  469. package/out/react/account/useGetAccount.mjs.map +1 -1
  470. package/out/react/account/useGetAccountInfo.d.ts +1 -1
  471. package/out/react/account/useGetAccountInfo.mjs +1 -1
  472. package/out/react/account/useGetAccountInfo.mjs.map +1 -1
  473. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  474. package/out/react/account/useGetIsLoggedIn.mjs.map +1 -1
  475. package/out/react/account/useGetLatestNonce.mjs +1 -1
  476. package/out/react/account/useGetLatestNonce.mjs.map +1 -1
  477. package/out/react/index.mjs +1 -1
  478. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  479. package/out/react/loginInfo/useGetLoginInfo.mjs.map +1 -1
  480. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  481. package/out/react/network/useGetNetworkConfig.mjs.map +1 -1
  482. package/out/react/store/getReactStore.mjs +1 -1
  483. package/out/react/store/useSelector.mjs +1 -1
  484. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  485. package/out/react/transactions/useGetFailedTransactions.mjs.map +1 -1
  486. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  487. package/out/react/transactions/useGetFailedTransactionsSessions.mjs.map +1 -1
  488. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  489. package/out/react/transactions/useGetPendingTransactions.mjs.map +1 -1
  490. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  491. package/out/react/transactions/useGetPendingTransactionsSessions.mjs.map +1 -1
  492. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  493. package/out/react/transactions/useGetSuccessfulTransactions.mjs.map +1 -1
  494. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  495. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs.map +1 -1
  496. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  497. package/out/react/transactions/useGetTransactionSessions.mjs.map +1 -1
  498. package/out/services/nativeAuth/helpers/decodeLoginToken.mjs +1 -1
  499. package/out/services/nativeAuth/helpers/decodeNativeAuthToken.mjs +1 -1
  500. package/out/services/nativeAuth/helpers/getLatestBlockHash.mjs +1 -1
  501. package/out/services/nativeAuth/helpers/index.mjs +1 -1
  502. package/out/services/nativeAuth/index.mjs +1 -1
  503. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  504. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs +1 -1
  505. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs.map +3 -3
  506. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  507. package/out/services/nativeAuth/methods/getTokenExpiration.mjs +1 -1
  508. package/out/services/nativeAuth/nativeAuth.cjs +1 -1
  509. package/out/services/nativeAuth/nativeAuth.cjs.map +3 -3
  510. package/out/services/nativeAuth/nativeAuth.d.ts +1 -1
  511. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  512. package/out/store/actions/account/accountActions.mjs +1 -1
  513. package/out/store/actions/account/index.mjs +1 -1
  514. package/out/store/actions/cache/cacheActions.mjs +1 -1
  515. package/out/store/actions/cache/index.mjs +1 -1
  516. package/out/store/actions/config/configActions.cjs +1 -1
  517. package/out/store/actions/config/configActions.cjs.map +3 -3
  518. package/out/store/actions/config/configActions.d.ts +4 -2
  519. package/out/store/actions/config/configActions.mjs +1 -1
  520. package/out/store/actions/config/index.mjs +1 -1
  521. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  522. package/out/store/actions/network/index.mjs +1 -1
  523. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  524. package/out/store/actions/network/networkActions.mjs +1 -1
  525. package/out/store/actions/sharedActions/index.mjs +1 -1
  526. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  527. package/out/store/actions/toasts/index.mjs +1 -1
  528. package/out/store/actions/toasts/toastsActions.cjs +1 -1
  529. package/out/store/actions/toasts/toastsActions.cjs.map +3 -3
  530. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  531. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  532. package/out/store/actions/ui/index.mjs +1 -1
  533. package/out/store/actions/ui/uiActions.mjs +1 -1
  534. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  535. package/out/store/middleware/index.mjs +1 -1
  536. package/out/store/middleware/logoutMiddleware.cjs +1 -1
  537. package/out/store/middleware/logoutMiddleware.cjs.map +3 -3
  538. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  539. package/out/store/selectors/accountSelectors.d.ts +1 -1
  540. package/out/store/selectors/accountSelectors.mjs +1 -1
  541. package/out/store/selectors/configSelectors.cjs +1 -1
  542. package/out/store/selectors/configSelectors.cjs.map +3 -3
  543. package/out/store/selectors/configSelectors.d.ts +2 -1
  544. package/out/store/selectors/configSelectors.mjs +1 -1
  545. package/out/store/selectors/networkSelectors.d.ts +1 -1
  546. package/out/store/selectors/storeSelector.mjs +1 -1
  547. package/out/store/selectors/storeSelector.mjs.map +4 -4
  548. package/out/store/slices/account/accountSlice.mjs +1 -1
  549. package/out/store/slices/account/emptyAccount.mjs +1 -1
  550. package/out/store/slices/account/index.mjs +1 -1
  551. package/out/store/slices/config/config.types.cjs +1 -1
  552. package/out/store/slices/config/config.types.cjs.map +1 -1
  553. package/out/store/slices/config/config.types.d.ts +8 -0
  554. package/out/store/slices/config/configSlice.cjs +1 -1
  555. package/out/store/slices/config/configSlice.cjs.map +2 -2
  556. package/out/store/slices/config/configSlice.mjs +1 -1
  557. package/out/store/slices/config/index.mjs +1 -1
  558. package/out/store/storage/index.mjs +1 -1
  559. package/out/store/storage/storageCallback.mjs +1 -1
  560. package/out/store/store.cjs +1 -1
  561. package/out/store/store.cjs.map +3 -3
  562. package/out/store/store.mjs +1 -1
  563. package/out/types/network.types.mjs +0 -1
  564. package/out/types/suspiciousLink.types.mjs +0 -1
  565. package/out/types/websocket.types.mjs +0 -1
  566. package/out/utils/ComponentFactory.cjs +1 -1
  567. package/out/utils/ComponentFactory.cjs.map +3 -3
  568. package/out/utils/ComponentFactory.mjs +1 -1
  569. package/out/utils/account/fetchAccount.mjs +1 -1
  570. package/out/utils/account/refreshAccount.cjs +1 -1
  571. package/out/utils/account/refreshAccount.cjs.map +3 -3
  572. package/out/utils/account/refreshAccount.mjs +1 -1
  573. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  574. package/out/utils/account/refreshNativeAuthTokenLogin.mjs.map +4 -4
  575. package/out/utils/decoders/base64Utils.cjs +1 -1
  576. package/out/utils/decoders/base64Utils.cjs.map +2 -2
  577. package/out/utils/decoders/base64Utils.mjs +1 -1
  578. package/out/utils/decoders/isAscii.mjs +1 -1
  579. package/out/utils/decoders/isAscii.mjs.map +4 -4
  580. package/out/utils/decoders/stringContainsNumbers.mjs +1 -1
  581. package/out/utils/decoders/stringContainsNumbers.mjs.map +4 -4
  582. package/out/utils/network/index.mjs +1 -1
  583. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  584. package/out/utils/transactions/getActiveTransactionsStatus.mjs.map +1 -1
  585. package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs +1 -1
  586. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +1 -1
  587. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs.map +3 -3
  588. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs +1 -1
  589. package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs +1 -1
  590. package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs +1 -1
  591. package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs +1 -1
  592. package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs +1 -1
  593. package/out/utils/transactions/getDecodedDataField/index.cjs +1 -1
  594. package/out/utils/transactions/getDecodedDataField/index.cjs.map +2 -2
  595. package/out/utils/transactions/getDecodedDataField/index.d.ts +0 -1
  596. package/out/utils/transactions/getDecodedDataField/index.mjs +1 -1
  597. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +1 -1
  598. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs.map +3 -3
  599. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  600. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +1 -1
  601. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs.map +3 -3
  602. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
  603. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.mjs +1 -1
  604. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs +1 -1
  605. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs.map +3 -3
  606. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.mjs +1 -1
  607. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.mjs +1 -1
  608. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
  609. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +1 -1
  610. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs.map +3 -3
  611. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  612. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +1 -1
  613. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs.map +3 -3
  614. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  615. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +1 -1
  616. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs.map +3 -3
  617. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  618. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +1 -1
  619. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs.map +3 -3
  620. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.d.ts +1 -1
  621. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  622. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  623. package/out/utils/transactions/getInterpretedTransaction/helpers/tests/baseTransactionMock.d.ts +27 -0
  624. package/out/utils/transactions/getInterpretedTransaction/helpers/tests/extendedTransactionMock.d.ts +2 -0
  625. package/out/utils/transactions/getInterpretedTransaction/index.cjs +1 -1
  626. package/out/utils/transactions/getInterpretedTransaction/index.cjs.map +2 -2
  627. package/out/utils/transactions/getInterpretedTransaction/index.d.ts +0 -1
  628. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  629. package/out/utils/transactions/getScamFlag.cjs.map +1 -1
  630. package/out/utils/transactions/getScamFlag.d.ts +1 -1
  631. package/out/utils/transactions/getScamFlag.mjs.map +1 -1
  632. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs +1 -1
  633. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs.map +3 -3
  634. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  635. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  636. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.mjs +1 -1
  637. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
  638. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.mjs +1 -1
  639. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  640. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
  641. package/out/utils/transactions/getTransactionsHistory/index.cjs +1 -1
  642. package/out/utils/transactions/getTransactionsHistory/index.cjs.map +2 -2
  643. package/out/utils/transactions/getTransactionsHistory/index.d.ts +0 -1
  644. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  645. package/out/utils/validation/isContract.cjs +1 -1
  646. package/out/utils/validation/isContract.cjs.map +3 -3
  647. package/out/utils/validation/isContract.mjs +1 -1
  648. package/out/utils/validation/maxDecimals.mjs +1 -1
  649. package/out/utils/validation/maxDecimals.mjs.map +4 -4
  650. package/out/utils/visual/switchTheme.cjs.map +1 -1
  651. package/out/utils/visual/switchTheme.d.ts +1 -1
  652. package/out/utils/visual/switchTheme.mjs +1 -1
  653. package/out/utils/window/buildUrlParams.mjs +1 -1
  654. package/out/utils/window/buildUrlParams.mjs.map +4 -4
  655. package/out/utils/window/getIsAuthRoute.mjs +1 -1
  656. package/out/utils/window/getIsAuthRoute.mjs.map +4 -4
  657. package/out/utils/window/getIsInIframe.mjs +1 -1
  658. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  659. package/out/utils/window/sanitizeCallbackUrl.mjs +1 -1
  660. package/out/utils/window/sanitizeCallbackUrl.mjs.map +4 -4
  661. package/package.json +2 -5
  662. package/out/__chunks__/chunk-2BSPSW6X.mjs +0 -1
  663. package/out/__chunks__/chunk-2KGBHCEN.mjs.map +0 -7
  664. package/out/__chunks__/chunk-2RAULLHL.mjs +0 -2
  665. package/out/__chunks__/chunk-2RAULLHL.mjs.map +0 -7
  666. package/out/__chunks__/chunk-2RTOYKHB.mjs +0 -2
  667. package/out/__chunks__/chunk-3CG4C7T4.mjs +0 -2
  668. package/out/__chunks__/chunk-3GGBXXXJ.mjs +0 -2
  669. package/out/__chunks__/chunk-3GGBXXXJ.mjs.map +0 -7
  670. package/out/__chunks__/chunk-3KUTPB2M.mjs +0 -2
  671. package/out/__chunks__/chunk-3KUTPB2M.mjs.map +0 -7
  672. package/out/__chunks__/chunk-3S3EXLLM.mjs +0 -2
  673. package/out/__chunks__/chunk-442O3UMZ.mjs +0 -1
  674. package/out/__chunks__/chunk-4GCIE2BM.mjs +0 -2
  675. package/out/__chunks__/chunk-4MCQ27VQ.mjs.map +0 -7
  676. package/out/__chunks__/chunk-4QDHKULK.mjs +0 -2
  677. package/out/__chunks__/chunk-4QDHKULK.mjs.map +0 -7
  678. package/out/__chunks__/chunk-4US7HVCR.mjs +0 -1
  679. package/out/__chunks__/chunk-4US7HVCR.mjs.map +0 -7
  680. package/out/__chunks__/chunk-4VA2SULD.mjs.map +0 -7
  681. package/out/__chunks__/chunk-55U3WK3C.mjs +0 -2
  682. package/out/__chunks__/chunk-573JTRNC.mjs +0 -2
  683. package/out/__chunks__/chunk-573JTRNC.mjs.map +0 -7
  684. package/out/__chunks__/chunk-5E32AO3E.mjs.map +0 -7
  685. package/out/__chunks__/chunk-5KVNYLOM.mjs +0 -2
  686. package/out/__chunks__/chunk-5KVNYLOM.mjs.map +0 -7
  687. package/out/__chunks__/chunk-5Y2ZDPP6.mjs +0 -1
  688. package/out/__chunks__/chunk-5Y2ZDPP6.mjs.map +0 -7
  689. package/out/__chunks__/chunk-6BOC75BF.mjs +0 -2
  690. package/out/__chunks__/chunk-6CLCXSHA.mjs.map +0 -7
  691. package/out/__chunks__/chunk-6CQMLD25.mjs +0 -1
  692. package/out/__chunks__/chunk-6CQMLD25.mjs.map +0 -7
  693. package/out/__chunks__/chunk-6GREKTLP.mjs +0 -2
  694. package/out/__chunks__/chunk-6GREKTLP.mjs.map +0 -7
  695. package/out/__chunks__/chunk-6JM4DPOH.mjs +0 -2
  696. package/out/__chunks__/chunk-7BRIA6SS.mjs +0 -1
  697. package/out/__chunks__/chunk-7BRIA6SS.mjs.map +0 -7
  698. package/out/__chunks__/chunk-7JDTQFLQ.mjs.map +0 -7
  699. package/out/__chunks__/chunk-7UA7QAEF.mjs.map +0 -7
  700. package/out/__chunks__/chunk-AFLCI6IF.mjs +0 -2
  701. package/out/__chunks__/chunk-AGJVEK6I.mjs +0 -2
  702. package/out/__chunks__/chunk-B7YCKWDU.mjs +0 -1
  703. package/out/__chunks__/chunk-B7YCKWDU.mjs.map +0 -7
  704. package/out/__chunks__/chunk-BCSNXRMR.mjs.map +0 -7
  705. package/out/__chunks__/chunk-BKKXLEQ6.mjs +0 -1
  706. package/out/__chunks__/chunk-BKKXLEQ6.mjs.map +0 -7
  707. package/out/__chunks__/chunk-BUJNOQZJ.mjs +0 -2
  708. package/out/__chunks__/chunk-BUJNOQZJ.mjs.map +0 -7
  709. package/out/__chunks__/chunk-C72ZHRFA.mjs +0 -2
  710. package/out/__chunks__/chunk-C72ZHRFA.mjs.map +0 -7
  711. package/out/__chunks__/chunk-CDTYHGXZ.mjs +0 -1
  712. package/out/__chunks__/chunk-CDTYHGXZ.mjs.map +0 -7
  713. package/out/__chunks__/chunk-CDWODCD7.mjs.map +0 -7
  714. package/out/__chunks__/chunk-CVXQYCEE.mjs +0 -2
  715. package/out/__chunks__/chunk-CVXQYCEE.mjs.map +0 -7
  716. package/out/__chunks__/chunk-CXE2WQJS.mjs +0 -1
  717. package/out/__chunks__/chunk-CXE2WQJS.mjs.map +0 -7
  718. package/out/__chunks__/chunk-CYCS3K6Q.mjs +0 -2
  719. package/out/__chunks__/chunk-CZ2S4XSL.mjs +0 -2
  720. package/out/__chunks__/chunk-D3VRMBRS.mjs +0 -2
  721. package/out/__chunks__/chunk-DTQL3IDP.mjs +0 -1
  722. package/out/__chunks__/chunk-DTQL3IDP.mjs.map +0 -7
  723. package/out/__chunks__/chunk-DW6RO5LJ.mjs +0 -2
  724. package/out/__chunks__/chunk-DW6RO5LJ.mjs.map +0 -7
  725. package/out/__chunks__/chunk-EHDGJUEU.mjs +0 -2
  726. package/out/__chunks__/chunk-EHDGJUEU.mjs.map +0 -7
  727. package/out/__chunks__/chunk-EJV4VNJG.mjs +0 -2
  728. package/out/__chunks__/chunk-EJV4VNJG.mjs.map +0 -7
  729. package/out/__chunks__/chunk-EKWN4V73.mjs +0 -2
  730. package/out/__chunks__/chunk-EKWN4V73.mjs.map +0 -7
  731. package/out/__chunks__/chunk-EPL2CHU6.mjs +0 -2
  732. package/out/__chunks__/chunk-EPL2CHU6.mjs.map +0 -7
  733. package/out/__chunks__/chunk-FF45FPD3.mjs +0 -2
  734. package/out/__chunks__/chunk-FF45FPD3.mjs.map +0 -7
  735. package/out/__chunks__/chunk-FRUJEORM.mjs +0 -2
  736. package/out/__chunks__/chunk-FTJF3Q3P.mjs +0 -2
  737. package/out/__chunks__/chunk-FTJF3Q3P.mjs.map +0 -7
  738. package/out/__chunks__/chunk-G5DKGX73.mjs +0 -1
  739. package/out/__chunks__/chunk-G5DKGX73.mjs.map +0 -7
  740. package/out/__chunks__/chunk-GBEJIZDR.mjs +0 -1
  741. package/out/__chunks__/chunk-GBEJIZDR.mjs.map +0 -7
  742. package/out/__chunks__/chunk-GIZSIYH4.mjs +0 -2
  743. package/out/__chunks__/chunk-GIZSIYH4.mjs.map +0 -7
  744. package/out/__chunks__/chunk-H73D4VUZ.mjs +0 -2
  745. package/out/__chunks__/chunk-HFX5WAAI.mjs +0 -2
  746. package/out/__chunks__/chunk-HKDRMMI5.mjs +0 -2
  747. package/out/__chunks__/chunk-HOCSCRJF.mjs +0 -2
  748. package/out/__chunks__/chunk-HOCSCRJF.mjs.map +0 -7
  749. package/out/__chunks__/chunk-HYH55J3D.mjs +0 -2
  750. package/out/__chunks__/chunk-HZGRS7HG.mjs +0 -2
  751. package/out/__chunks__/chunk-I424CDNL.mjs +0 -2
  752. package/out/__chunks__/chunk-I424CDNL.mjs.map +0 -7
  753. package/out/__chunks__/chunk-IXBWD6BF.mjs +0 -1
  754. package/out/__chunks__/chunk-IXBWD6BF.mjs.map +0 -7
  755. package/out/__chunks__/chunk-J32T6OAP.mjs +0 -1
  756. package/out/__chunks__/chunk-J32T6OAP.mjs.map +0 -7
  757. package/out/__chunks__/chunk-J5TLE6SA.mjs +0 -2
  758. package/out/__chunks__/chunk-JDP24JPD.mjs +0 -2
  759. package/out/__chunks__/chunk-JDP24JPD.mjs.map +0 -7
  760. package/out/__chunks__/chunk-JPSW3MCK.mjs +0 -2
  761. package/out/__chunks__/chunk-JPSW3MCK.mjs.map +0 -7
  762. package/out/__chunks__/chunk-K5K2FVFB.mjs +0 -2
  763. package/out/__chunks__/chunk-KDMYDO7R.mjs.map +0 -7
  764. package/out/__chunks__/chunk-KIOUFP5Q.mjs +0 -1
  765. package/out/__chunks__/chunk-KIOUFP5Q.mjs.map +0 -7
  766. package/out/__chunks__/chunk-KLI6N26E.mjs +0 -2
  767. package/out/__chunks__/chunk-KPK72MOE.mjs +0 -2
  768. package/out/__chunks__/chunk-KPK72MOE.mjs.map +0 -7
  769. package/out/__chunks__/chunk-L3YPAYXZ.mjs +0 -1
  770. package/out/__chunks__/chunk-L3YPAYXZ.mjs.map +0 -7
  771. package/out/__chunks__/chunk-LBPTOWPX.mjs +0 -2
  772. package/out/__chunks__/chunk-LBPTOWPX.mjs.map +0 -7
  773. package/out/__chunks__/chunk-LHEH7L4L.mjs +0 -2
  774. package/out/__chunks__/chunk-M3GFSV3G.mjs +0 -1
  775. package/out/__chunks__/chunk-M3GFSV3G.mjs.map +0 -7
  776. package/out/__chunks__/chunk-MLDUGECH.mjs.map +0 -7
  777. package/out/__chunks__/chunk-MS7BFY27.mjs.map +0 -7
  778. package/out/__chunks__/chunk-N55JEIM6.mjs.map +0 -7
  779. package/out/__chunks__/chunk-NAYDJEWI.mjs.map +0 -7
  780. package/out/__chunks__/chunk-ODHXJQOF.mjs +0 -2
  781. package/out/__chunks__/chunk-OJX2TSAZ.mjs +0 -1
  782. package/out/__chunks__/chunk-OJX2TSAZ.mjs.map +0 -7
  783. package/out/__chunks__/chunk-OL6LWUIJ.mjs +0 -1
  784. package/out/__chunks__/chunk-OL6LWUIJ.mjs.map +0 -7
  785. package/out/__chunks__/chunk-OVXVICF7.mjs +0 -1
  786. package/out/__chunks__/chunk-OVXVICF7.mjs.map +0 -7
  787. package/out/__chunks__/chunk-P2MHA65O.mjs +0 -2
  788. package/out/__chunks__/chunk-QJJEW7MB.mjs +0 -2
  789. package/out/__chunks__/chunk-QJJEW7MB.mjs.map +0 -7
  790. package/out/__chunks__/chunk-QO62QJ5H.mjs +0 -2
  791. package/out/__chunks__/chunk-T4FRQ4JG.mjs +0 -1
  792. package/out/__chunks__/chunk-T4FRQ4JG.mjs.map +0 -7
  793. package/out/__chunks__/chunk-TFARIEZF.mjs.map +0 -7
  794. package/out/__chunks__/chunk-TOZ7EGCZ.mjs +0 -2
  795. package/out/__chunks__/chunk-TOZ7EGCZ.mjs.map +0 -7
  796. package/out/__chunks__/chunk-TR2KNDCH.mjs.map +0 -7
  797. package/out/__chunks__/chunk-TRMQFQOQ.mjs +0 -1
  798. package/out/__chunks__/chunk-TRMQFQOQ.mjs.map +0 -7
  799. package/out/__chunks__/chunk-TVXZBSUY.mjs +0 -2
  800. package/out/__chunks__/chunk-U3MIDVR7.mjs.map +0 -7
  801. package/out/__chunks__/chunk-UCFMVEOZ.mjs.map +0 -7
  802. package/out/__chunks__/chunk-UD7MOR6P.mjs +0 -1
  803. package/out/__chunks__/chunk-UD7MOR6P.mjs.map +0 -7
  804. package/out/__chunks__/chunk-UE3IBKCO.mjs +0 -2
  805. package/out/__chunks__/chunk-UE3IBKCO.mjs.map +0 -7
  806. package/out/__chunks__/chunk-URTM5OGN.mjs +0 -2
  807. package/out/__chunks__/chunk-UT4BWFQH.mjs.map +0 -7
  808. package/out/__chunks__/chunk-UY22M7WB.mjs +0 -2
  809. package/out/__chunks__/chunk-UY22M7WB.mjs.map +0 -7
  810. package/out/__chunks__/chunk-VCAWVAO5.mjs +0 -1
  811. package/out/__chunks__/chunk-VCAWVAO5.mjs.map +0 -7
  812. package/out/__chunks__/chunk-VGGJESXR.mjs.map +0 -7
  813. package/out/__chunks__/chunk-VIQAOU2F.mjs +0 -2
  814. package/out/__chunks__/chunk-VIQAOU2F.mjs.map +0 -7
  815. package/out/__chunks__/chunk-VOBUIF7F.mjs +0 -1
  816. package/out/__chunks__/chunk-VOBUIF7F.mjs.map +0 -7
  817. package/out/__chunks__/chunk-VTEOS2MM.mjs +0 -2
  818. package/out/__chunks__/chunk-W5MTQBQF.mjs.map +0 -7
  819. package/out/__chunks__/chunk-WEZV6U4A.mjs +0 -2
  820. package/out/__chunks__/chunk-WEZV6U4A.mjs.map +0 -7
  821. package/out/__chunks__/chunk-WVAP3V3E.mjs +0 -2
  822. package/out/__chunks__/chunk-WVAP3V3E.mjs.map +0 -7
  823. package/out/__chunks__/chunk-WYVAFCPU.mjs +0 -2
  824. package/out/__chunks__/chunk-WYVAFCPU.mjs.map +0 -7
  825. package/out/__chunks__/chunk-XLLBREX7.mjs +0 -2
  826. package/out/__chunks__/chunk-XNSSZDSU.mjs +0 -2
  827. package/out/__chunks__/chunk-XNSSZDSU.mjs.map +0 -7
  828. package/out/__chunks__/chunk-XSUHHPZ2.mjs +0 -2
  829. package/out/__chunks__/chunk-XTATC65P.mjs +0 -2
  830. package/out/__chunks__/chunk-XTATC65P.mjs.map +0 -7
  831. package/out/__chunks__/chunk-YGMILCHH.mjs.map +0 -7
  832. package/out/__chunks__/chunk-YJK5FPW4.mjs +0 -1
  833. package/out/__chunks__/chunk-YJK5FPW4.mjs.map +0 -7
  834. package/out/__chunks__/chunk-YUITECZ5.mjs +0 -1
  835. package/out/__chunks__/chunk-YUITECZ5.mjs.map +0 -7
  836. package/out/__chunks__/chunk-Z4PL2VDB.mjs +0 -1
  837. package/out/__chunks__/chunk-Z4PL2VDB.mjs.map +0 -7
  838. package/out/__chunks__/chunk-ZAPRDHIW.mjs +0 -1
  839. package/out/__chunks__/chunk-ZAPRDHIW.mjs.map +0 -7
  840. package/out/__chunks__/chunk-ZC5QSQE4.mjs +0 -1
  841. package/out/__chunks__/chunk-ZC5QSQE4.mjs.map +0 -7
  842. package/out/__chunks__/chunk-ZNPHUPAP.mjs +0 -2
  843. package/out/apiCalls/utils/getCleanApiAddress.cjs +0 -2
  844. package/out/apiCalls/utils/getCleanApiAddress.cjs.map +0 -7
  845. package/out/apiCalls/utils/getCleanApiAddress.d.ts +0 -1
  846. package/out/apiCalls/utils/getCleanApiAddress.mjs +0 -2
  847. package/out/apiCalls/utils/getCleanApiAddress.mjs.map +0 -7
  848. package/out/constants/index.cjs +0 -2
  849. package/out/constants/index.cjs.map +0 -7
  850. package/out/constants/index.d.ts +0 -10
  851. package/out/constants/index.mjs +0 -2
  852. package/out/constants/index.mjs.map +0 -7
  853. package/out/controllers/index.cjs +0 -2
  854. package/out/controllers/index.cjs.map +0 -7
  855. package/out/controllers/index.d.ts +0 -1
  856. package/out/controllers/index.mjs +0 -2
  857. package/out/controllers/index.mjs.map +0 -7
  858. package/out/index.cjs +0 -2
  859. package/out/index.cjs.map +0 -7
  860. package/out/index.d.ts +0 -5
  861. package/out/index.mjs +0 -2
  862. package/out/index.mjs.map +0 -7
  863. package/out/managers/index.cjs +0 -2
  864. package/out/managers/index.cjs.map +0 -7
  865. package/out/managers/index.d.ts +0 -2
  866. package/out/managers/index.mjs +0 -2
  867. package/out/managers/index.mjs.map +0 -7
  868. package/out/managers/internal/index.cjs +0 -2
  869. package/out/managers/internal/index.cjs.map +0 -7
  870. package/out/managers/internal/index.d.ts +0 -3
  871. package/out/managers/internal/index.mjs +0 -2
  872. package/out/managers/internal/index.mjs.map +0 -7
  873. package/out/providers/index.cjs +0 -2
  874. package/out/providers/index.cjs.map +0 -7
  875. package/out/providers/index.d.ts +0 -2
  876. package/out/providers/index.mjs +0 -2
  877. package/out/providers/index.mjs.map +0 -7
  878. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs +0 -2
  879. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs.map +0 -7
  880. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.d.ts +0 -5
  881. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +0 -2
  882. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs.map +0 -7
  883. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs +0 -2
  884. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs.map +0 -7
  885. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.d.ts +0 -8
  886. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +0 -2
  887. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs.map +0 -7
  888. package/out/providers/strategies/index.cjs +0 -2
  889. package/out/providers/strategies/index.cjs.map +0 -7
  890. package/out/providers/strategies/index.d.ts +0 -5
  891. package/out/providers/strategies/index.mjs +0 -2
  892. package/out/providers/strategies/index.mjs.map +0 -7
  893. package/out/services/index.cjs +0 -2
  894. package/out/services/index.cjs.map +0 -7
  895. package/out/services/index.d.ts +0 -1
  896. package/out/services/index.mjs +0 -2
  897. package/out/services/index.mjs.map +0 -7
  898. package/out/services/nativeAuth/methods/index.cjs +0 -2
  899. package/out/services/nativeAuth/methods/index.cjs.map +0 -7
  900. package/out/services/nativeAuth/methods/index.d.ts +0 -2
  901. package/out/services/nativeAuth/methods/index.mjs +0 -2
  902. package/out/services/nativeAuth/methods/index.mjs.map +0 -7
  903. package/out/store/actions/index.cjs +0 -2
  904. package/out/store/actions/index.cjs.map +0 -7
  905. package/out/store/actions/index.d.ts +0 -7
  906. package/out/store/actions/index.mjs +0 -2
  907. package/out/store/actions/index.mjs.map +0 -7
  908. package/out/store/selectors/index.cjs +0 -2
  909. package/out/store/selectors/index.cjs.map +0 -7
  910. package/out/store/selectors/index.d.ts +0 -6
  911. package/out/store/selectors/index.mjs +0 -2
  912. package/out/store/selectors/index.mjs.map +0 -7
  913. package/out/store/slices/index.cjs +0 -2
  914. package/out/store/slices/index.cjs.map +0 -7
  915. package/out/store/slices/index.d.ts +0 -7
  916. package/out/store/slices/index.mjs +0 -2
  917. package/out/store/slices/index.mjs.map +0 -7
  918. package/out/types/index.cjs +0 -2
  919. package/out/types/index.cjs.map +0 -7
  920. package/out/types/index.d.ts +0 -7
  921. package/out/types/index.mjs +0 -2
  922. package/out/types/index.mjs.map +0 -7
  923. package/out/utils/account/index.cjs +0 -2
  924. package/out/utils/account/index.cjs.map +0 -7
  925. package/out/utils/account/index.d.ts +0 -4
  926. package/out/utils/account/index.mjs +0 -2
  927. package/out/utils/account/index.mjs.map +0 -7
  928. package/out/utils/decoders/index.cjs +0 -2
  929. package/out/utils/decoders/index.cjs.map +0 -7
  930. package/out/utils/decoders/index.d.ts +0 -5
  931. package/out/utils/decoders/index.mjs +0 -2
  932. package/out/utils/decoders/index.mjs.map +0 -7
  933. package/out/utils/index.cjs +0 -2
  934. package/out/utils/index.cjs.map +0 -7
  935. package/out/utils/index.d.ts +0 -9
  936. package/out/utils/index.mjs +0 -2
  937. package/out/utils/index.mjs.map +0 -7
  938. package/out/utils/transactions/getDecodedDataField/helpers/index.cjs +0 -2
  939. package/out/utils/transactions/getDecodedDataField/helpers/index.cjs.map +0 -7
  940. package/out/utils/transactions/getDecodedDataField/helpers/index.d.ts +0 -6
  941. package/out/utils/transactions/getDecodedDataField/helpers/index.mjs +0 -2
  942. package/out/utils/transactions/getDecodedDataField/helpers/index.mjs.map +0 -7
  943. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs +0 -2
  944. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs.map +0 -7
  945. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.d.ts +0 -6
  946. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +0 -2
  947. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs.map +0 -7
  948. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs +0 -2
  949. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs.map +0 -7
  950. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.d.ts +0 -2
  951. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.mjs +0 -2
  952. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.mjs.map +0 -7
  953. package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs +0 -2
  954. package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs.map +0 -7
  955. package/out/utils/transactions/getInterpretedTransaction/helpers/index.d.ts +0 -13
  956. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +0 -2
  957. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs.map +0 -7
  958. package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs +0 -2
  959. package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs.map +0 -7
  960. package/out/utils/transactions/getTransactionsHistory/helpers/index.d.ts +0 -8
  961. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +0 -2
  962. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs.map +0 -7
  963. package/out/utils/transactions/index.cjs +0 -2
  964. package/out/utils/transactions/index.cjs.map +0 -7
  965. package/out/utils/transactions/index.d.ts +0 -4
  966. package/out/utils/transactions/index.mjs +0 -2
  967. package/out/utils/transactions/index.mjs.map +0 -7
  968. package/out/utils/validation/index.cjs +0 -2
  969. package/out/utils/validation/index.cjs.map +0 -7
  970. package/out/utils/validation/index.d.ts +0 -5
  971. package/out/utils/validation/index.mjs +0 -2
  972. package/out/utils/validation/index.mjs.map +0 -7
  973. package/out/utils/window/index.cjs +0 -2
  974. package/out/utils/window/index.cjs.map +0 -7
  975. package/out/utils/window/index.d.ts +0 -6
  976. package/out/utils/window/index.mjs +0 -2
  977. package/out/utils/window/index.mjs.map +0 -7
  978. /package/out/__chunks__/{chunk-KLI6N26E.mjs.map → chunk-2XIBNXVY.mjs.map} +0 -0
  979. /package/out/__chunks__/{chunk-XV3H7VOE.mjs.map → chunk-3G2Q2LCB.mjs.map} +0 -0
  980. /package/out/__chunks__/{chunk-ZNPHUPAP.mjs.map → chunk-3KJMEECV.mjs.map} +0 -0
  981. /package/out/__chunks__/{chunk-IYM4ZX72.mjs.map → chunk-3NSS3FT6.mjs.map} +0 -0
  982. /package/out/__chunks__/{chunk-M7B26JXO.mjs.map → chunk-3VIMQHXJ.mjs.map} +0 -0
  983. /package/out/__chunks__/{chunk-G5N56FHJ.mjs.map → chunk-5OMQOYP7.mjs.map} +0 -0
  984. /package/out/__chunks__/{chunk-2BSPSW6X.mjs.map → chunk-5P3UEE7C.mjs.map} +0 -0
  985. /package/out/__chunks__/{chunk-6EKK7AJE.mjs.map → chunk-5WJQ2KWS.mjs.map} +0 -0
  986. /package/out/__chunks__/{chunk-HYH55J3D.mjs.map → chunk-65F23E3Q.mjs.map} +0 -0
  987. /package/out/__chunks__/{chunk-AFLCI6IF.mjs.map → chunk-6M3IQXQF.mjs.map} +0 -0
  988. /package/out/__chunks__/{chunk-LYSI4URP.mjs.map → chunk-6PCK2RPQ.mjs.map} +0 -0
  989. /package/out/__chunks__/{chunk-K4JJZCL3.mjs.map → chunk-6QPOPWIN.mjs.map} +0 -0
  990. /package/out/__chunks__/{chunk-LG6Q3PRI.mjs.map → chunk-6RCSIT2P.mjs.map} +0 -0
  991. /package/out/__chunks__/{chunk-J5TLE6SA.mjs.map → chunk-6RYKBAUE.mjs.map} +0 -0
  992. /package/out/__chunks__/{chunk-5KYXNO4J.mjs.map → chunk-7FV6DEQX.mjs.map} +0 -0
  993. /package/out/__chunks__/{chunk-5AGKFSA6.mjs.map → chunk-7TH3QSCV.mjs.map} +0 -0
  994. /package/out/__chunks__/{chunk-CXAX5TAG.mjs.map → chunk-AFOS3Q4N.mjs.map} +0 -0
  995. /package/out/__chunks__/{chunk-CZ2S4XSL.mjs.map → chunk-AIQTIXFV.mjs.map} +0 -0
  996. /package/out/__chunks__/{chunk-ZRSYQ3MT.mjs.map → chunk-AOLW46E4.mjs.map} +0 -0
  997. /package/out/__chunks__/{chunk-TVXZBSUY.mjs.map → chunk-APCGI2A5.mjs.map} +0 -0
  998. /package/out/__chunks__/{chunk-LKOWOTL2.mjs.map → chunk-AWH3CO5C.mjs.map} +0 -0
  999. /package/out/__chunks__/{chunk-442O3UMZ.mjs.map → chunk-BFD5ZJOK.mjs.map} +0 -0
  1000. /package/out/__chunks__/{chunk-DFSBS3PX.mjs.map → chunk-BHWSBAMZ.mjs.map} +0 -0
  1001. /package/out/__chunks__/{chunk-XDBKPKTG.mjs.map → chunk-BSA3IGL6.mjs.map} +0 -0
  1002. /package/out/__chunks__/{chunk-QO62QJ5H.mjs.map → chunk-CAOL6XLD.mjs.map} +0 -0
  1003. /package/out/__chunks__/{chunk-RV6SJMD7.mjs.map → chunk-CMERGCP7.mjs.map} +0 -0
  1004. /package/out/__chunks__/{chunk-55U3WK3C.mjs.map → chunk-D27ZK232.mjs.map} +0 -0
  1005. /package/out/__chunks__/{chunk-D3VRMBRS.mjs.map → chunk-D4JFV2LM.mjs.map} +0 -0
  1006. /package/out/__chunks__/{chunk-PKLBZG2R.mjs.map → chunk-DNYE6AJI.mjs.map} +0 -0
  1007. /package/out/__chunks__/{chunk-ZKBKYLAP.mjs.map → chunk-ERDTZ52C.mjs.map} +0 -0
  1008. /package/out/__chunks__/{chunk-AGJVEK6I.mjs.map → chunk-F2W755EK.mjs.map} +0 -0
  1009. /package/out/__chunks__/{chunk-NVBWPLR7.mjs.map → chunk-FDR5TTUS.mjs.map} +0 -0
  1010. /package/out/__chunks__/{chunk-7MBSWJUD.mjs.map → chunk-FK6DWWZF.mjs.map} +0 -0
  1011. /package/out/__chunks__/{chunk-NAYC2B72.mjs.map → chunk-FKUMHDP5.mjs.map} +0 -0
  1012. /package/out/__chunks__/{chunk-3XTYIGW5.mjs.map → chunk-GBDHEWNQ.mjs.map} +0 -0
  1013. /package/out/__chunks__/{chunk-WS2MTQIC.mjs.map → chunk-GYYGYOIE.mjs.map} +0 -0
  1014. /package/out/__chunks__/{chunk-PMATTOPD.mjs.map → chunk-HSF3JATH.mjs.map} +0 -0
  1015. /package/out/__chunks__/{chunk-5DILKRFV.mjs.map → chunk-HTT67LH3.mjs.map} +0 -0
  1016. /package/out/__chunks__/{chunk-NTPPBM7T.mjs.map → chunk-I3ILB737.mjs.map} +0 -0
  1017. /package/out/__chunks__/{chunk-N4KX33RW.mjs.map → chunk-IAN3XFXS.mjs.map} +0 -0
  1018. /package/out/__chunks__/{chunk-TQ7T6ULY.mjs.map → chunk-IHAZNPKL.mjs.map} +0 -0
  1019. /package/out/__chunks__/{chunk-JTV664SG.mjs.map → chunk-IHSJITVR.mjs.map} +0 -0
  1020. /package/out/__chunks__/{chunk-VTEOS2MM.mjs.map → chunk-JJUR63EV.mjs.map} +0 -0
  1021. /package/out/__chunks__/{chunk-E77ZH5JT.mjs.map → chunk-JMK6YN6B.mjs.map} +0 -0
  1022. /package/out/__chunks__/{chunk-JZ22ZC2D.mjs.map → chunk-JO7KFAZC.mjs.map} +0 -0
  1023. /package/out/__chunks__/{chunk-3PAZABVI.mjs.map → chunk-JQ3KV55D.mjs.map} +0 -0
  1024. /package/out/__chunks__/{chunk-6BOC75BF.mjs.map → chunk-K4E7GCWI.mjs.map} +0 -0
  1025. /package/out/__chunks__/{chunk-ODHXJQOF.mjs.map → chunk-KLI5H35D.mjs.map} +0 -0
  1026. /package/out/__chunks__/{chunk-GUAXMODN.mjs.map → chunk-KYQ5IP6W.mjs.map} +0 -0
  1027. /package/out/__chunks__/{chunk-N5VJJRWV.mjs.map → chunk-LQAAQV3I.mjs.map} +0 -0
  1028. /package/out/__chunks__/{chunk-PW34EFS7.mjs.map → chunk-LZWEL473.mjs.map} +0 -0
  1029. /package/out/__chunks__/{chunk-XSUHHPZ2.mjs.map → chunk-MTGS435F.mjs.map} +0 -0
  1030. /package/out/__chunks__/{chunk-OSG4UY2Z.mjs.map → chunk-NGJIMP5Y.mjs.map} +0 -0
  1031. /package/out/__chunks__/{chunk-7WJMUTGI.mjs.map → chunk-NQE5YCZP.mjs.map} +0 -0
  1032. /package/out/__chunks__/{chunk-H5NVCCUR.mjs.map → chunk-NWRCQLFI.mjs.map} +0 -0
  1033. /package/out/__chunks__/{chunk-XLLBREX7.mjs.map → chunk-NYZ726DG.mjs.map} +0 -0
  1034. /package/out/__chunks__/{chunk-OAPLU7UX.mjs.map → chunk-OBIQ63DJ.mjs.map} +0 -0
  1035. /package/out/__chunks__/{chunk-HKDRMMI5.mjs.map → chunk-OSV2GCKV.mjs.map} +0 -0
  1036. /package/out/__chunks__/{chunk-FNHO66WN.mjs.map → chunk-PIFCCIF3.mjs.map} +0 -0
  1037. /package/out/__chunks__/{chunk-P2MHA65O.mjs.map → chunk-PJ5TKZD5.mjs.map} +0 -0
  1038. /package/out/__chunks__/{chunk-4SS6EY66.mjs.map → chunk-PN7JDWSZ.mjs.map} +0 -0
  1039. /package/out/__chunks__/{chunk-ZATPIKZ2.mjs.map → chunk-QFXS7HGL.mjs.map} +0 -0
  1040. /package/out/__chunks__/{chunk-O65OBG5D.mjs.map → chunk-QZC64RDG.mjs.map} +0 -0
  1041. /package/out/__chunks__/{chunk-AZA2GNTR.mjs.map → chunk-RDEVBV56.mjs.map} +0 -0
  1042. /package/out/__chunks__/{chunk-IVHD32VC.mjs.map → chunk-RIPIZH54.mjs.map} +0 -0
  1043. /package/out/__chunks__/{chunk-2RTOYKHB.mjs.map → chunk-RMLVJDCQ.mjs.map} +0 -0
  1044. /package/out/__chunks__/{chunk-3S3EXLLM.mjs.map → chunk-RVBZZQS2.mjs.map} +0 -0
  1045. /package/out/__chunks__/{chunk-FPKFAJNW.mjs.map → chunk-RXRVBUAX.mjs.map} +0 -0
  1046. /package/out/__chunks__/{chunk-SALLGAGD.mjs.map → chunk-SFXZJSEY.mjs.map} +0 -0
  1047. /package/out/__chunks__/{chunk-6F4OKEUQ.mjs.map → chunk-SYHILLXA.mjs.map} +0 -0
  1048. /package/out/__chunks__/{chunk-HBPQEY3L.mjs.map → chunk-TRUOISVH.mjs.map} +0 -0
  1049. /package/out/__chunks__/{chunk-OIRXFS5Q.mjs.map → chunk-UJTYOT5N.mjs.map} +0 -0
  1050. /package/out/__chunks__/{chunk-SAN5F2PW.mjs.map → chunk-UWWAVJFM.mjs.map} +0 -0
  1051. /package/out/__chunks__/{chunk-ATLICLWT.mjs.map → chunk-V7K77GSE.mjs.map} +0 -0
  1052. /package/out/__chunks__/{chunk-UPABDY55.mjs.map → chunk-VC74WYUB.mjs.map} +0 -0
  1053. /package/out/__chunks__/{chunk-HZGRS7HG.mjs.map → chunk-VGDWWBLN.mjs.map} +0 -0
  1054. /package/out/__chunks__/{chunk-XXSANEEO.mjs.map → chunk-W2A2N772.mjs.map} +0 -0
  1055. /package/out/__chunks__/{chunk-5W7PFHTT.mjs.map → chunk-WFMBEYKX.mjs.map} +0 -0
  1056. /package/out/__chunks__/{chunk-O6ALDFLM.mjs.map → chunk-WZEDZF3Q.mjs.map} +0 -0
  1057. /package/out/__chunks__/{chunk-HUXPA4C2.mjs.map → chunk-Y6QPE6SZ.mjs.map} +0 -0
  1058. /package/out/__chunks__/{chunk-7PE652LB.mjs.map → chunk-YGHJRPPY.mjs.map} +0 -0
  1059. /package/out/__chunks__/{chunk-TMRKN7VL.mjs.map → chunk-YXNJS4KL.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
1
  import{a as q}from"./chunk-PKDR5ERF.mjs";var o="erd1dm9uxpf5awkn7uhju7zjn9lde0dhahy0qaxqqlu26xcuuw27qqrsqfmej3",n=q.devnet,s="erd1qqqqqqqqqqqqqpgqp699jngundfqw07d8jzkepucvpzush6k3wvqyc44rx";export{o as a,n as b,s as c};
2
- //# sourceMappingURL=chunk-4VUMAG4J.mjs.map
2
+ //# sourceMappingURL=chunk-2JFN726G.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/__mocks__/accountConfig.ts"],
4
- "sourcesContent": ["import { fallbackNetworkConfigurations } from 'constants/network.constants';\nimport { EnvironmentsEnum } from 'types';\n\nexport const testAddress =\n 'erd1dm9uxpf5awkn7uhju7zjn9lde0dhahy0qaxqqlu26xcuuw27qqrsqfmej3';\n\nexport const testNetwork =\n fallbackNetworkConfigurations[EnvironmentsEnum.devnet];\n\nexport const testReceiver =\n 'erd1qqqqqqqqqqqqqpgqp699jngundfqw07d8jzkepucvpzush6k3wvqyc44rx';\n"],
4
+ "sourcesContent": ["import { fallbackNetworkConfigurations } from 'constants/network.constants';\nimport { EnvironmentsEnum } from 'types/enums.types';\n\nexport const testAddress =\n 'erd1dm9uxpf5awkn7uhju7zjn9lde0dhahy0qaxqqlu26xcuuw27qqrsqfmej3';\n\nexport const testNetwork =\n fallbackNetworkConfigurations[EnvironmentsEnum.devnet];\n\nexport const testReceiver =\n 'erd1qqqqqqqqqqqqqpgqp699jngundfqw07d8jzkepucvpzush6k3wvqyc44rx';\n"],
5
5
  "mappings": "yCAGO,IAAMA,EACX,iEAEWC,EACXC,EAA8B,OAEnBC,EACX",
6
6
  "names": ["testAddress", "testNetwork", "fallbackNetworkConfigurations", "testReceiver"]
7
7
  }
@@ -0,0 +1,2 @@
1
+ import{b as p,f as l}from"./chunk-FK6DWWZF.mjs";import{f as s}from"./chunk-VNLGNNIL.mjs";import{b as x}from"./chunk-A7FTKX2A.mjs";import{a as m,b as c}from"./chunk-RIPIZH54.mjs";import{a as T}from"./chunk-2DNGCNYM.mjs";import{a as f,b as g}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-ONT6BGYB.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as I}from"./chunk-F2W755EK.mjs";import{a as k}from"./chunk-KRWR77QE.mjs";import{a as v}from"./chunk-NB7A4C7L.mjs";import{c as a}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=m,e.loginInfo=f,e.transactions=d,e.toasts=S};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),r=s(e),{address:i,publicKey:M}=p(e);if(i&&M!==new a(i).toHex()&&A(e),!t)return;if(r==null){w(H());return}let P=Date.now();r-P<0&&(w(null),o().setState(A))};var W=(e,t)=>{C(e)};var z=e=>{let t=J(V(h(N((...r)=>({network:T(...r),account:c(...r),loginInfo:g(...r),config:L(...r),transactions:y(...r),toasts:u(...r),cache:x(...r),ui:v(...r)})),{name:"sdk-dapp-store",storage:O(e)}),{name:"sdk-dapp"}));return t.subscribe(W),t},n,D=e=>{n=e},o=()=>(n||D(z(()=>new k)),n),ue=(e=I)=>{let t=z(e);return D(t),t},de=()=>o().getState();var Le=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,{type:"setProviderType",payload:{value:e}}),Te=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,{type:"setTokenLogin",payload:{value:e}}),ve=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,{type:"setLoginToken",payload:{value:e}}),Ie=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,{type:"setTokenLoginSignature",payload:{value:e}}),ke=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,{type:"setWalletConnectLogin",payload:{value:e}}),Ae=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,{type:"setLedgerLogin",payload:{value:e}}),we=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,{type:"setIsWalletConnectV2Initialized",payload:{value:e}}),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,{type:"removeLoginExpiresAt",payload:{value:null}}),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,{type:"addLoginExpiresAt",payload:{value:e}});export{Le as a,Te as b,ve as c,Ie as d,ke as e,Ae as f,we as g,E as h,b as i,A as j,H as k,w as l,C as m,W as n,z as o,D as p,o as q,ue as r,de as s};
2
+ //# sourceMappingURL=chunk-2QIUCSYX.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/store/store.ts", "../../src/store/middleware/logoutMiddleware.ts", "../../src/store/middleware/applyMiddlewares.ts", "../../src/store/actions/loginInfo/loginInfoActions.ts"],
4
+ "sourcesContent": ["import { createJSONStorage, devtools, persist } from 'zustand/middleware';\nimport { immer } from 'zustand/middleware/immer';\nimport { createStore } from 'zustand/vanilla';\nimport { applyMiddlewares } from './middleware';\nimport { accountSlice } from './slices/account';\nimport { cacheSlice } from './slices/cache';\nimport { configSlice } from './slices/config';\nimport { loginInfoSlice } from './slices/loginInfo';\nimport { networkSlice } from './slices/network';\nimport { toastSlice } from './slices/toast';\nimport { transactionsSlice } from './slices/transactions';\nimport { uiSlice } from './slices/ui';\nimport {\n InMemoryStorage,\n defaultStorageCallback,\n StorageCallback\n} from './storage';\nimport { StoreType } from './store.types';\n\nexport type MutatorsIn = [\n ['zustand/devtools', never],\n ['zustand/persist', unknown],\n ['zustand/immer', never]\n];\n\nexport type MutatorsOut = [\n ['zustand/devtools', never],\n ['zustand/persist', StoreType],\n ['zustand/immer', never]\n];\n\nexport const createDAppStore = (getStorageCallback: StorageCallback) => {\n const store = createStore<StoreType, MutatorsOut>(\n devtools(\n persist(\n immer((...args) => ({\n network: networkSlice(...args),\n account: accountSlice(...args),\n loginInfo: loginInfoSlice(...args),\n config: configSlice(...args),\n transactions: transactionsSlice(...args),\n toasts: toastSlice(...args),\n cache: cacheSlice(...args),\n ui: uiSlice(...args)\n })),\n {\n name: 'sdk-dapp-store',\n storage: createJSONStorage(getStorageCallback)\n }\n ),\n {\n name: 'sdk-dapp'\n }\n )\n );\n store.subscribe(applyMiddlewares);\n return store;\n};\n\nexport type StoreApi = ReturnType<typeof createDAppStore>;\n\nlet store: StoreApi;\n\nexport const setDAppStore = (_store: StoreApi) => {\n store = _store;\n};\n\nexport const getStore = () => {\n if (!store) {\n setDAppStore(createDAppStore(() => new InMemoryStorage()));\n }\n return store;\n};\n\n/**\n * Initialize store with the preferred storage by passing a callback.\n * Default storage is localStorage.\n * You can pass your own storage.\n * Call this function before using store, ideally before app bootstrapping.\n * @param getStorageCallback\n * @default () => localStorage\n * @returns persistent store instance\n * @example\n * initStore(() => window.localStorage);\n * initStore(() => window.sessionStorage);\n * initStore(() => new InMemoryStorage());\n * */\nexport const initStore = (getStorageCallback = defaultStorageCallback) => {\n const dappStore = createDAppStore(getStorageCallback);\n setDAppStore(dappStore);\n return dappStore;\n};\n\nexport const getState = () => getStore().getState();\n", "import { WritableDraft } from 'immer';\nimport { Address } from 'lib/sdkCore';\nimport {\n addLoginExpiresAt,\n removeLoginExpiresAt\n} from 'store/actions/loginInfo/loginInfoActions';\nimport {\n accountInfoSelector,\n isLoggedInSelector\n} from 'store/selectors/accountSelectors';\nimport { loginExpiresAtSelector } from 'store/selectors/loginInfoSelectors';\nimport { initialState as initialAccountState } from 'store/slices/account/accountSlice';\nimport { initialState as initialLoginInfoState } from 'store/slices/loginInfo/loginInfoSlice';\nimport { initialState as initialToastState } from 'store/slices/toast/toastSlice';\nimport { initialState as initialTransactionsState } from 'store/slices/transactions/transactionsSlice';\nimport { getStore } from 'store/store';\nimport { StoreType } from '../store.types';\n\nexport const resetStore = (store: WritableDraft<StoreType>) => {\n store.account = initialAccountState;\n store.loginInfo = initialLoginInfoState;\n store.transactions = initialTransactionsState;\n store.toasts = initialToastState;\n};\n\nexport function getNewLoginExpiresTimestamp() {\n return new Date().setHours(new Date().getHours() + 24);\n}\n\nexport function setLoginExpiresAt(expiresAt: number | null) {\n if (expiresAt == null) {\n removeLoginExpiresAt();\n return;\n }\n addLoginExpiresAt(expiresAt);\n}\n\nexport const logoutMiddleware = (state: StoreType) => {\n const isLoggedIn = isLoggedInSelector(state);\n const loginTimestamp = loginExpiresAtSelector(state);\n const { address, publicKey } = accountInfoSelector(state);\n\n if (address && publicKey !== new Address(address).toHex()) {\n resetStore(state);\n }\n\n if (!isLoggedIn) {\n return;\n }\n\n if (loginTimestamp == null) {\n setLoginExpiresAt(getNewLoginExpiresTimestamp());\n return;\n }\n\n const now = Date.now();\n const isExpired = loginTimestamp - now < 0;\n\n if (isExpired) {\n // logout\n setLoginExpiresAt(null);\n getStore().setState(resetStore);\n }\n};\n", "import { StoreType } from '../store.types';\nimport { logoutMiddleware } from './logoutMiddleware';\n\nexport const applyMiddlewares = (state: StoreType, _prevState: StoreType) => {\n logoutMiddleware(state);\n};\n", "import { ProviderType } from 'providers/types/providerFactory.types';\nimport {\n LedgerLoginType,\n WalletConnectLoginType\n} from 'store/slices/loginInfo/loginInfo.types';\nimport { getStore } from 'store/store';\nimport { TokenLoginType } from 'types/login.types';\n\nexport const setProviderType = <T extends ProviderType = ProviderType>(\n providerType: T\n) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.providerType = providerType;\n },\n false,\n {\n type: 'setProviderType',\n // @ts-ignore\n payload: {\n value: providerType\n }\n }\n );\n\nexport const setTokenLogin = (tokenLogin: TokenLoginType) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.tokenLogin = tokenLogin;\n },\n false,\n {\n type: 'setTokenLogin',\n // @ts-ignore\n payload: {\n value: tokenLogin\n }\n }\n );\n\nexport const setLoginToken = (loginToken: string) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n if (state.tokenLogin != null) {\n state.tokenLogin.loginToken = loginToken;\n return;\n }\n state.tokenLogin = {\n loginToken\n };\n },\n false,\n {\n type: 'setLoginToken',\n // @ts-ignore\n payload: {\n value: loginToken\n }\n }\n );\n\nexport const setTokenLoginSignature = (signature: string) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n if (state?.tokenLogin != null) {\n state.tokenLogin.signature = signature;\n }\n },\n false,\n {\n type: 'setTokenLoginSignature',\n // @ts-ignore\n payload: {\n value: signature\n }\n }\n );\n\nexport const setWalletConnectLogin = (\n walletConnectLogin: WalletConnectLoginType | null\n) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.walletConnectLogin = walletConnectLogin;\n },\n false,\n {\n type: 'setWalletConnectLogin',\n // @ts-ignore\n payload: {\n value: walletConnectLogin\n }\n }\n );\n\nexport const setLedgerLogin = (ledgerLogin: LedgerLoginType | null) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.ledgerLogin = ledgerLogin;\n },\n false,\n {\n type: 'setLedgerLogin',\n // @ts-ignore\n payload: {\n value: ledgerLogin\n }\n }\n );\n\nexport const setIsWalletConnectV2Initialized = (isInitialized: boolean) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.isWalletConnectV2Initialized = isInitialized;\n },\n false,\n {\n type: 'setIsWalletConnectV2Initialized',\n // @ts-ignore\n payload: {\n value: isInitialized\n }\n }\n );\n\nexport const removeLoginExpiresAt = () =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.loginExpiresAt = null;\n },\n false,\n {\n type: 'removeLoginExpiresAt',\n // @ts-ignore\n payload: {\n value: null\n }\n }\n );\n\nexport const addLoginExpiresAt = (expiresAt: number) =>\n getStore().setState(\n ({ loginInfo: state }) => {\n state.loginExpiresAt = expiresAt;\n },\n false,\n {\n type: 'addLoginExpiresAt',\n // @ts-ignore\n payload: {\n value: expiresAt\n }\n }\n );\n"],
5
+ "mappings": "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",
6
+ "names": ["createJSONStorage", "devtools", "persist", "immer", "createStore", "resetStore", "store", "initialState", "getNewLoginExpiresTimestamp", "setLoginExpiresAt", "expiresAt", "removeLoginExpiresAt", "addLoginExpiresAt", "logoutMiddleware", "state", "isLoggedIn", "isLoggedInSelector", "loginTimestamp", "loginExpiresAtSelector", "address", "publicKey", "accountInfoSelector", "Address", "now", "getStore", "applyMiddlewares", "state", "_prevState", "logoutMiddleware", "createDAppStore", "getStorageCallback", "store", "createStore", "devtools", "persist", "immer", "args", "networkSlice", "accountSlice", "loginInfoSlice", "configSlice", "transactionsSlice", "toastSlice", "cacheSlice", "uiSlice", "createJSONStorage", "applyMiddlewares", "setDAppStore", "_store", "getStore", "InMemoryStorage", "initStore", "defaultStorageCallback", "dappStore", "getState", "setProviderType", "providerType", "getStore", "state", "setTokenLogin", "tokenLogin", "setLoginToken", "loginToken", "setTokenLoginSignature", "signature", "setWalletConnectLogin", "walletConnectLogin", "setLedgerLogin", "ledgerLogin", "setIsWalletConnectV2Initialized", "isInitialized", "removeLoginExpiresAt", "addLoginExpiresAt", "expiresAt"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as n}from"./chunk-6RCSIT2P.mjs";import{b as r}from"./chunk-UWWAVJFM.mjs";import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-2QIUCSYX.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=i(o());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
+ //# sourceMappingURL=chunk-2XIBNXVY.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as c}from"./chunk-DLWDO7M6.mjs";import{i as v}from"./chunk-LASOW7GT.mjs";import{k as d}from"./chunk-XA4YS4GK.mjs";import{s as a}from"./chunk-2QIUCSYX.mjs";import{d as n}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as s}from"./chunk-CMERGCP7.mjs";async function S(){let t=c(),m=s(),e=n(a()),o=m||t?i.webview:e,p=Object.values(i).includes(e);if(e&&!p&&(o=e),!o)return;let r=await v.create({type:o});if(!r)throw new Error("Provider not found");if(t||o===i.webview&&r.isInitialized())try{await r.login()}catch(f){console.warn("Failed to login with provider",r.getType(),f)}d(r)}export{S as a};
2
+ //# sourceMappingURL=chunk-3EKM2Y4K.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/providers/helpers/restoreProvider.ts"],
4
+ "sourcesContent": ["import { isMobileWebview } from 'lib/sdkWebviewProvider';\nimport {\n ProviderBaseType,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { providerTypeSelector } from 'store/selectors/loginInfoSelectors';\nimport { getState } from 'store/store';\nimport { getIsInIframe } from 'utils/window/getIsInIframe';\nimport { setAccountProvider } from './accountProvider';\nimport { ProviderFactory } from '../ProviderFactory';\n\nexport async function restoreProvider() {\n const isMobileView = isMobileWebview();\n const isInIframe = getIsInIframe();\n const providerType = providerTypeSelector(getState());\n\n let type =\n isInIframe || isMobileView ? ProviderTypeEnum.webview : providerType;\n\n const isBaseProvider = Object.values(ProviderTypeEnum).includes(\n providerType as ProviderBaseType\n );\n // Check if provider exist and is not base\n const isCustomProvider = providerType && !isBaseProvider;\n\n // Prioritize customProvider if it serves as a provider inside an iframe\n if (isCustomProvider) {\n type = providerType;\n }\n\n if (!type) {\n return;\n }\n\n const provider = await ProviderFactory.create({\n type\n });\n\n if (!provider) {\n throw new Error('Provider not found');\n }\n\n /*\n Check if the app is running in webview and the provider is already initialized.\n - true: the app is embedded within another dApp (e.g., inside an iframe) and perform login using the provider.\n - false: the parent is not a dApp and proceed with initializing the current app as a standalone iframe.\n */\n const shouldStartWebviewLogin =\n isMobileView ||\n (type === ProviderTypeEnum.webview && provider.isInitialized());\n\n if (shouldStartWebviewLogin) {\n try {\n await provider.login();\n } catch (error) {\n console.warn('Failed to login with provider', provider.getType(), error);\n }\n }\n\n setAccountProvider(provider);\n}\n"],
5
+ "mappings": "+RAWA,eAAsBA,GAAkB,CACtC,IAAMC,EAAeC,EAAgB,EAC/BC,EAAaC,EAAc,EAC3BC,EAAeC,EAAqBC,EAAS,CAAC,EAEhDC,EACFL,GAAcF,EAAeQ,EAAiB,QAAUJ,EAEpDK,EAAiB,OAAO,OAAOD,CAAgB,EAAE,SACrDJ,CACF,EASA,GAPyBA,GAAgB,CAACK,IAIxCF,EAAOH,GAGL,CAACG,EACH,OAGF,IAAMG,EAAW,MAAMC,EAAgB,OAAO,CAC5C,KAAAJ,CACF,CAAC,EAED,GAAI,CAACG,EACH,MAAM,IAAI,MAAM,oBAAoB,EAYtC,GAHEV,GACCO,IAASC,EAAiB,SAAWE,EAAS,cAAc,EAG7D,GAAI,CACF,MAAMA,EAAS,MAAM,CACvB,OAASE,EAAO,CACd,QAAQ,KAAK,gCAAiCF,EAAS,QAAQ,EAAGE,CAAK,CACzE,CAGFC,EAAmBH,CAAQ,CAC7B",
6
+ "names": ["restoreProvider", "isMobileView", "isMobileWebview", "isInIframe", "getIsInIframe", "providerType", "providerTypeSelector", "getState", "type", "ProviderTypeEnum", "isBaseProvider", "provider", "ProviderFactory", "error", "setAccountProvider"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-DW6RO5LJ.mjs";import{a as g}from"./chunk-PMATTOPD.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
2
- //# sourceMappingURL=chunk-XV3H7VOE.mjs.map
1
+ import{a as u}from"./chunk-HX3JKALT.mjs";import{a as g}from"./chunk-HSF3JATH.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
2
+ //# sourceMappingURL=chunk-3G2Q2LCB.mjs.map
@@ -1,2 +1,2 @@
1
- import{g as r}from"./chunk-LHEH7L4L.mjs";async function p(o){if(!o.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=o.hwApp,{contractData:n,version:a}=await t.getAppConfiguration();return{version:a,dataEnabled:n===1}}export{p as a};
2
- //# sourceMappingURL=chunk-YYH2GKPL.mjs.map
1
+ import{g as r}from"./chunk-QNYO7NI5.mjs";async function p(o){if(!o.isInitialized())throw new Error("Unable to get version. Provider not initialized");let t=o.hwApp,{contractData:n,version:a}=await t.getAppConfiguration();return{version:a,dataEnabled:n===1}}export{p as a};
2
+ //# sourceMappingURL=chunk-3GRRAVW4.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.ts"],
4
- "sourcesContent": ["import { HWProvider } from '@multiversx/sdk-hw-provider';\nimport { IHWWalletApp } from '@multiversx/sdk-hw-provider/out/interface';\n\nimport { LEDGER_CONTRACT_DATA_ENABLED_VALUE } from 'constants/index';\n\nexport async function getLedgerConfiguration(initializedHwWalletP: HWProvider) {\n if (!initializedHwWalletP.isInitialized()) {\n throw new Error('Unable to get version. Provider not initialized');\n }\n const hwApp: IHWWalletApp = (initializedHwWalletP as any).hwApp;\n const { contractData, version } = await hwApp.getAppConfiguration();\n const dataEnabled = contractData === LEDGER_CONTRACT_DATA_ENABLED_VALUE;\n return { version, dataEnabled };\n}\n"],
4
+ "sourcesContent": ["import { HWProvider } from '@multiversx/sdk-hw-provider';\nimport { IHWWalletApp } from '@multiversx/sdk-hw-provider/out/interface';\n\nimport { LEDGER_CONTRACT_DATA_ENABLED_VALUE } from 'constants/mvx.constants';\n\nexport async function getLedgerConfiguration(initializedHwWalletP: HWProvider) {\n if (!initializedHwWalletP.isInitialized()) {\n throw new Error('Unable to get version. Provider not initialized');\n }\n const hwApp: IHWWalletApp = (initializedHwWalletP as any).hwApp;\n const { contractData, version } = await hwApp.getAppConfiguration();\n const dataEnabled = contractData === LEDGER_CONTRACT_DATA_ENABLED_VALUE;\n return { version, dataEnabled };\n}\n"],
5
5
  "mappings": "yCAKA,eAAsBA,EAAuBC,EAAkC,CAC7E,GAAI,CAACA,EAAqB,cAAc,EACtC,MAAM,IAAI,MAAM,iDAAiD,EAEnE,IAAMC,EAAuBD,EAA6B,MACpD,CAAE,aAAAE,EAAc,QAAAC,CAAQ,EAAI,MAAMF,EAAM,oBAAoB,EAElE,MAAO,CAAE,QAAAE,EAAS,YADED,IAAiB,CACP,CAChC",
6
6
  "names": ["getLedgerConfiguration", "initializedHwWalletP", "hwApp", "contractData", "version"]
7
7
  }
@@ -0,0 +1,2 @@
1
+ import{a as o}from"./chunk-IHSJITVR.mjs";import{a as e}from"./chunk-6LOIZTC6.mjs";import{a as r}from"./chunk-EZKCZPIE.mjs";import{a as t}from"./chunk-FE54XZXM.mjs";var a={network:{network:e},account:o,loginInfo:r,config:t,transactions:{},toasts:{customToasts:[],transactionToasts:[]},cache:{},ui:{isSidePanelOpen:!1}};export{a};
2
+ //# sourceMappingURL=chunk-3KJMEECV.mjs.map
@@ -1,2 +1,2 @@
1
- import{z as n}from"./chunk-C72ZHRFA.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
- //# sourceMappingURL=chunk-IYM4ZX72.mjs.map
1
+ import{l as n}from"./chunk-XA4YS4GK.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
+ //# sourceMappingURL=chunk-3NSS3FT6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-2CG6PNPJ.mjs";import{a as f}from"./chunk-L3EOHIBG.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as g}from"./chunk-VJBLHJYB.mjs";import{a as o}from"./chunk-RRK6GTWZ.mjs";import{a as p}from"./chunk-RWQNLK3I.mjs";import{a as n}from"./chunk-IPMSVHGJ.mjs";import{a as d}from"./chunk-TQ7T6ULY.mjs";import{a as m}from"./chunk-PSJI2G34.mjs";import{a as r,b as e}from"./chunk-4VUMAG4J.mjs";import{rest as s}from"msw";import{setupServer as k}from"msw/node";var t=$=>(R,u,i)=>u(i.status(200),i.json($)),A=[s.get(`${e.apiAddress}/dapp/config`,t(c)),s.get(`${e.apiAddress}/network/config`,t(a)),s.get(`https://${n.url}/socket.io/`,t(m)),s.get(`${e.apiAddress}/websocket/config`,t(n)),s.get(`${e.apiAddress}/economics`,t(f)),s.get(`${e.apiAddress}/accounts/${r}`,t({...o,address:r})),s.get(`${e.apiAddress}/accounts/${o.address}`,t(o)),s.get(`${e.apiAddress}/tokens/${d.identifier}`,t(d)),s.get(`${e.apiAddress}/accounts/${p.address}`,t(p)),s.get(`${e.apiAddress}/blocks`,t(g))],B=k(...A);export{s as a,t as b,B as c};
2
- //# sourceMappingURL=chunk-M7B26JXO.mjs.map
1
+ import{a as f}from"./chunk-L3EOHIBG.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as g}from"./chunk-VJBLHJYB.mjs";import{a as o}from"./chunk-RRK6GTWZ.mjs";import{a as p}from"./chunk-RWQNLK3I.mjs";import{a as n}from"./chunk-IPMSVHGJ.mjs";import{a as d}from"./chunk-IHAZNPKL.mjs";import{a as m}from"./chunk-PSJI2G34.mjs";import{a}from"./chunk-2CG6PNPJ.mjs";import{a as r,b as e}from"./chunk-2JFN726G.mjs";import{rest as s}from"msw";import{setupServer as k}from"msw/node";var t=$=>(R,u,i)=>u(i.status(200),i.json($)),A=[s.get(`${e.apiAddress}/dapp/config`,t(c)),s.get(`${e.apiAddress}/network/config`,t(a)),s.get(`https://${n.url}/socket.io/`,t(m)),s.get(`${e.apiAddress}/websocket/config`,t(n)),s.get(`${e.apiAddress}/economics`,t(f)),s.get(`${e.apiAddress}/accounts/${r}`,t({...o,address:r})),s.get(`${e.apiAddress}/accounts/${o.address}`,t(o)),s.get(`${e.apiAddress}/tokens/${d.identifier}`,t(d)),s.get(`${e.apiAddress}/accounts/${p.address}`,t(p)),s.get(`${e.apiAddress}/blocks`,t(g))],B=k(...A);export{s as a,t as b,B as c};
2
+ //# sourceMappingURL=chunk-3VIMQHXJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-URTM5OGN.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
- //# sourceMappingURL=chunk-KIMRQMXB.mjs.map
1
+ import{a as e}from"./chunk-PCPUKFTJ.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
+ //# sourceMappingURL=chunk-4PRJNNSH.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/visual/switchTheme.ts"],
4
- "sourcesContent": ["import { safeWindow } from 'constants/window.constants';\nimport { ThemesEnum } from 'types';\n\nexport function switchTheme(theme: `${ThemesEnum}`) {\n try {\n if (!safeWindow) {\n return;\n }\n safeWindow.document.documentElement.dataset.mvxTheme = theme;\n } catch (_err) {\n console.log('Error switching the theme!');\n }\n}\n"],
4
+ "sourcesContent": ["import { safeWindow } from 'constants/window.constants';\nimport { ThemesEnum } from 'types/theme.types';\n\nexport function switchTheme(theme: `${ThemesEnum}`) {\n try {\n if (!safeWindow) {\n return;\n }\n safeWindow.document.documentElement.dataset.mvxTheme = theme;\n } catch (_err) {\n console.log('Error switching the theme!');\n }\n}\n"],
5
5
  "mappings": "yCAGO,SAASA,EAAYC,EAAwB,CAClD,GAAI,CACF,GAAI,CAACC,EACH,OAEFA,EAAW,SAAS,gBAAgB,QAAQ,SAAWD,CACzD,MAAe,CACb,QAAQ,IAAI,4BAA4B,CAC1C,CACF",
6
6
  "names": ["switchTheme", "theme", "safeWindow"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-URTM5OGN.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
- //# sourceMappingURL=chunk-TR2KNDCH.mjs.map
1
+ import{a as t}from"./chunk-PCPUKFTJ.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
+ //# sourceMappingURL=chunk-53NQH7NR.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/utils/ComponentFactory.ts"],
4
+ "sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { safeWindow } from 'constants/window.constants';\nimport type { IEventBus } from 'lib/sdkDappUi';\n\nexport interface CreateEventBusUIElementType extends HTMLElement {\n getEventBus: () => Promise<IEventBus | null>;\n}\n\nexport type CreateComponentType = <T = CreateEventBusUIElementType>({\n name,\n anchor\n}: {\n name: `${UITagsEnum}`;\n anchor?: HTMLElement;\n}) => Promise<T>;\n\nexport class ComponentFactory {\n private static createComponent: CreateComponentType = async <\n T = CreateEventBusUIElementType\n >({\n name,\n anchor\n }: {\n name: `${UITagsEnum}`;\n anchor?: HTMLElement;\n }) => {\n const webComponent = safeWindow?.customElements?.get(name);\n\n if (!webComponent) {\n return null as T;\n }\n\n const element = safeWindow.document.createElement(name);\n const rootElement = anchor || safeWindow.document.body;\n rootElement.appendChild(element);\n await customElements.whenDefined(name);\n\n return element as T;\n };\n\n static get create() {\n return this.createComponent;\n }\n\n static set create(customCreateFunction: CreateComponentType) {\n this.createComponent = customCreateFunction;\n }\n}\n"],
5
+ "mappings": "yCAgBO,IAAMA,EAAN,KAAuB,CAwB5B,WAAW,QAAS,CAClB,OAAO,KAAK,eACd,CAEA,WAAW,OAAOC,EAA2C,CAC3D,KAAK,gBAAkBA,CACzB,CACF,EA/BaD,EACI,gBAAuC,MAEpD,CACA,KAAAE,EACA,OAAAC,CACF,IAGM,CAGJ,GAAI,CAFiBC,GAAY,gBAAgB,IAAIF,CAAI,EAGvD,OAAO,KAGT,IAAMG,EAAUD,EAAW,SAAS,cAAcF,CAAI,EAEtD,OADoBC,GAAUC,EAAW,SAAS,MACtC,YAAYC,CAAO,EAC/B,MAAM,eAAe,YAAYH,CAAI,EAE9BG,CACT",
6
+ "names": ["ComponentFactory", "customCreateFunction", "name", "anchor", "safeWindow", "element"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-TX7PTLVP.mjs";import{b as T}from"./chunk-6UMOECOW.mjs";import{a as u}from"./chunk-UCNS6KD5.mjs";import I from"lodash.startcase";import C from"lodash.uniq";var M=(e=>(e.mex="mex",e.stake="stake",e))(M||{}),R=({currentUserAddress:g,transaction:t,egldLabel:e,isPending:A=!1})=>{if(A)return{name:"Pending..."};let l={},y=Object.entries(T).reduce((s,[x,D])=>Object.assign(s,{[x]:D}),l),n=t.action,r=n&&n.arguments,i=n&&n.category?n.category:null,b=r&&n.name==="transfer",a=r&&Array.isArray(r.transfers)?r.transfers:[],c=a.map(s=>s.type),[m]=C(c),L=e??"EGLD",p=d({transaction:t,transferType:m,currentUserAddress:g}),E=u({allTransferTypes:c,transferType:m,transactionTransfers:a}),h=i&&["mex","stake"].includes(i),o=n&&h?n.description:void 0,f=t.function&&t.function!=="transfer"?y[t.function]??I(t.function):null;return b&&r?{name:`${p} ${E}`,description:o}:f?{name:f,description:o}:{name:`${p} ${L}`,description:o}};export{M as a,R as b};
2
- //# sourceMappingURL=chunk-G5N56FHJ.mjs.map
1
+ import{a as u}from"./chunk-UCNS6KD5.mjs";import{a as d}from"./chunk-TX7PTLVP.mjs";import{b as T}from"./chunk-6UMOECOW.mjs";import I from"lodash.startcase";import C from"lodash.uniq";var M=(e=>(e.mex="mex",e.stake="stake",e))(M||{}),R=({currentUserAddress:g,transaction:t,egldLabel:e,isPending:A=!1})=>{if(A)return{name:"Pending..."};let l={},y=Object.entries(T).reduce((s,[x,D])=>Object.assign(s,{[x]:D}),l),n=t.action,r=n&&n.arguments,i=n&&n.category?n.category:null,b=r&&n.name==="transfer",a=r&&Array.isArray(r.transfers)?r.transfers:[],c=a.map(s=>s.type),[m]=C(c),L=e??"EGLD",p=d({transaction:t,transferType:m,currentUserAddress:g}),E=u({allTransferTypes:c,transferType:m,transactionTransfers:a}),h=i&&["mex","stake"].includes(i),o=n&&h?n.description:void 0,f=t.function&&t.function!=="transfer"?y[t.function]??I(t.function):null;return b&&r?{name:`${p} ${E}`,description:o}:f?{name:f,description:o}:{name:`${p} ${L}`,description:o}};export{M as a,R as b};
2
+ //# sourceMappingURL=chunk-5OMQOYP7.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-5P3UEE7C.mjs.map
@@ -0,0 +1,2 @@
1
+ import{c as I,d as p,e as d}from"./chunk-QNYO7NI5.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{b as m,d as u,e as f}from"./chunk-PJWJZHIS.mjs";import{a as o,c as t,e as c}from"./chunk-NTEMINYA.mjs";import _ from"bignumber.js";function M({from:l,to:G,minGasLimit:r=String(5e4),gasLimit:i,gasPrice:e,data:B,gasPerDataByte:L,gasPriceModifier:T,defaultGasPrice:P=String(1e9),chainId:n}){let a=B||"",A=u(i)?i:r,C=g({data:a})?5e4:0,D=new _(A).plus(C).toNumber(),F=f(e)?e:P,S=new o({nonce:BigInt(0),value:BigInt(0),receiver:new t(G),sender:new t(l),gasPrice:BigInt(F),gasLimit:BigInt(D),data:Buffer.from(a.trim()),chainID:n,version:1});try{return new c().computeTransactionFee(S,{gasPerDataByte:BigInt(L),minGasLimit:BigInt(r),gasPriceModifier:parseFloat(T),chainID:n}).toString(10)}catch(s){return console.error(s),m}}export{M as a};
2
+ //# sourceMappingURL=chunk-5R7MHTVH.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.ts"],
4
+ "sourcesContent": ["import BigNumber from 'bignumber.js';\nimport {\n EXTRA_GAS_LIMIT_GUARDED_TX,\n GAS_LIMIT,\n GAS_PRICE\n} from 'constants/mvx.constants';\nimport { Transaction, Address, TransactionComputer } from 'lib/sdkCore';\nimport { stringIsFloat, stringIsInteger, ZERO } from 'lib/sdkDappUtils';\nimport { isGuardianTx } from 'utils/transactions/isGuardianTx';\n\nexport interface CalculateFeeLimitType {\n gasLimit: string;\n gasPrice: string;\n data: string;\n gasPerDataByte: string;\n gasPriceModifier: string;\n chainId: string;\n minGasLimit?: string;\n defaultGasPrice?: string;\n from: string;\n to: string;\n}\nexport function calculateFeeLimit({\n from,\n to,\n minGasLimit = String(GAS_LIMIT),\n gasLimit,\n gasPrice,\n data: inputData,\n gasPerDataByte,\n gasPriceModifier,\n defaultGasPrice = String(GAS_PRICE),\n chainId\n}: CalculateFeeLimitType) {\n const data = inputData || '';\n const validGasLimit = stringIsInteger(gasLimit) ? gasLimit : minGasLimit;\n\n // We need to add extra gas fee for guardian transactions\n const extraGasLimit = isGuardianTx({ data }) ? EXTRA_GAS_LIMIT_GUARDED_TX : 0;\n const usedGasLimit = new BigNumber(validGasLimit)\n .plus(extraGasLimit)\n .toNumber();\n\n const validGasPrice = stringIsFloat(gasPrice) ? gasPrice : defaultGasPrice;\n const transaction = new Transaction({\n nonce: BigInt(0),\n value: BigInt(0),\n receiver: new Address(to),\n sender: new Address(from),\n gasPrice: BigInt(validGasPrice),\n gasLimit: BigInt(usedGasLimit),\n data: Buffer.from(data.trim()),\n chainID: chainId,\n version: 1\n });\n\n try {\n const transactionComputer = new TransactionComputer();\n const bNfee = transactionComputer.computeTransactionFee(transaction, {\n gasPerDataByte: BigInt(gasPerDataByte),\n minGasLimit: BigInt(minGasLimit),\n gasPriceModifier: parseFloat(gasPriceModifier),\n chainID: chainId\n });\n return bNfee.toString(10);\n } catch (err) {\n console.error(err);\n return ZERO;\n }\n}\n"],
5
+ "mappings": "8MAAA,OAAOA,MAAe,eAsBf,SAASC,EAAkB,CAChC,KAAAC,EACA,GAAAC,EACA,YAAAC,EAAc,OAAO,GAAS,EAC9B,SAAAC,EACA,SAAAC,EACA,KAAMC,EACN,eAAAC,EACA,iBAAAC,EACA,gBAAAC,EAAkB,OAAO,GAAS,EAClC,QAAAC,CACF,EAA0B,CACxB,IAAMC,EAAOL,GAAa,GACpBM,EAAgBC,EAAgBT,CAAQ,EAAIA,EAAWD,EAGvDW,EAAgBC,EAAa,CAAE,KAAAJ,CAAK,CAAC,EAAI,IAA6B,EACtEK,EAAe,IAAIC,EAAUL,CAAa,EAC7C,KAAKE,CAAa,EAClB,SAAS,EAENI,EAAgBC,EAAcd,CAAQ,EAAIA,EAAWI,EACrDW,EAAc,IAAIC,EAAY,CAClC,MAAO,OAAO,CAAC,EACf,MAAO,OAAO,CAAC,EACf,SAAU,IAAIC,EAAQpB,CAAE,EACxB,OAAQ,IAAIoB,EAAQrB,CAAI,EACxB,SAAU,OAAOiB,CAAa,EAC9B,SAAU,OAAOF,CAAY,EAC7B,KAAM,OAAO,KAAKL,EAAK,KAAK,CAAC,EAC7B,QAASD,EACT,QAAS,CACX,CAAC,EAED,GAAI,CAQF,OAP4B,IAAIa,EAAoB,EAClB,sBAAsBH,EAAa,CACnE,eAAgB,OAAOb,CAAc,EACrC,YAAa,OAAOJ,CAAW,EAC/B,iBAAkB,WAAWK,CAAgB,EAC7C,QAASE,CACX,CAAC,EACY,SAAS,EAAE,CAC1B,OAASc,EAAK,CACZ,eAAQ,MAAMA,CAAG,EACVC,CACT,CACF",
6
+ "names": ["BigNumber", "calculateFeeLimit", "from", "to", "minGasLimit", "gasLimit", "gasPrice", "inputData", "gasPerDataByte", "gasPriceModifier", "defaultGasPrice", "chainId", "data", "validGasLimit", "stringIsInteger", "extraGasLimit", "isGuardianTx", "usedGasLimit", "BigNumber", "validGasPrice", "stringIsFloat", "transaction", "Transaction", "Address", "TransactionComputer", "err", "ZERO"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-DW6RO5LJ.mjs";import{a as o}from"./chunk-PMATTOPD.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-6EKK7AJE.mjs.map
1
+ import{a as r}from"./chunk-HX3JKALT.mjs";import{a as o}from"./chunk-HSF3JATH.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-5WJQ2KWS.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-OSV2GCKV.mjs";function S(e){return t()(e)}export{S as a};
2
+ //# sourceMappingURL=chunk-65F23E3Q.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as e}from"./chunk-2QIUCSYX.mjs";import{f as t}from"./chunk-FK6DWWZF.mjs";function n(o=e()){return t(o)}export{n as a};
2
+ //# sourceMappingURL=chunk-6M3IQXQF.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as o}from"./chunk-XNSSZDSU.mjs";import{a as c}from"./chunk-TVXZBSUY.mjs";var p=t=>{o().setState(({account:e})=>{let s=e.address===t.address;e.accounts={[e.address]:s?t:c}},!1,{type:"setAccount",payload:{value:t}})},r=t=>o().setState(({account:e})=>{e.ledgerAccount=t},!1,{type:"setLedgerAccount",payload:{value:t}}),u=t=>o().setState(({account:e})=>{e.walletConnectAccount=t},!1,{type:"setWalletConnectAccount",payload:{value:t}}),l=t=>o().setState(({account:e})=>{e.websocketEvent={timestamp:Date.now(),message:t}},!1,{type:"setWebsocketEvent",payload:{value:t}}),d=t=>o().setState(({account:e})=>{e.websocketBatchEvent={timestamp:Date.now(),data:t}},!1,{type:"setWebsocketBatchEvent",payload:{value:t}}),y=t=>{o().setState(({account:e})=>{e.accounts[e.address].nonce=t},!1,{type:"setAccountNonce",payload:{value:t}})};export{p as a,r as b,u as c,l as d,d as e,y as f};
2
- //# sourceMappingURL=chunk-LYSI4URP.mjs.map
1
+ import{q as o}from"./chunk-2QIUCSYX.mjs";import{a as c}from"./chunk-APCGI2A5.mjs";var p=t=>{o().setState(({account:e})=>{let s=e.address===t.address;e.accounts={[e.address]:s?t:c}},!1,{type:"setAccount",payload:{value:t}})},r=t=>o().setState(({account:e})=>{e.ledgerAccount=t},!1,{type:"setLedgerAccount",payload:{value:t}}),u=t=>o().setState(({account:e})=>{e.walletConnectAccount=t},!1,{type:"setWalletConnectAccount",payload:{value:t}}),l=t=>o().setState(({account:e})=>{e.websocketEvent={timestamp:Date.now(),message:t}},!1,{type:"setWebsocketEvent",payload:{value:t}}),d=t=>o().setState(({account:e})=>{e.websocketBatchEvent={timestamp:Date.now(),data:t}},!1,{type:"setWebsocketBatchEvent",payload:{value:t}}),y=t=>{o().setState(({account:e})=>{e.accounts[e.address].nonce=t},!1,{type:"setAccountNonce",payload:{value:t}})};export{p as a,r as b,u as c,l as d,d as e,y as f};
2
+ //# sourceMappingURL=chunk-6PCK2RPQ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-H73D4VUZ.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-K4JJZCL3.mjs.map
1
+ import{a as o}from"./chunk-D6CXZV4Y.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-6QPOPWIN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-D3VRMBRS.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
2
- //# sourceMappingURL=chunk-LG6Q3PRI.mjs.map
1
+ import{a as o}from"./chunk-D4JFV2LM.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
2
+ //# sourceMappingURL=chunk-6RCSIT2P.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-2QIUCSYX.mjs";import{e as s}from"./chunk-FK6DWWZF.mjs";function x(n){let e=u(),o=a(e),c=s(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-6RYKBAUE.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as c}from"./chunk-NJN53MJV.mjs";import{a as r}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-2QIUCSYX.mjs";var l={},u={},p=(t,o)=>{n().setState(({toasts:s})=>{let a=s.customToasts.length>0?Math.max(...s.customToasts.map(m=>parseInt(m.toastId.split("-").pop()??"0"))):0,e=o??`custom-toast-${a+1}`,T=s.customToasts.findIndex(m=>m.toastId===e),i={...t,toastId:e};if(T!==-1){s.customToasts[T]=i;return}s.customToasts.push({...i,toastId:e})},!1,{type:"addCustomToast",payload:{value:{customToast:t,currentToastId:o}}})},C=t=>{n().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(s=>s.toastId!==t)},!1,{type:"removeCustomToast",payload:{value:t}})},f=()=>{n().setState(({toasts:t})=>{t.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},g=()=>{n().setState(({toasts:t})=>{t.transactionToasts=[]})},y=({toastId:t,totalDuration:o})=>{let s="";return n().setState(({toasts:a})=>{let e=a.transactionToasts.length>0?Math.max(...a.transactionToasts.map(T=>parseInt(T.toastId.split("-").pop()??"0"))):0;s=t??`transaction-toast-${e+1}`,a.transactionToasts.push({startTime:r(),endTime:c(o),toastId:s})},!1,"addTransactionToast"),s},v=t=>{n().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(s=>s.toastId!==t)},!1,"removeTransactionToast"),delete u[t],delete l[t]},h=t=>{let{toasts:o}=n().getState(),s=o.customToasts.length>0?Math.max(...o.customToasts.map(e=>parseInt(e.toastId.split("-").pop()??"0"))):0,a=t.toastId||`custom-toast-${s+1}`;return t.onClose&&(u[a]=t.onClose),t.instantiateToastElement?(l[a]=t.instantiateToastElement,n().setState(({toasts:e})=>{let T=e.customToasts.findIndex(m=>m.toastId===a),i={...t,instantiateToastElement:null,toastId:a};T!==-1?e.customToasts[T]=i:e.customToasts.push(i)},!1,"createCustomToast"),a):(p(t,a),a)};export{l as a,u as b,p as c,C as d,f as e,g as f,y as g,v as h,h as i};
2
+ //# sourceMappingURL=chunk-7BESPSVI.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/store/actions/toasts/toastsActions.ts"],
4
+ "sourcesContent": ["import {\n CustomToastType,\n IComponentToast\n} from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport {\n getUnixTimestamp,\n getUnixTimestampWithAddedMilliseconds\n} from 'utils/dateTime';\n\nexport const customToastComponentDictionary: Record<\n string,\n IComponentToast['instantiateToastElement']\n> = {};\nexport const customToastCloseHandlersDictionary: Record<string, () => void> =\n {};\n\nexport const addCustomToast = (\n customToast: CustomToastType,\n currentToastId?: string\n) => {\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.customToasts.length > 0\n ? Math.max(\n ...state.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n const toastId = currentToastId ?? `custom-toast-${lastToastIndex + 1}`;\n\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const newToast: CustomToastType = {\n ...customToast,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = newToast;\n return;\n }\n\n state.customToasts.push({\n ...newToast,\n toastId\n });\n },\n false,\n {\n type: 'addCustomToast',\n // @ts-ignore\n payload: {\n value: { customToast, currentToastId }\n }\n }\n );\n};\n\nexport const removeCustomToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = state.customToasts.filter(\n (toast) => toast.toastId !== toastId\n );\n },\n false,\n {\n type: 'removeCustomToast',\n // @ts-ignore\n payload: {\n value: toastId\n }\n }\n );\n};\n\nexport const removeAllCustomToasts = () => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = [];\n },\n false,\n {\n type: 'removeAllCustomToasts',\n // @ts-ignore\n payload: {\n value: null\n }\n }\n );\n};\n\nexport const removeAllTransactionToasts = () => {\n getStore().setState(({ toasts: state }) => {\n state.transactionToasts = [];\n });\n};\n\nexport const addTransactionToast = ({\n toastId,\n totalDuration\n}: {\n toastId: string;\n totalDuration: number;\n}): string => {\n let newToastId: string = '';\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.transactionToasts.length > 0\n ? Math.max(\n ...state.transactionToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n newToastId = toastId ?? `transaction-toast-${lastToastIndex + 1}`;\n\n state.transactionToasts.push({\n startTime: getUnixTimestamp(),\n endTime: getUnixTimestampWithAddedMilliseconds(totalDuration),\n toastId: newToastId\n });\n },\n false,\n 'addTransactionToast'\n );\n\n return newToastId;\n};\n\nexport const removeTransactionToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.transactionToasts = state.transactionToasts.filter((toast) => {\n return toast.toastId !== toastId;\n });\n },\n false,\n 'removeTransactionToast'\n );\n\n delete customToastCloseHandlersDictionary[toastId];\n delete customToastComponentDictionary[toastId];\n};\n\nexport const createCustomToast = (props: CustomToastType) => {\n const { toasts } = getStore().getState();\n\n const lastToastIndex =\n toasts.customToasts.length > 0\n ? Math.max(\n ...toasts.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n\n const toastId = props.toastId || `custom-toast-${lastToastIndex + 1}`;\n\n if (props.onClose) {\n customToastCloseHandlersDictionary[toastId] = props.onClose;\n }\n\n if (props.instantiateToastElement) {\n customToastComponentDictionary[toastId] = props.instantiateToastElement;\n\n getStore().setState(\n ({ toasts: state }) => {\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const toast: CustomToastType = {\n ...props,\n instantiateToastElement: null,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = toast;\n } else {\n state.customToasts.push(toast);\n }\n },\n false,\n 'createCustomToast'\n );\n\n return toastId;\n }\n\n addCustomToast(props, toastId);\n return toastId;\n};\n"],
5
+ "mappings": "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",
6
+ "names": ["customToastComponentDictionary", "customToastCloseHandlersDictionary", "addCustomToast", "customToast", "currentToastId", "getStore", "state", "lastToastIndex", "toast", "toastId", "existingToastIndex", "newToast", "removeCustomToast", "removeAllCustomToasts", "removeAllTransactionToasts", "addTransactionToast", "totalDuration", "newToastId", "getUnixTimestamp", "getUnixTimestampWithAddedMilliseconds", "removeTransactionToast", "createCustomToast", "props", "toasts"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-XLLBREX7.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";import{s as m}from"./chunk-XNSSZDSU.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{o as s,u as o}from"./chunk-2JKCBTYK.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-5KYXNO4J.mjs.map
1
+ import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-2QIUCSYX.mjs";import{o as a,u as m}from"./chunk-2JKCBTYK.mjs";async function I({tokenId:n}){let t=c(o()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=s(n),i=n,p=k?a:m;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-7FV6DEQX.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as w}from"./chunk-EPB4JKWX.mjs";import{a as p}from"./chunk-IVMRBKXP.mjs";import{a as O}from"./chunk-PS3SWN5M.mjs";import{a as M}from"./chunk-IAN3XFXS.mjs";import{k as I,l as F,n as N}from"./chunk-E2GGD7D4.mjs";import{a as b,b as C,d as g,e as v,g as E,h as y,i as S}from"./chunk-7BESPSVI.mjs";import{d as B}from"./chunk-QZC64RDG.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-2QIUCSYX.mjs";import{a as d}from"./chunk-53NQH7NR.mjs";import A from"lodash.isequal";import l from"lodash.isequal";var m=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||c(),this.notificationsFeedManager=t.notificationsFeedManager||h.getInstance()}async init(){await this.subscribeToEventBusNotifications()}showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null)}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async publishTransactionToasts(t){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",t),this.hideToasts();return}if(!this.eventBus){let s=await this.createToastListElement();if(!s)return;this.eventBus=await s.getEventBus()}this.eventBus?.publish("TRANSACTION_TOAST_DATA_UPDATE",t)}async publishCustomToasts(t){this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",t)}handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}destroy(){this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[],this.notificationsFeedManager?.destroy()}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await d.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}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.onCloseToast),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.onCloseToast)}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}};var u=class a{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||c(),this.lifetimeManager=t?.lifetimeManager??new O,this.uiCoordinator=t?.uiCoordinator??new m({onCloseToast:this.closeToast.bind(this)})}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.uiCoordinator?.init(),this.unsubscribeFromStore=this.store.subscribe(async({toasts:s,transactions:i},{toasts:e,transactions:o})=>{let n=!l(e.transactionToasts,s.transactionToasts),r=!l(o,i);(n||r)&&await this.updateTransactionToastsList(),!l(e.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return a.instance||(a.instance=new a),a.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),i=s[t];if(!i)return!1;let{status:e}=i,o=N(e),n=F(e),r=I(e),T=n||r||o;return T?(this.successfulToastLifetime&&this.lifetimeManager.start(t),T):(this.lifetimeManager.stop(t),T)}async createTransactionToast(t,s){let i=E({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),i}async createCustomToast(t){let s=S(t);return await this.updateCustomToastList(),s}async updateTransactionToastsList(){let t=this.store.getState(),{toasts:s}=t,{pendingTransactionToasts:i,completedTransactionToasts:e}=await p({store:t});this.transactionToasts=[...i,...e];for(let o of s.transactionToasts)this.handleCompletedTransaction(o.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let e="message"in s?{...s}:{...s,instantiateToastElement:b[s.toastId]};this.customToasts.push(e),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(y(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(i=>i.toastId===t)){this.lifetimeManager.stop(t);let i=C[t];return i?.(),g(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),v()}};var D="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",h=class a extends M{constructor(s){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=s||c(),this.data={...this.initialData}}static getInstance(){return a.instance||(a.instance=new a),a.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){u.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let i=this.store.subscribe(async({toasts:e,transactions:o},{toasts:n,transactions:r})=>{(!A(n.transactionToasts,e.transactionToasts)||!A(r,o))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(D,[i]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=u.getInstance();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}=this.store.getState(),{pendingTransactionToasts:i}=await p();this.data.pendingTransactions=i;let e=Object.keys(s).reduce((o,n)=>(["sent","pending"].includes(String(s[n].status))||(o[n]=s[n]),o),{});this.data.historicTransactions=await w.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){B(),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))}};export{h as a,m as b,u as c};
2
+ //# sourceMappingURL=chunk-7GWD5XR7.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/managers/NotificationsFeedManager/NotificationsFeedManager.ts", "../../src/managers/ToastManager/ToastManager.ts", "../../src/managers/ToastManager/ToastUICoordinator.ts"],
4
+ "sourcesContent": ["import isEqual from 'lodash.isequal';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { TransactionsHistoryController } from 'controllers/TransactionsHistoryController';\nimport { ITransactionListItem, MvxNotificationsFeed } from 'lib/sdkDappUi';\nimport { clearCompletedTransactions } from 'store/actions/transactions/transactionsActions';\nimport { TransactionsSliceType } from 'store/slices/transactions/transactionsSlice.types';\nimport { getStore } from 'store/store';\nimport { TransactionServerStatusesEnum } from 'types/enums.types';\nimport { TransactionBatchStatusesEnum } from 'types/enums.types';\nimport { NotificationsFeedEventsEnum } from './types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager/SidePanelBaseManager';\nimport { ToastManager } from '../ToastManager';\nimport { createToastsFromTransactions } from '../ToastManager/helpers/createToastsFromTransactions';\nimport { ITransactionToast } from '../ToastManager/types';\n\ninterface INotificationsFeedManagerData {\n pendingTransactions: ITransactionToast[];\n historicTransactions: ITransactionListItem[];\n}\n\nconst NOTIFICATIONS_FEED_STORE_SUBSCRIBE = 'NOTIFICATIONS_FEED_STORE_SUBSCRIBE';\n\nexport class NotificationsFeedManager extends SidePanelBaseManager<\n MvxNotificationsFeed,\n INotificationsFeedManagerData,\n NotificationsFeedEventsEnum | typeof NOTIFICATIONS_FEED_STORE_SUBSCRIBE\n> {\n private static instance: NotificationsFeedManager;\n private readonly store: ReturnType<typeof getStore>;\n\n protected initialData: INotificationsFeedManagerData = {\n pendingTransactions: [],\n historicTransactions: []\n };\n\n public static getInstance(): NotificationsFeedManager {\n if (!NotificationsFeedManager.instance) {\n NotificationsFeedManager.instance = new NotificationsFeedManager();\n }\n return NotificationsFeedManager.instance;\n }\n\n constructor(store?: ReturnType<typeof getStore>) {\n super({\n uiDataUpdateEvent: NotificationsFeedEventsEnum.OPEN,\n uiTag: UITagsEnum.NOTIFICATIONS_FEED\n });\n this.store = store || getStore();\n this.data = { ...this.initialData };\n }\n\n public isNotificationsFeedOpen(): boolean {\n return this.isOpen;\n }\n\n /**\n * Open the notifications feed and toggle off the toast manager.\n */\n public async openNotificationsFeed(): Promise<void> {\n const toastManager = ToastManager.getInstance();\n toastManager.hideToasts();\n await this.openUI();\n await this.updateDataAndNotifications();\n\n const storeToastsUnsubscribe = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n if (\n !isEqual(prevToasts.transactionToasts, toasts.transactionToasts) ||\n !isEqual(prevTransactions, transactions)\n ) {\n await this.updateDataAndNotifications();\n }\n }\n );\n this.unsubscribeFunctions.set(NOTIFICATIONS_FEED_STORE_SUBSCRIBE, [\n storeToastsUnsubscribe\n ]);\n\n this.eventBus?.publish(NotificationsFeedEventsEnum.OPEN);\n await this.updateDataAndNotifications();\n }\n\n /**\n * Close the notifications feed and toggle on the toast manager.\n */\n protected async handleCloseUI() {\n const toastManager = ToastManager.getInstance();\n this.closeUI();\n await toastManager.showToasts();\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLOSE,\n this.handleCloseUI.bind(this)\n );\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLEAR,\n this.handleClearNotificationsFeedHistory.bind(this)\n );\n }\n\n protected async updateDataAndNotifications() {\n const { transactions } = this.store.getState();\n\n const { pendingTransactionToasts } = await createToastsFromTransactions();\n\n this.data.pendingTransactions = pendingTransactionToasts;\n\n const transactionsSessions = Object.keys(transactions).reduce(\n (acc, key) => {\n const isPendingStatus = [\n TransactionBatchStatusesEnum.sent,\n `${TransactionServerStatusesEnum.pending}`\n ].includes(String(transactions[key].status));\n\n if (!isPendingStatus) {\n acc[key] = transactions[key];\n }\n return acc;\n },\n {} as TransactionsSliceType\n );\n\n this.data.historicTransactions =\n await TransactionsHistoryController.getTransactionsHistory({\n transactionsSessions\n });\n\n await this.updateNotificationsFeed();\n }\n\n private handleClearNotificationsFeedHistory() {\n clearCompletedTransactions();\n this.resetData();\n this.updateNotificationsFeed();\n }\n\n private async updateNotificationsFeed() {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.PENDING_TRANSACTIONS_UPDATE,\n this.data.pendingTransactions\n );\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.TRANSACTIONS_HISTORY_UPDATE,\n this.data.historicTransactions\n );\n }\n}\n", "import isEqual from 'lodash.isequal';\nimport { DEFAULT_TOAST_LIFETIME } from 'constants/transactions.constants';\nimport {\n customToastCloseHandlersDictionary,\n customToastComponentDictionary,\n removeAllCustomToasts,\n removeCustomToast,\n removeTransactionToast,\n addTransactionToast,\n createCustomToast\n} from 'store/actions/toasts/toastsActions';\nimport {\n getIsTransactionFailed,\n getIsTransactionSuccessful,\n getIsTransactionTimedOut\n} from 'store/actions/transactions/transactionStateByStatus';\n\nimport { CustomToastType } from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { createToastsFromTransactions } from './helpers/createToastsFromTransactions';\nimport { LifetimeManager } from './helpers/LifetimeManager';\nimport { ToastUICoordinator } from './ToastUICoordinator';\nimport { ITransactionToast } from './types';\n\ninterface IToastManager {\n successfulToastLifetime?: number;\n}\n\nexport class ToastManager {\n private readonly lifetimeManager: LifetimeManager;\n private store: ReturnType<typeof getStore>;\n private static instance: ToastManager;\n private transactionToasts: ITransactionToast[] = [];\n private customToasts: CustomToastType[] = [];\n private successfulToastLifetime?: number;\n private unsubscribeFromStore: () => void = () => null;\n private uiCoordinator: ToastUICoordinator | null = null;\n\n constructor(props?: {\n store?: ReturnType<typeof getStore>;\n lifetimeManager?: LifetimeManager;\n uiCoordinator?: ToastUICoordinator;\n }) {\n this.destroy();\n this.store = props?.store || getStore();\n this.lifetimeManager = props?.lifetimeManager ?? new LifetimeManager();\n this.uiCoordinator =\n props?.uiCoordinator ??\n new ToastUICoordinator({\n onCloseToast: this.closeToast.bind(this)\n });\n }\n\n public async init({\n successfulToastLifetime = DEFAULT_TOAST_LIFETIME\n }: IToastManager = {}) {\n this.successfulToastLifetime = successfulToastLifetime;\n\n this.lifetimeManager.init({ successfulToastLifetime });\n\n await this.updateTransactionToastsList();\n await this.updateCustomToastList();\n\n await this.uiCoordinator?.init();\n\n this.unsubscribeFromStore = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n const newToastsWereCreated = !isEqual(\n prevToasts.transactionToasts,\n toasts.transactionToasts\n );\n const checkBatchHasNewData = !isEqual(prevTransactions, transactions);\n\n if (newToastsWereCreated || checkBatchHasNewData) {\n await this.updateTransactionToastsList();\n }\n\n const newCustomToastsWereCreated = !isEqual(\n prevToasts.customToasts,\n toasts.customToasts\n );\n\n if (newCustomToastsWereCreated) {\n await this.updateCustomToastList();\n }\n }\n );\n }\n\n public static getInstance(): ToastManager {\n if (!ToastManager.instance) {\n ToastManager.instance = new ToastManager();\n }\n return ToastManager.instance;\n }\n\n private handleCompletedTransaction(toastId: string): boolean {\n const { transactions } = this.store.getState();\n const transaction = transactions[toastId];\n\n if (!transaction) {\n return false;\n }\n\n const { status } = transaction;\n const isTimedOut = getIsTransactionTimedOut(status);\n const isFailed = getIsTransactionFailed(status);\n const isSuccessful = getIsTransactionSuccessful(status);\n const isCompleted = isFailed || isSuccessful || isTimedOut;\n\n if (isCompleted) {\n if (this.successfulToastLifetime) {\n this.lifetimeManager.start(toastId);\n }\n return isCompleted;\n }\n\n this.lifetimeManager.stop(toastId);\n return isCompleted;\n }\n\n public async createTransactionToast(\n toastId: string,\n totalDuration: number\n ): Promise<string> {\n const newToastId = addTransactionToast({\n toastId,\n totalDuration\n });\n\n this.handleCompletedTransaction(toastId);\n await this.updateTransactionToastsList();\n return newToastId;\n }\n\n public async createCustomToast(toast: CustomToastType): Promise<string> {\n const toastId = createCustomToast(toast);\n await this.updateCustomToastList();\n return toastId;\n }\n\n private async updateTransactionToastsList() {\n const store = this.store.getState();\n const { toasts: toastList } = store;\n\n const { pendingTransactionToasts, completedTransactionToasts } =\n await createToastsFromTransactions({\n store\n });\n\n this.transactionToasts = [\n ...pendingTransactionToasts,\n ...completedTransactionToasts\n ];\n\n for (const toast of toastList.transactionToasts) {\n this.handleCompletedTransaction(toast.toastId);\n }\n\n await this.publishTransactionToasts();\n }\n\n private async updateCustomToastList() {\n const { toasts: toastList } = this.store.getState();\n this.customToasts = [];\n\n for (const toast of toastList.customToasts) {\n const isSimpleToast = 'message' in toast;\n\n const newToast: CustomToastType = isSimpleToast\n ? { ...toast }\n : {\n ...toast,\n instantiateToastElement:\n customToastComponentDictionary[toast.toastId]\n };\n this.customToasts.push(newToast);\n\n if (toast.duration) {\n this.lifetimeManager.startWithCustomDuration(\n toast.toastId,\n toast.duration\n );\n }\n }\n await this.uiCoordinator?.publishCustomToasts(this.customToasts);\n }\n\n private handleTransactionToastClose(toastId: string): boolean {\n const isCompleted = this.handleCompletedTransaction(toastId);\n\n if (isCompleted) {\n removeTransactionToast(toastId);\n return true;\n }\n\n return false;\n }\n\n public async showToasts() {\n this.uiCoordinator?.showToasts();\n await this.updateCustomToastList();\n await this.updateTransactionToastsList();\n }\n\n public hideToasts() {\n this.uiCoordinator?.hideToasts();\n }\n\n public closeToast(toastId: string): boolean {\n const customToast = this.customToasts.find(\n (toast) => toast.toastId === toastId\n );\n\n if (customToast) {\n this.lifetimeManager.stop(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n removeCustomToast(toastId);\n return true;\n }\n\n return this.handleTransactionToastClose(toastId);\n }\n\n private async publishTransactionToasts() {\n await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts);\n }\n\n public destroy() {\n this.unsubscribeFromStore();\n this.lifetimeManager?.destroy();\n this.uiCoordinator?.destroy();\n removeAllCustomToasts();\n }\n}\n", "import { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxToastList } from 'lib/sdkDappUi';\nimport { NotificationsFeedManager } from 'managers/NotificationsFeedManager/NotificationsFeedManager';\nimport type { CustomToastType } from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { IEventBus } from 'types/manager.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { ComponentFactory } from 'utils/ComponentFactory';\nimport { ToastEventsEnum } from './types';\nimport type { ITransactionToast } from './types';\n\ntype OnCloseToastType = (toastId: string) => boolean;\ntype StoreObjectType = ReturnType<typeof getStore>;\n\nexport class ToastUICoordinator {\n private toastsElement: MvxToastList | null = null;\n private eventBus: IEventBus<\n ITransactionToast[] | CustomToastType[] | null\n > | null = null;\n private isCreatingElement = false;\n private eventBusUnsubscribeFunctions: (() => void)[] = [];\n private readonly notificationsFeedManager: NotificationsFeedManager;\n private readonly store: StoreObjectType;\n private readonly onCloseToast: OnCloseToastType;\n\n constructor(props: {\n onCloseToast: OnCloseToastType;\n store?: StoreObjectType;\n notificationsFeedManager?: NotificationsFeedManager;\n }) {\n this.onCloseToast = props.onCloseToast;\n this.store = props.store || getStore();\n this.notificationsFeedManager =\n props.notificationsFeedManager || NotificationsFeedManager.getInstance();\n }\n\n public async init() {\n await this.subscribeToEventBusNotifications();\n }\n\n public showToasts() {\n this.eventBus?.publish(ToastEventsEnum.SHOW, null);\n }\n\n public hideToasts() {\n this.eventBus?.publish(ToastEventsEnum.HIDE, null);\n }\n\n public async publishTransactionToasts(toasts: ITransactionToast[]) {\n if (\n this.notificationsFeedManager.isNotificationsFeedOpen() &&\n this.eventBus\n ) {\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n toasts\n );\n this.hideToasts();\n return;\n }\n\n if (!this.eventBus) {\n const toastsElement = await this.createToastListElement();\n if (!toastsElement) {\n return;\n }\n this.eventBus = await toastsElement.getEventBus();\n }\n\n this.eventBus?.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n toasts\n );\n }\n\n public async publishCustomToasts(customToasts: CustomToastType[]) {\n this.eventBus?.publish(\n ToastEventsEnum.CUSTOM_TOAST_DATA_UPDATE,\n customToasts\n );\n }\n\n private handleOpenNotificationsFeed() {\n this.notificationsFeedManager.openNotificationsFeed();\n }\n\n public destroy() {\n this.eventBusUnsubscribeFunctions.forEach((unsubscribe) => unsubscribe());\n this.eventBusUnsubscribeFunctions = [];\n this.notificationsFeedManager?.destroy();\n }\n\n private async createToastListElement(): Promise<MvxToastList | null> {\n if (this.toastsElement) {\n return this.toastsElement;\n }\n\n if (!this.isCreatingElement) {\n this.isCreatingElement = true;\n this.toastsElement = await ComponentFactory.create<MvxToastList>({\n name: UITagsEnum.TOAST_LIST\n });\n this.isCreatingElement = false;\n }\n\n return this.toastsElement;\n }\n\n private async subscribeToEventBusNotifications() {\n const toastsElement = await this.createToastListElement();\n\n if (!toastsElement) {\n return;\n }\n\n this.eventBus = await toastsElement.getEventBus();\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n this.eventBus.subscribe(ToastEventsEnum.CLOSE, this.onCloseToast);\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(ToastEventsEnum.CLOSE, this.onCloseToast);\n });\n\n this.eventBus.subscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n });\n }\n}\n"],
5
+ "mappings": "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",
6
+ "names": ["isEqual", "isEqual", "ToastUICoordinator", "props", "getStore", "NotificationsFeedManager", "toasts", "toastsElement", "customToasts", "unsubscribe", "ComponentFactory", "ToastManager", "_ToastManager", "props", "getStore", "LifetimeManager", "ToastUICoordinator", "successfulToastLifetime", "toasts", "transactions", "prevToasts", "prevTransactions", "newToastsWereCreated", "isEqual", "checkBatchHasNewData", "toastId", "transaction", "status", "isTimedOut", "getIsTransactionTimedOut", "isFailed", "getIsTransactionFailed", "isSuccessful", "getIsTransactionSuccessful", "isCompleted", "totalDuration", "newToastId", "addTransactionToast", "toast", "createCustomToast", "store", "toastList", "pendingTransactionToasts", "completedTransactionToasts", "createToastsFromTransactions", "newToast", "customToastComponentDictionary", "removeTransactionToast", "handleClose", "customToastCloseHandlersDictionary", "removeCustomToast", "removeAllCustomToasts", "NOTIFICATIONS_FEED_STORE_SUBSCRIBE", "NotificationsFeedManager", "_NotificationsFeedManager", "SidePanelBaseManager", "store", "getStore", "ToastManager", "storeToastsUnsubscribe", "toasts", "transactions", "prevToasts", "prevTransactions", "isEqual", "toastManager", "pendingTransactionToasts", "createToastsFromTransactions", "transactionsSessions", "acc", "key", "TransactionsHistoryController", "clearCompletedTransactions"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as U}from"./chunk-2RTOYKHB.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as B}from"./chunk-3XTYIGW5.mjs";import{a as $}from"./chunk-OIRXFS5Q.mjs";import{a as _}from"./chunk-4SS6EY66.mjs";import{a as R}from"./chunk-6F4OKEUQ.mjs";import{a as M}from"./chunk-YGI3KXMZ.mjs";import{a as w}from"./chunk-5KYXNO4J.mjs";import{a as v}from"./chunk-RYIJWGFA.mjs";import{z as x}from"./chunk-C72ZHRFA.mjs";import{a as O}from"./chunk-YJCTRUJT.mjs";import{a as C,c as F,f}from"./chunk-PJWJZHIS.mjs";import{a as L}from"./chunk-2JKCBTYK.mjs";import{c as G}from"./chunk-FTJF3Q3P.mjs";import{k as h}from"./chunk-LHEH7L4L.mjs";import{a as A}from"./chunk-URTM5OGN.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:o,network:n,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:o,sender:W,apiAddress:n.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await w({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Y};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(n.decimals):X,digits:Number(n.digits),showLastNonZeroDecimal:!1,addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:Q),ut=M({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===h?o:a)??o,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:p,price:S}),nt=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:n.gasStationMetadata}),{gasPriceOption:N}=T,et=x().getType(),it=v(et),k=u.length,rt=e.length>0?e[e.length-1]+1:0,P=G(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=O({to:`/${L}/${m}`,explorerAddress:st}),ct=k===1||t?.needsSigning&&!e.includes(s),pt=f({input:N.toString(),decimals:F,addCommas:!0,digits:C}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:N,gasPriceOptions:nt,egldLabel:o,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:k,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:A.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
2
- //# sourceMappingURL=chunk-5AGKFSA6.mjs.map
1
+ import{a as U}from"./chunk-RMLVJDCQ.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-UJTYOT5N.mjs";import{a as _}from"./chunk-PN7JDWSZ.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-SYHILLXA.mjs";import{l as M}from"./chunk-XA4YS4GK.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-7FV6DEQX.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as L,f}from"./chunk-PJWJZHIS.mjs";import{a as G}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-PCPUKFTJ.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:o,network:n,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:o,sender:W,apiAddress:n.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await v({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Y};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(n.decimals):X,digits:Number(n.digits),showLastNonZeroDecimal:!1,addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:Q),ut=w({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?o:a)??o,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:p,price:S}),nt=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:n.gasStationMetadata}),{gasPriceOption:N}=T,et=M().getType(),it=O(et),k=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${G}/${m}`,explorerAddress:st}),ct=k===1||t?.needsSigning&&!e.includes(s),pt=f({input:N.toString(),decimals:L,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:N,gasPriceOptions:nt,egldLabel:o,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:k,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
2
+ //# sourceMappingURL=chunk-7TH3QSCV.mjs.map
@@ -1,2 +1,2 @@
1
- import{j as n,q as o}from"./chunk-XNSSZDSU.mjs";import{c as p}from"./chunk-NTEMINYA.mjs";var s=()=>o().setState(n),l=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{s as a,l as b};
2
- //# sourceMappingURL=chunk-CXAX5TAG.mjs.map
1
+ import{j as n,q as o}from"./chunk-2QIUCSYX.mjs";import{c as p}from"./chunk-NTEMINYA.mjs";var s=()=>o().setState(n),l=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{s as a,l as b};
2
+ //# sourceMappingURL=chunk-AFOS3Q4N.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as r}from"./chunk-UTWIKUIK.mjs";import{s as t}from"./chunk-2QIUCSYX.mjs";var i=(e,o)=>r(`transaction-${e}`)(o??t())??null;export{i as a};
2
+ //# sourceMappingURL=chunk-AIQTIXFV.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as o}from"./chunk-2QIUCSYX.mjs";import{a as t}from"./chunk-FK6DWWZF.mjs";function n(r=o()){return t(r)}export{n as a};
2
+ //# sourceMappingURL=chunk-AMXCV2YT.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/methods/account/getAccount.ts"],
4
- "sourcesContent": ["import { accountSelector } from 'store/selectors';\nimport { getState } from 'store/store';\n\nexport function getAccount(state = getState()) {\n return accountSelector(state);\n}\n"],
4
+ "sourcesContent": ["import { accountSelector } from 'store/selectors/accountSelectors';\nimport { getState } from 'store/store';\n\nexport function getAccount(state = getState()) {\n return accountSelector(state);\n}\n"],
5
5
  "mappings": "kFAGO,SAASA,EAAWC,EAAQC,EAAS,EAAG,CAC7C,OAAOC,EAAgBF,CAAK,CAC9B",
6
6
  "names": ["getAccount", "state", "getState", "accountSelector"]
7
7
  }
@@ -1,6 +1,6 @@
1
- import{m as D}from"./chunk-M6MN4RXG.mjs";import{a as f}from"./chunk-5DILKRFV.mjs";import{a as d}from"./chunk-HZGRS7HG.mjs";import{a as m}from"./chunk-NTPPBM7T.mjs";import{a as s}from"./chunk-4VA2SULD.mjs";var F=({data:t,decodeMethod:e,identifier:r,highlight:n=null})=>{let i={displayValue:"",validationWarnings:[],highlight:n};if(t.length>36e3&&["decimal","smart"].includes(e))return{...i,displayValue:t};let c=t.includes("@"),p=t.includes(`
1
+ import{m as D}from"./chunk-M6MN4RXG.mjs";import{a as f}from"./chunk-HTT67LH3.mjs";import{a as d}from"./chunk-VGDWWBLN.mjs";import{a as m}from"./chunk-I3ILB737.mjs";import{a as s}from"./chunk-XA6ZDGIQ.mjs";var F=({data:t,decodeMethod:e,identifier:r,highlight:n=null})=>{let i={displayValue:"",validationWarnings:[],highlight:n};if(t.length>36e3&&["decimal","smart"].includes(e))return{...i,displayValue:t};let c=t.includes("@"),p=t.includes(`
2
2
  `);if(!c&&!p)return{...i,displayValue:s({data:t,decodeMethod:e}),highlight:n&&s({data:n,decodeMethod:e})};if(c){let a=t.split("@"),l=f({parts:a,decodeMethod:e,identifier:r,decodedData:i}),o=n?d({data:n,identifier:r,decodeMethod:e,delimiter:"@"}):null;return{...i,displayValue:l.join("@"),highlight:o}}if(p){let a=t.split(`
3
3
  `),l=a.map(u=>e==="raw"?u:s({data:Buffer.from(u,"base64").toString("hex"),decodeMethod:e})),o=m({parts:a,initialDecodedParts:l,identifier:r,decodeMethod:e}),y=n?d({data:n,identifier:r,decodeMethod:e,delimiter:`
4
4
  `}):null;return{...i,displayValue:o.join(`
5
5
  `),highlight:y}}return i};export{F as a};
6
- //# sourceMappingURL=chunk-ZRSYQ3MT.mjs.map
6
+ //# sourceMappingURL=chunk-AOLW46E4.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as o}from"./chunk-MGFIOCA4.mjs";import{b as t}from"./chunk-PJWJZHIS.mjs";var r={balance:o,address:"",isGuarded:!1,nonce:0,txCount:0,scrCount:0,claimableRewards:t};export{r as a};
2
+ //# sourceMappingURL=chunk-APCGI2A5.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-6BOC75BF.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{a as u}from"./chunk-55U3WK3C.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-O65OBG5D.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
2
- //# sourceMappingURL=chunk-LKOWOTL2.mjs.map
1
+ import{a as m}from"./chunk-K4E7GCWI.mjs";import{a as u}from"./chunk-D27ZK232.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-QZC64RDG.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
2
+ //# sourceMappingURL=chunk-AWH3CO5C.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as A}from"./chunk-573JTRNC.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-NI7XCWV5.mjs";import{g as f}from"./chunk-C72ZHRFA.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{a as S}from"./chunk-N55JEIM6.mjs";import{a as y}from"./chunk-O65OBG5D.mjs";import{a as h}from"./chunk-4GCIE2BM.mjs";import{h as g}from"./chunk-M6MN4RXG.mjs";import{s as l}from"./chunk-XNSSZDSU.mjs";import{b as m}from"./chunk-7VHTZYM2.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=S(s),n=y({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return f({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=m(l());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=h(),{apiAddress:s,apiTimeout:o}=m(l());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return b({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${g}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
2
- //# sourceMappingURL=chunk-MS7BFY27.mjs.map
1
+ import{a as A}from"./chunk-IRFXPRDX.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-TWYGNEQS.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{g as S}from"./chunk-7BESPSVI.mjs";import{a as h}from"./chunk-QZC64RDG.mjs";import{a as y}from"./chunk-AMXCV2YT.mjs";import{h as f}from"./chunk-M6MN4RXG.mjs";import{b as l}from"./chunk-7VHTZYM2.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{s as m}from"./chunk-2QIUCSYX.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=b(s),n=h({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=l(m());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=y(),{apiAddress:s,apiTimeout:o}=l(m());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return g({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${f}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
2
+ //# sourceMappingURL=chunk-BE5OKL3L.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/managers/TransactionManager/TransactionManager.ts"],
4
+ "sourcesContent": ["import axios, { AxiosError } from 'axios';\nimport { BATCH_TRANSACTIONS_ID_SEPARATOR } from 'constants/transactions.constants';\nimport { Transaction } from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport { TransactionTrackingConfigType } from 'methods/initApp/initApp.types';\nimport { addTransactionToast } from 'store/actions/toasts/toastsActions';\nimport { createTransactionsSession } from 'store/actions/transactions/transactionsActions';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { BatchTransactionsResponseType } from 'types/serverTransactions.types';\nimport { SignedTransactionType } from 'types/transactions.types';\nimport { isGuardianTx } from 'utils/transactions/isGuardianTx';\nimport { getToastDuration } from './helpers/getToastDuration';\nimport { getTransactionsSessionStatus } from './helpers/getTransactionsStatus';\nimport { isBatchTransaction } from './helpers/isBatchTransaction';\nimport { registerCallbacks } from './helpers/sessionCallbacks';\nimport { TransactionManagerTrackOptionsType } from './TransactionManager.types';\n\nexport class TransactionManager {\n private static instance: TransactionManager | null = null;\n\n public static getInstance(): TransactionManager {\n if (!TransactionManager.instance) {\n TransactionManager.instance = new TransactionManager();\n }\n return TransactionManager.instance;\n }\n\n /**\n * Set callbacks to be executed when the transaction session is successful or fails.\n * It is analogous to the `onSuccess` and `onFail` callbacks set in the `initApp` method,\n * as a way to override the global callbacks\n * @param onSuccess - The callback to run when the transaction session is successful.\n * @param onFail - The callback to run when the transaction session fails.\n * @example\n * ```ts\n * TransactionManager.setCallbacks({\n * onSuccess: (sessionId) => {\n * console.log('Transaction session successful', sessionId);\n * },\n * });\n */\n public setCallbacks = ({\n onSuccess,\n onFail\n }: TransactionTrackingConfigType) => {\n registerCallbacks({ onSuccess, onFail });\n };\n\n public send = async (\n signedTransactions: Transaction[] | Transaction[][]\n ): Promise<SignedTransactionType[] | SignedTransactionType[][]> => {\n if (signedTransactions.length === 0) {\n throw new Error('No transactions to send');\n }\n\n try {\n if (!isBatchTransaction(signedTransactions)) {\n const flatTransactions =\n await this.sendSignedTransactions(signedTransactions);\n\n return flatTransactions;\n }\n\n const sentTransactions =\n await this.sendSignedBatchTransactions(signedTransactions);\n\n if (!sentTransactions.data || sentTransactions.data.error) {\n throw new Error(\n sentTransactions.data?.error ?? 'Failed to send transactions'\n );\n }\n\n const groupedTransactions = sentTransactions.data.transactions;\n\n return groupedTransactions;\n } catch (error) {\n const responseData = <{ message: string }>(\n (error as AxiosError).response?.data\n );\n throw responseData?.message ?? (error as Error).message;\n }\n };\n\n /**\n * Track the status of a transaction session.\n * @param sentTransactions - The transactions to track.\n * @param options - The options for the transaction session.\n * @returns The session id.\n * @example\n * ```ts\n * const sessionId = await txManager.track(sentTransactions, {\n * transactionsDisplayInfo: {\n * errorMessage: 'Failed adding stake',\n * successMessage: 'Stake successfully added',\n * processingMessage: 'Staking in progress'\n * },\n * onSuccess: async(sessionId) => {\n * console.log('Session successful', sessionId);\n * },\n * onFail: async(sessionId) => {\n * console.log('Session failed', sessionId);\n * }\n * sessionInformation: {\n * stakeAmount: '1000000000000000000000000'\n * }\n * });\n * ```\n */\n public track = async (\n sentTransactions: SignedTransactionType[] | SignedTransactionType[][],\n options: TransactionManagerTrackOptionsType = { disableToasts: false }\n ): Promise<string> => {\n const flatTransactions = this.sequentialToFlatArray(sentTransactions).map(\n (transaction) => ({\n ...transaction,\n status: transaction.status ?? TransactionServerStatusesEnum.pending\n })\n );\n\n const status = getTransactionsSessionStatus(flatTransactions);\n\n const sessionId = createTransactionsSession({\n transactions: flatTransactions,\n transactionsDisplayInfo: options.transactionsDisplayInfo,\n status: status ?? TransactionBatchStatusesEnum.sent,\n sessionInformation: options.sessionInformation\n });\n\n if (options.disableToasts === true) {\n return sessionId;\n }\n\n if (options.onSuccess) {\n registerCallbacks({ onSuccess: options.onSuccess, sessionId });\n }\n\n if (options.onFail) {\n registerCallbacks({ onFail: options.onFail, sessionId });\n }\n\n const totalDuration = getToastDuration(sentTransactions);\n addTransactionToast({\n toastId: sessionId,\n totalDuration\n });\n\n return sessionId;\n };\n\n private readonly sendSignedTransactions = async (\n signedTransactions: Transaction[]\n ): Promise<SignedTransactionType[]> => {\n const { apiAddress, apiTimeout } = networkSelector(getState());\n\n const mergedTransactions = await Promise.all(\n signedTransactions.map(async (transaction) => {\n const response = await axios.post(\n `${apiAddress}/transactions`,\n transaction.toPlainObject(),\n { timeout: Number(apiTimeout) }\n );\n\n const txHash = response.data.txHash;\n\n return {\n ...transaction.toPlainObject(),\n ...response.data,\n status: TransactionServerStatusesEnum.pending,\n hash: txHash\n };\n })\n );\n\n return mergedTransactions;\n };\n\n private readonly sendSignedBatchTransactions = async (\n signedTransactions: Transaction[][]\n ) => {\n const { address } = getAccount();\n const { apiAddress, apiTimeout } = networkSelector(getState());\n\n if (!address) {\n return {\n error:\n 'Invalid address provided. You need to be logged in to send transactions'\n };\n }\n\n const batchId = this.buildBatchId(address);\n\n const plainTransactions = signedTransactions.map((group) =>\n group.map((tx) => tx.toPlainObject())\n );\n\n const payload = {\n transactions: plainTransactions,\n id: batchId\n };\n\n const { data } = await axios.post<BatchTransactionsResponseType>(\n `${apiAddress}/batch`,\n payload,\n {\n timeout: Number(apiTimeout)\n }\n );\n\n const parsedTransactions = data.transactions.map((group) =>\n group.map((tx) => {\n const parsedTx: SignedTransactionType = {\n ...tx,\n status: TransactionServerStatusesEnum.pending,\n hash: tx.hash\n };\n\n // Remove when the protocol supports usernames for guardian transactions\n if (isGuardianTx({ data: parsedTx.data })) {\n delete parsedTx.senderUsername;\n delete parsedTx.receiverUsername;\n }\n\n return parsedTx;\n })\n );\n\n return {\n data: {\n ...data,\n transactions: parsedTransactions\n }\n };\n };\n\n private readonly buildBatchId = (address: string) => {\n const sessionId = Date.now().toString();\n return `${sessionId}${BATCH_TRANSACTIONS_ID_SEPARATOR}${address}`;\n };\n private readonly sequentialToFlatArray = (\n transactions: SignedTransactionType[] | SignedTransactionType[][] = []\n ) =>\n this.getIsSequential(transactions)\n ? transactions.flat()\n : (transactions as SignedTransactionType[]);\n\n private readonly getIsSequential = (\n transactions?: SignedTransactionType[] | SignedTransactionType[][]\n ) => transactions?.every((transaction) => Array.isArray(transaction));\n}\n"],
5
+ "mappings": "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",
6
+ "names": ["axios", "_TransactionManager", "onSuccess", "onFail", "registerCallbacks", "signedTransactions", "isBatchTransaction", "sentTransactions", "error", "options", "flatTransactions", "transaction", "status", "getTransactionsSessionStatus", "sessionId", "createTransactionsSession", "totalDuration", "getToastDuration", "addTransactionToast", "apiAddress", "apiTimeout", "networkSelector", "getState", "response", "axios", "txHash", "address", "getAccount", "batchId", "payload", "group", "tx", "data", "parsedTransactions", "parsedTx", "isGuardianTx", "BATCH_TRANSACTIONS_ID_SEPARATOR", "transactions", "TransactionManager"]
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-BFD5ZJOK.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-GFR6K4DR.mjs";import{a as e}from"./chunk-6D53LH5J.mjs";import{c}from"./chunk-PJWJZHIS.mjs";var y=({transaction:r,userIsReceiver:m,egldLabel:A})=>{let n=r.action,t=n&&n.arguments,a=t&&Array.isArray(t.transfers)?t.transfers:[],p=a.length===0,i=A??"EGLD",o=m?"+":"-",T={assetPrefix:o,type:i,assetTicker:i,assetAmount:e({value:r.value,decimals:String(c)})},l=a.map(s=>({assetPrefix:o,type:s.type,assetTicker:s.ticker,assetImage:s.svgUrl,assetAmount:e(s),assetPrice:g(s)}));return p?[T]:l};export{y as a};
2
- //# sourceMappingURL=chunk-DFSBS3PX.mjs.map
1
+ import{a as e}from"./chunk-6D53LH5J.mjs";import{a as g}from"./chunk-GFR6K4DR.mjs";import{c}from"./chunk-PJWJZHIS.mjs";var y=({transaction:r,userIsReceiver:m,egldLabel:A})=>{let n=r.action,t=n&&n.arguments,a=t&&Array.isArray(t.transfers)?t.transfers:[],p=a.length===0,i=A??"EGLD",o=m?"+":"-",T={assetPrefix:o,type:i,assetTicker:i,assetAmount:e({value:r.value,decimals:String(c)})},l=a.map(s=>({assetPrefix:o,type:s.type,assetTicker:s.ticker,assetImage:s.svgUrl,assetAmount:e(s),assetPrice:g(s)}));return p?[T]:l};export{y as a};
2
+ //# sourceMappingURL=chunk-BHWSBAMZ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-FKUMHDP5.mjs";import{a as e}from"./chunk-D6CXZV4Y.mjs";import{d as s}from"./chunk-V5ZSFCKJ.mjs";import{s as i}from"./chunk-2QIUCSYX.mjs";var c=class{constructor(r){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async r=>{if(!this._login)throw new Error("Provider is not initialized.");let o=await this._login(r);if(!o?.address)throw new Error("Provider is not initialized.");return{...o,address:o.address,signature:o.signature??""}};this.initializeAddress=()=>{if(this.address)return;let r=e();r&&(this.address=r)};this.cancelAction=void 0;this.address=r??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(r,o){throw new Error("Method not implemented.")}async login(r){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let o=new AbortController;this.loginAbortController=o;let n=o.signal;try{let t=new Promise((m,p)=>{n.addEventListener("abort",()=>{p(new Error("Login cancelled"))})}),d=await Promise.race([this.loginOperation(r),t]);return this.loginAbortController=null,d}catch(t){throw this.loginAbortController=null,t}}async initSignState(){if(s(i())?.isSigningUiEnabled===!1)return{onClose:async()=>({}),manager:null};let{onClose:o,manager:n}=await l({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return n.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),n.updateData({name:a[t],type:t}),{onClose:o,manager:n}}};export{c as a};
2
+ //# sourceMappingURL=chunk-BJSQMG6V.mjs.map