@multiversx/sdk-dapp 5.0.0-alpha.8 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (844) hide show
  1. package/README.md +80 -39
  2. package/out/__chunks__/{chunk-QFWMIF3L.mjs → chunk-254WMLVS.mjs} +2 -2
  3. package/out/__chunks__/{chunk-IXJOO5U4.mjs → chunk-266T724O.mjs} +2 -2
  4. package/out/__chunks__/{chunk-2KAOFKX4.mjs → chunk-2EFXW7IG.mjs} +2 -2
  5. package/out/__chunks__/{chunk-2KAOFKX4.mjs.map → chunk-2EFXW7IG.mjs.map} +1 -1
  6. package/out/__chunks__/{chunk-Y574J2OK.mjs → chunk-2S5FRZJR.mjs} +2 -2
  7. package/out/__chunks__/chunk-2S5FRZJR.mjs.map +7 -0
  8. package/out/__chunks__/chunk-2SIHYJET.mjs +2 -0
  9. package/out/__chunks__/chunk-2SIHYJET.mjs.map +7 -0
  10. package/out/__chunks__/{chunk-675ZW4IF.mjs → chunk-2SOS3KAT.mjs} +2 -2
  11. package/out/__chunks__/{chunk-QYYNCJPD.mjs → chunk-3MWXXTQQ.mjs} +2 -2
  12. package/out/__chunks__/chunk-3NFKZZ7W.mjs +2 -0
  13. package/out/__chunks__/{chunk-KY7KOSJJ.mjs.map → chunk-3NFKZZ7W.mjs.map} +3 -3
  14. package/out/__chunks__/chunk-3ZEUVYQF.mjs +2 -0
  15. package/out/__chunks__/chunk-3ZEUVYQF.mjs.map +7 -0
  16. package/out/__chunks__/{chunk-OTQRFI3T.mjs → chunk-42LFLNPA.mjs} +2 -2
  17. package/out/__chunks__/chunk-4AKPP7B3.mjs +2 -0
  18. package/out/__chunks__/{chunk-4YETXBJD.mjs → chunk-4QDHGYT4.mjs} +2 -2
  19. package/out/__chunks__/{chunk-4YETXBJD.mjs.map → chunk-4QDHGYT4.mjs.map} +2 -2
  20. package/out/__chunks__/{chunk-RVW2ZWCR.mjs → chunk-4TZC3NF3.mjs} +2 -2
  21. package/out/__chunks__/{chunk-MHCIV2K5.mjs → chunk-4XP7BVJD.mjs} +2 -2
  22. package/out/__chunks__/chunk-4YU2DWHA.mjs +2 -0
  23. package/out/__chunks__/chunk-4YU2DWHA.mjs.map +7 -0
  24. package/out/__chunks__/chunk-4YZQBDUE.mjs +2 -0
  25. package/out/__chunks__/chunk-4ZZJX7E7.mjs +2 -0
  26. package/out/__chunks__/chunk-5LB2KNTP.mjs +2 -0
  27. package/out/__chunks__/chunk-5LB2KNTP.mjs.map +7 -0
  28. package/out/__chunks__/chunk-5OM6KD5S.mjs +2 -0
  29. package/out/__chunks__/chunk-6D2RBTVV.mjs +2 -0
  30. package/out/__chunks__/chunk-6D2RBTVV.mjs.map +7 -0
  31. package/out/__chunks__/chunk-6G7ATMU7.mjs +2 -0
  32. package/out/__chunks__/chunk-6GNNYFMN.mjs +2 -0
  33. package/out/__chunks__/chunk-6JM4DPOH.mjs +2 -0
  34. package/out/__chunks__/{chunk-IEJTMYFW.mjs.map → chunk-6JM4DPOH.mjs.map} +3 -3
  35. package/out/__chunks__/{chunk-K3WBBSXJ.mjs → chunk-6P7EXGAB.mjs} +2 -2
  36. package/out/__chunks__/{chunk-JENO4O6P.mjs → chunk-6RGWVDNQ.mjs} +2 -2
  37. package/out/__chunks__/chunk-6UZHM5LW.mjs +2 -0
  38. package/out/__chunks__/chunk-6UZHM5LW.mjs.map +7 -0
  39. package/out/__chunks__/chunk-6ZL2QC74.mjs +2 -0
  40. package/out/__chunks__/chunk-745QCLQC.mjs +2 -0
  41. package/out/__chunks__/chunk-745QCLQC.mjs.map +7 -0
  42. package/out/__chunks__/{chunk-TYYA6E7F.mjs → chunk-7BP53CXF.mjs} +2 -2
  43. package/out/__chunks__/{chunk-J4MZNYDR.mjs → chunk-ABHYXD3U.mjs} +2 -2
  44. package/out/__chunks__/{chunk-GZAY7BOI.mjs → chunk-AF2QSDSV.mjs} +2 -2
  45. package/out/__chunks__/{chunk-PDT22D2C.mjs → chunk-AV4HSXYZ.mjs} +2 -2
  46. package/out/__chunks__/{chunk-3OKWBJFM.mjs → chunk-B2RDSGON.mjs} +2 -2
  47. package/out/__chunks__/{chunk-TWWYWBJH.mjs → chunk-B7ZKW5ML.mjs} +2 -2
  48. package/out/__chunks__/{chunk-FMUDQBZE.mjs → chunk-BETSOJFK.mjs} +2 -2
  49. package/out/__chunks__/chunk-BG6QTPZ4.mjs +2 -0
  50. package/out/__chunks__/chunk-BG6QTPZ4.mjs.map +7 -0
  51. package/out/__chunks__/{chunk-C4CJOZ4L.mjs → chunk-BHAZ2W52.mjs} +2 -2
  52. package/out/__chunks__/{chunk-TO3DGAQU.mjs → chunk-BOAJJ4FX.mjs} +2 -2
  53. package/out/__chunks__/chunk-BOAJJ4FX.mjs.map +7 -0
  54. package/out/__chunks__/{chunk-PRULMJH7.mjs → chunk-BQ2I655N.mjs} +2 -2
  55. package/out/__chunks__/{chunk-KMFYDHOY.mjs → chunk-BRBIUWAW.mjs} +2 -2
  56. package/out/__chunks__/{chunk-53BZNNVL.mjs → chunk-BVLXVOIC.mjs} +2 -2
  57. package/out/__chunks__/{chunk-53BZNNVL.mjs.map → chunk-BVLXVOIC.mjs.map} +2 -2
  58. package/out/__chunks__/chunk-CAA4VJRH.mjs +2 -0
  59. package/out/__chunks__/{chunk-QD3CFFVT.mjs.map → chunk-CAA4VJRH.mjs.map} +3 -3
  60. package/out/__chunks__/chunk-CBF72LQF.mjs +2 -0
  61. package/out/__chunks__/chunk-CIY7IH2N.mjs +2 -0
  62. package/out/__chunks__/{chunk-GVKHWWIS.mjs → chunk-CJQAA4EP.mjs} +2 -2
  63. package/out/__chunks__/chunk-CKTFPRJS.mjs +2 -0
  64. package/out/__chunks__/chunk-CKTFPRJS.mjs.map +7 -0
  65. package/out/__chunks__/chunk-CVPP4HQE.mjs +2 -0
  66. package/out/__chunks__/chunk-CVPP4HQE.mjs.map +7 -0
  67. package/out/__chunks__/chunk-CYCS3K6Q.mjs +2 -0
  68. package/out/__chunks__/{chunk-SUN3MVLZ.mjs.map → chunk-CYCS3K6Q.mjs.map} +2 -2
  69. package/out/__chunks__/chunk-D5SD7UPB.mjs +2 -0
  70. package/out/__chunks__/chunk-D5SD7UPB.mjs.map +7 -0
  71. package/out/__chunks__/chunk-DGYPNF4O.mjs +2 -0
  72. package/out/__chunks__/{chunk-SNKFFCSF.mjs → chunk-DHPD6E7P.mjs} +2 -2
  73. package/out/__chunks__/{chunk-M6ATGCOM.mjs → chunk-DNHKXKYY.mjs} +2 -2
  74. package/out/__chunks__/{chunk-OF6HBWFR.mjs → chunk-DV3XIKOX.mjs} +2 -2
  75. package/out/__chunks__/chunk-E7BYYSVM.mjs +2 -0
  76. package/out/__chunks__/{chunk-4I2FE6NE.mjs → chunk-EQEYL6AE.mjs} +2 -2
  77. package/out/__chunks__/{chunk-OOPHCYRC.mjs → chunk-FAOCLLIW.mjs} +2 -2
  78. package/out/__chunks__/chunk-FEFZKA2B.mjs +2 -0
  79. package/out/__chunks__/{chunk-2AAKENSP.mjs → chunk-FIVH6RKU.mjs} +2 -2
  80. package/out/__chunks__/chunk-FMQYLMTU.mjs +2 -0
  81. package/out/__chunks__/chunk-FMQYLMTU.mjs.map +7 -0
  82. package/out/__chunks__/{chunk-RIQNG4I7.mjs → chunk-FSCOQWQN.mjs} +2 -2
  83. package/out/__chunks__/{chunk-3JNON2SM.mjs → chunk-FZFKEGPM.mjs} +2 -2
  84. package/out/__chunks__/{chunk-55RBZAD6.mjs → chunk-GFTTAANM.mjs} +2 -2
  85. package/out/__chunks__/{chunk-K7WAPWQA.mjs → chunk-GT2HLNE7.mjs} +2 -2
  86. package/out/__chunks__/{chunk-CUSKOIRI.mjs → chunk-H7BJSM6C.mjs} +2 -2
  87. package/out/__chunks__/{chunk-HQSB4ISG.mjs → chunk-HIUWEH2W.mjs} +2 -2
  88. package/out/__chunks__/{chunk-5L474T4X.mjs → chunk-HUITKXBO.mjs} +2 -2
  89. package/out/__chunks__/{chunk-G7XIDD62.mjs → chunk-HXXZKQRJ.mjs} +2 -2
  90. package/out/__chunks__/chunk-I37JLMZH.mjs +2 -0
  91. package/out/__chunks__/chunk-I6BXGQLQ.mjs +2 -0
  92. package/out/__chunks__/chunk-I6BXGQLQ.mjs.map +7 -0
  93. package/out/__chunks__/chunk-IBSC2B7Q.mjs +2 -0
  94. package/out/__chunks__/{chunk-YWBC3WTI.mjs → chunk-ID7WYMJZ.mjs} +2 -2
  95. package/out/__chunks__/chunk-ID7WYMJZ.mjs.map +7 -0
  96. package/out/__chunks__/chunk-IMPOALRX.mjs +2 -0
  97. package/out/__chunks__/{chunk-RHN3VD44.mjs.map → chunk-IMPOALRX.mjs.map} +2 -2
  98. package/out/__chunks__/{chunk-KUQH2ZBR.mjs → chunk-INWUHEQN.mjs} +2 -2
  99. package/out/__chunks__/{chunk-VQIWENYE.mjs → chunk-ISPOZQQO.mjs} +2 -2
  100. package/out/__chunks__/{chunk-WVB4VPRI.mjs → chunk-IXUYZYD2.mjs} +2 -2
  101. package/out/__chunks__/chunk-J4CPYFK6.mjs +2 -0
  102. package/out/__chunks__/{chunk-K3G3SPRT.mjs.map → chunk-J4CPYFK6.mjs.map} +1 -1
  103. package/out/__chunks__/{chunk-6ZDBHK76.mjs → chunk-JIJSBQEU.mjs} +2 -2
  104. package/out/__chunks__/chunk-JR23TXKP.mjs +2 -0
  105. package/out/__chunks__/chunk-JR23TXKP.mjs.map +7 -0
  106. package/out/__chunks__/{chunk-YMUUG42I.mjs → chunk-JZ7434LN.mjs} +2 -2
  107. package/out/__chunks__/{chunk-QDIXBYIO.mjs → chunk-KN7QMGWV.mjs} +2 -2
  108. package/out/__chunks__/{chunk-QQNYMMUM.mjs → chunk-KSKOSHYV.mjs} +2 -2
  109. package/out/__chunks__/{chunk-J7MZZ2X2.mjs → chunk-KSMSBTTQ.mjs} +2 -2
  110. package/out/__chunks__/chunk-L4QPPHVR.mjs +2 -0
  111. package/out/__chunks__/chunk-L4QPPHVR.mjs.map +7 -0
  112. package/out/__chunks__/{chunk-LNABNVAO.mjs → chunk-LIPGE2RA.mjs} +2 -2
  113. package/out/__chunks__/{chunk-4AOTLDWS.mjs → chunk-LUDF7ZUR.mjs} +2 -2
  114. package/out/__chunks__/{chunk-IYS5W63R.mjs → chunk-MRV6OG7P.mjs} +2 -2
  115. package/out/__chunks__/chunk-N2RYRHHL.mjs +2 -0
  116. package/out/__chunks__/{chunk-3Z3DQFG6.mjs → chunk-NJPTQNCT.mjs} +2 -2
  117. package/out/__chunks__/chunk-NPZ5PO2W.mjs +2 -0
  118. package/out/__chunks__/chunk-NQ6SJRHZ.mjs +2 -0
  119. package/out/__chunks__/chunk-O2DO3WJJ.mjs +2 -0
  120. package/out/__chunks__/chunk-O2DO3WJJ.mjs.map +7 -0
  121. package/out/__chunks__/{chunk-73EXR25L.mjs → chunk-O3V4TGXK.mjs} +2 -2
  122. package/out/__chunks__/{chunk-ZMEIT65B.mjs → chunk-OD4ANAAQ.mjs} +2 -2
  123. package/out/__chunks__/chunk-OZ4ZZI3H.mjs +2 -0
  124. package/out/__chunks__/{chunk-IEJARRBP.mjs.map → chunk-OZ4ZZI3H.mjs.map} +2 -2
  125. package/out/__chunks__/chunk-P32DZ2CO.mjs +2 -0
  126. package/out/__chunks__/{chunk-45WVS4H5.mjs.map → chunk-P32DZ2CO.mjs.map} +2 -2
  127. package/out/__chunks__/{chunk-BEUXUWCR.mjs → chunk-P3BXXGQA.mjs} +2 -2
  128. package/out/__chunks__/chunk-PHNC5JMP.mjs +2 -0
  129. package/out/__chunks__/chunk-PHNC5JMP.mjs.map +7 -0
  130. package/out/__chunks__/{chunk-5AR7YU5K.mjs → chunk-PJDJEPY2.mjs} +2 -2
  131. package/out/__chunks__/chunk-QJGFIK7H.mjs +2 -0
  132. package/out/__chunks__/chunk-QJGFIK7H.mjs.map +7 -0
  133. package/out/__chunks__/{chunk-LTF535HP.mjs → chunk-QJSB5NX4.mjs} +2 -2
  134. package/out/__chunks__/{chunk-VIJUIJ4V.mjs → chunk-QSBLXZFC.mjs} +2 -2
  135. package/out/__chunks__/{chunk-U52ITGAN.mjs → chunk-QSYQIJEO.mjs} +2 -2
  136. package/out/__chunks__/{chunk-YEXBSKXL.mjs → chunk-QWV25ZSJ.mjs} +2 -2
  137. package/out/__chunks__/chunk-RBUHL65H.mjs +2 -0
  138. package/out/__chunks__/chunk-RBUHL65H.mjs.map +7 -0
  139. package/out/__chunks__/chunk-RFKBUN7S.mjs +2 -0
  140. package/out/__chunks__/chunk-RFKBUN7S.mjs.map +7 -0
  141. package/out/__chunks__/{chunk-ZHGCNNB5.mjs → chunk-RM4VHHXR.mjs} +2 -2
  142. package/out/__chunks__/{chunk-XW2GCCBZ.mjs → chunk-RRKNYQ6D.mjs} +2 -2
  143. package/out/__chunks__/chunk-RSUHZ7IH.mjs +2 -0
  144. package/out/__chunks__/chunk-RVO7H26H.mjs +2 -0
  145. package/out/__chunks__/chunk-RVO7H26H.mjs.map +7 -0
  146. package/out/__chunks__/{chunk-NHXPNROG.mjs → chunk-S2FQWSUO.mjs} +1 -1
  147. package/out/__chunks__/chunk-S2FQWSUO.mjs.map +7 -0
  148. package/out/__chunks__/{chunk-LKWCLZTU.mjs → chunk-S4WKQEYF.mjs} +2 -2
  149. package/out/__chunks__/chunk-SLH6IQJJ.mjs +2 -0
  150. package/out/__chunks__/chunk-SLH6IQJJ.mjs.map +7 -0
  151. package/out/__chunks__/{chunk-I7ODJJY3.mjs → chunk-TI73UXGG.mjs} +2 -2
  152. package/out/__chunks__/chunk-TNXSVX5O.mjs +2 -0
  153. package/out/__chunks__/chunk-TNXSVX5O.mjs.map +7 -0
  154. package/out/__chunks__/chunk-TQA3JDNV.mjs +2 -0
  155. package/out/__chunks__/chunk-TQA3JDNV.mjs.map +7 -0
  156. package/out/__chunks__/{chunk-RI7FD4HM.mjs → chunk-TSUMQ3HX.mjs} +2 -2
  157. package/out/__chunks__/{chunk-RI7FD4HM.mjs.map → chunk-TSUMQ3HX.mjs.map} +1 -1
  158. package/out/__chunks__/{chunk-3IMDPLG5.mjs → chunk-U34BNBOX.mjs} +2 -2
  159. package/out/__chunks__/{chunk-SPSO2A53.mjs → chunk-U64LDJTG.mjs} +2 -2
  160. package/out/__chunks__/chunk-UAW7SD6P.mjs +2 -0
  161. package/out/__chunks__/{chunk-HR6GP43Q.mjs → chunk-V2C7APME.mjs} +2 -2
  162. package/out/__chunks__/{chunk-PPA7AFVD.mjs → chunk-VFAKQ7NM.mjs} +2 -2
  163. package/out/__chunks__/{chunk-QQ4OPT5A.mjs → chunk-VJ2DAL5M.mjs} +2 -2
  164. package/out/__chunks__/chunk-VQAKIVIO.mjs +2 -0
  165. package/out/__chunks__/chunk-VQAKIVIO.mjs.map +7 -0
  166. package/out/__chunks__/{chunk-SKEL25G3.mjs → chunk-VXLJWKLG.mjs} +2 -2
  167. package/out/__chunks__/chunk-WHEXX3BD.mjs +1 -0
  168. package/out/__chunks__/chunk-WPXNKIUP.mjs +2 -0
  169. package/out/__chunks__/chunk-WPXNKIUP.mjs.map +7 -0
  170. package/out/__chunks__/{chunk-6L56KRO6.mjs → chunk-XPYJSDNF.mjs} +2 -2
  171. package/out/__chunks__/chunk-YA5U6YEL.mjs +2 -0
  172. package/out/__chunks__/{chunk-ZJOTHYI2.mjs → chunk-YB7AHPBR.mjs} +2 -2
  173. package/out/__chunks__/{chunk-AJEWAECH.mjs → chunk-YKRSCVRE.mjs} +2 -2
  174. package/out/__chunks__/chunk-YO3ATAA6.mjs +2 -0
  175. package/out/__chunks__/chunk-YO3ATAA6.mjs.map +7 -0
  176. package/out/__chunks__/{chunk-CTMAC553.mjs → chunk-YTFYVPZO.mjs} +2 -2
  177. package/out/__chunks__/chunk-YUITECZ5.mjs +1 -0
  178. package/out/__chunks__/chunk-Z4OHB36I.mjs +2 -0
  179. package/out/__chunks__/chunk-ZWVYAOKB.mjs +2 -0
  180. package/out/__chunks__/chunk-ZWVYAOKB.mjs.map +7 -0
  181. package/out/__chunks__/{chunk-YAO67FPP.mjs → chunk-ZXIBFH6X.mjs} +2 -2
  182. package/out/__mocks__/accountConfig.mjs +1 -1
  183. package/out/__mocks__/index.mjs +1 -1
  184. package/out/__mocks__/server.mjs +1 -1
  185. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  186. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  187. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  188. package/out/apiCalls/index.mjs +1 -1
  189. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  190. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  191. package/out/apiCalls/tokens/index.mjs +1 -1
  192. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  193. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  194. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  195. package/out/constants/browser.constants.mjs +1 -1
  196. package/out/constants/index.mjs +1 -1
  197. package/out/constants/providerFactory.constants.mjs +1 -1
  198. package/out/constants/storage.constants.mjs +1 -1
  199. package/out/constants/transactions.constants.d.ts +1 -0
  200. package/out/constants/transactions.constants.js +2 -1
  201. package/out/constants/transactions.constants.js.map +1 -1
  202. package/out/constants/transactions.constants.mjs +1 -1
  203. package/out/constants/window.constants.d.ts +1 -0
  204. package/out/constants/window.constants.js +2 -1
  205. package/out/constants/window.constants.js.map +1 -1
  206. package/out/constants/window.constants.mjs +1 -1
  207. package/out/controllers/FormatAmountController/FormatAmountController.mjs +1 -1
  208. package/out/controllers/FormatAmountController/index.mjs +1 -1
  209. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  210. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  211. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  212. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  213. package/out/controllers/index.mjs +1 -1
  214. package/out/index.mjs +1 -1
  215. package/out/lib/sdkDappUtils.d.ts +1 -1
  216. package/out/lib/sdkDappUtils.mjs +1 -1
  217. package/out/lib/sdkWebWalletCrossWindowProvider.d.ts +2 -0
  218. package/out/lib/sdkWebWalletCrossWindowProvider.js +4 -1
  219. package/out/lib/sdkWebWalletCrossWindowProvider.js.map +1 -1
  220. package/out/lib/sdkWebWalletCrossWindowProvider.mjs +1 -1
  221. package/out/managers/LogoutManager/LogoutManager.d.ts +15 -0
  222. package/out/managers/LogoutManager/LogoutManager.js +137 -0
  223. package/out/managers/LogoutManager/LogoutManager.js.map +1 -0
  224. package/out/managers/LogoutManager/LogoutManager.mjs +2 -0
  225. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.d.ts +1 -0
  226. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js +33 -0
  227. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js.map +1 -0
  228. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.mjs +2 -0
  229. package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.d.ts +1 -0
  230. package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js +48 -0
  231. package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js.map +1 -0
  232. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +2 -1
  233. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js +13 -3
  234. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js.map +1 -1
  235. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  236. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  237. package/out/managers/TransactionManager/TransactionManager.d.ts +17 -5
  238. package/out/managers/TransactionManager/TransactionManager.js +18 -1
  239. package/out/managers/TransactionManager/TransactionManager.js.map +1 -1
  240. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  241. package/out/managers/TransactionManager/TransactionManager.types.d.ts +12 -0
  242. package/out/{providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.js → managers/TransactionManager/TransactionManager.types.js} +1 -1
  243. package/out/managers/TransactionManager/TransactionManager.types.js.map +1 -0
  244. package/out/managers/TransactionManager/TransactionManager.types.mjs +1 -0
  245. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  246. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  247. package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
  248. package/out/managers/TransactionManager/helpers/sessionCallbacks.d.ts +7 -0
  249. package/out/managers/TransactionManager/helpers/sessionCallbacks.js +14 -0
  250. package/out/managers/TransactionManager/helpers/sessionCallbacks.js.map +1 -0
  251. package/out/managers/TransactionManager/helpers/sessionCallbacks.mjs +2 -0
  252. package/out/managers/TransactionManager/index.mjs +1 -1
  253. package/out/managers/UnlockPanelManager/UnlockPanelManager.js +1 -3
  254. package/out/managers/UnlockPanelManager/UnlockPanelManager.js.map +1 -1
  255. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  256. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +12 -5
  257. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.js.map +1 -1
  258. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.mjs +1 -1
  259. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  260. package/out/managers/index.mjs +1 -1
  261. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  262. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  263. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.d.ts +0 -1
  264. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js +7 -14
  265. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js.map +1 -1
  266. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  267. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.d.ts +1 -1
  268. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js +1 -1
  269. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js.map +1 -1
  270. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  271. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  272. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.d.ts +1 -1
  273. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  274. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  275. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  276. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  277. package/out/managers/internal/ToastManager/ToastManager.d.ts +6 -4
  278. package/out/managers/internal/ToastManager/ToastManager.js +27 -19
  279. package/out/managers/internal/ToastManager/ToastManager.js.map +1 -1
  280. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  281. package/out/managers/internal/ToastManager/helpers/LifetimeManager.js +1 -1
  282. package/out/managers/internal/ToastManager/helpers/LifetimeManager.js.map +1 -1
  283. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  284. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  285. package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +1 -1
  286. package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
  287. package/out/managers/internal/ToastManager/types/index.mjs +1 -1
  288. package/out/managers/internal/ToastManager/types/toast.types.d.ts +3 -1
  289. package/out/managers/internal/ToastManager/types/toast.types.js +2 -0
  290. package/out/managers/internal/ToastManager/types/toast.types.js.map +1 -1
  291. package/out/managers/internal/ToastManager/types/toast.types.mjs +1 -1
  292. package/out/managers/internal/UIBaseManager/UIBaseManager.d.ts +1 -1
  293. package/out/managers/internal/UIBaseManager/UIBaseManager.js +2 -2
  294. package/out/managers/internal/UIBaseManager/UIBaseManager.js.map +1 -1
  295. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  296. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js +2 -1
  297. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js.map +1 -1
  298. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  299. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  300. package/out/managers/internal/index.mjs +1 -1
  301. package/out/methods/account/getAccount.mjs +1 -1
  302. package/out/methods/account/getAccountInfo.mjs +1 -1
  303. package/out/methods/account/getAddress.mjs +1 -1
  304. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  305. package/out/methods/account/getLatestNonce.mjs +1 -1
  306. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  307. package/out/methods/initApp/initApp.js +21 -23
  308. package/out/methods/initApp/initApp.js.map +1 -1
  309. package/out/methods/initApp/initApp.mjs +1 -1
  310. package/out/methods/initApp/initApp.mjs.map +3 -3
  311. package/out/methods/initApp/initApp.types.d.ts +34 -5
  312. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  313. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  314. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  315. package/out/methods/network/getEgldLabel.mjs +1 -1
  316. package/out/methods/network/getExplorerAddress.mjs +1 -1
  317. package/out/methods/network/getNetworkConfig.mjs +1 -1
  318. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js +27 -10
  319. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js.map +1 -1
  320. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  321. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  322. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  323. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.d.ts +1 -1
  324. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js +7 -2
  325. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js.map +1 -1
  326. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  327. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.d.ts +7 -0
  328. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js +24 -0
  329. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js.map +1 -0
  330. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.mjs +2 -0
  331. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.mjs.map +7 -0
  332. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  333. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  334. package/out/methods/transactions/getFailedTransactions.d.ts +1 -0
  335. package/out/methods/transactions/getFailedTransactions.js +10 -0
  336. package/out/methods/transactions/getFailedTransactions.js.map +1 -0
  337. package/out/methods/transactions/getFailedTransactions.mjs +2 -0
  338. package/out/methods/transactions/getFailedTransactions.mjs.map +7 -0
  339. package/out/methods/transactions/getFailedTransactionsSessions.d.ts +1 -0
  340. package/out/methods/transactions/getFailedTransactionsSessions.js +10 -0
  341. package/out/methods/transactions/getFailedTransactionsSessions.js.map +1 -0
  342. package/out/methods/transactions/getFailedTransactionsSessions.mjs +2 -0
  343. package/out/methods/transactions/getFailedTransactionsSessions.mjs.map +7 -0
  344. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  345. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  346. package/out/methods/transactions/getSuccessfulTransactions.d.ts +1 -0
  347. package/out/methods/transactions/getSuccessfulTransactions.js +10 -0
  348. package/out/methods/transactions/getSuccessfulTransactions.js.map +1 -0
  349. package/out/methods/transactions/getSuccessfulTransactions.mjs +2 -0
  350. package/out/methods/transactions/getSuccessfulTransactions.mjs.map +7 -0
  351. package/out/methods/transactions/getSuccessfulTransactionsSessions.d.ts +1 -0
  352. package/out/methods/transactions/getSuccessfulTransactionsSessions.js +10 -0
  353. package/out/methods/transactions/getSuccessfulTransactionsSessions.js.map +1 -0
  354. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +2 -0
  355. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs.map +7 -0
  356. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  357. package/out/providers/DappProvider/DappProvider.d.ts +1 -2
  358. package/out/providers/DappProvider/DappProvider.js +16 -6
  359. package/out/providers/DappProvider/DappProvider.js.map +1 -1
  360. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  361. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  362. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  363. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  364. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  365. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  366. package/out/providers/DappProvider/helpers/logout/logout.js +1 -7
  367. package/out/providers/DappProvider/helpers/logout/logout.js.map +1 -1
  368. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  369. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  370. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.js +0 -5
  371. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.js.map +1 -1
  372. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  373. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  374. package/out/providers/DappProvider/index.mjs +1 -1
  375. package/out/providers/ProviderFactory.js +10 -8
  376. package/out/providers/ProviderFactory.js.map +1 -1
  377. package/out/providers/ProviderFactory.mjs +1 -1
  378. package/out/providers/helpers/accountProvider.mjs +1 -1
  379. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  380. package/out/providers/helpers/clearInitiatedLogins.js +2 -1
  381. package/out/providers/helpers/clearInitiatedLogins.js.map +1 -1
  382. package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
  383. package/out/providers/helpers/emptyProvider.mjs +1 -1
  384. package/out/providers/helpers/restoreProvider.js +14 -1
  385. package/out/providers/helpers/restoreProvider.js.map +1 -1
  386. package/out/providers/helpers/restoreProvider.mjs +1 -1
  387. package/out/providers/index.mjs +1 -1
  388. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +4 -5
  389. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js.map +1 -1
  390. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  391. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +1 -2
  392. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js +0 -15
  393. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js.map +1 -1
  394. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  395. package/out/providers/strategies/CrossWindowProviderStrategy/index.d.ts +0 -1
  396. package/out/providers/strategies/CrossWindowProviderStrategy/index.js +0 -1
  397. package/out/providers/strategies/CrossWindowProviderStrategy/index.js.map +1 -1
  398. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  399. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +1 -1
  400. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js.map +1 -1
  401. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  402. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  403. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +1 -1
  404. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js.map +1 -1
  405. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  406. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  407. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +1 -1
  408. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js.map +1 -1
  409. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  410. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  411. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  412. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  413. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  414. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  415. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  416. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  417. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  418. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  419. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  420. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  421. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +1 -1
  422. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js +13 -2
  423. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js.map +1 -1
  424. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  425. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  426. package/out/providers/strategies/WalletConnectProviderStrategy/types/index.mjs +1 -1
  427. package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.d.ts +1 -0
  428. package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.mjs +1 -1
  429. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.d.ts +20 -0
  430. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.js +147 -0
  431. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.js.map +1 -0
  432. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +2 -0
  433. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs.map +7 -0
  434. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.d.ts +1 -0
  435. package/out/providers/strategies/{CrossWindowProviderStrategy/types → WebviewProviderStrategy/WebviewClient}/index.js +1 -1
  436. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.js.map +1 -0
  437. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +2 -0
  438. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs.map +7 -0
  439. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +1 -1
  440. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js +11 -2
  441. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js.map +1 -1
  442. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  443. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  444. package/out/providers/strategies/WebviewProviderStrategy/tests/webview.test.js +20 -17
  445. package/out/providers/strategies/WebviewProviderStrategy/tests/webview.test.js.map +1 -1
  446. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  447. package/out/providers/strategies/helpers/index.mjs +1 -1
  448. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  449. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.mjs +1 -1
  450. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  451. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js +1 -1
  452. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js.map +1 -1
  453. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.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/getPpuOptions.mjs +1 -1
  457. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.mjs +1 -1
  458. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js +6 -6
  459. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js.map +1 -1
  460. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  461. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
  462. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +1 -1
  463. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
  464. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.mjs +1 -1
  465. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.js +0 -1
  466. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.js.map +1 -1
  467. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  468. package/out/providers/strategies/helpers/signTransactions/signTransactions.js +27 -20
  469. package/out/providers/strategies/helpers/signTransactions/signTransactions.js.map +1 -1
  470. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  471. package/out/providers/strategies/index.mjs +1 -1
  472. package/out/providers/types/providerFactory.types.d.ts +1 -2
  473. package/out/providers/types/providerFactory.types.js.map +1 -1
  474. package/out/providers/types/providerFactory.types.mjs +1 -1
  475. package/out/react/account/useGetAccount.mjs +1 -1
  476. package/out/react/account/useGetAccountInfo.mjs +1 -1
  477. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  478. package/out/react/account/useGetLatestNonce.mjs +1 -1
  479. package/out/react/index.mjs +1 -1
  480. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  481. package/out/react/network/useGetNetworkConfig.mjs +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.d.ts +1 -0
  485. package/out/react/transactions/useGetFailedTransactions.js +11 -0
  486. package/out/react/transactions/useGetFailedTransactions.js.map +1 -0
  487. package/out/react/transactions/useGetFailedTransactions.mjs +2 -0
  488. package/out/react/transactions/useGetFailedTransactions.mjs.map +7 -0
  489. package/out/react/transactions/useGetFailedTransactionsSessions.d.ts +1 -0
  490. package/out/react/transactions/useGetFailedTransactionsSessions.js +11 -0
  491. package/out/react/transactions/useGetFailedTransactionsSessions.js.map +1 -0
  492. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +2 -0
  493. package/out/react/transactions/useGetFailedTransactionsSessions.mjs.map +7 -0
  494. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  495. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  496. package/out/react/transactions/useGetSuccessfulTransactions.d.ts +1 -0
  497. package/out/react/transactions/useGetSuccessfulTransactions.js +11 -0
  498. package/out/react/transactions/useGetSuccessfulTransactions.js.map +1 -0
  499. package/out/react/transactions/useGetSuccessfulTransactions.mjs +2 -0
  500. package/out/react/transactions/useGetSuccessfulTransactions.mjs.map +7 -0
  501. package/out/react/transactions/useGetSuccessfulTransactionsSessions.d.ts +1 -0
  502. package/out/react/transactions/useGetSuccessfulTransactionsSessions.js +11 -0
  503. package/out/react/transactions/useGetSuccessfulTransactionsSessions.js.map +1 -0
  504. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +2 -0
  505. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs.map +7 -0
  506. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  507. package/out/services/index.mjs +1 -1
  508. package/out/services/nativeAuth/index.mjs +1 -1
  509. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  510. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.d.ts +2 -1
  511. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js +12 -5
  512. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js.map +1 -1
  513. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  514. package/out/services/nativeAuth/methods/index.mjs +1 -1
  515. package/out/services/nativeAuth/nativeAuth.js +6 -8
  516. package/out/services/nativeAuth/nativeAuth.js.map +1 -1
  517. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  518. package/out/store/actions/account/accountActions.mjs +1 -1
  519. package/out/store/actions/account/index.mjs +1 -1
  520. package/out/store/actions/cache/cacheActions.mjs +1 -1
  521. package/out/store/actions/cache/index.mjs +1 -1
  522. package/out/store/actions/config/configActions.d.ts +0 -2
  523. package/out/store/actions/config/configActions.js +1 -5
  524. package/out/store/actions/config/configActions.js.map +1 -1
  525. package/out/store/actions/config/configActions.mjs +1 -1
  526. package/out/store/actions/config/index.mjs +1 -1
  527. package/out/store/actions/index.mjs +1 -1
  528. package/out/store/actions/loginInfo/loginInfoActions.js.map +1 -1
  529. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  530. package/out/store/actions/network/index.mjs +1 -1
  531. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  532. package/out/store/actions/network/networkActions.mjs +1 -1
  533. package/out/store/actions/sharedActions/index.mjs +1 -1
  534. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  535. package/out/store/actions/toasts/index.mjs +1 -1
  536. package/out/store/actions/toasts/toastsActions.d.ts +1 -1
  537. package/out/store/actions/toasts/toastsActions.js +3 -1
  538. package/out/store/actions/toasts/toastsActions.js.map +1 -1
  539. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  540. package/out/store/actions/transactions/transactionsActions.d.ts +6 -4
  541. package/out/store/actions/transactions/transactionsActions.js +16 -7
  542. package/out/store/actions/transactions/transactionsActions.js.map +1 -1
  543. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  544. package/out/store/actions/ui/index.mjs +1 -1
  545. package/out/store/actions/ui/uiActions.mjs +1 -1
  546. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  547. package/out/store/middleware/index.mjs +1 -1
  548. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  549. package/out/store/selectors/accountSelectors.mjs +1 -1
  550. package/out/store/selectors/configSelectors.d.ts +0 -1
  551. package/out/store/selectors/configSelectors.js +1 -5
  552. package/out/store/selectors/configSelectors.js.map +1 -1
  553. package/out/store/selectors/configSelectors.mjs +1 -1
  554. package/out/store/selectors/index.mjs +1 -1
  555. package/out/store/selectors/transactionsSelector.d.ts +2 -0
  556. package/out/store/selectors/transactionsSelector.js +29 -1
  557. package/out/store/selectors/transactionsSelector.js.map +1 -1
  558. package/out/store/selectors/transactionsSelector.mjs +1 -1
  559. package/out/store/slices/account/accountSlice.mjs +1 -1
  560. package/out/store/slices/account/emptyAccount.mjs +1 -1
  561. package/out/store/slices/account/index.mjs +1 -1
  562. package/out/store/slices/config/config.types.d.ts +0 -2
  563. package/out/store/slices/config/configSlice.js +0 -1
  564. package/out/store/slices/config/configSlice.js.map +1 -1
  565. package/out/store/slices/config/configSlice.mjs +1 -1
  566. package/out/store/slices/config/index.mjs +1 -1
  567. package/out/store/slices/index.mjs +1 -1
  568. package/out/store/storage/index.mjs +1 -1
  569. package/out/store/storage/storageCallback.mjs +1 -1
  570. package/out/store/store.mjs +1 -1
  571. package/out/types/index.d.ts +1 -0
  572. package/out/types/index.js +1 -0
  573. package/out/types/index.js.map +1 -1
  574. package/out/types/index.mjs +1 -1
  575. package/out/types/theme.types.d.ts +4 -0
  576. package/out/types/theme.types.js +9 -0
  577. package/out/types/theme.types.js.map +1 -0
  578. package/out/types/theme.types.mjs +2 -0
  579. package/out/types/theme.types.mjs.map +7 -0
  580. package/out/types/transactions.types.d.ts +4 -0
  581. package/out/types/transactions.types.mjs.map +1 -1
  582. package/out/utils/ComponentFactory.d.ts +14 -0
  583. package/out/utils/{createUIElement.js → ComponentFactory.js} +14 -4
  584. package/out/utils/ComponentFactory.js.map +1 -0
  585. package/out/utils/ComponentFactory.mjs +2 -0
  586. package/out/utils/ComponentFactory.mjs.map +7 -0
  587. package/out/utils/account/index.d.ts +1 -0
  588. package/out/utils/account/index.js +1 -0
  589. package/out/utils/account/index.js.map +1 -1
  590. package/out/utils/account/index.mjs +1 -1
  591. package/out/utils/account/refreshAccount.mjs +1 -1
  592. package/out/{core/providers/DappProvider/helpers/login/helpers → utils/account}/refreshNativeAuthTokenLogin.d.ts +2 -2
  593. package/out/{core/providers/DappProvider/helpers/login/helpers → utils/account}/refreshNativeAuthTokenLogin.js +6 -9
  594. package/out/utils/account/refreshNativeAuthTokenLogin.js.map +1 -0
  595. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +2 -0
  596. package/out/utils/account/refreshNativeAuthTokenLogin.mjs.map +7 -0
  597. package/out/utils/decoders/index.mjs +1 -1
  598. package/out/utils/index.d.ts +1 -0
  599. package/out/utils/index.js +1 -0
  600. package/out/utils/index.js.map +1 -1
  601. package/out/utils/index.mjs +1 -1
  602. package/out/utils/operations/trimAmountDecimals.mjs +1 -1
  603. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  604. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  605. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
  606. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.mjs +1 -1
  607. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.mjs +1 -1
  608. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.mjs +1 -1
  609. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.mjs +1 -1
  610. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.mjs +1 -1
  611. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.mjs +1 -1
  612. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +1 -1
  613. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
  614. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  615. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  616. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  617. package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.mjs +1 -1
  618. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  619. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  620. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  621. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  622. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  623. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.mjs +1 -1
  624. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.mjs +1 -1
  625. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  626. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.mjs +1 -1
  627. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.mjs +1 -1
  628. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
  629. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.mjs +1 -1
  630. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  631. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  632. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
  633. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  634. package/out/utils/transactions/index.mjs +1 -1
  635. package/out/utils/validation/index.mjs +1 -1
  636. package/out/utils/validation/isContract.mjs +1 -1
  637. package/out/utils/visual/index.d.ts +1 -0
  638. package/out/utils/visual/index.js +18 -0
  639. package/out/utils/visual/index.js.map +1 -0
  640. package/out/utils/visual/index.mjs +2 -0
  641. package/out/utils/visual/index.mjs.map +7 -0
  642. package/out/utils/visual/switchTheme.d.ts +2 -0
  643. package/out/utils/visual/switchTheme.js +15 -0
  644. package/out/utils/visual/switchTheme.js.map +1 -0
  645. package/out/utils/visual/switchTheme.mjs +2 -0
  646. package/out/utils/visual/switchTheme.mjs.map +7 -0
  647. package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
  648. package/out/utils/window/getIsInIframe.mjs +1 -1
  649. package/out/utils/window/getWindowLocation.js +7 -1
  650. package/out/utils/window/getWindowLocation.js.map +1 -1
  651. package/out/utils/window/getWindowLocation.mjs +1 -1
  652. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  653. package/out/utils/window/index.mjs +1 -1
  654. package/package.json +16 -15
  655. package/out/__chunks__/chunk-2G6DWPQU.mjs +0 -2
  656. package/out/__chunks__/chunk-2G6DWPQU.mjs.map +0 -7
  657. package/out/__chunks__/chunk-2GSNHNKW.mjs +0 -1
  658. package/out/__chunks__/chunk-2WB5WD5K.mjs +0 -2
  659. package/out/__chunks__/chunk-2WB5WD5K.mjs.map +0 -7
  660. package/out/__chunks__/chunk-35YS2DV5.mjs +0 -2
  661. package/out/__chunks__/chunk-35YS2DV5.mjs.map +0 -7
  662. package/out/__chunks__/chunk-3IXTYHAU.mjs +0 -2
  663. package/out/__chunks__/chunk-3IXTYHAU.mjs.map +0 -7
  664. package/out/__chunks__/chunk-45WVS4H5.mjs +0 -2
  665. package/out/__chunks__/chunk-6BGPH7MV.mjs +0 -2
  666. package/out/__chunks__/chunk-6BGPH7MV.mjs.map +0 -7
  667. package/out/__chunks__/chunk-7QCBLUWB.mjs +0 -2
  668. package/out/__chunks__/chunk-7QCBLUWB.mjs.map +0 -7
  669. package/out/__chunks__/chunk-AC2L3PV3.mjs +0 -2
  670. package/out/__chunks__/chunk-AJJVMOJF.mjs +0 -2
  671. package/out/__chunks__/chunk-AJJVMOJF.mjs.map +0 -7
  672. package/out/__chunks__/chunk-BVKOA6WH.mjs +0 -2
  673. package/out/__chunks__/chunk-BVKOA6WH.mjs.map +0 -7
  674. package/out/__chunks__/chunk-BXUBAIBU.mjs +0 -2
  675. package/out/__chunks__/chunk-CO3V5DOG.mjs +0 -1
  676. package/out/__chunks__/chunk-CT6RFJJM.mjs +0 -2
  677. package/out/__chunks__/chunk-DTI4TQ2I.mjs +0 -2
  678. package/out/__chunks__/chunk-EPMXW255.mjs +0 -2
  679. package/out/__chunks__/chunk-EVL6UUJJ.mjs +0 -2
  680. package/out/__chunks__/chunk-F3AMNJ5K.mjs +0 -2
  681. package/out/__chunks__/chunk-F3AMNJ5K.mjs.map +0 -7
  682. package/out/__chunks__/chunk-FFNSZC37.mjs +0 -2
  683. package/out/__chunks__/chunk-FFNSZC37.mjs.map +0 -7
  684. package/out/__chunks__/chunk-FLC6QSZB.mjs +0 -1
  685. package/out/__chunks__/chunk-IEJARRBP.mjs +0 -2
  686. package/out/__chunks__/chunk-IEJTMYFW.mjs +0 -2
  687. package/out/__chunks__/chunk-IJEPA3W2.mjs +0 -2
  688. package/out/__chunks__/chunk-IJEPA3W2.mjs.map +0 -7
  689. package/out/__chunks__/chunk-IMGZJVC6.mjs +0 -2
  690. package/out/__chunks__/chunk-IMGZJVC6.mjs.map +0 -7
  691. package/out/__chunks__/chunk-JR3FBBRR.mjs +0 -2
  692. package/out/__chunks__/chunk-JR3FBBRR.mjs.map +0 -7
  693. package/out/__chunks__/chunk-K3G3SPRT.mjs +0 -2
  694. package/out/__chunks__/chunk-KY7KOSJJ.mjs +0 -2
  695. package/out/__chunks__/chunk-LETBBKOK.mjs +0 -2
  696. package/out/__chunks__/chunk-LRHRFWQ4.mjs +0 -2
  697. package/out/__chunks__/chunk-LRHRFWQ4.mjs.map +0 -7
  698. package/out/__chunks__/chunk-M6IVW6AN.mjs +0 -2
  699. package/out/__chunks__/chunk-M7R5JSEH.mjs +0 -2
  700. package/out/__chunks__/chunk-MAT2WHLY.mjs +0 -2
  701. package/out/__chunks__/chunk-NHXPNROG.mjs.map +0 -7
  702. package/out/__chunks__/chunk-OH6SHSQZ.mjs +0 -2
  703. package/out/__chunks__/chunk-OLYQNOEP.mjs +0 -2
  704. package/out/__chunks__/chunk-P5YASUQH.mjs +0 -2
  705. package/out/__chunks__/chunk-QD3CFFVT.mjs +0 -2
  706. package/out/__chunks__/chunk-RHN3VD44.mjs +0 -2
  707. package/out/__chunks__/chunk-RIXZPR7R.mjs +0 -2
  708. package/out/__chunks__/chunk-SUN3MVLZ.mjs +0 -2
  709. package/out/__chunks__/chunk-TO3DGAQU.mjs.map +0 -7
  710. package/out/__chunks__/chunk-UQXXWVTL.mjs +0 -2
  711. package/out/__chunks__/chunk-UQXXWVTL.mjs.map +0 -7
  712. package/out/__chunks__/chunk-UWNXZP4Z.mjs +0 -2
  713. package/out/__chunks__/chunk-V7QVBIYB.mjs +0 -2
  714. package/out/__chunks__/chunk-V7QVBIYB.mjs.map +0 -7
  715. package/out/__chunks__/chunk-V7ZVI2WS.mjs +0 -2
  716. package/out/__chunks__/chunk-VK47SZJ2.mjs +0 -2
  717. package/out/__chunks__/chunk-VPZ3QEMD.mjs +0 -2
  718. package/out/__chunks__/chunk-W5W6YGA5.mjs +0 -2
  719. package/out/__chunks__/chunk-WGH5AERA.mjs +0 -2
  720. package/out/__chunks__/chunk-X5OSPJKQ.mjs +0 -2
  721. package/out/__chunks__/chunk-X5OSPJKQ.mjs.map +0 -7
  722. package/out/__chunks__/chunk-XPX7PTGI.mjs +0 -2
  723. package/out/__chunks__/chunk-XPX7PTGI.mjs.map +0 -7
  724. package/out/__chunks__/chunk-Y574J2OK.mjs.map +0 -7
  725. package/out/__chunks__/chunk-Y62KWXTT.mjs +0 -2
  726. package/out/__chunks__/chunk-YB2E5WOO.mjs +0 -2
  727. package/out/__chunks__/chunk-YB2E5WOO.mjs.map +0 -7
  728. package/out/__chunks__/chunk-YMME2BFO.mjs +0 -2
  729. package/out/__chunks__/chunk-YMME2BFO.mjs.map +0 -7
  730. package/out/__chunks__/chunk-YRHMGKLM.mjs +0 -2
  731. package/out/__chunks__/chunk-YRHMGKLM.mjs.map +0 -7
  732. package/out/__chunks__/chunk-YWBC3WTI.mjs.map +0 -7
  733. package/out/__chunks__/chunk-ZOGJGVPP.mjs +0 -2
  734. package/out/__chunks__/chunk-ZOGJGVPP.mjs.map +0 -7
  735. package/out/__chunks__/chunk-ZZOHAMTX.mjs +0 -2
  736. package/out/__chunks__/chunk-ZZOHAMTX.mjs.map +0 -7
  737. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.js.map +0 -1
  738. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs +0 -2
  739. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs.map +0 -7
  740. package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.d.ts +0 -6
  741. package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.js.map +0 -1
  742. package/out/providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.mjs +0 -2
  743. package/out/providers/strategies/CrossWindowProviderStrategy/types/index.d.ts +0 -1
  744. package/out/providers/strategies/CrossWindowProviderStrategy/types/index.js.map +0 -1
  745. package/out/providers/strategies/CrossWindowProviderStrategy/types/index.mjs +0 -2
  746. package/out/utils/createUIElement.d.ts +0 -9
  747. package/out/utils/createUIElement.js.map +0 -1
  748. package/out/utils/createUIElement.mjs +0 -2
  749. /package/out/__chunks__/{chunk-QFWMIF3L.mjs.map → chunk-254WMLVS.mjs.map} +0 -0
  750. /package/out/__chunks__/{chunk-IXJOO5U4.mjs.map → chunk-266T724O.mjs.map} +0 -0
  751. /package/out/__chunks__/{chunk-675ZW4IF.mjs.map → chunk-2SOS3KAT.mjs.map} +0 -0
  752. /package/out/__chunks__/{chunk-QYYNCJPD.mjs.map → chunk-3MWXXTQQ.mjs.map} +0 -0
  753. /package/out/__chunks__/{chunk-OTQRFI3T.mjs.map → chunk-42LFLNPA.mjs.map} +0 -0
  754. /package/out/__chunks__/{chunk-DTI4TQ2I.mjs.map → chunk-4AKPP7B3.mjs.map} +0 -0
  755. /package/out/__chunks__/{chunk-RVW2ZWCR.mjs.map → chunk-4TZC3NF3.mjs.map} +0 -0
  756. /package/out/__chunks__/{chunk-MHCIV2K5.mjs.map → chunk-4XP7BVJD.mjs.map} +0 -0
  757. /package/out/__chunks__/{chunk-MAT2WHLY.mjs.map → chunk-4YZQBDUE.mjs.map} +0 -0
  758. /package/out/__chunks__/{chunk-W5W6YGA5.mjs.map → chunk-4ZZJX7E7.mjs.map} +0 -0
  759. /package/out/__chunks__/{chunk-AC2L3PV3.mjs.map → chunk-5OM6KD5S.mjs.map} +0 -0
  760. /package/out/__chunks__/{chunk-OLYQNOEP.mjs.map → chunk-6G7ATMU7.mjs.map} +0 -0
  761. /package/out/__chunks__/{chunk-Y62KWXTT.mjs.map → chunk-6GNNYFMN.mjs.map} +0 -0
  762. /package/out/__chunks__/{chunk-K3WBBSXJ.mjs.map → chunk-6P7EXGAB.mjs.map} +0 -0
  763. /package/out/__chunks__/{chunk-JENO4O6P.mjs.map → chunk-6RGWVDNQ.mjs.map} +0 -0
  764. /package/out/__chunks__/{chunk-OH6SHSQZ.mjs.map → chunk-6ZL2QC74.mjs.map} +0 -0
  765. /package/out/__chunks__/{chunk-TYYA6E7F.mjs.map → chunk-7BP53CXF.mjs.map} +0 -0
  766. /package/out/__chunks__/{chunk-J4MZNYDR.mjs.map → chunk-ABHYXD3U.mjs.map} +0 -0
  767. /package/out/__chunks__/{chunk-GZAY7BOI.mjs.map → chunk-AF2QSDSV.mjs.map} +0 -0
  768. /package/out/__chunks__/{chunk-PDT22D2C.mjs.map → chunk-AV4HSXYZ.mjs.map} +0 -0
  769. /package/out/__chunks__/{chunk-3OKWBJFM.mjs.map → chunk-B2RDSGON.mjs.map} +0 -0
  770. /package/out/__chunks__/{chunk-TWWYWBJH.mjs.map → chunk-B7ZKW5ML.mjs.map} +0 -0
  771. /package/out/__chunks__/{chunk-FMUDQBZE.mjs.map → chunk-BETSOJFK.mjs.map} +0 -0
  772. /package/out/__chunks__/{chunk-C4CJOZ4L.mjs.map → chunk-BHAZ2W52.mjs.map} +0 -0
  773. /package/out/__chunks__/{chunk-PRULMJH7.mjs.map → chunk-BQ2I655N.mjs.map} +0 -0
  774. /package/out/__chunks__/{chunk-KMFYDHOY.mjs.map → chunk-BRBIUWAW.mjs.map} +0 -0
  775. /package/out/__chunks__/{chunk-WGH5AERA.mjs.map → chunk-CBF72LQF.mjs.map} +0 -0
  776. /package/out/__chunks__/{chunk-M7R5JSEH.mjs.map → chunk-CIY7IH2N.mjs.map} +0 -0
  777. /package/out/__chunks__/{chunk-GVKHWWIS.mjs.map → chunk-CJQAA4EP.mjs.map} +0 -0
  778. /package/out/__chunks__/{chunk-CT6RFJJM.mjs.map → chunk-DGYPNF4O.mjs.map} +0 -0
  779. /package/out/__chunks__/{chunk-SNKFFCSF.mjs.map → chunk-DHPD6E7P.mjs.map} +0 -0
  780. /package/out/__chunks__/{chunk-M6ATGCOM.mjs.map → chunk-DNHKXKYY.mjs.map} +0 -0
  781. /package/out/__chunks__/{chunk-OF6HBWFR.mjs.map → chunk-DV3XIKOX.mjs.map} +0 -0
  782. /package/out/__chunks__/{chunk-P5YASUQH.mjs.map → chunk-E7BYYSVM.mjs.map} +0 -0
  783. /package/out/__chunks__/{chunk-4I2FE6NE.mjs.map → chunk-EQEYL6AE.mjs.map} +0 -0
  784. /package/out/__chunks__/{chunk-OOPHCYRC.mjs.map → chunk-FAOCLLIW.mjs.map} +0 -0
  785. /package/out/__chunks__/{chunk-BXUBAIBU.mjs.map → chunk-FEFZKA2B.mjs.map} +0 -0
  786. /package/out/__chunks__/{chunk-2AAKENSP.mjs.map → chunk-FIVH6RKU.mjs.map} +0 -0
  787. /package/out/__chunks__/{chunk-RIQNG4I7.mjs.map → chunk-FSCOQWQN.mjs.map} +0 -0
  788. /package/out/__chunks__/{chunk-3JNON2SM.mjs.map → chunk-FZFKEGPM.mjs.map} +0 -0
  789. /package/out/__chunks__/{chunk-55RBZAD6.mjs.map → chunk-GFTTAANM.mjs.map} +0 -0
  790. /package/out/__chunks__/{chunk-K7WAPWQA.mjs.map → chunk-GT2HLNE7.mjs.map} +0 -0
  791. /package/out/__chunks__/{chunk-CUSKOIRI.mjs.map → chunk-H7BJSM6C.mjs.map} +0 -0
  792. /package/out/__chunks__/{chunk-HQSB4ISG.mjs.map → chunk-HIUWEH2W.mjs.map} +0 -0
  793. /package/out/__chunks__/{chunk-5L474T4X.mjs.map → chunk-HUITKXBO.mjs.map} +0 -0
  794. /package/out/__chunks__/{chunk-G7XIDD62.mjs.map → chunk-HXXZKQRJ.mjs.map} +0 -0
  795. /package/out/__chunks__/{chunk-RIXZPR7R.mjs.map → chunk-I37JLMZH.mjs.map} +0 -0
  796. /package/out/__chunks__/{chunk-VK47SZJ2.mjs.map → chunk-IBSC2B7Q.mjs.map} +0 -0
  797. /package/out/__chunks__/{chunk-KUQH2ZBR.mjs.map → chunk-INWUHEQN.mjs.map} +0 -0
  798. /package/out/__chunks__/{chunk-VQIWENYE.mjs.map → chunk-ISPOZQQO.mjs.map} +0 -0
  799. /package/out/__chunks__/{chunk-WVB4VPRI.mjs.map → chunk-IXUYZYD2.mjs.map} +0 -0
  800. /package/out/__chunks__/{chunk-6ZDBHK76.mjs.map → chunk-JIJSBQEU.mjs.map} +0 -0
  801. /package/out/__chunks__/{chunk-YMUUG42I.mjs.map → chunk-JZ7434LN.mjs.map} +0 -0
  802. /package/out/__chunks__/{chunk-QDIXBYIO.mjs.map → chunk-KN7QMGWV.mjs.map} +0 -0
  803. /package/out/__chunks__/{chunk-QQNYMMUM.mjs.map → chunk-KSKOSHYV.mjs.map} +0 -0
  804. /package/out/__chunks__/{chunk-J7MZZ2X2.mjs.map → chunk-KSMSBTTQ.mjs.map} +0 -0
  805. /package/out/__chunks__/{chunk-LNABNVAO.mjs.map → chunk-LIPGE2RA.mjs.map} +0 -0
  806. /package/out/__chunks__/{chunk-4AOTLDWS.mjs.map → chunk-LUDF7ZUR.mjs.map} +0 -0
  807. /package/out/__chunks__/{chunk-IYS5W63R.mjs.map → chunk-MRV6OG7P.mjs.map} +0 -0
  808. /package/out/__chunks__/{chunk-UWNXZP4Z.mjs.map → chunk-N2RYRHHL.mjs.map} +0 -0
  809. /package/out/__chunks__/{chunk-3Z3DQFG6.mjs.map → chunk-NJPTQNCT.mjs.map} +0 -0
  810. /package/out/__chunks__/{chunk-M6IVW6AN.mjs.map → chunk-NPZ5PO2W.mjs.map} +0 -0
  811. /package/out/__chunks__/{chunk-EPMXW255.mjs.map → chunk-NQ6SJRHZ.mjs.map} +0 -0
  812. /package/out/__chunks__/{chunk-73EXR25L.mjs.map → chunk-O3V4TGXK.mjs.map} +0 -0
  813. /package/out/__chunks__/{chunk-ZMEIT65B.mjs.map → chunk-OD4ANAAQ.mjs.map} +0 -0
  814. /package/out/__chunks__/{chunk-BEUXUWCR.mjs.map → chunk-P3BXXGQA.mjs.map} +0 -0
  815. /package/out/__chunks__/{chunk-5AR7YU5K.mjs.map → chunk-PJDJEPY2.mjs.map} +0 -0
  816. /package/out/__chunks__/{chunk-LTF535HP.mjs.map → chunk-QJSB5NX4.mjs.map} +0 -0
  817. /package/out/__chunks__/{chunk-VIJUIJ4V.mjs.map → chunk-QSBLXZFC.mjs.map} +0 -0
  818. /package/out/__chunks__/{chunk-U52ITGAN.mjs.map → chunk-QSYQIJEO.mjs.map} +0 -0
  819. /package/out/__chunks__/{chunk-YEXBSKXL.mjs.map → chunk-QWV25ZSJ.mjs.map} +0 -0
  820. /package/out/__chunks__/{chunk-ZHGCNNB5.mjs.map → chunk-RM4VHHXR.mjs.map} +0 -0
  821. /package/out/__chunks__/{chunk-XW2GCCBZ.mjs.map → chunk-RRKNYQ6D.mjs.map} +0 -0
  822. /package/out/__chunks__/{chunk-EVL6UUJJ.mjs.map → chunk-RSUHZ7IH.mjs.map} +0 -0
  823. /package/out/__chunks__/{chunk-LKWCLZTU.mjs.map → chunk-S4WKQEYF.mjs.map} +0 -0
  824. /package/out/__chunks__/{chunk-I7ODJJY3.mjs.map → chunk-TI73UXGG.mjs.map} +0 -0
  825. /package/out/__chunks__/{chunk-3IMDPLG5.mjs.map → chunk-U34BNBOX.mjs.map} +0 -0
  826. /package/out/__chunks__/{chunk-SPSO2A53.mjs.map → chunk-U64LDJTG.mjs.map} +0 -0
  827. /package/out/__chunks__/{chunk-LETBBKOK.mjs.map → chunk-UAW7SD6P.mjs.map} +0 -0
  828. /package/out/__chunks__/{chunk-HR6GP43Q.mjs.map → chunk-V2C7APME.mjs.map} +0 -0
  829. /package/out/__chunks__/{chunk-PPA7AFVD.mjs.map → chunk-VFAKQ7NM.mjs.map} +0 -0
  830. /package/out/__chunks__/{chunk-QQ4OPT5A.mjs.map → chunk-VJ2DAL5M.mjs.map} +0 -0
  831. /package/out/__chunks__/{chunk-SKEL25G3.mjs.map → chunk-VXLJWKLG.mjs.map} +0 -0
  832. /package/out/__chunks__/{chunk-2GSNHNKW.mjs.map → chunk-WHEXX3BD.mjs.map} +0 -0
  833. /package/out/__chunks__/{chunk-6L56KRO6.mjs.map → chunk-XPYJSDNF.mjs.map} +0 -0
  834. /package/out/__chunks__/{chunk-VPZ3QEMD.mjs.map → chunk-YA5U6YEL.mjs.map} +0 -0
  835. /package/out/__chunks__/{chunk-ZJOTHYI2.mjs.map → chunk-YB7AHPBR.mjs.map} +0 -0
  836. /package/out/__chunks__/{chunk-AJEWAECH.mjs.map → chunk-YKRSCVRE.mjs.map} +0 -0
  837. /package/out/__chunks__/{chunk-CTMAC553.mjs.map → chunk-YTFYVPZO.mjs.map} +0 -0
  838. /package/out/__chunks__/{chunk-CO3V5DOG.mjs.map → chunk-YUITECZ5.mjs.map} +0 -0
  839. /package/out/__chunks__/{chunk-V7ZVI2WS.mjs.map → chunk-Z4OHB36I.mjs.map} +0 -0
  840. /package/out/__chunks__/{chunk-YAO67FPP.mjs.map → chunk-ZXIBFH6X.mjs.map} +0 -0
  841. /package/out/{__chunks__/chunk-FLC6QSZB.mjs.map → managers/LogoutManager/LogoutManager.mjs.map} +0 -0
  842. /package/out/{providers/strategies/CrossWindowProviderStrategy/types/crossWindow.types.mjs.map → managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.mjs.map} +0 -0
  843. /package/out/{providers/strategies/CrossWindowProviderStrategy/types/index.mjs.map → managers/TransactionManager/TransactionManager.types.mjs.map} +0 -0
  844. /package/out/{utils/createUIElement.mjs.map → managers/TransactionManager/helpers/sessionCallbacks.mjs.map} +0 -0
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.switchTheme = void 0;
4
+ const window_constants_1 = require("../../constants/window.constants");
5
+ function switchTheme(theme) {
6
+ try {
7
+ if (!window_constants_1.safeWindow) {
8
+ return;
9
+ }
10
+ window_constants_1.safeWindow.document.documentElement.dataset.theme = theme;
11
+ }
12
+ catch (_err) { }
13
+ }
14
+ exports.switchTheme = switchTheme;
15
+ //# sourceMappingURL=switchTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switchTheme.js","sourceRoot":"","sources":["../../../src/utils/visual/switchTheme.ts"],"names":[],"mappings":";;;AAAA,iEAAwD;AAGxD,SAAgB,WAAW,CAAC,KAAsB;IAChD,IAAI,CAAC;QACH,IAAI,CAAC,6BAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,6BAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;IAC5D,CAAC;IAAC,OAAO,IAAI,EAAE,CAAC,CAAA,CAAC;AACnB,CAAC;AAPD,kCAOC"}
@@ -0,0 +1,2 @@
1
+ import{a}from"../../__chunks__/chunk-5LB2KNTP.mjs";import"../../__chunks__/chunk-L4QPPHVR.mjs";export{a as switchTheme};
2
+ //# sourceMappingURL=switchTheme.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as e}from"../../../__chunks__/chunk-YEXBSKXL.mjs";import"../../../__chunks__/chunk-NHXPNROG.mjs";var t={},o={},s=e;export{t as WalletConnectMethodsEnum,o as WalletConnectOptionalMethodsEnum,s as WalletConnectV2Provider};
1
+ import{a as e}from"../../../__chunks__/chunk-QWV25ZSJ.mjs";import"../../../__chunks__/chunk-S2FQWSUO.mjs";var t={},o={},s=e;export{t as WalletConnectMethodsEnum,o as WalletConnectOptionalMethodsEnum,s as WalletConnectV2Provider};
2
2
  //# sourceMappingURL=sdkWalletconnectProvider.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-AJEWAECH.mjs";import"../../__chunks__/chunk-RVW2ZWCR.mjs";import"../../__chunks__/chunk-7QCBLUWB.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getIsInIframe};
