@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
|
@@ -0,0 +1,7 @@
|
|
|
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/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 { ToastManager } from '../../ToastManager';\nimport { ToastIconsEnum } from '../../ToastManager/helpers/getToastDataStateByStatus';\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,MAAME,GAA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,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 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-3MW2H273.mjs";import{a as l}from"./chunk-K3OKY7NL.mjs";import{a as u}from"./chunk-5W77GYVQ.mjs";import{j as m,k as p,l as d,n as f}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-N2KEJEOD.mjs";var z=async({toastList:g,transactionsSessions:S,account:o,existingCompletedTransactions:y=[],skipFetchingTransactions:F=!1})=>{let n=[],a=[...y],e=l(),C=u();for(let t of g.transactionToasts){let r=S[t.toastId];if(!r?.status)continue;let{status:s,transactions:P,transactionsDisplayInfo:x}=r,A=await T({transactions:P,address:o.address,explorerAddress:e,egldLabel:C,skipFetchingTransactions:F}),E=f(s),L=d(s),b=p(s),i=E||L||b,h=m(s),{startTime:v,endTime:R}=t;if(i&&a.some(O=>O.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:A,transactionsDisplayInfo:x,explorerAddress:e,startTime:v,endTime:R});i&&a.push(c),h&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{z as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VNMU246H.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/managers/
|
|
3
|
+
"sources": ["../../src/managers/ToastManager/helpers/createToastsFromTransactions.ts"],
|
|
4
4
|
"sourcesContent": ["import { getEgldLabel } from 'methods/network/getEgldLabel';\nimport { getExplorerAddress } from 'methods/network/getExplorerAddress';\nimport {\n getIsTransactionFailed,\n getIsTransactionPending,\n getIsTransactionSuccessful,\n getIsTransactionTimedOut\n} from 'store/actions/transactions/transactionStateByStatus';\nimport { AccountSliceType } from 'store/slices/account/account.types';\nimport { ToastsSliceType } from 'store/slices/toast/toastSlice.types';\nimport { TransactionServerStatusesEnum } from 'types/enums.types';\nimport { SessionTransactionType } from 'types/transactions.types';\nimport { mapServerTransactionsToListItems } from 'utils/transactions/getTransactionsHistory/helpers';\nimport { createTransactionToast } from './createTransactionToast';\nimport { ITransactionToast } from '../types/toast.types';\ninterface CreateToastsFromTransactionsReturnType {\n pendingTransactionToasts: ITransactionToast[];\n completedTransactionToasts: ITransactionToast[];\n}\n\ninterface CreateToastsFromTransactionsParamsType {\n toastList: ToastsSliceType;\n transactionsSessions: Record<string, SessionTransactionType>;\n account: AccountSliceType;\n existingCompletedTransactions?: ITransactionToast[];\n skipFetchingTransactions?: boolean;\n}\n\nexport const createToastsFromTransactions = async ({\n toastList,\n transactionsSessions,\n account,\n existingCompletedTransactions = [],\n skipFetchingTransactions = false\n}: CreateToastsFromTransactionsParamsType): Promise<CreateToastsFromTransactionsReturnType> => {\n const pendingTransactionToasts: ITransactionToast[] = [];\n const completedTransactionToasts: ITransactionToast[] = [\n ...existingCompletedTransactions\n ];\n const explorerAddress = getExplorerAddress();\n const egldLabel = getEgldLabel();\n\n for (const toast of toastList.transactionToasts) {\n const transactionSession = transactionsSessions[toast.toastId];\n if (!transactionSession?.status) {\n continue;\n }\n\n const { status, transactions, transactionsDisplayInfo } =\n transactionSession;\n\n const interprettedTransactions = await mapServerTransactionsToListItems({\n transactions,\n address: account.address,\n explorerAddress,\n egldLabel,\n skipFetchingTransactions\n });\n\n const isTimedOut = getIsTransactionTimedOut(status);\n const isFailed = getIsTransactionFailed(status);\n const isSuccessful = getIsTransactionSuccessful(status);\n const isCompleted = isTimedOut || isFailed || isSuccessful;\n const isPending = getIsTransactionPending(status);\n const { startTime, endTime } = toast;\n\n if (\n isCompleted &&\n completedTransactionToasts.some((t) => t.toastId === toast.toastId)\n ) {\n continue;\n }\n\n const transactionToast = createTransactionToast({\n toastId: toast.toastId,\n address: account.address,\n status: status as TransactionServerStatusesEnum,\n transactions: interprettedTransactions,\n transactionsDisplayInfo,\n explorerAddress,\n startTime,\n endTime\n });\n\n if (isCompleted) {\n completedTransactionToasts.push(transactionToast);\n }\n\n if (isPending) {\n pendingTransactionToasts.push(transactionToast);\n }\n }\n\n return {\n pendingTransactionToasts,\n completedTransactionToasts\n };\n};\n"],
|
|
5
5
|
"mappings": "kOA4BO,IAAMA,EAA+B,MAAO,CACjD,UAAAC,EACA,qBAAAC,EACA,QAAAC,EACA,8BAAAC,EAAgC,CAAC,EACjC,yBAAAC,EAA2B,EAC7B,IAA+F,CAC7F,IAAMC,EAAgD,CAAC,EACjDC,EAAkD,CACtD,GAAGH,CACL,EACMI,EAAkBC,EAAmB,EACrCC,EAAYC,EAAa,EAE/B,QAAWC,KAASX,EAAU,kBAAmB,CAC/C,IAAMY,EAAqBX,EAAqBU,EAAM,OAAO,EAC7D,GAAI,CAACC,GAAoB,OACvB,SAGF,GAAM,CAAE,OAAAC,EAAQ,aAAAC,EAAc,wBAAAC,CAAwB,EACpDH,EAEII,EAA2B,MAAMC,EAAiC,CACtE,aAAAH,EACA,QAASZ,EAAQ,QACjB,gBAAAK,EACA,UAAAE,EACA,yBAAAL,CACF,CAAC,EAEKc,EAAaC,EAAyBN,CAAM,EAC5CO,EAAWC,EAAuBR,CAAM,EACxCS,EAAeC,EAA2BV,CAAM,EAChDW,EAAcN,GAAcE,GAAYE,EACxCG,EAAYC,EAAwBb,CAAM,EAC1C,CAAE,UAAAc,EAAW,QAAAC,CAAQ,EAAIjB,EAE/B,GACEa,GACAlB,EAA2B,KAAMuB,GAAMA,EAAE,UAAYlB,EAAM,OAAO,EAElE,SAGF,IAAMmB,EAAmBC,EAAuB,CAC9C,QAASpB,EAAM,QACf,QAAST,EAAQ,QACjB,OAAQW,EACR,aAAcG,EACd,wBAAAD,EACA,gBAAAR,EACA,UAAAoB,EACA,QAAAC,CACF,CAAC,EAEGJ,GACFlB,EAA2B,KAAKwB,CAAgB,EAG9CL,GACFpB,EAAyB,KAAKyB,CAAgB,CAElD,CAEA,MAAO,CACL,yBAAAzB,EACA,2BAAAC,CACF,CACF",
|
|
6
6
|
"names": ["createToastsFromTransactions", "toastList", "transactionsSessions", "account", "existingCompletedTransactions", "skipFetchingTransactions", "pendingTransactionToasts", "completedTransactionToasts", "explorerAddress", "getExplorerAddress", "egldLabel", "getEgldLabel", "toast", "transactionSession", "status", "transactions", "transactionsDisplayInfo", "interprettedTransactions", "mapServerTransactionsToListItems", "isTimedOut", "getIsTransactionTimedOut", "isFailed", "getIsTransactionFailed", "isSuccessful", "getIsTransactionSuccessful", "isCompleted", "isPending", "getIsTransactionPending", "startTime", "endTime", "t", "transactionToast", "createTransactionToast"]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as A}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as A}from"./chunk-IJKCH7CT.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as S}from"./chunk-AS7XXEHY.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{a as y}from"./chunk-C3Y3ANFE.mjs";import{a as f}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-SYWFZFFJ.mjs";import{h as g}from"./chunk-2IUBMLF4.mjs";import{s as l}from"./chunk-4LTMFD6V.mjs";import{b as m}from"./chunk-SAAOQW7P.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=f(s),n=y({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=m(l());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=h(),{apiAddress:s,apiTimeout:o}=m(l());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return b({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${g}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-W75ZD7BB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-OPX7XWAC.mjs";var a=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.unsubscribeFunctions=new Map;this.uiDataUpdateEvent=t,this.uiTag=e,this.data=this.getInitialData()}async init(t){this.anchor=t,await this.createUIElement(t),await this.setupEventListeners()}updateData(t){this.data={...this.data,...t},this.notifyDataUpdate()}subscribeToEventBus(t,e){if(!this.eventBus)throw new Error("eventBus is not initialized");let i=this.eventBus?.subscribe(t,e);if(i){let n=this.unsubscribeFunctions.get(t)||[];n.push(i),this.unsubscribeFunctions.set(t,n)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}resetData(){this.data=this.getInitialData()}async createUIElement(t=this.anchor){if(this.isCreatingElement||this.uiElement)return this.uiElement;if(this.isCreatingElement=!0,this.uiElement=await s.create({name:this.uiTag,anchor:t}),this.isCreatingElement=!1,!this.uiElement)throw new Error(`Failed to create ${this.uiTag} element`);if(this.eventBus||(this.eventBus=await this.uiElement.getEventBus()),!this.eventBus)throw new Error("eventBus is not initialized");return this.uiElement}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-WLXKUUZ3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-JV4IJH7L.mjs";import{c as e}from"./chunk-MGFIOCA4.mjs";var o=class i extends s{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._ppuMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,ppuOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){let t=0;a.filter(n=>n!=null).forEach(n=>{let r=n?Number(n.gasPrice):0;this.updateGasPriceMap({nonce:Number(n.nonce),ppu:t,initialGasPrice:r})}),this.updateCommonData({ppu:t})}updateGasPriceMap({nonce:a,ppu:t,initialGasPrice:n}){this._ppuMap[a]={...this._ppuMap[a],ppu:t},n&&(this._ppuMap[a].initialGasPrice=n)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,t){switch(a){case"NonFungibleESDT":this.data.nftTransaction=t,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=t,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get ppuMap(){return this._ppuMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WQAFFPAS.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants/window.constants.ts"],
|
|
4
|
-
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.1
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.2.1'; // will be replaced at build time\n"],
|
|
5
5
|
"mappings": "AAAO,IAAMA,EACX,OAAO,OAAW,IAAc,OAAU,CAAC,EAEhCC,EAAU",
|
|
6
6
|
"names": ["safeWindow", "version"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as h}from"./chunk-DE6O7BFR.mjs";import{a as s}from"./chunk-OLOOCCNU.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-K3OKY7NL.mjs";import{b as A}from"./chunk-HEA7NFOF.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{f as p}from"./chunk-4LTMFD6V.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-LJX4MW7B.mjs";import{BigNumber as C}from"bignumber.js";async function M({options:d,config:i,provider:a,login:c}){let e=h.getInstance(),T=L(),b=k({loginToken:d?.token,version:i.version}),o={manager:e,provider:a};await s(o);let t=await new Promise(async function(E,w){async function g(r){let n=e?e.addressesPerPage??1:1,l=new C(r-1).times(n);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await s(o)}async function u(r){if(!(!a||!c)){e?.updateConfirmScreen({...b,selectedAddress:r.selectedAddress,explorerLink:I({to:`/${f}/${r.selectedAddress}`,explorerAddress:T})});try{let n=d?.token?await a.tokenLogin({token:Buffer.from(`${d?.token}{}`),addressIndex:r.addressIndex}):await c({addressIndex:r.addressIndex});E({address:n.address,signature:n.signature?n.signature.toString("hex"):"",addressIndex:r.addressIndex})}catch(n){console.error("User rejected login:",n),!!e?.getConfirmScreenData()&&await s(o)}}}async function m(){await s(o),e.unsubscribeFromAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g}),w("User cancelled login")}e.subscribeToAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g})}),{version:P,dataEnabled:v}=i;return p({index:t.addressIndex,loginType:x.ledger}),A({address:t.address,index:t.addressIndex,version:P,hasContractDataEnabled:v}),{address:t.address,signature:t.signature}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-X5IHXBJ3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-4LTMFD6V.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XI2BWIQP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-RWQNLK3I.mjs";import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-RWQNLK3I.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as d}from"./chunk-VJBLHJYB.mjs";import{a}from"./chunk-RRK6GTWZ.mjs";import{a as o}from"./chunk-IPMSVHGJ.mjs";import{a as g}from"./chunk-PSJI2G34.mjs";import{a as i}from"./chunk-2CG6PNPJ.mjs";import{a as p,b as e}from"./chunk-HDRB2QL6.mjs";import{rest as t}from"msw";import{setupServer as u}from"msw/node";var s=m=>(R,f,n)=>f(n.status(200),n.json(m)),k=[t.get(`${e.apiAddress}/dapp/config`,s(c)),t.get(`${e.apiAddress}/network/config`,s(i)),t.get(`https://${o.url}/socket.io/`,s(g)),t.get(`${e.apiAddress}/websocket/config`,s(o)),t.get(`${e.apiAddress}/accounts/${p}`,s(a)),t.get(`${e.apiAddress}/accounts/${r.address}`,s(r)),t.get(`${e.apiAddress}/blocks`,s(d))],P=u(...k);export{t as a,s as b,P as c};
|
|
2
|
+
//# sourceMappingURL=chunk-XU34NXIS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-34ZJZYMC.mjs";import{a as T}from"./chunk-XCVEFI4B.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as m}from"./chunk-UNBTFF6K.mjs";import{a as l}from"./chunk-U3UMCTU6.mjs";import{c as d}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-7CELSV4S.mjs";var p=class{static async processTransactions({address:u,egldLabel:v,explorerAddress:g,transactions:L}){let f=L.map(e=>m({address:u,explorerAddress:g,transaction:e}));return await Promise.all(f.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),a=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:h,receiverLockedAccount:D}=await k({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=T({transaction:e}),x=r?.token.type==="MetaESDT"?void 0:r?.badgeText,c=l.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??d,digits:2}),y={badge:x??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?v:"",link:n?.tokenExplorerLink??r?.tokenExplorerLink,linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:c.valueDecimal,valueInteger:c.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!D,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:a??"",description:`${a??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!h,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:y}}))}};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XV2BD67Y.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-B5K6T6DF.mjs";import{a as e}from"./chunk-O72VJVJC.mjs";import{a as i}from"./chunk-6JSWL75O.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZEJRHV7U.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-OXPZVCKM.mjs";import{b as r}from"./chunk-GYYCA57F.mjs";import{s as i}from"./chunk-4LTMFD6V.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=o(i());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZHGONRBM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-AXUYY4T7.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-AXUYY4T7.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-DHTRPE3R.mjs";import"../../__chunks__/chunk-6JSWL75O.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-IGTIIBN6.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-WVZRN2HX.mjs";export{a as getScamAddressData};
|
|
2
2
|
//# sourceMappingURL=getScamAddressData.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-5VSKEHYA.mjs";import"../../__chunks__/chunk-4LTMFD6V.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-HSYMR5UW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getCleanApiAddress};
|
|
2
2
|
//# sourceMappingURL=getCleanApiAddress.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-OXPZVCKM.mjs";import"../../__chunks__/chunk-5VSKEHYA.mjs";import"../../__chunks__/chunk-4LTMFD6V.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-HSYMR5UW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getGasStationMetadataFromApi};
|
|
2
2
|
//# sourceMappingURL=getGasStationMetadata.mjs.map
|
package/out/apiCalls/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../__chunks__/chunk-YV7ZJBAY.mjs";import"../__chunks__/chunk-
|
|
1
|
+
import"../__chunks__/chunk-YV7ZJBAY.mjs";import"../__chunks__/chunk-K5MJ4FMD.mjs";import{a as F}from"../__chunks__/chunk-XI2BWIQP.mjs";import"../__chunks__/chunk-DXRSXWLQ.mjs";import"../__chunks__/chunk-INRKVOET.mjs";import"../__chunks__/chunk-6ET5BDZH.mjs";import{a as G}from"../__chunks__/chunk-D2JYGLAC.mjs";import"../__chunks__/chunk-ZFXAT6MD.mjs";import{a as H}from"../__chunks__/chunk-Q2Q4XN4M.mjs";import{a as D}from"../__chunks__/chunk-YK7T6MBD.mjs";import{a as E}from"../__chunks__/chunk-KMJMQEXI.mjs";import{a as B,b as C}from"../__chunks__/chunk-SLOQOCEU.mjs";import{a as A}from"../__chunks__/chunk-3GGBXXXJ.mjs";import{a as z}from"../__chunks__/chunk-O7LCTC4K.mjs";import"../__chunks__/chunk-4LTMFD6V.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-HSYMR5UW.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{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../__chunks__/chunk-KD2IQ32V.mjs";import"../__chunks__/chunk-NTEMINYA.mjs";import"../__chunks__/chunk-3FXHIV6O.mjs";import"../__chunks__/chunk-ULUZWP2P.mjs";import"../__chunks__/chunk-MGFIOCA4.mjs";import"../__chunks__/chunk-GGBMHKR4.mjs";import"../__chunks__/chunk-GLXG5BES.mjs";import"../__chunks__/chunk-WVZRN2HX.mjs";export{a as ACCOUNTS_ENDPOINT,b as ADDRESS_ENDPOINT,c as BLOCKS_ENDPOINT,d as CODE_ENDPOINT,e as COLLECTIONS_ENDPOINT,f as CONFIG_ENDPOINT,g as CONTRACTS_ENDPOINT,h as ECONOMICS_ENDPOINT,i as IDENTITIES_ENDPOINT,j as KEYS_ENDPOINT,k as LOCKED_ACCOUNTS_ENDPOINT,l as LOGS_ENDPOINT,m as MINIBLOCKS_ENDPOINT,n as NETWORK_CONFIG_ENDPOINT,o as NFTS_ENDPOINT,p as NODES_ENDPOINT,q as PROVIDERS_ENDPOINT,r as ROLES_ENDPOINT,s as SC_RESULTS_ENDPOINT,t as STAKE_ENDPOINT,u as TOKENS_ENDPOINT,w as TRANSACTIONS_BATCH,v as TRANSACTIONS_COUNT_ENDPOINT,x as TRANSACTIONS_ENDPOINT,y as TRANSFERS_ENDPOINT,B as accountFetcher,G as axiosFetcher,z as axiosInstance,C as getAccountFromApi,A as getCleanApiAddress,E as getNetworkConfigFromApi,D as getServerConfiguration,F as getTokenDetails,H as getWebsocketUrl};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-RYOUAM3L.mjs";import"../../__chunks__/chunk-LGAWIVRO.mjs";import"../../__chunks__/chunk-C4TBDJVT.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-4LTMFD6V.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-HSYMR5UW.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-KD2IQ32V.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getPersistedTokenDetails};
|
|
2
2
|
//# sourceMappingURL=getPersistedTokenDetails.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-XI2BWIQP.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-4LTMFD6V.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-HSYMR5UW.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-KD2IQ32V.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getTokenDetails};
|
|
2
2
|
//# sourceMappingURL=getTokenDetails.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-K5MJ4FMD.mjs";import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-K5MJ4FMD.mjs";import{a}from"../../__chunks__/chunk-XI2BWIQP.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-4LTMFD6V.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-HSYMR5UW.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-KD2IQ32V.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getTokenDetails};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-BBCLPJC4.mjs";import"../../__chunks__/chunk-4LTMFD6V.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-HSYMR5UW.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-KD2IQ32V.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getServerTransactionsByHashes};
|
|
2
2
|
//# sourceMappingURL=getServerTransactionsByHashes.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as o}from"../../__chunks__/chunk-
|
|
1
|
+
import{s as o}from"../../__chunks__/chunk-4LTMFD6V.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import{b as t}from"../../__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-HSYMR5UW.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{x as r}from"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";import m from"axios";var T=e=>{let{apiAddress:i}=t(o());return m.get(`${i}/${r}/${e}`,{timeout:1e4})};export{T as getTransactionByHash};
|
|
2
2
|
//# sourceMappingURL=getTransactionByHash.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-OMZ6A4DO.mjs";import"../../__chunks__/chunk-BBCLPJC4.mjs";import"../../__chunks__/chunk-4LTMFD6V.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-HSYMR5UW.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-KD2IQ32V.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getTransactionsByHashes};
|
|
2
2
|
//# sourceMappingURL=getTransactionsByHashes.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../__chunks__/chunk-
|
|
1
|
+
import{a,b}from"../__chunks__/chunk-DHTRPE3R.mjs";import"../__chunks__/chunk-WVZRN2HX.mjs";export{b as isBrowserWithPopupConfirmation,a as isSafari};
|
|
2
2
|
//# sourceMappingURL=browser.constants.mjs.map
|
package/out/constants/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../__chunks__/chunk-5Y2ZDPP6.mjs";import{a as s,b as t}from"../__chunks__/chunk-
|
|
1
|
+
import"../__chunks__/chunk-5Y2ZDPP6.mjs";import{a as s,b as t}from"../__chunks__/chunk-DHTRPE3R.mjs";import{a as _}from"../__chunks__/chunk-6JSWL75O.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K,k as L}from"../__chunks__/chunk-LHEH7L4L.mjs";import{a as Q,b as R,c as S,d as T,e as U,f as V,g as W,h as X,i as Y,j as Z}from"../__chunks__/chunk-EJV4VNJG.mjs";import{a as M,b as N,c as O,d as P}from"../__chunks__/chunk-IGTIIBN6.mjs";import{a as u,b as v,c as w,d as x,e as y,f as z,g as A}from"../__chunks__/chunk-FI444OX3.mjs";import{a,b,c,d,e,f,g,h,i,j,k}from"../__chunks__/chunk-ULUZWP2P.mjs";import{a as l,b as m,c as n}from"../__chunks__/chunk-MGFIOCA4.mjs";import{a as o,b as p}from"../__chunks__/chunk-GGBMHKR4.mjs";import"../__chunks__/chunk-GLXG5BES.mjs";import"../__chunks__/chunk-LJX4MW7B.mjs";import{a as q,b as r}from"../__chunks__/chunk-WVZRN2HX.mjs";export{J as ALL_SHARDS_SHARD_ID,b as DEVNET_CHAIN_ID,c as DEVNET_EGLD_LABEL,m as ELLIPSIS,n as EMPTY_PPU,E as EXTRA_GAS_LIMIT_GUARDED_TX,D as GAS_LIMIT,C as GAS_PER_DATA_BYTE,F as GAS_PRICE,B as GAS_PRICE_MODIFIER,H as LEDGER_CONTRACT_DATA_ENABLED_VALUE,v as LEDGER_HASH_SIGN_MINIMUM_VERSION,u as LEDGER_MULTI_ACCOUNT_MINIMUM_VERSION,w as LEDGER_SIGN_AUTH_TOKEN_MINIMUM_VERSION,y as LEDGER_WITH_GUARDIANS_MINIMUM_VERSION,z as LEDGER_WITH_USERNAMES_MINIMUM_VERSION,x as LEDGER_WITH_WHITELISTED_TOKENS_MINIMUM_VERSION,f as MAINNET_CHAIN_ID,g as MAINNET_EGLD_LABEL,I as METACHAIN_SHARD_ID,j as MULTIVERSX_ORIGIN,L as MULTI_TRANSFER_EGLD_TOKEN,l as N_A,K as REFUNDED_GAS,P as REHYDRATE_STORE_TIMEOUT,d as TESTNET_CHAIN_ID,e as TESTNET_EGLD_LABEL,k as TIMEOUT,G as VERSION,Y as WALLET_PROVIDER_CALLBACK_PARAM,Z as WALLET_PROVIDER_CALLBACK_PARAM_TX_SIGNED,T as WALLET_PROVIDER_CONNECT_URL,R as WALLET_PROVIDER_DEVNET,U as WALLET_PROVIDER_DISCONNECT_URL,Q as WALLET_PROVIDER_MAINNET,V as WALLET_PROVIDER_SEND_TRANSACTION_URL,X as WALLET_PROVIDER_SIGN_MESSAGE_URL,W as WALLET_PROVIDER_SIGN_TRANSACTION_URL,S as WALLET_PROVIDER_TESTNET,o as WebsocketConnectionStatusEnum,h as chainIdByEnvironment,i as chainIdToEnvironment,a as fallbackNetworkConfigurations,t as isBrowserWithPopupConfirmation,s as isSafari,A as ledgerErrorCodes,M as persistConfig,_ as providerLabels,q as safeWindow,N as storage,O as subscriptions,r as version,p as websocketConnection};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../__chunks__/chunk-
|
|
1
|
+
import{a,b,c,d}from"../__chunks__/chunk-IGTIIBN6.mjs";import"../__chunks__/chunk-WVZRN2HX.mjs";export{d as REHYDRATE_STORE_TIMEOUT,a as persistConfig,b as storage,c as subscriptions};
|
|
2
2
|
//# sourceMappingURL=storage.constants.mjs.map
|
|
@@ -23,7 +23,7 @@ __export(window_constants_exports, {
|
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(window_constants_exports);
|
|
25
25
|
const safeWindow = typeof window !== "undefined" ? window : {};
|
|
26
|
-
const version = "5.1
|
|
26
|
+
const version = "5.2.1";
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
|
29
29
|
safeWindow,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants/window.constants.ts"],
|
|
4
|
-
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.1
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.2.1'; // will be replaced at build time\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,aACX,OAAO,WAAW,cAAc,SAAU,CAAC;AAEtC,MAAM,UAAU;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../__chunks__/chunk-
|
|
1
|
+
import{a,b}from"../__chunks__/chunk-WVZRN2HX.mjs";export{a as safeWindow,b as version};
|
|
2
2
|
//# sourceMappingURL=window.constants.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-CTITNRKA.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-R7667VN6.mjs";import"../../__chunks__/chunk-TQA3JDNV.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-32ZBY2AE.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-N2KEJEOD.mjs";import"../../__chunks__/chunk-BBCLPJC4.mjs";import"../../__chunks__/chunk-TZJL7CZF.mjs";import"../../__chunks__/chunk-R76CQZZH.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-4LTMFD6V.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-HSYMR5UW.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-WVZRN2HX.mjs";export{a as TransactionsHistoryController};
|
|
2
2
|
//# sourceMappingURL=TransactionsHistoryController.mjs.map
|