@multiversx/sdk-dapp 5.2.6 → 5.2.8

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 (1286) hide show
  1. package/out/__chunks__/{chunk-MBBXTAA3.mjs → chunk-23KF5JXN.mjs} +2 -2
  2. package/out/__chunks__/chunk-32UBROSW.mjs +2 -0
  3. package/out/__chunks__/chunk-34SZ56FQ.mjs +2 -0
  4. package/out/__chunks__/{chunk-SV4C4UPN.mjs → chunk-35AC7JEX.mjs} +2 -2
  5. package/out/__chunks__/chunk-3AT3N6U7.mjs +2 -0
  6. package/out/__chunks__/{chunk-2K2QZVBC.mjs → chunk-3EVBWJRB.mjs} +2 -2
  7. package/out/__chunks__/{chunk-PDKESLKC.mjs → chunk-3H5GYTLV.mjs} +2 -2
  8. package/out/__chunks__/{chunk-2NF5HX3H.mjs → chunk-3IMTI6JQ.mjs} +2 -2
  9. package/out/__chunks__/{chunk-FULNMU6J.mjs → chunk-4D3ZQTRN.mjs} +2 -2
  10. package/out/__chunks__/chunk-4WBXT7UF.mjs +2 -0
  11. package/out/__chunks__/chunk-4YLMDHUH.mjs +2 -0
  12. package/out/__chunks__/chunk-4YLMDHUH.mjs.map +7 -0
  13. package/out/__chunks__/chunk-5PNQWHBP.mjs +2 -0
  14. package/out/__chunks__/chunk-5PNQWHBP.mjs.map +7 -0
  15. package/out/__chunks__/{chunk-PT2OF4QJ.mjs → chunk-5SUCN4KU.mjs} +2 -2
  16. package/out/__chunks__/chunk-6BQWDKWC.mjs +2 -0
  17. package/out/__chunks__/{chunk-ZTUC7FCA.mjs.map → chunk-6BQWDKWC.mjs.map} +2 -2
  18. package/out/__chunks__/chunk-6XHXG7HB.mjs +2 -0
  19. package/out/__chunks__/{chunk-Q4OG6NMJ.mjs.map → chunk-6XHXG7HB.mjs.map} +1 -1
  20. package/out/__chunks__/{chunk-JDLVFGXF.mjs → chunk-753KDZIR.mjs} +2 -2
  21. package/out/__chunks__/{chunk-SWZ5LDC3.mjs → chunk-7LP6TRTV.mjs} +2 -2
  22. package/out/__chunks__/{chunk-74JXPSSX.mjs → chunk-7NW5R435.mjs} +2 -2
  23. package/out/__chunks__/{chunk-JDTTHSQL.mjs → chunk-7PIS2F7G.mjs} +2 -2
  24. package/out/__chunks__/chunk-AHRQWA37.mjs +2 -0
  25. package/out/__chunks__/{chunk-K3VVHPG3.mjs → chunk-AOYKAITD.mjs} +2 -2
  26. package/out/__chunks__/{chunk-67JAXZGA.mjs → chunk-ASPVUU7R.mjs} +2 -2
  27. package/out/__chunks__/chunk-AXYA7YGQ.mjs +2 -0
  28. package/out/__chunks__/chunk-AXYA7YGQ.mjs.map +7 -0
  29. package/out/__chunks__/{chunk-M2KI5WFN.mjs → chunk-BMJVOKCD.mjs} +2 -2
  30. package/out/__chunks__/{chunk-OVBYKKMB.mjs → chunk-BZRPJAII.mjs} +2 -2
  31. package/out/__chunks__/{chunk-Z5AFLXOE.mjs → chunk-D4SYE2AU.mjs} +2 -2
  32. package/out/__chunks__/{chunk-U54BL4SU.mjs → chunk-DBMG6HQS.mjs} +2 -2
  33. package/out/__chunks__/chunk-DBTVIN4S.mjs +2 -0
  34. package/out/__chunks__/{chunk-FE5FK7I6.mjs.map → chunk-DBTVIN4S.mjs.map} +2 -2
  35. package/out/__chunks__/chunk-DK6T6BEY.mjs +2 -0
  36. package/out/__chunks__/{chunk-W37M2LIA.mjs.map → chunk-DK6T6BEY.mjs.map} +3 -3
  37. package/out/__chunks__/{chunk-YTIAXTQR.mjs → chunk-DPWDWN6V.mjs} +2 -2
  38. package/out/__chunks__/chunk-EDVSRPEU.mjs +2 -0
  39. package/out/__chunks__/chunk-EDVSRPEU.mjs.map +7 -0
  40. package/out/__chunks__/{chunk-MXNCPIER.mjs → chunk-EH3INPBE.mjs} +2 -2
  41. package/out/__chunks__/{chunk-ZDJN4F3W.mjs → chunk-EJ3EBFAG.mjs} +2 -2
  42. package/out/__chunks__/{chunk-3OEO7IVT.mjs → chunk-EJHFAT42.mjs} +2 -2
  43. package/out/__chunks__/{chunk-5O725H7M.mjs → chunk-EMSDNE45.mjs} +2 -2
  44. package/out/__chunks__/chunk-FGO6JGLQ.mjs +2 -0
  45. package/out/__chunks__/{chunk-7XASUTI2.mjs → chunk-FMNY4EIM.mjs} +2 -2
  46. package/out/__chunks__/chunk-FUOM6J37.mjs +2 -0
  47. package/out/__chunks__/chunk-FUOM6J37.mjs.map +7 -0
  48. package/out/__chunks__/{chunk-ET5L4CEA.mjs → chunk-GDTOANYH.mjs} +2 -2
  49. package/out/__chunks__/chunk-GKZ2BSWS.mjs +2 -0
  50. package/out/__chunks__/{chunk-R3U4ONSV.mjs.map → chunk-GKZ2BSWS.mjs.map} +2 -2
  51. package/out/__chunks__/chunk-GRUQO4NQ.mjs +2 -0
  52. package/out/__chunks__/{chunk-XHM77HFZ.mjs → chunk-H3U7BN2F.mjs} +2 -2
  53. package/out/__chunks__/{chunk-TFDVHULP.mjs → chunk-H6LOCVAD.mjs} +2 -2
  54. package/out/__chunks__/{chunk-775THAIS.mjs → chunk-HZCXNBGJ.mjs} +2 -2
  55. package/out/__chunks__/{chunk-SUHXBGYR.mjs → chunk-HZRV27MM.mjs} +2 -2
  56. package/out/__chunks__/{chunk-O7KFAU3B.mjs → chunk-IGDWL5FF.mjs} +2 -2
  57. package/out/__chunks__/{chunk-RL2G66LY.mjs → chunk-K23LCX54.mjs} +2 -2
  58. package/out/__chunks__/{chunk-6CUDZR72.mjs → chunk-KAYZVBV4.mjs} +2 -2
  59. package/out/__chunks__/chunk-KFBY5KJV.mjs +2 -0
  60. package/out/__chunks__/chunk-KHK7HHMR.mjs +2 -0
  61. package/out/__chunks__/chunk-KHK7HHMR.mjs.map +7 -0
  62. package/out/__chunks__/{chunk-4B3YTXMB.mjs → chunk-KKC3NMW2.mjs} +2 -2
  63. package/out/__chunks__/chunk-L45XDEGL.mjs +2 -0
  64. package/out/__chunks__/{chunk-O3YM7WCC.mjs → chunk-LAH3RNPH.mjs} +2 -2
  65. package/out/__chunks__/{chunk-OU5Y3UTY.mjs → chunk-LCHJKRM5.mjs} +2 -2
  66. package/out/__chunks__/chunk-LDFQUMVY.mjs +2 -0
  67. package/out/__chunks__/chunk-LTXWZGXK.mjs +2 -0
  68. package/out/__chunks__/{chunk-WK4PPAAJ.mjs → chunk-M44UOZ5O.mjs} +2 -2
  69. package/out/__chunks__/{chunk-CMJSKAR5.mjs → chunk-MBYIULNF.mjs} +2 -2
  70. package/out/__chunks__/chunk-NAEWTITL.mjs +2 -0
  71. package/out/__chunks__/{chunk-OXC2IURR.mjs → chunk-NKAJB5TQ.mjs} +2 -2
  72. package/out/__chunks__/{chunk-BCODBYYR.mjs → chunk-NPF6FJT3.mjs} +2 -2
  73. package/out/__chunks__/{chunk-QJZ5YIXI.mjs → chunk-NRBAAXUJ.mjs} +2 -2
  74. package/out/__chunks__/chunk-NWV2L5R7.mjs +2 -0
  75. package/out/__chunks__/chunk-NWV2L5R7.mjs.map +7 -0
  76. package/out/__chunks__/chunk-O4IUATY4.mjs +2 -0
  77. package/out/__chunks__/{chunk-CUMJOJXJ.mjs → chunk-OHFXF2B5.mjs} +2 -2
  78. package/out/__chunks__/{chunk-TQIB47S6.mjs → chunk-QWU5MHP3.mjs} +2 -2
  79. package/out/__chunks__/chunk-RVYA3BJD.mjs +2 -0
  80. package/out/__chunks__/chunk-RVYA3BJD.mjs.map +7 -0
  81. package/out/__chunks__/{chunk-XA3AGZCX.mjs → chunk-U6N242A3.mjs} +2 -2
  82. package/out/__chunks__/chunk-UIWCJ3CV.mjs +2 -0
  83. package/out/__chunks__/{chunk-YX7TMA3N.mjs → chunk-UJIIYWYI.mjs} +2 -2
  84. package/out/__chunks__/chunk-UKBPRQL6.mjs +2 -0
  85. package/out/__chunks__/chunk-UKBPRQL6.mjs.map +7 -0
  86. package/out/__chunks__/{chunk-UCCJLDG6.mjs → chunk-UL35YJX4.mjs} +2 -2
  87. package/out/__chunks__/chunk-UYRCLUET.mjs +2 -0
  88. package/out/__chunks__/{chunk-OD6C4XKP.mjs → chunk-W2TBID4H.mjs} +2 -2
  89. package/out/__chunks__/{chunk-6ME6A43J.mjs → chunk-W42RP7KL.mjs} +2 -2
  90. package/out/__chunks__/chunk-X5F7OCHT.mjs +2 -0
  91. package/out/__chunks__/chunk-X5F7OCHT.mjs.map +7 -0
  92. package/out/__chunks__/chunk-YGRMC52T.mjs +2 -0
  93. package/out/__chunks__/{chunk-YHNOFYGM.mjs → chunk-YIEM5DGL.mjs} +2 -2
  94. package/out/__chunks__/{chunk-2VRRMEOY.mjs → chunk-YIZAB63A.mjs} +2 -2
  95. package/out/__chunks__/{chunk-GMP2DZ26.mjs → chunk-YLJC7ZKD.mjs} +2 -2
  96. package/out/__chunks__/{chunk-ANIJIRAY.mjs → chunk-YVAL3LZF.mjs} +2 -2
  97. package/out/__chunks__/{chunk-VQULIVGX.mjs → chunk-Z3ZWRORQ.mjs} +2 -2
  98. package/out/apiCalls/account/getAccountFromApi.cjs +1 -59
  99. package/out/apiCalls/account/getAccountFromApi.cjs.map +2 -2
  100. package/out/apiCalls/account/getAccountFromApi.d.ts +1 -1
  101. package/out/apiCalls/account/getScamAddressData.cjs +1 -51
  102. package/out/apiCalls/account/getScamAddressData.cjs.map +2 -2
  103. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  104. package/out/apiCalls/account/index.cjs +1 -22
  105. package/out/apiCalls/account/index.cjs.map +2 -2
  106. package/out/apiCalls/configuration/getCleanApiAddress.cjs +1 -34
  107. package/out/apiCalls/configuration/getCleanApiAddress.cjs.map +2 -2
  108. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  109. package/out/apiCalls/configuration/getGasStationMetadata.cjs +1 -64
  110. package/out/apiCalls/configuration/getGasStationMetadata.cjs.map +2 -2
  111. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  112. package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs +1 -61
  113. package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs.map +2 -2
  114. package/out/apiCalls/configuration/getServerConfiguration.cjs +1 -65
  115. package/out/apiCalls/configuration/getServerConfiguration.cjs.map +2 -2
  116. package/out/apiCalls/configuration/index.cjs +1 -24
  117. package/out/apiCalls/configuration/index.cjs.map +2 -2
  118. package/out/apiCalls/configuration/index.mjs +1 -1
  119. package/out/apiCalls/economics/getEconomics.cjs +1 -54
  120. package/out/apiCalls/economics/getEconomics.cjs.map +2 -2
  121. package/out/apiCalls/endpoints.cjs +1 -100
  122. package/out/apiCalls/endpoints.cjs.map +2 -2
  123. package/out/apiCalls/index.cjs +1 -32
  124. package/out/apiCalls/index.cjs.map +2 -2
  125. package/out/apiCalls/index.mjs +1 -1
  126. package/out/apiCalls/tokens/getPersistedToken.cjs +1 -42
  127. package/out/apiCalls/tokens/getPersistedToken.cjs.map +2 -2
  128. package/out/apiCalls/tokens/getPersistedTokenDetails.cjs +1 -72
  129. package/out/apiCalls/tokens/getPersistedTokenDetails.cjs.map +2 -2
  130. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  131. package/out/apiCalls/tokens/getTokenDetails.cjs +1 -74
  132. package/out/apiCalls/tokens/getTokenDetails.cjs.map +2 -2
  133. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  134. package/out/apiCalls/tokens/index.cjs +1 -22
  135. package/out/apiCalls/tokens/index.cjs.map +2 -2
  136. package/out/apiCalls/tokens/index.mjs +1 -1
  137. package/out/apiCalls/tokens/tokenDataStorage.cjs +1 -58
  138. package/out/apiCalls/tokens/tokenDataStorage.cjs.map +2 -2
  139. package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs +1 -55
  140. package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs.map +2 -2
  141. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  142. package/out/apiCalls/transactions/getTransactionByHash.cjs +1 -51
  143. package/out/apiCalls/transactions/getTransactionByHash.cjs.map +2 -2
  144. package/out/apiCalls/transactions/getTransactionByHash.d.ts +1 -1
  145. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  146. package/out/apiCalls/transactions/getTransactions.cjs +1 -76
  147. package/out/apiCalls/transactions/getTransactions.cjs.map +2 -2
  148. package/out/apiCalls/transactions/getTransactions.d.ts +1 -1
  149. package/out/apiCalls/transactions/getTransactionsByHashes.cjs +1 -47
  150. package/out/apiCalls/transactions/getTransactionsByHashes.cjs.map +2 -2
  151. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  152. package/out/apiCalls/utils/axiosFetcher.cjs +1 -29
  153. package/out/apiCalls/utils/axiosFetcher.cjs.map +2 -2
  154. package/out/apiCalls/utils/axiosInstance.cjs +1 -105
  155. package/out/apiCalls/utils/axiosInstance.cjs.map +2 -2
  156. package/out/apiCalls/utils/getCleanApiAddress.cjs +1 -30
  157. package/out/apiCalls/utils/getCleanApiAddress.cjs.map +2 -2
  158. package/out/apiCalls/utils/index.cjs +1 -26
  159. package/out/apiCalls/utils/index.cjs.map +2 -2
  160. package/out/apiCalls/websocket/getWebsocketUrl.cjs +1 -49
  161. package/out/apiCalls/websocket/getWebsocketUrl.cjs.map +2 -2
  162. package/out/apiCalls/websocket/index.cjs +1 -22
  163. package/out/apiCalls/websocket/index.cjs.map +2 -2
  164. package/out/constants/UITags.enum.cjs +1 -37
  165. package/out/constants/UITags.enum.cjs.map +2 -2
  166. package/out/constants/browser.constants.cjs +1 -34
  167. package/out/constants/browser.constants.cjs.map +2 -2
  168. package/out/constants/browser.constants.mjs +1 -1
  169. package/out/constants/index.cjs +1 -40
  170. package/out/constants/index.cjs.map +2 -2
  171. package/out/constants/index.mjs +1 -1
  172. package/out/constants/ledger.constants.cjs +1 -131
  173. package/out/constants/ledger.constants.cjs.map +2 -2
  174. package/out/constants/mvx.constants.cjs +1 -58
  175. package/out/constants/mvx.constants.cjs.map +2 -2
  176. package/out/constants/network.constants.cjs +1 -113
  177. package/out/constants/network.constants.cjs.map +2 -2
  178. package/out/constants/placeholders.constants.cjs +1 -34
  179. package/out/constants/placeholders.constants.cjs.map +2 -2
  180. package/out/constants/providerFactory.constants.cjs +1 -41
  181. package/out/constants/providerFactory.constants.cjs.map +2 -2
  182. package/out/constants/storage.constants.cjs +1 -43
  183. package/out/constants/storage.constants.cjs.map +2 -2
  184. package/out/constants/storage.constants.mjs +1 -1
  185. package/out/constants/transactions.constants.cjs +1 -64
  186. package/out/constants/transactions.constants.cjs.map +2 -2
  187. package/out/constants/walletConnect.constants.cjs +1 -32
  188. package/out/constants/walletConnect.constants.cjs.map +2 -2
  189. package/out/constants/webWalletProvider.constants.cjs +1 -46
  190. package/out/constants/webWalletProvider.constants.cjs.map +2 -2
  191. package/out/constants/websocket.constants.cjs +1 -39
  192. package/out/constants/websocket.constants.cjs.map +2 -2
  193. package/out/constants/window.constants.cjs +1 -31
  194. package/out/constants/window.constants.cjs.map +3 -3
  195. package/out/constants/window.constants.mjs +1 -1
  196. package/out/controllers/FormatAmountController/FormatAmountController.cjs +1 -57
  197. package/out/controllers/FormatAmountController/FormatAmountController.cjs.map +2 -2
  198. package/out/controllers/FormatAmountController/index.cjs +1 -22
  199. package/out/controllers/FormatAmountController/index.cjs.map +2 -2
  200. package/out/controllers/FormatAmountController/types.cjs +1 -16
  201. package/out/controllers/FormatAmountController/types.cjs.map +2 -2
  202. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +1 -34
  203. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs.map +2 -2
  204. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  205. package/out/controllers/TransactionsHistoryController/index.cjs +1 -22
  206. package/out/controllers/TransactionsHistoryController/index.cjs.map +2 -2
  207. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  208. package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +1 -133
  209. package/out/controllers/TransactionsTableController/TransactionsTableController.cjs.map +2 -2
  210. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  211. package/out/controllers/TransactionsTableController/index.cjs +1 -22
  212. package/out/controllers/TransactionsTableController/index.cjs.map +2 -2
  213. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  214. package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs +1 -16
  215. package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs.map +2 -2
  216. package/out/controllers/index.cjs +1 -22
  217. package/out/controllers/index.cjs.map +2 -2
  218. package/out/index.cjs +1 -32
  219. package/out/index.cjs.map +2 -2
  220. package/out/index.mjs +1 -1
  221. package/out/lib/sdkCore.cjs +1 -46
  222. package/out/lib/sdkCore.cjs.map +2 -2
  223. package/out/lib/sdkDappUi.cjs +1 -53
  224. package/out/lib/sdkDappUi.cjs.map +2 -2
  225. package/out/lib/sdkDappUi.mjs +1 -1
  226. package/out/lib/sdkDappUtils.cjs +1 -44
  227. package/out/lib/sdkDappUtils.cjs.map +2 -2
  228. package/out/lib/sdkWebWalletCrossWindowProvider.cjs +1 -33
  229. package/out/lib/sdkWebWalletCrossWindowProvider.cjs.map +2 -2
  230. package/out/lib/sdkWebWalletIframeProvider.cjs +1 -28
  231. package/out/lib/sdkWebWalletIframeProvider.cjs.map +2 -2
  232. package/out/lib/sdkWebviewProvider.cjs +1 -28
  233. package/out/lib/sdkWebviewProvider.cjs.map +2 -2
  234. package/out/managers/LogoutManager/LogoutManager.cjs +1 -167
  235. package/out/managers/LogoutManager/LogoutManager.cjs.map +2 -2
  236. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  237. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs +1 -56
  238. package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs.map +2 -2
  239. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +1 -139
  240. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs.map +2 -2
  241. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  242. package/out/managers/NotificationsFeedManager/index.cjs +1 -24
  243. package/out/managers/NotificationsFeedManager/index.cjs.map +2 -2
  244. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  245. package/out/managers/NotificationsFeedManager/types/index.cjs +1 -22
  246. package/out/managers/NotificationsFeedManager/types/index.cjs.map +2 -2
  247. package/out/managers/NotificationsFeedManager/types/notifications.types.cjs +1 -35
  248. package/out/managers/NotificationsFeedManager/types/notifications.types.cjs.map +2 -2
  249. package/out/managers/ToastManager/ToastManager.cjs +1 -203
  250. package/out/managers/ToastManager/ToastManager.cjs.map +2 -2
  251. package/out/managers/ToastManager/ToastManager.mjs +1 -1
  252. package/out/managers/ToastManager/ToastUICoordinator.cjs +1 -125
  253. package/out/managers/ToastManager/ToastUICoordinator.cjs.map +2 -2
  254. package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
  255. package/out/managers/ToastManager/helpers/LifetimeManager.cjs +1 -71
  256. package/out/managers/ToastManager/helpers/LifetimeManager.cjs.map +2 -2
  257. package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
  258. package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs +1 -87
  259. package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs.map +3 -3
  260. package/out/managers/ToastManager/helpers/createToastsFromTransactions.d.ts +1 -1
  261. package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  262. package/out/managers/ToastManager/helpers/createTransactionToast.cjs +1 -66
  263. package/out/managers/ToastManager/helpers/createTransactionToast.cjs.map +2 -2
  264. package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs +1 -104
  265. package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs.map +2 -2
  266. package/out/managers/ToastManager/helpers/getToastTransactionsStatus.cjs +1 -40
  267. package/out/managers/ToastManager/helpers/getToastTransactionsStatus.cjs.map +2 -2
  268. package/out/managers/ToastManager/index.cjs +1 -22
  269. package/out/managers/ToastManager/index.cjs.map +2 -2
  270. package/out/managers/ToastManager/index.mjs +1 -1
  271. package/out/managers/ToastManager/types/index.cjs +1 -22
  272. package/out/managers/ToastManager/types/index.cjs.map +2 -2
  273. package/out/managers/ToastManager/types/toast.types.cjs +1 -47
  274. package/out/managers/ToastManager/types/toast.types.cjs.map +2 -2
  275. package/out/managers/TransactionManager/TransactionManager.cjs +1 -229
  276. package/out/managers/TransactionManager/TransactionManager.cjs.map +2 -2
  277. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  278. package/out/managers/TransactionManager/TransactionManager.types.cjs +1 -16
  279. package/out/managers/TransactionManager/TransactionManager.types.cjs.map +2 -2
  280. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +1 -50
  281. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs.map +2 -2
  282. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  283. package/out/managers/TransactionManager/helpers/getToastDuration.cjs +1 -52
  284. package/out/managers/TransactionManager/helpers/getToastDuration.cjs.map +2 -2
  285. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  286. package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +1 -53
  287. package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs.map +2 -2
  288. package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs +1 -30
  289. package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs.map +2 -2
  290. package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs +1 -47
  291. package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs.map +2 -2
  292. package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs +1 -54
  293. package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs.map +2 -2
  294. package/out/managers/TransactionManager/index.cjs +1 -22
  295. package/out/managers/TransactionManager/index.cjs.map +2 -2
  296. package/out/managers/TransactionManager/index.mjs +1 -1
  297. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -165
  298. package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +2 -2
  299. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  300. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs +1 -36
  301. package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs.map +2 -2
  302. package/out/managers/UnlockPanelManager/index.cjs +1 -22
  303. package/out/managers/UnlockPanelManager/index.cjs.map +2 -2
  304. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  305. package/out/managers/index.cjs +1 -24
  306. package/out/managers/index.cjs.map +2 -2
  307. package/out/managers/index.mjs +1 -1
  308. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs +1 -214
  309. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs.map +2 -2
  310. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  311. package/out/managers/internal/LedgerConnectStateManager/index.cjs +1 -24
  312. package/out/managers/internal/LedgerConnectStateManager/index.cjs.map +2 -2
  313. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  314. package/out/managers/internal/LedgerConnectStateManager/types/index.cjs +1 -22
  315. package/out/managers/internal/LedgerConnectStateManager/types/index.cjs.map +2 -2
  316. package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs +1 -36
  317. package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs.map +2 -2
  318. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +1 -124
  319. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs.map +2 -2
  320. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  321. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs +1 -58
  322. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs.map +2 -2
  323. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  324. package/out/managers/internal/PendingTransactionsStateManager/index.cjs +1 -24
  325. package/out/managers/internal/PendingTransactionsStateManager/index.cjs.map +2 -2
  326. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  327. package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs +1 -22
  328. package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs.map +2 -2
  329. package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs +1 -32
  330. package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs.map +2 -2
  331. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs +1 -67
  332. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs.map +2 -2
  333. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  334. package/out/managers/internal/SidePanelBaseManager/index.cjs +1 -22
  335. package/out/managers/internal/SidePanelBaseManager/index.cjs.map +2 -2
  336. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  337. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs +1 -138
  338. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs.map +2 -2
  339. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  340. package/out/managers/internal/SignTransactionsStateManager/index.cjs +1 -22
  341. package/out/managers/internal/SignTransactionsStateManager/index.cjs.map +2 -2
  342. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  343. package/out/managers/internal/SignTransactionsStateManager/types/index.cjs +1 -22
  344. package/out/managers/internal/SignTransactionsStateManager/types/index.cjs.map +2 -2
  345. package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs +1 -36
  346. package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs.map +2 -2
  347. package/out/managers/internal/UIBaseManager/UIBaseManager.cjs +1 -102
  348. package/out/managers/internal/UIBaseManager/UIBaseManager.cjs.map +2 -2
  349. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  350. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs +1 -78
  351. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs.map +2 -2
  352. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  353. package/out/managers/internal/WalletConnectStateManager/index.cjs +1 -22
  354. package/out/managers/internal/WalletConnectStateManager/index.cjs.map +2 -2
  355. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  356. package/out/managers/internal/index.cjs +1 -34
  357. package/out/managers/internal/index.cjs.map +2 -2
  358. package/out/managers/internal/index.mjs +1 -1
  359. package/out/methods/account/getAccount.cjs +1 -32
  360. package/out/methods/account/getAccount.cjs.map +2 -2
  361. package/out/methods/account/getAccount.mjs +1 -1
  362. package/out/methods/account/getAccountInfo.cjs +1 -32
  363. package/out/methods/account/getAccountInfo.cjs.map +2 -2
  364. package/out/methods/account/getAccountInfo.mjs +1 -1
  365. package/out/methods/account/getAddress.cjs +1 -32
  366. package/out/methods/account/getAddress.cjs.map +2 -2
  367. package/out/methods/account/getAddress.mjs +1 -1
  368. package/out/methods/account/getIsLoggedIn.cjs +1 -32
  369. package/out/methods/account/getIsLoggedIn.cjs.map +2 -2
  370. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  371. package/out/methods/account/getLatestNonce.cjs +1 -55
  372. package/out/methods/account/getLatestNonce.cjs.map +2 -2
  373. package/out/methods/account/getLatestNonce.mjs +1 -1
  374. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs +1 -61
  375. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs.map +2 -2
  376. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  377. package/out/methods/initApp/initApp.cjs +1 -136
  378. package/out/methods/initApp/initApp.cjs.map +2 -2
  379. package/out/methods/initApp/initApp.mjs +1 -1
  380. package/out/methods/initApp/initApp.mjs.map +1 -1
  381. package/out/methods/initApp/initApp.types.cjs +1 -16
  382. package/out/methods/initApp/initApp.types.cjs.map +2 -2
  383. package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +1 -126
  384. package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.map +2 -2
  385. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  386. package/out/methods/initApp/websocket/registerWebsocket.cjs +1 -37
  387. package/out/methods/initApp/websocket/registerWebsocket.cjs.map +2 -2
  388. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  389. package/out/methods/loginInfo/getLoginInfo.cjs +1 -36
  390. package/out/methods/loginInfo/getLoginInfo.cjs.map +2 -2
  391. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  392. package/out/methods/network/getEgldLabel.cjs +1 -32
  393. package/out/methods/network/getEgldLabel.cjs.map +2 -2
  394. package/out/methods/network/getEgldLabel.mjs +1 -1
  395. package/out/methods/network/getExplorerAddress.cjs +1 -32
  396. package/out/methods/network/getExplorerAddress.cjs.map +2 -2
  397. package/out/methods/network/getExplorerAddress.mjs +1 -1
  398. package/out/methods/network/getNetworkConfig.cjs +1 -32
  399. package/out/methods/network/getNetworkConfig.cjs.map +2 -2
  400. package/out/methods/network/getNetworkConfig.mjs +1 -1
  401. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs +1 -158
  402. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs.map +3 -3
  403. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  404. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs +1 -43
  405. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs.map +2 -2
  406. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  407. package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs +1 -40
  408. package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs.map +2 -2
  409. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs +1 -22
  410. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs.map +2 -2
  411. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  412. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs +1 -66
  413. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs.map +3 -3
  414. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  415. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs +1 -49
  416. package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs.map +2 -2
  417. package/out/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.cjs +2 -0
  418. package/out/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.cjs.map +7 -0
  419. package/out/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.d.ts +3 -0
  420. package/out/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.mjs +2 -0
  421. package/out/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.mjs.map +7 -0
  422. package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +1 -37
  423. package/out/methods/trackTransactions/helpers/getPollingInterval.cjs.map +2 -2
  424. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  425. package/out/methods/trackTransactions/trackTransactions.cjs +1 -117
  426. package/out/methods/trackTransactions/trackTransactions.cjs.map +2 -2
  427. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  428. package/out/methods/transactions/getFailedTransactions.cjs +1 -32
  429. package/out/methods/transactions/getFailedTransactions.cjs.map +2 -2
  430. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  431. package/out/methods/transactions/getFailedTransactionsSessions.cjs +1 -32
  432. package/out/methods/transactions/getFailedTransactionsSessions.cjs.map +2 -2
  433. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  434. package/out/methods/transactions/getPendingTransactions.cjs +1 -32
  435. package/out/methods/transactions/getPendingTransactions.cjs.map +2 -2
  436. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  437. package/out/methods/transactions/getPendingTransactionsSessions.cjs +1 -32
  438. package/out/methods/transactions/getPendingTransactionsSessions.cjs.map +2 -2
  439. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  440. package/out/methods/transactions/getSuccessfulTransactions.cjs +1 -32
  441. package/out/methods/transactions/getSuccessfulTransactions.cjs.map +2 -2
  442. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  443. package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs +1 -32
  444. package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs.map +2 -2
  445. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  446. package/out/methods/transactions/getTransactionSessions.cjs +1 -32
  447. package/out/methods/transactions/getTransactionSessions.cjs.map +2 -2
  448. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  449. package/out/providers/DappProvider/DappProvider.cjs +1 -112
  450. package/out/providers/DappProvider/DappProvider.cjs.map +2 -2
  451. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  452. package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs +1 -36
  453. package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs.map +2 -2
  454. package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs +1 -46
  455. package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs.map +2 -2
  456. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +1 -66
  457. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs.map +2 -2
  458. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  459. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs +1 -44
  460. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs.map +2 -2
  461. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  462. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs +1 -44
  463. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs.map +2 -2
  464. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  465. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs +1 -55
  466. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs.map +2 -2
  467. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  468. package/out/providers/DappProvider/helpers/login/login.cjs +1 -121
  469. package/out/providers/DappProvider/helpers/login/login.cjs.map +2 -2
  470. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  471. package/out/providers/DappProvider/helpers/logout/logout.cjs +1 -63
  472. package/out/providers/DappProvider/helpers/logout/logout.cjs.map +2 -2
  473. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  474. package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +1 -78
  475. package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs.map +2 -2
  476. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  477. package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs +1 -32
  478. package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs.map +2 -2
  479. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs +1 -42
  480. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs.map +2 -2
  481. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  482. package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs +1 -60
  483. package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs.map +2 -2
  484. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +1 -58
  485. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +2 -2
  486. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  487. package/out/providers/DappProvider/index.cjs +1 -22
  488. package/out/providers/DappProvider/index.cjs.map +2 -2
  489. package/out/providers/DappProvider/index.mjs +1 -1
  490. package/out/providers/ProviderFactory.cjs +1 -127
  491. package/out/providers/ProviderFactory.cjs.map +2 -2
  492. package/out/providers/ProviderFactory.mjs +1 -1
  493. package/out/providers/helpers/accountProvider.cjs +1 -38
  494. package/out/providers/helpers/accountProvider.cjs.map +2 -2
  495. package/out/providers/helpers/accountProvider.mjs +1 -1
  496. package/out/providers/helpers/cancelCrossWindowAction.cjs +1 -37
  497. package/out/providers/helpers/cancelCrossWindowAction.cjs.map +2 -2
  498. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  499. package/out/providers/helpers/clearInitiatedLogins.cjs +1 -48
  500. package/out/providers/helpers/clearInitiatedLogins.cjs.map +2 -2
  501. package/out/providers/helpers/emptyProvider.cjs +1 -106
  502. package/out/providers/helpers/emptyProvider.cjs.map +2 -2
  503. package/out/providers/helpers/restoreProvider.cjs +1 -60
  504. package/out/providers/helpers/restoreProvider.cjs.map +3 -3
  505. package/out/providers/helpers/restoreProvider.mjs +1 -1
  506. package/out/providers/index.cjs +1 -31
  507. package/out/providers/index.cjs.map +2 -2
  508. package/out/providers/index.mjs +1 -1
  509. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +1 -129
  510. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +2 -2
  511. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  512. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +1 -106
  513. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +2 -2
  514. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  515. package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs +1 -22
  516. package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs.map +2 -2
  517. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  518. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +1 -96
  519. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs.map +2 -2
  520. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  521. package/out/providers/strategies/ExtensionProviderStrategy/index.cjs +1 -22
  522. package/out/providers/strategies/ExtensionProviderStrategy/index.cjs.map +2 -2
  523. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  524. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +1 -118
  525. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +2 -2
  526. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  527. package/out/providers/strategies/IframeProviderStrategy/index.cjs +1 -24
  528. package/out/providers/strategies/IframeProviderStrategy/index.cjs.map +2 -2
  529. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  530. package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs +1 -16
  531. package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs.map +2 -2
  532. package/out/providers/strategies/IframeProviderStrategy/types/index.cjs +1 -22
  533. package/out/providers/strategies/IframeProviderStrategy/types/index.cjs.map +2 -2
  534. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +1 -181
  535. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +2 -2
  536. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  537. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs +1 -124
  538. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs.map +2 -2
  539. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  540. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs +1 -68
  541. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs.map +2 -2
  542. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  543. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs +1 -37
  544. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs.map +2 -2
  545. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  546. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs +1 -47
  547. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs.map +2 -2
  548. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs +1 -80
  549. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs.map +2 -2
  550. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  551. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs +1 -82
  552. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs.map +2 -2
  553. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  554. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs +1 -32
  555. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs.map +2 -2
  556. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  557. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs +1 -65
  558. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs.map +2 -2
  559. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  560. package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs +1 -61
  561. package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs.map +2 -2
  562. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs +1 -46
  563. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs.map +2 -2
  564. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  565. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs +1 -22
  566. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs.map +2 -2
  567. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  568. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs +1 -122
  569. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs.map +2 -2
  570. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  571. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs +1 -16
  572. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs.map +2 -2
  573. package/out/providers/strategies/LedgerProviderStrategy/index.cjs +1 -24
  574. package/out/providers/strategies/LedgerProviderStrategy/index.cjs.map +2 -2
  575. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  576. package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs +1 -22
  577. package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs.map +2 -2
  578. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs +1 -37
  579. package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs.map +2 -2
  580. package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs +1 -16
  581. package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs.map +2 -2
  582. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +1 -280
  583. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +2 -2
  584. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  585. package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs +1 -24
  586. package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs.map +2 -2
  587. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  588. package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs +1 -22
  589. package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs.map +2 -2
  590. package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs +1 -48
  591. package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs.map +2 -2
  592. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs +1 -186
  593. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs.map +3 -3
  594. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  595. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs +1 -22
  596. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs.map +2 -2
  597. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  598. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs +1 -97
  599. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs.map +2 -2
  600. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  601. package/out/providers/strategies/WebviewProviderStrategy/index.cjs +1 -22
  602. package/out/providers/strategies/WebviewProviderStrategy/index.cjs.map +2 -2
  603. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  604. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs +1 -41
  605. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs.map +2 -2
  606. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  607. package/out/providers/strategies/helpers/index.cjs +1 -28
  608. package/out/providers/strategies/helpers/index.cjs.map +2 -2
  609. package/out/providers/strategies/helpers/index.mjs +1 -1
  610. package/out/providers/strategies/helpers/signMessage/signMessage.cjs +1 -83
  611. package/out/providers/strategies/helpers/signMessage/signMessage.cjs.map +2 -2
  612. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  613. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs +1 -50
  614. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs.map +2 -2
  615. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +1 -84
  616. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs.map +2 -2
  617. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  618. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +1 -180
  619. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +2 -2
  620. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  621. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +1 -38
  622. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs.map +2 -2
  623. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +1 -46
  624. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs.map +2 -2
  625. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs +1 -93
  626. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs.map +2 -2
  627. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  628. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs +1 -33
  629. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs.map +2 -2
  630. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs +1 -92
  631. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs.map +2 -2
  632. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs +1 -43
  633. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs.map +2 -2
  634. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs +1 -39
  635. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs.map +2 -2
  636. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs +1 -38
  637. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs.map +2 -2
  638. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs +1 -50
  639. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs.map +2 -2
  640. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs +1 -56
  641. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs.map +2 -2
  642. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  643. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs +1 -35
  644. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs.map +2 -2
  645. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs +1 -36
  646. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs.map +2 -2
  647. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs +1 -126
  648. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs.map +2 -2
  649. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs +1 -118
  650. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs.map +2 -2
  651. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +1 -86
  652. package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +2 -2
  653. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs +1 -46
  654. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs.map +2 -2
  655. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs +1 -39
  656. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs.map +2 -2
  657. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +1 -50
  658. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs.map +2 -2
  659. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  660. package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs +1 -33
  661. package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs.map +2 -2
  662. package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +1 -232
  663. package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +2 -2
  664. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  665. package/out/providers/strategies/index.cjs +1 -30
  666. package/out/providers/strategies/index.cjs.map +2 -2
  667. package/out/providers/strategies/index.mjs +1 -1
  668. package/out/providers/types/providerFactory.types.cjs +1 -37
  669. package/out/providers/types/providerFactory.types.cjs.map +2 -2
  670. package/out/react/account/useGetAccount.cjs +1 -32
  671. package/out/react/account/useGetAccount.cjs.map +2 -2
  672. package/out/react/account/useGetAccount.mjs +1 -1
  673. package/out/react/account/useGetAccountInfo.cjs +1 -32
  674. package/out/react/account/useGetAccountInfo.cjs.map +2 -2
  675. package/out/react/account/useGetAccountInfo.mjs +1 -1
  676. package/out/react/account/useGetIsLoggedIn.cjs +1 -33
  677. package/out/react/account/useGetIsLoggedIn.cjs.map +2 -2
  678. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  679. package/out/react/account/useGetLatestNonce.cjs +1 -34
  680. package/out/react/account/useGetLatestNonce.cjs.map +2 -2
  681. package/out/react/account/useGetLatestNonce.mjs +1 -1
  682. package/out/react/index.cjs +1 -22
  683. package/out/react/index.cjs.map +2 -2
  684. package/out/react/index.mjs +1 -1
  685. package/out/react/loginInfo/useGetLoginInfo.cjs +1 -35
  686. package/out/react/loginInfo/useGetLoginInfo.cjs.map +2 -2
  687. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  688. package/out/react/network/useGetNetworkConfig.cjs +1 -32
  689. package/out/react/network/useGetNetworkConfig.cjs.map +2 -2
  690. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  691. package/out/react/store/createBoundedStore.cjs +1 -29
  692. package/out/react/store/createBoundedStore.cjs.map +2 -2
  693. package/out/react/store/getReactStore.cjs +1 -30
  694. package/out/react/store/getReactStore.cjs.map +2 -2
  695. package/out/react/store/getReactStore.mjs +1 -1
  696. package/out/react/store/useSelector.cjs +1 -32
  697. package/out/react/store/useSelector.cjs.map +2 -2
  698. package/out/react/store/useSelector.mjs +1 -1
  699. package/out/react/transactions/useGetFailedTransactions.cjs +1 -33
  700. package/out/react/transactions/useGetFailedTransactions.cjs.map +2 -2
  701. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  702. package/out/react/transactions/useGetFailedTransactionsSessions.cjs +1 -33
  703. package/out/react/transactions/useGetFailedTransactionsSessions.cjs.map +2 -2
  704. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  705. package/out/react/transactions/useGetPendingTransactions.cjs +1 -33
  706. package/out/react/transactions/useGetPendingTransactions.cjs.map +2 -2
  707. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  708. package/out/react/transactions/useGetPendingTransactionsSessions.cjs +1 -33
  709. package/out/react/transactions/useGetPendingTransactionsSessions.cjs.map +2 -2
  710. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  711. package/out/react/transactions/useGetSuccessfulTransactions.cjs +1 -33
  712. package/out/react/transactions/useGetSuccessfulTransactions.cjs.map +2 -2
  713. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  714. package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs +1 -35
  715. package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs.map +2 -2
  716. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  717. package/out/react/transactions/useGetTransactionSessions.cjs +1 -33
  718. package/out/react/transactions/useGetTransactionSessions.cjs.map +2 -2
  719. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  720. package/out/services/index.cjs +1 -22
  721. package/out/services/index.cjs.map +2 -2
  722. package/out/services/index.mjs +1 -1
  723. package/out/services/nativeAuth/helpers/decodeLoginToken.cjs +1 -62
  724. package/out/services/nativeAuth/helpers/decodeLoginToken.cjs.map +2 -2
  725. package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs +1 -72
  726. package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs.map +2 -2
  727. package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs +1 -100
  728. package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs.map +2 -2
  729. package/out/services/nativeAuth/helpers/index.cjs +1 -26
  730. package/out/services/nativeAuth/helpers/index.cjs.map +2 -2
  731. package/out/services/nativeAuth/index.cjs +1 -22
  732. package/out/services/nativeAuth/index.cjs.map +2 -2
  733. package/out/services/nativeAuth/index.mjs +1 -1
  734. package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs +1 -41
  735. package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs.map +2 -2
  736. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  737. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs +1 -42
  738. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs.map +2 -2
  739. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  740. package/out/services/nativeAuth/methods/getTokenExpiration.cjs +1 -51
  741. package/out/services/nativeAuth/methods/getTokenExpiration.cjs.map +2 -2
  742. package/out/services/nativeAuth/methods/index.cjs +1 -24
  743. package/out/services/nativeAuth/methods/index.cjs.map +2 -2
  744. package/out/services/nativeAuth/methods/index.mjs +1 -1
  745. package/out/services/nativeAuth/nativeAuth.cjs +1 -81
  746. package/out/services/nativeAuth/nativeAuth.cjs.map +2 -2
  747. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  748. package/out/services/nativeAuth/nativeAuth.types.cjs +1 -16
  749. package/out/services/nativeAuth/nativeAuth.types.cjs.map +2 -2
  750. package/out/store/actions/account/accountActions.cjs +1 -94
  751. package/out/store/actions/account/accountActions.cjs.map +3 -3
  752. package/out/store/actions/account/accountActions.mjs +1 -1
  753. package/out/store/actions/account/index.cjs +1 -22
  754. package/out/store/actions/account/index.cjs.map +2 -2
  755. package/out/store/actions/account/index.mjs +1 -1
  756. package/out/store/actions/cache/cacheActions.cjs +1 -61
  757. package/out/store/actions/cache/cacheActions.cjs.map +3 -3
  758. package/out/store/actions/cache/cacheActions.mjs +1 -1
  759. package/out/store/actions/cache/index.cjs +1 -22
  760. package/out/store/actions/cache/index.cjs.map +2 -2
  761. package/out/store/actions/cache/index.mjs +1 -1
  762. package/out/store/actions/config/configActions.cjs +1 -60
  763. package/out/store/actions/config/configActions.cjs.map +3 -3
  764. package/out/store/actions/config/configActions.mjs +1 -1
  765. package/out/store/actions/config/index.cjs +1 -22
  766. package/out/store/actions/config/index.cjs.map +2 -2
  767. package/out/store/actions/config/index.mjs +1 -1
  768. package/out/store/actions/index.cjs +1 -34
  769. package/out/store/actions/index.cjs.map +2 -2
  770. package/out/store/actions/index.mjs +1 -1
  771. package/out/store/actions/loginInfo/loginInfoActions.cjs +1 -115
  772. package/out/store/actions/loginInfo/loginInfoActions.cjs.map +3 -3
  773. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  774. package/out/store/actions/network/index.cjs +1 -22
  775. package/out/store/actions/network/index.cjs.map +2 -2
  776. package/out/store/actions/network/index.mjs +1 -1
  777. package/out/store/actions/network/initializeNetwork.cjs +1 -70
  778. package/out/store/actions/network/initializeNetwork.cjs.map +2 -2
  779. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  780. package/out/store/actions/network/networkActions.cjs +1 -41
  781. package/out/store/actions/network/networkActions.cjs.map +3 -3
  782. package/out/store/actions/network/networkActions.mjs +1 -1
  783. package/out/store/actions/sharedActions/index.cjs +1 -22
  784. package/out/store/actions/sharedActions/index.cjs.map +2 -2
  785. package/out/store/actions/sharedActions/index.mjs +1 -1
  786. package/out/store/actions/sharedActions/sharedActions.cjs +1 -49
  787. package/out/store/actions/sharedActions/sharedActions.cjs.map +3 -3
  788. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  789. package/out/store/actions/toasts/index.cjs +1 -22
  790. package/out/store/actions/toasts/index.cjs.map +2 -2
  791. package/out/store/actions/toasts/index.mjs +1 -1
  792. package/out/store/actions/toasts/toastsActions.cjs +1 -177
  793. package/out/store/actions/toasts/toastsActions.cjs.map +3 -3
  794. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  795. package/out/store/actions/transactions/transactionStateByStatus.cjs +1 -144
  796. package/out/store/actions/transactions/transactionStateByStatus.cjs.map +2 -2
  797. package/out/store/actions/transactions/transactionsActions.cjs +1 -143
  798. package/out/store/actions/transactions/transactionsActions.cjs.map +3 -3
  799. package/out/store/actions/transactions/transactionsActions.d.ts +6 -5
  800. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  801. package/out/store/actions/ui/index.cjs +1 -22
  802. package/out/store/actions/ui/index.cjs.map +2 -2
  803. package/out/store/actions/ui/index.mjs +1 -1
  804. package/out/store/actions/ui/uiActions.cjs +1 -35
  805. package/out/store/actions/ui/uiActions.cjs.map +3 -3
  806. package/out/store/actions/ui/uiActions.mjs +1 -1
  807. package/out/store/middleware/applyMiddlewares.cjs +1 -31
  808. package/out/store/middleware/applyMiddlewares.cjs.map +2 -2
  809. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  810. package/out/store/middleware/index.cjs +1 -22
  811. package/out/store/middleware/index.cjs.map +2 -2
  812. package/out/store/middleware/index.mjs +1 -1
  813. package/out/store/middleware/logoutMiddleware.cjs +1 -78
  814. package/out/store/middleware/logoutMiddleware.cjs.map +2 -2
  815. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  816. package/out/store/selectors/accountSelectors.cjs +1 -60
  817. package/out/store/selectors/accountSelectors.cjs.map +2 -2
  818. package/out/store/selectors/cacheSelector.cjs +1 -31
  819. package/out/store/selectors/cacheSelector.cjs.map +2 -2
  820. package/out/store/selectors/configSelectors.cjs +1 -36
  821. package/out/store/selectors/configSelectors.cjs.map +2 -2
  822. package/out/store/selectors/index.cjs +1 -32
  823. package/out/store/selectors/index.cjs.map +2 -2
  824. package/out/store/selectors/loginInfoSelectors.cjs +1 -43
  825. package/out/store/selectors/loginInfoSelectors.cjs.map +2 -2
  826. package/out/store/selectors/networkSelectors.cjs +1 -51
  827. package/out/store/selectors/networkSelectors.cjs.map +2 -2
  828. package/out/store/selectors/storeSelector.cjs +1 -28
  829. package/out/store/selectors/storeSelector.cjs.map +2 -2
  830. package/out/store/selectors/toastsSelectors.cjs +1 -34
  831. package/out/store/selectors/toastsSelectors.cjs.map +2 -2
  832. package/out/store/selectors/transactionsSelector.cjs +1 -150
  833. package/out/store/selectors/transactionsSelector.cjs.map +2 -2
  834. package/out/store/selectors/uiSelectors.cjs +1 -31
  835. package/out/store/selectors/uiSelectors.cjs.map +2 -2
  836. package/out/store/slices/account/account.types.cjs +1 -16
  837. package/out/store/slices/account/account.types.cjs.map +2 -2
  838. package/out/store/slices/account/accountSlice.cjs +1 -43
  839. package/out/store/slices/account/accountSlice.cjs.map +2 -2
  840. package/out/store/slices/account/emptyAccount.cjs +1 -38
  841. package/out/store/slices/account/emptyAccount.cjs.map +2 -2
  842. package/out/store/slices/account/index.cjs +1 -28
  843. package/out/store/slices/account/index.cjs.map +2 -2
  844. package/out/store/slices/cache/cacheSlice.cjs +1 -34
  845. package/out/store/slices/cache/cacheSlice.cjs.map +2 -2
  846. package/out/store/slices/cache/cacheSlice.types.cjs +1 -16
  847. package/out/store/slices/cache/cacheSlice.types.cjs.map +2 -2
  848. package/out/store/slices/cache/index.cjs +1 -28
  849. package/out/store/slices/cache/index.cjs.map +2 -2
  850. package/out/store/slices/config/config.types.cjs +1 -16
  851. package/out/store/slices/config/config.types.cjs.map +2 -2
  852. package/out/store/slices/config/configSlice.cjs +1 -37
  853. package/out/store/slices/config/configSlice.cjs.map +2 -2
  854. package/out/store/slices/config/index.cjs +1 -28
  855. package/out/store/slices/config/index.cjs.map +2 -2
  856. package/out/store/slices/index.cjs +1 -34
  857. package/out/store/slices/index.cjs.map +2 -2
  858. package/out/store/slices/loginInfo/index.cjs +1 -28
  859. package/out/store/slices/loginInfo/index.cjs.map +2 -2
  860. package/out/store/slices/loginInfo/loginInfo.types.cjs +1 -16
  861. package/out/store/slices/loginInfo/loginInfo.types.cjs.map +2 -2
  862. package/out/store/slices/loginInfo/loginInfoSlice.cjs +1 -40
  863. package/out/store/slices/loginInfo/loginInfoSlice.cjs.map +2 -2
  864. package/out/store/slices/network/emptyNetwork.cjs +1 -41
  865. package/out/store/slices/network/emptyNetwork.cjs.map +2 -2
  866. package/out/store/slices/network/index.cjs +1 -28
  867. package/out/store/slices/network/index.cjs.map +2 -2
  868. package/out/store/slices/network/network.types.cjs +1 -16
  869. package/out/store/slices/network/network.types.cjs.map +2 -2
  870. package/out/store/slices/network/networkSlice.cjs +1 -35
  871. package/out/store/slices/network/networkSlice.cjs.map +2 -2
  872. package/out/store/slices/network/networkSlice.types.cjs +1 -16
  873. package/out/store/slices/network/networkSlice.types.cjs.map +2 -2
  874. package/out/store/slices/toast/index.cjs +1 -28
  875. package/out/store/slices/toast/index.cjs.map +2 -2
  876. package/out/store/slices/toast/toastSlice.cjs +1 -37
  877. package/out/store/slices/toast/toastSlice.cjs.map +2 -2
  878. package/out/store/slices/toast/toastSlice.types.cjs +1 -16
  879. package/out/store/slices/toast/toastSlice.types.cjs.map +2 -2
  880. package/out/store/slices/transactions/index.cjs +1 -28
  881. package/out/store/slices/transactions/index.cjs.map +2 -2
  882. package/out/store/slices/transactions/transactionsSlice.cjs +1 -34
  883. package/out/store/slices/transactions/transactionsSlice.cjs.map +2 -2
  884. package/out/store/slices/transactions/transactionsSlice.types.cjs +1 -16
  885. package/out/store/slices/transactions/transactionsSlice.types.cjs.map +2 -2
  886. package/out/store/slices/ui/index.cjs +1 -28
  887. package/out/store/slices/ui/index.cjs.map +2 -2
  888. package/out/store/slices/ui/ui.types.cjs +1 -16
  889. package/out/store/slices/ui/ui.types.cjs.map +2 -2
  890. package/out/store/slices/ui/uiSlice.cjs +1 -34
  891. package/out/store/slices/ui/uiSlice.cjs.map +2 -2
  892. package/out/store/storage/inMemoryStorage.cjs +1 -51
  893. package/out/store/storage/inMemoryStorage.cjs.map +2 -2
  894. package/out/store/storage/index.cjs +1 -24
  895. package/out/store/storage/index.cjs.map +2 -2
  896. package/out/store/storage/index.mjs +1 -1
  897. package/out/store/storage/storageCallback.cjs +1 -29
  898. package/out/store/storage/storageCallback.cjs.map +2 -2
  899. package/out/store/storage/storageCallback.mjs +1 -1
  900. package/out/store/store.cjs +1 -82
  901. package/out/store/store.cjs.map +3 -3
  902. package/out/store/store.mjs +1 -1
  903. package/out/store/store.types.cjs +1 -16
  904. package/out/store/store.types.cjs.map +2 -2
  905. package/out/types/account.types.cjs +1 -16
  906. package/out/types/account.types.cjs.map +2 -2
  907. package/out/types/enums.types.cjs +1 -119
  908. package/out/types/enums.types.cjs.map +2 -2
  909. package/out/types/index.cjs +1 -34
  910. package/out/types/index.cjs.map +2 -2
  911. package/out/types/login.types.cjs +1 -16
  912. package/out/types/login.types.cjs.map +2 -2
  913. package/out/types/manager.types.cjs +1 -16
  914. package/out/types/manager.types.cjs.map +2 -2
  915. package/out/types/network.types.cjs +1 -16
  916. package/out/types/network.types.cjs.map +2 -2
  917. package/out/types/provider.types.cjs +1 -34
  918. package/out/types/provider.types.cjs.map +2 -2
  919. package/out/types/serverTransactions.types.cjs +1 -154
  920. package/out/types/serverTransactions.types.cjs.map +2 -2
  921. package/out/types/subscriptions.type.cjs +1 -33
  922. package/out/types/subscriptions.type.cjs.map +2 -2
  923. package/out/types/suspiciousLink.types.cjs +1 -16
  924. package/out/types/suspiciousLink.types.cjs.map +2 -2
  925. package/out/types/theme.types.cjs +1 -33
  926. package/out/types/theme.types.cjs.map +2 -2
  927. package/out/types/tokens.types.cjs +1 -39
  928. package/out/types/tokens.types.cjs.map +2 -2
  929. package/out/types/transaction-list-item.types.cjs +1 -114
  930. package/out/types/transaction-list-item.types.cjs.map +2 -2
  931. package/out/types/transactions.types.cjs +1 -34
  932. package/out/types/transactions.types.cjs.map +2 -2
  933. package/out/types/websocket.types.cjs +1 -16
  934. package/out/types/websocket.types.cjs.map +2 -2
  935. package/out/utils/ComponentFactory.cjs +1 -50
  936. package/out/utils/ComponentFactory.cjs.map +2 -2
  937. package/out/utils/ComponentFactory.mjs +1 -1
  938. package/out/utils/account/fetchAccount.cjs +1 -29
  939. package/out/utils/account/fetchAccount.cjs.map +2 -2
  940. package/out/utils/account/index.cjs +1 -28
  941. package/out/utils/account/index.cjs.map +2 -2
  942. package/out/utils/account/index.mjs +1 -1
  943. package/out/utils/account/refreshAccount.cjs +1 -80
  944. package/out/utils/account/refreshAccount.cjs.map +2 -2
  945. package/out/utils/account/refreshAccount.mjs +1 -1
  946. package/out/utils/account/refreshNativeAuthTokenLogin.cjs +1 -65
  947. package/out/utils/account/refreshNativeAuthTokenLogin.cjs.map +2 -2
  948. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  949. package/out/utils/account/trimUsernameDomain.cjs +1 -35
  950. package/out/utils/account/trimUsernameDomain.cjs.map +2 -2
  951. package/out/utils/asyncActions/index.cjs +1 -22
  952. package/out/utils/asyncActions/index.cjs.map +2 -2
  953. package/out/utils/asyncActions/sleep.cjs +1 -35
  954. package/out/utils/asyncActions/sleep.cjs.map +2 -2
  955. package/out/utils/dateTime/getUnixTimestamp.cjs +1 -30
  956. package/out/utils/dateTime/getUnixTimestamp.cjs.map +2 -2
  957. package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs +1 -32
  958. package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs.map +2 -2
  959. package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs +1 -30
  960. package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs.map +2 -2
  961. package/out/utils/dateTime/index.cjs +1 -26
  962. package/out/utils/dateTime/index.cjs.map +2 -2
  963. package/out/utils/decoders/base64Utils.cjs +1 -57
  964. package/out/utils/decoders/base64Utils.cjs.map +2 -2
  965. package/out/utils/decoders/decodePart.cjs +1 -39
  966. package/out/utils/decoders/decodePart.cjs.map +2 -2
  967. package/out/utils/decoders/index.cjs +1 -30
  968. package/out/utils/decoders/index.cjs.map +2 -2
  969. package/out/utils/decoders/isAscii.cjs +1 -28
  970. package/out/utils/decoders/isAscii.cjs.map +2 -2
  971. package/out/utils/decoders/isUtf8.cjs +1 -35
  972. package/out/utils/decoders/isUtf8.cjs.map +2 -2
  973. package/out/utils/decoders/stringContainsNumbers.cjs +1 -28
  974. package/out/utils/decoders/stringContainsNumbers.cjs.map +2 -2
  975. package/out/utils/index.cjs +1 -40
  976. package/out/utils/index.cjs.map +2 -2
  977. package/out/utils/index.mjs +1 -1
  978. package/out/utils/network/index.cjs +1 -22
  979. package/out/utils/network/index.cjs.map +2 -2
  980. package/out/utils/network/setAxiosInterceptors.cjs +1 -66
  981. package/out/utils/network/setAxiosInterceptors.cjs.map +2 -2
  982. package/out/utils/operations/capitalize.cjs +1 -28
  983. package/out/utils/operations/capitalize.cjs.map +2 -2
  984. package/out/utils/operations/getUsdValue.cjs +1 -45
  985. package/out/utils/operations/getUsdValue.cjs.map +2 -2
  986. package/out/utils/operations/pluralize.cjs +1 -28
  987. package/out/utils/operations/pluralize.cjs.map +2 -2
  988. package/out/utils/operations/timeRemaining.cjs +1 -109
  989. package/out/utils/operations/timeRemaining.cjs.map +2 -2
  990. package/out/utils/operations/trimAmountDecimals.cjs +1 -59
  991. package/out/utils/operations/trimAmountDecimals.cjs.map +2 -2
  992. package/out/utils/retryMultipleTimes.cjs +1 -44
  993. package/out/utils/retryMultipleTimes.cjs.map +2 -2
  994. package/out/utils/transactions/explorerUrlBuilder.cjs +1 -53
  995. package/out/utils/transactions/explorerUrlBuilder.cjs.map +2 -2
  996. package/out/utils/transactions/getActiveTransactionsStatus.cjs +1 -46
  997. package/out/utils/transactions/getActiveTransactionsStatus.cjs.map +2 -2
  998. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  999. package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs +5 -110
  1000. package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs.map +2 -2
  1001. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +1 -89
  1002. package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs.map +2 -2
  1003. package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs +1 -47
  1004. package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs.map +2 -2
  1005. package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs +1 -44
  1006. package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs.map +2 -2
  1007. package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs +1 -60
  1008. package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs.map +2 -2
  1009. package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs +1 -38
  1010. package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs.map +2 -2
  1011. package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs +1 -51
  1012. package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs.map +2 -2
  1013. package/out/utils/transactions/getDecodedDataField/helpers/index.cjs +1 -32
  1014. package/out/utils/transactions/getDecodedDataField/helpers/index.cjs.map +2 -2
  1015. package/out/utils/transactions/getDecodedDataField/index.cjs +1 -24
  1016. package/out/utils/transactions/getDecodedDataField/index.cjs.map +2 -2
  1017. package/out/utils/transactions/getExplorerLink.cjs +1 -49
  1018. package/out/utils/transactions/getExplorerLink.cjs.map +2 -2
  1019. package/out/utils/transactions/getHumanReadableTimeFormat.cjs +1 -46
  1020. package/out/utils/transactions/getHumanReadableTimeFormat.cjs.map +2 -2
  1021. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +1 -109
  1022. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs.map +2 -2
  1023. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  1024. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs +1 -49
  1025. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs.map +2 -2
  1026. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +1 -106
  1027. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs.map +2 -2
  1028. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs +1 -35
  1029. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs.map +2 -2
  1030. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs +1 -54
  1031. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs.map +2 -2
  1032. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs +1 -70
  1033. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs.map +2 -2
  1034. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs +1 -40
  1035. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs.map +2 -2
  1036. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs +1 -53
  1037. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs.map +2 -2
  1038. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs +1 -59
  1039. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs.map +2 -2
  1040. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs +2 -52
  1041. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs.map +2 -2
  1042. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs +1 -36
  1043. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs.map +2 -2
  1044. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs +1 -32
  1045. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs.map +2 -2
  1046. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs +1 -22
  1047. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs.map +2 -2
  1048. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs +1 -16
  1049. package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs.map +2 -2
  1050. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +1 -82
  1051. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs.map +2 -2
  1052. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  1053. package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs +1 -30
  1054. package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs.map +2 -2
  1055. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +1 -65
  1056. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs.map +2 -2
  1057. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  1058. package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs +1 -30
  1059. package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs.map +2 -2
  1060. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +1 -43
  1061. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs.map +2 -2
  1062. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  1063. package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs +1 -121
  1064. package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs.map +2 -2
  1065. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +1 -46
  1066. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs.map +2 -2
  1067. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  1068. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs +1 -39
  1069. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs.map +2 -2
  1070. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  1071. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs +1 -43
  1072. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs.map +2 -2
  1073. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs +1 -34
  1074. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs.map +2 -2
  1075. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs +1 -32
  1076. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs.map +2 -2
  1077. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs +1 -41
  1078. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs.map +2 -2
  1079. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs +1 -40
  1080. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs.map +2 -2
  1081. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs +1 -49
  1082. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs.map +2 -2
  1083. package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs +1 -46
  1084. package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs.map +2 -2
  1085. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  1086. package/out/utils/transactions/getInterpretedTransaction/index.cjs +1 -24
  1087. package/out/utils/transactions/getInterpretedTransaction/index.cjs.map +2 -2
  1088. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  1089. package/out/utils/transactions/getScamFlag.cjs +1 -87
  1090. package/out/utils/transactions/getScamFlag.cjs.map +2 -2
  1091. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs +1 -50
  1092. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs.map +2 -2
  1093. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  1094. package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs +1 -39
  1095. package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs.map +2 -2
  1096. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs +1 -63
  1097. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs.map +2 -2
  1098. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs +1 -52
  1099. package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs.map +2 -2
  1100. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs +1 -35
  1101. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs.map +2 -2
  1102. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  1103. package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs +1 -38
  1104. package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs.map +2 -2
  1105. package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs +1 -36
  1106. package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs.map +2 -2
  1107. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs +1 -112
  1108. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs.map +2 -2
  1109. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs +1 -58
  1110. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs.map +2 -2
  1111. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs +1 -74
  1112. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs.map +2 -2
  1113. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs +1 -62
  1114. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs.map +2 -2
  1115. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs +1 -90
  1116. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs.map +2 -2
  1117. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs +1 -65
  1118. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs.map +2 -2
  1119. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs +1 -37
  1120. package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs.map +2 -2
  1121. package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs +1 -49
  1122. package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs.map +2 -2
  1123. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  1124. package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs +1 -37
  1125. package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs.map +2 -2
  1126. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs +1 -115
  1127. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs.map +2 -2
  1128. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  1129. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs +1 -80
  1130. package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs.map +2 -2
  1131. package/out/utils/transactions/getTransactionsHistory/index.cjs +1 -24
  1132. package/out/utils/transactions/getTransactionsHistory/index.cjs.map +2 -2
  1133. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  1134. package/out/utils/transactions/index.cjs +1 -30
  1135. package/out/utils/transactions/index.cjs.map +2 -2
  1136. package/out/utils/transactions/index.mjs +1 -1
  1137. package/out/utils/transactions/isGuardianTx.cjs +1 -42
  1138. package/out/utils/transactions/isGuardianTx.cjs.map +2 -2
  1139. package/out/utils/validation/addressIsValid.cjs +1 -39
  1140. package/out/utils/validation/addressIsValid.cjs.map +2 -2
  1141. package/out/utils/validation/getIdentifierType.cjs +1 -53
  1142. package/out/utils/validation/getIdentifierType.cjs.map +2 -2
  1143. package/out/utils/validation/hex.cjs +1 -35
  1144. package/out/utils/validation/hex.cjs.map +2 -2
  1145. package/out/utils/validation/index.cjs +1 -30
  1146. package/out/utils/validation/index.cjs.map +2 -2
  1147. package/out/utils/validation/isContract.cjs +1 -95
  1148. package/out/utils/validation/isContract.cjs.map +2 -2
  1149. package/out/utils/validation/maxDecimals.cjs +1 -33
  1150. package/out/utils/validation/maxDecimals.cjs.map +2 -2
  1151. package/out/utils/visual/index.cjs +1 -22
  1152. package/out/utils/visual/index.cjs.map +2 -2
  1153. package/out/utils/visual/index.mjs +1 -1
  1154. package/out/utils/visual/switchTheme.cjs +1 -38
  1155. package/out/utils/visual/switchTheme.cjs.map +2 -2
  1156. package/out/utils/visual/switchTheme.mjs +1 -1
  1157. package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs +1 -33
  1158. package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs.map +2 -2
  1159. package/out/utils/window/buildUrlParams.cjs +1 -36
  1160. package/out/utils/window/buildUrlParams.cjs.map +2 -2
  1161. package/out/utils/window/getIsAuthRoute.cjs +1 -37
  1162. package/out/utils/window/getIsAuthRoute.cjs.map +2 -2
  1163. package/out/utils/window/getIsInIframe.cjs +1 -43
  1164. package/out/utils/window/getIsInIframe.cjs.map +2 -2
  1165. package/out/utils/window/getIsInIframe.mjs +1 -1
  1166. package/out/utils/window/getWindowLocation.cjs +1 -55
  1167. package/out/utils/window/getWindowLocation.cjs.map +2 -2
  1168. package/out/utils/window/getWindowParentOrigin.cjs +1 -43
  1169. package/out/utils/window/getWindowParentOrigin.cjs.map +2 -2
  1170. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  1171. package/out/utils/window/index.cjs +1 -32
  1172. package/out/utils/window/index.cjs.map +2 -2
  1173. package/out/utils/window/index.mjs +1 -1
  1174. package/out/utils/window/isWindowAvailable.cjs +1 -28
  1175. package/out/utils/window/isWindowAvailable.cjs.map +2 -2
  1176. package/out/utils/window/matchPath.cjs +1 -113
  1177. package/out/utils/window/matchPath.cjs.map +2 -2
  1178. package/out/utils/window/sanitizeCallbackUrl.cjs +1 -38
  1179. package/out/utils/window/sanitizeCallbackUrl.cjs.map +2 -2
  1180. package/package.json +2 -2
  1181. package/out/__chunks__/chunk-2TCIBFJT.mjs +0 -2
  1182. package/out/__chunks__/chunk-2TCIBFJT.mjs.map +0 -7
  1183. package/out/__chunks__/chunk-4QPWKBSQ.mjs +0 -2
  1184. package/out/__chunks__/chunk-4QPWKBSQ.mjs.map +0 -7
  1185. package/out/__chunks__/chunk-5WVYRVED.mjs +0 -2
  1186. package/out/__chunks__/chunk-6OIZTWJQ.mjs +0 -2
  1187. package/out/__chunks__/chunk-7C3DDRSK.mjs +0 -2
  1188. package/out/__chunks__/chunk-7GZRWUJQ.mjs +0 -2
  1189. package/out/__chunks__/chunk-7QYO4UOP.mjs +0 -2
  1190. package/out/__chunks__/chunk-7QYO4UOP.mjs.map +0 -7
  1191. package/out/__chunks__/chunk-7UJCMFKV.mjs +0 -2
  1192. package/out/__chunks__/chunk-BMSWZIEX.mjs +0 -2
  1193. package/out/__chunks__/chunk-DMF2DF5I.mjs +0 -2
  1194. package/out/__chunks__/chunk-DOBSLHLX.mjs +0 -2
  1195. package/out/__chunks__/chunk-EUBOWXIH.mjs +0 -2
  1196. package/out/__chunks__/chunk-FE5FK7I6.mjs +0 -2
  1197. package/out/__chunks__/chunk-HAPHEGVZ.mjs +0 -2
  1198. package/out/__chunks__/chunk-HOBCDZ2D.mjs +0 -2
  1199. package/out/__chunks__/chunk-HOBCDZ2D.mjs.map +0 -7
  1200. package/out/__chunks__/chunk-IE4SA26O.mjs +0 -2
  1201. package/out/__chunks__/chunk-IHU6TBZQ.mjs +0 -2
  1202. package/out/__chunks__/chunk-KHBRO4FY.mjs +0 -2
  1203. package/out/__chunks__/chunk-KHBRO4FY.mjs.map +0 -7
  1204. package/out/__chunks__/chunk-OYQAXY6H.mjs +0 -2
  1205. package/out/__chunks__/chunk-Q4OG6NMJ.mjs +0 -2
  1206. package/out/__chunks__/chunk-R3U4ONSV.mjs +0 -2
  1207. package/out/__chunks__/chunk-RCNZOLEM.mjs +0 -2
  1208. package/out/__chunks__/chunk-RCNZOLEM.mjs.map +0 -7
  1209. package/out/__chunks__/chunk-SKNUG6M5.mjs +0 -2
  1210. package/out/__chunks__/chunk-TFCXKUX5.mjs +0 -2
  1211. package/out/__chunks__/chunk-U2IPYFJX.mjs +0 -2
  1212. package/out/__chunks__/chunk-U2IPYFJX.mjs.map +0 -7
  1213. package/out/__chunks__/chunk-VVZ2I6CL.mjs +0 -2
  1214. package/out/__chunks__/chunk-VVZ2I6CL.mjs.map +0 -7
  1215. package/out/__chunks__/chunk-W37M2LIA.mjs +0 -2
  1216. package/out/__chunks__/chunk-WQZKREPI.mjs +0 -2
  1217. package/out/__chunks__/chunk-YSPLCVKY.mjs +0 -2
  1218. package/out/__chunks__/chunk-YSPLCVKY.mjs.map +0 -7
  1219. package/out/__chunks__/chunk-ZTUC7FCA.mjs +0 -2
  1220. /package/out/__chunks__/{chunk-MBBXTAA3.mjs.map → chunk-23KF5JXN.mjs.map} +0 -0
  1221. /package/out/__chunks__/{chunk-IHU6TBZQ.mjs.map → chunk-32UBROSW.mjs.map} +0 -0
  1222. /package/out/__chunks__/{chunk-7GZRWUJQ.mjs.map → chunk-34SZ56FQ.mjs.map} +0 -0
  1223. /package/out/__chunks__/{chunk-SV4C4UPN.mjs.map → chunk-35AC7JEX.mjs.map} +0 -0
  1224. /package/out/__chunks__/{chunk-WQZKREPI.mjs.map → chunk-3AT3N6U7.mjs.map} +0 -0
  1225. /package/out/__chunks__/{chunk-2K2QZVBC.mjs.map → chunk-3EVBWJRB.mjs.map} +0 -0
  1226. /package/out/__chunks__/{chunk-PDKESLKC.mjs.map → chunk-3H5GYTLV.mjs.map} +0 -0
  1227. /package/out/__chunks__/{chunk-2NF5HX3H.mjs.map → chunk-3IMTI6JQ.mjs.map} +0 -0
  1228. /package/out/__chunks__/{chunk-FULNMU6J.mjs.map → chunk-4D3ZQTRN.mjs.map} +0 -0
  1229. /package/out/__chunks__/{chunk-IE4SA26O.mjs.map → chunk-4WBXT7UF.mjs.map} +0 -0
  1230. /package/out/__chunks__/{chunk-PT2OF4QJ.mjs.map → chunk-5SUCN4KU.mjs.map} +0 -0
  1231. /package/out/__chunks__/{chunk-JDLVFGXF.mjs.map → chunk-753KDZIR.mjs.map} +0 -0
  1232. /package/out/__chunks__/{chunk-SWZ5LDC3.mjs.map → chunk-7LP6TRTV.mjs.map} +0 -0
  1233. /package/out/__chunks__/{chunk-74JXPSSX.mjs.map → chunk-7NW5R435.mjs.map} +0 -0
  1234. /package/out/__chunks__/{chunk-JDTTHSQL.mjs.map → chunk-7PIS2F7G.mjs.map} +0 -0
  1235. /package/out/__chunks__/{chunk-DMF2DF5I.mjs.map → chunk-AHRQWA37.mjs.map} +0 -0
  1236. /package/out/__chunks__/{chunk-K3VVHPG3.mjs.map → chunk-AOYKAITD.mjs.map} +0 -0
  1237. /package/out/__chunks__/{chunk-67JAXZGA.mjs.map → chunk-ASPVUU7R.mjs.map} +0 -0
  1238. /package/out/__chunks__/{chunk-M2KI5WFN.mjs.map → chunk-BMJVOKCD.mjs.map} +0 -0
  1239. /package/out/__chunks__/{chunk-OVBYKKMB.mjs.map → chunk-BZRPJAII.mjs.map} +0 -0
  1240. /package/out/__chunks__/{chunk-Z5AFLXOE.mjs.map → chunk-D4SYE2AU.mjs.map} +0 -0
  1241. /package/out/__chunks__/{chunk-U54BL4SU.mjs.map → chunk-DBMG6HQS.mjs.map} +0 -0
  1242. /package/out/__chunks__/{chunk-YTIAXTQR.mjs.map → chunk-DPWDWN6V.mjs.map} +0 -0
  1243. /package/out/__chunks__/{chunk-MXNCPIER.mjs.map → chunk-EH3INPBE.mjs.map} +0 -0
  1244. /package/out/__chunks__/{chunk-ZDJN4F3W.mjs.map → chunk-EJ3EBFAG.mjs.map} +0 -0
  1245. /package/out/__chunks__/{chunk-3OEO7IVT.mjs.map → chunk-EJHFAT42.mjs.map} +0 -0
  1246. /package/out/__chunks__/{chunk-5O725H7M.mjs.map → chunk-EMSDNE45.mjs.map} +0 -0
  1247. /package/out/__chunks__/{chunk-HAPHEGVZ.mjs.map → chunk-FGO6JGLQ.mjs.map} +0 -0
  1248. /package/out/__chunks__/{chunk-7XASUTI2.mjs.map → chunk-FMNY4EIM.mjs.map} +0 -0
  1249. /package/out/__chunks__/{chunk-ET5L4CEA.mjs.map → chunk-GDTOANYH.mjs.map} +0 -0
  1250. /package/out/__chunks__/{chunk-SKNUG6M5.mjs.map → chunk-GRUQO4NQ.mjs.map} +0 -0
  1251. /package/out/__chunks__/{chunk-XHM77HFZ.mjs.map → chunk-H3U7BN2F.mjs.map} +0 -0
  1252. /package/out/__chunks__/{chunk-TFDVHULP.mjs.map → chunk-H6LOCVAD.mjs.map} +0 -0
  1253. /package/out/__chunks__/{chunk-775THAIS.mjs.map → chunk-HZCXNBGJ.mjs.map} +0 -0
  1254. /package/out/__chunks__/{chunk-SUHXBGYR.mjs.map → chunk-HZRV27MM.mjs.map} +0 -0
  1255. /package/out/__chunks__/{chunk-O7KFAU3B.mjs.map → chunk-IGDWL5FF.mjs.map} +0 -0
  1256. /package/out/__chunks__/{chunk-RL2G66LY.mjs.map → chunk-K23LCX54.mjs.map} +0 -0
  1257. /package/out/__chunks__/{chunk-6CUDZR72.mjs.map → chunk-KAYZVBV4.mjs.map} +0 -0
  1258. /package/out/__chunks__/{chunk-TFCXKUX5.mjs.map → chunk-KFBY5KJV.mjs.map} +0 -0
  1259. /package/out/__chunks__/{chunk-4B3YTXMB.mjs.map → chunk-KKC3NMW2.mjs.map} +0 -0
  1260. /package/out/__chunks__/{chunk-DOBSLHLX.mjs.map → chunk-L45XDEGL.mjs.map} +0 -0
  1261. /package/out/__chunks__/{chunk-O3YM7WCC.mjs.map → chunk-LAH3RNPH.mjs.map} +0 -0
  1262. /package/out/__chunks__/{chunk-OU5Y3UTY.mjs.map → chunk-LCHJKRM5.mjs.map} +0 -0
  1263. /package/out/__chunks__/{chunk-6OIZTWJQ.mjs.map → chunk-LDFQUMVY.mjs.map} +0 -0
  1264. /package/out/__chunks__/{chunk-7UJCMFKV.mjs.map → chunk-LTXWZGXK.mjs.map} +0 -0
  1265. /package/out/__chunks__/{chunk-WK4PPAAJ.mjs.map → chunk-M44UOZ5O.mjs.map} +0 -0
  1266. /package/out/__chunks__/{chunk-CMJSKAR5.mjs.map → chunk-MBYIULNF.mjs.map} +0 -0
  1267. /package/out/__chunks__/{chunk-EUBOWXIH.mjs.map → chunk-NAEWTITL.mjs.map} +0 -0
  1268. /package/out/__chunks__/{chunk-OXC2IURR.mjs.map → chunk-NKAJB5TQ.mjs.map} +0 -0
  1269. /package/out/__chunks__/{chunk-BCODBYYR.mjs.map → chunk-NPF6FJT3.mjs.map} +0 -0
  1270. /package/out/__chunks__/{chunk-QJZ5YIXI.mjs.map → chunk-NRBAAXUJ.mjs.map} +0 -0
  1271. /package/out/__chunks__/{chunk-OYQAXY6H.mjs.map → chunk-O4IUATY4.mjs.map} +0 -0
  1272. /package/out/__chunks__/{chunk-CUMJOJXJ.mjs.map → chunk-OHFXF2B5.mjs.map} +0 -0
  1273. /package/out/__chunks__/{chunk-TQIB47S6.mjs.map → chunk-QWU5MHP3.mjs.map} +0 -0
  1274. /package/out/__chunks__/{chunk-XA3AGZCX.mjs.map → chunk-U6N242A3.mjs.map} +0 -0
  1275. /package/out/__chunks__/{chunk-5WVYRVED.mjs.map → chunk-UIWCJ3CV.mjs.map} +0 -0
  1276. /package/out/__chunks__/{chunk-YX7TMA3N.mjs.map → chunk-UJIIYWYI.mjs.map} +0 -0
  1277. /package/out/__chunks__/{chunk-UCCJLDG6.mjs.map → chunk-UL35YJX4.mjs.map} +0 -0
  1278. /package/out/__chunks__/{chunk-7C3DDRSK.mjs.map → chunk-UYRCLUET.mjs.map} +0 -0
  1279. /package/out/__chunks__/{chunk-OD6C4XKP.mjs.map → chunk-W2TBID4H.mjs.map} +0 -0
  1280. /package/out/__chunks__/{chunk-6ME6A43J.mjs.map → chunk-W42RP7KL.mjs.map} +0 -0
  1281. /package/out/__chunks__/{chunk-BMSWZIEX.mjs.map → chunk-YGRMC52T.mjs.map} +0 -0
  1282. /package/out/__chunks__/{chunk-YHNOFYGM.mjs.map → chunk-YIEM5DGL.mjs.map} +0 -0
  1283. /package/out/__chunks__/{chunk-2VRRMEOY.mjs.map → chunk-YIZAB63A.mjs.map} +0 -0
  1284. /package/out/__chunks__/{chunk-GMP2DZ26.mjs.map → chunk-YLJC7ZKD.mjs.map} +0 -0
  1285. /package/out/__chunks__/{chunk-ANIJIRAY.mjs.map → chunk-YVAL3LZF.mjs.map} +0 -0
  1286. /package/out/__chunks__/{chunk-VQULIVGX.mjs.map → chunk-Z3ZWRORQ.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as ce}from"./chunk-M3YL36ZL.mjs";import{a as A}from"./chunk-775THAIS.mjs";import{a as ae}from"./chunk-2Y66XRQK.mjs";import{a as oe}from"./chunk-3OEO7IVT.mjs";import{a as R}from"./chunk-74JXPSSX.mjs";import{a as ne}from"./chunk-TFDVHULP.mjs";import{a as ie}from"./chunk-67JAXZGA.mjs";import{a as te}from"./chunk-YUFPUG5O.mjs";import{a as de}from"./chunk-SV4C4UPN.mjs";import{a as p}from"./chunk-OU5Y3UTY.mjs";import{a as re}from"./chunk-CMJSKAR5.mjs";import{a as S}from"./chunk-JDLVFGXF.mjs";import{a as se}from"./chunk-ET5L4CEA.mjs";import{a as b}from"./chunk-QJGFIK7H.mjs";import{b as ee}from"./chunk-4Z3DZ2A3.mjs";import{b as I,c as Z}from"./chunk-NRXYSTRW.mjs";import{i as J,m as U,v as M,w as C,x as L}from"./chunk-2TCIBFJT.mjs";import{a as y}from"./chunk-IE4SA26O.mjs";import{a as X}from"./chunk-6OIZTWJQ.mjs";import{a as N}from"./chunk-4TBVQD27.mjs";import{a as Q}from"./chunk-R3U4ONSV.mjs";import{g as Y}from"./chunk-M6MN4RXG.mjs";import{a as q,q as F,s as c}from"./chunk-RCNZOLEM.mjs";import{f as H}from"./chunk-UERJ6AKK.mjs";import{b as f,c as B}from"./chunk-7VHTZYM2.mjs";import{a as G}from"./chunk-VNLGNNIL.mjs";import{b as $,c as j}from"./chunk-6JM4DPOH.mjs";import{a as l,b as K}from"./chunk-6R2WFQ7U.mjs";import{a as o}from"./chunk-LJX4MW7B.mjs";var w=class extends p{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await oe({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!y())return;await R.getInstance().init(e)};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await S({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await le({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await ie({shouldInitProvider:!0});this.provider=r}catch(r){throw J({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"times",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await this.initLegderConnectManager(this.options?.anchor);let e=R.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((i,s)=>ne({manager:e,resolve:i,reject:s,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ve=3e4,me=5e3,he=3e3,k=class a{constructor(){this.store=F();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let n=this.store.getState(),{providerType:e}=G(n),r=H(n);return!!(e===o.ledger&&r)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let n=ee(c());if(!(!this.shouldCheckConnection()||n))try{await L().getProvider().getAddress()}catch{if(U.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",icon:"times",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,me)}},ve))};this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let n=new w({shouldInitProvider:!0});await n.init();let e=new M(n);n.getType=()=>o.ledger,C(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,U.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",duration:he,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var T=class extends p{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:r,manager:t}=await this.initSignState();try{let i=await this.provider.signTransactions(e)??[];return await se(i)}catch(i){throw await r({shouldCancelAction:!0}),i}finally{t.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.crossWindow})};this.walletAddress=e?.walletAddress,this.provider=b.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=f(c()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return o.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as ue}from"@multiversx/sdk-extension-provider/out/extensionProvider";var _=class extends p{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(i){throw await t({shouldCancelAction:!1}),i}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension})};this.provider=ue.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return o.extension}};var W=class extends p{constructor({address:e,walletUrl:r}={}){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await S({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})}catch(i){throw await t({shouldCancelAction:!0}),i}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l[o.metamask]})};this.walletUrl=r??"",this.provider=ce.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=f(c());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return o.metamask}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as we}from"@multiversx/sdk-wallet-connect-provider/out";var pe=[I.CANCEL_ACTION,I.SIGN_LOGIN_TOKEN],x=class extends p{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.cancelActionAbortController=null;this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();this.cancelActionAbortController=new AbortController;let i=this.cancelActionAbortController.signal;try{let s=new Promise((h,v)=>{i.addEventListener("abort",()=>{v(new Error("cancelled by user"))})});return await Promise.race([this.provider.signTransactions(e),s])}catch(s){throw await t({shouldCancelAction:!0}),s}finally{r.closeUI()}};this.cancelAction=async()=>{this.sendCustomRequest({method:I.CANCEL_ACTION,action:we.CANCEL_ACTION}),this.cancelActionAbortController?.abort()};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");this.cancelActionAbortController=new AbortController;let r=this.cancelActionAbortController.signal,t=new Promise((s,d)=>{r.addEventListener("abort",()=>{d(new Error("cancelled by user"))})});return await Promise.race([g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension}),t])};this.config=e}async init(){try{await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:i}=await this.provider.connect({methods:this.methods}),s=this.config.walletConnectDeepLink??N.walletConnectDeepLink;this._approval=i,A.getInstance().updateData({wcURI:t,walletConnectDeepLink:`${s}?wallet-connect=${encodeURIComponent(t)}`})}async initWalletConnectManager(){if(!!y())return;await A.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=y(),t=B(c());if($(c())&&pe.push(I.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let v={onClientLogin:()=>{},onClientLogout:()=>{Q()},onClientEvent:m=>{}};try{let{walletConnectV2ProjectId:m,walletConnectV2Options:O={},walletConnectV2RelayAddress:D=""}=e,P=new Z(v,t,D,m,O);return await P.init(),{walletConnectProvider:P,dappMethods:pe}}catch(m){throw console.error("Unable to connect",m),r&&await this.logout(),m}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=A.getInstance(),{uri:i="",approval:s}=await this.provider.connect({methods:this.methods}),d=this.config.walletConnectDeepLink??N.walletConnectDeepLink;t.updateData({wcURI:i,walletConnectDeepLink:`${d}?wallet-connect=${encodeURIComponent(i)}`});let h=await this.provider.login({approval:s,token:e?.token}),{address:v="",signature:m=""}=h??{};return t.handleClose({isLoginFinished:!!v}),{address:v,signature:m}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:i="",signature:s=""}=t??{};return A.getInstance().handleClose({isLoginFinished:!!i}),{address:i,signature:s}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var E=class{static set customProviders(n){this._customProviders=n}static get customProviders(){return this._customProviders}static async create({type:n,anchor:e}){let r=null;switch(n){case o.extension:{r=new _;break}case o.crossWindow:{r=new T;break}case o.ledger:{r=new w({anchor:e}),await k.getInstance().init();break}case o.metamask:{r=new W;break}case o.passkey:{let s=f(c());r=new T({walletAddress:`${s.walletAddress}?${K}=${o.passkey}`});break}case o.walletConnect:{let s=j(c());if(!s?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new x({anchor:e,...s});break}case o.webview:{r=new de;break}default:{let s=X();for(let d of this._customProviders)d.type===n&&(r=await d.constructor({address:s,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new M(r);C(t);let i="provider"in r&&r.provider instanceof b;return ae(i?{skipLoginMethod:o.crossWindow}:null),t}static async destroy(){L().cancelLogin(),C(null),q(o.none)}};E._customProviders=[];var Pe=(a,n)=>a.some(e=>e.type===n);async function g({message:a,handleSignMessage:n,cancelAction:e,providerType:r}){return await new Promise(async(i,s)=>{let{manager:d,onClose:h}=await re({cancelAction:e}),v=Object.values(E.customProviders),m=v.reduce((u,V)=>(u[V.type]=V.name,u),{}),O={...l,...m},D=async()=>{await h({shouldCancelAction:!0}),s({message:"Signing canceled"})};d.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",D);let P=Pe(v,r)?r:o.none;d.updateData({name:O[P],type:P});try{let u=await n(a);i(u)}catch(u){await h({shouldCancelAction:!0}),s(u)}finally{d.closeUI()}})}async function le({message:a,handleSignMessage:n}){try{return await g({message:a,handleSignMessage:n,providerType:l.ledger})}catch(e){let{errorMessage:r}=te(e);throw r?{message:r}:e}}export{le as a,w as b,k as c,E as d,g as e,T as f,_ as g,W as h,x as i};
