@multiversx/sdk-dapp 5.0.9 → 5.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/out/__chunks__/{chunk-IHIBTL4N.mjs → chunk-23TMKZFJ.mjs} +2 -2
  2. package/out/__chunks__/{chunk-V4HIQSD2.mjs → chunk-24XAM2VT.mjs} +2 -2
  3. package/out/__chunks__/chunk-2AIOZ7AI.mjs +2 -0
  4. package/out/__chunks__/{chunk-L6XUG4LZ.mjs → chunk-2DS6LYYY.mjs} +2 -2
  5. package/out/__chunks__/{chunk-JHX7G7CK.mjs → chunk-2ZU7DAXN.mjs} +2 -2
  6. package/out/__chunks__/{chunk-Z2ZFJH7M.mjs → chunk-3BAZ5IKF.mjs} +2 -2
  7. package/out/__chunks__/{chunk-SC752S7S.mjs → chunk-3HNDMSWW.mjs} +2 -2
  8. package/out/__chunks__/chunk-4IYHEFEY.mjs +2 -0
  9. package/out/__chunks__/chunk-4LT5LGQC.mjs +2 -0
  10. package/out/__chunks__/{chunk-TJSRZTXV.mjs → chunk-5HBROJL7.mjs} +2 -2
  11. package/out/__chunks__/chunk-5MLAF3LT.mjs +2 -0
  12. package/out/__chunks__/{chunk-6HYLHYFC.mjs → chunk-66WRMAXV.mjs} +2 -2
  13. package/out/__chunks__/chunk-6KY5GEWL.mjs +2 -0
  14. package/out/__chunks__/{chunk-F535UPIT.mjs → chunk-6MXUKZB3.mjs} +2 -2
  15. package/out/__chunks__/{chunk-GHY2IAO2.mjs → chunk-6WVBN32G.mjs} +2 -2
  16. package/out/__chunks__/{chunk-66U2DKC2.mjs → chunk-7CFPPCWC.mjs} +2 -2
  17. package/out/__chunks__/chunk-7KFLWTDT.mjs +2 -0
  18. package/out/__chunks__/{chunk-GSKKORU3.mjs → chunk-7RLXMK3R.mjs} +2 -2
  19. package/out/__chunks__/{chunk-KJ2ESZS3.mjs → chunk-ADE33SZY.mjs} +2 -2
  20. package/out/__chunks__/{chunk-EXIQ5AWW.mjs → chunk-B5QFFY63.mjs} +2 -2
  21. package/out/__chunks__/{chunk-FTQV2IFE.mjs → chunk-B7VHGVIW.mjs} +2 -2
  22. package/out/__chunks__/chunk-BMFKD76W.mjs +2 -0
  23. package/out/__chunks__/{chunk-DY5F22IP.mjs → chunk-BNDFXYBM.mjs} +2 -2
  24. package/out/__chunks__/{chunk-CVCNSUVX.mjs → chunk-BRWXITGZ.mjs} +2 -2
  25. package/out/__chunks__/chunk-CZYRFACG.mjs +2 -0
  26. package/out/__chunks__/{chunk-MHXYO7AM.mjs → chunk-DJY24BHS.mjs} +2 -2
  27. package/out/__chunks__/{chunk-DQZXAQEQ.mjs → chunk-EHWT3WER.mjs} +2 -2
  28. package/out/__chunks__/{chunk-OVDQU4VC.mjs → chunk-EVS2OAVI.mjs} +2 -2
  29. package/out/__chunks__/{chunk-HOLYCMSD.mjs → chunk-F2UXV2DY.mjs} +2 -2
  30. package/out/__chunks__/{chunk-SKGX7AQR.mjs → chunk-FE3NXNR6.mjs} +2 -2
  31. package/out/__chunks__/{chunk-BLYQZ3AK.mjs → chunk-FVHDVMP6.mjs} +2 -2
  32. package/out/__chunks__/{chunk-YLU2JO7A.mjs → chunk-GJYL4HXE.mjs} +2 -2
  33. package/out/__chunks__/chunk-HHGGPCIT.mjs +2 -0
  34. package/out/__chunks__/chunk-HRTYNOPV.mjs +2 -0
  35. package/out/__chunks__/chunk-IQNEWWWL.mjs +2 -0
  36. package/out/__chunks__/{chunk-GYKFRG4G.mjs → chunk-IZMXB463.mjs} +2 -2
  37. package/out/__chunks__/{chunk-T6YT7SWN.mjs → chunk-JJ23PMQB.mjs} +2 -2
  38. package/out/__chunks__/{chunk-6SIVER36.mjs → chunk-JPGDRR3A.mjs} +2 -2
  39. package/out/__chunks__/{chunk-EFPESRFQ.mjs → chunk-JSFAGVXL.mjs} +2 -2
  40. package/out/__chunks__/{chunk-A5F6KBRA.mjs → chunk-KT6OP6QC.mjs} +2 -2
  41. package/out/__chunks__/{chunk-J2PJZYN7.mjs → chunk-KU45KIR2.mjs} +2 -2
  42. package/out/__chunks__/{chunk-427U5CPN.mjs → chunk-LST3XXIJ.mjs} +2 -2
  43. package/out/__chunks__/{chunk-IB4WJ3BB.mjs → chunk-M3S3XSZ7.mjs} +2 -2
  44. package/out/__chunks__/{chunk-AE67HPX7.mjs → chunk-MD5HYIJO.mjs} +2 -2
  45. package/out/__chunks__/{chunk-Q4K3273X.mjs → chunk-MFYHPHET.mjs} +2 -2
  46. package/out/__chunks__/{chunk-7RNNI3LI.mjs → chunk-MMLP7K73.mjs} +2 -2
  47. package/out/__chunks__/{chunk-AG5FZ7D2.mjs → chunk-NA5BUERU.mjs} +2 -2
  48. package/out/__chunks__/chunk-NSF7L6H7.mjs +2 -0
  49. package/out/__chunks__/chunk-OCT3B7SK.mjs +2 -0
  50. package/out/__chunks__/{chunk-NFJWSGDN.mjs → chunk-OEBWA3U7.mjs} +2 -2
  51. package/out/__chunks__/chunk-P6XFODV4.mjs +2 -0
  52. package/out/__chunks__/{chunk-3XWVDTZU.mjs → chunk-PAT5TWYK.mjs} +2 -2
  53. package/out/__chunks__/{chunk-ZZSCDW7F.mjs → chunk-PGY32PLX.mjs} +2 -2
  54. package/out/__chunks__/{chunk-XOES4EZI.mjs → chunk-QEEQRZS6.mjs} +2 -2
  55. package/out/__chunks__/chunk-QET2OLJT.mjs +2 -0
  56. package/out/__chunks__/{chunk-5JCA5OZE.mjs.map → chunk-QET2OLJT.mjs.map} +1 -1
  57. package/out/__chunks__/chunk-QGUSK75W.mjs +2 -0
  58. package/out/__chunks__/chunk-QGUSK75W.mjs.map +7 -0
  59. package/out/__chunks__/{chunk-UMIK4KBK.mjs → chunk-QIBUEZS3.mjs} +2 -2
  60. package/out/__chunks__/{chunk-HP2XWN3H.mjs → chunk-QYUEIE7N.mjs} +2 -2
  61. package/out/__chunks__/{chunk-ZEE2PRLQ.mjs → chunk-R7SGU5J2.mjs} +2 -2
  62. package/out/__chunks__/{chunk-M7WN35GY.mjs → chunk-RHZYJH4K.mjs} +2 -2
  63. package/out/__chunks__/{chunk-7PI3RH5C.mjs → chunk-RRRK4J56.mjs} +2 -2
  64. package/out/__chunks__/{chunk-DPO6NAIN.mjs → chunk-RZNOYCZT.mjs} +2 -2
  65. package/out/__chunks__/chunk-SBJ5SNMG.mjs +2 -0
  66. package/out/__chunks__/{chunk-TMZ5BZOT.mjs → chunk-SGGAZCOK.mjs} +2 -2
  67. package/out/__chunks__/{chunk-DWJNMLII.mjs → chunk-SZOPMJSG.mjs} +2 -2
  68. package/out/__chunks__/{chunk-X66WRHHQ.mjs → chunk-TAWCCADM.mjs} +2 -2
  69. package/out/__chunks__/{chunk-TAMBWEVQ.mjs → chunk-TPKK34YE.mjs} +2 -2
  70. package/out/__chunks__/{chunk-WYW7WKVT.mjs → chunk-TRQA733J.mjs} +2 -2
  71. package/out/__chunks__/chunk-URJQWHBM.mjs +2 -0
  72. package/out/__chunks__/chunk-URJQWHBM.mjs.map +7 -0
  73. package/out/__chunks__/chunk-VKDH4PYW.mjs +2 -0
  74. package/out/__chunks__/chunk-VKDH4PYW.mjs.map +7 -0
  75. package/out/__chunks__/{chunk-XPUAJV6J.mjs → chunk-WDFZXGVF.mjs} +2 -2
  76. package/out/__chunks__/{chunk-BFX6KRJB.mjs → chunk-WEQQ52VT.mjs} +2 -2
  77. package/out/__chunks__/{chunk-ITZYC6JK.mjs → chunk-WM2ARQV6.mjs} +2 -2
  78. package/out/__chunks__/chunk-WZLGCBPM.mjs +2 -0
  79. package/out/__chunks__/{chunk-FZOPS56M.mjs → chunk-X5KTEL7F.mjs} +2 -2
  80. package/out/__chunks__/{chunk-JTGLYVXN.mjs → chunk-YFO4VEZA.mjs} +2 -2
  81. package/out/__chunks__/{chunk-UBDGFC5C.mjs → chunk-YKUDEXLD.mjs} +2 -2
  82. package/out/__chunks__/{chunk-TGGB2GBZ.mjs → chunk-YRUQIWQX.mjs} +2 -2
  83. package/out/__chunks__/{chunk-RQ226FTC.mjs → chunk-YU6ZFE62.mjs} +2 -2
  84. package/out/__chunks__/{chunk-24HERUCI.mjs → chunk-YXC4NJUD.mjs} +2 -2
  85. package/out/__chunks__/{chunk-6LHWOVT5.mjs → chunk-YZZYAO7Z.mjs} +2 -2
  86. package/out/__chunks__/{chunk-KH555PP2.mjs → chunk-Z2M3TCDN.mjs} +2 -2
  87. package/out/__chunks__/{chunk-5UEXMF4C.mjs → chunk-ZRKEA6YR.mjs} +2 -2
  88. package/out/__chunks__/{chunk-4IX36KYO.mjs → chunk-ZWOEWFL2.mjs} +2 -2
  89. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  90. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  91. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  92. package/out/apiCalls/index.mjs +1 -1
  93. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  94. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  95. package/out/apiCalls/tokens/index.mjs +1 -1
  96. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  97. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  98. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  99. package/out/constants/browser.constants.mjs +1 -1
  100. package/out/constants/index.mjs +1 -1
  101. package/out/constants/storage.constants.mjs +1 -1
  102. package/out/constants/window.constants.cjs +1 -1
  103. package/out/constants/window.constants.cjs.map +1 -1
  104. package/out/constants/window.constants.mjs +1 -1
  105. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  106. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  107. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  108. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  109. package/out/index.mjs +1 -1
  110. package/out/lib/sdkDappUi.mjs +1 -1
  111. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  112. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  113. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  114. package/out/managers/TransactionManager/TransactionManager.cjs +37 -38
  115. package/out/managers/TransactionManager/TransactionManager.cjs.map +2 -2
  116. package/out/managers/TransactionManager/TransactionManager.d.ts +0 -1
  117. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  118. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  119. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  120. package/out/managers/TransactionManager/index.mjs +1 -1
  121. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  122. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  123. package/out/managers/index.mjs +1 -1
  124. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  125. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  126. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  127. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  128. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  129. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  130. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  131. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  132. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  133. package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
  134. package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
  135. package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  136. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  137. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  138. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  139. package/out/managers/internal/index.mjs +1 -1
  140. package/out/methods/account/getAccount.mjs +1 -1
  141. package/out/methods/account/getAccountInfo.mjs +1 -1
  142. package/out/methods/account/getAddress.mjs +1 -1
  143. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  144. package/out/methods/account/getLatestNonce.mjs +1 -1
  145. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  146. package/out/methods/initApp/initApp.mjs +1 -1
  147. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  148. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  149. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  150. package/out/methods/network/getEgldLabel.mjs +1 -1
  151. package/out/methods/network/getExplorerAddress.mjs +1 -1
  152. package/out/methods/network/getNetworkConfig.mjs +1 -1
  153. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  154. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  155. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  156. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  157. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  158. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  159. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  160. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  161. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  162. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  163. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  164. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  165. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  166. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  167. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  168. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  169. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  170. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  171. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  172. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  173. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  174. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  175. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  176. package/out/providers/DappProvider/index.mjs +1 -1
  177. package/out/providers/ProviderFactory.mjs +1 -1
  178. package/out/providers/helpers/accountProvider.mjs +1 -1
  179. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  180. package/out/providers/helpers/restoreProvider.mjs +1 -1
  181. package/out/providers/index.mjs +1 -1
  182. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  183. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  184. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  185. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  186. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  187. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  188. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  189. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  190. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  191. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  192. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  193. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  194. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  195. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  196. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  197. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  198. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  199. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  200. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  201. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  202. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  203. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  204. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  205. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  206. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  207. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  208. package/out/providers/strategies/helpers/index.mjs +1 -1
  209. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  210. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +4 -6
  211. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs.map +2 -2
  212. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.d.ts +3 -1
  213. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  214. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  215. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  216. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs +6 -4
  217. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs.map +2 -2
  218. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  219. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  220. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  221. package/out/providers/strategies/index.mjs +1 -1
  222. package/out/react/account/useGetAccount.mjs +1 -1
  223. package/out/react/account/useGetAccountInfo.mjs +1 -1
  224. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  225. package/out/react/account/useGetLatestNonce.mjs +1 -1
  226. package/out/react/index.mjs +1 -1
  227. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  228. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  229. package/out/react/store/getReactStore.mjs +1 -1
  230. package/out/react/store/useSelector.mjs +1 -1
  231. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  232. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  233. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  234. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  235. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  236. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  237. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  238. package/out/services/index.mjs +1 -1
  239. package/out/services/nativeAuth/index.mjs +1 -1
  240. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  241. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  242. package/out/services/nativeAuth/methods/index.mjs +1 -1
  243. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  244. package/out/store/actions/account/accountActions.mjs +1 -1
  245. package/out/store/actions/account/index.mjs +1 -1
  246. package/out/store/actions/cache/cacheActions.mjs +1 -1
  247. package/out/store/actions/cache/index.mjs +1 -1
  248. package/out/store/actions/config/configActions.mjs +1 -1
  249. package/out/store/actions/config/index.mjs +1 -1
  250. package/out/store/actions/index.mjs +1 -1
  251. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  252. package/out/store/actions/network/index.mjs +1 -1
  253. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  254. package/out/store/actions/network/networkActions.mjs +1 -1
  255. package/out/store/actions/sharedActions/index.mjs +1 -1
  256. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  257. package/out/store/actions/toasts/index.mjs +1 -1
  258. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  259. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  260. package/out/store/actions/ui/index.mjs +1 -1
  261. package/out/store/actions/ui/uiActions.mjs +1 -1
  262. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  263. package/out/store/middleware/index.mjs +1 -1
  264. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  265. package/out/store/storage/index.mjs +1 -1
  266. package/out/store/storage/storageCallback.mjs +1 -1
  267. package/out/store/store.mjs +1 -1
  268. package/out/utils/ComponentFactory.mjs +1 -1
  269. package/out/utils/account/index.mjs +1 -1
  270. package/out/utils/account/refreshAccount.mjs +1 -1
  271. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  272. package/out/utils/index.mjs +1 -1
  273. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  274. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  275. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  276. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  277. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  278. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  279. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  280. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  281. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  282. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  283. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  284. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  285. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  286. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  287. package/out/utils/transactions/index.mjs +1 -1
  288. package/out/utils/visual/index.mjs +1 -1
  289. package/out/utils/visual/switchTheme.mjs +1 -1
  290. package/out/utils/window/getIsInIframe.mjs +1 -1
  291. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  292. package/out/utils/window/index.mjs +1 -1
  293. package/package.json +1 -1
  294. package/out/__chunks__/chunk-2DFE24NA.mjs +0 -2
  295. package/out/__chunks__/chunk-2DFE24NA.mjs.map +0 -7
  296. package/out/__chunks__/chunk-2GP5IQEP.mjs +0 -2
  297. package/out/__chunks__/chunk-4NCS6I7W.mjs +0 -2
  298. package/out/__chunks__/chunk-5JCA5OZE.mjs +0 -2
  299. package/out/__chunks__/chunk-5QYT3EHL.mjs +0 -2
  300. package/out/__chunks__/chunk-6SUMRGIJ.mjs +0 -2
  301. package/out/__chunks__/chunk-BAX6BDHT.mjs +0 -2
  302. package/out/__chunks__/chunk-BDYK46XE.mjs +0 -2
  303. package/out/__chunks__/chunk-DSA7OV2X.mjs +0 -2
  304. package/out/__chunks__/chunk-FCLLSOVB.mjs +0 -2
  305. package/out/__chunks__/chunk-JAIA24ND.mjs +0 -2
  306. package/out/__chunks__/chunk-JAIA24ND.mjs.map +0 -7
  307. package/out/__chunks__/chunk-O5DNWY4U.mjs +0 -2
  308. package/out/__chunks__/chunk-PFKDWDRA.mjs +0 -2
  309. package/out/__chunks__/chunk-PIRUXLWE.mjs +0 -2
  310. package/out/__chunks__/chunk-PIRUXLWE.mjs.map +0 -7
  311. package/out/__chunks__/chunk-QEEDUPWM.mjs +0 -2
  312. package/out/__chunks__/chunk-RZIJVETL.mjs +0 -2
  313. package/out/__chunks__/chunk-SSAPDI4J.mjs +0 -2
  314. package/out/__chunks__/chunk-SSRQGUCG.mjs +0 -2
  315. package/out/__chunks__/chunk-XF4GSZXO.mjs +0 -2
  316. package/out/__chunks__/chunk-XGW2RCOF.mjs +0 -2
  317. /package/out/__chunks__/{chunk-IHIBTL4N.mjs.map → chunk-23TMKZFJ.mjs.map} +0 -0
  318. /package/out/__chunks__/{chunk-V4HIQSD2.mjs.map → chunk-24XAM2VT.mjs.map} +0 -0
  319. /package/out/__chunks__/{chunk-RZIJVETL.mjs.map → chunk-2AIOZ7AI.mjs.map} +0 -0
  320. /package/out/__chunks__/{chunk-L6XUG4LZ.mjs.map → chunk-2DS6LYYY.mjs.map} +0 -0
  321. /package/out/__chunks__/{chunk-JHX7G7CK.mjs.map → chunk-2ZU7DAXN.mjs.map} +0 -0
  322. /package/out/__chunks__/{chunk-Z2ZFJH7M.mjs.map → chunk-3BAZ5IKF.mjs.map} +0 -0
  323. /package/out/__chunks__/{chunk-SC752S7S.mjs.map → chunk-3HNDMSWW.mjs.map} +0 -0
  324. /package/out/__chunks__/{chunk-FCLLSOVB.mjs.map → chunk-4IYHEFEY.mjs.map} +0 -0
  325. /package/out/__chunks__/{chunk-SSAPDI4J.mjs.map → chunk-4LT5LGQC.mjs.map} +0 -0
  326. /package/out/__chunks__/{chunk-TJSRZTXV.mjs.map → chunk-5HBROJL7.mjs.map} +0 -0
  327. /package/out/__chunks__/{chunk-O5DNWY4U.mjs.map → chunk-5MLAF3LT.mjs.map} +0 -0
  328. /package/out/__chunks__/{chunk-6HYLHYFC.mjs.map → chunk-66WRMAXV.mjs.map} +0 -0
  329. /package/out/__chunks__/{chunk-XF4GSZXO.mjs.map → chunk-6KY5GEWL.mjs.map} +0 -0
  330. /package/out/__chunks__/{chunk-F535UPIT.mjs.map → chunk-6MXUKZB3.mjs.map} +0 -0
  331. /package/out/__chunks__/{chunk-GHY2IAO2.mjs.map → chunk-6WVBN32G.mjs.map} +0 -0
  332. /package/out/__chunks__/{chunk-66U2DKC2.mjs.map → chunk-7CFPPCWC.mjs.map} +0 -0
  333. /package/out/__chunks__/{chunk-SSRQGUCG.mjs.map → chunk-7KFLWTDT.mjs.map} +0 -0
  334. /package/out/__chunks__/{chunk-GSKKORU3.mjs.map → chunk-7RLXMK3R.mjs.map} +0 -0
  335. /package/out/__chunks__/{chunk-KJ2ESZS3.mjs.map → chunk-ADE33SZY.mjs.map} +0 -0
  336. /package/out/__chunks__/{chunk-EXIQ5AWW.mjs.map → chunk-B5QFFY63.mjs.map} +0 -0
  337. /package/out/__chunks__/{chunk-FTQV2IFE.mjs.map → chunk-B7VHGVIW.mjs.map} +0 -0
  338. /package/out/__chunks__/{chunk-QEEDUPWM.mjs.map → chunk-BMFKD76W.mjs.map} +0 -0
  339. /package/out/__chunks__/{chunk-DY5F22IP.mjs.map → chunk-BNDFXYBM.mjs.map} +0 -0
  340. /package/out/__chunks__/{chunk-CVCNSUVX.mjs.map → chunk-BRWXITGZ.mjs.map} +0 -0
  341. /package/out/__chunks__/{chunk-BAX6BDHT.mjs.map → chunk-CZYRFACG.mjs.map} +0 -0
  342. /package/out/__chunks__/{chunk-MHXYO7AM.mjs.map → chunk-DJY24BHS.mjs.map} +0 -0
  343. /package/out/__chunks__/{chunk-DQZXAQEQ.mjs.map → chunk-EHWT3WER.mjs.map} +0 -0
  344. /package/out/__chunks__/{chunk-OVDQU4VC.mjs.map → chunk-EVS2OAVI.mjs.map} +0 -0
  345. /package/out/__chunks__/{chunk-HOLYCMSD.mjs.map → chunk-F2UXV2DY.mjs.map} +0 -0
  346. /package/out/__chunks__/{chunk-SKGX7AQR.mjs.map → chunk-FE3NXNR6.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-BLYQZ3AK.mjs.map → chunk-FVHDVMP6.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-YLU2JO7A.mjs.map → chunk-GJYL4HXE.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-PFKDWDRA.mjs.map → chunk-HHGGPCIT.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-2GP5IQEP.mjs.map → chunk-HRTYNOPV.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-XGW2RCOF.mjs.map → chunk-IQNEWWWL.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-GYKFRG4G.mjs.map → chunk-IZMXB463.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-T6YT7SWN.mjs.map → chunk-JJ23PMQB.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-6SIVER36.mjs.map → chunk-JPGDRR3A.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-EFPESRFQ.mjs.map → chunk-JSFAGVXL.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-A5F6KBRA.mjs.map → chunk-KT6OP6QC.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-J2PJZYN7.mjs.map → chunk-KU45KIR2.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-427U5CPN.mjs.map → chunk-LST3XXIJ.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-IB4WJ3BB.mjs.map → chunk-M3S3XSZ7.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-AE67HPX7.mjs.map → chunk-MD5HYIJO.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-Q4K3273X.mjs.map → chunk-MFYHPHET.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-7RNNI3LI.mjs.map → chunk-MMLP7K73.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-AG5FZ7D2.mjs.map → chunk-NA5BUERU.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-5QYT3EHL.mjs.map → chunk-NSF7L6H7.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-6SUMRGIJ.mjs.map → chunk-OCT3B7SK.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-NFJWSGDN.mjs.map → chunk-OEBWA3U7.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-BDYK46XE.mjs.map → chunk-P6XFODV4.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-3XWVDTZU.mjs.map → chunk-PAT5TWYK.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-ZZSCDW7F.mjs.map → chunk-PGY32PLX.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-XOES4EZI.mjs.map → chunk-QEEQRZS6.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-UMIK4KBK.mjs.map → chunk-QIBUEZS3.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-HP2XWN3H.mjs.map → chunk-QYUEIE7N.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-ZEE2PRLQ.mjs.map → chunk-R7SGU5J2.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-M7WN35GY.mjs.map → chunk-RHZYJH4K.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-7PI3RH5C.mjs.map → chunk-RRRK4J56.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-DPO6NAIN.mjs.map → chunk-RZNOYCZT.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-4NCS6I7W.mjs.map → chunk-SBJ5SNMG.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-TMZ5BZOT.mjs.map → chunk-SGGAZCOK.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-DWJNMLII.mjs.map → chunk-SZOPMJSG.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-X66WRHHQ.mjs.map → chunk-TAWCCADM.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-TAMBWEVQ.mjs.map → chunk-TPKK34YE.mjs.map} +0 -0
  382. /package/out/__chunks__/{chunk-WYW7WKVT.mjs.map → chunk-TRQA733J.mjs.map} +0 -0
  383. /package/out/__chunks__/{chunk-XPUAJV6J.mjs.map → chunk-WDFZXGVF.mjs.map} +0 -0
  384. /package/out/__chunks__/{chunk-BFX6KRJB.mjs.map → chunk-WEQQ52VT.mjs.map} +0 -0
  385. /package/out/__chunks__/{chunk-ITZYC6JK.mjs.map → chunk-WM2ARQV6.mjs.map} +0 -0
  386. /package/out/__chunks__/{chunk-DSA7OV2X.mjs.map → chunk-WZLGCBPM.mjs.map} +0 -0
  387. /package/out/__chunks__/{chunk-FZOPS56M.mjs.map → chunk-X5KTEL7F.mjs.map} +0 -0
  388. /package/out/__chunks__/{chunk-JTGLYVXN.mjs.map → chunk-YFO4VEZA.mjs.map} +0 -0
  389. /package/out/__chunks__/{chunk-UBDGFC5C.mjs.map → chunk-YKUDEXLD.mjs.map} +0 -0
  390. /package/out/__chunks__/{chunk-TGGB2GBZ.mjs.map → chunk-YRUQIWQX.mjs.map} +0 -0
  391. /package/out/__chunks__/{chunk-RQ226FTC.mjs.map → chunk-YU6ZFE62.mjs.map} +0 -0
  392. /package/out/__chunks__/{chunk-24HERUCI.mjs.map → chunk-YXC4NJUD.mjs.map} +0 -0
  393. /package/out/__chunks__/{chunk-6LHWOVT5.mjs.map → chunk-YZZYAO7Z.mjs.map} +0 -0
  394. /package/out/__chunks__/{chunk-KH555PP2.mjs.map → chunk-Z2M3TCDN.mjs.map} +0 -0
  395. /package/out/__chunks__/{chunk-5UEXMF4C.mjs.map → chunk-ZRKEA6YR.mjs.map} +0 -0
  396. /package/out/__chunks__/{chunk-4IX36KYO.mjs.map → chunk-ZWOEWFL2.mjs.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-DPO6NAIN.mjs";import{c as n}from"./chunk-Z2ZFJH7M.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
2
- //# sourceMappingURL=chunk-5QYT3EHL.mjs.map
@@ -1,2 +0,0 @@
1
- import{e}from"./chunk-CAA4VJRH.mjs";import{u as o}from"./chunk-Z2ZFJH7M.mjs";import{e as t}from"./chunk-SAAOQW7P.mjs";function m(){let r=t(o());return r?Math.max(1e3,r/2):9e4}export{m as a};
2
- //# sourceMappingURL=chunk-6SUMRGIJ.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-TMZ5BZOT.mjs";var o={async getTransactionsHistory(s){return await t(s)}};export{o as a};
2
- //# sourceMappingURL=chunk-BAX6BDHT.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as o}from"./chunk-Z2ZFJH7M.mjs";import{b as t}from"./chunk-UERJ6AKK.mjs";function c(r=o()){return t(r)}export{c as a};
2
- //# sourceMappingURL=chunk-BDYK46XE.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as o}from"./chunk-Z2ZFJH7M.mjs";import{a as t}from"./chunk-UERJ6AKK.mjs";function n(r=o()){return t(r)}export{n as a};
2
- //# sourceMappingURL=chunk-DSA7OV2X.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as t}from"./chunk-2GP5IQEP.mjs";function S(e){return t()(e)}export{S as a};
2
- //# sourceMappingURL=chunk-FCLLSOVB.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as p}from"./chunk-Y3BNMQFP.mjs";import{b as o,d as c,e as g}from"./chunk-PJWJZHIS.mjs";import{a as m,c as t,e as d}from"./chunk-NTEMINYA.mjs";import{c as u,d as f,e as l}from"./chunk-LHEH7L4L.mjs";import P from"bignumber.js";var I={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function _({minGasLimit:r=String(5e4),gasLimit:e,gasPrice:i,data:k,gasPerDataByte:v,gasPriceModifier:G,defaultGasPrice:h=String(1e9),chainId:a}){let n=k||"",B=c(e)?e:r,L=p({data:n})?5e4:0,T=new P(B).plus(L).toNumber(),y=g(i)?i:h,x=new m({nonce:BigInt(0),value:BigInt(0),receiver:new t(I.to),sender:new t(I.to),gasPrice:BigInt(y),gasLimit:BigInt(T),data:Buffer.from(n.trim()),chainID:a,version:1});try{return new d().computeTransactionFee(x,{gasPerDataByte:BigInt(v),minGasLimit:BigInt(r),gasPriceModifier:parseFloat(G),chainID:a}).toString(10)}catch(s){return console.error(s),o}}export{_ as a};
2
- //# sourceMappingURL=chunk-JAIA24ND.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.ts"],
4
- "sourcesContent": ["import BigNumber from 'bignumber.js';\nimport {\n EXTRA_GAS_LIMIT_GUARDED_TX,\n GAS_LIMIT,\n GAS_PRICE\n} from 'constants/index';\nimport { Transaction, Address, TransactionComputer } from 'lib/sdkCore';\nimport { stringIsFloat, stringIsInteger, ZERO } from 'lib/sdkDappUtils';\nimport { isGuardianTx } from 'utils/transactions/isGuardianTx';\n\nexport interface CalculateFeeLimitType {\n gasLimit: string;\n gasPrice: string;\n data: string;\n gasPerDataByte: string;\n gasPriceModifier: string;\n chainId: string;\n minGasLimit?: string;\n defaultGasPrice?: string;\n}\nconst placeholderData = {\n from: 'erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa',\n to: 'erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa'\n};\nexport function calculateFeeLimit({\n minGasLimit = String(GAS_LIMIT),\n gasLimit,\n gasPrice,\n data: inputData,\n gasPerDataByte,\n gasPriceModifier,\n defaultGasPrice = String(GAS_PRICE),\n chainId\n}: CalculateFeeLimitType) {\n const data = inputData || '';\n const validGasLimit = stringIsInteger(gasLimit) ? gasLimit : minGasLimit;\n\n // We need to add extra gas fee for guardian transactions\n const extraGasLimit = isGuardianTx({ data }) ? EXTRA_GAS_LIMIT_GUARDED_TX : 0;\n const usedGasLimit = new BigNumber(validGasLimit)\n .plus(extraGasLimit)\n .toNumber();\n\n const validGasPrice = stringIsFloat(gasPrice) ? gasPrice : defaultGasPrice;\n const transaction = new Transaction({\n nonce: BigInt(0),\n value: BigInt(0),\n receiver: new Address(placeholderData.to),\n sender: new Address(placeholderData.to),\n gasPrice: BigInt(validGasPrice),\n gasLimit: BigInt(usedGasLimit),\n data: Buffer.from(data.trim()),\n chainID: chainId,\n version: 1\n });\n\n try {\n const transactionComputer = new TransactionComputer();\n const bNfee = transactionComputer.computeTransactionFee(transaction, {\n gasPerDataByte: BigInt(gasPerDataByte),\n minGasLimit: BigInt(minGasLimit),\n gasPriceModifier: parseFloat(gasPriceModifier),\n chainID: chainId\n });\n return bNfee.toString(10);\n } catch (err) {\n console.error(err);\n return ZERO;\n }\n}\n"],
5
- "mappings": "8MAAA,OAAOA,MAAe,eAoBtB,IAAMC,EAAkB,CACtB,KAAM,iEACN,GAAI,gEACN,EACO,SAASC,EAAkB,CAChC,YAAAC,EAAc,OAAO,GAAS,EAC9B,SAAAC,EACA,SAAAC,EACA,KAAMC,EACN,eAAAC,EACA,iBAAAC,EACA,gBAAAC,EAAkB,OAAO,GAAS,EAClC,QAAAC,CACF,EAA0B,CACxB,IAAMC,EAAOL,GAAa,GACpBM,EAAgBC,EAAgBT,CAAQ,EAAIA,EAAWD,EAGvDW,EAAgBC,EAAa,CAAE,KAAAJ,CAAK,CAAC,EAAI,IAA6B,EACtEK,EAAe,IAAIC,EAAUL,CAAa,EAC7C,KAAKE,CAAa,EAClB,SAAS,EAENI,EAAgBC,EAAcd,CAAQ,EAAIA,EAAWI,EACrDW,EAAc,IAAIC,EAAY,CAClC,MAAO,OAAO,CAAC,EACf,MAAO,OAAO,CAAC,EACf,SAAU,IAAIC,EAAQrB,EAAgB,EAAE,EACxC,OAAQ,IAAIqB,EAAQrB,EAAgB,EAAE,EACtC,SAAU,OAAOiB,CAAa,EAC9B,SAAU,OAAOF,CAAY,EAC7B,KAAM,OAAO,KAAKL,EAAK,KAAK,CAAC,EAC7B,QAASD,EACT,QAAS,CACX,CAAC,EAED,GAAI,CAQF,OAP4B,IAAIa,EAAoB,EAClB,sBAAsBH,EAAa,CACnE,eAAgB,OAAOb,CAAc,EACrC,YAAa,OAAOJ,CAAW,EAC/B,iBAAkB,WAAWK,CAAgB,EAC7C,QAASE,CACX,CAAC,EACY,SAAS,EAAE,CAC1B,OAASc,EAAK,CACZ,eAAQ,MAAMA,CAAG,EACVC,CACT,CACF",
6
- "names": ["BigNumber", "placeholderData", "calculateFeeLimit", "minGasLimit", "gasLimit", "gasPrice", "inputData", "gasPerDataByte", "gasPriceModifier", "defaultGasPrice", "chainId", "data", "validGasLimit", "stringIsInteger", "extraGasLimit", "isGuardianTx", "usedGasLimit", "BigNumber", "validGasPrice", "stringIsFloat", "transaction", "Transaction", "Address", "TransactionComputer", "err", "ZERO"]
7
- }
@@ -1,2 +0,0 @@
1
- import{u as e}from"./chunk-Z2ZFJH7M.mjs";import{f as t}from"./chunk-UERJ6AKK.mjs";function n(o=e()){return t(o)}export{n as a};
2
- //# sourceMappingURL=chunk-O5DNWY4U.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as t}from"./chunk-Z2ZFJH7M.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";function g(r=t()){return e(r).egldLabel}export{g as a};
2
- //# sourceMappingURL=chunk-PFKDWDRA.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as w}from"./chunk-V4HIQSD2.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as y}from"./chunk-HP2XWN3H.mjs";import{h as l}from"./chunk-CAA4VJRH.mjs";import{b as S}from"./chunk-3ZEUVYQF.mjs";import{a as f}from"./chunk-SKGX7AQR.mjs";import{a as g}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-DSA7OV2X.mjs";import{u as d}from"./chunk-Z2ZFJH7M.mjs";import{b as p}from"./chunk-SAAOQW7P.mjs";import{e as T}from"./chunk-NTEMINYA.mjs";import A from"axios";var o=class o{constructor(){this.setCallbacks=({onSuccess:a,onFail:t})=>{S({onSuccess:a,onFail:t})};this.send=async a=>{if(a.length===0)throw new Error("No transactions to send");try{if(!I(a))return await this.sendSignedTransactions(a);let t=await this.sendSignedBatchTransactions(a);if(!t.data||t.data.error)throw new Error(t.data?.error??"Failed to send transactions");return t.data.transactions}catch(t){throw t.response?.data?.message??t.message}};this.track=async(a,t={disableToasts:!1})=>{let n=this.sequentialToFlatArray(a).map(i=>({...i,status:i.status??"pending"})),e=g(n),s=f({transactions:n,transactionsDisplayInfo:t.transactionsDisplayInfo,status:e??"sent",sessionInformation:t.sessionInformation});if(t.disableToasts===!0)return s;let c=w(a);return y({toastId:s,totalDuration:c}),s};this.sendSignedTransactions=async a=>{let{apiAddress:t,apiTimeout:n}=p(d()),e=a.map(r=>A.post(`${t}/transactions`,r.toPlainObject(),{timeout:Number(n)})),s=await Promise.all(e),c=new T;return s.map(({data:r})=>({...a.find(x=>c.computeTransactionHash(x)===r.txHash)?.toPlainObject(),...r,status:"pending",hash:r.txHash}))};this.sendSignedBatchTransactions=async a=>{let{address:t}=h(),{apiAddress:n,apiTimeout:e}=p(d());if(!t)return{error:"Invalid address provided. You need to be logged in to send transactions"};let s=this.buildBatchId(t),i={transactions:a.map(m=>m.map(u=>this.parseSignedTransaction(u))),id:s},{data:r}=await A.post(`${n}/batch`,i,{timeout:Number(e)});return{data:r}};this.buildBatchId=a=>`${Date.now().toString()}${l}${a}`;this.sequentialToFlatArray=(a=[])=>this.getIsSequential(a)?a.flat():a;this.getIsSequential=a=>a?.every(t=>Array.isArray(t));this.parseSignedTransaction=a=>{let t=new T,n={...a.toPlainObject(),hash:t.computeTransactionHash(a),status:"pending"};return b({data:n.data})&&(delete n.senderUsername,delete n.receiverUsername),n}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};o.instance=null;var v=o;export{v as a};
2
- //# sourceMappingURL=chunk-PIRUXLWE.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/managers/TransactionManager/TransactionManager.ts"],
4
- "sourcesContent": ["import axios, { AxiosError } from 'axios';\nimport { BATCH_TRANSACTIONS_ID_SEPARATOR } from 'constants/transactions.constants';\nimport { Transaction, TransactionComputer } from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport { TransactionTrackingConfigType } from 'methods/initApp/initApp.types';\nimport { addTransactionToast } from 'store/actions/toasts/toastsActions';\nimport { createTransactionsSession } from 'store/actions/transactions/transactionsActions';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { BatchTransactionsResponseType } from 'types/serverTransactions.types';\nimport { SignedTransactionType } from 'types/transactions.types';\nimport { isGuardianTx } from 'utils/transactions/isGuardianTx';\nimport { getToastDuration } from './helpers/getToastDuration';\nimport { getTransactionsSessionStatus } from './helpers/getTransactionsStatus';\nimport { isBatchTransaction } from './helpers/isBatchTransaction';\nimport { registerSessionCallbacks } from './helpers/sessionCallbacks';\nimport { TransactionManagerTrackOptionsType } from './TransactionManager.types';\n\nexport class TransactionManager {\n private static instance: TransactionManager | null = null;\n\n public static getInstance(): TransactionManager {\n if (!TransactionManager.instance) {\n TransactionManager.instance = new TransactionManager();\n }\n return TransactionManager.instance;\n }\n\n /**\n * Set callbacks to be executed when the transaction session is successful or fails.\n * @param onSuccess - The callback to run when the transaction session is successful.\n * @param onFail - The callback to run when the transaction session fails.\n * @example\n * ```ts\n * TransactionManager.setCallbacks({\n * onSuccess: (sessionId) => {\n * console.log('Transaction session successful', sessionId);\n * },\n * });\n */\n public setCallbacks = ({\n onSuccess,\n onFail\n }: TransactionTrackingConfigType) => {\n registerSessionCallbacks({ onSuccess, onFail });\n };\n\n public send = async (\n signedTransactions: Transaction[] | Transaction[][]\n ): Promise<SignedTransactionType[] | SignedTransactionType[][]> => {\n if (signedTransactions.length === 0) {\n throw new Error('No transactions to send');\n }\n\n try {\n if (!isBatchTransaction(signedTransactions)) {\n const flatTransactions =\n await this.sendSignedTransactions(signedTransactions);\n\n return flatTransactions;\n }\n\n const sentTransactions =\n await this.sendSignedBatchTransactions(signedTransactions);\n\n if (!sentTransactions.data || sentTransactions.data.error) {\n throw new Error(\n sentTransactions.data?.error ?? 'Failed to send transactions'\n );\n }\n\n const groupedTransactions = sentTransactions.data.transactions;\n\n return groupedTransactions;\n } catch (error) {\n const responseData = <{ message: string }>(\n (error as AxiosError).response?.data\n );\n throw responseData?.message ?? (error as any).message;\n }\n };\n\n public track = async (\n sentTransactions: SignedTransactionType[] | SignedTransactionType[][],\n options: TransactionManagerTrackOptionsType = { disableToasts: false }\n ): Promise<string> => {\n const flatTransactions = this.sequentialToFlatArray(sentTransactions).map(\n (transaction) => ({\n ...transaction,\n status: transaction.status ?? TransactionServerStatusesEnum.pending\n })\n );\n\n const status = getTransactionsSessionStatus(flatTransactions);\n\n const sessionId = createTransactionsSession({\n transactions: flatTransactions,\n transactionsDisplayInfo: options.transactionsDisplayInfo,\n status: status ?? TransactionBatchStatusesEnum.sent,\n sessionInformation: options.sessionInformation\n });\n\n if (options.disableToasts === true) {\n return sessionId;\n }\n\n const totalDuration = getToastDuration(sentTransactions);\n addTransactionToast({\n toastId: sessionId,\n totalDuration\n });\n\n return sessionId;\n };\n\n private readonly sendSignedTransactions = async (\n signedTransactions: Transaction[]\n ): Promise<SignedTransactionType[]> => {\n const { apiAddress, apiTimeout } = networkSelector(getState());\n\n const promises = signedTransactions.map((transaction) =>\n axios.post(`${apiAddress}/transactions`, transaction.toPlainObject(), {\n timeout: Number(apiTimeout)\n })\n );\n\n const response = await Promise.all(promises);\n const transactionComputer = new TransactionComputer();\n\n const mergedTransactions = response.map(({ data }) => {\n const foundTransaction = signedTransactions.find((tx) => {\n const txHash = transactionComputer.computeTransactionHash(tx);\n return txHash === data.txHash;\n });\n\n const currentTransaction = {\n ...foundTransaction?.toPlainObject(),\n ...data,\n status: TransactionServerStatusesEnum.pending,\n hash: data.txHash\n };\n\n return currentTransaction;\n });\n\n return mergedTransactions;\n };\n\n private readonly sendSignedBatchTransactions = async (\n signedTransactions: Transaction[][]\n ) => {\n const { address } = getAccount();\n const { apiAddress, apiTimeout } = networkSelector(getState());\n\n if (!address) {\n return {\n error:\n 'Invalid address provided. You need to be logged in to send transactions'\n };\n }\n\n const batchId = this.buildBatchId(address);\n const parsedTransactions = signedTransactions.map((transactions) =>\n transactions.map((transaction) =>\n this.parseSignedTransaction(transaction)\n )\n );\n\n const payload = {\n transactions: parsedTransactions,\n id: batchId\n };\n\n const { data } = await axios.post<BatchTransactionsResponseType>(\n `${apiAddress}/batch`,\n payload,\n {\n timeout: Number(apiTimeout)\n }\n );\n\n return { data };\n };\n\n private readonly buildBatchId = (address: string) => {\n const sessionId = Date.now().toString();\n return `${sessionId}${BATCH_TRANSACTIONS_ID_SEPARATOR}${address}`;\n };\n private readonly sequentialToFlatArray = (\n transactions: SignedTransactionType[] | SignedTransactionType[][] = []\n ) =>\n this.getIsSequential(transactions)\n ? transactions.flat()\n : (transactions as SignedTransactionType[]);\n\n private readonly getIsSequential = (\n transactions?: SignedTransactionType[] | SignedTransactionType[][]\n ) => transactions?.every((transaction) => Array.isArray(transaction));\n\n private readonly parseSignedTransaction = (\n signedTransaction: Transaction\n ): SignedTransactionType => {\n const transactionComputer = new TransactionComputer();\n\n const parsedTransaction = {\n ...signedTransaction.toPlainObject(),\n hash: transactionComputer.computeTransactionHash(signedTransaction),\n status: TransactionServerStatusesEnum.pending\n };\n\n // Remove when the protocol supports usernames for guardian transactions\n if (isGuardianTx({ data: parsedTransaction.data })) {\n delete parsedTransaction.senderUsername;\n delete parsedTransaction.receiverUsername;\n }\n\n return parsedTransaction;\n };\n}\n"],
5
- "mappings": "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",
6
- "names": ["axios", "_TransactionManager", "onSuccess", "onFail", "registerSessionCallbacks", "signedTransactions", "isBatchTransaction", "sentTransactions", "error", "options", "flatTransactions", "transaction", "status", "getTransactionsSessionStatus", "sessionId", "createTransactionsSession", "totalDuration", "getToastDuration", "addTransactionToast", "apiAddress", "apiTimeout", "networkSelector", "getState", "promises", "axios", "response", "transactionComputer", "TransactionComputer", "data", "tx", "address", "getAccount", "batchId", "payload", "transactions", "BATCH_TRANSACTIONS_ID_SEPARATOR", "signedTransaction", "parsedTransaction", "isGuardianTx", "TransactionManager"]
7
- }
@@ -1,2 +0,0 @@
1
- import{s as n}from"./chunk-Z2ZFJH7M.mjs";import{b as t}from"./chunk-UTWIKUIK.mjs";var c=a=>t(`transaction-${a}`)(n().getState())??null;export{c as a};
2
- //# sourceMappingURL=chunk-QEEDUPWM.mjs.map
@@ -1,2 +0,0 @@
1
- import{s as e}from"./chunk-Z2ZFJH7M.mjs";var o=t=>e().setState(({ui:n})=>{n.isSidePanelOpen=t},!1,"setIsSidePanelOpen");export{o as a};
2
- //# sourceMappingURL=chunk-RZIJVETL.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as e}from"./chunk-Z2ZFJH7M.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";function d(t=e()){return r(t).explorerAddress}export{d as a};
2
- //# sourceMappingURL=chunk-SSAPDI4J.mjs.map
@@ -1,2 +0,0 @@
1
- import{a as o}from"./chunk-JHX7G7CK.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{u as n}from"./chunk-Z2ZFJH7M.mjs";async function f(){let t=s(n());if(Object.keys(t).length>0)for(let[e,{transactions:c}]of Object.entries(t))await o({sessionId:e,transactionBatch:c})}export{f as a};
2
- //# sourceMappingURL=chunk-SSRQGUCG.mjs.map
@@ -1,2 +0,0 @@
1
- import{u as t}from"./chunk-Z2ZFJH7M.mjs";import{c as r}from"./chunk-UERJ6AKK.mjs";function m(e=t()){return r(e)}export{m as a};
2
- //# sourceMappingURL=chunk-XF4GSZXO.mjs.map
@@ -1,2 +0,0 @@
1
- import{a}from"./chunk-5JCA5OZE.mjs";var o=()=>a.localStorage;export{o as a};
2
- //# sourceMappingURL=chunk-XGW2RCOF.mjs.map