@multiversx/sdk-dapp 5.0.0-alpha.1 → 5.0.0-alpha.11

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 (912) hide show
  1. package/README.md +311 -77
  2. package/out/__chunks__/{chunk-IXJOO5U4.mjs → chunk-266T724O.mjs} +2 -2
  3. package/out/__chunks__/{chunk-HQJG7CFV.mjs → chunk-2AB2KTYM.mjs} +2 -2
  4. package/out/__chunks__/chunk-2I4BJK55.mjs +2 -0
  5. package/out/__chunks__/chunk-2I4BJK55.mjs.map +7 -0
  6. package/out/__chunks__/{chunk-AJEWAECH.mjs → chunk-2I7FJNXZ.mjs} +2 -2
  7. package/out/__chunks__/{chunk-675ZW4IF.mjs → chunk-2SOS3KAT.mjs} +2 -2
  8. package/out/__chunks__/chunk-2X62ALFS.mjs +2 -0
  9. package/out/__chunks__/chunk-2X62ALFS.mjs.map +7 -0
  10. package/out/__chunks__/chunk-2ZNQYHNX.mjs +2 -0
  11. package/out/__chunks__/chunk-2ZNQYHNX.mjs.map +7 -0
  12. package/out/__chunks__/{chunk-DZ5L5MZT.mjs → chunk-3BXYTP4Q.mjs} +2 -2
  13. package/out/__chunks__/chunk-3BXYTP4Q.mjs.map +7 -0
  14. package/out/__chunks__/{chunk-JGULQG2H.mjs → chunk-3EI6B7OU.mjs} +2 -2
  15. package/out/__chunks__/chunk-3GXUTDCB.mjs +2 -0
  16. package/out/__chunks__/chunk-3GXUTDCB.mjs.map +7 -0
  17. package/out/__chunks__/chunk-3LBQYLDY.mjs +2 -0
  18. package/out/__chunks__/chunk-3LBQYLDY.mjs.map +7 -0
  19. package/out/__chunks__/{chunk-UF45HLIK.mjs → chunk-3MWXXTQQ.mjs} +2 -2
  20. package/out/__chunks__/chunk-3U6H4VPO.mjs +2 -0
  21. package/out/__chunks__/chunk-3U6H4VPO.mjs.map +7 -0
  22. package/out/__chunks__/chunk-3YK6SW7E.mjs +2 -0
  23. package/out/__chunks__/chunk-3ZEUVYQF.mjs +2 -0
  24. package/out/__chunks__/chunk-3ZEUVYQF.mjs.map +7 -0
  25. package/out/__chunks__/chunk-3ZHPM667.mjs +2 -0
  26. package/out/__chunks__/chunk-3ZHPM667.mjs.map +7 -0
  27. package/out/__chunks__/chunk-4RGFBPII.mjs +2 -0
  28. package/out/__chunks__/{chunk-YPNKNMW5.mjs → chunk-4RJ23OT7.mjs} +2 -2
  29. package/out/__chunks__/chunk-535PAVZN.mjs +2 -0
  30. package/out/__chunks__/chunk-55SACSMS.mjs +2 -0
  31. package/out/__chunks__/chunk-55SACSMS.mjs.map +7 -0
  32. package/out/__chunks__/chunk-5OQ6KHGF.mjs +2 -0
  33. package/out/__chunks__/chunk-5OQ6KHGF.mjs.map +7 -0
  34. package/out/__chunks__/chunk-62PJZCUP.mjs +2 -0
  35. package/out/__chunks__/chunk-6LY7ZRDT.mjs +2 -0
  36. package/out/__chunks__/chunk-6LY7ZRDT.mjs.map +7 -0
  37. package/out/__chunks__/chunk-7B2IRMVK.mjs +2 -0
  38. package/out/__chunks__/{chunk-TYYA6E7F.mjs → chunk-7BP53CXF.mjs} +2 -2
  39. package/out/__chunks__/{chunk-LD4NALNZ.mjs → chunk-7D2BEFUJ.mjs} +2 -2
  40. package/out/__chunks__/{chunk-W4GE4ZDP.mjs → chunk-AAMNTAXA.mjs} +2 -2
  41. package/out/__chunks__/{chunk-YVD46DFI.mjs → chunk-ABHYXD3U.mjs} +2 -2
  42. package/out/__chunks__/chunk-AFEGGHNM.mjs +2 -0
  43. package/out/__chunks__/chunk-AHHTRI3Y.mjs +2 -0
  44. package/out/__chunks__/chunk-AHHTRI3Y.mjs.map +7 -0
  45. package/out/__chunks__/chunk-ASRYY6T3.mjs +2 -0
  46. package/out/__chunks__/{chunk-PDT22D2C.mjs → chunk-AV4HSXYZ.mjs} +2 -2
  47. package/out/__chunks__/chunk-AV6BSOLO.mjs +2 -0
  48. package/out/__chunks__/{chunk-PV5A7PX4.mjs.map → chunk-AV6BSOLO.mjs.map} +2 -2
  49. package/out/__chunks__/{chunk-5WVAF7RB.mjs → chunk-B5AW5LX5.mjs} +2 -2
  50. package/out/__chunks__/chunk-BMXLSDJM.mjs +2 -0
  51. package/out/__chunks__/chunk-BMXLSDJM.mjs.map +7 -0
  52. package/out/__chunks__/{chunk-OYZFSQEK.mjs → chunk-BNWGWGXY.mjs} +2 -2
  53. package/out/__chunks__/{chunk-KMFYDHOY.mjs → chunk-BRBIUWAW.mjs} +2 -2
  54. package/out/__chunks__/{chunk-3NG7LKF4.mjs → chunk-BSWV5MEC.mjs} +2 -2
  55. package/out/__chunks__/{chunk-UYUKTC4X.mjs → chunk-C37IYZAK.mjs} +2 -2
  56. package/out/__chunks__/chunk-C6JD2OFD.mjs +2 -0
  57. package/out/__chunks__/chunk-C6JD2OFD.mjs.map +7 -0
  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-SNKFFCSF.mjs → chunk-DHPD6E7P.mjs} +2 -2
  61. package/out/__chunks__/chunk-DICSPHT2.mjs +2 -0
  62. package/out/__chunks__/{chunk-YVVDA6LN.mjs.map → chunk-DICSPHT2.mjs.map} +1 -1
  63. package/out/__chunks__/{chunk-243OAHYD.mjs → chunk-DKE2ONRB.mjs} +2 -2
  64. package/out/__chunks__/chunk-DKE2ONRB.mjs.map +7 -0
  65. package/out/__chunks__/{chunk-M6ATGCOM.mjs → chunk-DNHKXKYY.mjs} +2 -2
  66. package/out/__chunks__/{chunk-7YGJXJUC.mjs → chunk-DPSC4NIK.mjs} +2 -2
  67. package/out/__chunks__/chunk-DT6YLEPL.mjs +2 -0
  68. package/out/__chunks__/{chunk-OF6HBWFR.mjs → chunk-DV3XIKOX.mjs} +2 -2
  69. package/out/__chunks__/{chunk-NM3KJ3EA.mjs → chunk-DVY6YKH6.mjs} +2 -2
  70. package/out/__chunks__/chunk-EQMLAAI2.mjs +2 -0
  71. package/out/__chunks__/chunk-EQMLAAI2.mjs.map +7 -0
  72. package/out/__chunks__/chunk-ESLVKRXK.mjs +2 -0
  73. package/out/__chunks__/{chunk-L2JWXTGG.mjs → chunk-EUVZQRU5.mjs} +2 -2
  74. package/out/__chunks__/chunk-FEFZKA2B.mjs +2 -0
  75. package/out/__chunks__/{chunk-WW4BBBLW.mjs → chunk-FELZAGW5.mjs} +2 -2
  76. package/out/__chunks__/{chunk-2AAKENSP.mjs → chunk-FIVH6RKU.mjs} +2 -2
  77. package/out/__chunks__/{chunk-SBQJGS63.mjs → chunk-FIXSEPFX.mjs} +2 -2
  78. package/out/__chunks__/chunk-FMQYLMTU.mjs +2 -0
  79. package/out/__chunks__/chunk-FMQYLMTU.mjs.map +7 -0
  80. package/out/__chunks__/{chunk-I66YT2S2.mjs → chunk-FMUDQBZE.mjs} +2 -2
  81. package/out/__chunks__/{chunk-YAXVLGG3.mjs → chunk-FS2F24A7.mjs} +2 -2
  82. package/out/__chunks__/{chunk-42KJRIAT.mjs → chunk-HCDOXUDA.mjs} +2 -2
  83. package/out/__chunks__/{chunk-X2JK27T3.mjs → chunk-HN244QVP.mjs} +2 -2
  84. package/out/__chunks__/{chunk-PPA7AFVD.mjs → chunk-HTVULYKB.mjs} +2 -2
  85. package/out/__chunks__/chunk-IAK3KHJ7.mjs +2 -0
  86. package/out/__chunks__/chunk-IAK3KHJ7.mjs.map +7 -0
  87. package/out/__chunks__/{chunk-SF7XXVIO.mjs → chunk-ISPRIGOE.mjs} +2 -2
  88. package/out/__chunks__/chunk-J4CPYFK6.mjs +2 -0
  89. package/out/__chunks__/{chunk-K3G3SPRT.mjs.map → chunk-J4CPYFK6.mjs.map} +1 -1
  90. package/out/__chunks__/chunk-J75OEBAP.mjs +2 -0
  91. package/out/__chunks__/{chunk-C3KLB5TA.mjs.map → chunk-J75OEBAP.mjs.map} +1 -1
  92. package/out/__chunks__/chunk-JAUTVROS.mjs +2 -0
  93. package/out/__chunks__/chunk-JAUTVROS.mjs.map +7 -0
  94. package/out/__chunks__/{chunk-6ZDBHK76.mjs → chunk-JIJSBQEU.mjs} +2 -2
  95. package/out/__chunks__/{chunk-CN4RHVUE.mjs → chunk-JOB7ALAF.mjs} +2 -2
  96. package/out/__chunks__/{chunk-CN4RHVUE.mjs.map → chunk-JOB7ALAF.mjs.map} +2 -2
  97. package/out/__chunks__/chunk-JR23TXKP.mjs +2 -0
  98. package/out/__chunks__/chunk-JR23TXKP.mjs.map +7 -0
  99. package/out/__chunks__/{chunk-PEDR76UT.mjs → chunk-KEAFX54V.mjs} +2 -2
  100. package/out/__chunks__/chunk-KN7QMGWV.mjs +2 -0
  101. package/out/__chunks__/{chunk-U2TDLWBA.mjs.map → chunk-KN7QMGWV.mjs.map} +1 -1
  102. package/out/__chunks__/{chunk-TAI3I5BS.mjs → chunk-KSKOSHYV.mjs} +2 -2
  103. package/out/__chunks__/{chunk-LNABNVAO.mjs → chunk-LIPGE2RA.mjs} +2 -2
  104. package/out/__chunks__/chunk-LKXBH3I3.mjs +2 -0
  105. package/out/__chunks__/{chunk-UFMHCVBL.mjs.map → chunk-LKXBH3I3.mjs.map} +3 -3
  106. package/out/__chunks__/{chunk-XO5D3FNU.mjs → chunk-LUDF7ZUR.mjs} +2 -2
  107. package/out/__chunks__/chunk-LYTZPES3.mjs +2 -0
  108. package/out/__chunks__/chunk-LYTZPES3.mjs.map +7 -0
  109. package/out/__chunks__/{chunk-KJCZ5HAU.mjs → chunk-MJEZGI7G.mjs} +2 -2
  110. package/out/__chunks__/chunk-MRJ7P7KU.mjs +2 -0
  111. package/out/__chunks__/chunk-MRJ7P7KU.mjs.map +7 -0
  112. package/out/__chunks__/{chunk-4PV6SFXA.mjs → chunk-N6SD2OVU.mjs} +2 -2
  113. package/out/__chunks__/{chunk-C4CJOZ4L.mjs → chunk-NKJ7OVPV.mjs} +2 -2
  114. package/out/__chunks__/chunk-NO7YH2FT.mjs +2 -0
  115. package/out/__chunks__/chunk-NXV7YLV6.mjs +2 -0
  116. package/out/__chunks__/chunk-NXV7YLV6.mjs.map +7 -0
  117. package/out/__chunks__/chunk-O2SZII5H.mjs +2 -0
  118. package/out/__chunks__/chunk-O3V4TGXK.mjs +2 -0
  119. package/out/__chunks__/{chunk-GHDPXQZ5.mjs.map → chunk-O3V4TGXK.mjs.map} +3 -3
  120. package/out/__chunks__/{chunk-TVBOE2RK.mjs → chunk-OEPTRJEB.mjs} +1 -1
  121. package/out/__chunks__/{chunk-TVBOE2RK.mjs.map → chunk-OEPTRJEB.mjs.map} +1 -1
  122. package/out/__chunks__/chunk-OEYIF65Y.mjs +2 -0
  123. package/out/__chunks__/chunk-OEYIF65Y.mjs.map +7 -0
  124. package/out/__chunks__/chunk-OJV6XRG5.mjs +2 -0
  125. package/out/__chunks__/chunk-OJV6XRG5.mjs.map +7 -0
  126. package/out/__chunks__/{chunk-TLKMUVQJ.mjs → chunk-ORHJGVU5.mjs} +2 -2
  127. package/out/__chunks__/{chunk-2HWIJ4CV.mjs → chunk-P3BXXGQA.mjs} +2 -2
  128. package/out/__chunks__/{chunk-G2DLIXFQ.mjs → chunk-PCY7ULK2.mjs} +2 -2
  129. package/out/__chunks__/chunk-Q7L5T72K.mjs +2 -0
  130. package/out/__chunks__/{chunk-LTF535HP.mjs → chunk-QJSB5NX4.mjs} +2 -2
  131. package/out/__chunks__/{chunk-VIJUIJ4V.mjs → chunk-QSBLXZFC.mjs} +2 -2
  132. package/out/__chunks__/{chunk-ENTPR3MV.mjs → chunk-QWIXKUDO.mjs} +2 -2
  133. package/out/__chunks__/chunk-QWNJJXNH.mjs +2 -0
  134. package/out/__chunks__/chunk-QWNJJXNH.mjs.map +7 -0
  135. package/out/__chunks__/chunk-R53MCZI6.mjs +2 -0
  136. package/out/__chunks__/chunk-R53MCZI6.mjs.map +7 -0
  137. package/out/__chunks__/chunk-RA4VU3NM.mjs +2 -0
  138. package/out/__chunks__/chunk-REI3WYXH.mjs +2 -0
  139. package/out/__chunks__/chunk-REI3WYXH.mjs.map +7 -0
  140. package/out/__chunks__/{chunk-NJ73RJ4B.mjs → chunk-RIFXW4D3.mjs} +2 -2
  141. package/out/__chunks__/{chunk-Y3YLDFXK.mjs → chunk-S75GQPJQ.mjs} +2 -2
  142. package/out/__chunks__/{chunk-NCUYIZYI.mjs → chunk-SHDTJ5GB.mjs} +2 -2
  143. package/out/__chunks__/{chunk-3IYQANTT.mjs → chunk-SNBLSIKQ.mjs} +2 -2
  144. package/out/__chunks__/chunk-TAQN5HUK.mjs +2 -0
  145. package/out/__chunks__/{chunk-DZ3UVNJK.mjs.map → chunk-TAQN5HUK.mjs.map} +2 -2
  146. package/out/__chunks__/chunk-TQA3JDNV.mjs +2 -0
  147. package/out/__chunks__/chunk-TQA3JDNV.mjs.map +7 -0
  148. package/out/__chunks__/chunk-TRMQFQOQ.mjs +1 -0
  149. package/out/__chunks__/chunk-U6KSTPE7.mjs +2 -0
  150. package/out/__chunks__/chunk-U6KSTPE7.mjs.map +7 -0
  151. package/out/__chunks__/chunk-UAW7SD6P.mjs +2 -0
  152. package/out/__chunks__/{chunk-QQ4OPT5A.mjs → chunk-VJ2DAL5M.mjs} +2 -2
  153. package/out/__chunks__/chunk-VMFJUT3G.mjs +2 -0
  154. package/out/__chunks__/chunk-VMFJUT3G.mjs.map +7 -0
  155. package/out/__chunks__/chunk-WFAPPSOI.mjs +1 -0
  156. package/out/__chunks__/chunk-WHEXX3BD.mjs +1 -0
  157. package/out/__chunks__/{chunk-RNCF2III.mjs → chunk-WMY46KJS.mjs} +2 -2
  158. package/out/__chunks__/{chunk-M3C5NS6M.mjs → chunk-X4ZYTNNA.mjs} +2 -2
  159. package/out/__chunks__/chunk-XGV7BGBC.mjs +2 -0
  160. package/out/__chunks__/chunk-XGV7BGBC.mjs.map +7 -0
  161. package/out/__chunks__/{chunk-SLLCCPCW.mjs → chunk-XOWM53LI.mjs} +2 -2
  162. package/out/__chunks__/{chunk-SLLCCPCW.mjs.map → chunk-XOWM53LI.mjs.map} +1 -1
  163. package/out/__chunks__/chunk-XXKSDA5P.mjs +2 -0
  164. package/out/__chunks__/chunk-XXKSDA5P.mjs.map +7 -0
  165. package/out/__chunks__/chunk-XZVYUFVM.mjs +2 -0
  166. package/out/__chunks__/chunk-XZVYUFVM.mjs.map +7 -0
  167. package/out/__chunks__/{chunk-YRIDJGOK.mjs → chunk-Y53MWKLT.mjs} +2 -2
  168. package/out/__chunks__/{chunk-6GNOK3TJ.mjs → chunk-YB2E5WOO.mjs} +1 -1
  169. package/out/__chunks__/chunk-YB2E5WOO.mjs.map +7 -0
  170. package/out/__chunks__/{chunk-JTQCNFCR.mjs → chunk-YB7AHPBR.mjs} +2 -2
  171. package/out/__chunks__/chunk-YEAVK4T2.mjs +2 -0
  172. package/out/__chunks__/chunk-YEAVK4T2.mjs.map +7 -0
  173. package/out/__chunks__/chunk-YK4XGF57.mjs +2 -0
  174. package/out/__chunks__/chunk-YLN3OBBP.mjs +2 -0
  175. package/out/__chunks__/{chunk-MCZUQPRA.mjs → chunk-YTFYVPZO.mjs} +2 -2
  176. package/out/__chunks__/chunk-YUITECZ5.mjs +1 -0
  177. package/out/__chunks__/{chunk-HC5QPKZT.mjs → chunk-YV2TRFYW.mjs} +2 -2
  178. package/out/__chunks__/chunk-YZE4ECSF.mjs +2 -0
  179. package/out/__chunks__/chunk-YZE4ECSF.mjs.map +7 -0
  180. package/out/__chunks__/chunk-Z5CDCI3Y.mjs +2 -0
  181. package/out/__chunks__/{chunk-OTBTZ3NI.mjs.map → chunk-Z5CDCI3Y.mjs.map} +1 -1
  182. package/out/__chunks__/chunk-ZEUNADU7.mjs +2 -0
  183. package/out/__chunks__/{chunk-FJIH6TWP.mjs → chunk-ZSVNTZ3Q.mjs} +2 -2
  184. package/out/__chunks__/{chunk-7RX2A4WD.mjs → chunk-ZXIBFH6X.mjs} +2 -2
  185. package/out/__chunks__/{chunk-RVW2ZWCR.mjs → chunk-ZZ53RJBO.mjs} +2 -2
  186. package/out/__chunks__/chunk-ZZDN5HHJ.mjs +2 -0
  187. package/out/__chunks__/chunk-ZZDN5HHJ.mjs.map +7 -0
  188. package/out/__mocks__/accountConfig.mjs +1 -1
  189. package/out/__mocks__/data/index.mjs +1 -1
  190. package/out/__mocks__/index.mjs +1 -1
  191. package/out/__mocks__/server.mjs +1 -1
  192. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  193. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  194. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  195. package/out/apiCalls/index.mjs +1 -1
  196. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  197. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  198. package/out/apiCalls/tokens/index.mjs +1 -1
  199. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  200. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  201. package/out/apiCalls/transactions/getTransactionByHash.mjs.map +1 -1
  202. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  203. package/out/constants/UITags.enum.d.ts +2 -2
  204. package/out/constants/UITags.enum.js +2 -2
  205. package/out/constants/UITags.enum.js.map +1 -1
  206. package/out/constants/UITags.enum.mjs +1 -1
  207. package/out/constants/browser.constants.mjs +1 -1
  208. package/out/constants/index.mjs +1 -1
  209. package/out/constants/providerFactory.constants.d.ts +2 -1
  210. package/out/constants/providerFactory.constants.js +1 -0
  211. package/out/constants/providerFactory.constants.js.map +1 -1
  212. package/out/constants/providerFactory.constants.mjs +1 -1
  213. package/out/constants/storage.constants.mjs +1 -1
  214. package/out/constants/transactions.constants.d.ts +1 -0
  215. package/out/constants/transactions.constants.js +2 -1
  216. package/out/constants/transactions.constants.js.map +1 -1
  217. package/out/constants/transactions.constants.mjs +1 -1
  218. package/out/constants/window.constants.d.ts +1 -0
  219. package/out/constants/window.constants.js +2 -1
  220. package/out/constants/window.constants.js.map +1 -1
  221. package/out/constants/window.constants.mjs +1 -1
  222. package/out/controllers/FormatAmountController/FormatAmountController.mjs +1 -1
  223. package/out/controllers/FormatAmountController/index.mjs +1 -1
  224. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  225. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  226. package/out/controllers/TransactionsTableController/TransactionsTableController.d.ts +2 -2
  227. package/out/controllers/TransactionsTableController/TransactionsTableController.js +2 -2
  228. package/out/controllers/TransactionsTableController/TransactionsTableController.js.map +1 -1
  229. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  230. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  231. package/out/controllers/TransactionsTableController/transactionsTableController.types.d.ts +8 -11
  232. package/out/controllers/index.mjs +1 -1
  233. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.d.ts +10 -0
  234. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.js +45 -0
  235. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.js.map +1 -0
  236. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs +2 -0
  237. package/out/core/providers/DappProvider/helpers/login/helpers/refreshNativeAuthTokenLogin.mjs.map +7 -0
  238. package/out/index.mjs +1 -1
  239. package/out/lib/sdkCore.d.ts +1 -1
  240. package/out/lib/sdkCore.js +2 -1
  241. package/out/lib/sdkCore.js.map +1 -1
  242. package/out/lib/sdkCore.mjs +1 -1
  243. package/out/lib/sdkDappUi.d.ts +2 -2
  244. package/out/lib/sdkDappUi.mjs +1 -1
  245. package/out/lib/sdkDappUtils.d.ts +1 -1
  246. package/out/lib/sdkDappUtils.mjs +1 -1
  247. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +7 -1
  248. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js +6 -2
  249. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js.map +1 -1
  250. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  251. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  252. package/out/managers/TransactionManager/TransactionManager.d.ts +3 -5
  253. package/out/managers/TransactionManager/TransactionManager.js +2 -1
  254. package/out/managers/TransactionManager/TransactionManager.js.map +1 -1
  255. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  256. package/out/managers/TransactionManager/TransactionManager.types.d.ts +12 -0
  257. package/out/managers/TransactionManager/TransactionManager.types.js +3 -0
  258. package/out/managers/TransactionManager/TransactionManager.types.js.map +1 -0
  259. package/out/managers/TransactionManager/TransactionManager.types.mjs +1 -0
  260. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  261. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  262. package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
  263. package/out/managers/TransactionManager/helpers/isCrossShardTransaction.js +5 -4
  264. package/out/managers/TransactionManager/helpers/isCrossShardTransaction.js.map +1 -1
  265. package/out/managers/TransactionManager/helpers/isCrossShardTransaction.mjs +1 -1
  266. package/out/managers/TransactionManager/helpers/sessionCallbacks.d.ts +7 -0
  267. package/out/managers/TransactionManager/helpers/sessionCallbacks.js +14 -0
  268. package/out/managers/TransactionManager/helpers/sessionCallbacks.js.map +1 -0
  269. package/out/managers/TransactionManager/helpers/sessionCallbacks.mjs +2 -0
  270. package/out/managers/TransactionManager/index.mjs +1 -1
  271. package/out/managers/TransactionManager/tests/isCrossShardTransaction.test.js +0 -37
  272. package/out/managers/TransactionManager/tests/isCrossShardTransaction.test.js.map +1 -1
  273. package/out/managers/UnlockPanelManager/UnlockPanelManager.d.ts +13 -8
  274. package/out/managers/UnlockPanelManager/UnlockPanelManager.js +32 -13
  275. package/out/managers/UnlockPanelManager/UnlockPanelManager.js.map +1 -1
  276. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  277. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +21 -14
  278. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.mjs +1 -1
  279. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  280. package/out/managers/index.mjs +1 -1
  281. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.d.ts +2 -2
  282. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.js +1 -1
  283. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.js.map +1 -1
  284. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  285. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  286. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js +2 -2
  287. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js.map +1 -1
  288. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  289. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.d.ts +1 -1
  290. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js +1 -1
  291. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js.map +1 -1
  292. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  293. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  294. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  295. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  296. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  297. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  298. package/out/managers/internal/ToastManager/ToastManager.js +2 -1
  299. package/out/managers/internal/ToastManager/ToastManager.js.map +1 -1
  300. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  301. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  302. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  303. package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +1 -1
  304. package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
  305. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  306. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.d.ts +2 -2
  307. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  308. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  309. package/out/managers/internal/index.mjs +1 -1
  310. package/out/methods/account/getAccount.mjs +1 -1
  311. package/out/methods/account/getAccountInfo.mjs +1 -1
  312. package/out/methods/account/getAddress.mjs +1 -1
  313. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  314. package/out/methods/account/getLatestNonce.js.map +1 -1
  315. package/out/methods/account/getLatestNonce.mjs +1 -1
  316. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  317. package/out/methods/initApp/initApp.js +15 -17
  318. package/out/methods/initApp/initApp.js.map +1 -1
  319. package/out/methods/initApp/initApp.mjs +1 -1
  320. package/out/methods/initApp/initApp.mjs.map +3 -3
  321. package/out/methods/initApp/initApp.types.d.ts +71 -2
  322. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  323. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  324. package/out/methods/loginInfo/getLoginInfo.d.ts +14 -0
  325. package/out/methods/loginInfo/getLoginInfo.js +14 -0
  326. package/out/methods/loginInfo/getLoginInfo.js.map +1 -0
  327. package/out/methods/loginInfo/getLoginInfo.mjs +2 -0
  328. package/out/methods/loginInfo/getLoginInfo.mjs.map +7 -0
  329. package/out/methods/network/getEgldLabel.js +2 -2
  330. package/out/methods/network/getEgldLabel.js.map +1 -1
  331. package/out/methods/network/getEgldLabel.mjs +1 -1
  332. package/out/methods/network/getExplorerAddress.js +2 -2
  333. package/out/methods/network/getExplorerAddress.js.map +1 -1
  334. package/out/methods/network/getExplorerAddress.mjs +1 -1
  335. package/out/methods/network/getNetworkConfig.d.ts +1 -1
  336. package/out/methods/network/getNetworkConfig.js +2 -2
  337. package/out/methods/network/getNetworkConfig.js.map +1 -1
  338. package/out/methods/network/getNetworkConfig.mjs +1 -1
  339. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js +27 -10
  340. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js.map +1 -1
  341. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  342. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  343. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  344. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.d.ts +1 -1
  345. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js +7 -2
  346. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js.map +1 -1
  347. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  348. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.d.ts +7 -0
  349. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js +24 -0
  350. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js.map +1 -0
  351. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.mjs +2 -0
  352. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  353. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  354. package/out/methods/transactions/getFailedTransactions.d.ts +1 -0
  355. package/out/methods/transactions/getFailedTransactions.js +10 -0
  356. package/out/methods/transactions/getFailedTransactions.js.map +1 -0
  357. package/out/methods/transactions/getFailedTransactions.mjs +2 -0
  358. package/out/methods/transactions/getFailedTransactions.mjs.map +7 -0
  359. package/out/methods/transactions/getFailedTransactionsSessions.d.ts +1 -0
  360. package/out/methods/transactions/getFailedTransactionsSessions.js +10 -0
  361. package/out/methods/transactions/getFailedTransactionsSessions.js.map +1 -0
  362. package/out/methods/transactions/getFailedTransactionsSessions.mjs +2 -0
  363. package/out/methods/transactions/getFailedTransactionsSessions.mjs.map +7 -0
  364. package/out/methods/transactions/getPendingTransactions.d.ts +1 -0
  365. package/out/methods/transactions/getPendingTransactions.js +10 -0
  366. package/out/methods/transactions/getPendingTransactions.js.map +1 -0
  367. package/out/methods/transactions/getPendingTransactions.mjs +2 -0
  368. package/out/methods/transactions/getPendingTransactions.mjs.map +7 -0
  369. package/out/methods/transactions/getPendingTransactionsSessions.d.ts +1 -0
  370. package/out/methods/transactions/getPendingTransactionsSessions.js +10 -0
  371. package/out/methods/transactions/getPendingTransactionsSessions.js.map +1 -0
  372. package/out/methods/transactions/getPendingTransactionsSessions.mjs +2 -0
  373. package/out/methods/transactions/getPendingTransactionsSessions.mjs.map +7 -0
  374. package/out/methods/transactions/getSuccessfulTransactions.d.ts +1 -0
  375. package/out/methods/transactions/getSuccessfulTransactions.js +10 -0
  376. package/out/methods/transactions/getSuccessfulTransactions.js.map +1 -0
  377. package/out/methods/transactions/getSuccessfulTransactions.mjs +2 -0
  378. package/out/methods/transactions/getSuccessfulTransactions.mjs.map +7 -0
  379. package/out/methods/transactions/getSuccessfulTransactionsSessions.d.ts +1 -0
  380. package/out/methods/transactions/getSuccessfulTransactionsSessions.js +10 -0
  381. package/out/methods/transactions/getSuccessfulTransactionsSessions.js.map +1 -0
  382. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +2 -0
  383. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs.map +7 -0
  384. package/out/methods/transactions/getTransactionSessions.d.ts +1 -0
  385. package/out/methods/transactions/getTransactionSessions.js +10 -0
  386. package/out/methods/transactions/getTransactionSessions.js.map +1 -0
  387. package/out/methods/transactions/getTransactionSessions.mjs +2 -0
  388. package/out/methods/transactions/getTransactionSessions.mjs.map +7 -0
  389. package/out/providers/DappProvider/DappProvider.d.ts +14 -48
  390. package/out/providers/DappProvider/DappProvider.js +11 -3
  391. package/out/providers/DappProvider/DappProvider.js.map +1 -1
  392. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  393. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  394. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  395. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  396. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  397. package/out/providers/DappProvider/helpers/login/login.d.ts +3 -1
  398. package/out/providers/DappProvider/helpers/login/login.js +16 -8
  399. package/out/providers/DappProvider/helpers/login/login.js.map +1 -1
  400. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  401. package/out/providers/DappProvider/helpers/logout/logout.d.ts +1 -1
  402. package/out/providers/DappProvider/helpers/logout/logout.js +3 -1
  403. package/out/providers/DappProvider/helpers/logout/logout.js.map +1 -1
  404. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  405. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  406. package/out/providers/DappProvider/helpers/signMessage/getVerifier.mjs +1 -1
  407. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.d.ts +1 -2
  408. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.js.map +1 -1
  409. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  410. package/out/providers/DappProvider/helpers/signMessage/verifyMessage.d.ts +1 -1
  411. package/out/providers/DappProvider/helpers/signMessage/verifyMessage.mjs +1 -1
  412. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  413. package/out/providers/DappProvider/index.mjs +1 -1
  414. package/out/providers/ProviderFactory.js +25 -23
  415. package/out/providers/ProviderFactory.js.map +1 -1
  416. package/out/providers/ProviderFactory.mjs +1 -1
  417. package/out/providers/helpers/accountProvider.mjs +1 -1
  418. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  419. package/out/providers/helpers/clearInitiatedLogins.d.ts +2 -2
  420. package/out/providers/helpers/clearInitiatedLogins.js.map +1 -1
  421. package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
  422. package/out/providers/helpers/emptyProvider.d.ts +2 -2
  423. package/out/providers/helpers/emptyProvider.js.map +1 -1
  424. package/out/providers/helpers/emptyProvider.mjs +1 -1
  425. package/out/providers/helpers/restoreProvider.js +11 -1
  426. package/out/providers/helpers/restoreProvider.js.map +1 -1
  427. package/out/providers/helpers/restoreProvider.mjs +1 -1
  428. package/out/providers/index.mjs +1 -1
  429. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +25 -12
  430. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js +30 -12
  431. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js.map +1 -1
  432. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  433. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +14 -10
  434. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js +41 -55
  435. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js.map +1 -1
  436. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  437. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  438. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +14 -9
  439. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js +36 -42
  440. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js.map +1 -1
  441. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  442. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  443. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +18 -11
  444. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js +59 -55
  445. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js.map +1 -1
  446. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  447. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  448. package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.d.ts +1 -0
  449. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +22 -11
  450. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js +57 -43
  451. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js.map +1 -1
  452. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  453. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  454. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  455. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  456. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  457. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  458. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  459. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  460. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  461. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  462. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.js +1 -1
  463. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.js.map +1 -1
  464. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  465. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  466. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +28 -17
  467. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js +150 -169
  468. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js.map +1 -1
  469. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  470. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  471. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +14 -9
  472. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js +44 -39
  473. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js.map +1 -1
  474. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  475. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  476. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  477. package/out/providers/strategies/helpers/index.mjs +1 -1
  478. package/out/providers/strategies/helpers/signMessage/signMessage.js +18 -3
  479. package/out/providers/strategies/helpers/signMessage/signMessage.js.map +1 -1
  480. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  481. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.mjs +1 -1
  482. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  483. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js +14 -2
  484. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js.map +1 -1
  485. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  486. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
  487. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  488. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.js +21 -24
  489. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.js.map +1 -1
  490. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.mjs +1 -1
  491. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.mjs +1 -1
  492. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js +6 -6
  493. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js.map +1 -1
  494. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  495. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  496. package/out/providers/strategies/helpers/signTransactions/signTransactions.js +8 -1
  497. package/out/providers/strategies/helpers/signTransactions/signTransactions.js.map +1 -1
  498. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  499. package/out/providers/strategies/index.mjs +1 -1
  500. package/out/providers/types/providerFactory.types.d.ts +18 -17
  501. package/out/providers/types/providerFactory.types.js +10 -11
  502. package/out/providers/types/providerFactory.types.js.map +1 -1
  503. package/out/providers/types/providerFactory.types.mjs +1 -1
  504. package/out/react/account/useGetAccount.js.map +1 -1
  505. package/out/react/account/useGetAccount.mjs +1 -1
  506. package/out/react/account/useGetAccount.mjs.map +2 -2
  507. package/out/react/account/useGetAccountInfo.js.map +1 -1
  508. package/out/react/account/useGetAccountInfo.mjs +1 -1
  509. package/out/react/account/useGetAccountInfo.mjs.map +2 -2
  510. package/out/react/account/useGetIsLoggedIn.js.map +1 -1
  511. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  512. package/out/react/account/useGetIsLoggedIn.mjs.map +2 -2
  513. package/out/react/account/useGetLatestNonce.js.map +1 -1
  514. package/out/react/account/useGetLatestNonce.mjs +1 -1
  515. package/out/react/account/useGetLatestNonce.mjs.map +2 -2
  516. package/out/react/index.mjs +1 -1
  517. package/out/react/loginInfo/useGetLoginInfo.d.ts +1 -44
  518. package/out/react/loginInfo/useGetLoginInfo.js.map +1 -1
  519. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  520. package/out/react/loginInfo/useGetLoginInfo.mjs.map +2 -2
  521. package/out/react/network/useGetNetworkConfig.js.map +1 -1
  522. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  523. package/out/react/network/useGetNetworkConfig.mjs.map +2 -2
  524. package/out/react/store/getReactStore.js +1 -1
  525. package/out/react/store/getReactStore.js.map +1 -1
  526. package/out/react/store/getReactStore.mjs +1 -1
  527. package/out/react/store/getReactStore.mjs.map +4 -4
  528. package/out/react/store/useSelector.js +1 -1
  529. package/out/react/store/useSelector.js.map +1 -1
  530. package/out/react/store/useSelector.mjs +1 -1
  531. package/out/react/transactions/useGetFailedTransactions.d.ts +1 -0
  532. package/out/react/transactions/useGetFailedTransactions.js +11 -0
  533. package/out/react/transactions/useGetFailedTransactions.js.map +1 -0
  534. package/out/react/transactions/useGetFailedTransactions.mjs +2 -0
  535. package/out/react/transactions/useGetFailedTransactions.mjs.map +7 -0
  536. package/out/react/transactions/useGetFailedTransactionsSessions copy.d.ts +1 -0
  537. package/out/react/transactions/useGetFailedTransactionsSessions copy.js +11 -0
  538. package/out/react/transactions/useGetFailedTransactionsSessions copy.js.map +1 -0
  539. package/out/react/transactions/useGetFailedTransactionsSessions copy.mjs +2 -0
  540. package/out/react/transactions/useGetFailedTransactionsSessions copy.mjs.map +7 -0
  541. package/out/react/transactions/useGetPendingTransactions.js.map +1 -1
  542. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  543. package/out/react/transactions/useGetPendingTransactions.mjs.map +2 -2
  544. package/out/react/transactions/useGetPendingTransactionsSessions.d.ts +1 -1
  545. package/out/react/transactions/useGetPendingTransactionsSessions.js +3 -3
  546. package/out/react/transactions/useGetPendingTransactionsSessions.js.map +1 -1
  547. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  548. package/out/react/transactions/useGetPendingTransactionsSessions.mjs.map +3 -3
  549. package/out/react/transactions/useGetSuccessfulTransactions.d.ts +1 -0
  550. package/out/react/transactions/useGetSuccessfulTransactions.js +11 -0
  551. package/out/react/transactions/useGetSuccessfulTransactions.js.map +1 -0
  552. package/out/react/transactions/useGetSuccessfulTransactions.mjs +2 -0
  553. package/out/react/transactions/useGetSuccessfulTransactions.mjs.map +7 -0
  554. package/out/react/transactions/useGetSuccessfulTransactionsSessions.d.ts +1 -0
  555. package/out/react/transactions/useGetSuccessfulTransactionsSessions.js +11 -0
  556. package/out/react/transactions/useGetSuccessfulTransactionsSessions.js.map +1 -0
  557. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +2 -0
  558. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs.map +7 -0
  559. package/out/react/transactions/useGetTransactionSessions.js.map +1 -1
  560. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  561. package/out/react/transactions/useGetTransactionSessions.mjs.map +2 -2
  562. package/out/services/index.mjs +1 -1
  563. package/out/services/nativeAuth/helpers/index.mjs +1 -1
  564. package/out/services/nativeAuth/index.mjs +1 -1
  565. package/out/services/nativeAuth/methods/index.mjs +1 -1
  566. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  567. package/out/store/actions/account/accountActions.mjs +1 -1
  568. package/out/store/actions/account/index.mjs +1 -1
  569. package/out/store/actions/cache/cacheActions.mjs +1 -1
  570. package/out/store/actions/cache/index.mjs +1 -1
  571. package/out/store/actions/config/configActions.mjs +1 -1
  572. package/out/store/actions/config/index.mjs +1 -1
  573. package/out/store/actions/index.mjs +1 -1
  574. package/out/store/actions/loginInfo/loginInfoActions.d.ts +2 -2
  575. package/out/store/actions/loginInfo/loginInfoActions.js.map +1 -1
  576. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  577. package/out/store/actions/network/index.mjs +1 -1
  578. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  579. package/out/store/actions/network/networkActions.mjs +1 -1
  580. package/out/store/actions/sharedActions/index.mjs +1 -1
  581. package/out/store/actions/sharedActions/sharedActions.d.ts +3 -3
  582. package/out/store/actions/sharedActions/sharedActions.js.map +1 -1
  583. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  584. package/out/store/actions/toasts/index.mjs +1 -1
  585. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  586. package/out/store/actions/transactions/transactionsActions.d.ts +6 -4
  587. package/out/store/actions/transactions/transactionsActions.js +16 -7
  588. package/out/store/actions/transactions/transactionsActions.js.map +1 -1
  589. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  590. package/out/store/actions/ui/index.mjs +1 -1
  591. package/out/store/actions/ui/uiActions.mjs +1 -1
  592. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  593. package/out/store/middleware/index.mjs +1 -1
  594. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  595. package/out/store/selectors/accountSelectors.mjs +1 -1
  596. package/out/store/selectors/index.mjs +1 -1
  597. package/out/store/selectors/loginInfoSelectors.d.ts +2 -45
  598. package/out/store/selectors/transactionsSelector.d.ts +2 -0
  599. package/out/store/selectors/transactionsSelector.js +29 -1
  600. package/out/store/selectors/transactionsSelector.js.map +1 -1
  601. package/out/store/selectors/transactionsSelector.mjs +1 -1
  602. package/out/store/slices/account/accountSlice.mjs +1 -1
  603. package/out/store/slices/account/emptyAccount.mjs +1 -1
  604. package/out/store/slices/account/index.mjs +1 -1
  605. package/out/store/slices/index.mjs +1 -1
  606. package/out/store/slices/loginInfo/loginInfo.types.d.ts +3 -3
  607. package/out/store/slices/loginInfo/loginInfoSlice.d.ts +1 -1
  608. package/out/store/storage/index.mjs +1 -1
  609. package/out/store/storage/storageCallback.js +2 -1
  610. package/out/store/storage/storageCallback.js.map +1 -1
  611. package/out/store/storage/storageCallback.mjs +1 -1
  612. package/out/store/store.mjs +1 -1
  613. package/out/types/index.d.ts +2 -1
  614. package/out/types/index.js +2 -1
  615. package/out/types/index.js.map +1 -1
  616. package/out/types/index.mjs +1 -1
  617. package/out/types/serverTransactions.types.d.ts +6 -6
  618. package/out/types/serverTransactions.types.mjs +1 -1
  619. package/out/types/suspiciousLink.types.d.ts +17 -0
  620. package/out/types/{misc.types.js → suspiciousLink.types.js} +1 -1
  621. package/out/types/suspiciousLink.types.js.map +1 -0
  622. package/out/types/suspiciousLink.types.mjs +2 -0
  623. package/out/types/theme.types.d.ts +4 -0
  624. package/out/types/theme.types.js +9 -0
  625. package/out/types/theme.types.js.map +1 -0
  626. package/out/types/theme.types.mjs +2 -0
  627. package/out/types/transactions.types.d.ts +4 -0
  628. package/out/types/transactions.types.mjs.map +1 -1
  629. package/out/utils/account/index.mjs +1 -1
  630. package/out/utils/account/refreshAccount.js +1 -1
  631. package/out/utils/account/refreshAccount.js.map +1 -1
  632. package/out/utils/account/refreshAccount.mjs +1 -1
  633. package/out/utils/createUIElement.mjs +1 -1
  634. package/out/utils/decoders/index.mjs +1 -1
  635. package/out/utils/index.d.ts +1 -0
  636. package/out/utils/index.js +1 -0
  637. package/out/utils/index.js.map +1 -1
  638. package/out/utils/index.mjs +1 -1
  639. package/out/utils/operations/trimAmountDecimals.mjs +1 -1
  640. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  641. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  642. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.mjs +1 -1
  643. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
  644. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.mjs +1 -1
  645. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.mjs +1 -1
  646. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.mjs +1 -1
  647. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.mjs +1 -1
  648. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.mjs +1 -1
  649. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.mjs +1 -1
  650. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.mjs +1 -1
  651. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +1 -1
  652. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
  653. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  654. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  655. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  656. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  657. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  658. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.mjs +1 -1
  659. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.mjs +1 -1
  660. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  661. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  662. package/out/utils/transactions/getScamFlag.d.ts +8 -0
  663. package/out/utils/transactions/getScamFlag.js +78 -0
  664. package/out/utils/transactions/getScamFlag.js.map +1 -0
  665. package/out/utils/transactions/getScamFlag.mjs +2 -0
  666. package/out/utils/transactions/getScamFlag.mjs.map +7 -0
  667. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  668. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.mjs +1 -1
  669. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.mjs +1 -1
  670. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  671. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.mjs +1 -1
  672. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.mjs +1 -1
  673. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
  674. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.mjs +1 -1
  675. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  676. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  677. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
  678. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  679. package/out/utils/transactions/index.mjs +1 -1
  680. package/out/utils/validation/index.mjs +1 -1
  681. package/out/utils/validation/isContract.mjs +1 -1
  682. package/out/utils/visual/index.d.ts +1 -0
  683. package/out/utils/visual/index.js +18 -0
  684. package/out/utils/visual/index.js.map +1 -0
  685. package/out/utils/visual/index.mjs +2 -0
  686. package/out/utils/visual/switchTheme.d.ts +2 -0
  687. package/out/utils/visual/switchTheme.js +12 -0
  688. package/out/utils/visual/switchTheme.js.map +1 -0
  689. package/out/utils/visual/switchTheme.mjs +2 -0
  690. package/out/utils/visual/switchTheme.mjs.map +7 -0
  691. package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
  692. package/out/utils/window/getIsInIframe.mjs +1 -1
  693. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  694. package/out/utils/window/index.mjs +1 -1
  695. package/package.json +10 -8
  696. package/out/__chunks__/chunk-243OAHYD.mjs.map +0 -7
  697. package/out/__chunks__/chunk-2CNSQULM.mjs +0 -2
  698. package/out/__chunks__/chunk-2CNSQULM.mjs.map +0 -7
  699. package/out/__chunks__/chunk-2X7ENE6Y.mjs +0 -2
  700. package/out/__chunks__/chunk-2X7ENE6Y.mjs.map +0 -7
  701. package/out/__chunks__/chunk-42SCXW2U.mjs +0 -2
  702. package/out/__chunks__/chunk-42SCXW2U.mjs.map +0 -7
  703. package/out/__chunks__/chunk-43CV6VGD.mjs +0 -2
  704. package/out/__chunks__/chunk-43CV6VGD.mjs.map +0 -7
  705. package/out/__chunks__/chunk-45H34XLJ.mjs +0 -2
  706. package/out/__chunks__/chunk-4LEA6EXQ.mjs +0 -2
  707. package/out/__chunks__/chunk-4YIFSKYR.mjs +0 -2
  708. package/out/__chunks__/chunk-672ZNZKR.mjs +0 -2
  709. package/out/__chunks__/chunk-6746F2FY.mjs +0 -2
  710. package/out/__chunks__/chunk-6GNOK3TJ.mjs.map +0 -7
  711. package/out/__chunks__/chunk-7JA77EJQ.mjs +0 -2
  712. package/out/__chunks__/chunk-7JA77EJQ.mjs.map +0 -7
  713. package/out/__chunks__/chunk-7OTTISMZ.mjs +0 -2
  714. package/out/__chunks__/chunk-7OTTISMZ.mjs.map +0 -7
  715. package/out/__chunks__/chunk-7Q3M4L6V.mjs +0 -2
  716. package/out/__chunks__/chunk-7Q3M4L6V.mjs.map +0 -7
  717. package/out/__chunks__/chunk-7QCBLUWB.mjs +0 -2
  718. package/out/__chunks__/chunk-7QCBLUWB.mjs.map +0 -7
  719. package/out/__chunks__/chunk-7TOTBAGV.mjs +0 -2
  720. package/out/__chunks__/chunk-7TOTBAGV.mjs.map +0 -7
  721. package/out/__chunks__/chunk-AGI2ZR6R.mjs +0 -2
  722. package/out/__chunks__/chunk-AGI2ZR6R.mjs.map +0 -7
  723. package/out/__chunks__/chunk-AL42X4Q3.mjs +0 -2
  724. package/out/__chunks__/chunk-AL42X4Q3.mjs.map +0 -7
  725. package/out/__chunks__/chunk-ARD5PCMI.mjs +0 -2
  726. package/out/__chunks__/chunk-ARD5PCMI.mjs.map +0 -7
  727. package/out/__chunks__/chunk-B5IOGCMT.mjs +0 -2
  728. package/out/__chunks__/chunk-B5IOGCMT.mjs.map +0 -7
  729. package/out/__chunks__/chunk-BQL3NILA.mjs +0 -2
  730. package/out/__chunks__/chunk-BXKFACG5.mjs +0 -2
  731. package/out/__chunks__/chunk-BXUBAIBU.mjs +0 -2
  732. package/out/__chunks__/chunk-C3KLB5TA.mjs +0 -2
  733. package/out/__chunks__/chunk-C4CJSICS.mjs +0 -2
  734. package/out/__chunks__/chunk-C4CJSICS.mjs.map +0 -7
  735. package/out/__chunks__/chunk-CBIH5QMT.mjs +0 -2
  736. package/out/__chunks__/chunk-CO3V5DOG.mjs +0 -1
  737. package/out/__chunks__/chunk-CQZVU4RB.mjs +0 -1
  738. package/out/__chunks__/chunk-DZ3UVNJK.mjs +0 -2
  739. package/out/__chunks__/chunk-DZ5L5MZT.mjs.map +0 -7
  740. package/out/__chunks__/chunk-EFVHT26M.mjs +0 -2
  741. package/out/__chunks__/chunk-EFVHT26M.mjs.map +0 -7
  742. package/out/__chunks__/chunk-EXLTOUB5.mjs +0 -2
  743. package/out/__chunks__/chunk-EXLTOUB5.mjs.map +0 -7
  744. package/out/__chunks__/chunk-FTFAEXVE.mjs +0 -2
  745. package/out/__chunks__/chunk-G57SJWVR.mjs +0 -1
  746. package/out/__chunks__/chunk-GAOXEYHA.mjs +0 -1
  747. package/out/__chunks__/chunk-GHDPXQZ5.mjs +0 -2
  748. package/out/__chunks__/chunk-GUG3HFGL.mjs +0 -2
  749. package/out/__chunks__/chunk-GUG3HFGL.mjs.map +0 -7
  750. package/out/__chunks__/chunk-GUHNF5RM.mjs +0 -2
  751. package/out/__chunks__/chunk-GUHNF5RM.mjs.map +0 -7
  752. package/out/__chunks__/chunk-HP5OTXWV.mjs +0 -2
  753. package/out/__chunks__/chunk-HP5OTXWV.mjs.map +0 -7
  754. package/out/__chunks__/chunk-IGA7KHXY.mjs +0 -2
  755. package/out/__chunks__/chunk-IGA7KHXY.mjs.map +0 -7
  756. package/out/__chunks__/chunk-JO3DZYEB.mjs +0 -2
  757. package/out/__chunks__/chunk-JR3FBBRR.mjs +0 -2
  758. package/out/__chunks__/chunk-JR3FBBRR.mjs.map +0 -7
  759. package/out/__chunks__/chunk-JXO7XRIR.mjs +0 -2
  760. package/out/__chunks__/chunk-JXO7XRIR.mjs.map +0 -7
  761. package/out/__chunks__/chunk-K3G3SPRT.mjs +0 -2
  762. package/out/__chunks__/chunk-KQ3I46X7.mjs +0 -2
  763. package/out/__chunks__/chunk-KQ3I46X7.mjs.map +0 -7
  764. package/out/__chunks__/chunk-LETBBKOK.mjs +0 -2
  765. package/out/__chunks__/chunk-MCOVQEK7.mjs +0 -2
  766. package/out/__chunks__/chunk-MCOVQEK7.mjs.map +0 -7
  767. package/out/__chunks__/chunk-O4J75OI6.mjs +0 -2
  768. package/out/__chunks__/chunk-O4J75OI6.mjs.map +0 -7
  769. package/out/__chunks__/chunk-OBRX5K2D.mjs +0 -2
  770. package/out/__chunks__/chunk-OBRX5K2D.mjs.map +0 -7
  771. package/out/__chunks__/chunk-OOJVPJOX.mjs +0 -1
  772. package/out/__chunks__/chunk-OTBTZ3NI.mjs +0 -2
  773. package/out/__chunks__/chunk-OYA4AQFY.mjs +0 -2
  774. package/out/__chunks__/chunk-OYA4AQFY.mjs.map +0 -7
  775. package/out/__chunks__/chunk-PLFZHJOX.mjs +0 -2
  776. package/out/__chunks__/chunk-PV5A7PX4.mjs +0 -2
  777. package/out/__chunks__/chunk-PVNL2LED.mjs +0 -1
  778. package/out/__chunks__/chunk-PVTRVIAK.mjs +0 -2
  779. package/out/__chunks__/chunk-QD3CFFVT.mjs +0 -2
  780. package/out/__chunks__/chunk-QI2QMNTG.mjs +0 -2
  781. package/out/__chunks__/chunk-QI2QMNTG.mjs.map +0 -7
  782. package/out/__chunks__/chunk-RZ4YTKD7.mjs +0 -2
  783. package/out/__chunks__/chunk-RZ4YTKD7.mjs.map +0 -7
  784. package/out/__chunks__/chunk-SHNEF3SC.mjs +0 -2
  785. package/out/__chunks__/chunk-SHNEF3SC.mjs.map +0 -7
  786. package/out/__chunks__/chunk-THQWNWSE.mjs +0 -2
  787. package/out/__chunks__/chunk-THQWNWSE.mjs.map +0 -7
  788. package/out/__chunks__/chunk-TOGPOKIP.mjs +0 -2
  789. package/out/__chunks__/chunk-TOGPOKIP.mjs.map +0 -7
  790. package/out/__chunks__/chunk-U2TDLWBA.mjs +0 -2
  791. package/out/__chunks__/chunk-U5GPHLUX.mjs +0 -2
  792. package/out/__chunks__/chunk-U5GPHLUX.mjs.map +0 -7
  793. package/out/__chunks__/chunk-UBD2YVBI.mjs +0 -2
  794. package/out/__chunks__/chunk-UBD2YVBI.mjs.map +0 -7
  795. package/out/__chunks__/chunk-UFMHCVBL.mjs +0 -2
  796. package/out/__chunks__/chunk-VLHG5NVE.mjs +0 -2
  797. package/out/__chunks__/chunk-VLHG5NVE.mjs.map +0 -7
  798. package/out/__chunks__/chunk-W2WAVVF5.mjs +0 -2
  799. package/out/__chunks__/chunk-W2WAVVF5.mjs.map +0 -7
  800. package/out/__chunks__/chunk-WGOZYG4T.mjs +0 -2
  801. package/out/__chunks__/chunk-WTCFHVW3.mjs +0 -2
  802. package/out/__chunks__/chunk-WVTCO3AV.mjs +0 -2
  803. package/out/__chunks__/chunk-WVTCO3AV.mjs.map +0 -7
  804. package/out/__chunks__/chunk-WZNCESVG.mjs +0 -2
  805. package/out/__chunks__/chunk-WZNCESVG.mjs.map +0 -7
  806. package/out/__chunks__/chunk-XG2BS23C.mjs +0 -2
  807. package/out/__chunks__/chunk-XG2BS23C.mjs.map +0 -7
  808. package/out/__chunks__/chunk-XKBQDG5H.mjs +0 -1
  809. package/out/__chunks__/chunk-XNEYOZ7M.mjs +0 -1
  810. package/out/__chunks__/chunk-XU34NXIS.mjs +0 -2
  811. package/out/__chunks__/chunk-YQTGKHGB.mjs +0 -2
  812. package/out/__chunks__/chunk-YVVDA6LN.mjs +0 -2
  813. package/out/__chunks__/chunk-ZC3TMTLB.mjs +0 -2
  814. package/out/__chunks__/chunk-ZC3TMTLB.mjs.map +0 -7
  815. package/out/managers/TransactionManager/helpers/getShardOfAddress.d.ts +0 -1
  816. package/out/managers/TransactionManager/helpers/getShardOfAddress.js +0 -38
  817. package/out/managers/TransactionManager/helpers/getShardOfAddress.js.map +0 -1
  818. package/out/managers/TransactionManager/helpers/getShardOfAddress.mjs +0 -2
  819. package/out/managers/TransactionManager/tests/getShardOfAddress.test.d.ts +0 -1
  820. package/out/managers/TransactionManager/tests/getShardOfAddress.test.js +0 -19
  821. package/out/managers/TransactionManager/tests/getShardOfAddress.test.js.map +0 -1
  822. package/out/types/misc.types.d.ts +0 -1
  823. package/out/types/misc.types.js.map +0 -1
  824. package/out/types/misc.types.mjs +0 -2
  825. /package/out/__chunks__/{chunk-IXJOO5U4.mjs.map → chunk-266T724O.mjs.map} +0 -0
  826. /package/out/__chunks__/{chunk-HQJG7CFV.mjs.map → chunk-2AB2KTYM.mjs.map} +0 -0
  827. /package/out/__chunks__/{chunk-AJEWAECH.mjs.map → chunk-2I7FJNXZ.mjs.map} +0 -0
  828. /package/out/__chunks__/{chunk-675ZW4IF.mjs.map → chunk-2SOS3KAT.mjs.map} +0 -0
  829. /package/out/__chunks__/{chunk-JGULQG2H.mjs.map → chunk-3EI6B7OU.mjs.map} +0 -0
  830. /package/out/__chunks__/{chunk-UF45HLIK.mjs.map → chunk-3MWXXTQQ.mjs.map} +0 -0
  831. /package/out/__chunks__/{chunk-WGOZYG4T.mjs.map → chunk-3YK6SW7E.mjs.map} +0 -0
  832. /package/out/__chunks__/{chunk-WTCFHVW3.mjs.map → chunk-4RGFBPII.mjs.map} +0 -0
  833. /package/out/__chunks__/{chunk-YPNKNMW5.mjs.map → chunk-4RJ23OT7.mjs.map} +0 -0
  834. /package/out/__chunks__/{chunk-CBIH5QMT.mjs.map → chunk-535PAVZN.mjs.map} +0 -0
  835. /package/out/__chunks__/{chunk-XU34NXIS.mjs.map → chunk-62PJZCUP.mjs.map} +0 -0
  836. /package/out/__chunks__/{chunk-672ZNZKR.mjs.map → chunk-7B2IRMVK.mjs.map} +0 -0
  837. /package/out/__chunks__/{chunk-TYYA6E7F.mjs.map → chunk-7BP53CXF.mjs.map} +0 -0
  838. /package/out/__chunks__/{chunk-LD4NALNZ.mjs.map → chunk-7D2BEFUJ.mjs.map} +0 -0
  839. /package/out/__chunks__/{chunk-W4GE4ZDP.mjs.map → chunk-AAMNTAXA.mjs.map} +0 -0
  840. /package/out/__chunks__/{chunk-YVD46DFI.mjs.map → chunk-ABHYXD3U.mjs.map} +0 -0
  841. /package/out/__chunks__/{chunk-BXKFACG5.mjs.map → chunk-AFEGGHNM.mjs.map} +0 -0
  842. /package/out/__chunks__/{chunk-PLFZHJOX.mjs.map → chunk-ASRYY6T3.mjs.map} +0 -0
  843. /package/out/__chunks__/{chunk-PDT22D2C.mjs.map → chunk-AV4HSXYZ.mjs.map} +0 -0
  844. /package/out/__chunks__/{chunk-5WVAF7RB.mjs.map → chunk-B5AW5LX5.mjs.map} +0 -0
  845. /package/out/__chunks__/{chunk-OYZFSQEK.mjs.map → chunk-BNWGWGXY.mjs.map} +0 -0
  846. /package/out/__chunks__/{chunk-KMFYDHOY.mjs.map → chunk-BRBIUWAW.mjs.map} +0 -0
  847. /package/out/__chunks__/{chunk-3NG7LKF4.mjs.map → chunk-BSWV5MEC.mjs.map} +0 -0
  848. /package/out/__chunks__/{chunk-UYUKTC4X.mjs.map → chunk-C37IYZAK.mjs.map} +0 -0
  849. /package/out/__chunks__/{chunk-SNKFFCSF.mjs.map → chunk-DHPD6E7P.mjs.map} +0 -0
  850. /package/out/__chunks__/{chunk-M6ATGCOM.mjs.map → chunk-DNHKXKYY.mjs.map} +0 -0
  851. /package/out/__chunks__/{chunk-7YGJXJUC.mjs.map → chunk-DPSC4NIK.mjs.map} +0 -0
  852. /package/out/__chunks__/{chunk-4YIFSKYR.mjs.map → chunk-DT6YLEPL.mjs.map} +0 -0
  853. /package/out/__chunks__/{chunk-OF6HBWFR.mjs.map → chunk-DV3XIKOX.mjs.map} +0 -0
  854. /package/out/__chunks__/{chunk-NM3KJ3EA.mjs.map → chunk-DVY6YKH6.mjs.map} +0 -0
  855. /package/out/__chunks__/{chunk-JO3DZYEB.mjs.map → chunk-ESLVKRXK.mjs.map} +0 -0
  856. /package/out/__chunks__/{chunk-L2JWXTGG.mjs.map → chunk-EUVZQRU5.mjs.map} +0 -0
  857. /package/out/__chunks__/{chunk-BXUBAIBU.mjs.map → chunk-FEFZKA2B.mjs.map} +0 -0
  858. /package/out/__chunks__/{chunk-WW4BBBLW.mjs.map → chunk-FELZAGW5.mjs.map} +0 -0
  859. /package/out/__chunks__/{chunk-2AAKENSP.mjs.map → chunk-FIVH6RKU.mjs.map} +0 -0
  860. /package/out/__chunks__/{chunk-SBQJGS63.mjs.map → chunk-FIXSEPFX.mjs.map} +0 -0
  861. /package/out/__chunks__/{chunk-I66YT2S2.mjs.map → chunk-FMUDQBZE.mjs.map} +0 -0
  862. /package/out/__chunks__/{chunk-YAXVLGG3.mjs.map → chunk-FS2F24A7.mjs.map} +0 -0
  863. /package/out/__chunks__/{chunk-42KJRIAT.mjs.map → chunk-HCDOXUDA.mjs.map} +0 -0
  864. /package/out/__chunks__/{chunk-X2JK27T3.mjs.map → chunk-HN244QVP.mjs.map} +0 -0
  865. /package/out/__chunks__/{chunk-PPA7AFVD.mjs.map → chunk-HTVULYKB.mjs.map} +0 -0
  866. /package/out/__chunks__/{chunk-SF7XXVIO.mjs.map → chunk-ISPRIGOE.mjs.map} +0 -0
  867. /package/out/__chunks__/{chunk-6ZDBHK76.mjs.map → chunk-JIJSBQEU.mjs.map} +0 -0
  868. /package/out/__chunks__/{chunk-PEDR76UT.mjs.map → chunk-KEAFX54V.mjs.map} +0 -0
  869. /package/out/__chunks__/{chunk-TAI3I5BS.mjs.map → chunk-KSKOSHYV.mjs.map} +0 -0
  870. /package/out/__chunks__/{chunk-LNABNVAO.mjs.map → chunk-LIPGE2RA.mjs.map} +0 -0
  871. /package/out/__chunks__/{chunk-XO5D3FNU.mjs.map → chunk-LUDF7ZUR.mjs.map} +0 -0
  872. /package/out/__chunks__/{chunk-KJCZ5HAU.mjs.map → chunk-MJEZGI7G.mjs.map} +0 -0
  873. /package/out/__chunks__/{chunk-4PV6SFXA.mjs.map → chunk-N6SD2OVU.mjs.map} +0 -0
  874. /package/out/__chunks__/{chunk-C4CJOZ4L.mjs.map → chunk-NKJ7OVPV.mjs.map} +0 -0
  875. /package/out/__chunks__/{chunk-FTFAEXVE.mjs.map → chunk-NO7YH2FT.mjs.map} +0 -0
  876. /package/out/__chunks__/{chunk-BQL3NILA.mjs.map → chunk-O2SZII5H.mjs.map} +0 -0
  877. /package/out/__chunks__/{chunk-TLKMUVQJ.mjs.map → chunk-ORHJGVU5.mjs.map} +0 -0
  878. /package/out/__chunks__/{chunk-2HWIJ4CV.mjs.map → chunk-P3BXXGQA.mjs.map} +0 -0
  879. /package/out/__chunks__/{chunk-G2DLIXFQ.mjs.map → chunk-PCY7ULK2.mjs.map} +0 -0
  880. /package/out/__chunks__/{chunk-45H34XLJ.mjs.map → chunk-Q7L5T72K.mjs.map} +0 -0
  881. /package/out/__chunks__/{chunk-LTF535HP.mjs.map → chunk-QJSB5NX4.mjs.map} +0 -0
  882. /package/out/__chunks__/{chunk-VIJUIJ4V.mjs.map → chunk-QSBLXZFC.mjs.map} +0 -0
  883. /package/out/__chunks__/{chunk-ENTPR3MV.mjs.map → chunk-QWIXKUDO.mjs.map} +0 -0
  884. /package/out/__chunks__/{chunk-PVTRVIAK.mjs.map → chunk-RA4VU3NM.mjs.map} +0 -0
  885. /package/out/__chunks__/{chunk-NJ73RJ4B.mjs.map → chunk-RIFXW4D3.mjs.map} +0 -0
  886. /package/out/__chunks__/{chunk-Y3YLDFXK.mjs.map → chunk-S75GQPJQ.mjs.map} +0 -0
  887. /package/out/__chunks__/{chunk-NCUYIZYI.mjs.map → chunk-SHDTJ5GB.mjs.map} +0 -0
  888. /package/out/__chunks__/{chunk-3IYQANTT.mjs.map → chunk-SNBLSIKQ.mjs.map} +0 -0
  889. /package/out/__chunks__/{chunk-CO3V5DOG.mjs.map → chunk-TRMQFQOQ.mjs.map} +0 -0
  890. /package/out/__chunks__/{chunk-LETBBKOK.mjs.map → chunk-UAW7SD6P.mjs.map} +0 -0
  891. /package/out/__chunks__/{chunk-QQ4OPT5A.mjs.map → chunk-VJ2DAL5M.mjs.map} +0 -0
  892. /package/out/__chunks__/{chunk-CQZVU4RB.mjs.map → chunk-WFAPPSOI.mjs.map} +0 -0
  893. /package/out/__chunks__/{chunk-G57SJWVR.mjs.map → chunk-WHEXX3BD.mjs.map} +0 -0
  894. /package/out/__chunks__/{chunk-RNCF2III.mjs.map → chunk-WMY46KJS.mjs.map} +0 -0
  895. /package/out/__chunks__/{chunk-M3C5NS6M.mjs.map → chunk-X4ZYTNNA.mjs.map} +0 -0
  896. /package/out/__chunks__/{chunk-YRIDJGOK.mjs.map → chunk-Y53MWKLT.mjs.map} +0 -0
  897. /package/out/__chunks__/{chunk-JTQCNFCR.mjs.map → chunk-YB7AHPBR.mjs.map} +0 -0
  898. /package/out/__chunks__/{chunk-6746F2FY.mjs.map → chunk-YK4XGF57.mjs.map} +0 -0
  899. /package/out/__chunks__/{chunk-YQTGKHGB.mjs.map → chunk-YLN3OBBP.mjs.map} +0 -0
  900. /package/out/__chunks__/{chunk-MCZUQPRA.mjs.map → chunk-YTFYVPZO.mjs.map} +0 -0
  901. /package/out/__chunks__/{chunk-GAOXEYHA.mjs.map → chunk-YUITECZ5.mjs.map} +0 -0
  902. /package/out/__chunks__/{chunk-HC5QPKZT.mjs.map → chunk-YV2TRFYW.mjs.map} +0 -0
  903. /package/out/__chunks__/{chunk-4LEA6EXQ.mjs.map → chunk-ZEUNADU7.mjs.map} +0 -0
  904. /package/out/__chunks__/{chunk-FJIH6TWP.mjs.map → chunk-ZSVNTZ3Q.mjs.map} +0 -0
  905. /package/out/__chunks__/{chunk-7RX2A4WD.mjs.map → chunk-ZXIBFH6X.mjs.map} +0 -0
  906. /package/out/__chunks__/{chunk-RVW2ZWCR.mjs.map → chunk-ZZ53RJBO.mjs.map} +0 -0
  907. /package/out/{__chunks__/chunk-OOJVPJOX.mjs.map → managers/TransactionManager/TransactionManager.types.mjs.map} +0 -0
  908. /package/out/{__chunks__/chunk-PVNL2LED.mjs.map → managers/TransactionManager/helpers/sessionCallbacks.mjs.map} +0 -0
  909. /package/out/{__chunks__/chunk-XKBQDG5H.mjs.map → methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.mjs.map} +0 -0
  910. /package/out/{__chunks__/chunk-XNEYOZ7M.mjs.map → types/suspiciousLink.types.mjs.map} +0 -0
  911. /package/out/{managers/TransactionManager/helpers/getShardOfAddress.mjs.map → types/theme.types.mjs.map} +0 -0
  912. /package/out/{types/misc.types.mjs.map → utils/visual/index.mjs.map} +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/ProviderFactory.ts"],