2
- //# sourceMappingURL=chunk-CUMJOJXJ.mjs.map
1
+ import{a as ce}from"./chunk-M3YL36ZL.mjs";import{a as A}from"./chunk-HZCXNBGJ.mjs";import{a as ae}from"./chunk-2Y66XRQK.mjs";import{a as oe}from"./chunk-EJHFAT42.mjs";import{a as R}from"./chunk-7NW5R435.mjs";import{a as ne}from"./chunk-H6LOCVAD.mjs";import{a as ie}from"./chunk-ASPVUU7R.mjs";import{a as te}from"./chunk-YUFPUG5O.mjs";import{a as de}from"./chunk-35AC7JEX.mjs";import{a as p}from"./chunk-LCHJKRM5.mjs";import{a as re}from"./chunk-MBYIULNF.mjs";import{a as S}from"./chunk-753KDZIR.mjs";import{a as se}from"./chunk-GDTOANYH.mjs";import{a as b}from"./chunk-QJGFIK7H.mjs";import{b as ee}from"./chunk-4Z3DZ2A3.mjs";import{b as I,c as Z}from"./chunk-NRXYSTRW.mjs";import{i as J,m as U,v as M,w as C,x as L}from"./chunk-EDVSRPEU.mjs";import{a as y}from"./chunk-4WBXT7UF.mjs";import{a as X}from"./chunk-LDFQUMVY.mjs";import{a as N}from"./chunk-4TBVQD27.mjs";import{a as Q}from"./chunk-GKZ2BSWS.mjs";import{g as Y}from"./chunk-M6MN4RXG.mjs";import{a as q,q as F,s as c}from"./chunk-5PNQWHBP.mjs";import{f as H}from"./chunk-UERJ6AKK.mjs";import{b as f,c as B}from"./chunk-7VHTZYM2.mjs";import{a as G}from"./chunk-VNLGNNIL.mjs";import{b as $,c as j}from"./chunk-6JM4DPOH.mjs";import{a as l,b as K}from"./chunk-6R2WFQ7U.mjs";import{a as o}from"./chunk-LJX4MW7B.mjs";var w=class extends p{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await oe({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!y())return;await R.getInstance().init(e)};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await S({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await le({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await ie({shouldInitProvider:!0});this.provider=r}catch(r){throw J({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"times",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await this.initLegderConnectManager(this.options?.anchor);let e=R.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((i,s)=>ne({manager:e,resolve:i,reject:s,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ve=3e4,me=5e3,he=3e3,k=class a{constructor(){this.store=F();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let n=this.store.getState(),{providerType:e}=G(n),r=H(n);return!!(e===o.ledger&&r)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let n=ee(c());if(!(!this.shouldCheckConnection()||n))try{await L().getProvider().getAddress()}catch{if(U.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",icon:"times",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,me)}},ve))};this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let n=new w({shouldInitProvider:!0});await n.init();let e=new M(n);n.getType=()=>o.ledger,C(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,U.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",duration:he,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var T=class extends p{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:r,manager:t}=await this.initSignState();try{let i=await this.provider.signTransactions(e)??[];return await se(i)}catch(i){throw await r({shouldCancelAction:!0}),i}finally{t.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.crossWindow})};this.walletAddress=e?.walletAddress,this.provider=b.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=f(c()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return o.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as ue}from"@multiversx/sdk-extension-provider/out/extensionProvider";var _=class extends p{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(i){throw await t({shouldCancelAction:!1}),i}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension})};this.provider=ue.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return o.extension}};var W=class extends p{constructor({address:e,walletUrl:r}={}){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();try{return await S({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider)})}catch(i){throw await t({shouldCancelAction:!0}),i}finally{r.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l[o.metamask]})};this.walletUrl=r??"",this.provider=ce.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=f(c());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return o.metamask}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as we}from"@multiversx/sdk-wallet-connect-provider/out";var pe=[I.CANCEL_ACTION,I.SIGN_LOGIN_TOKEN],x=class extends p{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.cancelActionAbortController=null;this.signTransactions=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:r,onClose:t}=await this.initSignState();this.cancelActionAbortController=new AbortController;let i=this.cancelActionAbortController.signal;try{let s=new Promise((h,v)=>{i.addEventListener("abort",()=>{v(new Error("cancelled by user"))})});return await Promise.race([this.provider.signTransactions(e),s])}catch(s){throw await t({shouldCancelAction:!0}),s}finally{r.closeUI()}};this.cancelAction=async()=>{this.sendCustomRequest({method:I.CANCEL_ACTION,action:we.CANCEL_ACTION}),this.cancelActionAbortController?.abort()};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");this.cancelActionAbortController=new AbortController;let r=this.cancelActionAbortController.signal,t=new Promise((s,d)=>{r.addEventListener("abort",()=>{d(new Error("cancelled by user"))})});return await Promise.race([g({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension}),t])};this.config=e}async init(){try{await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return o.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:i}=await this.provider.connect({methods:this.methods}),s=this.config.walletConnectDeepLink??N.walletConnectDeepLink;this._approval=i,A.getInstance().updateData({wcURI:t,walletConnectDeepLink:`${s}?wallet-connect=${encodeURIComponent(t)}`})}async initWalletConnectManager(){if(!!y())return;await A.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=y(),t=B(c());if($(c())&&pe.push(I.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let v={onClientLogin:()=>{},onClientLogout:()=>{Q()},onClientEvent:m=>{}};try{let{walletConnectV2ProjectId:m,walletConnectV2Options:O={},walletConnectV2RelayAddress:D=""}=e,P=new Z(v,t,D,m,O);return await P.init(),{walletConnectProvider:P,dappMethods:pe}}catch(m){throw console.error("Unable to connect",m),r&&await this.logout(),m}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=A.getInstance(),{uri:i="",approval:s}=await this.provider.connect({methods:this.methods}),d=this.config.walletConnectDeepLink??N.walletConnectDeepLink;t.updateData({wcURI:i,walletConnectDeepLink:`${d}?wallet-connect=${encodeURIComponent(i)}`});let h=await this.provider.login({approval:s,token:e?.token}),{address:v="",signature:m=""}=h??{};return t.handleClose({isLoginFinished:!!v}),{address:v,signature:m}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:i="",signature:s=""}=t??{};return A.getInstance().handleClose({isLoginFinished:!!i}),{address:i,signature:s}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var E=class{static set customProviders(n){this._customProviders=n}static get customProviders(){return this._customProviders}static async create({type:n,anchor:e}){let r=null;switch(n){case o.extension:{r=new _;break}case o.crossWindow:{r=new T;break}case o.ledger:{r=new w({anchor:e}),await k.getInstance().init();break}case o.metamask:{r=new W;break}case o.passkey:{let s=f(c());r=new T({walletAddress:`${s.walletAddress}?${K}=${o.passkey}`});break}case o.walletConnect:{let s=j(c());if(!s?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new x({anchor:e,...s});break}case o.webview:{r=new de;break}default:{let s=X();for(let d of this._customProviders)d.type===n&&(r=await d.constructor({address:s,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new M(r);C(t);let i="provider"in r&&r.provider instanceof b;return ae(i?{skipLoginMethod:o.crossWindow}:null),t}static async destroy(){L().cancelLogin(),C(null),q(o.none)}};E._customProviders=[];var Pe=(a,n)=>a.some(e=>e.type===n);async function g({message:a,handleSignMessage:n,cancelAction:e,providerType:r}){return await new Promise(async(i,s)=>{let{manager:d,onClose:h}=await re({cancelAction:e}),v=Object.values(E.customProviders),m=v.reduce((u,V)=>(u[V.type]=V.name,u),{}),O={...l,...m},D=async()=>{await h({shouldCancelAction:!0}),s({message:"Signing canceled"})};d.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",D);let P=Pe(v,r)?r:o.none;d.updateData({name:O[P],type:P});try{let u=await n(a);i(u)}catch(u){await h({shouldCancelAction:!0}),s(u)}finally{d.closeUI()}})}async function le({message:a,handleSignMessage:n}){try{return await g({message:a,handleSignMessage:n,providerType:l.ledger})}catch(e){let{errorMessage:r}=te(e);throw r?{message:r}:e}}export{le as a,w as b,k as c,E as d,g as e,T as f,_ as g,W as h,x as i};
2
+ //# sourceMappingURL=chunk-OHFXF2B5.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-Q4OG6NMJ.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
- //# sourceMappingURL=chunk-TQIB47S6.mjs.map
1
+ import{a as e}from"./chunk-6XHXG7HB.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
+ //# sourceMappingURL=chunk-QWU5MHP3.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as t}from"./chunk-5PNQWHBP.mjs";var r=({key:e,value:a})=>{t().setState(({cache:c})=>{c[e]=a},!1,{type:"saveToCache",payload:{value:a}})},s=e=>{t().setState(({cache:a})=>{delete a[e]},!1,{type:"removeFromCache",payload:{value:e}})},h=()=>{t().setState(({cache:e})=>{Object.keys(e).forEach(a=>{delete e[a]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
+ //# sourceMappingURL=chunk-RVYA3BJD.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/store/actions/cache/cacheActions.ts"],
4
+ "sourcesContent": ["import { getStore } from 'store/store';\n\nexport const saveToCache = <T>({ key, value }: { key: string; value: T }) => {\n getStore().setState(\n ({ cache: state }) => {\n state[key] = value;\n },\n false,\n {\n type: 'saveToCache',\n // @ts-ignore\n payload: {\n value\n }\n }\n );\n};\n\nexport const removeFromCache = (key: string) => {\n getStore().setState(\n ({ cache: state }) => {\n delete state[key];\n },\n false,\n {\n type: 'removeFromCache',\n // @ts-ignore\n payload: {\n value: key\n }\n }\n );\n};\n\nexport const clearCache = () => {\n getStore().setState(\n ({ cache: state }) => {\n Object.keys(state).forEach((key) => {\n delete state[key];\n });\n },\n false,\n 'clearCache'\n );\n};\n"],
5
+ "mappings": "yCAEO,IAAMA,EAAc,CAAI,CAAE,IAAAC,EAAK,MAAAC,CAAM,IAAiC,CAC3EC,EAAS,EAAE,SACT,CAAC,CAAE,MAAOC,CAAM,IAAM,CACpBA,EAAMH,CAAG,EAAIC,CACf,EACA,GACA,CACE,KAAM,cAEN,QAAS,CACP,MAAAA,CACF,CACF,CACF,CACF,EAEaG,EAAmBJ,GAAgB,CAC9CE,EAAS,EAAE,SACT,CAAC,CAAE,MAAOC,CAAM,IAAM,CACpB,OAAOA,EAAMH,CAAG,CAClB,EACA,GACA,CACE,KAAM,kBAEN,QAAS,CACP,MAAOA,CACT,CACF,CACF,CACF,EAEaK,EAAa,IAAM,CAC9BH,EAAS,EAAE,SACT,CAAC,CAAE,MAAOC,CAAM,IAAM,CACpB,OAAO,KAAKA,CAAK,EAAE,QAASH,GAAQ,CAClC,OAAOG,EAAMH,CAAG,CAClB,CAAC,CACH,EACA,GACA,YACF,CACF",
6
+ "names": ["saveToCache", "key", "value", "getStore", "state", "removeFromCache", "clearCache"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-DMF2DF5I.mjs";import{a as m}from"./chunk-G7GU37XI.mjs";import{f}from"./chunk-PJWJZHIS.mjs";import x from"bignumber.js";var F=async({manager:e,provider:d})=>{if(!e||!d)throw new Error("Provider is not initialized.");let{network:u}=b(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await w({baseURL:u.apiAddress}),l=o=>o.index>=s&&o.index<s+e.addressesPerPage,I=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),A=r.filter(l),y=!!I[s];if(e.updateAccountScreen({isLoading:!y}),A.length>0){e.updateAccountScreen({accounts:A});return}try{let o=Math.floor(s/e.addressesPerPage),n=await d.getAccounts(o,e.addressesPerPage),L=n.map((t,c)=>({address:t,balance:"...",index:c+s})),P=[...r,...L],h=n.map(t=>m({address:t,baseURL:u.apiAddress})),j=await Promise.all(h),i=P.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});j.forEach(t=>{if(!t||!a||!a.price)return;let c=new x(t.balance),S=c.dividedBy(x(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let U=g({amount:f({input:t.balance}),usd:a?.price});i[t.address].balance=S,i[t.address].usdValue=U});let p=Object.values(i).sort((t,c)=>t.index-c.index),O=p.filter(l);e.updateAllAccounts(p),e.updateAccountScreen({accounts:O,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{F as a};
2
- //# sourceMappingURL=chunk-XA3AGZCX.mjs.map
1
+ import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-AHRQWA37.mjs";import{a as m}from"./chunk-G7GU37XI.mjs";import{f}from"./chunk-PJWJZHIS.mjs";import x from"bignumber.js";var F=async({manager:e,provider:d})=>{if(!e||!d)throw new Error("Provider is not initialized.");let{network:u}=b(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await w({baseURL:u.apiAddress}),l=o=>o.index>=s&&o.index<s+e.addressesPerPage,I=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),A=r.filter(l),y=!!I[s];if(e.updateAccountScreen({isLoading:!y}),A.length>0){e.updateAccountScreen({accounts:A});return}try{let o=Math.floor(s/e.addressesPerPage),n=await d.getAccounts(o,e.addressesPerPage),L=n.map((t,c)=>({address:t,balance:"...",index:c+s})),P=[...r,...L],h=n.map(t=>m({address:t,baseURL:u.apiAddress})),j=await Promise.all(h),i=P.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});j.forEach(t=>{if(!t||!a||!a.price)return;let c=new x(t.balance),S=c.dividedBy(x(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let U=g({amount:f({input:t.balance}),usd:a?.price});i[t.address].balance=S,i[t.address].usdValue=U});let p=Object.values(i).sort((t,c)=>t.index-c.index),O=p.filter(l);e.updateAllAccounts(p),e.updateAccountScreen({accounts:O,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{F as a};
2
+ //# sourceMappingURL=chunk-U6N242A3.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-DLCBEPEX.mjs";import{a as o}from"./chunk-JTV664SG.mjs";import{a as e}from"./chunk-6LOIZTC6.mjs";import{a as r}from"./chunk-EZKCZPIE.mjs";var a={network:{network:e},account:o,loginInfo:r,config:t,transactions:{},toasts:{customToasts:[],transactionToasts:[]},cache:{},ui:{isSidePanelOpen:!1}};export{a};
2
+ //# sourceMappingURL=chunk-UIWCJ3CV.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-ANIJIRAY.mjs";import{a as o}from"./chunk-WE7YOBO7.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
2
- //# sourceMappingURL=chunk-YX7TMA3N.mjs.map
1
+ import{a as r}from"./chunk-YVAL3LZF.mjs";import{a as o}from"./chunk-WE7YOBO7.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
2
+ //# sourceMappingURL=chunk-UJIIYWYI.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as r}from"./chunk-N55JEIM6.mjs";import{b as n,c as o}from"./chunk-X5F7OCHT.mjs";import{s}from"./chunk-5PNQWHBP.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
2
+ //# sourceMappingURL=chunk-UKBPRQL6.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/methods/trackTransactions/helpers/checkTransactionStatus/updateTransactionAndSessionStatus.ts"],
4
+ "sourcesContent": ["import { getTransactionsSessionStatus } from 'managers/TransactionManager/helpers/getTransactionsStatus';\nimport {\n updateSessionStatus,\n updateTransactionStatus,\n UpdateTransactionStatusPropsType\n} from 'store/actions/transactions/transactionsActions';\nimport { getState } from 'store/store';\nimport { TransactionBatchStatusesEnum } from 'types/enums.types';\n\nexport function updateTransactionAndSessionStatus({\n sessionId,\n transaction\n}: UpdateTransactionStatusPropsType): TransactionBatchStatusesEnum | null {\n updateTransactionStatus({\n sessionId,\n transaction\n });\n\n const state = getState();\n const transactions = state.transactions[sessionId].transactions;\n\n const status = getTransactionsSessionStatus(transactions);\n\n if (status) {\n updateSessionStatus({\n sessionId,\n status\n });\n }\n\n return status;\n}\n"],
5
+ "mappings": "6HASO,SAASA,EAAkC,CAChD,UAAAC,EACA,YAAAC,CACF,EAA0E,CACxEC,EAAwB,CACtB,UAAAF,EACA,YAAAC,CACF,CAAC,EAGD,IAAME,EADQC,EAAS,EACI,aAAaJ,CAAS,EAAE,aAE7CK,EAASC,EAA6BH,CAAY,EAExD,OAAIE,GACFE,EAAoB,CAClB,UAAAP,EACA,OAAAK,CACF,CAAC,EAGIA,CACT",
6
+ "names": ["updateTransactionAndSessionStatus", "sessionId", "transaction", "updateTransactionStatus", "transactions", "getState", "status", "getTransactionsSessionStatus", "updateSessionStatus"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{d as s}from"./chunk-CUMJOJXJ.mjs";import{a as u}from"./chunk-SWZ5LDC3.mjs";import{s as c}from"./chunk-RCNZOLEM.mjs";import{b as d}from"./chunk-7VHTZYM2.mjs";import{a as v}from"./chunk-6R2WFQ7U.mjs";import{a}from"./chunk-LJX4MW7B.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(a).filter(n=>![a.none,a.webview].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
2
- //# sourceMappingURL=chunk-UCCJLDG6.mjs.map
1
+ import{d as s}from"./chunk-OHFXF2B5.mjs";import{a as u}from"./chunk-7LP6TRTV.mjs";import{s as c}from"./chunk-5PNQWHBP.mjs";import{b as d}from"./chunk-7VHTZYM2.mjs";import{a as v}from"./chunk-6R2WFQ7U.mjs";import{a}from"./chunk-LJX4MW7B.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(a).filter(n=>![a.none,a.webview].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
2
+ //# sourceMappingURL=chunk-UL35YJX4.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as r}from"./chunk-5PNQWHBP.mjs";import{b as t}from"./chunk-UTWIKUIK.mjs";var i=(e,o)=>t(`transaction-${e}`)(o??r())??null;export{i as a};
2
+ //# sourceMappingURL=chunk-UYRCLUET.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-Q4OG6NMJ.mjs";import{MvxLedgerConnect as r}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a,r as b};
2
- //# sourceMappingURL=chunk-OD6C4XKP.mjs.map
1
+ import{a as t}from"./chunk-6XHXG7HB.mjs";import{MvxLedgerConnect as r}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a,r as b};
2
+ //# sourceMappingURL=chunk-W2TBID4H.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-6OIZTWJQ.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
2
- //# sourceMappingURL=chunk-6ME6A43J.mjs.map
1
+ import{a as o}from"./chunk-LDFQUMVY.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
2
+ //# sourceMappingURL=chunk-W42RP7KL.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as o}from"./chunk-5PNQWHBP.mjs";import{current as p}from"immer";function d({transactions:t,transactionsDisplayInfo:n,status:r,sessionInformation:s}){let a=Date.now().toString();return o().setState(({transactions:e})=>{e[a]={transactions:t,status:r,transactionsDisplayInfo:n,interpretedTransactions:{},sessionInformation:s}},!1,{type:"createTransactionsSession",payload:{value:{transactions:t,status:r,transactionsDisplayInfo:n,sessionInformation:s}}}),a}function m({sessionId:t,status:n,errorMessage:r}){o().setState(({transactions:s})=>{if(!s[t])return;let a=p(s[t]).transactionsDisplayInfo??{},e=r||a?.errorMessage;s[t].status=n,s[t].errorMessage=e,s[t].transactionsDisplayInfo={...a,errorMessage:e}},!1,{type:"updateSessionStatus",payload:{value:{sessionId:t,status:n,errorMessage:r}}})}function g({sessionId:t,transaction:n}){o().setState(({transactions:r})=>{let s=r[t]?.transactions;s!=null&&(r[t].transactions=s.map(a=>a.hash===n.hash?{...a,...n??{}}:a))},!1,{type:"updateTransactionStatus",payload:{value:{sessionId:t,transaction:n}}})}var h=()=>{o().setState(({transactions:t,toasts:n})=>{let s=Object.keys(t).filter(e=>{let c=t[e];if(!c)return!1;let{status:i}=c;return!(i==="pending"||i==="signed"||i==="sent")});s.forEach(e=>{delete t[e]});let a=n.transactionToasts.filter(e=>!s.includes(e.toastId));n.transactionToasts=a},!1,{type:"clearCompletedTransactions",payload:{value:null}})};export{d as a,m as b,g as c,h as d};
2
+ //# sourceMappingURL=chunk-X5F7OCHT.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/store/actions/transactions/transactionsActions.ts"],
4
+ "sourcesContent": ["import { current } from 'immer';\nimport { getStore } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport {\n TransactionsDisplayInfoType,\n SignedTransactionType\n} from 'types/transactions.types';\n\nexport type CreateTransactionsSessionType = {\n transactions: SignedTransactionType[];\n transactionsDisplayInfo?: TransactionsDisplayInfoType;\n status: TransactionBatchStatusesEnum | TransactionServerStatusesEnum;\n sessionInformation?: any;\n};\n\nexport function createTransactionsSession({\n transactions,\n transactionsDisplayInfo,\n status,\n sessionInformation\n}: CreateTransactionsSessionType) {\n const sessionId = Date.now().toString();\n getStore().setState(\n ({ transactions: state }) => {\n state[sessionId] = {\n transactions,\n status,\n transactionsDisplayInfo,\n interpretedTransactions: {},\n sessionInformation\n };\n },\n false,\n {\n type: 'createTransactionsSession',\n // @ts-ignore\n payload: {\n value: {\n transactions,\n status,\n transactionsDisplayInfo,\n sessionInformation\n }\n }\n }\n );\n return sessionId;\n}\n\nexport function updateSessionStatus({\n sessionId,\n status,\n errorMessage\n}: {\n sessionId: string;\n status: TransactionBatchStatusesEnum;\n errorMessage?: string;\n}) {\n getStore().setState(\n ({ transactions: state }) => {\n if (!state[sessionId]) {\n return;\n }\n const transactionsDisplayInfo =\n current(state[sessionId]).transactionsDisplayInfo ?? {};\n\n const newErrorMessage =\n errorMessage || transactionsDisplayInfo?.errorMessage;\n\n state[sessionId].status = status;\n state[sessionId].errorMessage = newErrorMessage;\n state[sessionId].transactionsDisplayInfo = {\n ...transactionsDisplayInfo,\n errorMessage: newErrorMessage\n };\n },\n false,\n {\n type: 'updateSessionStatus',\n // @ts-ignore\n payload: {\n value: { sessionId, status, errorMessage }\n }\n }\n );\n}\n\nexport type UpdateTransactionStatusPropsType = {\n sessionId: string;\n transaction: SignedTransactionType;\n};\n\nexport function updateTransactionStatus({\n sessionId,\n transaction: updatedTransaction\n}: UpdateTransactionStatusPropsType) {\n getStore().setState(\n ({ transactions: state }) => {\n const transactions = state[sessionId]?.transactions;\n if (transactions != null) {\n state[sessionId].transactions = transactions.map((transaction) => {\n if (transaction.hash === updatedTransaction.hash) {\n return {\n ...transaction,\n ...(updatedTransaction ?? {})\n };\n }\n return transaction;\n });\n }\n },\n false,\n {\n type: 'updateTransactionStatus',\n // @ts-ignore\n payload: {\n value: { sessionId, transaction: updatedTransaction }\n }\n }\n );\n}\n\nexport const clearCompletedTransactions = () => {\n getStore().setState(\n ({ transactions: state, toasts: toastsState }) => {\n const sessionIds = Object.keys(state);\n\n const completedSessionIds = sessionIds.filter((sessionId) => {\n const session = state[sessionId];\n if (!session) {\n return false;\n }\n\n const { status } = session;\n\n const isPending =\n status === TransactionServerStatusesEnum.pending ||\n status === TransactionBatchStatusesEnum.signed ||\n status === TransactionBatchStatusesEnum.sent;\n\n return !isPending;\n });\n\n completedSessionIds.forEach((sessionId) => {\n delete state[sessionId];\n });\n\n const filteredTransactionToasts = toastsState.transactionToasts.filter(\n (toast) => !completedSessionIds.includes(toast.toastId)\n );\n\n toastsState.transactionToasts = filteredTransactionToasts;\n },\n false,\n {\n type: 'clearCompletedTransactions',\n // @ts-ignore\n payload: {\n value: null\n }\n }\n );\n};\n"],
5
+ "mappings": "yCAAA,OAAS,WAAAA,MAAe,QAkBjB,SAASC,EAA0B,CACxC,aAAAC,EACA,wBAAAC,EACA,OAAAC,EACA,mBAAAC,CACF,EAAkC,CAChC,IAAMC,EAAY,KAAK,IAAI,EAAE,SAAS,EACtC,OAAAC,EAAS,EAAE,SACT,CAAC,CAAE,aAAcC,CAAM,IAAM,CAC3BA,EAAMF,CAAS,EAAI,CACjB,aAAAJ,EACA,OAAAE,EACA,wBAAAD,EACA,wBAAyB,CAAC,EAC1B,mBAAAE,CACF,CACF,EACA,GACA,CACE,KAAM,4BAEN,QAAS,CACP,MAAO,CACL,aAAAH,EACA,OAAAE,EACA,wBAAAD,EACA,mBAAAE,CACF,CACF,CACF,CACF,EACOC,CACT,CAEO,SAASG,EAAoB,CAClC,UAAAH,EACA,OAAAF,EACA,aAAAM,CACF,EAIG,CACDH,EAAS,EAAE,SACT,CAAC,CAAE,aAAcC,CAAM,IAAM,CAC3B,GAAI,CAACA,EAAMF,CAAS,EAClB,OAEF,IAAMH,EACJQ,EAAQH,EAAMF,CAAS,CAAC,EAAE,yBAA2B,CAAC,EAElDM,EACJF,GAAgBP,GAAyB,aAE3CK,EAAMF,CAAS,EAAE,OAASF,EAC1BI,EAAMF,CAAS,EAAE,aAAeM,EAChCJ,EAAMF,CAAS,EAAE,wBAA0B,CACzC,GAAGH,EACH,aAAcS,CAChB,CACF,EACA,GACA,CACE,KAAM,sBAEN,QAAS,CACP,MAAO,CAAE,UAAAN,EAAW,OAAAF,EAAQ,aAAAM,CAAa,CAC3C,CACF,CACF,CACF,CAOO,SAASG,EAAwB,CACtC,UAAAP,EACA,YAAaQ,CACf,EAAqC,CACnCP,EAAS,EAAE,SACT,CAAC,CAAE,aAAcC,CAAM,IAAM,CAC3B,IAAMN,EAAeM,EAAMF,CAAS,GAAG,aACnCJ,GAAgB,OAClBM,EAAMF,CAAS,EAAE,aAAeJ,EAAa,IAAKa,GAC5CA,EAAY,OAASD,EAAmB,KACnC,CACL,GAAGC,EACH,GAAID,GAAsB,CAAC,CAC7B,EAEKC,CACR,EAEL,EACA,GACA,CACE,KAAM,0BAEN,QAAS,CACP,MAAO,CAAE,UAAAT,EAAW,YAAaQ,CAAmB,CACtD,CACF,CACF,CACF,CAEO,IAAME,EAA6B,IAAM,CAC9CT,EAAS,EAAE,SACT,CAAC,CAAE,aAAcC,EAAO,OAAQS,CAAY,IAAM,CAGhD,IAAMC,EAFa,OAAO,KAAKV,CAAK,EAEG,OAAQF,GAAc,CAC3D,IAAMa,EAAUX,EAAMF,CAAS,EAC/B,GAAI,CAACa,EACH,MAAO,GAGT,GAAM,CAAE,OAAAf,CAAO,EAAIe,EAOnB,MAAO,EAJLf,eACAA,cACAA,WAGJ,CAAC,EAEDc,EAAoB,QAASZ,GAAc,CACzC,OAAOE,EAAMF,CAAS,CACxB,CAAC,EAED,IAAMc,EAA4BH,EAAY,kBAAkB,OAC7DI,GAAU,CAACH,EAAoB,SAASG,EAAM,OAAO,CACxD,EAEAJ,EAAY,kBAAoBG,CAClC,EACA,GACA,CACE,KAAM,6BAEN,QAAS,CACP,MAAO,IACT,CACF,CACF,CACF",
6
+ "names": ["current", "createTransactionsSession", "transactions", "transactionsDisplayInfo", "status", "sessionInformation", "sessionId", "getStore", "state", "updateSessionStatus", "errorMessage", "current", "newErrorMessage", "updateTransactionStatus", "updatedTransaction", "transaction", "clearCompletedTransactions", "toastsState", "completedSessionIds", "session", "filteredTransactionToasts", "toast"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-EMIDMARK.mjs";import{q as e}from"./chunk-5PNQWHBP.mjs";var m=()=>t(e());export{m as a};
2
+ //# sourceMappingURL=chunk-YGRMC52T.mjs.map
@@ -1,2 +1,2 @@
1
- import{s as e}from"./chunk-RCNZOLEM.mjs";import{b as o}from"./chunk-7VHTZYM2.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
- //# sourceMappingURL=chunk-YHNOFYGM.mjs.map
1
+ import{s as e}from"./chunk-5PNQWHBP.mjs";import{b as o}from"./chunk-7VHTZYM2.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
+ //# sourceMappingURL=chunk-YIEM5DGL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-NTOY6GTP.mjs";import{c as r,d as a}from"./chunk-M6MN4RXG.mjs";import{s as e}from"./chunk-RCNZOLEM.mjs";import{a as n}from"./chunk-UERJ6AKK.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
2
- //# sourceMappingURL=chunk-2VRRMEOY.mjs.map
1
+ import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-NTOY6GTP.mjs";import{c as r,d as a}from"./chunk-M6MN4RXG.mjs";import{s as e}from"./chunk-5PNQWHBP.mjs";import{a as n}from"./chunk-UERJ6AKK.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
2
+ //# sourceMappingURL=chunk-YIZAB63A.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-YHNOFYGM.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
2
- //# sourceMappingURL=chunk-GMP2DZ26.mjs.map
1
+ import{a}from"./chunk-YIEM5DGL.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
2
+ //# sourceMappingURL=chunk-YLJC7ZKD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-GMP2DZ26.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
2
- //# sourceMappingURL=chunk-ANIJIRAY.mjs.map
1
+ import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-YLJC7ZKD.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
2
+ //# sourceMappingURL=chunk-YVAL3LZF.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-RCNZOLEM.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
2
- //# sourceMappingURL=chunk-VQULIVGX.mjs.map
1
+ import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-5PNQWHBP.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
2
+ //# sourceMappingURL=chunk-Z3ZWRORQ.mjs.map
@@ -1,60 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var getAccountFromApi_exports = {};
20
- __export(getAccountFromApi_exports, {
21
- accountFetcher: () => accountFetcher,
22
- getAccountFromApi: () => getAccountFromApi
23
- });
24
- module.exports = __toCommonJS(getAccountFromApi_exports);
25
- var import_endpoints = require("../../apiCalls/endpoints");
26
- var import_axiosInstance = require("../../apiCalls/utils/axiosInstance");
27
- var import_getCleanApiAddress = require("../../apiCalls/utils/getCleanApiAddress");
28
- var import_network = require("../../constants/network.constants");
29
- const accountFetcher = ({
30
- address,
31
- baseURL
32
- }) => {
33
- const apiAddress = (0, import_getCleanApiAddress.getCleanApiAddress)(baseURL);
34
- const url = `${apiAddress}/${import_endpoints.ACCOUNTS_ENDPOINT}/${address}?withGuardianInfo=true`;
35
- return import_axiosInstance.axiosInstance.get(url, {
36
- baseURL: apiAddress,
37
- timeout: import_network.TIMEOUT
38
- });
39
- };
40
- const getAccountFromApi = async ({
41
- address,
42
- baseURL
43
- }) => {
44
- if (!address) {
45
- return null;
46
- }
47
- try {
48
- const { data } = await accountFetcher({ address, baseURL });
49
- return data;
50
- } catch (_err) {
51
- console.error("error fetching configuration for ", address);
52
- }
53
- return null;
54
- };
55
- // Annotate the CommonJS export names for ESM import in node:
56
- 0 && (module.exports = {
57
- accountFetcher,
58
- getAccountFromApi
59
- });
1
+ "use strict";var c=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var l=(r,t)=>{for(var o in t)c(r,o,{get:t[o],enumerable:!0})},A=(r,t,o,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of f(t))!g.call(r,n)&&n!==o&&c(r,n,{get:()=>t[n],enumerable:!(e=p(t,n))||e.enumerable});return r};var d=r=>A(c({},"__esModule",{value:!0}),r);var U={};l(U,{accountFetcher:()=>m,getAccountFromApi:()=>T});module.exports=d(U);var i=require("../../apiCalls/endpoints"),s=require("../../apiCalls/utils/axiosInstance"),a=require("../../apiCalls/utils/getCleanApiAddress"),u=require("../../constants/network.constants");const m=({address:r,baseURL:t})=>{const o=(0,a.getCleanApiAddress)(t),e=`${o}/${i.ACCOUNTS_ENDPOINT}/${r}?withGuardianInfo=true`;return s.axiosInstance.get(e,{baseURL:o,timeout:u.TIMEOUT})},T=async({address:r,baseURL:t})=>{if(!r)return null;try{const{data:o}=await m({address:r,baseURL:t});return o}catch{console.error("error fetching configuration for ",r)}return null};0&&(module.exports={accountFetcher,getAccountFromApi});
60
2
  //# sourceMappingURL=getAccountFromApi.cjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/apiCalls/account/getAccountFromApi.ts"],
4
4
  "sourcesContent": ["import { ACCOUNTS_ENDPOINT } from 'apiCalls/endpoints';\nimport { axiosInstance } from 'apiCalls/utils/axiosInstance';\nimport { getCleanApiAddress } from 'apiCalls/utils/getCleanApiAddress';\nimport { TIMEOUT } from 'constants/network.constants';\nimport { AccountType } from 'types/account.types';\n\nexport const accountFetcher = ({\n address,\n baseURL\n}: {\n address: string | null;\n baseURL: string;\n}) => {\n const apiAddress = getCleanApiAddress(baseURL);\n const url = `${apiAddress}/${ACCOUNTS_ENDPOINT}/${address}?withGuardianInfo=true`;\n // we need to get it with an axios instance because of cross-window user interaction issues\n return axiosInstance.get(url, {\n baseURL: apiAddress,\n timeout: TIMEOUT\n });\n};\n\nexport const getAccountFromApi = async ({\n address,\n baseURL\n}: {\n address?: string;\n baseURL: string;\n}) => {\n if (!address) {\n return null;\n }\n\n try {\n const { data } = await accountFetcher({ address, baseURL });\n return data as AccountType;\n } catch (_err) {\n console.error('error fetching configuration for ', address);\n }\n\n return null;\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAkC;AAClC,2BAA8B;AAC9B,gCAAmC;AACnC,qBAAwB;AAGjB,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AACF,MAGM;AACJ,QAAM,iBAAa,8CAAmB,OAAO;AAC7C,QAAM,MAAM,GAAG,UAAU,IAAI,kCAAiB,IAAI,OAAO;AAEzD,SAAO,mCAAc,IAAI,KAAK;AAAA,IAC5B,SAAS;AAAA,IACT,SAAS;AAAA,EACX,CAAC;AACH;AAEO,MAAM,oBAAoB,OAAO;AAAA,EACtC;AAAA,EACA;AACF,MAGM;AACJ,MAAI,CAAC,SAAS;AACZ,WAAO;AAAA,EACT;AAEA,MAAI;AACF,UAAM,EAAE,KAAK,IAAI,MAAM,eAAe,EAAE,SAAS,QAAQ,CAAC;AAC1D,WAAO;AAAA,EACT,SAAS,MAAM;AACb,YAAQ,MAAM,qCAAqC,OAAO;AAAA,EAC5D;AAEA,SAAO;AACT;",
6
- "names": []
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,EAAA,sBAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAAkC,8BAClCC,EAA8B,wCAC9BC,EAAmC,6CACnCC,EAAwB,uCAGjB,MAAMN,EAAiB,CAAC,CAC7B,QAAAO,EACA,QAAAC,CACF,IAGM,CACJ,MAAMC,KAAa,sBAAmBD,CAAO,EACvCE,EAAM,GAAGD,CAAU,IAAI,mBAAiB,IAAIF,CAAO,yBAEzD,OAAO,gBAAc,IAAIG,EAAK,CAC5B,QAASD,EACT,QAAS,SACX,CAAC,CACH,EAEaR,EAAoB,MAAO,CACtC,QAAAM,EACA,QAAAC,CACF,IAGM,CACJ,GAAI,CAACD,EACH,OAAO,KAGT,GAAI,CACF,KAAM,CAAE,KAAAI,CAAK,EAAI,MAAMX,EAAe,CAAE,QAAAO,EAAS,QAAAC,CAAQ,CAAC,EAC1D,OAAOG,CACT,MAAe,CACb,QAAQ,MAAM,oCAAqCJ,CAAO,CAC5D,CAEA,OAAO,IACT",
6
+ "names": ["getAccountFromApi_exports", "__export", "accountFetcher", "getAccountFromApi", "__toCommonJS", "import_endpoints", "import_axiosInstance", "import_getCleanApiAddress", "import_network", "address", "baseURL", "apiAddress", "url", "data"]
7
7
  }
@@ -2,7 +2,7 @@ import { AccountType } from '../../types/account.types';
2
2
  export declare const accountFetcher: ({ address, baseURL }: {
3
3
  address: string | null;
4
4
  baseURL: string;
5
- }) => Promise<import("axios").AxiosResponse<any, any>>;
5
+ }) => Promise<import("axios").AxiosResponse<any, any, {}>>;
6
6
  export declare const getAccountFromApi: ({ address, baseURL }: {
7
7
  address?: string;
8
8
  baseURL: string;
@@ -1,52 +1,2 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var getScamAddressData_exports = {};
30
- __export(getScamAddressData_exports, {
31
- getScamAddressData: () => getScamAddressData
32
- });
33
- module.exports = __toCommonJS(getScamAddressData_exports);
34
- var import_axios = __toESM(require("axios"));
35
- var import_utils = require("../../apiCalls/utils");
36
- var import_constants = require("../../constants/index");
37
- var import_endpoints = require("../endpoints");
38
- async function getScamAddressData({
39
- addressToVerify,
40
- baseURL
41
- }) {
42
- const apiAddress = (0, import_utils.getCleanApiAddress)(baseURL);
43
- const { data } = await import_axios.default.get(`${apiAddress}/${import_endpoints.ACCOUNTS_ENDPOINT}/${addressToVerify}`, {
44
- timeout: import_constants.TIMEOUT
45
- });
46
- return data;
47
- }
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
50
- getScamAddressData
51
- });
1
+ "use strict";var p=Object.create;var e=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var I=(o,r)=>{for(var t in r)e(o,t,{get:r[t],enumerable:!0})},i=(o,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of T(r))!A.call(o,s)&&s!==t&&e(o,s,{get:()=>r[s],enumerable:!(a=c(r,s))||a.enumerable});return o};var y=(o,r,t)=>(t=o!=null?p(g(o)):{},i(r||!o||!o.__esModule?e(t,"default",{value:o,enumerable:!0}):t,o)),S=o=>i(e({},"__esModule",{value:!0}),o);var C={};I(C,{getScamAddressData:()=>u});module.exports=S(C);var m=y(require("axios")),n=require("../../apiCalls/utils"),d=require("../../constants/index"),f=require("../endpoints");async function u({addressToVerify:o,baseURL:r}){const t=(0,n.getCleanApiAddress)(r),{data:a}=await m.default.get(`${t}/${f.ACCOUNTS_ENDPOINT}/${o}`,{timeout:d.TIMEOUT});return a}0&&(module.exports={getScamAddressData});
52
2
  //# sourceMappingURL=getScamAddressData.cjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/apiCalls/account/getScamAddressData.ts"],
