@multiversx/sdk-dapp 5.1.10 → 5.2.1
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.
- package/README.md +1 -0
- package/out/__chunks__/{chunk-JFOYQVDZ.mjs → chunk-32ZBY2AE.mjs} +2 -2
- package/out/__chunks__/{chunk-TT5VL5H4.mjs → chunk-34ZJZYMC.mjs} +2 -2
- package/out/__chunks__/chunk-3JEK5A62.mjs +2 -0
- package/out/__chunks__/chunk-3MW2H273.mjs +2 -0
- package/out/__chunks__/{chunk-TPJ7WT4J.mjs.map → chunk-3MW2H273.mjs.map} +1 -1
- package/out/__chunks__/{chunk-DMBZGJ6Q.mjs → chunk-4G2T73DC.mjs} +2 -2
- package/out/__chunks__/{chunk-R6GH7DA7.mjs → chunk-4LTMFD6V.mjs} +2 -2
- package/out/__chunks__/{chunk-S4VD34VQ.mjs → chunk-4NQ35FCJ.mjs} +2 -2
- package/out/__chunks__/{chunk-K4TMKMCO.mjs → chunk-57P66SOT.mjs} +2 -2
- package/out/__chunks__/{chunk-ZJ47ZJGM.mjs → chunk-5JVY6GJC.mjs} +2 -2
- package/out/__chunks__/chunk-5LFB2H3K.mjs +2 -0
- package/out/__chunks__/{chunk-EPG3L2S3.mjs → chunk-5PGKBWB6.mjs} +2 -2
- package/out/__chunks__/chunk-5UYF2YJN.mjs +2 -0
- package/out/__chunks__/{chunk-43DVKBLZ.mjs → chunk-5VSKEHYA.mjs} +2 -2
- package/out/__chunks__/chunk-5W77GYVQ.mjs +2 -0
- package/out/__chunks__/{chunk-CRMKEEKH.mjs → chunk-62QLCUQH.mjs} +2 -2
- package/out/__chunks__/{chunk-BPIDBLI4.mjs → chunk-6FPG2OTI.mjs} +2 -2
- package/out/__chunks__/{chunk-ZORPCBON.mjs → chunk-7JATWFXB.mjs} +2 -2
- package/out/__chunks__/chunk-7Z665D57.mjs +2 -0
- package/out/__chunks__/{chunk-VDMJZZU4.mjs → chunk-AJC3F2YT.mjs} +1 -1
- package/out/__chunks__/{chunk-VDMJZZU4.mjs.map → chunk-AJC3F2YT.mjs.map} +1 -1
- package/out/__chunks__/{chunk-NMISWSIO.mjs → chunk-AMS6KZTC.mjs} +2 -2
- package/out/__chunks__/chunk-AS7XXEHY.mjs +2 -0
- package/out/__chunks__/chunk-AS7XXEHY.mjs.map +7 -0
- package/out/__chunks__/{chunk-FT5G3VJ5.mjs → chunk-B5K6T6DF.mjs} +2 -2
- package/out/__chunks__/{chunk-TX4NQXZO.mjs → chunk-BBCLPJC4.mjs} +2 -2
- package/out/__chunks__/{chunk-CD7RYHHQ.mjs → chunk-BKVZCTUG.mjs} +2 -2
- package/out/__chunks__/chunk-C3Y3ANFE.mjs +2 -0
- package/out/__chunks__/chunk-C3Y3ANFE.mjs.map +7 -0
- package/out/__chunks__/chunk-CGLVVKZU.mjs +2 -0
- package/out/__chunks__/chunk-CTITNRKA.mjs +2 -0
- package/out/__chunks__/{chunk-DOLG56CN.mjs → chunk-DE6O7BFR.mjs} +2 -2
- package/out/__chunks__/{chunk-5G5ETZM4.mjs → chunk-DGMI66QS.mjs} +1 -1
- package/out/__chunks__/{chunk-5G5ETZM4.mjs.map → chunk-DGMI66QS.mjs.map} +1 -1
- package/out/__chunks__/{chunk-HESE5NRU.mjs → chunk-DHTRPE3R.mjs} +2 -2
- package/out/__chunks__/{chunk-AVWNBQDX.mjs → chunk-DZ5FL2WV.mjs} +2 -2
- package/out/__chunks__/{chunk-BPVF6WD4.mjs → chunk-EIOADZ47.mjs} +2 -2
- package/out/__chunks__/{chunk-E6WW5OHD.mjs → chunk-EP4OBHW4.mjs} +2 -2
- package/out/__chunks__/{chunk-667PINAR.mjs → chunk-EPMKXFFR.mjs} +2 -2
- package/out/__chunks__/{chunk-BIVZJPSH.mjs → chunk-GB2K574L.mjs} +1 -1
- package/out/__chunks__/{chunk-BIVZJPSH.mjs.map → chunk-GB2K574L.mjs.map} +1 -1
- package/out/__chunks__/{chunk-JNEQJC3B.mjs → chunk-GYYCA57F.mjs} +2 -2
- package/out/__chunks__/{chunk-NX6LPULJ.mjs → chunk-H2EFE4NU.mjs} +2 -2
- package/out/__chunks__/{chunk-UBZGPJ3E.mjs → chunk-HEA7NFOF.mjs} +2 -2
- package/out/__chunks__/chunk-HSYMR5UW.mjs +2 -0
- package/out/__chunks__/{chunk-DXTUMMVX.mjs → chunk-IGTIIBN6.mjs} +2 -2
- package/out/__chunks__/{chunk-ALPIQGXL.mjs → chunk-IJKCH7CT.mjs} +2 -2
- package/out/__chunks__/{chunk-QMY5RUJ3.mjs → chunk-IPIX74CB.mjs} +2 -2
- package/out/__chunks__/{chunk-NQTTC42T.mjs → chunk-IV4LWBR3.mjs} +2 -2
- package/out/__chunks__/chunk-IYVM5B26.mjs +2 -0
- package/out/__chunks__/{chunk-PYHZTCM4.mjs → chunk-JIKCHL57.mjs} +2 -2
- package/out/__chunks__/{chunk-OXHTDT7J.mjs → chunk-JV4IJH7L.mjs} +2 -2
- package/out/__chunks__/chunk-K3OKY7NL.mjs +2 -0
- package/out/__chunks__/{chunk-C53VPXWP.mjs → chunk-N2KEJEOD.mjs} +2 -2
- package/out/__chunks__/{chunk-7YHUOWFV.mjs → chunk-NE4YNYCQ.mjs} +2 -2
- package/out/__chunks__/{chunk-3AQIQDPA.mjs → chunk-O6RJHMIJ.mjs} +2 -2
- package/out/__chunks__/chunk-O72VJVJC.mjs +2 -0
- package/out/__chunks__/{chunk-UAEUFVGE.mjs → chunk-OFU3D2KB.mjs} +2 -2
- package/out/__chunks__/{chunk-Y4QDT6I2.mjs → chunk-OHHNQ66F.mjs} +2 -2
- package/out/__chunks__/{chunk-6YCGOXOL.mjs → chunk-OLOOCCNU.mjs} +2 -2
- package/out/__chunks__/{chunk-FPBY3DHR.mjs → chunk-OMZ6A4DO.mjs} +2 -2
- package/out/__chunks__/{chunk-VF75NE7S.mjs → chunk-OPX7XWAC.mjs} +2 -2
- package/out/__chunks__/{chunk-JB3LG75C.mjs → chunk-OXPZVCKM.mjs} +2 -2
- package/out/__chunks__/{chunk-QJW6PYFV.mjs → chunk-OYCDHRNS.mjs} +2 -2
- package/out/__chunks__/{chunk-IPYKRZ2A.mjs → chunk-PGGSHHQJ.mjs} +2 -2
- package/out/__chunks__/chunk-PKD3AEXI.mjs +1 -0
- package/out/__chunks__/{chunk-YY724VZR.mjs → chunk-PZHQ37I6.mjs} +2 -2
- package/out/__chunks__/chunk-QB4NUTLA.mjs +2 -0
- package/out/__chunks__/{chunk-3T75EERX.mjs → chunk-QVGM6655.mjs} +2 -2
- package/out/__chunks__/{chunk-AI7UKECA.mjs → chunk-R6QKRGY5.mjs} +2 -2
- package/out/__chunks__/{chunk-44FB23KP.mjs → chunk-R7667VN6.mjs} +2 -2
- package/out/__chunks__/chunk-R76CQZZH.mjs +2 -0
- package/out/__chunks__/{chunk-IYMSWFCP.mjs → chunk-RYOUAM3L.mjs} +2 -2
- package/out/__chunks__/{chunk-NWSFXZMR.mjs → chunk-SBOOJTIB.mjs} +2 -2
- package/out/__chunks__/{chunk-J6R2XFXZ.mjs → chunk-SG5YZ37N.mjs} +2 -2
- package/out/__chunks__/chunk-SMFNVU6B.mjs +2 -0
- package/out/__chunks__/chunk-SMFNVU6B.mjs.map +7 -0
- package/out/__chunks__/chunk-SYWFZFFJ.mjs +2 -0
- package/out/__chunks__/{chunk-XQWEAEGW.mjs → chunk-TASSEE6N.mjs} +2 -2
- package/out/__chunks__/chunk-TSBH5KYD.mjs +2 -0
- package/out/__chunks__/{chunk-OLMTXXEH.mjs → chunk-TZJL7CZF.mjs} +2 -2
- package/out/__chunks__/{chunk-MXEJ6NB4.mjs → chunk-UN2MEJKC.mjs} +2 -2
- package/out/__chunks__/chunk-UN2MEJKC.mjs.map +7 -0
- package/out/__chunks__/{chunk-YRXESD4B.mjs → chunk-VNMU246H.mjs} +2 -2
- package/out/__chunks__/{chunk-YRXESD4B.mjs.map → chunk-VNMU246H.mjs.map} +1 -1
- package/out/__chunks__/{chunk-QDT3NABZ.mjs → chunk-W75ZD7BB.mjs} +2 -2
- package/out/__chunks__/chunk-WAM7WNSA.mjs +2 -0
- package/out/__chunks__/{chunk-A6TCEIG4.mjs → chunk-WLXKUUZ3.mjs} +2 -2
- package/out/__chunks__/{chunk-C7IGU65A.mjs → chunk-WQAFFPAS.mjs} +2 -2
- package/out/__chunks__/chunk-WVZRN2HX.mjs +2 -0
- package/out/__chunks__/{chunk-RF5IAADG.mjs.map → chunk-WVZRN2HX.mjs.map} +1 -1
- package/out/__chunks__/{chunk-PJNZSN57.mjs → chunk-X5IHXBJ3.mjs} +2 -2
- package/out/__chunks__/{chunk-SAV2LFBH.mjs → chunk-XI2BWIQP.mjs} +2 -2
- package/out/__chunks__/{chunk-5DP2QBUG.mjs → chunk-XU34NXIS.mjs} +2 -2
- package/out/__chunks__/{chunk-5MMHERWI.mjs → chunk-XV2BD67Y.mjs} +2 -2
- package/out/__chunks__/{chunk-GIZJB7FR.mjs → chunk-ZEJRHV7U.mjs} +2 -2
- package/out/__chunks__/{chunk-FY7XZQRH.mjs → chunk-ZHGONRBM.mjs} +2 -2
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.cjs +2 -2
- package/out/managers/LogoutManager/LogoutManager.cjs.map +2 -2
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +4 -4
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs.map +2 -2
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/ToastManager.cjs +8 -8
- package/out/managers/{internal/ToastManager → ToastManager}/ToastManager.cjs.map +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/ToastManager.d.ts +8 -8
- package/out/managers/ToastManager/ToastManager.mjs +2 -0
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/LifetimeManager.cjs +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/LifetimeManager.cjs.map +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +2 -0
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/createToastsFromTransactions.cjs +4 -4
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/createToastsFromTransactions.cjs.map +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/createToastsFromTransactions.d.ts +3 -3
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +2 -0
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/createTransactionToast.cjs +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/createTransactionToast.cjs.map +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/createTransactionToast.d.ts +3 -3
- package/out/managers/ToastManager/helpers/createTransactionToast.mjs +2 -0
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/getToastDataStateByStatus.cjs +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/getToastDataStateByStatus.cjs.map +1 -1
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.mjs +2 -0
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/getToastTransactionsStatus.cjs +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/getToastTransactionsStatus.cjs.map +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/helpers/getToastTransactionsStatus.d.ts +1 -1
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.mjs +2 -0
- package/out/managers/ToastManager/helpers/tests/baseTransactionMock.d.ts +2 -0
- package/out/managers/ToastManager/index.cjs +23 -0
- package/out/managers/ToastManager/index.cjs.map +7 -0
- package/out/managers/ToastManager/index.d.ts +1 -0
- package/out/managers/ToastManager/index.mjs +2 -0
- package/out/managers/{internal/ToastManager → ToastManager}/types/index.cjs.map +1 -1
- package/out/managers/ToastManager/types/index.mjs +2 -0
- package/out/managers/{internal/ToastManager → ToastManager}/types/toast.types.cjs.map +1 -1
- package/out/managers/{internal/ToastManager → ToastManager}/types/toast.types.d.ts +3 -3
- package/out/managers/ToastManager/types/toast.types.mjs +2 -0
- package/out/managers/ToastManager/types/toast.types.mjs.map +7 -0
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +2 -2
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs.map +2 -2
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.cjs +0 -3
- package/out/managers/internal/index.cjs.map +2 -2
- package/out/managers/internal/index.d.ts +0 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.cjs +1 -1
- package/out/methods/initApp/initApp.cjs.map +2 -2
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.mjs.map +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs.map +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +5 -5
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +2 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.cjs +7 -0
- package/out/store/actions/transactions/transactionsActions.cjs.map +2 -2
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +2 -2
- package/out/__chunks__/chunk-2NXPS7R3.mjs +0 -2
- package/out/__chunks__/chunk-32WMC3HQ.mjs +0 -2
- package/out/__chunks__/chunk-33ZUFX42.mjs +0 -2
- package/out/__chunks__/chunk-4HEYQZNL.mjs +0 -2
- package/out/__chunks__/chunk-4Z7G5RCK.mjs +0 -2
- package/out/__chunks__/chunk-6CY7XXBE.mjs +0 -2
- package/out/__chunks__/chunk-DTSAE3IB.mjs +0 -2
- package/out/__chunks__/chunk-DTSAE3IB.mjs.map +0 -7
- package/out/__chunks__/chunk-JD3WTXPU.mjs +0 -2
- package/out/__chunks__/chunk-JFX27ZGH.mjs +0 -2
- package/out/__chunks__/chunk-KKBWOSVH.mjs +0 -2
- package/out/__chunks__/chunk-KYBNCMQL.mjs +0 -2
- package/out/__chunks__/chunk-MXEJ6NB4.mjs.map +0 -7
- package/out/__chunks__/chunk-NL5FA7NT.mjs +0 -2
- package/out/__chunks__/chunk-NL5FA7NT.mjs.map +0 -7
- package/out/__chunks__/chunk-RBJ3O63I.mjs +0 -2
- package/out/__chunks__/chunk-RBJ3O63I.mjs.map +0 -7
- package/out/__chunks__/chunk-RF5IAADG.mjs +0 -2
- package/out/__chunks__/chunk-RPNTVD3R.mjs +0 -2
- package/out/__chunks__/chunk-RRKJBSXY.mjs +0 -2
- package/out/__chunks__/chunk-SCSHU7XJ.mjs +0 -1
- package/out/__chunks__/chunk-TPJ7WT4J.mjs +0 -2
- package/out/__chunks__/chunk-UHQDTMYM.mjs +0 -2
- package/out/__chunks__/chunk-XBJKQBW3.mjs +0 -2
- package/out/__chunks__/chunk-YRRWYFH3.mjs +0 -2
- package/out/__chunks__/chunk-YUD55T7W.mjs +0 -2
- package/out/managers/internal/ToastManager/ToastManager.mjs +0 -2
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +0 -2
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +0 -2
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +0 -2
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.mjs +0 -2
- package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.mjs +0 -2
- package/out/managers/internal/ToastManager/helpers/tests/baseTransactionMock.d.ts +0 -2
- package/out/managers/internal/ToastManager/types/index.mjs +0 -2
- package/out/managers/internal/ToastManager/types/toast.types.mjs +0 -2
- /package/out/__chunks__/{chunk-JFOYQVDZ.mjs.map → chunk-32ZBY2AE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TT5VL5H4.mjs.map → chunk-34ZJZYMC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2NXPS7R3.mjs.map → chunk-3JEK5A62.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DMBZGJ6Q.mjs.map → chunk-4G2T73DC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R6GH7DA7.mjs.map → chunk-4LTMFD6V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S4VD34VQ.mjs.map → chunk-4NQ35FCJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K4TMKMCO.mjs.map → chunk-57P66SOT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZJ47ZJGM.mjs.map → chunk-5JVY6GJC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KYBNCMQL.mjs.map → chunk-5LFB2H3K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EPG3L2S3.mjs.map → chunk-5PGKBWB6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UHQDTMYM.mjs.map → chunk-5UYF2YJN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-43DVKBLZ.mjs.map → chunk-5VSKEHYA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KKBWOSVH.mjs.map → chunk-5W77GYVQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CRMKEEKH.mjs.map → chunk-62QLCUQH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BPIDBLI4.mjs.map → chunk-6FPG2OTI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZORPCBON.mjs.map → chunk-7JATWFXB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4Z7G5RCK.mjs.map → chunk-7Z665D57.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NMISWSIO.mjs.map → chunk-AMS6KZTC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FT5G3VJ5.mjs.map → chunk-B5K6T6DF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TX4NQXZO.mjs.map → chunk-BBCLPJC4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CD7RYHHQ.mjs.map → chunk-BKVZCTUG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4HEYQZNL.mjs.map → chunk-CGLVVKZU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JD3WTXPU.mjs.map → chunk-CTITNRKA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DOLG56CN.mjs.map → chunk-DE6O7BFR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HESE5NRU.mjs.map → chunk-DHTRPE3R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AVWNBQDX.mjs.map → chunk-DZ5FL2WV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BPVF6WD4.mjs.map → chunk-EIOADZ47.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E6WW5OHD.mjs.map → chunk-EP4OBHW4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-667PINAR.mjs.map → chunk-EPMKXFFR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JNEQJC3B.mjs.map → chunk-GYYCA57F.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NX6LPULJ.mjs.map → chunk-H2EFE4NU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UBZGPJ3E.mjs.map → chunk-HEA7NFOF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-32WMC3HQ.mjs.map → chunk-HSYMR5UW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DXTUMMVX.mjs.map → chunk-IGTIIBN6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ALPIQGXL.mjs.map → chunk-IJKCH7CT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QMY5RUJ3.mjs.map → chunk-IPIX74CB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NQTTC42T.mjs.map → chunk-IV4LWBR3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XBJKQBW3.mjs.map → chunk-IYVM5B26.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PYHZTCM4.mjs.map → chunk-JIKCHL57.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OXHTDT7J.mjs.map → chunk-JV4IJH7L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-33ZUFX42.mjs.map → chunk-K3OKY7NL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C53VPXWP.mjs.map → chunk-N2KEJEOD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7YHUOWFV.mjs.map → chunk-NE4YNYCQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3AQIQDPA.mjs.map → chunk-O6RJHMIJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RPNTVD3R.mjs.map → chunk-O72VJVJC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UAEUFVGE.mjs.map → chunk-OFU3D2KB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y4QDT6I2.mjs.map → chunk-OHHNQ66F.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6YCGOXOL.mjs.map → chunk-OLOOCCNU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FPBY3DHR.mjs.map → chunk-OMZ6A4DO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VF75NE7S.mjs.map → chunk-OPX7XWAC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JB3LG75C.mjs.map → chunk-OXPZVCKM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QJW6PYFV.mjs.map → chunk-OYCDHRNS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IPYKRZ2A.mjs.map → chunk-PGGSHHQJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SCSHU7XJ.mjs.map → chunk-PKD3AEXI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YY724VZR.mjs.map → chunk-PZHQ37I6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6CY7XXBE.mjs.map → chunk-QB4NUTLA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3T75EERX.mjs.map → chunk-QVGM6655.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AI7UKECA.mjs.map → chunk-R6QKRGY5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-44FB23KP.mjs.map → chunk-R7667VN6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JFX27ZGH.mjs.map → chunk-R76CQZZH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IYMSWFCP.mjs.map → chunk-RYOUAM3L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NWSFXZMR.mjs.map → chunk-SBOOJTIB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J6R2XFXZ.mjs.map → chunk-SG5YZ37N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RRKJBSXY.mjs.map → chunk-SYWFZFFJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XQWEAEGW.mjs.map → chunk-TASSEE6N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRRWYFH3.mjs.map → chunk-TSBH5KYD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OLMTXXEH.mjs.map → chunk-TZJL7CZF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QDT3NABZ.mjs.map → chunk-W75ZD7BB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YUD55T7W.mjs.map → chunk-WAM7WNSA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A6TCEIG4.mjs.map → chunk-WLXKUUZ3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C7IGU65A.mjs.map → chunk-WQAFFPAS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PJNZSN57.mjs.map → chunk-X5IHXBJ3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SAV2LFBH.mjs.map → chunk-XI2BWIQP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5DP2QBUG.mjs.map → chunk-XU34NXIS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5MMHERWI.mjs.map → chunk-XV2BD67Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GIZJB7FR.mjs.map → chunk-ZEJRHV7U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FY7XZQRH.mjs.map → chunk-ZHGONRBM.mjs.map} +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/ToastManager.mjs.map +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/helpers/LifetimeManager.d.ts +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/helpers/LifetimeManager.mjs.map +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/helpers/createToastsFromTransactions.mjs.map +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/helpers/createTransactionToast.mjs.map +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/helpers/getToastDataStateByStatus.d.ts +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/helpers/getToastDataStateByStatus.mjs.map +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/helpers/getToastTransactionsStatus.mjs.map +0 -0
- /package/out/managers/{internal/ToastManager/types → ToastManager}/index.mjs.map +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/types/index.cjs +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/types/index.d.ts +0 -0
- /package/out/managers/{internal/ToastManager/types/toast.types.mjs.map → ToastManager/types/index.mjs.map} +0 -0
- /package/out/managers/{internal/ToastManager → ToastManager}/types/toast.types.cjs +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/providers/ProviderFactory.ts", "../../src/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.ts", "../../src/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.ts", "../../src/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.ts", "../../src/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.ts", "../../src/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.ts", "../../src/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.ts", "../../src/providers/strategies/helpers/signMessage/signMessage.ts", "../../src/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.ts"],
|
|
4
|
-
"sourcesContent": ["import { IframeLoginTypes } from '@multiversx/sdk-web-wallet-iframe-provider/out/constants';\nimport { LedgerIdleStateManager } from 'managers/internal/LedgerIdleStateManager/LedgerIdleStateManager';\nimport { getAddress } from 'methods/account/getAddress';\nimport {\n CrossWindowProviderStrategy,\n ExtensionProviderStrategy,\n IframeProviderStrategy,\n LedgerProviderStrategy,\n WalletConnectProviderStrategy,\n WalletConnectV2Error\n} from 'providers/strategies';\nimport { setProviderType } from 'store/actions/loginInfo/loginInfoActions';\nimport { walletConnectConfigSelector } from 'store/selectors/configSelectors';\nimport { getState } from 'store/store';\nimport { DappProvider } from './DappProvider/DappProvider';\nimport {\n getAccountProvider,\n setAccountProvider\n} from './helpers/accountProvider';\nimport { clearInitiatedLogins } from './helpers/clearInitiatedLogins';\nimport { WebviewProviderStrategy } from './strategies/WebviewProviderStrategy';\nimport {\n ICustomProvider,\n IProvider,\n IProviderFactory,\n ProviderTypeEnum\n} from './types/providerFactory.types';\n\nexport class ProviderFactory {\n private static _customProviders: ICustomProvider[] = [];\n\n public static set customProviders(providers: ICustomProvider[]) {\n this._customProviders = providers;\n }\n\n public static get customProviders() {\n return this._customProviders;\n }\n\n public static async create({\n type,\n anchor\n }: IProviderFactory): Promise<DappProvider> {\n let createdProvider: IProvider | null = null;\n\n switch (type) {\n case ProviderTypeEnum.extension: {\n createdProvider = new ExtensionProviderStrategy();\n\n break;\n }\n\n case ProviderTypeEnum.crossWindow: {\n createdProvider = new CrossWindowProviderStrategy();\n\n break;\n }\n\n case ProviderTypeEnum.ledger: {\n createdProvider = new LedgerProviderStrategy({ anchor });\n\n const ledgerIdleStateManager = LedgerIdleStateManager.getInstance();\n await ledgerIdleStateManager.init();\n\n break;\n }\n\n case ProviderTypeEnum.metamask: {\n createdProvider = new IframeProviderStrategy({\n type: IframeLoginTypes.metamask\n });\n\n break;\n }\n\n case ProviderTypeEnum.passkey: {\n createdProvider = new IframeProviderStrategy({\n type: IframeLoginTypes.passkey\n });\n\n break;\n }\n case ProviderTypeEnum.walletConnect: {\n const walletConnectConfig = walletConnectConfigSelector(getState());\n\n if (!walletConnectConfig?.walletConnectV2ProjectId) {\n throw new Error(WalletConnectV2Error.invalidConfig);\n }\n\n createdProvider = new WalletConnectProviderStrategy({\n anchor,\n ...walletConnectConfig\n });\n\n break;\n }\n case ProviderTypeEnum.webview: {\n createdProvider = new WebviewProviderStrategy();\n break;\n }\n\n default: {\n const address = getAddress();\n\n for (const customProvider of this._customProviders) {\n if (customProvider.type === type) {\n createdProvider = await customProvider.constructor({\n address,\n anchor\n });\n }\n }\n break;\n }\n }\n\n if (!createdProvider) {\n throw new Error('Unable to create provider');\n }\n\n await createdProvider.init();\n\n const dappProvider = new DappProvider(createdProvider);\n setAccountProvider(dappProvider);\n\n const shouldClearInitiatedLogins = ProviderTypeEnum.crossWindow === type;\n\n // Clear initiated logins and skip the login method if it's crossWindow or metamask\n clearInitiatedLogins(\n shouldClearInitiatedLogins ? { skipLoginMethod: type } : null\n );\n\n return dappProvider;\n }\n\n public static async destroy() {\n const provider = getAccountProvider();\n provider.cancelLogin();\n setAccountProvider(null);\n setProviderType(ProviderTypeEnum.none);\n }\n}\n", "import { HWProvider } from '@multiversx/sdk-hw-provider';\n\nimport { CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION } from 'constants/transactions.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { LedgerConnectStateManager } from 'managers/internal/LedgerConnectStateManager/LedgerConnectStateManager';\nimport { ToastIconsEnum } from 'managers/internal/ToastManager/helpers/getToastDataStateByStatus';\nimport { getIsLoggedIn } from 'methods/account/getIsLoggedIn';\nimport {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { createCustomToast } from 'store/actions/toasts/toastsActions';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { getLedgerProvider } from './helpers';\nimport { authenticateLedgerAccount } from './helpers/authenticateLedgerAccount';\nimport { initializeLedgerProvider } from './helpers/initializeLedgerProvider';\nimport { signLedgerMessage } from './helpers/signLedgerMessage';\nimport { LedgerConfigType } from './types/ledgerProvider.types';\nimport {\n BaseProviderStrategy,\n LoginOptionsTypes\n} from '../BaseProviderStrategy/BaseProviderStrategy';\nimport { signTransactions } from '../helpers/signTransactions/signTransactions';\n\ntype LedgerProviderStrategyOptionsType = {\n anchor?: HTMLElement;\n shouldInitProvider?: boolean;\n};\n\ntype LedgerProviderStrategyType = LedgerProviderStrategyOptionsType & {\n address?: string;\n};\n\nexport class LedgerProviderStrategy extends BaseProviderStrategy {\n private provider: HWProvider | null = null;\n private config: LedgerConfigType | null = null;\n private readonly options?: LedgerProviderStrategyOptionsType;\n\n constructor({\n address,\n anchor,\n shouldInitProvider\n }: LedgerProviderStrategyType) {\n super(address);\n this.options = { anchor, shouldInitProvider };\n this._login = this.ledgerLogin.bind(this);\n }\n\n async init(): Promise<boolean> {\n try {\n this.initializeAddress();\n await this.initializeProvider();\n } catch {\n return false;\n }\n\n return true;\n }\n\n logout(): Promise<boolean> {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return this.provider.logout();\n }\n\n getType(): ProviderType {\n return ProviderTypeEnum.ledger;\n }\n\n getAddress(): Promise<string | undefined> {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return this.provider.getAddress();\n }\n\n setAccount(account: IDAppProviderAccount): void {\n return this.provider?.setAccount(account);\n }\n\n isInitialized(): boolean {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return this.provider.isInitialized();\n }\n\n private async initializeProvider() {\n await this.initLegderConnectManager(this.options?.anchor);\n const ledgerConnectManager = LedgerConnectStateManager.getInstance();\n\n const { ledgerProvider, ledgerConfig } = await new Promise<\n Awaited<ReturnType<typeof getLedgerProvider>>\n >((resolve, reject) =>\n initializeLedgerProvider({\n manager: ledgerConnectManager,\n resolve,\n reject,\n shouldInitProvider: this.options?.shouldInitProvider\n })\n );\n\n this.config = ledgerConfig;\n this.provider = ledgerProvider;\n }\n\n private readonly ledgerLogin = async (\n options?: LoginOptionsTypes & { addressIndex?: number }\n ): Promise<{ address: string; signature: string }> => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n if (!options || typeof options.addressIndex !== 'number') {\n throw new Error('Missing addressIndex for Ledger login');\n }\n const { address, signature } = await this.provider.login({\n addressIndex: options.addressIndex\n });\n return {\n address,\n signature: signature ?? ''\n };\n };\n\n public override loginOperation = async (options?: LoginOptionsTypes) => {\n if (!this.provider || !this.config) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return await authenticateLedgerAccount({\n options,\n config: this.config,\n provider: this.provider,\n login: this.ledgerLogin.bind(this)\n });\n };\n\n private readonly initLegderConnectManager = async (anchor?: HTMLElement) => {\n const shouldInitiateLogin = !getIsLoggedIn();\n\n if (!shouldInitiateLogin) {\n return;\n }\n\n const ledgerConnectManager = LedgerConnectStateManager.getInstance();\n await ledgerConnectManager.init(anchor);\n };\n\n signTransactions = async (transactions: Transaction[]) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n await this.rebuildProvider();\n\n const signedTransactions = await signTransactions({\n transactions,\n handleSign: this.provider.signTransactions.bind(this.provider)\n });\n\n return signedTransactions;\n };\n\n signMessage = async (message: Message): Promise<Message> => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n await this.rebuildProvider();\n\n const signedMessage = await signLedgerMessage({\n message,\n handleSignMessage: this.provider.signMessage.bind(this.provider)\n });\n\n return signedMessage;\n };\n\n /**\n * Makes sure the device is accessible and if not, tries to initialize a new provider\n */\n private readonly rebuildProvider = async () => {\n try {\n await this.provider?.getAddress(); // can communicate with device\n } catch (_err) {\n try {\n const { ledgerProvider } = await getLedgerProvider({\n shouldInitProvider: true\n });\n this.provider = ledgerProvider;\n } catch (error) {\n createCustomToast({\n toastId: 'ledger-provider-rebuild-error',\n duration: CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n icon: ToastIconsEnum.times,\n iconClassName: 'warning',\n message: 'Unlock your device & open the MultiversX App',\n title: 'Ledger unavailable'\n });\n throw error;\n }\n }\n };\n}\n", "import { DappProvider } from 'providers/DappProvider';\nimport {\n getAccountProvider,\n setAccountProvider\n} from 'providers/helpers/accountProvider';\nimport { LedgerProviderStrategy } from 'providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy';\nimport { ProviderTypeEnum } from 'providers/types/providerFactory.types';\nimport { isLoggedInSelector, loginInfoSelector } from 'store/selectors';\nimport { isSidePanelOpenSelector } from 'store/selectors/uiSelectors';\nimport { getState, getStore } from 'store/store';\nimport { ToastIconsEnum } from '../ToastManager/helpers/getToastDataStateByStatus';\nimport { ToastManager } from '../ToastManager/ToastManager';\n\nconst LEDGER_IDLE_STATE_CHECK_INTERVAL = 30_000;\nconst LEDGER_IDLE_STATE_RECONNECT_INTERVAL = 5_000;\nconst RECONNECT_SUCCESS_DURATION = 3000;\n\nexport class LedgerIdleStateManager {\n private static instance: LedgerIdleStateManager;\n private store = getStore();\n private connectionCheckInterval: ReturnType<typeof setInterval> | null = null;\n private recreateProviderInterval: ReturnType<typeof setInterval> | null =\n null;\n\n public static getInstance(): LedgerIdleStateManager {\n if (!LedgerIdleStateManager.instance) {\n LedgerIdleStateManager.instance = new LedgerIdleStateManager();\n }\n return LedgerIdleStateManager.instance;\n }\n\n private constructor() {}\n\n public init = async () => {\n this.startCheckConnectionLoop();\n };\n\n private readonly shouldCheckConnection = (): boolean => {\n const state = this.store.getState();\n const { providerType } = loginInfoSelector(state);\n const isLoggedIn = isLoggedInSelector(state);\n return Boolean(providerType === ProviderTypeEnum.ledger && isLoggedIn);\n };\n\n private readonly startCheckConnectionLoop = () => {\n if (this.connectionCheckInterval) {\n return;\n }\n\n this.connectionCheckInterval = setInterval(async () => {\n const isSigningProcess = isSidePanelOpenSelector(getState());\n\n if (!this.shouldCheckConnection() || isSigningProcess) {\n return;\n }\n\n try {\n const ledgerProvider = getAccountProvider().getProvider();\n await ledgerProvider.getAddress();\n } catch (_error) {\n ToastManager.getInstance().createCustomToast({\n toastId: 'ledger-provider-idle-warning',\n icon: ToastIconsEnum.times,\n iconClassName: 'warning',\n message: 'Unlock your device to continue signing transactions',\n title: 'Ledger disconnected'\n });\n this.reset();\n if (this.recreateProviderInterval) {\n return;\n }\n this.recreateProviderInterval = setInterval(\n this.reconnectProvider,\n LEDGER_IDLE_STATE_RECONNECT_INTERVAL\n );\n }\n }, LEDGER_IDLE_STATE_CHECK_INTERVAL);\n };\n\n private readonly reconnectProvider = async () => {\n if (!this.shouldCheckConnection()) {\n return;\n }\n\n try {\n const createdProvider = new LedgerProviderStrategy({\n shouldInitProvider: true\n });\n\n await createdProvider.init();\n\n const dappProvider = new DappProvider(createdProvider);\n createdProvider.getType = () => ProviderTypeEnum.ledger;\n setAccountProvider(dappProvider);\n\n this.reset();\n clearInterval(this.recreateProviderInterval ?? 0);\n this.recreateProviderInterval = null;\n\n ToastManager.getInstance().createCustomToast({\n toastId: 'ledger-provider-idle-warning',\n duration: RECONNECT_SUCCESS_DURATION,\n icon: ToastIconsEnum.check,\n iconClassName: 'success',\n message: 'Your device is ready to sign transactions',\n title: 'Ledger reconnected'\n });\n this.startCheckConnectionLoop();\n } catch (_err) {\n console.log('Unable to reconnect to Ledger');\n }\n };\n\n public reset = () => {\n clearInterval(this.connectionCheckInterval ?? 0);\n this.connectionCheckInterval = null;\n };\n}\n", "import { providerLabels } from 'constants/providerFactory.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { CrossWindowProvider } from 'lib/sdkWebWalletCrossWindowProvider';\nimport {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { BaseProviderStrategy } from '../BaseProviderStrategy/BaseProviderStrategy';\nimport { signMessage } from '../helpers/signMessage/signMessage';\nimport { guardTransactions } from '../helpers/signTransactions/helpers/guardTransactions/guardTransactions';\n\ntype CrossWindowProviderProps = {\n address?: string;\n walletAddress?: string;\n};\n\nexport class CrossWindowProviderStrategy extends BaseProviderStrategy {\n private readonly provider: CrossWindowProvider;\n private readonly walletAddress?: string;\n\n constructor(config?: CrossWindowProviderProps) {\n super(config?.address);\n this.walletAddress = config?.walletAddress;\n this.provider = CrossWindowProvider.getInstance();\n this._login = this.provider.login.bind(this.provider);\n }\n\n async init(): Promise<boolean> {\n this.initializeAddress();\n return this.initializeProvider();\n }\n\n private async initializeProvider() {\n const network = networkSelector(getState());\n\n const isProviderInitialized = await this.provider.init();\n\n this.provider.setWalletUrl(this.walletAddress ?? network.walletAddress);\n\n if (this.address) {\n this.provider.setAddress(this.address);\n }\n\n return isProviderInitialized;\n }\n\n logout(): Promise<boolean> {\n return this.provider.logout();\n }\n\n getType(): ProviderType {\n return ProviderTypeEnum.crossWindow;\n }\n\n getAddress(): Promise<string | undefined> {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return this.provider.getAddress();\n }\n\n setAccount(account: IDAppProviderAccount): void {\n return this.provider.setAccount(account);\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n cancelAction = async () => {\n this.provider.cancelAction();\n };\n\n signTransactions = async (transactions: Transaction[]) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const { onClose, manager } = await this.initSignState();\n\n try {\n const signedTransactions: Transaction[] =\n (await this.provider.signTransactions(transactions)) ?? [];\n\n const optionallyGuardedTransactions =\n await guardTransactions(signedTransactions);\n\n return optionallyGuardedTransactions;\n } catch (error) {\n await onClose({ shouldCancelAction: true });\n\n throw error;\n } finally {\n manager.closeUI();\n }\n };\n\n signMessage = async (message: Message) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const signedMessage = await signMessage({\n message,\n handleSignMessage: this.provider.signMessage.bind(this.provider),\n cancelAction: this.cancelAction,\n providerType: providerLabels.crossWindow\n });\n\n return signedMessage;\n };\n}\n", "import { ExtensionProvider } from '@multiversx/sdk-extension-provider/out/extensionProvider';\nimport { providerLabels } from 'constants/providerFactory.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { BaseProviderStrategy } from '../BaseProviderStrategy/BaseProviderStrategy';\nimport { signMessage } from '../helpers/signMessage/signMessage';\n\nexport class ExtensionProviderStrategy extends BaseProviderStrategy {\n private readonly provider: ExtensionProvider;\n\n constructor(address?: string) {\n super(address);\n this.provider = ExtensionProvider.getInstance();\n this._login = this.provider.login.bind(this.provider);\n }\n\n async init(): Promise<boolean> {\n this.initializeAddress();\n return this.initializeProvider();\n }\n\n private async initializeProvider() {\n const initialized = await this.provider.init();\n\n if (this.address) {\n this.setAccount({ address: this.address });\n }\n\n return initialized;\n }\n\n getAddress(): Promise<string | undefined> {\n return this.provider.getAddress();\n }\n\n setAccount(account: IDAppProviderAccount): void {\n return this.provider.setAccount(account);\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n logout(): Promise<boolean> {\n return this.provider.logout();\n }\n\n getType(): ProviderType {\n return ProviderTypeEnum.extension;\n }\n\n cancelAction = async () => {\n this.provider.cancelAction();\n };\n\n signTransactions = async (transactions: Transaction[]) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const { manager, onClose } = await this.initSignState();\n\n try {\n const signedTransactions: Transaction[] =\n (await this.provider.signTransactions(transactions)) ?? [];\n\n return signedTransactions;\n } catch (error) {\n await onClose({ shouldCancelAction: false });\n throw error;\n } finally {\n manager.closeUI();\n }\n };\n\n signMessage = async (message: Message) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const signedMessage = await signMessage({\n message,\n handleSignMessage: this.provider.signMessage.bind(this.provider),\n cancelAction: this.cancelAction,\n providerType: providerLabels.extension\n });\n\n return signedMessage;\n };\n}\n", "import { IframeLoginTypes } from '@multiversx/sdk-web-wallet-iframe-provider/out/constants';\n\nimport { providerLabels } from 'constants/providerFactory.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { IframeProvider } from 'lib/sdkWebWalletIframeProvider';\nimport {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { IframeProviderType } from './types';\nimport { BaseProviderStrategy } from '../BaseProviderStrategy/BaseProviderStrategy';\nimport { signMessage } from '../helpers/signMessage/signMessage';\n\ntype IframeProviderStrategyType =\n | typeof ProviderTypeEnum.passkey\n | typeof ProviderTypeEnum.metamask;\n\nconst IFRAME_PROVIDER_MAP: Record<\n IframeLoginTypes,\n IframeProviderStrategyType\n> = {\n passkey: ProviderTypeEnum.passkey,\n metamask: ProviderTypeEnum.metamask\n};\n\nexport class IframeProviderStrategy extends BaseProviderStrategy {\n private readonly provider: IframeProvider;\n private readonly type: IframeLoginTypes;\n private walletUrl: string;\n\n constructor({ type, address, walletUrl }: IframeProviderType) {\n super(address);\n this.type = type;\n this.walletUrl = walletUrl ?? '';\n this.provider = IframeProvider.getInstance();\n this._login = this.provider.login.bind(this.provider);\n }\n\n init(): Promise<boolean> {\n this.initializeAddress();\n this.initializeWalletUrl();\n return this.initializeProvider();\n }\n\n private initializeWalletUrl() {\n if (this.walletUrl) {\n return;\n }\n\n const network = networkSelector(getState());\n\n if (!network.iframeWalletAddress) {\n throw new Error('Invalid walletUrl');\n }\n\n this.walletUrl = network.iframeWalletAddress;\n }\n\n private async initializeProvider() {\n await this.provider.init();\n\n if (this.address) {\n this.setAccount({ address: this.address });\n }\n\n this.provider.setLoginType(this.type);\n this.provider.setWalletUrl(this.walletUrl);\n\n return true;\n }\n\n logout(): Promise<boolean> {\n return this.provider.logout();\n }\n\n getType(): ProviderType {\n return IFRAME_PROVIDER_MAP[this.type];\n }\n\n getAddress(): Promise<string | undefined> {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return this.provider.getAddress();\n }\n\n setAccount(account: IDAppProviderAccount): void {\n this.provider.setAccount(account);\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n cancelAction = async () => {\n this.provider.cancelAction();\n };\n\n signTransactions = async (transactions: Transaction[]) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const { manager, onClose } = await this.initSignState();\n\n try {\n const signedTransactions: Transaction[] =\n await this.provider.signTransactions(transactions);\n\n return signedTransactions;\n } catch (error) {\n await onClose({ shouldCancelAction: true });\n throw error;\n } finally {\n manager.closeUI();\n }\n };\n\n signMessage = async (message: Message) => {\n if (!this.provider || !this.type) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const signedMessage = await signMessage({\n message,\n handleSignMessage: this.provider.signMessage.bind(this.provider),\n cancelAction: this.cancelAction,\n providerType: providerLabels[this.type]\n });\n\n return signedMessage;\n };\n}\n", "import {\n SessionEventTypes,\n SessionTypes,\n OptionalOperation\n} from '@multiversx/sdk-wallet-connect-provider/out';\nimport { providerLabels } from 'constants/providerFactory.constants';\nimport { fallbackWalletConnectConfigurations } from 'constants/walletConnect.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { WalletConnectStateManager } from 'managers/internal/WalletConnectStateManager/WalletConnectStateManager';\nimport { getIsLoggedIn } from 'methods/account/getIsLoggedIn';\nimport {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { logoutAction } from 'store/actions';\nimport { chainIdSelector, nativeAuthConfigSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport {\n WalletConnectOptionalMethodsEnum,\n WalletConnectV2Provider\n} from 'utils/walletconnect/__sdkWalletconnectProvider';\nimport { WalletConnectV2Error, WalletConnectConfig } from './types';\nimport { BaseProviderStrategy } from '../BaseProviderStrategy/BaseProviderStrategy';\nimport { signMessage } from '../helpers/signMessage/signMessage';\n\nconst dappMethods: string[] = [\n WalletConnectOptionalMethodsEnum.CANCEL_ACTION,\n WalletConnectOptionalMethodsEnum.SIGN_LOGIN_TOKEN\n];\n\ntype WalletConnectProviderStrategyConfigType = WalletConnectConfig & {\n anchor?: HTMLElement;\n};\n\nexport class WalletConnectProviderStrategy extends BaseProviderStrategy {\n private provider: WalletConnectV2Provider | null = null;\n private readonly config: WalletConnectProviderStrategyConfigType;\n private methods: string[] = [];\n private _approval: (() => Promise<SessionTypes.Struct>) | null = null;\n protected cancelActionAbortController: AbortController | null = null;\n\n constructor(config: WalletConnectProviderStrategyConfigType) {\n super();\n this.config = config;\n }\n\n async init(): Promise<boolean> {\n try {\n await this.initializeProvider();\n } catch {\n return false;\n }\n\n return true;\n }\n\n logout(): Promise<boolean> {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return this.provider.logout();\n }\n\n getType(): ProviderType {\n return ProviderTypeEnum.walletConnect;\n }\n\n getAddress(): Promise<string | undefined> {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return Promise.resolve(this.provider.getAddress());\n }\n\n setAccount(account: IDAppProviderAccount): void {\n return this.provider?.setAccount(account);\n }\n\n isInitialized(): boolean {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return this.provider.isInitialized();\n }\n\n private async initializeProvider() {\n await this.initWalletConnectManager();\n\n if (!this.config) {\n throw new Error(WalletConnectV2Error.invalidConfig);\n }\n\n const { walletConnectProvider, dappMethods: dAppMethods } =\n await this.createWalletConnectProvider(this.config);\n\n this.provider = walletConnectProvider;\n this.methods = dAppMethods;\n\n const { uri = '', approval } = await this.provider.connect({\n methods: this.methods\n });\n\n const walletConnectDeepLink =\n this.config.walletConnectDeepLink ??\n fallbackWalletConnectConfigurations.walletConnectDeepLink;\n\n this._approval = approval;\n const walletConnectManager = WalletConnectStateManager.getInstance();\n walletConnectManager.updateData({\n wcURI: uri,\n walletConnectDeepLink: `${walletConnectDeepLink}?wallet-connect=${encodeURIComponent(uri)}`\n });\n }\n\n private async initWalletConnectManager() {\n const shouldInitiateLogin = !getIsLoggedIn();\n\n if (!shouldInitiateLogin) {\n return;\n }\n\n const walletConnectManager = WalletConnectStateManager.getInstance();\n await walletConnectManager.init(this.config?.anchor);\n }\n\n private async createWalletConnectProvider(config: WalletConnectConfig) {\n const isLoggedIn = getIsLoggedIn();\n const chainId = chainIdSelector(getState());\n const nativeAuthConfig = nativeAuthConfigSelector(getState());\n\n if (nativeAuthConfig) {\n dappMethods.push(WalletConnectOptionalMethodsEnum.SIGN_NATIVE_AUTH_TOKEN);\n }\n\n if (!config?.walletConnectV2ProjectId) {\n throw new Error(WalletConnectV2Error.invalidConfig);\n }\n\n const handleOnLogin = () => {};\n\n const handleOnLogout = () => {\n logoutAction();\n };\n\n const handleOnEvent = (_event: SessionEventTypes['event']) => {};\n\n const providerHandlers = {\n onClientLogin: handleOnLogin,\n onClientLogout: handleOnLogout,\n onClientEvent: handleOnEvent\n };\n\n try {\n const {\n walletConnectV2ProjectId,\n walletConnectV2Options = {},\n walletConnectV2RelayAddress = ''\n } = config;\n const walletConnectProvider = new WalletConnectV2Provider(\n providerHandlers,\n chainId,\n walletConnectV2RelayAddress,\n walletConnectV2ProjectId,\n walletConnectV2Options\n );\n\n await walletConnectProvider.init();\n\n return { walletConnectProvider, dappMethods };\n } catch (err) {\n console.error(WalletConnectV2Error.connectError, err);\n\n if (isLoggedIn) {\n await this.logout();\n }\n\n throw err;\n }\n }\n\n async login(options?: { token?: string }): Promise<{\n address: string;\n signature: string;\n }> {\n if (!this.provider) {\n throw new Error(\n 'Provider is not initialized. Call createProvider first.'\n );\n }\n\n const reconnect = async (): Promise<{\n address: string;\n signature: string;\n }> => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n await this.provider.init();\n const walletConnectManager = WalletConnectStateManager.getInstance();\n\n const { uri = '', approval: wcApproval } = await this.provider.connect({\n methods: this.methods\n });\n\n const walletConnectDeepLink =\n this.config.walletConnectDeepLink ??\n fallbackWalletConnectConfigurations.walletConnectDeepLink;\n\n walletConnectManager.updateData({\n wcURI: uri,\n walletConnectDeepLink: `${walletConnectDeepLink}?wallet-connect=${encodeURIComponent(uri)}`\n });\n\n const providerInfo = await this.provider.login({\n approval: wcApproval,\n token: options?.token\n });\n\n const { address = '', signature = '' } = providerInfo ?? {};\n\n walletConnectManager.handleClose({ isLoginFinished: Boolean(address) });\n return { address, signature };\n } catch {\n return await reconnect();\n }\n };\n\n if (!this._approval) {\n throw new Error('Approval or login is not initialized');\n }\n\n try {\n const providerData = await this.provider.login({\n approval: this._approval.bind(this),\n token: options?.token\n });\n\n const { address = '', signature = '' } = providerData ?? {};\n\n const walletConnectManager = WalletConnectStateManager.getInstance();\n walletConnectManager.handleClose({ isLoginFinished: Boolean(address) });\n return { address, signature };\n } catch (error) {\n console.error(WalletConnectV2Error.userRejected, error);\n return await reconnect();\n }\n }\n\n signTransactions = async (transactions: Transaction[]) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const { manager, onClose } = await this.initSignState();\n\n this.cancelActionAbortController = new AbortController();\n const signal = this.cancelActionAbortController.signal;\n\n try {\n const abortPromise = new Promise<never>((_, reject) => {\n signal.addEventListener('abort', () => {\n reject(new Error('cancelled by user'));\n });\n });\n\n const signedTransactions: Transaction[] = await Promise.race([\n this.provider.signTransactions(transactions),\n abortPromise\n ]);\n\n return signedTransactions;\n } catch (error) {\n await onClose({ shouldCancelAction: true });\n throw error;\n } finally {\n manager.closeUI();\n }\n };\n\n cancelAction = async () => {\n this.sendCustomRequest({\n method: WalletConnectOptionalMethodsEnum.CANCEL_ACTION,\n action: OptionalOperation.CANCEL_ACTION\n });\n\n this.cancelActionAbortController?.abort();\n };\n\n signMessage = async (message: Message) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n this.cancelActionAbortController = new AbortController();\n const signal = this.cancelActionAbortController.signal;\n\n const abortPromise = new Promise<never>((_, reject) => {\n signal.addEventListener('abort', () => {\n reject(new Error('cancelled by user'));\n });\n });\n\n const signedMessage = await Promise.race([\n signMessage({\n message,\n handleSignMessage: this.provider.signMessage.bind(this.provider),\n cancelAction: this.cancelAction,\n providerType: providerLabels.extension\n }),\n abortPromise\n ]);\n\n return signedMessage;\n };\n\n private async sendCustomRequest({\n action,\n method\n }: {\n action: OptionalOperation;\n method: WalletConnectOptionalMethodsEnum;\n }) {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n await this.provider.sendCustomRequest?.({\n request: {\n method,\n params: { action }\n }\n });\n } catch (error) {\n console.error(WalletConnectV2Error.actionError, error);\n }\n }\n}\n", "import { providerLabels } from 'constants/providerFactory.constants';\nimport { Message } from 'lib/sdkCore';\nimport { PendingTransactionsEventsEnum } from 'managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport {\n ProviderType,\n ProviderTypeEnum,\n ICustomProvider\n} from 'providers/types/providerFactory.types';\nimport { SigningWarningsEnum } from 'types/enums.types';\nimport { getPendingTransactionsHandlers } from '../getPendingTransactionsHandlers';\n\ntype SignMessageWithModalPropsType<T> = {\n message: Message;\n handleSignMessage: (message: Message) => Promise<Message>;\n cancelAction?: () => Promise<T> | undefined;\n providerType: string;\n};\n\nconst isProviderType = (\n allProviders: ICustomProvider[],\n type: string\n): type is ProviderType =>\n allProviders.some((provider) => provider.type === type);\n\nexport async function signMessage<T>({\n message,\n handleSignMessage,\n cancelAction,\n providerType\n}: SignMessageWithModalPropsType<T>): Promise<Message> {\n const signedMsg = await new Promise<Awaited<Message>>(\n async (resolve, reject) => {\n const { manager, onClose } = await getPendingTransactionsHandlers({\n cancelAction\n });\n\n const allProviders = Object.values(ProviderFactory.customProviders);\n const allCustomProviderLabels = allProviders.reduce(\n (acc, provider) => {\n acc[provider.type] = provider.name;\n return acc;\n },\n {} as Record<ProviderType, string>\n );\n\n const allProviderLabels = {\n ...providerLabels,\n ...allCustomProviderLabels\n };\n\n const handleClose = async () => {\n await onClose({ shouldCancelAction: true });\n reject({ message: SigningWarningsEnum.cancelled });\n };\n\n manager.subscribeToEventBus(\n PendingTransactionsEventsEnum.CLOSE,\n handleClose\n );\n\n const providerKey = isProviderType(allProviders, providerType)\n ? providerType\n : ProviderTypeEnum.none;\n\n manager.updateData({\n name: allProviderLabels[providerKey],\n type: providerKey\n });\n\n try {\n const signedMessage = await handleSignMessage(message);\n resolve(signedMessage);\n } catch (err) {\n await onClose({ shouldCancelAction: true });\n reject(err);\n } finally {\n manager.closeUI();\n }\n }\n );\n return signedMsg;\n}\n", "import { providerLabels } from 'constants/providerFactory.constants';\nimport { Message } from 'lib/sdkCore';\nimport { getLedgerErrorCodes } from './getLedgerErrorCodes';\nimport { signMessage } from '../../helpers/signMessage/signMessage';\n\nexport async function signLedgerMessage({\n message,\n handleSignMessage\n}: {\n message: Message;\n handleSignMessage: (msg: Message) => Promise<Message>;\n}): Promise<Message> {\n try {\n const signedMessage = await signMessage({\n message,\n handleSignMessage: handleSignMessage,\n providerType: providerLabels.ledger\n });\n return signedMessage;\n } catch (error) {\n const { errorMessage } = getLedgerErrorCodes(error);\n throw errorMessage ? { message: errorMessage } : error;\n }\n}\n"],
|
|
5
|
-
"mappings": "6uCAAA,OAAS,oBAAAA,OAAwB,2DCkC1B,IAAMC,EAAN,cAAqCC,CAAqB,CAK/D,YAAY,CACV,QAAAC,EACA,OAAAC,EACA,mBAAAC,CACF,EAA+B,CAC7B,MAAMF,CAAO,EATf,KAAQ,SAA8B,KACtC,KAAQ,OAAkC,KA2E1C,KAAiB,YAAc,MAC7BG,GACoD,CACpD,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAEnD,GAAI,CAACA,GAAW,OAAOA,EAAQ,cAAiB,SAC9C,MAAM,IAAI,MAAM,uCAAuC,EAEzD,GAAM,CAAE,QAAAH,EAAS,UAAAI,CAAU,EAAI,MAAM,KAAK,SAAS,MAAM,CACvD,aAAcD,EAAQ,YACxB,CAAC,EACD,MAAO,CACL,QAAAH,EACA,UAAWI,GAAa,EAC1B,CACF,EAEA,KAAgB,eAAiB,MAAOD,GAAgC,CACtE,GAAI,CAAC,KAAK,UAAY,CAAC,KAAK,OAC1B,MAAM,IAAI,oCAAuC,EAGnD,OAAO,M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Ac,SAAY,CAC9B,MAAMP,EAAQ,CAAE,mBAAoB,EAAK,CAAC,EAC1CF,EAAO,CAAE,0BAAuC,CAAC,CACnD,EAEAC,EAAQ,iDAENQ,CACF,EAEA,IAAMC,EAAcpB,GAAeC,EAAcO,CAAY,EACzDA,EACAa,EAAiB,KAErBV,EAAQ,WAAW,CACjB,KAAMM,EAAkBG,CAAW,EACnC,KAAMA,CACR,CAAC,EAED,GAAI,CACF,IAAME,EAAgB,MAAMhB,EAAkBD,CAAO,EACrDI,EAAQa,CAAa,CACvB,OAASC,EAAK,CACZ,MAAMX,EAAQ,CAAE,mBAAoB,EAAK,CAAC,EAC1CF,EAAOa,CAAG,CACZ,QAAE,CACAZ,EAAQ,QAAQ,CAClB,CACF,CACF,CAEF,CC7EA,eAAsBa,GAAkB,CACtC,QAAAC,EACA,kBAAAC,CACF,EAGqB,CACnB,GAAI,CAMF,OALsB,MAAMC,EAAY,CACtC,QAAAF,EACA,kBAAmBC,EACnB,aAAcE,EAAe,MAC/B,CAAC,CAEH,OAASC,EAAO,CACd,GAAM,CAAE,aAAAC,CAAa,EAAIC,GAAoBF,CAAK,EAClD,MAAMC,EAAe,CAAE,QAASA,CAAa,EAAID,CACnD,CACF",
|
|
6
|
-
"names": ["IframeLoginTypes", "LedgerProviderStrategy", "BaseProviderStrategy", "address", "anchor", "shouldInitProvider", "options", "signature", "authenticateLedgerAccount", "getIsLoggedIn", "LedgerConnectStateManager", "transactions", "signTransactions", "message", "signLedgerMessage", "ledgerProvider", "getLedgerProvider", "error", "createCustomToast", "ProviderTypeEnum", "account", "ledgerConnectManager", "ledgerConfig", "resolve", "reject", "initializeLedgerProvider", "LEDGER_IDLE_STATE_CHECK_INTERVAL", "LEDGER_IDLE_STATE_RECONNECT_INTERVAL", "RECONNECT_SUCCESS_DURATION", "LedgerIdleStateManager", "_LedgerIdleStateManager", "getStore", "state", "providerType", "loginInfoSelector", "isLoggedIn", "isLoggedInSelector", "ProviderTypeEnum", "isSigningProcess", "isSidePanelOpenSelector", "getState", "getAccountProvider", "ToastManager", "createdProvider", "LedgerProviderStrategy", "dappProvider", "DappProvider", "setAccountProvider", "CrossWindowProviderStrategy", "BaseProviderStrategy", "config", "transactions", "onClose", "manager", "signedTransactions", "guardTransactions", "error", "message", "signMessage", "providerLabels", "CrossWindowProvider", "network", "networkSelector", "getState", "isProviderInitialized", "ProviderTypeEnum", "account", "ExtensionProvider", "ExtensionProviderStrategy", "BaseProviderStrategy", "address", "transactions", "manager", "onClose", "error", "message", "signMessage", "providerLabels", "ExtensionProvider", "initialized", "account", "ProviderTypeEnum", "IFRAME_PROVIDER_MAP", "ProviderTypeEnum", "IframeProviderStrategy", "BaseProviderStrategy", "type", "address", "walletUrl", "transactions", "manager", "onClose", "error", "message", "signMessage", "providerLabels", "IframeProvider", "network", "networkSelector", "getState", "account", "OptionalOperation", "dappMethods", "WalletConnectOptionalMethodsEnum", "WalletConnectProviderStrategy", "BaseProviderStrategy", "config", "transactions", "manager", "onClose", "signal", "abortPromise", "_", "reject", "error", "OptionalOperation", "message", "signMessage", "providerLabels", "ProviderTypeEnum", "account", "walletConnectProvider", "dAppMethods", "uri", "approval", "walletConnectDeepLink", "fallbackWalletConnectConfigurations", "WalletConnectStateManager", "getIsLoggedIn", "isLoggedIn", "chainId", "chainIdSelector", "getState", "nativeAuthConfigSelector", "providerHandlers", "logoutAction", "_event", "walletConnectV2ProjectId", "walletConnectV2Options", "walletConnectV2RelayAddress", "WalletConnectV2Provider", "err", "options", "reconnect", "walletConnectManager", "wcApproval", "providerInfo", "address", "signature", "providerData", "action", "method", "ProviderFactory", "providers", "type", "anchor", "createdProvider", "ProviderTypeEnum", "ExtensionProviderStrategy", "CrossWindowProviderStrategy", "LedgerProviderStrategy", "LedgerIdleStateManager", "IframeProviderStrategy", "IframeLoginTypes", "walletConnectConfig", "walletConnectConfigSelector", "getState", "WalletConnectProviderStrategy", "WebviewProviderStrategy", "address", "getAddress", "customProvider", "dappProvider", "DappProvider", "setAccountProvider", "shouldClearInitiatedLogins", "clearInitiatedLogins", "getAccountProvider", "setProviderType", "isProviderType", "allProviders", "type", "provider", "signMessage", "message", "handleSignMessage", "cancelAction", "providerType", "resolve", "reject", "manager", "onClose", "getPendingTransactionsHandlers", "ProviderFactory", "allCustomProviderLabels", "acc", "allProviderLabels", "providerLabels", "handleClose", "providerKey", "ProviderTypeEnum", "signedMessage", "err", "signLedgerMessage", "message", "handleSignMessage", "signMessage", "providerLabels", "error", "errorMessage", "getLedgerErrorCodes"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as Et}from"./chunk-FPBY3DHR.mjs";import{a as gt}from"./chunk-JD3WTXPU.mjs";import{a as It}from"./chunk-6UZHM5LW.mjs";import{a as k}from"./chunk-YRXESD4B.mjs";import{a as xt}from"./chunk-FY7XZQRH.mjs";import{a as wt}from"./chunk-2NXPS7R3.mjs";import{a as At}from"./chunk-6CY7XXBE.mjs";import{a as Lt}from"./chunk-3AQIQDPA.mjs";import{a as y}from"./chunk-KDWLSBQB.mjs";import{a as Ct}from"./chunk-MFUQ5NBC.mjs";import{a as Rt}from"./chunk-4ODPAHHA.mjs";import{a as Ot}from"./chunk-IPYKRZ2A.mjs";import{b as F}from"./chunk-CD7RYHHQ.mjs";import{a as kt}from"./chunk-4Z7G5RCK.mjs";import{a as Mt}from"./chunk-MDVI45IV.mjs";import{a as Ft}from"./chunk-DMBZGJ6Q.mjs";import{a as S}from"./chunk-XBJKQBW3.mjs";import{a as ut}from"./chunk-RPNTVD3R.mjs";import{a as yt}from"./chunk-OXHTDT7J.mjs";import{a as x}from"./chunk-NQTTC42T.mjs";import{a as O,f as bt}from"./chunk-UBZGPJ3E.mjs";import{b as f,c as q,d as vt}from"./chunk-DTSAE3IB.mjs";import{k as ft,l as N,n as ht}from"./chunk-65L5EBBL.mjs";import{b as Nt}from"./chunk-XQWEAEGW.mjs";import{a as M}from"./chunk-HORSXVIV.mjs";import{a as Pt}from"./chunk-RRKJBSXY.mjs";import{a as ct}from"./chunk-NWSFXZMR.mjs";import{a as L}from"./chunk-QTKK6OSJ.mjs";import{a as rt}from"./chunk-6ACLOUQ3.mjs";import{a as A}from"./chunk-NZYB675D.mjs";import{a as at}from"./chunk-YSCND2MX.mjs";import{a as Dt}from"./chunk-NJN53MJV.mjs";import{a as lt,b as pt,g as Tt,l as dt}from"./chunk-2IUBMLF4.mjs";import{b as mt}from"./chunk-TQA3JDNV.mjs";import{a as nt,b as it,q as u,s as E}from"./chunk-R6GH7DA7.mjs";import{c as Q,d as X,f as tt}from"./chunk-UERJ6AKK.mjs";import{b as v}from"./chunk-VNLGNNIL.mjs";import{b}from"./chunk-6JM4DPOH.mjs";import{b as st,c as et,f as ot}from"./chunk-NTEMINYA.mjs";import{b as Bt}from"./chunk-UCRVRBTA.mjs";import{a as St}from"./chunk-VF75NE7S.mjs";import{c as w}from"./chunk-DXTUMMVX.mjs";import{b as z}from"./chunk-GGBMHKR4.mjs";import{a as C}from"./chunk-LJX4MW7B.mjs";import J from"lodash.isequal";import Ut from"lodash.isequal";var Zt="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",P=class o extends yt{constructor(){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.store=u();this.initialData={pendingTransactions:[],historicTransactions:[]};this.data={...this.initialData}}static getInstance(){return o.instance||(o.instance=new o),o.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){T.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let e=this.store.subscribe(async({toasts:n,transactions:i},{toasts:r,transactions:c})=>{(!Ut(r.transactionToasts,n.transactionToasts)||!Ut(c,i))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(Zt,[e]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=T.getInstance();this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s,account:e,toasts:n,network:i}=this.store.getState(),{pendingTransactionToasts:r}=await k({toastList:n,transactionsSessions:s,account:e});this.data.pendingTransactions=r,this.data.historicTransactions=await gt.getTransactionsHistory({transactionsSessions:s,address:e.address,explorerAddress:i.network.explorerAddress,egldLabel:i.network.egldLabel}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){vt(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};import V from"bignumber.js";var R=class o{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),s=v(t),{isExpired:e}=L(s?.nativeAuthToken);e?I().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let t=this.store.getState(),s=v(t),e=tt(t);return!!(s?.nativeAuthToken&&e)};this.addPlannedLogout=()=>{let t=I(),s=Q(this.store.getState()),e=t.getType()===C.webview;if(!s||e)return;this.addLogoutWarning();let n=v(this.store.getState()),{secondsUntilExpires:i,expiresAt:r}=L(n?.nativeAuthToken),c=new V(String(i)),a=`${s}_${r}`,m=this.plannedLogoutKey===a;if(!(i&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=a,clearTimeout(this.plannedLogoutTimeoutRef??0);let d=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{T.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},d.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},d.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=b(this.store.getState()),s=v(this.store.getState()),{secondsUntilExpires:e}=L(s?.nativeAuthToken),n=new V(String(e)),i=n.times(1e3);if(!e||n.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new V(t?.tokenExpirationToastWarningSeconds??0).times(1e3),a=n.times(1e3).minus(c),m=It(i.toNumber()),l=a.isLessThanOrEqualTo(0)?0:a.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{T.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};var B={};async function Qt({serverTransaction:o,sessionId:t,isSequential:s}){let{hash:e,status:n,results:i,invalidTransaction:r,hasStatusChanged:c}=o;try{if(B[e]>30){f({sessionId:t,status:"timedOut"}),await y({sessionId:t,status:"timedOut"});return}if(r&&!s||n==="sent"){B[e]=B[e]?B[e]+1:1;return}if(s&&!n){let m=q({sessionId:t,transaction:o});await y({sessionId:t,status:m});return}if(c){let m=q({sessionId:t,transaction:o});await y({sessionId:t,status:m})}N(n)&&await Lt({sessionId:t,hash:e,results:i})}catch(a){console.error(a),f({sessionId:t,status:"timedOut"}),await y({sessionId:t,status:"timedOut"})}}async function _t({sessionId:o,transactionBatch:t,isSequential:s}){try{if(t==null)return;let e=wt(),n=Ct(t),i=await Et(n);for(let p of i)await Qt({serverTransaction:p,sessionId:o,isSequential:s});if(!i.every(p=>p.status!=="pending"))return;e&&await D();let{transactions:c}=u().getState(),a=c[o];if(a.transactions.every(p=>p.status==="success"))return f({sessionId:o,status:"success"});if(a.transactions.some(p=>p.status==="fail"))return f({sessionId:o,status:"fail"});if(a.transactions.every(p=>p.status==="not executed"))return f({sessionId:o,status:"invalid"})}catch(e){console.error(e)}}async function Wt(){let o=mt(E());if(Object.keys(o).length>0)for(let[t,{transactions:s}]of Object.entries(o))await _t({sessionId:t,transactionBatch:s})}async function U(){let o=u(),t=At(),s=null,e=null,n=X(o.getState())?.timestamp,i=()=>{Wt()},r=()=>{s??=setInterval(i,t)},c=()=>{s&&(clearInterval(s),s=null)},a=()=>{c();let p=o.subscribe(({account:{websocketEvent:g}})=>{g?.message&&n!==g.timestamp&&(n=g.timestamp,i())});w.set("websocketEventReceived",p)},m=()=>{z.status!=="not_initialized"||e||(e=setInterval(()=>{z.status==="completed"&&(clearInterval(e),e=null,a())},1e3))};i();let l=()=>{c(),e&&(clearInterval(e),e=null)},d=o.subscribe(({account:{address:p},config:{websocketStatus:g}},jt)=>{if(jt.config.websocketStatus!==g)switch(g){case"completed":a();break;case"pending":r(),m();break;default:p?r():l();break}});return w.set("websocketStatusChanged",d),w.set("websocketEventReceived",l),{stopTransactionsTracking:l}}async function j({address:o,provider:t,apiAddress:s}){let e=await A({address:o,baseURL:s});if(!e)throw new Error("Account not found");Nt({address:o,providerType:t.getType()});let n={...e,username:M(e.username),nonce:x(e)};O(n),await F(o),U(),e.shard!=null&&await xt({shard:Number(e.shard),apiAddress:s})}async function Xt(o){let{network:{apiAddress:t}}=S();await o.login();let s=await o.getAddress();if(!s)throw new Error("Address not found");return await j({address:s,provider:o,apiAddress:t}),{address:s}}async function ts({provider:o,nativeAuthConfig:t,token:s}){let{network:{apiAddress:e}}=S(),n=ct(t),i=s;i||(i=await n.initialize({noCache:!0}));let{address:r,signature:c,...a}=await o.login({token:i});if(!r)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let l=rt(a?.accessToken)?a.accessToken:n.getToken({address:r,token:i,signature:c});it({loginToken:i,signature:c,nativeAuthToken:l});let d=await kt({loginToken:i,extraInfoData:{multisig:a?.multisig,impersonate:a?.impersonate},address:r});return await j({address:d,provider:o,apiAddress:e}),{address:d,signature:c}}async function Ht(o,t){let s=b(E());if(s)return await ts({provider:o,nativeAuthConfig:s,token:t?.token});let{address:e}=await Xt(o);return await F(e),U(),{address:e,signature:""}}var Y={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${pt}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${lt}-${Date.now()}`}},ss={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},es=o=>{for(let[t,s]of Object.entries(ss))if(o.includes(t))return s;return"Error when signing"};function Z(o,t="error"){let s=o?.message,e=es(s),i=e!=="Error when signing"?"warning":t,r=Object.keys(Y).includes(i)?Y[i]:Y.error,{toastId:c,iconClassName:a,title:m}=r;return _({toastId:c,duration:1e4,icon:"times",iconClassName:a,message:e,title:m}),e}async function Gt({provider:o,transactions:t,options:s={}}){await D();let{isGuarded:e,activeGuardianAddress:n,nonce:i}=Pt(),r=o.getType()===C.ledger,c=Rt({latestNonce:i,transactions:t}),a=n&&e&&!s.skipGuardian?c?.map(l=>(l.version=st.withTxOptions().valueOf(),l.options=ot.withOptions({guarded:!0,...r?{hashSign:!0}:{}}).valueOf(),l.guardian=et.newFromBech32(n),l)):c,m=await o.signTransactions(a)??[];return bt(i+m.length),m}var W=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let s=await Ht(this.provider,t);return nt(this.provider.getType()),$t(this),R.getInstance().init(),s}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let s=await Ot({provider:this.provider,options:t});return this._isLoggingOut=!1,s}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,s){try{return await Gt({provider:this.provider,transactions:t,options:s})}catch(e){let n=Z(e);throw new Error(n)}}async signMessage(t,s){try{return await Ft({provider:this.provider,message:t,options:s})}catch(e){let n=Z(e,"warning");throw new Error(n)}}async verifyMessage(t){return await Mt(t)}cancelLogin(){this.provider.cancelLogin?.()}};var Kt=null;function $t(o){Kt=o}function I(){return Kt||new W(Bt)}var os=async()=>{try{let o=ut(),{network:t}=S();try{let s=await A({address:o,baseURL:t.apiAddress});if(s!=null){let e={...s,username:M(s.username),nonce:x(s)};return O(e),e}}catch(s){console.error("Failed getting account ",s)}}catch(o){console.error("Failed getting address ",o)}return null};async function D(){let o=I();if(o==null)throw"Provider not initialized";try{if(!o.init)throw"Current provider does not have init() function";return await o.init()?await os():void 0}catch(t){console.error("Failed initializing provider ",t)}}var H={},h={},ns=(o,t)=>{u().setState(({toasts:s})=>{let e=s.customToasts.length>0?Math.max(...s.customToasts.map(a=>parseInt(a.toastId.split("-").pop()??"0"))):0,n=t??`custom-toast-${e+1}`,i=s.customToasts.findIndex(a=>a.toastId===n),r={...o,toastId:n};if(i!==-1){s.customToasts[i]=r;return}s.customToasts.push({...r,toastId:n})},!1,"addCustomToast")},G=o=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(s=>s.toastId!==o)},!1,"removeCustomToast")},zt=()=>{u().setState(({toasts:o})=>{o.customToasts=[]},!1,"removeAllCustomToasts")},Wo=()=>{u().setState(({toasts:o})=>{o.transactionToasts=[]})},qt=({toastId:o,totalDuration:t})=>{let s="";return u().setState(({toasts:e})=>{let n=e.transactionToasts.length>0?Math.max(...e.transactionToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0;s=o??`transaction-toast-${n+1}`,e.transactionToasts.push({startTime:at(),endTime:Dt(t),toastId:s})},!1,"addTransactionToast"),s},$=o=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(s=>s.toastId!==o)},!1,"removeTransactionToast"),delete h[o],delete H[o]},_=o=>{let{toasts:t}=u().getState(),s=t.customToasts.length>0?Math.max(...t.customToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0,e=o.toastId||`custom-toast-${s+1}`;return o.onClose&&(h[e]=o.onClose),o.instantiateToastElement?(H[e]=o.instantiateToastElement,u().setState(({toasts:n})=>{let i=n.customToasts.findIndex(a=>a.toastId===e),r={...o,instantiateToastElement:null,toastId:e};i!==-1?n.customToasts[i]=r:n.customToasts.push(r)},!1,"createCustomToast"),e):(ns(o,e),e)};var Vt=1e4,K=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=Vt;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let s=setTimeout(()=>{$(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,s)};this.startWithCustomDuration=(t,s)=>{if(this.stop(t),s<=0)return;let e=setTimeout(()=>{G(t);let n=h[t];n?.()},s);this.timeoutIntervals.set(t,e)};this.stop=t=>{let s=this.timeoutIntervals.get(t);s&&(clearTimeout(s),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||Vt}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};var T=class o{constructor(){this.isCreatingElement=!1;this.toastsElement=null;this.transactionToasts=[];this.customToasts=[];this.storeToastsSubscription=()=>null;this.eventBusUnsubscribeFunctions=[];this.eventBus=null;this.store=u();this.destroy(),this.lifetimeManager=new K,this.notificationsFeedManager=P.getInstance()}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.subscribeToEventBusNotifications(),this.storeToastsSubscription=this.store.subscribe(async({toasts:s,transactions:e},{toasts:n,transactions:i})=>{let r=!J(n.transactionToasts,s.transactionToasts),c=!J(i,e);(r||c)&&await this.updateTransactionToastsList({skipFetchingTransactions:c}),!J(n.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return o.instance||(o.instance=new o),o.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),e=s[t];if(!e)return!1;let{status:n}=e,i=ht(n),r=N(n),c=ft(n),a=r||c||i;return a?(this.successfulToastLifetime&&this.lifetimeManager.start(t),a):(this.lifetimeManager.stop(t),a)}async createTransactionToast(t,s){let e=qt({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),e}createCustomToast(t){let s=_(t);return this.updateCustomToastList(),s}async updateTransactionToastsList(t){let{toasts:s,transactions:e,account:n}=this.store.getState(),{pendingTransactionToasts:i,completedTransactionToasts:r}=await k({toastList:s,transactionsSessions:e,account:n,skipFetchingTransactions:t?.skipFetchingTransactions});this.transactionToasts=[...i,...r];for(let c of s.transactionToasts)this.handleCompletedTransaction(c.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let n="message"in s?{...s}:{...s,instantiateToastElement:H[s.toastId]};this.customToasts.push(n),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",this.customToasts)}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await St.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}handleTransactionToastClose(t){this.handleCompletedTransaction(t)&&$(t)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.closeToast.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.closeToast.bind(this))}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}async showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}closeToast(t){if(this.customToasts.find(e=>e.toastId===t)){this.lifetimeManager.stop(t);let e=h[t];e?.(),G(t);return}this.handleTransactionToastClose(t)}async publishTransactionToasts(){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts),this.hideToasts();return}if(!this.eventBus){let t=await this.createToastListElement();if(!t)return;this.eventBus=await t.getEventBus()}this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts)}destroy(){this.storeToastsSubscription(),this.lifetimeManager?.destroy(),this.notificationsFeedManager?.destroy(),zt(),this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[]}};export{P as a,H as b,h as c,ns as d,G as e,zt as f,Wo as g,qt as h,$ as i,_ as j,K as k,T as l,R as m,_t as n,Wt as o,U as p,j as q,Ht as r,Z as s,Gt as t,W as u,$t as v,I as w,D as x};
|
|
2
|
-
//# sourceMappingURL=chunk-NL5FA7NT.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/managers/internal/ToastManager/ToastManager.ts", "../../src/managers/NotificationsFeedManager/NotificationsFeedManager.ts", "../../src/managers/LogoutManager/LogoutManager.ts", "../../src/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.ts", "../../src/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.ts", "../../src/methods/trackTransactions/trackTransactions.ts", "../../src/providers/DappProvider/helpers/login/helpers/accountLogin.ts", "../../src/providers/DappProvider/helpers/login/login.ts", "../../src/providers/DappProvider/helpers/signErrors/handleSignError.ts", "../../src/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.ts", "../../src/providers/DappProvider/DappProvider.ts", "../../src/providers/helpers/accountProvider.ts", "../../src/utils/account/refreshAccount.ts", "../../src/store/actions/toasts/toastsActions.ts", "../../src/managers/internal/ToastManager/helpers/LifetimeManager.ts"],
|
|
4
|
-
"sourcesContent": ["import isEqual from 'lodash.isequal';\nimport { DEFAULT_TOAST_LIEFTIME } from 'constants/transactions.constants';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxToastList } from 'lib/sdkDappUi';\nimport { NotificationsFeedManager } from 'managers/NotificationsFeedManager/NotificationsFeedManager';\nimport {\n customToastCloseHandlersDictionary,\n customToastComponentDictionary,\n removeAllCustomToasts,\n removeCustomToast,\n removeTransactionToast,\n addTransactionToast,\n createCustomToast\n} from 'store/actions/toasts/toastsActions';\nimport {\n getIsTransactionFailed,\n getIsTransactionSuccessful,\n getIsTransactionTimedOut\n} from 'store/actions/transactions/transactionStateByStatus';\n\nimport { CustomToastType } from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { IEventBus } from 'types/manager.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { ComponentFactory } from 'utils/ComponentFactory';\nimport { createToastsFromTransactions } from './helpers/createToastsFromTransactions';\nimport { LifetimeManager } from './helpers/LifetimeManager';\nimport { ITransactionToast, ToastEventsEnum } from './types';\n\ninterface IToastManager {\n successfulToastLifetime?: number;\n}\n\nexport class ToastManager {\n private readonly lifetimeManager: LifetimeManager;\n private isCreatingElement = false;\n private static instance: ToastManager;\n private toastsElement: MvxToastList | null = null;\n private transactionToasts: ITransactionToast[] = [];\n private customToasts: CustomToastType[] = [];\n private successfulToastLifetime?: number;\n private storeToastsSubscription: () => void = () => null;\n private readonly notificationsFeedManager: NotificationsFeedManager;\n private eventBusUnsubscribeFunctions: (() => void)[] = [];\n private eventBus: IEventBus<\n ITransactionToast[] | CustomToastType[] | null\n > | null = null;\n\n store = getStore();\n\n constructor() {\n this.destroy();\n this.lifetimeManager = new LifetimeManager();\n\n this.notificationsFeedManager = NotificationsFeedManager.getInstance();\n }\n\n public async init({\n successfulToastLifetime = DEFAULT_TOAST_LIEFTIME\n }: IToastManager = {}) {\n this.successfulToastLifetime = successfulToastLifetime;\n\n this.lifetimeManager.init({ successfulToastLifetime });\n\n await this.updateTransactionToastsList();\n await this.updateCustomToastList();\n\n await this.subscribeToEventBusNotifications();\n\n this.storeToastsSubscription = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n const newToastsWereCreated = !isEqual(\n prevToasts.transactionToasts,\n toasts.transactionToasts\n );\n const checkBatchHasNewData = !isEqual(prevTransactions, transactions);\n\n if (newToastsWereCreated || checkBatchHasNewData) {\n await this.updateTransactionToastsList({\n skipFetchingTransactions: checkBatchHasNewData // transactions were already fetched by `checkBatch`\n });\n }\n\n const newCustomToastsWereCreated = !isEqual(\n prevToasts.customToasts,\n toasts.customToasts\n );\n\n if (newCustomToastsWereCreated) {\n await this.updateCustomToastList();\n }\n }\n );\n }\n\n public static getInstance(): ToastManager {\n if (!ToastManager.instance) {\n ToastManager.instance = new ToastManager();\n }\n return ToastManager.instance;\n }\n\n private handleCompletedTransaction(toastId: string): boolean {\n const { transactions } = this.store.getState();\n const transaction = transactions[toastId];\n\n if (!transaction) {\n return false;\n }\n\n const { status } = transaction;\n const isTimedOut = getIsTransactionTimedOut(status);\n const isFailed = getIsTransactionFailed(status);\n const isSuccessful = getIsTransactionSuccessful(status);\n const isCompleted = isFailed || isSuccessful || isTimedOut;\n\n if (isCompleted) {\n if (this.successfulToastLifetime) {\n this.lifetimeManager.start(toastId);\n }\n return isCompleted;\n }\n\n this.lifetimeManager.stop(toastId);\n return isCompleted;\n }\n\n public async createTransactionToast(\n toastId: string,\n totalDuration: number\n ): Promise<string> {\n const newToastId = addTransactionToast({\n toastId,\n totalDuration\n });\n\n this.handleCompletedTransaction(toastId);\n await this.updateTransactionToastsList();\n return newToastId;\n }\n\n public createCustomToast(toast: CustomToastType): string {\n const toastId = createCustomToast(toast);\n this.updateCustomToastList();\n return toastId;\n }\n\n private async updateTransactionToastsList(props?: {\n skipFetchingTransactions?: boolean;\n }) {\n const {\n toasts: toastList,\n transactions: transactionsSessions,\n account\n } = this.store.getState();\n\n const { pendingTransactionToasts, completedTransactionToasts } =\n await createToastsFromTransactions({\n toastList,\n transactionsSessions,\n account,\n skipFetchingTransactions: props?.skipFetchingTransactions\n });\n\n this.transactionToasts = [\n ...pendingTransactionToasts,\n ...completedTransactionToasts\n ];\n\n for (const toast of toastList.transactionToasts) {\n this.handleCompletedTransaction(toast.toastId);\n }\n\n await this.publishTransactionToasts();\n }\n\n private async updateCustomToastList() {\n const { toasts: toastList } = this.store.getState();\n this.customToasts = [];\n\n for (const toast of toastList.customToasts) {\n const isSimpleToast = 'message' in toast;\n\n const newToast: CustomToastType = isSimpleToast\n ? { ...toast }\n : {\n ...toast,\n instantiateToastElement:\n customToastComponentDictionary[toast.toastId]\n };\n this.customToasts.push(newToast);\n\n if (toast.duration) {\n this.lifetimeManager.startWithCustomDuration(\n toast.toastId,\n toast.duration\n );\n }\n }\n this.eventBus?.publish(\n ToastEventsEnum.CUSTOM_TOAST_DATA_UPDATE,\n this.customToasts\n );\n }\n\n private async createToastListElement(): Promise<MvxToastList | null> {\n if (this.toastsElement) {\n return this.toastsElement;\n }\n\n if (!this.isCreatingElement) {\n this.isCreatingElement = true;\n\n this.toastsElement = await ComponentFactory.create<MvxToastList>({\n name: UITagsEnum.TOAST_LIST\n });\n\n this.isCreatingElement = false;\n }\n\n return this.toastsElement;\n }\n\n private handleTransactionToastClose(toastId: string) {\n const isCompleted = this.handleCompletedTransaction(toastId);\n\n if (isCompleted) {\n removeTransactionToast(toastId);\n }\n }\n\n private async subscribeToEventBusNotifications() {\n const toastsElement = await this.createToastListElement();\n\n if (!toastsElement) {\n return;\n }\n\n this.eventBus = await toastsElement.getEventBus();\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n this.eventBus.subscribe(ToastEventsEnum.CLOSE, this.closeToast.bind(this));\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(\n ToastEventsEnum.CLOSE,\n this.closeToast.bind(this)\n );\n });\n\n this.eventBus.subscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n });\n }\n\n public async showToasts() {\n this.eventBus?.publish(ToastEventsEnum.SHOW, null);\n\n await this.updateCustomToastList();\n await this.updateTransactionToastsList();\n }\n\n public hideToasts() {\n this.eventBus?.publish(ToastEventsEnum.HIDE, null);\n }\n\n private async handleOpenNotificationsFeed() {\n this.notificationsFeedManager.openNotificationsFeed();\n }\n\n public closeToast(toastId: string) {\n const customToast = this.customToasts.find(\n (toast) => toast.toastId === toastId\n );\n\n if (customToast) {\n this.lifetimeManager.stop(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n removeCustomToast(toastId);\n return;\n }\n\n this.handleTransactionToastClose(toastId);\n }\n\n private async publishTransactionToasts() {\n if (\n this.notificationsFeedManager.isNotificationsFeedOpen() &&\n this.eventBus\n ) {\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n this.transactionToasts\n );\n\n this.hideToasts();\n return;\n }\n\n if (!this.eventBus) {\n const toastsElement = await this.createToastListElement();\n\n if (!toastsElement) {\n return;\n }\n\n this.eventBus = await toastsElement.getEventBus();\n }\n\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n this.transactionToasts\n );\n }\n\n public destroy() {\n this.storeToastsSubscription();\n this.lifetimeManager?.destroy();\n this.notificationsFeedManager?.destroy();\n removeAllCustomToasts();\n this.eventBusUnsubscribeFunctions.forEach((unsubscribe) => unsubscribe());\n this.eventBusUnsubscribeFunctions = [];\n }\n}\n", "import isEqual from 'lodash.isequal';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { TransactionsHistoryController } from 'controllers/TransactionsHistoryController';\nimport { ITransactionListItem, MvxNotificationsFeed } from 'lib/sdkDappUi';\nimport { clearCompletedTransactions } from 'store/actions/transactions/transactionsActions';\nimport { getStore } from 'store/store';\nimport { NotificationsFeedEventsEnum } from './types';\nimport { ToastManager } from '../internal';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager/SidePanelBaseManager';\nimport { createToastsFromTransactions } from '../internal/ToastManager/helpers/createToastsFromTransactions';\nimport { ITransactionToast } from '../internal/ToastManager/types';\n\ninterface INotificationsFeedManagerData {\n pendingTransactions: ITransactionToast[];\n historicTransactions: ITransactionListItem[];\n}\n\nconst NOTIFICATIONS_FEED_STORE_SUBSCRIBE = 'NOTIFICATIONS_FEED_STORE_SUBSCRIBE';\n\nexport class NotificationsFeedManager extends SidePanelBaseManager<\n MvxNotificationsFeed,\n INotificationsFeedManagerData,\n NotificationsFeedEventsEnum | typeof NOTIFICATIONS_FEED_STORE_SUBSCRIBE\n> {\n private static instance: NotificationsFeedManager;\n private readonly store = getStore();\n\n protected initialData: INotificationsFeedManagerData = {\n pendingTransactions: [],\n historicTransactions: []\n };\n\n public static getInstance(): NotificationsFeedManager {\n if (!NotificationsFeedManager.instance) {\n NotificationsFeedManager.instance = new NotificationsFeedManager();\n }\n return NotificationsFeedManager.instance;\n }\n\n constructor() {\n super({\n uiDataUpdateEvent: NotificationsFeedEventsEnum.OPEN,\n uiTag: UITagsEnum.NOTIFICATIONS_FEED\n });\n this.data = { ...this.initialData };\n }\n\n public isNotificationsFeedOpen(): boolean {\n return this.isOpen;\n }\n\n /**\n * Open the notifications feed and toggle off the toast manager.\n */\n public async openNotificationsFeed(): Promise<void> {\n const toastManager = ToastManager.getInstance();\n toastManager.hideToasts();\n await this.openUI();\n await this.updateDataAndNotifications();\n\n const storeToastsUnsubscribe = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n if (\n !isEqual(prevToasts.transactionToasts, toasts.transactionToasts) ||\n !isEqual(prevTransactions, transactions)\n ) {\n await this.updateDataAndNotifications();\n }\n }\n );\n this.unsubscribeFunctions.set(NOTIFICATIONS_FEED_STORE_SUBSCRIBE, [\n storeToastsUnsubscribe\n ]);\n\n this.eventBus?.publish(NotificationsFeedEventsEnum.OPEN);\n await this.updateDataAndNotifications();\n }\n\n /**\n * Close the notifications feed and toggle on the toast manager.\n */\n protected async handleCloseUI() {\n const toastManager = ToastManager.getInstance();\n this.closeUI();\n await toastManager.showToasts();\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLOSE,\n this.handleCloseUI.bind(this)\n );\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLEAR,\n this.handleClearNotificationsFeedHistory.bind(this)\n );\n }\n\n protected async updateDataAndNotifications() {\n const { transactions, account, toasts, network } = this.store.getState();\n\n const { pendingTransactionToasts } = await createToastsFromTransactions({\n toastList: toasts,\n transactionsSessions: transactions,\n account\n });\n\n this.data.pendingTransactions = pendingTransactionToasts;\n\n this.data.historicTransactions =\n await TransactionsHistoryController.getTransactionsHistory({\n transactionsSessions: transactions,\n address: account.address,\n explorerAddress: network.network.explorerAddress,\n egldLabel: network.network.egldLabel\n });\n\n await this.updateNotificationsFeed();\n }\n\n private handleClearNotificationsFeedHistory() {\n clearCompletedTransactions();\n this.resetData();\n this.updateNotificationsFeed();\n }\n\n private async updateNotificationsFeed() {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.PENDING_TRANSACTIONS_UPDATE,\n this.data.pendingTransactions\n );\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.TRANSACTIONS_HISTORY_UPDATE,\n this.data.historicTransactions\n );\n }\n}\n", "import BigNumber from 'bignumber.js';\nimport { ToastIconsEnum } from 'managers/internal/ToastManager/helpers/getToastDataStateByStatus';\nimport { ToastManager } from 'managers/internal/ToastManager/ToastManager';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { ProviderTypeEnum } from 'providers/types/providerFactory.types';\nimport { getTokenExpiration } from 'services/nativeAuth/methods/getTokenExpiration';\nimport {\n addressSelector,\n isLoggedInSelector\n} from 'store/selectors/accountSelectors';\nimport { nativeAuthConfigSelector } from 'store/selectors/configSelectors';\nimport { tokenLoginSelector } from 'store/selectors/loginInfoSelectors';\nimport { getStore } from 'store/store';\nimport { getHumanReadableTokenExpirationTime } from './helpers/getHumanReadableTokenExpirationTime';\n\nexport class LogoutManager {\n private static instance: LogoutManager;\n private store = getStore();\n private warningLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private actualLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private plannedLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private plannedLogoutKey: string | null = null;\n\n public static getInstance(): LogoutManager {\n if (!LogoutManager.instance) {\n LogoutManager.instance = new LogoutManager();\n }\n return LogoutManager.instance;\n }\n\n private constructor() {}\n\n public init = async () => {\n if (!this.shouldStart()) {\n return;\n }\n\n const state = this.store.getState();\n const tokenLogin = tokenLoginSelector(state);\n\n const { isExpired: isNativeAuthTokenExpired } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n if (isNativeAuthTokenExpired) {\n const provider = getAccountProvider();\n provider.logout();\n } else {\n this.addPlannedLogout();\n }\n };\n\n public stop = () => {\n clearTimeout(this.warningLogoutTimeoutRef ?? 0);\n clearTimeout(this.plannedLogoutTimeoutRef ?? 0);\n clearTimeout(this.actualLogoutTimeoutRef ?? 0);\n\n this.warningLogoutTimeoutRef = null;\n this.plannedLogoutTimeoutRef = null;\n this.actualLogoutTimeoutRef = null;\n this.plannedLogoutKey = null;\n };\n\n private readonly shouldStart = (): boolean => {\n const state = this.store.getState();\n const tokenLogin = tokenLoginSelector(state);\n const isLoggedIn = isLoggedInSelector(state);\n return Boolean(tokenLogin?.nativeAuthToken && isLoggedIn);\n };\n\n private addPlannedLogout = () => {\n const provider = getAccountProvider();\n const address = addressSelector(this.store.getState());\n const isWebviewLogin = provider.getType() === ProviderTypeEnum.webview;\n\n // prevent unexpected logout if webview login\n if (!address || isWebviewLogin) {\n return;\n }\n\n this.addLogoutWarning();\n\n const tokenLogin = tokenLoginSelector(this.store.getState());\n\n const { secondsUntilExpires, expiresAt } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n // Handle the actual logout functionality.\n const secondsUntilExpiresBN = new BigNumber(String(secondsUntilExpires));\n const plannedLogoutKey = `${address}_${expiresAt}`;\n const plannedLogoutSet = this.plannedLogoutKey === plannedLogoutKey;\n\n const isValidInterval =\n secondsUntilExpires && secondsUntilExpiresBN.isGreaterThan(0);\n\n if (!isValidInterval || plannedLogoutSet) {\n return;\n }\n\n this.plannedLogoutKey = plannedLogoutKey;\n\n clearTimeout(this.plannedLogoutTimeoutRef ?? 0);\n const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);\n\n this.actualLogoutTimeoutRef = setTimeout(() => {\n ToastManager.getInstance().createCustomToast({\n toastId: 'native-auth-logout',\n iconClassName: 'warning',\n title: 'Logging out',\n icon: ToastIconsEnum.times,\n message: 'Your session has expired!'\n });\n this.actualLogoutTimeoutRef = null;\n }, millisecondsUntilLogout.toNumber() - 3000);\n\n this.plannedLogoutTimeoutRef = setTimeout(() => {\n provider.logout();\n this.plannedLogoutTimeoutRef = null;\n this.plannedLogoutKey = null;\n }, millisecondsUntilLogout.toNumber());\n };\n\n private readonly addLogoutWarning = () => {\n if (this.warningLogoutTimeoutRef) {\n return;\n }\n\n const nativeAuthConfig = nativeAuthConfigSelector(this.store.getState());\n const tokenLogin = tokenLoginSelector(this.store.getState());\n\n const { secondsUntilExpires } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n const secondsUntilExpiresBN = new BigNumber(String(secondsUntilExpires));\n const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);\n\n if (\n !secondsUntilExpires ||\n secondsUntilExpiresBN.isLessThanOrEqualTo(0) ||\n !nativeAuthConfig?.tokenExpirationToastWarningSeconds\n ) {\n return;\n }\n\n const logoutWarningOffsetSeconds = new BigNumber(\n nativeAuthConfig?.tokenExpirationToastWarningSeconds ?? 0\n );\n\n const logoutWarningOffsetMilliseconds =\n logoutWarningOffsetSeconds.times(1000);\n\n const millisecondsUntilLogoutWarning = secondsUntilExpiresBN\n .times(1000)\n .minus(logoutWarningOffsetMilliseconds);\n\n const readableMinutesUntilLogout = getHumanReadableTokenExpirationTime(\n millisecondsUntilLogout.toNumber()\n );\n\n const timeoutUntilLogoutWarning =\n millisecondsUntilLogoutWarning.isLessThanOrEqualTo(0)\n ? 0\n : millisecondsUntilLogoutWarning.toNumber();\n\n clearTimeout(this.warningLogoutTimeoutRef ?? 0);\n\n this.warningLogoutTimeoutRef = setTimeout(() => {\n ToastManager.getInstance().createCustomToast({\n toastId: 'native-auth-expired',\n iconClassName: 'warning',\n title: 'Session Expiration Warning',\n icon: ToastIconsEnum.hourglass,\n message: `Your session will expire in ${readableMinutesUntilLogout}!`\n });\n this.warningLogoutTimeoutRef = null;\n }, timeoutUntilLogoutWarning);\n };\n}\n", "import { getTransactionsByHashes } from 'apiCalls/transactions/getTransactionsByHashes';\nimport { getIsLoggedIn } from 'methods/account/getIsLoggedIn';\nimport {\n updateTransactionStatus,\n updateSessionStatus\n} from 'store/actions/transactions/transactionsActions';\nimport { getIsTransactionFailed } from 'store/actions/transactions/transactionStateByStatus';\nimport { getStore } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport {\n TrackedTransactionResultType,\n SignedTransactionType\n} from 'types/transactions.types';\n\nimport { refreshAccount } from 'utils';\nimport { getPendingTransactions } from './getPendingTransactions';\nimport { manageFailedTransactions } from './manageFailedTransactions';\nimport { runSessionCallbacks } from './runSessionCallbacks';\n\nexport interface TransactionStatusTrackerPropsType {\n sessionId: string;\n transactionBatch: SignedTransactionType[];\n isSequential?: boolean;\n}\n\ninterface RetriesType {\n [hash: string]: number;\n}\n\nconst retries: RetriesType = {};\n\ninterface ManageTransactionType {\n serverTransaction: TrackedTransactionResultType;\n sessionId: string;\n isSequential?: boolean;\n}\n\nasync function manageTransaction({\n serverTransaction: transaction,\n sessionId,\n isSequential\n}: ManageTransactionType) {\n const { hash, status, results, invalidTransaction, hasStatusChanged } =\n transaction;\n try {\n const retriesForThisHash = retries[hash];\n if (retriesForThisHash > 30) {\n // consider transaction as stuck after 1 minute\n updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.timedOut\n });\n\n await runSessionCallbacks({\n sessionId,\n status: TransactionBatchStatusesEnum.timedOut\n });\n\n return;\n }\n\n if (\n (invalidTransaction && !isSequential) ||\n status === TransactionBatchStatusesEnum.sent\n ) {\n retries[hash] = retries[hash] ? retries[hash] + 1 : 1;\n return;\n }\n\n // The tx is from a sequential batch.\n // If the transactions before this are not successful then it means that no other tx will be processed\n if (isSequential && !status) {\n const newStatus = updateTransactionStatus({\n sessionId,\n transaction\n });\n await runSessionCallbacks({\n sessionId,\n status: newStatus\n });\n return;\n }\n\n if (hasStatusChanged) {\n const newStatus = updateTransactionStatus({\n sessionId,\n transaction\n });\n\n await runSessionCallbacks({\n sessionId,\n status: newStatus\n });\n }\n\n if (getIsTransactionFailed(status)) {\n await manageFailedTransactions({ sessionId, hash, results });\n }\n } catch (error) {\n console.error(error);\n updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.timedOut\n });\n await runSessionCallbacks({\n sessionId,\n status: TransactionBatchStatusesEnum.timedOut\n });\n }\n}\n\nexport async function checkBatch({\n sessionId,\n transactionBatch: transactions,\n isSequential\n}: TransactionStatusTrackerPropsType) {\n try {\n if (transactions == null) {\n return;\n }\n\n const isLoggedIn = getIsLoggedIn();\n\n const pendingTransactions = getPendingTransactions(transactions);\n\n const serverTransactions =\n await getTransactionsByHashes(pendingTransactions);\n\n for (const serverTransaction of serverTransactions) {\n await manageTransaction({\n serverTransaction,\n sessionId,\n isSequential\n });\n }\n\n const hasCompleted = serverTransactions.every(\n (tx) => tx.status !== TransactionServerStatusesEnum.pending\n );\n\n if (!hasCompleted) {\n return;\n }\n\n if (isLoggedIn) {\n await refreshAccount();\n }\n\n // Call the onSuccess or onFail callback only if the transactions are sent normally (not using batch transactions mechanism).\n // The batch transactions mechanism will call the callbacks separately.\n\n const { transactions: sessions } = getStore().getState();\n const session = sessions[sessionId];\n\n const isSuccessful = session.transactions.every(\n (tx) => tx.status === TransactionServerStatusesEnum.success\n );\n\n if (isSuccessful) {\n return updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.success\n });\n }\n\n const isFailed = session.transactions.some(\n (tx) => tx.status === TransactionServerStatusesEnum.fail\n );\n\n if (isFailed) {\n return updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.fail\n });\n }\n\n const isInvalid = session.transactions.every(\n (tx) => tx.status === TransactionServerStatusesEnum.notExecuted\n );\n\n if (isInvalid) {\n return updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.invalid\n });\n }\n } catch (error) {\n console.error(error);\n }\n}\n", "import { pendingTransactionsSessionsSelector } from 'store/selectors/transactionsSelector';\nimport { getState } from 'store/store';\nimport { checkBatch } from './checkBatch';\n\nexport async function checkTransactionStatus() {\n const pendingSessions = pendingTransactionsSessionsSelector(getState());\n if (Object.keys(pendingSessions).length > 0) {\n for (const [sessionId, { transactions }] of Object.entries(\n pendingSessions\n )) {\n await checkBatch({\n sessionId,\n transactionBatch: transactions\n });\n }\n }\n}\n", "import { subscriptions } from 'constants/storage.constants';\nimport {\n WebsocketConnectionStatusEnum,\n websocketConnection\n} from 'constants/websocket.constants';\nimport { websocketEventSelector } from 'store/selectors/accountSelectors';\nimport { getStore } from 'store/store';\nimport { SubscriptionsEnum } from 'types/subscriptions.type';\nimport { checkTransactionStatus } from './helpers/checkTransactionStatus';\nimport { getPollingInterval } from './helpers/getPollingInterval';\n\n/**\n * Tracks transactions using websocket or polling\n * @returns stopTransactionsTracking function\n */\nexport async function trackTransactions() {\n const store = getStore();\n const pollingInterval = getPollingInterval();\n let pollingIntervalRef: ReturnType<typeof setTimeout> | null = null;\n let websocketStatusCheckIntervalRef: ReturnType<typeof setTimeout> | null =\n null;\n let timestamp = websocketEventSelector(store.getState())?.timestamp;\n\n const recheckStatus = () => {\n checkTransactionStatus();\n };\n\n const startPolling = () => {\n pollingIntervalRef ??= setInterval(recheckStatus, pollingInterval);\n };\n\n const stopPolling = () => {\n if (pollingIntervalRef) {\n clearInterval(pollingIntervalRef);\n pollingIntervalRef = null;\n }\n };\n\n const setupWebSocketTracking = () => {\n stopPolling();\n const unsubscribeWebsocketEvent = store.subscribe(\n ({ account: { websocketEvent } }) => {\n if (websocketEvent?.message && timestamp !== websocketEvent.timestamp) {\n timestamp = websocketEvent.timestamp;\n recheckStatus();\n }\n }\n );\n\n subscriptions.set(\n SubscriptionsEnum.websocketEventReceived,\n unsubscribeWebsocketEvent\n );\n };\n\n const startWatchingWebsocketStatus = () => {\n if (\n websocketConnection.status !==\n WebsocketConnectionStatusEnum.NOT_INITIALIZED ||\n websocketStatusCheckIntervalRef\n ) {\n return;\n }\n\n websocketStatusCheckIntervalRef = setInterval(() => {\n if (\n websocketConnection.status === WebsocketConnectionStatusEnum.COMPLETED\n ) {\n clearInterval(websocketStatusCheckIntervalRef!);\n websocketStatusCheckIntervalRef = null;\n setupWebSocketTracking();\n }\n }, 1000);\n };\n\n // Initial execution\n recheckStatus();\n\n const stopTransactionsTracking = () => {\n stopPolling();\n if (websocketStatusCheckIntervalRef) {\n clearInterval(websocketStatusCheckIntervalRef);\n websocketStatusCheckIntervalRef = null;\n }\n };\n\n const unsubscribeWebsocketStatus = store.subscribe(\n ({ account: { address }, config: { websocketStatus } }, prevState) => {\n const hasStatusChange =\n prevState.config.websocketStatus !== websocketStatus;\n\n if (!hasStatusChange) {\n return;\n }\n\n switch (websocketStatus) {\n case WebsocketConnectionStatusEnum.COMPLETED:\n setupWebSocketTracking();\n break;\n case WebsocketConnectionStatusEnum.PENDING:\n startPolling();\n startWatchingWebsocketStatus();\n break;\n default:\n address ? startPolling() : stopTransactionsTracking();\n break;\n }\n }\n );\n\n subscriptions.set(\n SubscriptionsEnum.websocketStatusChanged,\n unsubscribeWebsocketStatus\n );\n subscriptions.set(\n SubscriptionsEnum.websocketEventReceived,\n stopTransactionsTracking\n );\n return { stopTransactionsTracking };\n}\n", "import { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { setGasStationMetadata } from 'methods/initApp/gastStationMetadata/setGasStationMetadata';\nimport { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { loginAction } from 'store/actions';\nimport { setAccount } from 'store/actions/account';\nimport { AccountType } from 'types/account.types';\nimport { fetchAccount } from 'utils/account/fetchAccount';\nimport { trimUsernameDomain } from 'utils/account/trimUsernameDomain';\n\ninterface IAccountLoginProps {\n address: string;\n provider: IProvider;\n apiAddress: string;\n}\n\nexport async function accountLogin({\n address,\n provider,\n apiAddress\n}: IAccountLoginProps) {\n const account = await fetchAccount({\n address,\n baseURL: apiAddress\n });\n\n if (!account) {\n throw new Error('Account not found');\n }\n\n loginAction({\n address,\n providerType: provider.getType()\n });\n\n const newAccount: AccountType = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(newAccount);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n if (account.shard != null) {\n await setGasStationMetadata({\n shard: Number(account.shard),\n apiAddress\n });\n }\n}\n", "import { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { nativeAuth } from 'services/nativeAuth';\nimport { decodeNativeAuthToken } from 'services/nativeAuth/helpers/decodeNativeAuthToken';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { setTokenLogin } from 'store/actions/loginInfo/loginInfoActions';\nimport { nativeAuthConfigSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { accountLogin } from './helpers/accountLogin';\nimport { extractAddressFromToken } from './helpers/extractAddressFromToken';\n\nasync function loginWithoutNativeToken(provider: IProvider) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n await provider.login();\n\n const address = await provider.getAddress();\n\n if (!address) {\n throw new Error('Address not found');\n }\n\n await accountLogin({ address, provider, apiAddress });\n\n return {\n address\n };\n}\n\nasync function loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token\n}: {\n provider: IProvider;\n nativeAuthConfig: NativeAuthConfigType;\n token?: string;\n}) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n const nativeAuthClient = nativeAuth(nativeAuthConfig);\n let loginToken = token;\n\n if (!loginToken) {\n loginToken = await nativeAuthClient.initialize({\n noCache: true\n });\n }\n\n const { address, signature, ...loginResult } = await provider.login({\n token: loginToken\n });\n\n if (!address) {\n console.warn('Login cancelled.');\n return null;\n }\n\n if (!signature) {\n console.error('Failed to sign login token');\n return null;\n }\n\n // nativeAuthToken received from hub login\n const decodedToken = decodeNativeAuthToken(loginResult?.accessToken);\n\n const nativeAuthToken = decodedToken\n ? loginResult.accessToken\n : nativeAuthClient.getToken({\n address,\n token: loginToken,\n signature\n });\n\n setTokenLogin({\n loginToken,\n signature,\n nativeAuthToken\n });\n\n const extractedAddress = await extractAddressFromToken({\n loginToken,\n extraInfoData: {\n multisig: loginResult?.multisig,\n impersonate: loginResult?.impersonate\n },\n address\n });\n\n await accountLogin({\n address: extractedAddress,\n provider,\n apiAddress\n });\n\n return {\n address: extractedAddress,\n signature\n };\n}\n\nexport async function login(provider: IProvider, options?: { token?: string }) {\n const nativeAuthConfig = nativeAuthConfigSelector(getState());\n\n if (nativeAuthConfig) {\n const data = await loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token: options?.token\n });\n return data;\n }\n\n const { address } = await loginWithoutNativeToken(provider);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n return { address, signature: '' };\n}\n", "import {\n CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n CANCEL_TRANSACTION_TOAST_ID,\n ERROR_SIGNING_TOAST_ID\n} from 'constants/transactions.constants';\nimport { ToastIconsEnum } from 'managers/internal/ToastManager/helpers/getToastDataStateByStatus';\nimport { createCustomToast } from 'store/actions';\nimport { SigningErrorsEnum, SigningWarningsEnum } from 'types/enums.types';\n\nconst states = {\n error: {\n title: SigningErrorsEnum.errorSigning.toString(),\n iconClassName: 'danger',\n toastId: `${ERROR_SIGNING_TOAST_ID}-${Date.now()}`\n },\n warning: {\n title: SigningWarningsEnum.cancelled.toString(),\n iconClassName: 'warning',\n toastId: `${CANCEL_TRANSACTION_TOAST_ID}-${Date.now()}`\n }\n};\n\nconst errorsMap = {\n extensionResponse: 'Unable to sign transactions', // extension\n 'Transaction canceled': 'Transaction canceled', // web wallet\n 'cancelled by user': 'Transaction signing cancelled by user', // custom\n 'denied by the user': 'Transaction signing denied by the user' // ledger\n};\n\nconst getUserError = (error: string) => {\n for (const [key, value] of Object.entries(errorsMap)) {\n if (error.includes(key)) {\n return value;\n }\n }\n return SigningErrorsEnum.errorSigning;\n};\n\nexport function handleSignError(\n error: unknown,\n type: 'error' | 'warning' = 'error'\n) {\n const originalError = (error as Error)?.message;\n const errorMessage = getUserError(originalError);\n\n const isKnownError = errorMessage !== SigningErrorsEnum.errorSigning;\n\n const errorType = isKnownError ? 'warning' : type;\n\n const state = Object.keys(states).includes(errorType)\n ? states[errorType]\n : states.error;\n\n const { toastId, iconClassName, title } = state;\n\n createCustomToast({\n toastId,\n duration: CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n icon: ToastIconsEnum.times,\n iconClassName,\n message: errorMessage,\n title\n });\n\n return errorMessage;\n}\n", "import {\n Address,\n Transaction,\n TransactionOptions,\n TransactionVersion\n} from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport {\n IProvider,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { setAccountNonce } from 'store/actions';\nimport { refreshAccount } from 'utils';\nimport { computeNonces } from '../computeNonces/computeNonces';\n\nexport type SignTransactionsOptionsType = {\n skipGuardian?: boolean;\n};\n\ntype SignTransactionsType = {\n provider: IProvider;\n transactions: Transaction[];\n options?: SignTransactionsOptionsType;\n};\n\nexport async function signTransactionsWithProvider({\n provider,\n transactions,\n options = {}\n}: SignTransactionsType): Promise<Transaction[]> {\n await refreshAccount();\n const { isGuarded, activeGuardianAddress, nonce } = getAccount();\n const isLedger = provider.getType() === ProviderTypeEnum.ledger;\n\n const transactionsWithComputedNonce = computeNonces({\n latestNonce: nonce,\n transactions\n });\n\n const transactionsToSign =\n activeGuardianAddress && isGuarded && !options.skipGuardian\n ? transactionsWithComputedNonce?.map((transaction) => {\n transaction.version = TransactionVersion.withTxOptions().valueOf();\n transaction.options = TransactionOptions.withOptions({\n guarded: true,\n ...(isLedger ? { hashSign: true } : {})\n }).valueOf();\n\n transaction.guardian = Address.newFromBech32(activeGuardianAddress);\n\n return transaction;\n })\n : transactionsWithComputedNonce;\n\n const signedTransactions: Transaction[] =\n (await provider.signTransactions(transactionsToSign)) ?? [];\n\n setAccountNonce(nonce + signedTransactions.length);\n\n return signedTransactions;\n}\n", "import { Message, Transaction } from 'lib/sdkCore';\nimport { LogoutManager } from 'managers/LogoutManager/LogoutManager';\nimport { setAccountProvider } from 'providers/helpers/accountProvider';\nimport { setProviderType } from 'store/actions/loginInfo/loginInfoActions';\nimport { IProvider } from '../types/providerFactory.types';\nimport { login } from './helpers/login/login';\nimport { logout } from './helpers/logout/logout';\nimport { handleSignError } from './helpers/signErrors/handleSignError';\nimport { signMessageWithProvider } from './helpers/signMessage/signMessageWithProvider';\nimport {\n verifyMessage,\n VerifyMessageReturnType\n} from './helpers/signMessage/verifyMessage';\nimport {\n signTransactionsWithProvider,\n SignTransactionsOptionsType\n} from './helpers/signTransactions/signTransactionsWithProvider';\n\nexport class DappProvider {\n private provider: IProvider;\n private _isLoggingOut = false;\n\n constructor(provider: IProvider) {\n this.provider = provider;\n }\n\n init(): Promise<boolean> {\n return this.provider.init();\n }\n\n async login(options?: { token?: string }) {\n const data = await login(this.provider, options);\n setProviderType(this.provider.getType());\n setAccountProvider(this);\n LogoutManager.getInstance().init();\n return data;\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n async logout(\n options = {\n shouldBroadcastLogoutAcrossTabs: true\n }\n ): Promise<boolean> {\n if (this._isLoggingOut) {\n console.warn('Logout already in progress');\n return false;\n }\n\n this._isLoggingOut = true;\n\n const isLoggedOut = await logout({ provider: this.provider, options });\n\n this._isLoggingOut = false;\n\n return isLoggedOut;\n }\n\n getType() {\n return this.provider.getType();\n }\n\n /**\n * @returns The original provider instance.\n */\n getProvider() {\n return this.provider;\n }\n\n async signTransactions(\n transactions: Transaction[],\n options?: SignTransactionsOptionsType\n ): Promise<Transaction[]> {\n try {\n const signedTransactions = await signTransactionsWithProvider({\n provider: this.provider,\n transactions,\n options\n });\n return signedTransactions;\n } catch (error) {\n const errorMessage = handleSignError(error);\n throw new Error(errorMessage);\n }\n }\n\n async signMessage(\n message: Message,\n options?: {\n hasConsentPopup?: boolean;\n }\n ): Promise<Message | null> {\n try {\n const signedMessage = await signMessageWithProvider({\n provider: this.provider,\n message,\n options\n });\n return signedMessage;\n } catch (error) {\n const errorMessage = handleSignError(error, 'warning');\n throw new Error(errorMessage);\n }\n }\n\n /**\n * @param signedMessage - The signed message to verify in form of a JSON string with `address`, `message` and `signature` properties.\n * @returns The verification result with `isVerified`, `message` and `address` properties.\n */\n async verifyMessage(signedMessage: string): Promise<VerifyMessageReturnType> {\n return await verifyMessage(signedMessage);\n }\n\n cancelLogin(): void {\n this.provider.cancelLogin?.();\n }\n}\n", "import { IProvider } from 'providers/types/providerFactory.types';\nimport { DappProvider } from '../DappProvider';\nimport { emptyProvider } from './emptyProvider';\n\nexport type ProvidersType = IProvider;\n\nlet accountProvider: DappProvider | null = null;\n\nexport function setAccountProvider<TProvider extends DappProvider | null>(\n provider: TProvider\n) {\n accountProvider = provider;\n}\n\nexport function getAccountProvider(): DappProvider {\n return accountProvider || new DappProvider(emptyProvider);\n}\n", "import { getAddress } from 'methods/account/getAddress';\nimport { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { setAccount } from 'store/actions';\nimport { fetchAccount } from './fetchAccount';\nimport { trimUsernameDomain } from './trimUsernameDomain';\n\nconst setNewAccount = async () => {\n try {\n const address = getAddress();\n const { network } = getNetworkConfig();\n\n try {\n const account = await fetchAccount({\n address,\n baseURL: network.apiAddress\n });\n\n if (account != null) {\n const accountData = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(accountData);\n\n return accountData;\n }\n } catch (e) {\n console.error('Failed getting account ', e);\n }\n } catch (e) {\n console.error('Failed getting address ', e);\n }\n\n return null;\n};\n\nexport async function refreshAccount() {\n const provider = getAccountProvider();\n\n if (provider == null) {\n throw 'Provider not initialized';\n }\n\n try {\n if (!provider.init) {\n throw 'Current provider does not have init() function';\n }\n\n const initialized = await provider.init();\n\n if (!initialized) {\n return;\n }\n\n const account = await setNewAccount();\n\n return account;\n } catch (e) {\n console.error('Failed initializing provider ', e);\n }\n\n return undefined;\n}\n", "import {\n CustomToastType,\n IComponentToast\n} from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { getUnixTimestamp, getUnixTimestampWithAddedMilliseconds } from 'utils';\n\nexport const customToastComponentDictionary: Record<\n string,\n IComponentToast['instantiateToastElement']\n> = {};\nexport const customToastCloseHandlersDictionary: Record<string, () => void> =\n {};\n\nexport const addCustomToast = (\n customToast: CustomToastType,\n currentToastId?: string\n) => {\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.customToasts.length > 0\n ? Math.max(\n ...state.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n const toastId = currentToastId ?? `custom-toast-${lastToastIndex + 1}`;\n\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const newToast: CustomToastType = {\n ...customToast,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = newToast;\n return;\n }\n\n state.customToasts.push({\n ...newToast,\n toastId\n });\n },\n false,\n 'addCustomToast'\n );\n};\n\nexport const removeCustomToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = state.customToasts.filter(\n (toast) => toast.toastId !== toastId\n );\n },\n false,\n 'removeCustomToast'\n );\n};\n\nexport const removeAllCustomToasts = () => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = [];\n },\n false,\n 'removeAllCustomToasts'\n );\n};\n\nexport const removeAllTransactionToasts = () => {\n getStore().setState(({ toasts: state }) => {\n state.transactionToasts = [];\n });\n};\n\nexport const addTransactionToast = ({\n toastId,\n totalDuration\n}: {\n toastId: string;\n totalDuration: number;\n}): string => {\n let newToastId: string = '';\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.transactionToasts.length > 0\n ? Math.max(\n ...state.transactionToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n newToastId = toastId ?? `transaction-toast-${lastToastIndex + 1}`;\n\n state.transactionToasts.push({\n startTime: getUnixTimestamp(),\n endTime: getUnixTimestampWithAddedMilliseconds(totalDuration),\n toastId: newToastId\n });\n },\n false,\n 'addTransactionToast'\n );\n\n return newToastId;\n};\n\nexport const removeTransactionToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.transactionToasts = state.transactionToasts.filter((toast) => {\n return toast.toastId !== toastId;\n });\n },\n false,\n 'removeTransactionToast'\n );\n\n delete customToastCloseHandlersDictionary[toastId];\n delete customToastComponentDictionary[toastId];\n};\n\nexport const createCustomToast = (props: CustomToastType) => {\n const { toasts } = getStore().getState();\n\n const lastToastIndex =\n toasts.customToasts.length > 0\n ? Math.max(\n ...toasts.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n\n const toastId = props.toastId || `custom-toast-${lastToastIndex + 1}`;\n\n if (props.onClose) {\n customToastCloseHandlersDictionary[toastId] = props.onClose;\n }\n\n if (props.instantiateToastElement) {\n customToastComponentDictionary[toastId] = props.instantiateToastElement;\n\n getStore().setState(\n ({ toasts: state }) => {\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const toast: CustomToastType = {\n ...props,\n instantiateToastElement: null,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = toast;\n } else {\n state.customToasts.push(toast);\n }\n },\n false,\n 'createCustomToast'\n );\n\n return toastId;\n }\n\n addCustomToast(props, toastId);\n return toastId;\n};\n", "import {\n customToastCloseHandlersDictionary,\n removeCustomToast,\n removeTransactionToast\n} from 'store/actions/toasts/toastsActions';\n\ninterface IToastProgressManagerParams {\n successfulToastLifetime?: number;\n}\n\nconst DEFAULT_SUCCESSFUL_TOAST_LIFETIME = 10_000;\n\nexport class LifetimeManager {\n private timeoutIntervals: Map<string, ReturnType<typeof setTimeout>> =\n new Map();\n private successfulToastLifetime: number = DEFAULT_SUCCESSFUL_TOAST_LIFETIME;\n\n constructor() {}\n\n public init({ successfulToastLifetime }: IToastProgressManagerParams) {\n this.successfulToastLifetime =\n successfulToastLifetime || DEFAULT_SUCCESSFUL_TOAST_LIFETIME;\n }\n\n public start = (toastId: string) => {\n this.stop(toastId);\n\n if (this.successfulToastLifetime <= 0) {\n return;\n }\n\n const timeout = setTimeout(() => {\n removeTransactionToast(toastId);\n }, this.successfulToastLifetime);\n\n this.timeoutIntervals.set(toastId, timeout);\n };\n\n public startWithCustomDuration = (toastId: string, duration: number) => {\n this.stop(toastId);\n\n if (duration <= 0) {\n return;\n }\n\n const timeout = setTimeout(() => {\n removeCustomToast(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n }, duration);\n\n this.timeoutIntervals.set(toastId, timeout);\n };\n\n public stop = (toastId: string) => {\n const timeout = this.timeoutIntervals.get(toastId);\n if (timeout) {\n clearTimeout(timeout);\n this.timeoutIntervals.delete(toastId);\n }\n };\n\n public destroy() {\n this.timeoutIntervals.forEach((interval) => clearTimeout(interval));\n this.timeoutIntervals.clear();\n }\n}\n"],
|
|
5
|
-
"mappings": "s5DAAA,OAAOA,MAAa,iBCApB,OAAOC,OAAa,iBAiBpB,IAAMC,GAAqC,qCAE9BC,EAAN,MAAMC,UAAiCC,EAI5C,CAgBA,aAAc,CACZ,MAAM,CACJ,4CACA,8BACF,CAAC,EAlBH,KAAiB,MAAQC,EAAS,EAElC,KAAU,YAA6C,CACrD,oBAAqB,CAAC,EACtB,qBAAsB,CAAC,CACzB,EAcE,KAAK,KAAO,CAAE,GAAG,KAAK,WAAY,CACpC,CAbA,OAAc,aAAwC,CACpD,OAAKF,EAAyB,WAC5BA,EAAyB,SAAW,IAAIA,GAEnCA,EAAyB,QAClC,CAUO,yBAAmC,CACxC,OAAO,KAAK,MACd,CAKA,MAAa,uBAAuC,CAC7BG,EAAa,YAAY,EACjC,WAA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,CAEO,YAAa,CAClB,KAAK,UAAU,0BAA8B,IAAI,CACnD,CAEA,MAAc,6BAA8B,CAC1C,KAAK,yBAAyB,sBAAsB,CACtD,CAEO,WAAW1B,EAAiB,CAKjC,GAJoB,KAAK,aAAa,KACnCa,GAAUA,EAAM,UAAYb,CAC/B,EAEiB,CACf,KAAK,gBAAgB,KAAKA,CAAO,EACjC,IAAM2B,EAAcC,EAAmC5B,CAAO,EAC9D2B,IAAc,EACdE,EAAkB7B,CAAO,EACzB,MACF,CAEA,KAAK,4BAA4BA,CAAO,CAC1C,CAEA,MAAc,0BAA2B,CACvC,GACE,KAAK,yBAAyB,wBAAwB,GACtD,KAAK,SACL,CACA,KAAK,SAAS,wCAEZ,KAAK,iBACP,EAEA,KAAK,WAAW,EAChB,MACF,CAEA,GAAI,CAAC,KAAK,SAAU,CAClB,IAAM0B,EAAgB,MAAM,KAAK,uBAAuB,EAExD,GAAI,CAACA,EACH,OAGF,KAAK,SAAW,MAAMA,EAAc,YAAY,CAClD,CAEA,KAAK,SAAS,wCAEZ,KAAK,iBACP,CACF,CAEO,SAAU,CACf,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,QAAQ,EAC9B,KAAK,0BAA0B,QAAQ,EACvCI,GAAsB,EACtB,KAAK,6BAA6B,QAASC,GAAgBA,EAAY,CAAC,EACxE,KAAK,6BAA+B,CAAC,CACvC,CACF",
|
|
6
|
-
"names": ["isEqual", "isEqual", "NOTIFICATIONS_FEED_STORE_SUBSCRIBE", "NotificationsFeedManager", "_NotificationsFeedManager", "SidePanelBaseManager", "getStore", "ToastManager", "storeToastsUnsubscribe", "toasts", "transactions", "prevToasts", "prevTransactions", "isEqual", "toastManager", "account", "network", "pendingTransactionToasts", "createToastsFromTransactions", "TransactionsHistoryController", "clearCompletedTransactions", "BigNumber", "LogoutManager", "_LogoutManager", "getStore", "state", "tokenLogin", "tokenLoginSelector", "isNativeAuthTokenExpired", "getTokenExpiration", "getAccountProvider", "isLoggedIn", "isLoggedInSelector", "provider", "address", "addressSelector", "isWebviewLogin", "ProviderTypeEnum", "secondsUntilExpires", "expiresAt", "secondsUntilExpiresBN", "BigNumber", "plannedLogoutKey", "plannedLogoutSet", "millisecondsUntilLogout", "ToastManager", "nativeAuthConfig", "nativeAuthConfigSelector", "logoutWarningOffsetMilliseconds", "millisecondsUntilLogoutWarning", "readableMinutesUntilLogout", "getHumanReadableTokenExpirationTime", "timeoutUntilLogoutWarning", "retries", "manageTransaction", "transaction", "sessionId", "isSequential", "hash", "status", "results", "invalidTransaction", "hasStatusChanged", "updateSessionStatus", "runSessionCallbacks", "newStatus", "updateTransactionStatus", "getIsTransactionFailed", "manageFailedTransactions", "error", "checkBatch", "transactions", "isLoggedIn", "getIsLoggedIn", "pendingTransactions", "getPendingTransactions", "serverTransactions", "getTransactionsByHashes", "serverTransaction", "tx", "refreshAccount", "sessions", "getStore", "session", "checkTransactionStatus", "pendingSessions", "pendingTransactionsSessionsSelector", "getState", "sessionId", "transactions", "checkBatch", "trackTransactions", "store", "getStore", "pollingInterval", "getPollingInterval", "pollingIntervalRef", "websocketStatusCheckIntervalRef", "timestamp", "websocketEventSelector", "recheckStatus", "checkTransactionStatus", "startPolling", "stopPolling", "setupWebSocketTracking", "unsubscribeWebsocketEvent", "websocketEvent", "subscriptions", "startWatchingWebsocketStatus", "websocketConnection", "stopTransactionsTracking", "unsubscribeWebsocketStatus", "address", "websocketStatus", "prevState", "accountLogin", "address", "provider", "apiAddress", "account", "fetchAccount", "loginAction", "newAccount", "trimUsernameDomain", "getLatestNonce", "setAccount", "registerWebsocketListener", "trackTransactions", "setGasStationMetadata", "loginWithoutNativeToken", "provider", "apiAddress", "getNetworkConfig", "address", "accountLogin", "loginWithNativeToken", "nativeAuthConfig", "token", "nativeAuthClient", "nativeAuth", "loginToken", "signature", "loginResult", "nativeAuthToken", "decodeNativeAuthToken", "setTokenLogin", "extractedAddress", "extractAddressFromToken", "login", "options", "nativeAuthConfigSelector", "getState", "registerWebsocketListener", "trackTransactions", "states", "ERROR_SIGNING_TOAST_ID", "CANCEL_TRANSACTION_TOAST_ID", "errorsMap", "getUserError", "error", "key", "value", "handleSignError", "type", "originalError", "errorMessage", "errorType", "state", "toastId", "iconClassName", "title", "createCustomToast", "signTransactionsWithProvider", "provider", "transactions", "options", "refreshAccount", "isGuarded", "activeGuardianAddress", "nonce", "getAccount", "isLedger", "ProviderTypeEnum", "transactionsWithComputedNonce", "computeNonces", "transactionsToSign", "transaction", "TransactionVersion", "TransactionOptions", "Address", "signedTransactions", "setAccountNonce", "DappProvider", "provider", "options", "data", "login", "setProviderType", "setAccountProvider", "LogoutManager", "isLoggedOut", "logout", "transactions", "signTransactionsWithProvider", "error", "errorMessage", "handleSignError", "message", "signMessageWithProvider", "signedMessage", "verifyMessage", "accountProvider", "setAccountProvider", "provider", "getAccountProvider", "DappProvider", "emptyProvider", "setNewAccount", "address", "getAddress", "network", "getNetworkConfig", "account", "fetchAccount", "accountData", "trimUsernameDomain", "getLatestNonce", "setAccount", "e", "refreshAccount", "provider", "getAccountProvider", "customToastComponentDictionary", "customToastCloseHandlersDictionary", "addCustomToast", "customToast", "currentToastId", "getStore", "state", "lastToastIndex", "toast", "toastId", "existingToastIndex", "newToast", "removeCustomToast", "removeAllCustomToasts", "removeAllTransactionToasts", "addTransactionToast", "totalDuration", "newToastId", "getUnixTimestamp", "getUnixTimestampWithAddedMilliseconds", "removeTransactionToast", "createCustomToast", "props", "toasts", "DEFAULT_SUCCESSFUL_TOAST_LIFETIME", "LifetimeManager", "toastId", "timeout", "removeTransactionToast", "duration", "removeCustomToast", "handleClose", "customToastCloseHandlersDictionary", "successfulToastLifetime", "interval", "ToastManager", "_ToastManager", "getStore", "LifetimeManager", "NotificationsFeedManager", "successfulToastLifetime", "toasts", "transactions", "prevToasts", "prevTransactions", "newToastsWereCreated", "isEqual", "checkBatchHasNewData", "toastId", "transaction", "status", "isTimedOut", "getIsTransactionTimedOut", "isFailed", "getIsTransactionFailed", "isSuccessful", "getIsTransactionSuccessful", "isCompleted", "totalDuration", "newToastId", "addTransactionToast", "toast", "createCustomToast", "props", "toastList", "transactionsSessions", "account", "pendingTransactionToasts", "completedTransactionToasts", "createToastsFromTransactions", "newToast", "customToastComponentDictionary", "ComponentFactory", "removeTransactionToast", "toastsElement", "handleClose", "customToastCloseHandlersDictionary", "removeCustomToast", "removeAllCustomToasts", "unsubscribe"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-7CA6UKPK.mjs";import{b as T}from"./chunk-6DWUEZO7.mjs";import{c}from"./chunk-TI37DKBT.mjs";function D({transactions:i}){let e=[],o={};return!i||i.length===0?{allTransactions:e,parsedTransactionsByDataField:o}:(i.forEach((n,m)=>{let p=c(n.data.toString()??""),s=u(p);if(s.length>0)s.forEach((t,a)=>{let r=a===s.length-1,l={transaction:n,multiTxData:t.data,transactionIndex:a,needsSigning:r};o[t.data]={tokenId:t.token?t.token:"",amount:t.amount?t.amount:"",type:t.type,nonce:t.nonce?t.nonce:"",multiTxData:t.data,receiver:t.receiver},e.push(l)});else{let t=c(n.data.toString()??""),{tokenId:a,amount:r}=T(t);a&&(o[t]={tokenId:a,amount:r,receiver:n.receiver.toBech32()}),e.push({transaction:n,transactionIndex:m,multiTxData:t,needsSigning:!0})}}),{allTransactions:e,parsedTransactionsByDataField:o})}export{D as a};
|
|
2
|
-
//# sourceMappingURL=chunk-RBJ3O63I.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Transaction } from '@multiversx/sdk-core';\n\nimport {\n MultiSignTransactionType,\n TransactionsDataTokensType\n} from 'types/transactions.types';\nimport { decodeBase64 } from 'utils/decoders/base64Utils';\nimport { getTokenFromData } from './getTokenFromData';\nimport { parseMultiEsdtTransferData } from './parseMultiEsdtTransferData';\n\nexport function parseMultiEsdtTransferDataForMultipleTransactions({\n transactions\n}: {\n transactions?: Transaction[];\n}) {\n const allTransactions: MultiSignTransactionType[] = [];\n const parsedTransactionsByDataField: TransactionsDataTokensType = {};\n\n if (!transactions || transactions.length === 0) {\n return {\n allTransactions,\n parsedTransactionsByDataField\n };\n }\n\n transactions.forEach((transaction, transactionIndex) => {\n const txData = decodeBase64(transaction.data.toString() ?? '');\n const multiTxs = parseMultiEsdtTransferData(txData);\n\n if (multiTxs.length > 0) {\n multiTxs.forEach((trx, idx) => {\n const isLastView = idx === multiTxs.length - 1;\n\n const newTx: MultiSignTransactionType = {\n transaction,\n multiTxData: trx.data,\n transactionIndex: idx,\n needsSigning: isLastView\n };\n\n parsedTransactionsByDataField[trx.data] = {\n tokenId: trx.token ? trx.token : '',\n amount: trx.amount ? trx.amount : '',\n type: trx.type,\n nonce: trx.nonce ? trx.nonce : '',\n multiTxData: trx.data,\n receiver: trx.receiver\n };\n\n allTransactions.push(newTx);\n });\n } else {\n const transactionData = decodeBase64(transaction.data.toString() ?? '');\n\n const { tokenId, amount } = getTokenFromData(transactionData);\n\n if (tokenId) {\n parsedTransactionsByDataField[transactionData] = {\n tokenId,\n amount,\n receiver: transaction.receiver.toBech32()\n };\n }\n allTransactions.push({\n transaction,\n transactionIndex,\n multiTxData: transactionData,\n needsSigning: true\n });\n }\n });\n\n return {\n allTransactions,\n parsedTransactionsByDataField\n };\n}\n"],
|
|
5
|
-
"mappings": "sHAUO,SAASA,EAAkD,CAChE,aAAAC,CACF,EAEG,CACD,IAAMC,EAA8C,CAAC,EAC/CC,EAA4D,CAAC,EAEnE,MAAI,CAACF,GAAgBA,EAAa,SAAW,EACpC,CACL,gBAAAC,EACA,8BAAAC,CACF,GAGFF,EAAa,QAAQ,CAACG,EAAaC,IAAqB,CACtD,IAAMC,EAASC,EAAaH,EAAY,KAAK,SAAS,GAAK,EAAE,EACvDI,EAAWC,EAA2BH,CAAM,EAElD,GAAIE,EAAS,OAAS,EACpBA,EAAS,QAAQ,CAACE,EAAKC,IAAQ,CAC7B,IAAMC,EAAaD,IAAQH,EAAS,OAAS,EAEvCK,EAAkC,CACtC,YAAAT,EACA,YAAaM,EAAI,KACjB,iBAAkBC,EAClB,aAAcC,CAChB,EAEAT,EAA8BO,EAAI,IAAI,EAAI,CACxC,QAASA,EAAI,MAAQA,EAAI,MAAQ,GACjC,OAAQA,EAAI,OAASA,EAAI,OAAS,GAClC,KAAMA,EAAI,KACV,MAAOA,EAAI,MAAQA,EAAI,MAAQ,GAC/B,YAAaA,EAAI,KACjB,SAAUA,EAAI,QAChB,EAEAR,EAAgB,KAAKW,CAAK,CAC5B,CAAC,MACI,CACL,IAAMC,EAAkBP,EAAaH,EAAY,KAAK,SAAS,GAAK,EAAE,EAEhE,CAAE,QAAAW,EAAS,OAAAC,CAAO,EAAIC,EAAiBH,CAAe,EAExDC,IACFZ,EAA8BW,CAAe,EAAI,CAC/C,QAAAC,EACA,OAAAC,EACA,SAAUZ,EAAY,SAAS,SAAS,CAC1C,GAEFF,EAAgB,KAAK,CACnB,YAAAE,EACA,iBAAAC,EACA,YAAaS,EACb,aAAc,EAChB,CAAC,CACH,CACF,CAAC,EAEM,CACL,gBAAAZ,EACA,8BAAAC,CACF,EACF",
|
|
6
|
-
"names": ["parseMultiEsdtTransferDataForMultipleTransactions", "transactions", "allTransactions", "parsedTransactionsByDataField", "transaction", "transactionIndex", "txData", "decodeBase64", "multiTxs", "parseMultiEsdtTransferData", "trx", "idx", "isLastView", "newTx", "transactionData", "tokenId", "amount", "getTokenFromData"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-SCSHU7XJ.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as s}from"./chunk-5G5ETZM4.mjs";import{a as r}from"./chunk-VDMJZZU4.mjs";import{j as n}from"./chunk-65L5EBBL.mjs";var l=({toastId:a,address:o,status:e,transactions:t,transactionsDisplayInfo:i,startTime:c,endTime:T})=>{let m=t.some(f=>n(f.status)),u=t[0]?.action?.name,p=s({address:o,sender:t[0]?.interactor??"",toastId:a,status:e,transactionsDisplayInfo:i,txActionName:u}),S=r(t);return{toastDataState:p,processedTransactionsStatus:S,transactionProgressState:m?{endTime:T,startTime:c}:null,toastId:a,transactions:t}};export{l as a};
|
|
2
|
-
//# sourceMappingURL=chunk-TPJ7WT4J.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{l as a}from"../../../__chunks__/chunk-NL5FA7NT.mjs";import"../../../__chunks__/chunk-FPBY3DHR.mjs";import"../../../__chunks__/chunk-RUBOJOJP.mjs";import"../../../__chunks__/chunk-JD3WTXPU.mjs";import"../../../__chunks__/chunk-T7DVMF2K.mjs";import"../../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../../__chunks__/chunk-6UZHM5LW.mjs";import"../../../__chunks__/chunk-YRXESD4B.mjs";import"../../../__chunks__/chunk-TPJ7WT4J.mjs";import"../../../__chunks__/chunk-5G5ETZM4.mjs";import"../../../__chunks__/chunk-C7IGU65A.mjs";import"../../../__chunks__/chunk-FD3HLEX7.mjs";import"../../../__chunks__/chunk-667PINAR.mjs";import"../../../__chunks__/chunk-RVO7H26H.mjs";import"../../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../../__chunks__/chunk-BIVZJPSH.mjs";import"../../../__chunks__/chunk-VDMJZZU4.mjs";import"../../../__chunks__/chunk-FY7XZQRH.mjs";import"../../../__chunks__/chunk-JB3LG75C.mjs";import"../../../__chunks__/chunk-43DVKBLZ.mjs";import"../../../__chunks__/chunk-2NXPS7R3.mjs";import"../../../__chunks__/chunk-33ZUFX42.mjs";import"../../../__chunks__/chunk-KKBWOSVH.mjs";import"../../../__chunks__/chunk-6CY7XXBE.mjs";import"../../../__chunks__/chunk-3AQIQDPA.mjs";import"../../../__chunks__/chunk-KDWLSBQB.mjs";import"../../../__chunks__/chunk-2VG3V3VD.mjs";import"../../../__chunks__/chunk-MFUQ5NBC.mjs";import"../../../__chunks__/chunk-4ODPAHHA.mjs";import"../../../__chunks__/chunk-ECEWPZGA.mjs";import"../../../__chunks__/chunk-IPYKRZ2A.mjs";import"../../../__chunks__/chunk-CD7RYHHQ.mjs";import"../../../__chunks__/chunk-AVWNBQDX.mjs";import"../../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../../__chunks__/chunk-4Z7G5RCK.mjs";import"../../../__chunks__/chunk-QJW6PYFV.mjs";import"../../../__chunks__/chunk-NX6LPULJ.mjs";import"../../../__chunks__/chunk-MDVI45IV.mjs";import"../../../__chunks__/chunk-3C5GZ3BL.mjs";import"../../../__chunks__/chunk-DMBZGJ6Q.mjs";import"../../../__chunks__/chunk-XBJKQBW3.mjs";import"../../../__chunks__/chunk-TSUMQ3HX.mjs";import"../../../__chunks__/chunk-RPNTVD3R.mjs";import"../../../__chunks__/chunk-Y4QDT6I2.mjs";import"../../../__chunks__/chunk-HK7HCSM3.mjs";import"../../../__chunks__/chunk-OXHTDT7J.mjs";import"../../../__chunks__/chunk-55SACSMS.mjs";import"../../../__chunks__/chunk-A6TCEIG4.mjs";import"../../../__chunks__/chunk-NQTTC42T.mjs";import"../../../__chunks__/chunk-J32T6OAP.mjs";import"../../../__chunks__/chunk-4US7HVCR.mjs";import"../../../__chunks__/chunk-ZORPCBON.mjs";import"../../../__chunks__/chunk-4TBVQD27.mjs";import"../../../__chunks__/chunk-M3GFSV3G.mjs";import"../../../__chunks__/chunk-WV5X6BXA.mjs";import"../../../__chunks__/chunk-UBZGPJ3E.mjs";import"../../../__chunks__/chunk-DTSAE3IB.mjs";import"../../../__chunks__/chunk-L3MWDI6J.mjs";import"../../../__chunks__/chunk-65L5EBBL.mjs";import"../../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../../__chunks__/chunk-XQWEAEGW.mjs";import"../../../__chunks__/chunk-JNEQJC3B.mjs";import"../../../__chunks__/chunk-YK7T6MBD.mjs";import"../../../__chunks__/chunk-KMJMQEXI.mjs";import"../../../__chunks__/chunk-G5DKGX73.mjs";import"../../../__chunks__/chunk-KYBNCMQL.mjs";import"../../../__chunks__/chunk-HORSXVIV.mjs";import"../../../__chunks__/chunk-QMY5RUJ3.mjs";import"../../../__chunks__/chunk-RRKJBSXY.mjs";import"../../../__chunks__/chunk-NWEUIK3A.mjs";import"../../../__chunks__/chunk-NWSFXZMR.mjs";import"../../../__chunks__/chunk-3S57OP4Z.mjs";import"../../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../../__chunks__/chunk-WE7YOBO7.mjs";import"../../../__chunks__/chunk-CRMKEEKH.mjs";import"../../../__chunks__/chunk-EPG3L2S3.mjs";import"../../../__chunks__/chunk-NZYB675D.mjs";import"../../../__chunks__/chunk-SLOQOCEU.mjs";import"../../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../../__chunks__/chunk-RMW3YLGD.mjs";import"../../../__chunks__/chunk-YSCND2MX.mjs";import"../../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../../__chunks__/chunk-NJN53MJV.mjs";import"../../../__chunks__/chunk-YJK5FPW4.mjs";import"../../../__chunks__/chunk-36XFDUXN.mjs";import"../../../__chunks__/chunk-O7LCTC4K.mjs";import"../../../__chunks__/chunk-TFZ46GCB.mjs";import"../../../__chunks__/chunk-OL6LWUIJ.mjs";import"../../../__chunks__/chunk-N342XMFH.mjs";import"../../../__chunks__/chunk-2IUBMLF4.mjs";import"../../../__chunks__/chunk-KIOUFP5Q.mjs";import"../../../__chunks__/chunk-DSVSX4ZT.mjs";import"../../../__chunks__/chunk-DZ2BIDRW.mjs";import"../../../__chunks__/chunk-WJQVMI33.mjs";import"../../../__chunks__/chunk-BHAHZQVO.mjs";import"../../../__chunks__/chunk-EAH7XGM3.mjs";import"../../../__chunks__/chunk-OOVV574D.mjs";import"../../../__chunks__/chunk-ZAPRDHIW.mjs";import"../../../__chunks__/chunk-GIZSIYH4.mjs";import"../../../__chunks__/chunk-WVAP3V3E.mjs";import"../../../__chunks__/chunk-XVX7N3JK.mjs";import"../../../__chunks__/chunk-HH5SA7BX.mjs";import"../../../__chunks__/chunk-OEPTRJEB.mjs";import"../../../__chunks__/chunk-B3IKUIRK.mjs";import"../../../__chunks__/chunk-44FB23KP.mjs";import"../../../__chunks__/chunk-TQA3JDNV.mjs";import"../../../__chunks__/chunk-IXBWD6BF.mjs";import"../../../__chunks__/chunk-JFOYQVDZ.mjs";import"../../../__chunks__/chunk-VCAWVAO5.mjs";import"../../../__chunks__/chunk-55W25Q35.mjs";import"../../../__chunks__/chunk-C53VPXWP.mjs";import"../../../__chunks__/chunk-TX4NQXZO.mjs";import"../../../__chunks__/chunk-OLMTXXEH.mjs";import"../../../__chunks__/chunk-JFX27ZGH.mjs";import"../../../__chunks__/chunk-3L7HZ2SO.mjs";import"../../../__chunks__/chunk-52PGMMOM.mjs";import"../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../__chunks__/chunk-H33OUO77.mjs";import"../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../__chunks__/chunk-HMHP5DPL.mjs";import"../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../__chunks__/chunk-R6GH7DA7.mjs";import"../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../__chunks__/chunk-UERJ6AKK.mjs";import"../../../__chunks__/chunk-KPK72MOE.mjs";import"../../../__chunks__/chunk-SAAOQW7P.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-32WMC3HQ.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-DBIIY2TX.mjs";import"../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../__chunks__/chunk-WHEXX3BD.mjs";import"../../../__chunks__/chunk-CDTYHGXZ.mjs";import"../../../__chunks__/chunk-2RAULLHL.mjs";import"../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../__chunks__/chunk-3FXHIV6O.mjs";import"../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../__chunks__/chunk-UCRVRBTA.mjs";import"../../../__chunks__/chunk-NMISWSIO.mjs";import"../../../__chunks__/chunk-MGQ373AO.mjs";import"../../../__chunks__/chunk-RPTH42EF.mjs";import"../../../__chunks__/chunk-3UNGCOKO.mjs";import"../../../__chunks__/chunk-VF75NE7S.mjs";import"../../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../../__chunks__/chunk-HESE5NRU.mjs";import"../../../__chunks__/chunk-6JSWL75O.mjs";import"../../../__chunks__/chunk-LHEH7L4L.mjs";import"../../../__chunks__/chunk-EJV4VNJG.mjs";import"../../../__chunks__/chunk-DXTUMMVX.mjs";import"../../../__chunks__/chunk-FI444OX3.mjs";import"../../../__chunks__/chunk-ULUZWP2P.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../__chunks__/chunk-LJX4MW7B.mjs";import"../../../__chunks__/chunk-DTQL3IDP.mjs";import"../../../__chunks__/chunk-CKTFPRJS.mjs";import"../../../__chunks__/chunk-K4TMKMCO.mjs";import"../../../__chunks__/chunk-J6R2XFXZ.mjs";import"../../../__chunks__/chunk-EHDGJUEU.mjs";import"../../../__chunks__/chunk-HOCSCRJF.mjs";import"../../../__chunks__/chunk-RF5IAADG.mjs";import"../../../__chunks__/chunk-UE3IBKCO.mjs";import"../../../__chunks__/chunk-H6IZMTJK.mjs";import"../../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as ToastManager};
|
|
2
|
-
//# sourceMappingURL=ToastManager.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{k as a}from"../../../../__chunks__/chunk-NL5FA7NT.mjs";import"../../../../__chunks__/chunk-FPBY3DHR.mjs";import"../../../../__chunks__/chunk-RUBOJOJP.mjs";import"../../../../__chunks__/chunk-JD3WTXPU.mjs";import"../../../../__chunks__/chunk-T7DVMF2K.mjs";import"../../../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../../../__chunks__/chunk-6UZHM5LW.mjs";import"../../../../__chunks__/chunk-YRXESD4B.mjs";import"../../../../__chunks__/chunk-TPJ7WT4J.mjs";import"../../../../__chunks__/chunk-5G5ETZM4.mjs";import"../../../../__chunks__/chunk-C7IGU65A.mjs";import"../../../../__chunks__/chunk-FD3HLEX7.mjs";import"../../../../__chunks__/chunk-667PINAR.mjs";import"../../../../__chunks__/chunk-RVO7H26H.mjs";import"../../../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../../../__chunks__/chunk-BIVZJPSH.mjs";import"../../../../__chunks__/chunk-VDMJZZU4.mjs";import"../../../../__chunks__/chunk-FY7XZQRH.mjs";import"../../../../__chunks__/chunk-JB3LG75C.mjs";import"../../../../__chunks__/chunk-43DVKBLZ.mjs";import"../../../../__chunks__/chunk-2NXPS7R3.mjs";import"../../../../__chunks__/chunk-33ZUFX42.mjs";import"../../../../__chunks__/chunk-KKBWOSVH.mjs";import"../../../../__chunks__/chunk-6CY7XXBE.mjs";import"../../../../__chunks__/chunk-3AQIQDPA.mjs";import"../../../../__chunks__/chunk-KDWLSBQB.mjs";import"../../../../__chunks__/chunk-2VG3V3VD.mjs";import"../../../../__chunks__/chunk-MFUQ5NBC.mjs";import"../../../../__chunks__/chunk-4ODPAHHA.mjs";import"../../../../__chunks__/chunk-ECEWPZGA.mjs";import"../../../../__chunks__/chunk-IPYKRZ2A.mjs";import"../../../../__chunks__/chunk-CD7RYHHQ.mjs";import"../../../../__chunks__/chunk-AVWNBQDX.mjs";import"../../../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../../../__chunks__/chunk-4Z7G5RCK.mjs";import"../../../../__chunks__/chunk-QJW6PYFV.mjs";import"../../../../__chunks__/chunk-NX6LPULJ.mjs";import"../../../../__chunks__/chunk-MDVI45IV.mjs";import"../../../../__chunks__/chunk-3C5GZ3BL.mjs";import"../../../../__chunks__/chunk-DMBZGJ6Q.mjs";import"../../../../__chunks__/chunk-XBJKQBW3.mjs";import"../../../../__chunks__/chunk-TSUMQ3HX.mjs";import"../../../../__chunks__/chunk-RPNTVD3R.mjs";import"../../../../__chunks__/chunk-Y4QDT6I2.mjs";import"../../../../__chunks__/chunk-HK7HCSM3.mjs";import"../../../../__chunks__/chunk-OXHTDT7J.mjs";import"../../../../__chunks__/chunk-55SACSMS.mjs";import"../../../../__chunks__/chunk-A6TCEIG4.mjs";import"../../../../__chunks__/chunk-NQTTC42T.mjs";import"../../../../__chunks__/chunk-J32T6OAP.mjs";import"../../../../__chunks__/chunk-4US7HVCR.mjs";import"../../../../__chunks__/chunk-ZORPCBON.mjs";import"../../../../__chunks__/chunk-4TBVQD27.mjs";import"../../../../__chunks__/chunk-M3GFSV3G.mjs";import"../../../../__chunks__/chunk-WV5X6BXA.mjs";import"../../../../__chunks__/chunk-UBZGPJ3E.mjs";import"../../../../__chunks__/chunk-DTSAE3IB.mjs";import"../../../../__chunks__/chunk-L3MWDI6J.mjs";import"../../../../__chunks__/chunk-65L5EBBL.mjs";import"../../../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../../../__chunks__/chunk-XQWEAEGW.mjs";import"../../../../__chunks__/chunk-JNEQJC3B.mjs";import"../../../../__chunks__/chunk-YK7T6MBD.mjs";import"../../../../__chunks__/chunk-KMJMQEXI.mjs";import"../../../../__chunks__/chunk-G5DKGX73.mjs";import"../../../../__chunks__/chunk-KYBNCMQL.mjs";import"../../../../__chunks__/chunk-HORSXVIV.mjs";import"../../../../__chunks__/chunk-QMY5RUJ3.mjs";import"../../../../__chunks__/chunk-RRKJBSXY.mjs";import"../../../../__chunks__/chunk-NWEUIK3A.mjs";import"../../../../__chunks__/chunk-NWSFXZMR.mjs";import"../../../../__chunks__/chunk-3S57OP4Z.mjs";import"../../../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../../../__chunks__/chunk-WE7YOBO7.mjs";import"../../../../__chunks__/chunk-CRMKEEKH.mjs";import"../../../../__chunks__/chunk-EPG3L2S3.mjs";import"../../../../__chunks__/chunk-NZYB675D.mjs";import"../../../../__chunks__/chunk-SLOQOCEU.mjs";import"../../../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../../../__chunks__/chunk-RMW3YLGD.mjs";import"../../../../__chunks__/chunk-YSCND2MX.mjs";import"../../../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../../../__chunks__/chunk-NJN53MJV.mjs";import"../../../../__chunks__/chunk-YJK5FPW4.mjs";import"../../../../__chunks__/chunk-36XFDUXN.mjs";import"../../../../__chunks__/chunk-O7LCTC4K.mjs";import"../../../../__chunks__/chunk-TFZ46GCB.mjs";import"../../../../__chunks__/chunk-OL6LWUIJ.mjs";import"../../../../__chunks__/chunk-N342XMFH.mjs";import"../../../../__chunks__/chunk-2IUBMLF4.mjs";import"../../../../__chunks__/chunk-KIOUFP5Q.mjs";import"../../../../__chunks__/chunk-DSVSX4ZT.mjs";import"../../../../__chunks__/chunk-DZ2BIDRW.mjs";import"../../../../__chunks__/chunk-WJQVMI33.mjs";import"../../../../__chunks__/chunk-BHAHZQVO.mjs";import"../../../../__chunks__/chunk-EAH7XGM3.mjs";import"../../../../__chunks__/chunk-OOVV574D.mjs";import"../../../../__chunks__/chunk-ZAPRDHIW.mjs";import"../../../../__chunks__/chunk-GIZSIYH4.mjs";import"../../../../__chunks__/chunk-WVAP3V3E.mjs";import"../../../../__chunks__/chunk-XVX7N3JK.mjs";import"../../../../__chunks__/chunk-HH5SA7BX.mjs";import"../../../../__chunks__/chunk-OEPTRJEB.mjs";import"../../../../__chunks__/chunk-B3IKUIRK.mjs";import"../../../../__chunks__/chunk-44FB23KP.mjs";import"../../../../__chunks__/chunk-TQA3JDNV.mjs";import"../../../../__chunks__/chunk-IXBWD6BF.mjs";import"../../../../__chunks__/chunk-JFOYQVDZ.mjs";import"../../../../__chunks__/chunk-VCAWVAO5.mjs";import"../../../../__chunks__/chunk-55W25Q35.mjs";import"../../../../__chunks__/chunk-C53VPXWP.mjs";import"../../../../__chunks__/chunk-TX4NQXZO.mjs";import"../../../../__chunks__/chunk-OLMTXXEH.mjs";import"../../../../__chunks__/chunk-JFX27ZGH.mjs";import"../../../../__chunks__/chunk-3L7HZ2SO.mjs";import"../../../../__chunks__/chunk-52PGMMOM.mjs";import"../../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../../__chunks__/chunk-H33OUO77.mjs";import"../../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../../__chunks__/chunk-HMHP5DPL.mjs";import"../../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../../__chunks__/chunk-R6GH7DA7.mjs";import"../../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../../__chunks__/chunk-UERJ6AKK.mjs";import"../../../../__chunks__/chunk-KPK72MOE.mjs";import"../../../../__chunks__/chunk-SAAOQW7P.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-32WMC3HQ.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-DBIIY2TX.mjs";import"../../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../../__chunks__/chunk-WHEXX3BD.mjs";import"../../../../__chunks__/chunk-CDTYHGXZ.mjs";import"../../../../__chunks__/chunk-2RAULLHL.mjs";import"../../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../../__chunks__/chunk-3FXHIV6O.mjs";import"../../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../../__chunks__/chunk-UCRVRBTA.mjs";import"../../../../__chunks__/chunk-NMISWSIO.mjs";import"../../../../__chunks__/chunk-MGQ373AO.mjs";import"../../../../__chunks__/chunk-RPTH42EF.mjs";import"../../../../__chunks__/chunk-3UNGCOKO.mjs";import"../../../../__chunks__/chunk-VF75NE7S.mjs";import"../../../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../../../__chunks__/chunk-HESE5NRU.mjs";import"../../../../__chunks__/chunk-6JSWL75O.mjs";import"../../../../__chunks__/chunk-LHEH7L4L.mjs";import"../../../../__chunks__/chunk-EJV4VNJG.mjs";import"../../../../__chunks__/chunk-DXTUMMVX.mjs";import"../../../../__chunks__/chunk-FI444OX3.mjs";import"../../../../__chunks__/chunk-ULUZWP2P.mjs";import"../../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../../__chunks__/chunk-LJX4MW7B.mjs";import"../../../../__chunks__/chunk-DTQL3IDP.mjs";import"../../../../__chunks__/chunk-CKTFPRJS.mjs";import"../../../../__chunks__/chunk-K4TMKMCO.mjs";import"../../../../__chunks__/chunk-J6R2XFXZ.mjs";import"../../../../__chunks__/chunk-EHDGJUEU.mjs";import"../../../../__chunks__/chunk-HOCSCRJF.mjs";import"../../../../__chunks__/chunk-RF5IAADG.mjs";import"../../../../__chunks__/chunk-UE3IBKCO.mjs";import"../../../../__chunks__/chunk-H6IZMTJK.mjs";import"../../../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as LifetimeManager};
|
|
2
|
-
//# sourceMappingURL=LifetimeManager.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../../__chunks__/chunk-YRXESD4B.mjs";import"../../../../__chunks__/chunk-TPJ7WT4J.mjs";import"../../../../__chunks__/chunk-5G5ETZM4.mjs";import"../../../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../../../__chunks__/chunk-BIVZJPSH.mjs";import"../../../../__chunks__/chunk-VDMJZZU4.mjs";import"../../../../__chunks__/chunk-33ZUFX42.mjs";import"../../../../__chunks__/chunk-KKBWOSVH.mjs";import"../../../../__chunks__/chunk-65L5EBBL.mjs";import"../../../../__chunks__/chunk-VCAWVAO5.mjs";import"../../../../__chunks__/chunk-55W25Q35.mjs";import"../../../../__chunks__/chunk-C53VPXWP.mjs";import"../../../../__chunks__/chunk-TX4NQXZO.mjs";import"../../../../__chunks__/chunk-OLMTXXEH.mjs";import"../../../../__chunks__/chunk-JFX27ZGH.mjs";import"../../../../__chunks__/chunk-3L7HZ2SO.mjs";import"../../../../__chunks__/chunk-52PGMMOM.mjs";import"../../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../../__chunks__/chunk-H33OUO77.mjs";import"../../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../../__chunks__/chunk-HMHP5DPL.mjs";import"../../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../../__chunks__/chunk-R6GH7DA7.mjs";import"../../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../../__chunks__/chunk-UERJ6AKK.mjs";import"../../../../__chunks__/chunk-KPK72MOE.mjs";import"../../../../__chunks__/chunk-SAAOQW7P.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-32WMC3HQ.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-DBIIY2TX.mjs";import"../../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../../__chunks__/chunk-RF5IAADG.mjs";export{a as createToastsFromTransactions};
|
|
2
|
-
//# sourceMappingURL=createToastsFromTransactions.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a}from"../../../../__chunks__/chunk-TPJ7WT4J.mjs";import"../../../../__chunks__/chunk-5G5ETZM4.mjs";import"../../../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../../../__chunks__/chunk-BIVZJPSH.mjs";import"../../../../__chunks__/chunk-VDMJZZU4.mjs";import"../../../../__chunks__/chunk-65L5EBBL.mjs";import"../../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../../__chunks__/chunk-GLXG5BES.mjs";export{a as createTransactionToast};
|
|
2
|
-
//# sourceMappingURL=createTransactionToast.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../../../../__chunks__/chunk-5G5ETZM4.mjs";import"../../../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../../../__chunks__/chunk-BIVZJPSH.mjs";import"../../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../../__chunks__/chunk-GLXG5BES.mjs";export{a as ToastIconsEnum,b as getToastDataStateByStatus};
|
|
2
|
-
//# sourceMappingURL=getToastDataStateByStatus.mjs.map
|