1
+ import{a}from"../../__chunks__/chunk-YKRSCVRE.mjs";import"../../__chunks__/chunk-4TZC3NF3.mjs";import"../../__chunks__/chunk-L4QPPHVR.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getIsInIframe};
2
2
  //# sourceMappingURL=getIsInIframe.mjs.map
@@ -3,7 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getWindowLocation = void 0;
4
4
  const isWindowAvailable_1 = require("./isWindowAvailable");
5
5
  const getWindowLocation = () => {
6
- const isAvailable = (0, isWindowAvailable_1.isWindowAvailable)();
6
+ let isAvailable;
7
+ try {
8
+ isAvailable = (0, isWindowAvailable_1.isWindowAvailable)();
9
+ }
10
+ catch (_error) {
11
+ isAvailable = false;
12
+ }
7
13
  if (!isAvailable) {
8
14
  return {
9
15
  pathname: '',
@@ -1 +1 @@
1
- {"version":3,"file":"getWindowLocation.js","sourceRoot":"","sources":["../../../src/utils/window/getWindowLocation.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AAUjD,MAAM,iBAAiB,GAAG,GAA0B,EAAE;IAC3D,MAAM,WAAW,GAAG,IAAA,qCAAiB,GAAE,CAAC;IAExC,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO;YACL,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;SACX,CAAC;IACJ,CAAC;IAED,MAAM,EACJ,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EACnD,GAAG,MAAM,CAAC;IAEX,OAAO;QACL,QAAQ;QACR,IAAI;QACJ,MAAM;QACN,IAAI;QACJ,MAAM;KACP,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,iBAAiB,qBAwB5B"}
1
+ {"version":3,"file":"getWindowLocation.js","sourceRoot":"","sources":["../../../src/utils/window/getWindowLocation.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AAUjD,MAAM,iBAAiB,GAAG,GAA0B,EAAE;IAC3D,IAAI,WAAoB,CAAC;IAEzB,IAAI,CAAC;QACH,WAAW,GAAG,IAAA,qCAAiB,GAAE,CAAC;IACpC,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QAChB,WAAW,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO;YACL,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;SACX,CAAC;IACJ,CAAC;IAED,MAAM,EACJ,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EACnD,GAAG,MAAM,CAAC;IAEX,OAAO;QACL,QAAQ;QACR,IAAI;QACJ,MAAM;QACN,IAAI;QACJ,MAAM;KACP,CAAC;AACJ,CAAC,CAAC;AA9BW,QAAA,iBAAiB,qBA8B5B"}
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-LRHRFWQ4.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getWindowLocation};
1
+ import{a}from"../../__chunks__/chunk-CKTFPRJS.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getWindowLocation};
2
2
  //# sourceMappingURL=getWindowLocation.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-RVW2ZWCR.mjs";import"../../__chunks__/chunk-7QCBLUWB.mjs";export{a as getWindowParentOrigin};
1
+ import{a}from"../../__chunks__/chunk-4TZC3NF3.mjs";import"../../__chunks__/chunk-L4QPPHVR.mjs";export{a as getWindowParentOrigin};
2
2
  //# sourceMappingURL=getWindowParentOrigin.mjs.map
@@ -1,2 +1,2 @@
1
- import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-LRHRFWQ4.mjs";import{a as f}from"../../__chunks__/chunk-AJEWAECH.mjs";import"../../__chunks__/chunk-RVW2ZWCR.mjs";import{a as e}from"../../__chunks__/chunk-EHDGJUEU.mjs";import{a as d}from"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-7QCBLUWB.mjs";import{a as c}from"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import{a}from"../../__chunks__/chunk-B2UIPHJ3.mjs";export{d as buildUrlParams,e as getIsAuthRoute,f as getIsInIframe,b as getWindowLocation,a as isWindowAvailable,c as sanitizeCallbackUrl};
1
+ import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-YKRSCVRE.mjs";import"../../__chunks__/chunk-4TZC3NF3.mjs";import{a as e}from"../../__chunks__/chunk-EHDGJUEU.mjs";import{a as d}from"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-L4QPPHVR.mjs";import{a as c}from"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import{a}from"../../__chunks__/chunk-B2UIPHJ3.mjs";export{d as buildUrlParams,e as getIsAuthRoute,f as getIsInIframe,b as getWindowLocation,a as isWindowAvailable,c as sanitizeCallbackUrl};
2
2
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiversx/sdk-dapp",
3
- "version": "5.0.0-alpha.8",
3
+ "version": "5.0.0",
4
4
  "main": "out/index.js",
5
5
  "module": "out/index.mjs",
6
6
  "types": "out/index.d.ts",
@@ -33,18 +33,16 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@lifeomic/axios-fetch": "3.0.1",
36
- "@multiversx/sdk-core": "14.0.2",
37
- "@multiversx/sdk-dapp-utils": "^2.x",
38
36
  "@multiversx/sdk-extension-provider": "5.0.0",
39
37
  "@multiversx/sdk-hw-provider": "8.0.0",
40
38
  "@multiversx/sdk-metamask-provider": "2.0.0",
41
- "@multiversx/sdk-native-auth-client": "1.0.9",
39
+ "@multiversx/sdk-native-auth-client": "2.0.1",
42
40
  "@multiversx/sdk-wallet": "4.6.0",
43
- "@multiversx/sdk-wallet-connect-provider": "6.0.1",
44
- "@multiversx/sdk-web-wallet-cross-window-provider": "3.1.0",
45
- "@multiversx/sdk-web-wallet-iframe-provider": "3.0.1",
41
+ "@multiversx/sdk-wallet-connect-provider": "6.0.2",
42
+ "@multiversx/sdk-web-wallet-cross-window-provider": "3.1.3",
43
+ "@multiversx/sdk-web-wallet-iframe-provider": "3.0.3",
46
44
  "@multiversx/sdk-web-wallet-provider": "5.0.0",
47
- "@multiversx/sdk-webview-provider": "3.0.1",
45
+ "@multiversx/sdk-webview-provider": "3.1.2",
48
46
  "immer": "10.1.1",
49
47
  "linkifyjs": "4.3.1",
50
48
  "lodash.isempty": "4.4.0",
@@ -60,11 +58,11 @@
60
58
  "peerDependencies": {
61
59
  "@multiversx/sdk-core": "^14.x",
62
60
  "@multiversx/sdk-dapp-utils": "^2.x",
63
- "axios": ">=1.7.4",
64
- "bignumber.js": "9.x"
61
+ "axios": ">=1.10.0",
62
+ "bignumber.js": "^9.x"
65
63
  },
66
64
  "optionalDependencies": {
67
- "@multiversx/sdk-dapp-ui": ">=0.0.6"
65
+ "@multiversx/sdk-dapp-ui": ">=0.0.13"
68
66
  },
69
67
  "resolutions": {
70
68
  "strip-ansi": "6.0.1",
@@ -73,6 +71,8 @@
73
71
  "devDependencies": {
74
72
  "@eslint/js": "9.15.0",
75
73
  "@swc/core": "1.4.17",
74
+ "@multiversx/sdk-core": "^14.x",
75
+ "@multiversx/sdk-dapp-utils": "^2.x",
76
76
  "@swc/jest": "0.2.36",
77
77
  "@types/jest": "29.5.13",
78
78
  "@types/lodash.isempty": "4.4.9",
@@ -82,14 +82,15 @@
82
82
  "@types/lodash.trimend": "4.5.9",
83
83
  "@types/lodash.uniq": "4.5.9",
84
84
  "@types/node": "20.12.8",
85
- "@types/react": "18.2.23",
85
+ "@types/react": "18.2.0",
86
86
  "@typescript-eslint/eslint-plugin": "8.15.0",
87
87
  "@typescript-eslint/parser": "8.15.0",
88
- "axios": ">=1.7.4",
88
+ "axios": ">=1.10.0",
89
89
  "axios-mock-adapter": "1.22.0",
90
- "bignumber.js": "9.x",
90
+ "bignumber.js": "^9.x",
91
91
  "esbuild": "0.21.1",
92
92
  "esbuild-node-externals": "1.14.0",
93
+ "esbuild-plugin-replace": "1.3.0",
93
94
  "eslint": "9.15.0",
94
95
  "eslint-config-prettier": "9.1.0",
95
96
  "eslint-config-standard": "17.1.0",
@@ -106,7 +107,7 @@
106
107
  "msw": "1.3.1",
107
108
  "node-stdlib-browser": "1.2.0",
108
109
  "prettier": "3.2.5",
109
- "react": "18.3.1",
110
+ "react": "18.2.0",
110
111
  "rimraf": "5.0.6",
111
112
  "ts-jest": "29.1.2",
112
113
  "tsc-alias": "1.8.9",
@@ -1,2 +0,0 @@
1
- import{a as U}from"./chunk-TWWYWBJH.mjs";import{a as v}from"./chunk-U52ITGAN.mjs";import{a as D,b as R,g as F}from"./chunk-QD3CFFVT.mjs";import{a as z}from"./chunk-3IXTYHAU.mjs";import{b as f}from"./chunk-WVB4VPRI.mjs";import{a as _}from"./chunk-W5W6YGA5.mjs";import{a as j}from"./chunk-4ODPAHHA.mjs";import{a as $}from"./chunk-Z5CDCI3Y.mjs";import{a as G}from"./chunk-XPX7PTGI.mjs";import{a as u}from"./chunk-VPZ3QEMD.mjs";import{a as L}from"./chunk-OH6SHSQZ.mjs";import{a as V}from"./chunk-P5YASUQH.mjs";import{a as T}from"./chunk-KUQH2ZBR.mjs";import{a as l,f as O}from"./chunk-VQIWENYE.mjs";import{a as M}from"./chunk-45WVS4H5.mjs";import{b as W}from"./chunk-SKEL25G3.mjs";import{a as h}from"./chunk-HORSXVIV.mjs";import{a as g}from"./chunk-6FXEHNGW.mjs";import{a as K}from"./chunk-NJN53MJV.mjs";import{a as b}from"./chunk-YSCND2MX.mjs";import{b as k,s as m,u as N}from"./chunk-4YETXBJD.mjs";import{b as I}from"./chunk-IEJTMYFW.mjs";import{b as C,c as P,f as S}from"./chunk-R53MCZI6.mjs";import{b as B}from"./chunk-YEXBSKXL.mjs";import{a as E}from"./chunk-NHXPNROG.mjs";async function w({address:t,provider:o,apiAddress:r}){let e=await g({address:t,baseURL:r});if(!e)throw new Error("Account not found");W({address:t,providerType:o.getType()});let n={...e,username:h(e.username),nonce:T(e)};l(n),await f(t),v(),e.shard!=null&&await U({shard:Number(e.shard),apiAddress:r})}async function ot(t){let{network:{apiAddress:o}}=u();await t.login();let r=await t.getAddress();if(!r)throw new Error("Address not found");return await w({address:r,provider:t,apiAddress:o}),{address:r}}async function rt({provider:t,nativeAuthConfig:o,token:r}){let{network:{apiAddress:e}}=u(),n=M(o),s=r;s||(s=await n.initialize({noCache:!0}));let{address:i,signature:c,...a}=await t.login({token:s});if(!i)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let p=n.getToken({address:i,token:s,signature:c});k({loginToken:s,signature:c,nativeAuthToken:p});let d=await _({loginToken:s,extraInfoData:{multisig:a?.multisig,impersonate:a?.impersonate},address:i});return await w({address:d,provider:t,apiAddress:e}),{address:d,signature:c}}async function H(t,o){let r=I(N());if(r)return await rt({provider:t,nativeAuthConfig:r,token:o?.token});let{address:e}=await ot(t);return await f(e),v(),{address:e}}var y={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${R}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${D}-${Date.now()}`}},et={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},nt=t=>{for(let[o,r]of Object.entries(et))if(t.includes(o))return r;return"Error when signing"};function A(t,o="error"){let r=t?.message,e=nt(r),s=e!=="Error when signing"?"warning":o,i=Object.keys(y).includes(s)?y[s]:y.error,{toastId:c,iconClassName:a,title:p}=i;return q({toastId:c,duration:1e4,icon:"times",iconClassName:a,message:e,title:p}),e}async function J({provider:t,transactions:o,options:r={}}){await Q();let{isGuarded:e,activeGuardianAddress:n,nonce:s}=V(),i=t.getType()===E.ledger,c=j({latestNonce:s,transactions:o}),a=n&&e&&!r.skipGuardian?c?.map(d=>(d.version=C.withTxOptions().valueOf(),d.options=S.withOptions({guarded:!0,...i?{hashSign:!0}:{}}).valueOf(),d.guardian=P.newFromBech32(n),d)):c,p=await t.signTransactions(a)??[];return O(s+p.length),p}var x=class{constructor(o){this.provider=o}init(){return this.provider.init()}async login(o){return await H(this.provider,o)}isInitialized(){return this.provider.isInitialized()}async logout(o={shouldBroadcastLogoutAcrossTabs:!0,hasConsentPopup:!1}){return await z({provider:this.provider,options:o})}setShouldShowConsentPopup(o){this.provider.setShouldShowConsentPopup?.(o)}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(o,r){try{return await J({provider:this.provider,transactions:o,options:r})}catch(e){let n=A(e);throw new Error(n)}}async signMessage(o,r){try{return await G({provider:this.provider,message:o,options:r})}catch(e){let n=A(e,"warning");throw new Error(n)}}async verifyMessage(o){return await $(o)}cancelLogin(){this.provider.cancelLogin?.()}};var X=null;function go(t){X=t}function Y(){return X||new x(B)}var st=async()=>{try{let t=L(),{network:o}=u();try{let r=await g({address:t,baseURL:o.apiAddress});if(r!=null){let e={...r,username:h(r.username),nonce:T(r)};return l(e),e}}catch(r){console.error("Failed getting account ",r)}}catch(t){console.error("Failed getting address ",t)}return null};async function Q(){let t=Y();if(t==null)throw"Provider not initialized";try{if(!t.init)throw"Current provider does not have init() function";return await t.init()?st():void 0}catch(o){console.error("Failed initializing provider ",o)}}var Z={},tt={},it=(t,o)=>{m().setState(({toasts:r})=>{let e=r.customToasts.length>0?Math.max(...r.customToasts.map(a=>parseInt(a.toastId.split("-").pop()??"0"))):0,n=o??`custom-toast-${e+1}`,s=r.customToasts.findIndex(a=>a.toastId===n),i={...t,toastId:n};if(s!==-1){r.customToasts[s]=i;return}r.customToasts.push({...i,toastId:n})},!1,"addCustomToast")},_o=t=>{m().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(r=>r.toastId!==t)},!1,"removeCustomToast")},zo=()=>{m().setState(({toasts:t})=>{t.customToasts=[]},!1,"removeAllCustomToasts")},Go=()=>{m().setState(({toasts:t})=>{t.transactionToasts=[]})},$o=({toastId:t,totalDuration:o})=>{m().setState(({toasts:r})=>{let e=r.transactionToasts.length>0?Math.max(...r.transactionToasts.map(s=>parseInt(s.toastId.split("-").pop()??"0"))):0,n=t||`transaction-toast-${e+1}`;r.transactionToasts.push({startTime:b(),endTime:K(o),toastId:n})},!1,"addTransactionToast")},Vo=t=>{m().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(r=>r.toastId!==t)},!1,"removeTransactionToast"),delete tt[t],delete Z[t]},q=t=>{let{toasts:o}=m().getState(),r=o.customToasts.length>0?Math.max(...o.customToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0,e=t.toastId||`custom-toast-${r+1}`;return t.onClose&&(tt[e]=t.onClose),t.instantiateToastElement?(Z[e]=t.instantiateToastElement,m().setState(({toasts:n})=>{let s=n.customToasts.findIndex(a=>a.toastId===e),i={...t,instantiateToastElement:null,toastId:e};s!==-1?n.customToasts[s]=i:n.customToasts.push(i)},!1,"createCustomToast"),e):(it(t,e),e)};export{Z as a,tt as b,it as c,_o as d,zo as e,Go as f,$o as g,Vo as h,q as i,w as j,H as k,A as l,J as m,x as n,go as o,Y as p,Q as q};
2
- //# sourceMappingURL=chunk-2G6DWPQU.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/DappProvider/helpers/login/helpers/accountLogin.ts", "../../src/providers/DappProvider/helpers/login/login.ts", "../../src/providers/DappProvider/helpers/signErrors/handleSignError.ts", "../../src/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.ts", "../../src/providers/DappProvider/DappProvider.ts", "../../src/providers/helpers/accountProvider.ts", "../../src/utils/account/refreshAccount.ts", "../../src/store/actions/toasts/toastsActions.ts"],
4
- "sourcesContent": ["import { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { setGasStationMetadata } from 'methods/initApp/gastStationMetadata/setGasStationMetadata';\nimport { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { loginAction } from 'store/actions';\nimport { setAccount } from 'store/actions/account';\nimport { AccountType } from 'types/account.types';\nimport { fetchAccount } from 'utils/account/fetchAccount';\nimport { trimUsernameDomain } from 'utils/account/trimUsernameDomain';\n\ninterface IAccountLoginProps {\n address: string;\n provider: IProvider;\n apiAddress: string;\n}\n\nexport async function accountLogin({\n address,\n provider,\n apiAddress\n}: IAccountLoginProps) {\n const account = await fetchAccount({\n address,\n baseURL: apiAddress\n });\n\n if (!account) {\n throw new Error('Account not found');\n }\n\n loginAction({\n address,\n providerType: provider.getType()\n });\n\n const newAccount: AccountType = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(newAccount);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n if (account.shard != null) {\n await setGasStationMetadata({\n shard: Number(account.shard),\n apiAddress\n });\n }\n}\n", "import { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { nativeAuth } from 'services/nativeAuth';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { setTokenLogin } from 'store/actions/loginInfo/loginInfoActions';\nimport { nativeAuthConfigSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { accountLogin } from './helpers/accountLogin';\nimport { extractAddressFromToken } from './helpers/extractAddressFromToken';\n\nasync function loginWithoutNativeToken(provider: IProvider) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n await provider.login();\n\n const address = await provider.getAddress();\n\n if (!address) {\n throw new Error('Address not found');\n }\n\n await accountLogin({ address, provider, apiAddress });\n\n return {\n address\n };\n}\n\nasync function loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token\n}: {\n provider: IProvider;\n nativeAuthConfig: NativeAuthConfigType;\n token?: string;\n}) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n const nativeAuthClient = nativeAuth(nativeAuthConfig);\n let loginToken = token;\n\n if (!loginToken) {\n loginToken = await nativeAuthClient.initialize({\n noCache: true\n });\n }\n\n const { address, signature, ...loginResult } = await provider.login({\n token: loginToken\n });\n\n if (!address) {\n console.warn('Login cancelled.');\n return null;\n }\n\n if (!signature) {\n console.error('Failed to sign login token');\n return null;\n }\n\n const nativeAuthToken = nativeAuthClient.getToken({\n address,\n token: loginToken,\n signature\n });\n\n setTokenLogin({\n loginToken,\n signature,\n nativeAuthToken\n });\n\n const extractedAddress = await extractAddressFromToken({\n loginToken,\n extraInfoData: {\n multisig: loginResult?.multisig,\n impersonate: loginResult?.impersonate\n },\n address\n });\n\n await accountLogin({\n address: extractedAddress,\n provider,\n apiAddress\n });\n\n return {\n address: extractedAddress,\n signature\n };\n}\n\nexport async function login(provider: IProvider, options?: { token?: string }) {\n const nativeAuthConfig = nativeAuthConfigSelector(getState());\n\n if (nativeAuthConfig) {\n const data = await loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token: options?.token\n });\n return data;\n }\n\n const { address } = await loginWithoutNativeToken(provider);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n return { address };\n}\n", "import {\n CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n CANCEL_TRANSACTION_TOAST_ID,\n ERROR_SIGNING_TOAST_ID\n} from 'constants/transactions.constants';\nimport { ToastIconsEnum } from 'managers/internal/ToastManager/helpers/getToastDataStateByStatus';\nimport { createCustomToast } from 'store/actions';\nimport { SigningErrorsEnum, SigningWarningsEnum } from 'types/enums.types';\n\nconst states = {\n error: {\n title: SigningErrorsEnum.errorSigning.toString(),\n iconClassName: 'danger',\n toastId: `${ERROR_SIGNING_TOAST_ID}-${Date.now()}`\n },\n warning: {\n title: SigningWarningsEnum.cancelled.toString(),\n iconClassName: 'warning',\n toastId: `${CANCEL_TRANSACTION_TOAST_ID}-${Date.now()}`\n }\n};\n\nconst errorsMap = {\n extensionResponse: 'Unable to sign transactions', // extension\n 'Transaction canceled': 'Transaction canceled', // web wallet\n 'cancelled by user': 'Transaction signing cancelled by user', // custom\n 'denied by the user': 'Transaction signing denied by the user' // ledger\n};\n\nconst getUserError = (error: string) => {\n for (const [key, value] of Object.entries(errorsMap)) {\n if (error.includes(key)) {\n return value;\n }\n }\n return SigningErrorsEnum.errorSigning;\n};\n\nexport function handleSignError(\n error: unknown,\n type: 'error' | 'warning' = 'error'\n) {\n const originalError = (error as Error)?.message;\n const errorMessage = getUserError(originalError);\n\n const isKnownError = errorMessage !== SigningErrorsEnum.errorSigning;\n\n const errorType = isKnownError ? 'warning' : type;\n\n const state = Object.keys(states).includes(errorType)\n ? states[errorType]\n : states.error;\n\n const { toastId, iconClassName, title } = state;\n\n createCustomToast({\n toastId,\n duration: CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n icon: ToastIconsEnum.times,\n iconClassName,\n message: errorMessage,\n title\n });\n\n return errorMessage;\n}\n", "import {\n Address,\n Transaction,\n TransactionOptions,\n TransactionVersion\n} from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport {\n IProvider,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { setAccountNonce } from 'store/actions';\nimport { refreshAccount } from 'utils';\nimport { computeNonces } from '../computeNonces/computeNonces';\n\nexport type SignTransactionsOptionsType = {\n skipGuardian?: boolean;\n};\n\ntype SignTransactionsType = {\n provider: IProvider;\n transactions: Transaction[];\n options?: SignTransactionsOptionsType;\n};\n\nexport async function signTransactionsWithProvider({\n provider,\n transactions,\n options = {}\n}: SignTransactionsType): Promise<Transaction[]> {\n await refreshAccount();\n const { isGuarded, activeGuardianAddress, nonce } = getAccount();\n const isLedger = provider.getType() === ProviderTypeEnum.ledger;\n\n const transactionsWithComputedNonce = computeNonces({\n latestNonce: nonce,\n transactions\n });\n\n const transactionsToSign =\n activeGuardianAddress && isGuarded && !options.skipGuardian\n ? transactionsWithComputedNonce?.map((transaction) => {\n transaction.version = TransactionVersion.withTxOptions().valueOf();\n transaction.options = TransactionOptions.withOptions({\n guarded: true,\n ...(isLedger ? { hashSign: true } : {})\n }).valueOf();\n\n transaction.guardian = Address.newFromBech32(activeGuardianAddress);\n\n return transaction;\n })\n : transactionsWithComputedNonce;\n\n const signedTransactions: Transaction[] =\n (await provider.signTransactions(transactionsToSign)) ?? [];\n\n setAccountNonce(nonce + signedTransactions.length);\n\n return signedTransactions;\n}\n", "import { Message, Transaction } from 'lib/sdkCore';\nimport { IProvider } from '../types/providerFactory.types';\nimport { login } from './helpers/login/login';\nimport { logout } from './helpers/logout/logout';\nimport { handleSignError } from './helpers/signErrors/handleSignError';\nimport { signMessageWithProvider } from './helpers/signMessage/signMessageWithProvider';\nimport {\n verifyMessage,\n VerifyMessageReturnType\n} from './helpers/signMessage/verifyMessage';\nimport {\n signTransactionsWithProvider,\n SignTransactionsOptionsType\n} from './helpers/signTransactions/signTransactionsWithProvider';\n\nexport class DappProvider {\n private provider: IProvider;\n\n constructor(provider: IProvider) {\n this.provider = provider;\n }\n\n init(): Promise<boolean> {\n return this.provider.init();\n }\n\n async login(options?: { token?: string }) {\n const data = await login(this.provider, options);\n return data;\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n async logout(\n options = {\n shouldBroadcastLogoutAcrossTabs: true,\n hasConsentPopup: false\n }\n ): Promise<boolean> {\n return await logout({ provider: this.provider, options });\n }\n\n setShouldShowConsentPopup(shouldShow: boolean): void {\n this.provider.setShouldShowConsentPopup?.(shouldShow);\n }\n\n getType() {\n return this.provider.getType();\n }\n\n /**\n * @returns The original provider instance.\n */\n getProvider() {\n return this.provider;\n }\n\n async signTransactions(\n transactions: Transaction[],\n options?: SignTransactionsOptionsType\n ): Promise<Transaction[]> {\n try {\n const signedTransactions = await signTransactionsWithProvider({\n provider: this.provider,\n transactions,\n options\n });\n return signedTransactions;\n } catch (error) {\n const errorMessage = handleSignError(error);\n throw new Error(errorMessage);\n }\n }\n\n async signMessage(\n message: Message,\n options?: {\n hasConsentPopup?: boolean;\n }\n ): Promise<Message | null> {\n try {\n const signedMessage = await signMessageWithProvider({\n provider: this.provider,\n message,\n options\n });\n return signedMessage;\n } catch (error) {\n const errorMessage = handleSignError(error, 'warning');\n throw new Error(errorMessage);\n }\n }\n\n /**\n * @param signedMessage - The signed message to verify in form of a JSON string with `address`, `message` and `signature` properties.\n * @returns The verification result with `isVerified`, `message` and `address` properties.\n */\n async verifyMessage(signedMessage: string): Promise<VerifyMessageReturnType> {\n return await verifyMessage(signedMessage);\n }\n\n cancelLogin(): void {\n this.provider.cancelLogin?.();\n }\n}\n", "import { IProvider } from 'providers/types/providerFactory.types';\nimport { DappProvider } from '../DappProvider';\nimport { emptyProvider } from './emptyProvider';\n\nexport type ProvidersType = IProvider;\n\nlet accountProvider: DappProvider | null = null;\n\nexport function setAccountProvider<TProvider extends DappProvider | null>(\n provider: TProvider\n) {\n accountProvider = provider;\n}\n\nexport function getAccountProvider(): DappProvider {\n return accountProvider || new DappProvider(emptyProvider);\n}\n", "import { getAddress } from 'methods/account/getAddress';\nimport { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { setAccount } from 'store/actions';\nimport { fetchAccount } from './fetchAccount';\nimport { trimUsernameDomain } from './trimUsernameDomain';\n\nconst setNewAccount = async () => {\n try {\n const address = getAddress();\n const { network } = getNetworkConfig();\n\n try {\n const account = await fetchAccount({\n address,\n baseURL: network.apiAddress\n });\n\n if (account != null) {\n const accountData = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(accountData);\n\n return accountData;\n }\n } catch (e) {\n console.error('Failed getting account ', e);\n }\n } catch (e) {\n console.error('Failed getting address ', e);\n }\n\n return null;\n};\n\nexport async function refreshAccount() {\n const provider = getAccountProvider();\n\n if (provider == null) {\n throw 'Provider not initialized';\n }\n\n try {\n if (!provider.init) {\n throw 'Current provider does not have init() function';\n }\n\n const initialized = await provider.init();\n\n if (!initialized) {\n return;\n }\n\n return setNewAccount();\n } catch (e) {\n console.error('Failed initializing provider ', e);\n }\n\n return undefined;\n}\n", "import {\n CustomToastType,\n IComponentToast\n} from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { getUnixTimestamp, getUnixTimestampWithAddedMilliseconds } from 'utils';\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 'addCustomToast'\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 'removeCustomToast'\n );\n};\n\nexport const removeAllCustomToasts = () => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = [];\n },\n false,\n 'removeAllCustomToasts'\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}) => {\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 const 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\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": ["accountLogin", "address", "provider", "apiAddress", "account", "fetchAccount", "loginAction", "newAccount", "trimUsernameDomain", "getLatestNonce", "setAccount", "registerWebsocketListener", "trackTransactions", "setGasStationMetadata", "loginWithoutNativeToken", "provider", "apiAddress", "getNetworkConfig", "address", "accountLogin", "loginWithNativeToken", "nativeAuthConfig", "token", "nativeAuthClient", "nativeAuth", "loginToken", "signature", "loginResult", "nativeAuthToken", "setTokenLogin", "extractedAddress", "extractAddressFromToken", "login", "options", "nativeAuthConfigSelector", "getState", "registerWebsocketListener", "trackTransactions", "states", "ERROR_SIGNING_TOAST_ID", "CANCEL_TRANSACTION_TOAST_ID", "errorsMap", "getUserError", "error", "key", "value", "handleSignError", "type", "originalError", "errorMessage", "errorType", "state", "toastId", "iconClassName", "title", "createCustomToast", "signTransactionsWithProvider", "provider", "transactions", "options", "refreshAccount", "isGuarded", "activeGuardianAddress", "nonce", "getAccount", "isLedger", "ProviderTypeEnum", "transactionsWithComputedNonce", "computeNonces", "transactionsToSign", "transaction", "TransactionVersion", "TransactionOptions", "Address", "signedTransactions", "setAccountNonce", "DappProvider", "provider", "options", "login", "logout", "shouldShow", "transactions", "signTransactionsWithProvider", "error", "errorMessage", "handleSignError", "message", "signMessageWithProvider", "signedMessage", "verifyMessage", "accountProvider", "setAccountProvider", "provider", "getAccountProvider", "DappProvider", "emptyProvider", "setNewAccount", "address", "getAddress", "network", "getNetworkConfig", "account", "fetchAccount", "accountData", "trimUsernameDomain", "getLatestNonce", "setAccount", "e", "refreshAccount", "provider", "getAccountProvider", "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 +0,0 @@
1
- //# sourceMappingURL=chunk-2GSNHNKW.mjs.map
@@ -1,2 +0,0 @@
1
- import{b as a,c as n}from"./chunk-ZOGJGVPP.mjs";function m({results:r,hash:e,sessionId:s}){let t=r?.find(i=>i?.returnMessage!=="");n({sessionId:s,transaction:{...t,hash:e,status:"fail",inTransit:!1}}),a({sessionId:s,status:"fail",errorMessage:t?.returnMessage})}export{m as a};
2
- //# sourceMappingURL=chunk-2WB5WD5K.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.ts"],
4
- "sourcesContent": ["import {\n updateTransactionStatus,\n updateTransactionsSession\n} from 'store/actions/transactions/transactionsActions';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { ResultType } from 'types/serverTransactions.types';\nimport { SignedTransactionType } from 'types/transactions.types';\n\nexport function manageFailedTransactions({\n results,\n hash,\n sessionId\n}: {\n results: ResultType[];\n hash: string;\n sessionId: string;\n}) {\n const resultWithError = results?.find(\n (scResult) => scResult?.returnMessage !== ''\n );\n\n updateTransactionStatus({\n sessionId,\n transaction: {\n ...(resultWithError as unknown as SignedTransactionType),\n hash,\n status: TransactionServerStatusesEnum.fail,\n inTransit: false\n }\n });\n\n updateTransactionsSession({\n sessionId,\n status: TransactionBatchStatusesEnum.fail,\n errorMessage: resultWithError?.returnMessage\n });\n}\n"],
5
- "mappings": "gDAWO,SAASA,EAAyB,CACvC,QAAAC,EACA,KAAAC,EACA,UAAAC,CACF,EAIG,CACD,IAAMC,EAAkBH,GAAS,KAC9BI,GAAaA,GAAU,gBAAkB,EAC5C,EAEAC,EAAwB,CACtB,UAAAH,EACA,YAAa,CACX,GAAIC,EACJ,KAAAF,EACA,cACA,UAAW,EACb,CACF,CAAC,EAEDK,EAA0B,CACxB,UAAAJ,EACA,cACA,aAAcC,GAAiB,aACjC,CAAC,CACH",
6
- "names": ["manageFailedTransactions", "results", "hash", "sessionId", "resultWithError", "scResult", "updateTransactionStatus", "updateTransactionsSession"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as n}from"./chunk-4TBVQD27.mjs";import{s as o}from"./chunk-4YETXBJD.mjs";var l=t=>o().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),c=t=>o().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>o().setState(({config:e})=>{let s=t.walletConnectV2RelayAddress||n.walletConnectV2RelayAddress,i=t.walletConnectDeepLink||n.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:i,walletConnectV2RelayAddress:s}},!1,"setWalletConnectConfig"),r=t=>o().setState(({config:e})=>{e.crossWindowConfig=t},!1,"setCrossWindowConfig");export{l as a,c as b,f as c,r as d};
2
- //# sourceMappingURL=chunk-35YS2DV5.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/store/actions/config/configActions.ts"],
4
- "sourcesContent": ["import { fallbackWalletConnectConfigurations } from 'constants/walletConnect.constants';\nimport { WebsocketConnectionStatusEnum } from 'constants/websocket.constants';\nimport { CrossWindowConfig } from 'providers/strategies/CrossWindowProviderStrategy/types';\nimport { WalletConnectConfig } from 'providers/strategies/WalletConnectProviderStrategy/types';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { getStore } from 'store/store';\n\nexport const setNativeAuthConfig = (config: NativeAuthConfigType) =>\n getStore().setState(\n ({ config: state }) => {\n state.nativeAuthConfig = config;\n },\n false,\n 'setNativeAuthConfig'\n );\n\nexport const setWebsocketStatus = (status: WebsocketConnectionStatusEnum) =>\n getStore().setState(\n ({ config: state }) => {\n state.websocketStatus = status;\n },\n false,\n 'setWebsocketStatus'\n );\n\nexport const setWalletConnectConfig = (config: WalletConnectConfig) =>\n getStore().setState(\n ({ config: state }) => {\n const walletConnectV2RelayAddress =\n config.walletConnectV2RelayAddress ||\n fallbackWalletConnectConfigurations.walletConnectV2RelayAddress;\n const walletConnectDeepLink =\n config.walletConnectDeepLink ||\n fallbackWalletConnectConfigurations.walletConnectDeepLink;\n\n state.walletConnectConfig = {\n ...config,\n walletConnectDeepLink,\n walletConnectV2RelayAddress\n };\n },\n false,\n 'setWalletConnectConfig'\n );\n\nexport const setCrossWindowConfig = (config: CrossWindowConfig) =>\n getStore().setState(\n ({ config: state }) => {\n state.crossWindowConfig = config;\n },\n false,\n 'setCrossWindowConfig'\n );\n"],
5
- "mappings": "kFAOO,IAAMA,EAAuBC,GAClCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,iBAAmBF,CAC3B,EACA,GACA,qBACF,EAEWG,EAAsBC,GACjCH,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,gBAAkBE,CAC1B,EACA,GACA,oBACF,EAEWC,EAA0BL,GACrCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrB,IAAMI,EACJN,EAAO,6BACPO,EAAoC,4BAChCC,EACJR,EAAO,uBACPO,EAAoC,sBAEtCL,EAAM,oBAAsB,CAC1B,GAAGF,EACH,sBAAAQ,EACA,4BAAAF,CACF,CACF,EACA,GACA,wBACF,EAEWG,EAAwBT,GACnCC,EAAS,EAAE,SACT,CAAC,CAAE,OAAQC,CAAM,IAAM,CACrBA,EAAM,kBAAoBF,CAC5B,EACA,GACA,sBACF",
6
- "names": ["setNativeAuthConfig", "config", "getStore", "state", "setWebsocketStatus", "status", "setWalletConnectConfig", "walletConnectV2RelayAddress", "fallbackWalletConnectConfigurations", "walletConnectDeepLink", "setCrossWindowConfig"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as i}from"./chunk-WVB4VPRI.mjs";import{a as u}from"./chunk-OH6SHSQZ.mjs";import{a as g}from"./chunk-SKEL25G3.mjs";import{c as n}from"./chunk-PPA7AFVD.mjs";import{a}from"./chunk-NHXPNROG.mjs";import{a as s}from"./chunk-7QCBLUWB.mjs";var c=(o,r)=>{let t=`sdk-dapp-logout-event-${o}`,e=r.getItem(t);e&&o!==e||(r.setItem(t,o),r.removeItem(t))};async function h({provider:o,options:r={shouldBroadcastLogoutAcrossTabs:!0,hasConsentPopup:!1}}){let t=u();r.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&c(t,s.localStorage);try{return g(),r.hasConsentPopup&&o.getType()===a.crossWindow&&o.setShouldShowConsentPopup(!0),n.forEach(p=>p()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{h as a};
2
- //# sourceMappingURL=chunk-3IXTYHAU.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/DappProvider/helpers/logout/logout.ts"],
4
- "sourcesContent": ["import { subscriptions } from 'constants/storage.constants';\nimport { safeWindow } from 'constants/window.constants';\nimport { CrossWindowProvider } from 'lib/sdkWebWalletCrossWindowProvider';\nimport { getAddress } from 'methods/account/getAddress';\nimport { websocketManager } from 'methods/initApp/websocket/registerWebsocket';\nimport {\n IProvider,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { logoutAction } from 'store/actions/sharedActions/sharedActions';\n\nexport type LogoutPropsType = {\n shouldAttemptReLogin?: boolean;\n shouldBroadcastLogoutAcrossTabs?: boolean;\n /*\n * Only used for web-wallet crossWindow login\n */\n hasConsentPopup?: boolean;\n};\n\ninterface IProviderLogout {\n provider: IProvider;\n options?: LogoutPropsType;\n}\n\nconst broadcastLogoutAcrossTabs = (address: string, localStorage: Storage) => {\n const logoutEventKey = `sdk-dapp-logout-event-${address}`;\n const storedAddress = localStorage.getItem(logoutEventKey);\n\n if (storedAddress && address !== storedAddress) {\n return;\n }\n\n localStorage.setItem(logoutEventKey, address);\n localStorage.removeItem(logoutEventKey);\n};\n\nexport async function logout({\n provider,\n options = {\n shouldBroadcastLogoutAcrossTabs: true,\n hasConsentPopup: false\n }\n}: IProviderLogout): Promise<boolean> {\n let address = getAddress();\n\n if (options.shouldBroadcastLogoutAcrossTabs && safeWindow.localStorage) {\n broadcastLogoutAcrossTabs(address, safeWindow.localStorage);\n }\n try {\n logoutAction();\n\n if (\n options.hasConsentPopup &&\n provider.getType() === ProviderTypeEnum.crossWindow\n ) {\n (provider as unknown as CrossWindowProvider).setShouldShowConsentPopup(\n true\n );\n }\n\n // Clear all active subscriptions on logout\n subscriptions.forEach((unsubscribe) => unsubscribe());\n subscriptions.clear();\n websocketManager.closeConnectionRef?.();\n const isLoggedOut = await provider.logout();\n return isLoggedOut;\n } catch (err) {\n console.error('Logging out error:', err);\n return false;\n }\n}\n"],
5
- "mappings": "iPAyBA,IAAMA,EAA4B,CAACC,EAAiBC,IAA0B,CAC5E,IAAMC,EAAiB,yBAAyBF,CAAO,GACjDG,EAAgBF,EAAa,QAAQC,CAAc,EAErDC,GAAiBH,IAAYG,IAIjCF,EAAa,QAAQC,EAAgBF,CAAO,EAC5CC,EAAa,WAAWC,CAAc,EACxC,EAEA,eAAsBE,EAAO,CAC3B,SAAAC,EACA,QAAAC,EAAU,CACR,gCAAiC,GACjC,gBAAiB,EACnB,CACF,EAAsC,CACpC,IAAIN,EAAUO,EAAW,EAErBD,EAAQ,iCAAmCE,EAAW,cACxDT,EAA0BC,EAASQ,EAAW,YAAY,EAE5D,GAAI,CACF,OAAAC,EAAa,EAGXH,EAAQ,iBACRD,EAAS,QAAQ,IAAMK,EAAiB,aAEvCL,EAA4C,0BAC3C,EACF,EAIFM,EAAc,QAASC,GAAgBA,EAAY,CAAC,EACpDD,EAAc,MAAM,EACpBE,EAAiB,qBAAqB,EAClB,MAAMR,EAAS,OAAO,CAE5C,OAASS,EAAK,CACZ,eAAQ,MAAM,qBAAsBA,CAAG,EAChC,EACT,CACF",
6
- "names": ["broadcastLogoutAcrossTabs", "address", "localStorage", "logoutEventKey", "storedAddress", "logout", "provider", "options", "getAddress", "safeWindow", "logoutAction", "ProviderTypeEnum", "subscriptions", "unsubscribe", "websocketManager", "err"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as f}from"./chunk-RIQNG4I7.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=h=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=f(h),n=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>n.getCurrentBlockHash(),e=t?.latestBlockInfo;e||(e=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache}));let{hash:p,timestamp:c}=e,m=n.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${n.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:e})=>n.getToken(t,a,e),getTokenExpiration:l}};export{H as a};
2
- //# sourceMappingURL=chunk-45WVS4H5.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as x}from"./chunk-IYS5W63R.mjs";import{a as k}from"./chunk-AC2L3PV3.mjs";import{a as B}from"./chunk-V7ZVI2WS.mjs";import{a as b}from"./chunk-M6IVW6AN.mjs";import{a as O}from"./chunk-QXC4D3AC.mjs";import{a as R}from"./chunk-ZMEIT65B.mjs";import{a as D}from"./chunk-53BZNNVL.mjs";import{a as I}from"./chunk-PDT22D2C.mjs";import{a as j}from"./chunk-CTMAC553.mjs";import{a as _}from"./chunk-KY7KOSJJ.mjs";import{u as A}from"./chunk-4YETXBJD.mjs";import{b as v}from"./chunk-SAAOQW7P.mjs";import{a as G,c as U,f as F}from"./chunk-K3G3SPRT.mjs";import{a as w}from"./chunk-R53MCZI6.mjs";import{c as N}from"./chunk-MGFIOCA4.mjs";async function Dn({transactions:z=[],handleSign:H,guardTransactions:K=_}){let{account:{address:y,shard:C,username:E}}=k(),g=v(A()),h=B(),{allTransactions:e,parsedTransactionsByDataField:L}=R(z),p=[],n=x.getInstance();if(await n.openUI(),!n)throw new Error("Unable to establish connection with sign screens");let W=async()=>{await b(),n.closeUI()};return n.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",W),new Promise(async(X,M)=>{let d=[],Y=await O({baseURL:g.apiAddress});n.notifyDataUpdate(),n.initializeGasPriceMap(e.map(t=>t.transaction));let l=Y?.price,a=0,T=async()=>{let r=e[a]?.transaction,i=Number(r.nonce);n.updateIsLoading(!0);let{commonData:c,tokenTransaction:o,fungibleTransaction:s}=await D({allTransactions:e,currentScreenIndex:a,egldLabel:h,network:g,gasPriceData:n.ppuMap[i],price:l,address:y,username:E,shard:C,signedIndexes:p,parsedTransactionsByDataField:L});n.updateIsLoading(!1),o&&n.updateTokenTransaction(o),s&&n.updateNonFungibleTransaction(s.type,s),n.updateCommonData(c)},q=()=>{a>0&&(a--,T())},J=(t=0)=>{let i=e[a].transaction,c=Number(i.nonce);n.updateGasPriceMap({nonce:c,ppu:t}),n.updateCommonData({ppu:t});let o=i.toPlainObject(),s=I({transaction:o,gasPriceData:n.ppuMap[c]}),P=w.newFromPlainObject({...o,gasPrice:s}),u=j({transaction:P,price:l}),m=F({input:s.toString(),decimals:U,addCommas:!0,digits:G});n.updateCommonData({feeLimit:u.feeLimitFormatted,feeInFiatLimit:u.feeInFiatLimit,gasPrice:m,ppu:t})},Q=async()=>{M(new Error("Transaction signing cancelled by user")),await b(),n.closeUI()},f=()=>{a<n.transactionsCount-1&&(a++,T())},V=async()=>{let r=e[a].transaction,i=Number(r.nonce),{commonData:c}=await D({allTransactions:e,currentScreenIndex:a,egldLabel:h,network:g,gasPriceData:n.ppuMap[i],price:l,address:y,username:E,shard:C,signedIndexes:p,parsedTransactionsByDataField:L});if(!c.needsSigning)return p.push(a),f();let o=r.toPlainObject(),s=o.nonce,P=I({transaction:o,gasPriceData:n.ppuMap[s]}),u=w.newFromPlainObject({...o,gasPrice:P});try{let m=await H([u]);m&&(p.push(a),d.push(m[0]));let nn=a===e.length-1,an=e.filter(S=>S.needsSigning),tn=d.length===an.length;if(nn&&tn){let S=await K(d);return n.closeUI(),X(S)}f()}catch(m){n.closeUI(),M(m)}},Z=new Map([["NEXT_SIGN_TRANSACTIONS",f],["CONFIRM_SIGN_TRANSACTIONS",V],["CLOSE_SIGN_TRANSACTIONS",Q],["BACK_SIGN_TRANSACTIONS",q],["SET_PPU_SIGN_TRANSACTIONS",J]]);function $(){for(let[t,r]of Z)n.subscribeToEventBus(t,r)}$(),await T()})}export{Dn as a};
2
- //# sourceMappingURL=chunk-6BGPH7MV.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/strategies/helpers/signTransactions/signTransactions.ts"],
4
- "sourcesContent": ["import { getEconomics } from 'apiCalls/economics/getEconomics';\nimport { EMPTY_PPU } from 'constants/placeholders.constants';\nimport { Transaction } from 'lib/sdkCore';\nimport { DECIMALS, DIGITS, formatAmount } from 'lib/sdkDappUtils';\nimport { SignTransactionsStateManager } from 'managers/internal/SignTransactionsStateManager/SignTransactionsStateManager';\nimport {\n ISignTransactionsPanelCommonData,\n SignEventsEnum\n} from 'managers/internal/SignTransactionsStateManager/types';\nimport { getAccountInfo } from 'methods/account/getAccountInfo';\nimport { getEgldLabel } from 'methods/network/getEgldLabel';\nimport { cancelCrossWindowAction } from 'providers/helpers/cancelCrossWindowAction';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\nimport { getCommonData } from './helpers/getCommonData/getCommonData';\nimport { getRecommendedGasPrice } from './helpers/getCommonData/helpers/getRecommendedGasPrice';\nimport { getFeeData } from './helpers/getFeeData';\nimport { getMultiEsdtTransferData } from './helpers/getMultiEsdtTransferData/getMultiEsdtTransferData';\nimport { guardTransactions as getGuardedTransactions } from './helpers/guardTransactions/guardTransactions';\n\ntype SignTransactionsParamsType = {\n transactions?: Transaction[];\n handleSign: IProvider['signTransactions'];\n guardTransactions?: typeof getGuardedTransactions;\n};\n\nexport async function signTransactions({\n transactions = [],\n handleSign,\n guardTransactions = getGuardedTransactions\n}: SignTransactionsParamsType): Promise<Transaction[]> {\n const {\n account: { address, shard, username }\n } = getAccountInfo();\n const network = networkSelector(getState());\n\n const egldLabel = getEgldLabel();\n\n const { allTransactions, parsedTransactionsByDataField } =\n getMultiEsdtTransferData(transactions);\n\n let signedIndexes: number[] = [];\n\n const manager = SignTransactionsStateManager.getInstance();\n await manager.openUI();\n\n if (!manager) {\n throw new Error('Unable to establish connection with sign screens');\n }\n\n const handleCancel = async () => {\n await cancelCrossWindowAction();\n manager.closeUI();\n };\n\n manager.subscribeToEventBus(SignEventsEnum.CLOSE, handleCancel);\n\n return new Promise<Transaction[]>(async (resolve, reject) => {\n const signedTransactions: Transaction[] = [];\n const economics = await getEconomics({ baseURL: network.apiAddress });\n manager.notifyDataUpdate();\n manager.initializeGasPriceMap(allTransactions.map((tx) => tx.transaction));\n const price = economics?.price;\n\n let currentScreenIndex = 0;\n\n const updateScreen = async () => {\n const currentTransaction = allTransactions[currentScreenIndex];\n const transaction = currentTransaction?.transaction;\n\n const currentNonce = Number(transaction.nonce);\n\n manager.updateIsLoading(true);\n const { commonData, tokenTransaction, fungibleTransaction } =\n await getCommonData({\n allTransactions,\n currentScreenIndex,\n egldLabel,\n network,\n gasPriceData: manager.ppuMap[currentNonce],\n price,\n address,\n username,\n shard,\n signedIndexes,\n parsedTransactionsByDataField\n });\n\n manager.updateIsLoading(false);\n\n if (tokenTransaction) {\n manager.updateTokenTransaction(tokenTransaction);\n }\n\n if (fungibleTransaction) {\n manager.updateNonFungibleTransaction(\n fungibleTransaction.type,\n fungibleTransaction\n );\n }\n\n manager.updateCommonData(commonData);\n };\n\n const onBack = () => {\n if (currentScreenIndex > 0) {\n currentScreenIndex--;\n updateScreen();\n }\n };\n\n const onSetPpu = (\n ppu: ISignTransactionsPanelCommonData['ppu'] = EMPTY_PPU\n ) => {\n const currentTransaction = allTransactions[currentScreenIndex];\n const transaction = currentTransaction.transaction;\n const currentNonce = Number(transaction.nonce);\n\n manager.updateGasPriceMap({\n nonce: currentNonce,\n ppu\n });\n\n manager.updateCommonData({ ppu });\n\n const plainTransaction = transaction.toPlainObject();\n const newGasPrice = getRecommendedGasPrice({\n transaction: plainTransaction,\n gasPriceData: manager.ppuMap[currentNonce]\n });\n\n const newTransaction = Transaction.newFromPlainObject({\n ...plainTransaction,\n gasPrice: newGasPrice\n });\n\n const feeData = getFeeData({\n transaction: newTransaction,\n price\n });\n\n const formattedGasPrice = formatAmount({\n input: newGasPrice.toString(),\n decimals: DECIMALS,\n addCommas: true,\n digits: DIGITS\n });\n\n manager.updateCommonData({\n feeLimit: feeData.feeLimitFormatted,\n feeInFiatLimit: feeData.feeInFiatLimit,\n gasPrice: formattedGasPrice,\n ppu\n });\n };\n\n const onCancel = async () => {\n reject(new Error('Transaction signing cancelled by user'));\n await cancelCrossWindowAction();\n manager.closeUI();\n };\n\n const onNext = () => {\n if (currentScreenIndex < manager.transactionsCount - 1) {\n currentScreenIndex++;\n updateScreen();\n }\n };\n\n const onSign = async () => {\n const currentTransaction = allTransactions[currentScreenIndex];\n const transaction = currentTransaction.transaction;\n const currentNonce = Number(transaction.nonce);\n\n const { commonData } = await getCommonData({\n allTransactions,\n currentScreenIndex,\n egldLabel,\n network,\n gasPriceData: manager.ppuMap[currentNonce],\n price,\n address,\n username,\n shard,\n signedIndexes,\n parsedTransactionsByDataField\n });\n\n if (!commonData.needsSigning) {\n signedIndexes.push(currentScreenIndex);\n return onNext();\n }\n\n const plainTransaction = transaction.toPlainObject();\n const txNonce = plainTransaction.nonce;\n\n const newGasPrice = getRecommendedGasPrice({\n transaction: plainTransaction,\n gasPriceData: manager.ppuMap[txNonce]\n });\n\n const transactionToSign = Transaction.newFromPlainObject({\n ...plainTransaction,\n gasPrice: newGasPrice\n });\n\n try {\n const signedTxs = await handleSign([transactionToSign]);\n if (signedTxs) {\n signedIndexes.push(currentScreenIndex);\n signedTransactions.push(signedTxs[0]);\n }\n\n const isLastScreen = currentScreenIndex === allTransactions.length - 1;\n const allSignableTransactions = allTransactions.filter(\n (tx) => tx.needsSigning\n );\n\n const areAllTransactionsSigned =\n signedTransactions.length === allSignableTransactions.length;\n\n if (isLastScreen && areAllTransactionsSigned) {\n const optionallyGuardedTransactions =\n await guardTransactions(signedTransactions);\n manager.closeUI();\n return resolve(optionallyGuardedTransactions);\n }\n\n onNext();\n } catch (error) {\n manager.closeUI();\n reject(error);\n }\n };\n\n const eventHandlersMap = new Map([\n [SignEventsEnum.NEXT, onNext],\n [SignEventsEnum.CONFIRM, onSign],\n [SignEventsEnum.CLOSE, onCancel],\n [SignEventsEnum.BACK, onBack],\n [SignEventsEnum.SET_PPU, onSetPpu]\n ]);\n\n function setupEventListeners() {\n for (const [event, handler] of eventHandlersMap) {\n manager.subscribeToEventBus(event, handler);\n }\n }\n\n setupEventListeners();\n await updateScreen();\n });\n}\n"],
5
- "mappings": "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",
6
- "names": ["signTransactions", "transactions", "handleSign", "guardTransactions", "address", "shard", "username", "getAccountInfo", "network", "networkSelector", "getState", "egldLabel", "getEgldLabel", "allTransactions", "parsedTransactionsByDataField", "getMultiEsdtTransferData", "signedIndexes", "manager", "SignTransactionsStateManager", "handleCancel", "cancelCrossWindowAction", "resolve", "reject", "signedTransactions", "economics", "getEconomics", "tx", "price", "currentScreenIndex", "updateScreen", "transaction", "currentNonce", "commonData", "tokenTransaction", "fungibleTransaction", "getCommonData", "onBack", "onSetPpu", "ppu", "plainTransaction", "newGasPrice", "getRecommendedGasPrice", "newTransaction", "Transaction", "feeData", "getFeeData", "formattedGasPrice", "formatAmount", "DECIMALS", "DIGITS", "onCancel", "onNext", "onSign", "txNonce", "transactionToSign", "signedTxs", "isLastScreen", "allSignableTransactions", "areAllTransactionsSigned", "optionallyGuardedTransactions", "error", "eventHandlersMap", "setupEventListeners", "event", "handler"]
7
- }
@@ -1,2 +0,0 @@
1
- var n=typeof window<"u"?window:{};export{n as a};
2
- //# sourceMappingURL=chunk-7QCBLUWB.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/constants/window.constants.ts"],
4
- "sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n"],
5
- "mappings": "AAAO,IAAMA,EACX,OAAO,OAAW,IAAc,OAAU,CAAC",
6
- "names": ["safeWindow"]
7
- }
@@ -1,2 +0,0 @@
1
- import{u as o}from"./chunk-4YETXBJD.mjs";import{b as t}from"./chunk-LTF535HP.mjs";function c(r=o()){return t(r)}export{c as a};
2
- //# sourceMappingURL=chunk-AC2L3PV3.mjs.map
@@ -1,2 +0,0 @@
1
- import{d as n}from"./chunk-F3AMNJ5K.mjs";import{o as i}from"./chunk-2G6DWPQU.mjs";import{u as e}from"./chunk-4YETXBJD.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";async function d(){let r=t(e());if(!r)return;let o=await n.create({type:r});if(!o)throw new Error("Provider not found");i(o)}export{d as a};
2
- //# sourceMappingURL=chunk-AJJVMOJF.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/helpers/restoreProvider.ts"],
4
- "sourcesContent": ["import { providerTypeSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { setAccountProvider } from './accountProvider';\nimport { ProviderFactory } from '../ProviderFactory';\n\nexport async function restoreProvider() {\n const type = providerTypeSelector(getState());\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 setAccountProvider(provider);\n}\n"],
5
- "mappings": "oKAKA,eAAsBA,GAAkB,CACtC,IAAMC,EAAOC,EAAqBC,EAAS,CAAC,EAE5C,GAAI,CAACF,EACH,OAGF,IAAMG,EAAW,MAAMC,EAAgB,OAAO,CAC5C,KAAAJ,CACF,CAAC,EAED,GAAI,CAACG,EACH,MAAM,IAAI,MAAM,oBAAoB,EAGtCE,EAAmBF,CAAQ,CAC7B",
6
- "names": ["restoreProvider", "type", "providerTypeSelector", "getState", "provider", "ProviderFactory", "setAccountProvider"]
7
- }
@@ -1,2 +0,0 @@
1
- import{b as s,d as i,h as o}from"./chunk-2G6DWPQU.mjs";var r=1e4,u=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=r;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let e=setTimeout(()=>{o(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;let a=setTimeout(()=>{i(t);let n=s[t];n?.()},e);this.timeoutIntervals.set(t,a)};this.stop=t=>{let e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||r}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};export{u as a};
2
- //# sourceMappingURL=chunk-BVKOA6WH.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/managers/internal/ToastManager/helpers/LifetimeManager.ts"],
4
- "sourcesContent": ["import {\n customToastCloseHandlersDictionary,\n removeCustomToast,\n removeTransactionToast\n} from 'store/actions/toasts/toastsActions';\n\ninterface IToastProgressManagerParams {\n successfulToastLifetime?: number;\n}\n\nconst DEFAULT_SUCCESSFUL_TOAST_LIFETIME = 10000;\n\nexport class LifetimeManager {\n private timeoutIntervals: Map<string, ReturnType<typeof setTimeout>> =\n new Map();\n private successfulToastLifetime: number = DEFAULT_SUCCESSFUL_TOAST_LIFETIME;\n\n constructor() {}\n\n public init({ successfulToastLifetime }: IToastProgressManagerParams) {\n this.successfulToastLifetime =\n successfulToastLifetime || DEFAULT_SUCCESSFUL_TOAST_LIFETIME;\n }\n\n public start = (toastId: string) => {\n this.stop(toastId);\n\n if (this.successfulToastLifetime <= 0) {\n return;\n }\n\n const timeout = setTimeout(() => {\n removeTransactionToast(toastId);\n }, this.successfulToastLifetime);\n\n this.timeoutIntervals.set(toastId, timeout);\n };\n\n public startWithCustomDuration = (toastId: string, duration: number) => {\n this.stop(toastId);\n\n if (duration <= 0) {\n return;\n }\n\n const timeout = setTimeout(() => {\n removeCustomToast(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n }, duration);\n\n this.timeoutIntervals.set(toastId, timeout);\n };\n\n public stop = (toastId: string) => {\n const timeout = this.timeoutIntervals.get(toastId);\n if (timeout) {\n clearTimeout(timeout);\n this.timeoutIntervals.delete(toastId);\n }\n };\n\n public destroy() {\n this.timeoutIntervals.forEach((interval) => clearTimeout(interval));\n this.timeoutIntervals.clear();\n }\n}\n"],
5
- "mappings": "uDAUA,IAAMA,EAAoC,IAE7BC,EAAN,KAAsB,CAK3B,aAAc,CAJd,KAAQ,iBACN,IAAI,IACN,KAAQ,wBAAkCD,EAS1C,KAAO,MAASE,GAAoB,CAGlC,GAFA,KAAK,KAAKA,CAAO,EAEb,KAAK,yBAA2B,EAClC,OAGF,IAAMC,EAAU,WAAW,IAAM,CAC/BC,EAAuBF,CAAO,CAChC,EAAG,KAAK,uBAAuB,EAE/B,KAAK,iBAAiB,IAAIA,EAASC,CAAO,CAC5C,EAEA,KAAO,wBAA0B,CAACD,EAAiBG,IAAqB,CAGtE,GAFA,KAAK,KAAKH,CAAO,EAEbG,GAAY,EACd,OAGF,IAAMF,EAAU,WAAW,IAAM,CAC/BG,EAAkBJ,CAAO,EACzB,IAAMK,EAAcC,EAAmCN,CAAO,EAC9DK,IAAc,CAChB,EAAGF,CAAQ,EAEX,KAAK,iBAAiB,IAAIH,EAASC,CAAO,CAC5C,EAEA,KAAO,KAAQD,GAAoB,CACjC,IAAMC,EAAU,KAAK,iBAAiB,IAAID,CAAO,EAC7CC,IACF,aAAaA,CAAO,EACpB,KAAK,iBAAiB,OAAOD,CAAO,EAExC,CA3Ce,CAER,KAAK,CAAE,wBAAAO,CAAwB,EAAgC,CACpE,KAAK,wBACHA,GAA2BT,CAC/B,CAwCO,SAAU,CACf,KAAK,iBAAiB,QAASU,GAAa,aAAaA,CAAQ,CAAC,EAClE,KAAK,iBAAiB,MAAM,CAC9B,CACF",
6
- "names": ["DEFAULT_SUCCESSFUL_TOAST_LIFETIME", "LifetimeManager", "toastId", "timeout", "removeTransactionToast", "duration", "removeCustomToast", "handleClose", "customToastCloseHandlersDictionary", "successfulToastLifetime", "interval"]
7
- }
@@ -1,2 +0,0 @@
1
- import{c as a,f as e}from"./chunk-K3G3SPRT.mjs";var m=t=>({egldValueData:{value:t,formattedValue:e({input:t}),decimals:a}});export{m as a};
2
- //# sourceMappingURL=chunk-BXUBAIBU.mjs.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-CO3V5DOG.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-RIXZPR7R.mjs";function S(e){return t()(e)}export{S as a};
2
- //# sourceMappingURL=chunk-CT6RFJJM.mjs.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-7QCBLUWB.mjs";var o=()=>a.localStorage;export{o as a};
2
- //# sourceMappingURL=chunk-DTI4TQ2I.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as I}from"./chunk-5AR7YU5K.mjs";import{a as l}from"./chunk-V7ZVI2WS.mjs";import{a as f}from"./chunk-VK47SZJ2.mjs";import{j as T,k as m,l as d,n as p}from"./chunk-65L5EBBL.mjs";import{a as u}from"./chunk-6L56KRO6.mjs";var q=async({toastList:S,transactionsSessions:g,account:o,existingCompletedTransactions:y=[]})=>{let n=[],a=[...y],r=f(),F=l();for(let t of S.transactionToasts){let e=g[t.toastId];if(!e?.status)continue;let{status:s,transactions:C,transactionsDisplayInfo:P}=e,x=await u({transactions:C,address:o.address,explorerAddress:r,egldLabel:F}),A=p(s),E=d(s),L=m(s),i=A||E||L,v=T(s),{startTime:R,endTime:b}=t;if(i&&a.some(h=>h.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:x,transactionsDisplayInfo:P,explorerAddress:r,startTime:R,endTime:b});i&&a.push(c),v&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{q as a};
2
- //# sourceMappingURL=chunk-EPMXW255.mjs.map
@@ -1,2 +0,0 @@
1
- import{s as n}from"./chunk-4YETXBJD.mjs";import{b as t}from"./chunk-UTWIKUIK.mjs";var c=a=>t(`transaction-${a}`)(n().getState())??null;export{c as a};
2
- //# sourceMappingURL=chunk-EVL6UUJJ.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as A}from"./chunk-YRHMGKLM.mjs";import{a as ce}from"./chunk-IEJARRBP.mjs";import{a as de}from"./chunk-M3YL36ZL.mjs";import{a as oe}from"./chunk-G7XIDD62.mjs";import{a as R}from"./chunk-MHCIV2K5.mjs";import{a as ne}from"./chunk-QFWMIF3L.mjs";import{a as ie}from"./chunk-OOPHCYRC.mjs";import{a as T}from"./chunk-M7R5JSEH.mjs";import{a as te}from"./chunk-YUFPUG5O.mjs";import{a as le}from"./chunk-V7QVBIYB.mjs";import{a as p}from"./chunk-Y574J2OK.mjs";import{a as re}from"./chunk-HR6GP43Q.mjs";import{a as ae}from"./chunk-6BGPH7MV.mjs";import{a as se}from"./chunk-KY7KOSJJ.mjs";import{a as ee}from"./chunk-FFNSZC37.mjs";import{b as $}from"./chunk-4Z3DZ2A3.mjs";import{e as f,f as Z}from"./chunk-FFHVVGYW.mjs";import{i as P,n as b,o as C,p as I}from"./chunk-2G6DWPQU.mjs";import{g as J}from"./chunk-QD3CFFVT.mjs";import{a as Y}from"./chunk-OH6SHSQZ.mjs";import{a as Q}from"./chunk-SKEL25G3.mjs";import{a as U,s as K,u as d}from"./chunk-4YETXBJD.mjs";import{a as G}from"./chunk-VNLGNNIL.mjs";import{b as q,c as F,d as j}from"./chunk-IEJTMYFW.mjs";import{a as B}from"./chunk-LTF535HP.mjs";import{b as L,c as H}from"./chunk-SAAOQW7P.mjs";import{a as z}from"./chunk-VMFJUT3G.mjs";import{a as c}from"./chunk-I7ODJJY3.mjs";import{b as X}from"./chunk-C4CJOZ4L.mjs";import{a as o}from"./chunk-NHXPNROG.mjs";import{a as S}from"./chunk-7QCBLUWB.mjs";import{IframeLoginTypes as me}from"@multiversx/sdk-web-wallet-iframe-provider/out/constants";var w=class extends p{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await oe({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!T())return;await R.getInstance().init(e)};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await ae({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await pe({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await ie({shouldInitProvider:!0});this.provider=r}catch(r){throw P({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"times",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await z(S),await this.initLegderConnectManager(this.options?.anchor);let e=R.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((n,s)=>ne({manager:e,resolve:n,reject:s,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ue=3e4,fe=5e3,we=3e3,W=class a{constructor(){this.store=K();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let{providerType:i}=G(this.store.getState()),e=B(this.store.getState()).address;return!!(i===o.ledger&&e)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let i=$(d());if(!(!this.shouldCheckConnection()||i))try{await I().getProvider().getAddress()}catch{if(P({toastId:"ledger-provider-idle-warning",icon:"times",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,fe)}},ue))};this.getLedgerAddress=async()=>this.shouldCheckConnection()?await I().getProvider().getAddress():void 0;this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let i=new w({shouldInitProvider:!0});await i.init();let e=new b(i);i.getType=()=>o.ledger,C(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,P({toastId:"ledger-provider-idle-warning",duration:we,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var _=class extends p{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:r,manager:t}=await this.initSignState();this.setPopupConsent();try{let n=await this.provider.signTransactions(e)??[];return await se(n)}catch(n){throw await r({shouldCancelAction:!0}),n}finally{t.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return this.setPopupConsent(),await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.crossWindow})};this.setPopupConsent=()=>{let e=j(d());if(!this.provider)throw new Error("Provider is not initialized.");(e?.isBrowserWithPopupConfirmation||X)&&this.provider.setShouldShowConsentPopup(!0)};this.walletAddress=e?.walletAddress,this.provider=ee.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=L(d()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.setPopupConsent(),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return o.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as ye}from"@multiversx/sdk-extension-provider/out/extensionProvider";var x=class extends p{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(n){throw await t({shouldCancelAction:!1}),n}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.extension})};this.provider=ye.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return o.extension}};var Pe={passkey:o.passkey,metamask:o.metamask},E=class extends p{constructor({type:e,address:r,walletUrl:t}){super(r);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)}catch(n){throw await t({shouldCancelAction:!0}),n}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider||!this.type)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c[this.type]})};this.type=e,this.walletUrl=t??"",this.provider=de.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=L(d());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setLoginType(this.type),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return Pe[this.type]}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as ge}from"@multiversx/sdk-wallet-connect-provider/out";var ve=[f.CANCEL_ACTION,f.SIGN_LOGIN_TOKEN],O=class extends p{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)}catch(n){throw await t({shouldCancelAction:!0}),await this.sendCustomRequest({method:f.CANCEL_ACTION,action:ge.CANCEL_ACTION}),n}finally{r.closeUI()}};this.cancelAction=async()=>{await this.sendCustomRequest({method:f.CANCEL_ACTION,action:ge.CANCEL_ACTION})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:c.extension})};this.config=e}async init(){try{await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await z(S),await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:n}=await this.provider.connect({methods:this.methods});this._approval=n,A.getInstance().updateData({wcURI:t})}async initWalletConnectManager(){if(!!T())return;await A.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=T(),t=H(d());if(q(d())&&ve.push(f.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let h={onClientLogin:()=>{},onClientLogout:()=>{Q()},onClientEvent:v=>{}};try{let{walletConnectV2ProjectId:v,walletConnectV2Options:N={},walletConnectV2RelayAddress:D=""}=e,y=new Z(h,t,D,v,N);return await y.init(),{walletConnectProvider:y,dappMethods:ve}}catch(v){throw console.error("Unable to connect",v),r&&await this.logout(),v}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=A.getInstance(),{uri:n="",approval:s}=await this.provider.connect({methods:this.methods});t.updateData({wcURI:n});let l=await this.provider.login({approval:s,token:e?.token}),{address:m="",signature:h=""}=l??{};return t.handleClose({isLoginFinished:!!m}),{address:m,signature:h}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:n="",signature:s=""}=t??{};return A.getInstance().handleClose({isLoginFinished:!!n}),{address:n,signature:s}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var M=class{static set customProviders(i){this._customProviders=i}static get customProviders(){return this._customProviders}static async create({type:i,anchor:e}){let r=null;switch(i){case o.extension:{r=new x;break}case o.crossWindow:{r=new _;break}case o.ledger:{r=new w({anchor:e}),await W.getInstance().init();break}case o.metamask:{r=new E({type:me.metamask});break}case o.passkey:{r=new E({type:me.passkey});break}case o.walletConnect:{let s=F(d());if(!s?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new O({anchor:e,...s});break}case o.webview:{r=new le;break}default:{let s=Y();for(let l of this._customProviders)l.type===i&&(r=await l.constructor({address:s,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new b(r);C(t),U(i);let n=i in[o.crossWindow,o.metamask,o.passkey];return ce(n?{skipLoginMethod:i}:null),t}static async destroy(){I().cancelLogin(),C(null),U(o.none)}};M._customProviders=[];var Ie=(a,i)=>a.some(e=>e.type===i);async function g({message:a,handleSignMessage:i,cancelAction:e,providerType:r}){return await new Promise(async(n,s)=>{let{manager:l,onClose:m}=await re({cancelAction:e}),h=Object.values(M.customProviders),v=h.reduce((u,V)=>(u[V.type]=V.name,u),{}),N={...c,...v},D=async()=>{await m({shouldCancelAction:!0}),s({message:"Signing canceled"})};l.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",D);let y=Ie(h,r)?r:o.none;l.updateData({name:N[y],type:y});try{let u=await i(a);n(u)}catch(u){await m({shouldCancelAction:!0}),s(u)}finally{l.closeUI()}})}async function pe({message:a,handleSignMessage:i}){try{return await g({message:a,handleSignMessage:i,providerType:c.ledger})}catch(e){let{errorMessage:r}=te(e);throw r?{message:r}:e}}export{pe as a,w as b,W as c,M as d,g as e,_ as f,x as g,E as h,O as i};
2
- //# sourceMappingURL=chunk-F3AMNJ5K.mjs.map