4
4
  "sourcesContent": ["import axios from 'axios';\nimport { getCleanApiAddress } from 'apiCalls/utils';\nimport { TIMEOUT } from 'constants/index';\nimport { ScamInfoType } from 'types/account.types';\nimport { ACCOUNTS_ENDPOINT } from '../endpoints';\n\nexport async function getScamAddressData({\n addressToVerify,\n baseURL\n}: {\n addressToVerify: string;\n baseURL: string;\n}) {\n const apiAddress = getCleanApiAddress(baseURL);\n\n const { data } = await axios.get<{\n scamInfo?: ScamInfoType;\n code?: string;\n }>(`${apiAddress}/${ACCOUNTS_ENDPOINT}/${addressToVerify}`, {\n timeout: TIMEOUT\n });\n\n return data;\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,mBAAmC;AACnC,uBAAwB;AAExB,uBAAkC;AAElC,eAAsB,mBAAmB;AAAA,EACvC;AAAA,EACA;AACF,GAGG;AACD,QAAM,iBAAa,iCAAmB,OAAO;AAE7C,QAAM,EAAE,KAAK,IAAI,MAAM,aAAAA,QAAM,IAG1B,GAAG,UAAU,IAAI,kCAAiB,IAAI,eAAe,IAAI;AAAA,IAC1D,SAAS;AAAA,EACX,CAAC;AAED,SAAO;AACT;",
6
- "names": ["axios"]
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAkB,oBAClBC,EAAmC,0BACnCC,EAAwB,2BAExBC,EAAkC,wBAElC,eAAsBL,EAAmB,CACvC,gBAAAM,EACA,QAAAC,CACF,EAGG,CACD,MAAMC,KAAa,sBAAmBD,CAAO,EAEvC,CAAE,KAAAE,CAAK,EAAI,MAAM,EAAAC,QAAM,IAG1B,GAAGF,CAAU,IAAI,mBAAiB,IAAIF,CAAe,GAAI,CAC1D,QAAS,SACX,CAAC,EAED,OAAOG,CACT",
6
+ "names": ["getScamAddressData_exports", "__export", "getScamAddressData", "__toCommonJS", "import_axios", "import_utils", "import_constants", "import_endpoints", "addressToVerify", "baseURL", "apiAddress", "data", "axios"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-VJGOUAZ2.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-7XASUTI2.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-6R2WFQ7U.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-2NF5HX3H.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-LJX4MW7B.mjs";import"../../__chunks__/chunk-Q4OG6NMJ.mjs";export{a as getScamAddressData};
1
+ import{a}from"../../__chunks__/chunk-VJGOUAZ2.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-FMNY4EIM.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-6R2WFQ7U.mjs";import"../../__chunks__/chunk-3IMTI6JQ.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-LJX4MW7B.mjs";import"../../__chunks__/chunk-6XHXG7HB.mjs";export{a as getScamAddressData};
2
2
  //# sourceMappingURL=getScamAddressData.mjs.map
@@ -1,23 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var account_exports = {};
17
- module.exports = __toCommonJS(account_exports);
18
- __reExport(account_exports, require("./getAccountFromApi"), module.exports);
19
- // Annotate the CommonJS export names for ESM import in node:
20
- 0 && (module.exports = {
21
- ...require("./getAccountFromApi")
22
- });
1
+ "use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./getAccountFromApi"),module.exports);0&&(module.exports={...require("./getAccountFromApi")});
23
2
  //# sourceMappingURL=index.cjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/apiCalls/account/index.ts"],