4
- "sourcesContent": ["import { IframeLoginTypes } from '@multiversx/sdk-web-wallet-iframe-provider/out/constants';\nimport { LedgerIdleStateManager } from 'managers/internal/LedgerIdleStateManager/LedgerIdleStateManager';\nimport { getAddress } from 'methods/account/getAddress';\nimport {\n CrossWindowProviderStrategy,\n ExtensionProviderStrategy,\n IframeProviderStrategy,\n LedgerProviderStrategy,\n WalletConnectProviderStrategy\n} from 'providers/strategies';\nimport { setProviderType } from 'store/actions/loginInfo/loginInfoActions';\nimport { DappProvider } from './DappProvider/DappProvider';\nimport {\n getAccountProvider,\n setAccountProvider\n} from './helpers/accountProvider';\nimport { clearInitiatedLogins } from './helpers/clearInitiatedLogins';\nimport { WebviewProviderStrategy } from './strategies/WebviewProviderStrategy';\nimport {\n ICustomProvider,\n IProvider,\n IProviderFactory,\n ProviderTypeEnum\n} from './types/providerFactory.types';\n\nexport class ProviderFactory {\n private static _customProviders: ICustomProvider[] = [];\n\n public static set customProviders(providers: ICustomProvider[]) {\n this._customProviders = providers;\n }\n\n public static get customProviders() {\n return this._customProviders;\n }\n\n public static async create({\n type,\n anchor\n }: IProviderFactory): Promise<DappProvider> {\n let createdProvider: IProvider | null = null;\n\n switch (type) {\n case ProviderTypeEnum.extension: {\n const providerInstance = new ExtensionProviderStrategy();\n createdProvider = await providerInstance.createProvider();\n\n break;\n }\n\n case ProviderTypeEnum.crossWindow: {\n const providerInstance = new CrossWindowProviderStrategy();\n createdProvider = await providerInstance.createProvider();\n\n break;\n }\n\n case ProviderTypeEnum.ledger: {\n const providerInstance = new LedgerProviderStrategy();\n createdProvider = await providerInstance.createProvider({ anchor });\n\n const ledgerIdleStateManager = LedgerIdleStateManager.getInstance();\n await ledgerIdleStateManager.init();\n\n break;\n }\n\n case ProviderTypeEnum.metamask: {\n const providerInstance = new IframeProviderStrategy({\n type: IframeLoginTypes.metamask\n });\n\n createdProvider = await providerInstance.createProvider();\n\n break;\n }\n\n case ProviderTypeEnum.passkey: {\n const providerInstance = new IframeProviderStrategy({\n type: IframeLoginTypes.passkey\n });\n createdProvider = await providerInstance.createProvider();\n\n break;\n }\n case ProviderTypeEnum.walletConnect: {\n const providerInstance = new WalletConnectProviderStrategy();\n createdProvider = await providerInstance.createProvider({ anchor });\n\n break;\n }\n case ProviderTypeEnum.webview: {\n const providerInstance = new WebviewProviderStrategy();\n createdProvider = await providerInstance.createProvider();\n break;\n }\n\n default: {\n const address = getAddress();\n\n for (const customProvider of this._customProviders) {\n if (customProvider.type === type) {\n createdProvider = await customProvider.constructor({\n address,\n anchor\n });\n }\n }\n break;\n }\n }\n\n if (!createdProvider) {\n throw new Error('Unable to create provider');\n }\n\n createdProvider.getType = () => type;\n const dappProvider = new DappProvider(createdProvider);\n\n setAccountProvider(dappProvider);\n const providerType = type as ProviderTypeEnum;\n setProviderType(providerType);\n\n const shouldClearInitiatedLogins = [\n ProviderTypeEnum.crossWindow,\n ProviderTypeEnum.metamask,\n ProviderTypeEnum.passkey\n ].includes(providerType);\n\n // Clear initiated logins and skip the login method if it's crossWindow or metamask\n clearInitiatedLogins(\n shouldClearInitiatedLogins ? { skipLoginMethod: providerType } : null\n );\n\n return dappProvider;\n }\n\n public static async destroy() {\n const provider = getAccountProvider();\n provider.cancelLogin();\n setAccountProvider(null);\n setProviderType(ProviderTypeEnum.none);\n }\n}\n"],
5
- "mappings": "idAAA,OAAS,oBAAAA,MAAwB,2DAyB1B,IAAMC,EAAN,KAAsB,CAG3B,WAAkB,gBAAgBC,EAA8B,CAC9D,KAAK,iBAAmBA,CAC1B,CAEA,WAAkB,iBAAkB,CAClC,OAAO,KAAK,gBACd,CAEA,aAAoB,OAAO,CACzB,KAAAC,EACA,OAAAC,CACF,EAA4C,CAC1C,IAAIC,EAAoC,KAExC,OAAQF,EAAM,CACZ,gBAAiC,CAE/BE,EAAkB,MADO,IAAIC,EAA0B,EACd,eAAe,EAExD,KACF,CAEA,kBAAmC,CAEjCD,EAAkB,MADO,IAAIE,EAA4B,EAChB,eAAe,EAExD,KACF,CAEA,aAA8B,CAE5BF,EAAkB,MADO,IAAIG,EAAuB,EACX,eAAe,CAAE,OAAAJ,CAAO,CAAC,EAGlE,MAD+BK,EAAuB,YAAY,EACrC,KAAK,EAElC,KACF,CAEA,eAAgC,CAK9BJ,EAAkB,MAJO,IAAIK,EAAuB,CAClD,KAAMC,EAAiB,QACzB,CAAC,EAEwC,eAAe,EAExD,KACF,CAEA,cAA+B,CAI7BN,EAAkB,MAHO,IAAIK,EAAuB,CAClD,KAAMC,EAAiB,OACzB,CAAC,EACwC,eAAe,EAExD,KACF,CACA,oBAAqC,CAEnCN,EAAkB,MADO,IAAIO,EAA8B,EAClB,eAAe,CAAE,OAAAR,CAAO,CAAC,EAElE,KACF,CACA,cAA+B,CAE7BC,EAAkB,MADO,IAAIQ,EAAwB,EACZ,eAAe,EACxD,KACF,CAEA,QAAS,CACP,IAAMC,EAAUC,EAAW,EAE3B,QAAWC,KAAkB,KAAK,iBAC5BA,EAAe,OAASb,IAC1BE,EAAkB,MAAMW,EAAe,YAAY,CACjD,QAAAF,EACA,OAAAV,CACF,CAAC,GAGL,KACF,CACF,CAEA,GAAI,CAACC,EACH,MAAM,IAAI,MAAM,2BAA2B,EAG7CA,EAAgB,QAAU,IAAMF,EAChC,IAAMc,EAAe,IAAIC,EAAab,CAAe,EAErDc,EAAmBF,CAAY,EAC/B,IAAMG,EAAejB,EACrBkB,EAAgBD,CAAY,EAE5B,IAAME,EAA6B,mCAInC,EAAE,SAASF,CAAY,EAGvB,OAAAG,EACED,EAA6B,CAAE,gBAAiBF,CAAa,EAAI,IACnE,EAEOH,CACT,CAEA,aAAoB,SAAU,CACXO,EAAmB,EAC3B,YAAY,EACrBL,EAAmB,IAAI,EACvBE,IAAqC,CACvC,CACF,EAtHapB,EACI,iBAAsC,CAAC",
6
- "names": ["IframeLoginTypes", "ProviderFactory", "providers", "type", "anchor", "createdProvider", "ExtensionProviderStrategy", "CrossWindowProviderStrategy", "LedgerProviderStrategy", "LedgerIdleStateManager", "IframeProviderStrategy", "IframeLoginTypes", "WalletConnectProviderStrategy", "WebviewProviderStrategy", "address", "getAddress", "customProvider", "dappProvider", "DappProvider", "setAccountProvider", "providerType", "setProviderType", "shouldClearInitiatedLogins", "clearInitiatedLogins", "getAccountProvider"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-JXO7XRIR.mjs";import{b as s}from"./chunk-JR3FBBRR.mjs";import{u as n}from"./chunk-CN4RHVUE.mjs";async function f(){let t=s(n());if(Object.keys(t).length>0)for(let[e,{transactions:c}]of Object.entries(t))await o({sessionId:e,transactionBatch:c})}export{f as a};
2
- //# sourceMappingURL=chunk-WGOZYG4T.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as m}from"./chunk-7TOTBAGV.mjs";import{a as e}from"./chunk-7QCBLUWB.mjs";var E=async({name:t,anchor:o})=>{if(await m(e),!e.document)return{};let n=e.document.createElement(t);return(o||e.document.body).appendChild(n),await customElements.whenDefined(t),n};export{E as a};
2
- //# sourceMappingURL=chunk-WTCFHVW3.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as n}from"./chunk-6746F2FY.mjs";import{c as o,f as r}from"./chunk-2CNSQULM.mjs";async function M({message:a,provider:e,options:s}){let i=n(),t=new r({address:new o(i),data:a.data});return s?.hasConsentPopup&&e.getType()==="crossWindow"&&e.setShouldShowConsentPopup(!0),await e.signMessage(t,s)}export{M as a};
2
- //# sourceMappingURL=chunk-WVTCO3AV.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/DappProvider/helpers/signMessage/signMessageWithProvider.ts"],
4
- "sourcesContent": ["import { Message, Address } from 'lib/sdkCore';\nimport { CrossWindowProvider } from 'lib/sdkWebWalletCrossWindowProvider';\nimport { getAddress } from 'methods/account/getAddress';\nimport {\n IProvider,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { Nullable } from 'types';\n\nexport type SignMessageType = {\n provider: IProvider;\n message: Message;\n options?: {\n hasConsentPopup?: boolean;\n };\n};\n\nexport async function signMessageWithProvider({\n message,\n provider,\n options\n}: SignMessageType): Promise<Nullable<Message>> {\n const address = getAddress();\n\n const messageToSign = new Message({\n address: new Address(address),\n data: message.data\n });\n\n if (\n options?.hasConsentPopup &&\n provider.getType() === ProviderTypeEnum.crossWindow\n ) {\n (provider as unknown as CrossWindowProvider).setShouldShowConsentPopup(\n true\n ); // TODO: is this still needed ?\n }\n\n const signedMessage = await provider.signMessage(messageToSign, options);\n\n return signedMessage;\n}\n"],
5
- "mappings": "yFAiBA,eAAsBA,EAAwB,CAC5C,QAAAC,EACA,SAAAC,EACA,QAAAC,CACF,EAAgD,CAC9C,IAAMC,EAAUC,EAAW,EAErBC,EAAgB,IAAIC,EAAQ,CAChC,QAAS,IAAIC,EAAQJ,CAAO,EAC5B,KAAMH,EAAQ,IAChB,CAAC,EAED,OACEE,GAAS,iBACTD,EAAS,QAAQ,mBAEhBA,EAA4C,0BAC3C,EACF,EAGoB,MAAMA,EAAS,YAAYI,EAAeH,CAAO,CAGzE",
6
- "names": ["signMessageWithProvider", "message", "provider", "options", "address", "getAddress", "messageToSign", "Message", "Address"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a as e}from"./chunk-KJCZ5HAU.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect-provider"});this.initialData={wcURI:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
2
- //# sourceMappingURL=chunk-WZNCESVG.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/managers/internal/WalletConnectStateManager/WalletConnectStateManager.ts"],
4
- "sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxWalletConnectProvider } from 'lib/sdkDappUi';\nimport { UnlockPanelEventsEnum } from 'managers/UnlockPanelManager/UnlockPanelManager.types';\nimport {\n WalletConnectEventsEnum,\n IWalletConnectModalData\n} from 'providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types';\nimport { UIBaseManager } from '../UIBaseManager/UIBaseManager';\n\nexport class WalletConnectStateManager extends UIBaseManager<\n MvxWalletConnectProvider,\n IWalletConnectModalData,\n WalletConnectEventsEnum\n> {\n private static instance: WalletConnectStateManager;\n\n protected initialData: IWalletConnectModalData = {\n wcURI: ''\n };\n\n public static getInstance(): WalletConnectStateManager {\n if (!WalletConnectStateManager.instance) {\n WalletConnectStateManager.instance = new WalletConnectStateManager();\n }\n return WalletConnectStateManager.instance;\n }\n\n constructor() {\n super({\n uiDataUpdateEvent: WalletConnectEventsEnum.DATA_UPDATE,\n uiTag: UITagsEnum.WALLET_CONNECT\n });\n this.data = { ...this.initialData };\n }\n\n public handleClose(options?: { isLoginFinished?: boolean }) {\n if (options?.isLoginFinished) {\n return;\n }\n\n if (this.anchor) {\n this.anchor.dispatchEvent(\n new CustomEvent(UnlockPanelEventsEnum.ANCHOR_CLOSE, {\n composed: false,\n bubbles: false\n })\n );\n } else {\n this.destroy();\n }\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.subscribe(\n WalletConnectEventsEnum.CLOSE,\n this.handleClose.bind(this)\n );\n\n this.eventBus.subscribe(\n WalletConnectEventsEnum.UI_DISCONNECTED,\n this.destroy.bind(this)\n );\n }\n}\n"],
5
- "mappings": "yCASO,IAAMA,EAAN,MAAMC,UAAkCC,CAI7C,CAcA,aAAc,CACZ,MAAM,CACJ,gCACA,mCACF,CAAC,EAfH,KAAU,YAAuC,CAC/C,MAAO,EACT,EAcE,KAAK,KAAO,CAAE,GAAG,KAAK,WAAY,CACpC,CAbA,OAAc,aAAyC,CACrD,OAAKD,EAA0B,WAC7BA,EAA0B,SAAW,IAAIA,GAEpCA,EAA0B,QACnC,CAUO,YAAYE,EAAyC,CACtDA,GAAS,kBAIT,KAAK,OACP,KAAK,OAAO,cACV,IAAI,2BAAgD,CAClD,SAAU,GACV,QAAS,EACX,CAAC,CACH,EAEA,KAAK,QAAQ,EAEjB,CAEA,MAAgB,qBAAsB,CAC/B,KAAK,WAIV,KAAK,SAAS,kBAEZ,KAAK,YAAY,KAAK,IAAI,CAC5B,EAEA,KAAK,SAAS,4BAEZ,KAAK,QAAQ,KAAK,IAAI,CACxB,EACF,CACF",
6
- "names": ["WalletConnectStateManager", "_WalletConnectStateManager", "UIBaseManager", "options"]
7
- }
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-WZNCESVG.mjs";import{a as h}from"./chunk-BQL3NILA.mjs";import{a as _}from"./chunk-KQ3I46X7.mjs";import{a as P}from"./chunk-NCUYIZYI.mjs";import{e as r,f as A}from"./chunk-FFHVVGYW.mjs";import{p as T}from"./chunk-7JA77EJQ.mjs";import{a as I}from"./chunk-QI2QMNTG.mjs";import{u as d}from"./chunk-CN4RHVUE.mjs";import{b as w,c as f}from"./chunk-IEJTMYFW.mjs";import{c as m}from"./chunk-SAAOQW7P.mjs";import{a as M}from"./chunk-7TOTBAGV.mjs";import{a as p}from"./chunk-2X7ENE6Y.mjs";import{a as E}from"./chunk-7QCBLUWB.mjs";import{OptionalOperation as v}from"@multiversx/sdk-wallet-connect-provider/out";var L=[r.CANCEL_ACTION,r.SIGN_LOGIN_TOKEN],O=class{constructor(n){this.provider=null;this.methods=[];this.approval=null;this._login=null;this._signTransactions=null;this._signMessage=null;this.createProvider=async n=>{if(this.initialize(),await M(E),await this.initWalletConnectManager(n?.anchor),!this.provider&&this.config){let{walletConnectProvider:t,dappMethods:e}=await this.createWalletConnectProvider(this.config);this._login=t.login.bind(t),this._signTransactions=t.signTransactions.bind(t),this._signMessage=t.signMessage.bind(t),this.provider=t,this.methods=e}if(this.provider){let{uri:t="",approval:e}=await this.provider.connect({methods:this.methods});this.approval=e,a.getInstance().updateData({wcURI:t})}return this.buildProvider()};this.buildProvider=()=>{if(!this.provider)throw new Error("Provider is not initialized.");let n=this.provider;return n.login=this.login,n.signTransactions=this.signTransactions,n.signMessage=this.signMessage,n};this.initialize=()=>{if(this.config?.walletConnectV2ProjectId)return;let n=f(d());if(!n)throw new Error("Invalid WalletConnect setup");this.config=n};this.initWalletConnectManager=async n=>{if(!!h())return;await a.getInstance().init(n)};this.createWalletConnectProvider=async n=>{let t=h(),e=m(d());if(w(d())&&L.push(r.SIGN_NATIVE_AUTH_TOKEN),!n?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let l={onClientLogin:()=>{},onClientLogout:()=>{I()},onClientEvent:o=>{}};try{let{walletConnectV2ProjectId:o,walletConnectV2Options:C={},walletConnectV2RelayAddress:y=""}=n,u=new A(l,e,y,o,C);return await u.init(),{walletConnectProvider:u,dappMethods:L}}catch(o){throw console.error("Unable to connect",o),t&&await T().logout(),o}};this.login=async n=>{if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");if(this.provider.isConnected())throw new Error("Unable to connect");let e=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!this._login)throw new Error("Login method is not initialized.");try{await this.provider.init();let i=a.getInstance(),{uri:s="",approval:c}=await this.provider.connect({methods:this.methods});i.updateData({wcURI:s});let g=await this._login({approval:c,token:n?.token}),{address:l="",signature:o=""}=g??{};return i.handleClose({isLoginFinished:!!l}),{address:l,signature:o}}catch{return await e()}};if(!this.approval||!this._login)throw new Error("Approval or login is not initialized");try{let i=await this._login({approval:this.approval,token:n?.token}),{address:s="",signature:c=""}=i??{};return a.getInstance().handleClose({isLoginFinished:!!s}),{address:s,signature:c}}catch(i){return console.error("User rejected connection proposal",i),await e()}};this.signTransactions=async n=>{if(!this.provider||!this._signTransactions)throw new Error("Provider is not initialized.");let{manager:t,onClose:e}=await P({cancelAction:this.cancelAction.bind(this)});t.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",e),t.updateData({name:p.walletConnect,type:"walletConnect"});try{return await this._signTransactions(n)}catch(i){throw await e({shouldCancelAction:!0}),await this.sendCustomRequest({method:r.CANCEL_ACTION,action:v.CANCEL_ACTION}),i}finally{t.closeUI()}};this.signMessage=async n=>{if(!this.provider||!this._signMessage)throw new Error("Provider is not initialized.");let t=()=>this.sendCustomRequest({method:r.CANCEL_ACTION,action:v.CANCEL_ACTION});return await _({message:n,handleSignMessage:this._signMessage.bind(this.provider),cancelAction:t,providerType:p.extension})};this.config=n}async cancelAction(){await this.sendCustomRequest({method:r.CANCEL_ACTION,action:v.CANCEL_ACTION})}async sendCustomRequest({action:n,method:t}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:t,params:{action:n}}})}catch(e){console.error("Unable to send event",e)}}};export{O as a};
2
- //# sourceMappingURL=chunk-XG2BS23C.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.ts"],
4
- "sourcesContent": ["import {\n IProviderAccount,\n SessionEventTypes,\n SessionTypes,\n OptionalOperation\n} from '@multiversx/sdk-wallet-connect-provider/out';\nimport { providerLabels } from 'constants/providerFactory.constants';\nimport { safeWindow } from 'constants/window.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { defineCustomElements } from 'lib/sdkDappUi';\nimport { PendingTransactionsEventsEnum } from 'managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types';\nimport { WalletConnectStateManager } from 'managers/internal/WalletConnectStateManager/WalletConnectStateManager';\nimport { getIsLoggedIn } from 'methods/account/getIsLoggedIn';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { getPendingTransactionsHandlers } from 'providers/strategies/helpers';\nimport {\n IProvider,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { logoutAction } from 'store/actions';\nimport {\n chainIdSelector,\n nativeAuthConfigSelector,\n walletConnectConfigSelector\n} from 'store/selectors';\nimport { getState } from 'store/store';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport {\n WalletConnectOptionalMethodsEnum,\n WalletConnectV2Provider\n} from 'utils/walletconnect/__sdkWalletconnectProvider';\nimport { WalletConnectV2Error, WalletConnectConfig } from './types';\nimport { signMessage } from '../helpers/signMessage/signMessage';\n\nconst dappMethods: string[] = [\n WalletConnectOptionalMethodsEnum.CANCEL_ACTION,\n WalletConnectOptionalMethodsEnum.SIGN_LOGIN_TOKEN\n];\n\nexport class WalletConnectProviderStrategy {\n private provider: WalletConnectV2Provider | null = null;\n private config: WalletConnectConfig | undefined;\n private methods: string[] = [];\n private approval: (() => Promise<SessionTypes.Struct>) | null = null;\n private _login:\n | ((options?: {\n approval?: () => Promise<SessionTypes.Struct>;\n token?: string;\n }) => Promise<IProviderAccount | null>)\n | null = null;\n private _signTransactions:\n | ((transactions: Transaction[]) => Promise<Transaction[]>)\n | null = null;\n private _signMessage: ((message: Message) => Promise<Message>) | null = null;\n\n constructor(config?: WalletConnectConfig) {\n this.config = config;\n }\n\n public createProvider = async (options?: {\n anchor?: HTMLElement;\n }): Promise<IProvider> => {\n this.initialize();\n await defineCustomElements(safeWindow);\n await this.initWalletConnectManager(options?.anchor);\n\n if (!this.provider && this.config) {\n const { walletConnectProvider, dappMethods: dAppMethods } =\n await this.createWalletConnectProvider(this.config);\n\n // Bind in order to break reference\n this._login = walletConnectProvider.login.bind(walletConnectProvider);\n this._signTransactions = walletConnectProvider.signTransactions.bind(\n walletConnectProvider\n );\n this._signMessage = walletConnectProvider.signMessage.bind(\n walletConnectProvider\n );\n\n this.provider = walletConnectProvider;\n this.methods = dAppMethods;\n }\n\n if (this.provider) {\n const { uri = '', approval } = await this.provider.connect({\n methods: this.methods\n });\n\n this.approval = approval;\n const walletConnectManager = WalletConnectStateManager.getInstance();\n walletConnectManager.updateData({ wcURI: uri });\n }\n return this.buildProvider();\n };\n\n private buildProvider = () => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const provider = this.provider as unknown as IProvider;\n provider.login = this.login;\n provider.signTransactions = this.signTransactions;\n provider.signMessage = this.signMessage;\n\n return provider;\n };\n\n private initialize = () => {\n if (this.config?.walletConnectV2ProjectId) {\n return;\n }\n\n const walletConnectConfig = walletConnectConfigSelector(getState());\n\n if (!walletConnectConfig) {\n throw new Error(WalletConnectV2Error.invalidConfig);\n }\n\n this.config = walletConnectConfig;\n };\n\n private initWalletConnectManager = async (anchor?: HTMLElement) => {\n const shouldInitiateLogin = !getIsLoggedIn();\n\n if (!shouldInitiateLogin) {\n return;\n }\n\n const walletConnectManager = WalletConnectStateManager.getInstance();\n await walletConnectManager.init(anchor);\n };\n\n private createWalletConnectProvider = async (config: WalletConnectConfig) => {\n const isLoggedIn = getIsLoggedIn();\n const chainId = chainIdSelector(getState());\n const nativeAuthConfig = nativeAuthConfigSelector(getState());\n\n if (nativeAuthConfig) {\n dappMethods.push(WalletConnectOptionalMethodsEnum.SIGN_NATIVE_AUTH_TOKEN);\n }\n\n if (!config?.walletConnectV2ProjectId) {\n throw new Error(WalletConnectV2Error.invalidConfig);\n }\n\n const handleOnLogin = () => {};\n\n const handleOnLogout = () => {\n logoutAction();\n };\n\n const handleOnEvent = (_event: SessionEventTypes['event']) => {};\n\n const providerHandlers = {\n onClientLogin: handleOnLogin,\n onClientLogout: handleOnLogout,\n onClientEvent: handleOnEvent\n };\n\n try {\n const {\n walletConnectV2ProjectId,\n walletConnectV2Options = {},\n walletConnectV2RelayAddress = ''\n } = config;\n const walletConnectProvider = new WalletConnectV2Provider(\n providerHandlers,\n chainId,\n walletConnectV2RelayAddress,\n walletConnectV2ProjectId,\n walletConnectV2Options\n );\n\n await walletConnectProvider.init();\n\n return { walletConnectProvider, dappMethods };\n } catch (err) {\n console.error(WalletConnectV2Error.connectError, err);\n\n if (isLoggedIn) {\n const provider = getAccountProvider();\n await provider.logout();\n }\n\n throw err;\n }\n };\n\n private login = async (options?: {\n token?: string;\n }): Promise<{\n address: string;\n signature: string;\n }> => {\n if (!this.provider) {\n throw new Error(\n 'Provider is not initialized. Call createProvider first.'\n );\n }\n\n const isConnected = this.provider.isConnected();\n\n if (isConnected) {\n throw new Error(WalletConnectV2Error.connectError);\n }\n\n const reconnect = async (): Promise<{\n address: string;\n signature: string;\n }> => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n if (!this._login) {\n throw new Error('Login method is not initialized.');\n }\n\n try {\n await this.provider.init();\n const walletConnectManager = WalletConnectStateManager.getInstance();\n\n const { uri = '', approval: wcApproval } = await this.provider.connect({\n methods: this.methods\n });\n\n walletConnectManager.updateData({ wcURI: uri });\n\n const providerInfo = await this._login({\n approval: wcApproval,\n token: options?.token\n });\n\n const { address = '', signature = '' } = providerInfo ?? {};\n\n walletConnectManager.handleClose({ isLoginFinished: Boolean(address) });\n return { address, signature };\n } catch {\n return await reconnect();\n }\n };\n\n if (!this.approval || !this._login) {\n throw new Error('Approval or login is not initialized');\n }\n\n try {\n const providerData = await this._login({\n approval: this.approval,\n token: options?.token\n });\n\n const { address = '', signature = '' } = providerData ?? {};\n\n const walletConnectManager = WalletConnectStateManager.getInstance();\n walletConnectManager.handleClose({ isLoginFinished: Boolean(address) });\n return { address, signature };\n } catch (error) {\n console.error(WalletConnectV2Error.userRejected, error);\n return await reconnect();\n }\n };\n\n private signTransactions = async (transactions: Transaction[]) => {\n if (!this.provider || !this._signTransactions) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const { manager, onClose } = await getPendingTransactionsHandlers({\n cancelAction: this.cancelAction.bind(this)\n });\n\n manager.subscribeToEventBus(PendingTransactionsEventsEnum.CLOSE, onClose);\n\n manager.updateData({\n name: providerLabels.walletConnect,\n type: ProviderTypeEnum.walletConnect\n });\n try {\n const signedTransactions: Transaction[] =\n await this._signTransactions(transactions);\n\n return signedTransactions;\n } catch (error) {\n await onClose({ shouldCancelAction: true });\n await this.sendCustomRequest({\n method: WalletConnectOptionalMethodsEnum.CANCEL_ACTION,\n action: OptionalOperation.CANCEL_ACTION\n });\n throw error;\n } finally {\n manager.closeUI();\n }\n };\n\n private signMessage = async (message: Message) => {\n if (!this.provider || !this._signMessage) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const cancelAction = () => {\n return this.sendCustomRequest({\n method: WalletConnectOptionalMethodsEnum.CANCEL_ACTION,\n action: OptionalOperation.CANCEL_ACTION\n });\n };\n\n const signedMessage = await signMessage({\n message,\n handleSignMessage: this._signMessage.bind(this.provider),\n cancelAction,\n providerType: providerLabels.extension\n });\n\n return signedMessage;\n };\n\n private async cancelAction() {\n await this.sendCustomRequest({\n method: WalletConnectOptionalMethodsEnum.CANCEL_ACTION,\n action: OptionalOperation.CANCEL_ACTION\n });\n }\n\n private async sendCustomRequest({\n action,\n method\n }: {\n action: OptionalOperation;\n method: WalletConnectOptionalMethodsEnum;\n }) {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n await this.provider.sendCustomRequest?.({\n request: {\n method,\n params: { action }\n }\n });\n } catch (error) {\n console.error(WalletConnectV2Error.actionError, error);\n }\n }\n}\n"],
5
- "mappings": "8hBAAA,OAIE,qBAAAA,MACK,8CA6BP,IAAMC,EAAwB,CAC5BC,EAAiC,cACjCA,EAAiC,gBACnC,EAEaC,EAAN,KAAoC,CAgBzC,YAAYC,EAA8B,CAf1C,KAAQ,SAA2C,KAEnD,KAAQ,QAAoB,CAAC,EAC7B,KAAQ,SAAwD,KAChE,KAAQ,OAKG,KACX,KAAQ,kBAEG,KACX,KAAQ,aAAgE,KAMxE,KAAO,eAAiB,MAAOC,GAEL,CAKxB,GAJA,KAAK,WAAW,EAChB,MAAMC,EAAqBC,CAAU,EACrC,MAAM,KAAK,yBAAyBF,GAAS,MAAM,EAE/C,CAAC,KAAK,UAAY,KAAK,OAAQ,CACjC,GAAM,CAAE,sBAAAG,EAAuB,YAAaC,CAAY,EACtD,MAAM,KAAK,4BAA4B,KAAK,MAAM,EAGpD,KAAK,OAASD,EAAsB,MAAM,KAAKA,CAAqB,EACpE,KAAK,kBAAoBA,EAAsB,iBAAiB,KAC9DA,CACF,EACA,KAAK,aAAeA,EAAsB,YAAY,KACpDA,CACF,EAEA,KAAK,SAAWA,EAChB,KAAK,QAAUC,CACjB,CAEA,GAAI,KAAK,SAAU,CACjB,GAAM,CAAE,IAAAC,EAAM,GAAI,SAAAC,CAAS,EAAI,MAAM,KAAK,SAAS,QAAQ,CACzD,QAAS,KAAK,OAChB,CAAC,EAED,KAAK,SAAWA,EACaC,EAA0B,YAAY,EAC9C,WAAW,CAAE,MAAOF,CAAI,CAAC,CAChD,CACA,OAAO,KAAK,cAAc,CAC5B,EAEA,KAAQ,cAAgB,IAAM,CAC5B,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,IAAMG,EAAW,KAAK,SACtB,OAAAA,EAAS,MAAQ,KAAK,MACtBA,EAAS,iBAAmB,KAAK,iBACjCA,EAAS,YAAc,KAAK,YAErBA,CACT,EAEA,KAAQ,WAAa,IAAM,CACzB,GAAI,KAAK,QAAQ,yBACf,OAGF,IAAMC,EAAsBC,EAA4BC,EAAS,CAAC,EAElE,GAAI,CAACF,EACH,MAAM,IAAI,mCAAwC,EAGpD,KAAK,OAASA,CAChB,EAEA,KAAQ,yBAA2B,MAAOG,GAAyB,CAGjE,GAAI,CAFwB,CAACC,EAAc,EAGzC,OAIF,MAD6BN,EAA0B,YAAY,EACxC,KAAKK,CAAM,CACxC,EAEA,KAAQ,4BAA8B,MAAOb,GAAgC,CAC3E,IAAMe,EAAaD,EAAc,EAC3BE,EAAUC,EAAgBL,EAAS,CAAC,EAO1C,GANyBM,EAAyBN,EAAS,CAAC,GAG1Df,EAAY,KAAKC,EAAiC,sBAAsB,EAGtE,CAACE,GAAQ,yBACX,MAAM,IAAI,mCAAwC,EAWpD,IAAMmB,EAAmB,CACvB,cAToB,IAAM,CAAC,EAU3B,eARqB,IAAM,CAC3BC,EAAa,CACf,EAOE,cALqBC,GAAuC,CAAC,CAM/D,EAEA,GAAI,CACF,GAAM,CACJ,yBAAAC,EACA,uBAAAC,EAAyB,CAAC,EAC1B,4BAAAC,EAA8B,EAChC,EAAIxB,EACEI,EAAwB,IAAIqB,EAChCN,EACAH,EACAQ,EACAF,EACAC,CACF,EAEA,aAAMnB,EAAsB,KAAK,EAE1B,CAAE,sBAAAA,EAAuB,YAAAP,CAAY,CAC9C,OAAS6B,EAAK,CACZ,cAAQ,0BAAyCA,CAAG,EAEhDX,GAEF,MADiBY,EAAmB,EACrB,OAAO,EAGlBD,CACR,CACF,EAEA,KAAQ,MAAQ,MAAOzB,GAKjB,CACJ,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,MACR,yDACF,EAKF,GAFoB,KAAK,SAAS,YAAY,EAG5C,MAAM,IAAI,yBAAuC,EAGnD,IAAM2B,EAAY,SAGZ,CACJ,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,GAAI,CAAC,KAAK,OACR,MAAM,IAAI,MAAM,kCAAkC,EAGpD,GAAI,CACF,MAAM,KAAK,SAAS,KAAK,EACzB,IAAMC,EAAuBrB,EAA0B,YAAY,EAE7D,CAAE,IAAAF,EAAM,GAAI,SAAUwB,CAAW,EAAI,MAAM,KAAK,SAAS,QAAQ,CACrE,QAAS,KAAK,OAChB,CAAC,EAEDD,EAAqB,WAAW,CAAE,MAAOvB,CAAI,CAAC,EAE9C,IAAMyB,EAAe,MAAM,KAAK,OAAO,CACrC,SAAUD,EACV,MAAO7B,GAAS,KAClB,CAAC,EAEK,CAAE,QAAA+B,EAAU,GAAI,UAAAC,EAAY,EAAG,EAAIF,GAAgB,CAAC,EAE1D,OAAAF,EAAqB,YAAY,CAAE,gBAAiB,EAAQG,CAAS,CAAC,EAC/D,CAAE,QAAAA,EAAS,UAAAC,CAAU,CAC9B,MAAQ,CACN,OAAO,MAAML,EAAU,CACzB,CACF,EAEA,GAAI,CAAC,KAAK,UAAY,CAAC,KAAK,OAC1B,MAAM,IAAI,MAAM,sCAAsC,EAGxD,GAAI,CACF,IAAMM,EAAe,MAAM,KAAK,OAAO,CACrC,SAAU,KAAK,SACf,MAAOjC,GAAS,KAClB,CAAC,EAEK,CAAE,QAAA+B,EAAU,GAAI,UAAAC,EAAY,EAAG,EAAIC,GAAgB,CAAC,EAG1D,OAD6B1B,EAA0B,YAAY,EAC9C,YAAY,CAAE,gBAAiB,EAAQwB,CAAS,CAAC,EAC/D,CAAE,QAAAA,EAAS,UAAAC,CAAU,CAC9B,OAASE,EAAO,CACd,eAAQ,0CAAyCA,CAAK,EAC/C,MAAMP,EAAU,CACzB,CACF,EAEA,KAAQ,iBAAmB,MAAOQ,GAAgC,CAChE,GAAI,CAAC,KAAK,UAAY,CAAC,KAAK,kBAC1B,MAAM,IAAI,oCAAuC,EAGnD,GAAM,CAAE,QAAAC,EAAS,QAAAC,CAAQ,EAAI,MAAMC,EAA+B,CAChE,aAAc,KAAK,aAAa,KAAK,IAAI,CAC3C,CAAC,EAEDF,EAAQ,iDAAyDC,CAAO,EAExED,EAAQ,WAAW,CACjB,KAAMG,EAAe,cACrB,oBACF,CAAC,EACD,GAAI,CAIF,OAFE,MAAM,KAAK,kBAAkBJ,CAAY,CAG7C,OAASD,EAAO,CACd,YAAMG,EAAQ,CAAE,mBAAoB,EAAK,CAAC,EAC1C,MAAM,KAAK,kBAAkB,CAC3B,OAAQxC,EAAiC,cACzC,OAAQ2C,EAAkB,aAC5B,CAAC,EACKN,CACR,QAAE,CACAE,EAAQ,QAAQ,CAClB,CACF,EAEA,KAAQ,YAAc,MAAOK,GAAqB,CAChD,GAAI,CAAC,KAAK,UAAY,CAAC,KAAK,aAC1B,MAAM,IAAI,oCAAuC,EAGnD,IAAMC,EAAe,IACZ,KAAK,kBAAkB,CAC5B,OAAQ7C,EAAiC,cACzC,OAAQ2C,EAAkB,aAC5B,CAAC,EAUH,OAPsB,MAAMG,EAAY,CACtC,QAAAF,EACA,kBAAmB,KAAK,aAAa,KAAK,KAAK,QAAQ,EACvD,aAAAC,EACA,aAAcH,EAAe,SAC/B,CAAC,CAGH,EApQE,KAAK,OAASxC,CAChB,CAqQA,MAAc,cAAe,CAC3B,MAAM,KAAK,kBAAkB,CAC3B,OAAQF,EAAiC,cACzC,OAAQ2C,EAAkB,aAC5B,CAAC,CACH,CAEA,MAAc,kBAAkB,CAC9B,OAAAI,EACA,OAAAC,CACF,EAGG,CACD,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,GAAI,CACF,MAAM,KAAK,SAAS,oBAAoB,CACtC,QAAS,CACP,OAAAA,EACA,OAAQ,CAAE,OAAAD,CAAO,CACnB,CACF,CAAC,CACH,OAASV,EAAO,CACd,QAAQ,6BAAwCA,CAAK,CACvD,CACF,CACF",
6
- "names": ["OptionalOperation", "dappMethods", "WalletConnectOptionalMethodsEnum", "WalletConnectProviderStrategy", "config", "options", "defineCustomElements", "safeWindow", "walletConnectProvider", "dAppMethods", "uri", "approval", "WalletConnectStateManager", "provider", "walletConnectConfig", "walletConnectConfigSelector", "getState", "anchor", "getIsLoggedIn", "isLoggedIn", "chainId", "chainIdSelector", "nativeAuthConfigSelector", "providerHandlers", "logoutAction", "_event", "walletConnectV2ProjectId", "walletConnectV2Options", "walletConnectV2RelayAddress", "WalletConnectV2Provider", "err", "getAccountProvider", "reconnect", "walletConnectManager", "wcApproval", "providerInfo", "address", "signature", "providerData", "error", "transactions", "manager", "onClose", "getPendingTransactionsHandlers", "providerLabels", "OptionalOperation", "message", "cancelAction", "signMessage", "action", "method"]
7
- }
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-XKBQDG5H.mjs.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-XNEYOZ7M.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as r}from"./chunk-RWQNLK3I.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as d}from"./chunk-VJBLHJYB.mjs";import{a}from"./chunk-RRK6GTWZ.mjs";import{a as o}from"./chunk-IPMSVHGJ.mjs";import{a as g}from"./chunk-PSJI2G34.mjs";import{a as i}from"./chunk-2CG6PNPJ.mjs";import{a as p,b as e}from"./chunk-HDRB2QL6.mjs";import{rest as t}from"msw";import{setupServer as u}from"msw/node";var s=m=>(R,f,n)=>f(n.status(200),n.json(m)),k=[t.get(`${e.apiAddress}/dapp/config`,s(c)),t.get(`${e.apiAddress}/network/config`,s(i)),t.get(`https://${o.url}/socket.io/`,s(g)),t.get(`${e.apiAddress}/websocket/config`,s(o)),t.get(`${e.apiAddress}/accounts/${p}`,s(a)),t.get(`${e.apiAddress}/accounts/${r.address}`,s(r)),t.get(`${e.apiAddress}/blocks`,s(d))],P=u(...k);export{t as a,s as b,P as c};
2
- //# sourceMappingURL=chunk-XU34NXIS.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as o}from"./chunk-CN4RHVUE.mjs";import{b as t}from"./chunk-LTF535HP.mjs";function c(r=o()){return t(r)}export{c as a};
2
- //# sourceMappingURL=chunk-YQTGKHGB.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as t}from"./chunk-CN4RHVUE.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";function g(r=t()){return e(r).egldLabel}export{g as a};
2
- //# sourceMappingURL=chunk-YVVDA6LN.mjs.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-YUFPUG5O.mjs";import{a as g}from"./chunk-KQ3I46X7.mjs";import{a as r}from"./chunk-2X7ENE6Y.mjs";async function M({message:o,handleSignMessage:i}){try{return await g({message:o,handleSignMessage:i,providerType:r.ledger})}catch(e){let{errorMessage:s}=a(e);throw s?{message:s}:e}}export{M as a};
2
- //# sourceMappingURL=chunk-ZC3TMTLB.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.ts"],
4
- "sourcesContent": ["import { providerLabels } from 'constants/providerFactory.constants';\nimport { Message } from 'lib/sdkCore';\nimport { getLedgerErrorCodes } from './getLedgerErrorCodes';\nimport { signMessage } from '../../helpers/signMessage/signMessage';\n\nexport async function signLedgerMessage({\n message,\n handleSignMessage\n}: {\n message: Message;\n handleSignMessage: (msg: Message) => Promise<Message>;\n}): Promise<Message> {\n try {\n const signedMessage = await signMessage({\n message,\n handleSignMessage: handleSignMessage,\n providerType: providerLabels.ledger\n });\n return signedMessage;\n } catch (error) {\n const { errorMessage } = getLedgerErrorCodes(error);\n throw errorMessage ? { message: errorMessage } : error;\n }\n}\n"],
5
- "mappings": "sHAKA,eAAsBA,EAAkB,CACtC,QAAAC,EACA,kBAAAC,CACF,EAGqB,CACnB,GAAI,CAMF,OALsB,MAAMC,EAAY,CACtC,QAAAF,EACA,kBAAmBC,EACnB,aAAcE,EAAe,MAC/B,CAAC,CAEH,OAASC,EAAO,CACd,GAAM,CAAE,aAAAC,CAAa,EAAIC,EAAoBF,CAAK,EAClD,MAAMC,EAAe,CAAE,QAASA,CAAa,EAAID,CACnD,CACF",
6
- "names": ["signLedgerMessage", "message", "handleSignMessage", "signMessage", "providerLabels", "error", "errorMessage", "getLedgerErrorCodes"]
7
- }
@@ -1 +0,0 @@
1
- export declare const getShardOfAddress: (hexPubKey: any) => number;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getShardOfAddress = void 0;
4
- const index_1 = require("../../../constants/index");
5
- const isAddressOfMetachain = (pubKey) => {
6
- // prettier-ignore
7
- const metachainPrefix = Buffer.from([
8
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
9
- ]);
10
- const pubKeyPrefix = pubKey.slice(0, metachainPrefix.length);
11
- if (pubKeyPrefix.equals(metachainPrefix)) {
12
- return true;
13
- }
14
- const zeroAddress = Buffer.alloc(32).fill(0);
15
- return pubKey.equals(zeroAddress);
16
- };
17
- const getShardOfAddress = (hexPubKey) => {
18
- try {
19
- const numShards = 3;
20
- const maskHigh = parseInt('11', 2);
21
- const maskLow = parseInt('01', 2);
22
- const pubKey = Buffer.from(hexPubKey, 'hex');
23
- const lastByteOfPubKey = pubKey[31];
24
- if (isAddressOfMetachain(pubKey)) {
25
- return index_1.METACHAIN_SHARD_ID;
26
- }
27
- let shard = lastByteOfPubKey & maskHigh;
28
- if (shard > numShards - 1) {
29
- shard = lastByteOfPubKey & maskLow;
30
- }
31
- return shard;
32
- }
33
- catch (_err) {
34
- return -1;
35
- }
36
- };
37
- exports.getShardOfAddress = getShardOfAddress;
38
- //# sourceMappingURL=getShardOfAddress.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getShardOfAddress.js","sourceRoot":"","sources":["../../../../src/managers/TransactionManager/helpers/getShardOfAddress.ts"],"names":[],"mappings":";;;AAAA,2CAAqD;AAErD,MAAM,oBAAoB,GAAG,CAAC,MAAc,EAAE,EAAE;IAC9C,kBAAkB;IAClB,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC;QAClC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;KAC1E,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC7D,IAAI,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7C,OAAO,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AACpC,CAAC,CAAC;AACK,MAAM,iBAAiB,GAAG,CAAC,SAAc,EAAE,EAAE;IAClD,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,CAAC,CAAC;QACpB,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAClC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC7C,MAAM,gBAAgB,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;QACpC,IAAI,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC;YACjC,OAAO,0BAAkB,CAAC;QAC5B,CAAC;QACD,IAAI,KAAK,GAAG,gBAAgB,GAAG,QAAQ,CAAC;QACxC,IAAI,KAAK,GAAG,SAAS,GAAG,CAAC,EAAE,CAAC;YAC1B,KAAK,GAAG,gBAAgB,GAAG,OAAO,CAAC;QACrC,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAAC,OAAO,IAAI,EAAE,CAAC;QACd,OAAO,CAAC,CAAC,CAAC;IACZ,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,iBAAiB,qBAkB5B"}
@@ -1,2 +0,0 @@
1
- import{a}from"../../../__chunks__/chunk-43CV6VGD.mjs";import"../../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../../__chunks__/chunk-C4CJOZ4L.mjs";import"../../../__chunks__/chunk-2X7ENE6Y.mjs";import"../../../__chunks__/chunk-LHEH7L4L.mjs";import"../../../__chunks__/chunk-EJV4VNJG.mjs";import"../../../__chunks__/chunk-FI444OX3.mjs";import"../../../__chunks__/chunk-PPA7AFVD.mjs";import"../../../__chunks__/chunk-ULUZWP2P.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../__chunks__/chunk-MCOVQEK7.mjs";import"../../../__chunks__/chunk-7QCBLUWB.mjs";export{a as getShardOfAddress};
2
- //# sourceMappingURL=getShardOfAddress.mjs.map
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const sdkCore_1 = require("../../../lib/sdkCore");
4
- const getShardOfAddress_1 = require("../helpers/getShardOfAddress");
5
- describe('getShardOfAddress', () => {
6
- it('should return 0 for address on shard 0', () => {
7
- const address = 'erd1mdvj4jt6hv83pedd080zlvlug2raax3u97dv6y08qnexwm0qkcwqruh0m4';
8
- expect((0, getShardOfAddress_1.getShardOfAddress)(new sdkCore_1.Address(address).pubkey())).toBe(0);
9
- });
10
- it('should return 1 for address on shard 1', () => {
11
- const address = 'erd1dp96nx38nkw46urz9m4scax45rh9qc7aqctfe972vdeuq385d2zskvgvwt';
12
- expect((0, getShardOfAddress_1.getShardOfAddress)(new sdkCore_1.Address(address).pubkey())).toBe(1);
13
- });
14
- it('should return 2 for address on shard 2', () => {
15
- const address = 'erd1dzmvw7gfrfv6tjxvah9rmwd45xqzs6q098925ucmsu69s48776dqlytnn2';
16
- expect((0, getShardOfAddress_1.getShardOfAddress)(new sdkCore_1.Address(address).pubkey())).toBe(2);
17
- });
18
- });
19
- //# sourceMappingURL=getShardOfAddress.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getShardOfAddress.test.js","sourceRoot":"","sources":["../../../../src/managers/TransactionManager/tests/getShardOfAddress.test.ts"],"names":[],"mappings":";;AAAA,yCAAsC;AACtC,oEAAiE;AAEjE,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,OAAO,GACX,gEAAgE,CAAC;QACnE,MAAM,CAAC,IAAA,qCAAiB,EAAC,IAAI,iBAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,OAAO,GACX,gEAAgE,CAAC;QACnE,MAAM,CAAC,IAAA,qCAAiB,EAAC,IAAI,iBAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,OAAO,GACX,gEAAgE,CAAC;QACnE,MAAM,CAAC,IAAA,qCAAiB,EAAC,IAAI,iBAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export type Nullable<T> = T | null;
@@ -1 +0,0 @@
1
- {"version":3,"file":"misc.types.js","sourceRoot":"","sources":["../../src/types/misc.types.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import"../__chunks__/chunk-OOJVPJOX.mjs";
2
- //# sourceMappingURL=misc.types.mjs.map