4
4
  "sourcesContent": ["export * from './getAccountFromApi';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,gCAAd;",
6
- "names": []
5
+ "mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,+BAAd",
6
+ "names": ["account_exports", "__toCommonJS", "__reExport"]
7
7
  }
@@ -1,35 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var getCleanApiAddress_exports = {};
20
- __export(getCleanApiAddress_exports, {
21
- getCleanApiAddress: () => getCleanApiAddress
22
- });
23
- module.exports = __toCommonJS(getCleanApiAddress_exports);
24
- var import_networkSelectors = require("../../store/selectors/networkSelectors");
25
- var import_store = require("../../store/store");
26
- const getCleanApiAddress = (customApiAddress) => {
27
- const network = (0, import_networkSelectors.networkSelector)((0, import_store.getState)());
28
- const apiAddress = customApiAddress ?? network.apiAddress;
29
- return apiAddress.endsWith("/") ? apiAddress.slice(0, -1) : apiAddress;
30
- };
31
- // Annotate the CommonJS export names for ESM import in node:
32
- 0 && (module.exports = {
33
- getCleanApiAddress
34
- });
1
+ "use strict";var o=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var m=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},A=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of c(t))!a.call(e,s)&&s!==r&&o(e,s,{get:()=>t[s],enumerable:!(n=p(t,s))||n.enumerable});return e};var g=e=>A(o({},"__esModule",{value:!0}),e);var f={};m(f,{getCleanApiAddress:()=>l});module.exports=g(f);var i=require("../../store/selectors/networkSelectors"),d=require("../../store/store");const l=e=>{const t=(0,i.networkSelector)((0,d.getState)()),r=e??t.apiAddress;return r.endsWith("/")?r.slice(0,-1):r};0&&(module.exports={getCleanApiAddress});
35
2
  //# sourceMappingURL=getCleanApiAddress.cjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/apiCalls/configuration/getCleanApiAddress.ts"],
4
4
  "sourcesContent": ["import { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\n\nexport const getCleanApiAddress = (customApiAddress?: string) => {\n const network = networkSelector(getState());\n const apiAddress = customApiAddress ?? network.apiAddress;\n return apiAddress.endsWith('/') ? apiAddress.slice(0, -1) : apiAddress;\n};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAgC;AAChC,mBAAyB;AAElB,MAAM,qBAAqB,CAAC,qBAA8B;AAC/D,QAAM,cAAU,6CAAgB,uBAAS,CAAC;AAC1C,QAAM,aAAa,oBAAoB,QAAQ;AAC/C,SAAO,WAAW,SAAS,GAAG,IAAI,WAAW,MAAM,GAAG,EAAE,IAAI;AAC9D;",
6
- "names": []
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAgC,4CAChCC,EAAyB,uBAElB,MAAMH,EAAsBI,GAA8B,CAC/D,MAAMC,KAAU,sBAAgB,YAAS,CAAC,EACpCC,EAAaF,GAAoBC,EAAQ,WAC/C,OAAOC,EAAW,SAAS,GAAG,EAAIA,EAAW,MAAM,EAAG,EAAE,EAAIA,CAC9D",
6
+ "names": ["getCleanApiAddress_exports", "__export", "getCleanApiAddress", "__toCommonJS", "import_networkSelectors", "import_store", "customApiAddress", "network", "apiAddress"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-PDKESLKC.mjs";import"../../__chunks__/chunk-RCNZOLEM.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-HAPHEGVZ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-Q4OG6NMJ.mjs";export{a as getCleanApiAddress};
1
+ import{a}from"../../__chunks__/chunk-3H5GYTLV.mjs";import"../../__chunks__/chunk-5PNQWHBP.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-FGO6JGLQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-6XHXG7HB.mjs";export{a as getCleanApiAddress};
2
2
  //# sourceMappingURL=getCleanApiAddress.mjs.map
@@ -1,65 +1,2 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var getGasStationMetadata_exports = {};
30
- __export(getGasStationMetadata_exports, {
31
- getGasStationMetadataFromApi: () => getGasStationMetadataFromApi
32
- });
33
- module.exports = __toCommonJS(getGasStationMetadata_exports);
34
- var import_axios = __toESM(require("axios"));
35
- var import_getCleanApiAddress = require("../../apiCalls/configuration/getCleanApiAddress");
36
- const GAS_STATION_ENDPOINT = "transactions/ppu";
37
- async function getGasStationMetadataFromApi(shard, customApiAddress) {
38
- const apiAddress = (0, import_getCleanApiAddress.getCleanApiAddress)(customApiAddress);
39
- const gasStationUrl = `${apiAddress}/${GAS_STATION_ENDPOINT}/${shard}`;
40
- try {
41
- const { data } = await import_axios.default.get(gasStationUrl);
42
- if (data) {
43
- return {
44
- [shard]: {
45
- lastBlock: data.lastBlock,
46
- fast: data.fast,
47
- faster: data.faster
48
- }
49
- };
50
- }
51
- return null;
52
- } catch (err) {
53
- console.error(
54
- "Error fetching gas station metadata from:",
55
- gasStationUrl,
56
- err
57
- );
58
- return null;
59
- }
60
- }
61
- // Annotate the CommonJS export names for ESM import in node:
62
- 0 && (module.exports = {
63
- getGasStationMetadataFromApi
64
- });
1
+ "use strict";var c=Object.create;var o=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var d=(t,a)=>{for(var e in a)o(t,e,{get:a[e],enumerable:!0})},n=(t,a,e,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of f(a))!u.call(t,r)&&r!==e&&o(t,r,{get:()=>a[r],enumerable:!(s=l(a,r))||s.enumerable});return t};var A=(t,a,e)=>(e=t!=null?c(m(t)):{},n(a||!t||!t.__esModule?o(e,"default",{value:t,enumerable:!0}):e,t)),g=t=>n(o({},"__esModule",{value:!0}),t);var N={};d(N,{getGasStationMetadataFromApi:()=>k});module.exports=g(N);var i=A(require("axios")),p=require("../../apiCalls/configuration/getCleanApiAddress");const S="transactions/ppu";async function k(t,a){const s=`${(0,p.getCleanApiAddress)(a)}/${S}/${t}`;try{const{data:r}=await i.default.get(s);return r?{[t]:{lastBlock:r.lastBlock,fast:r.fast,faster:r.faster}}:null}catch(r){return console.error("Error fetching gas station metadata from:",s,r),null}}0&&(module.exports={getGasStationMetadataFromApi});
65
2
  //# sourceMappingURL=getGasStationMetadata.cjs.map