@multiversx/sdk-dapp 5.0.10 → 5.0.12
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/out/__chunks__/chunk-2MP3RCTQ.mjs +2 -0
- package/out/__chunks__/{chunk-37GQJETS.mjs → chunk-2WU7D7YG.mjs} +2 -2
- package/out/__chunks__/chunk-3M53H6YO.mjs +2 -0
- package/out/__chunks__/{chunk-HATMKO3E.mjs → chunk-3UIE6BRQ.mjs} +2 -2
- package/out/__chunks__/{chunk-IKMXDYW3.mjs → chunk-4GHUCWEP.mjs} +2 -2
- package/out/__chunks__/{chunk-THLKRICU.mjs → chunk-6BLI4FKK.mjs} +2 -2
- package/out/__chunks__/chunk-6J645SGW.mjs +2 -0
- package/out/__chunks__/{chunk-RZJFCSMQ.mjs → chunk-6QSFQQMX.mjs} +2 -2
- package/out/__chunks__/{chunk-W6SHPZ3U.mjs → chunk-7FSHP4H6.mjs} +2 -2
- package/out/__chunks__/chunk-7I2JJXOJ.mjs +2 -0
- package/out/__chunks__/{chunk-C3LVCOLX.mjs.map → chunk-7I2JJXOJ.mjs.map} +2 -2
- package/out/__chunks__/{chunk-A3KALOME.mjs → chunk-7IQY3VO7.mjs} +2 -2
- package/out/__chunks__/{chunk-KDCWDZHE.mjs → chunk-A3KEMXOI.mjs} +2 -2
- package/out/__chunks__/chunk-AHXCPQRJ.mjs +2 -0
- package/out/__chunks__/{chunk-LWLCUOTE.mjs → chunk-B47MW4MQ.mjs} +2 -2
- package/out/__chunks__/{chunk-GO3HIDG6.mjs → chunk-BJAN2AML.mjs} +2 -2
- package/out/__chunks__/chunk-BR6B7DF2.mjs +2 -0
- package/out/__chunks__/{chunk-QCZNG6A7.mjs → chunk-C5FEAEFQ.mjs} +2 -2
- package/out/__chunks__/chunk-CAM3ZPGJ.mjs +2 -0
- package/out/__chunks__/{chunk-F6G45M7E.mjs → chunk-CNVAG3VJ.mjs} +2 -2
- package/out/__chunks__/chunk-CP2FW52J.mjs +2 -0
- package/out/__chunks__/{chunk-ZEF24QFQ.mjs → chunk-CWZPHB67.mjs} +2 -2
- package/out/__chunks__/{chunk-ESWETNND.mjs → chunk-D6PDBNSG.mjs} +2 -2
- package/out/__chunks__/{chunk-6NSQVQGJ.mjs → chunk-DIA7C6K4.mjs} +2 -2
- package/out/__chunks__/{chunk-GJAULBJK.mjs → chunk-DX57OY4M.mjs} +2 -2
- package/out/__chunks__/{chunk-JAISYJMQ.mjs → chunk-EA5FRGGI.mjs} +2 -2
- package/out/__chunks__/{chunk-24YON5QD.mjs → chunk-EQOLC6DK.mjs} +2 -2
- package/out/__chunks__/{chunk-VXQIGYVC.mjs → chunk-ERUJDTZY.mjs} +2 -2
- package/out/__chunks__/{chunk-LP3FNMJH.mjs → chunk-EZF55RCT.mjs} +2 -2
- package/out/__chunks__/{chunk-QYPQVELM.mjs → chunk-G6XQTNAH.mjs} +2 -2
- package/out/__chunks__/chunk-HDET5UQE.mjs +2 -0
- package/out/__chunks__/{chunk-P44TH75P.mjs → chunk-HERYB4JY.mjs} +2 -2
- package/out/__chunks__/chunk-HHRXRHFC.mjs +2 -0
- package/out/__chunks__/{chunk-JK3FLSXR.mjs → chunk-HOWOZOK5.mjs} +2 -2
- package/out/__chunks__/{chunk-APW4J6AS.mjs → chunk-HPRIBTT7.mjs} +2 -2
- package/out/__chunks__/{chunk-VYCZQO5G.mjs → chunk-HQLKZJ25.mjs} +2 -2
- package/out/__chunks__/{chunk-XGOW3DLS.mjs → chunk-HU3AHMQJ.mjs} +2 -2
- package/out/__chunks__/{chunk-GOBN6PUQ.mjs → chunk-IB7XJW3Z.mjs} +2 -2
- package/out/__chunks__/{chunk-4CWR2NJK.mjs → chunk-IGJ5TMOT.mjs} +2 -2
- package/out/__chunks__/{chunk-EH3RKIKC.mjs → chunk-IHCYCTKF.mjs} +2 -2
- package/out/__chunks__/{chunk-EO6YS5TR.mjs → chunk-IRE3CPRO.mjs} +2 -2
- package/out/__chunks__/{chunk-PA7AMY6W.mjs → chunk-JKDQLXRK.mjs} +2 -2
- package/out/__chunks__/{chunk-EYL5DTCP.mjs → chunk-JUP4CZ2X.mjs} +2 -2
- package/out/__chunks__/chunk-KKTID7DD.mjs +2 -0
- package/out/__chunks__/{chunk-IUFE5QMD.mjs → chunk-KMIXMIDH.mjs} +2 -2
- package/out/__chunks__/{chunk-YD7XXBEF.mjs → chunk-KZPUZR2Y.mjs} +2 -2
- package/out/__chunks__/{chunk-UCW5NENH.mjs → chunk-LSBFHWUY.mjs} +2 -2
- package/out/__chunks__/chunk-LTAJZBHP.mjs +2 -0
- package/out/__chunks__/{chunk-NUKCXXE7.mjs.map → chunk-LTAJZBHP.mjs.map} +1 -1
- package/out/__chunks__/chunk-M7BM6QPB.mjs +2 -0
- package/out/__chunks__/{chunk-X4XULIVT.mjs.map → chunk-M7BM6QPB.mjs.map} +2 -2
- package/out/__chunks__/{chunk-P4WKGTAO.mjs → chunk-MYCBTVET.mjs} +2 -2
- package/out/__chunks__/chunk-N24QHAHB.mjs +2 -0
- package/out/__chunks__/chunk-NMOXI6JM.mjs +2 -0
- package/out/__chunks__/{chunk-2HQWOWUK.mjs → chunk-NX27H6YQ.mjs} +2 -2
- package/out/__chunks__/{chunk-KZSAOENX.mjs → chunk-OC6EUGTY.mjs} +2 -2
- package/out/__chunks__/{chunk-KSLDJ36Q.mjs → chunk-OIEXBS5U.mjs} +2 -2
- package/out/__chunks__/chunk-OOIVSS6B.mjs +2 -0
- package/out/__chunks__/chunk-OOIVSS6B.mjs.map +7 -0
- package/out/__chunks__/{chunk-FDDIV4MY.mjs → chunk-OTBCYYQJ.mjs} +2 -2
- package/out/__chunks__/chunk-PQ2NXYA5.mjs +2 -0
- package/out/__chunks__/{chunk-RFOZXJED.mjs → chunk-PXOF6KO2.mjs} +2 -2
- package/out/__chunks__/{chunk-CQ3TQFRH.mjs → chunk-QET2LPCN.mjs} +2 -2
- package/out/__chunks__/{chunk-ZRO6U2CK.mjs → chunk-QSUVTM4Q.mjs} +2 -2
- package/out/__chunks__/{chunk-LUJL3TMO.mjs → chunk-RCWWARI5.mjs} +2 -2
- package/out/__chunks__/{chunk-UEZ62NSX.mjs → chunk-RWONERD2.mjs} +2 -2
- package/out/__chunks__/{chunk-UEZ62NSX.mjs.map → chunk-RWONERD2.mjs.map} +2 -2
- package/out/__chunks__/{chunk-R4NNE2QE.mjs → chunk-RXEX2FW6.mjs} +2 -2
- package/out/__chunks__/chunk-S4ILNY2V.mjs +2 -0
- package/out/__chunks__/{chunk-67HWG3LZ.mjs → chunk-SCIZ57T6.mjs} +2 -2
- package/out/__chunks__/chunk-TP37QCFI.mjs +2 -0
- package/out/__chunks__/chunk-TP37QCFI.mjs.map +7 -0
- package/out/__chunks__/{chunk-ZPMJKDPP.mjs → chunk-TVPUPQOT.mjs} +2 -2
- package/out/__chunks__/chunk-TWLXB65I.mjs +2 -0
- package/out/__chunks__/chunk-URDBQFRH.mjs +2 -0
- package/out/__chunks__/{chunk-WCTJY5KM.mjs.map → chunk-URDBQFRH.mjs.map} +2 -2
- package/out/__chunks__/chunk-V3W43G5K.mjs +2 -0
- package/out/__chunks__/{chunk-ATGMUGBA.mjs → chunk-VFWJ7ARF.mjs} +2 -2
- package/out/__chunks__/{chunk-QBQQSGSP.mjs → chunk-VH7LP5H3.mjs} +2 -2
- package/out/__chunks__/{chunk-5HL26PV7.mjs → chunk-W52HYKAU.mjs} +2 -2
- package/out/__chunks__/{chunk-JHAJ64CY.mjs → chunk-X3YODHAF.mjs} +2 -2
- package/out/__chunks__/{chunk-7BOVBFFV.mjs → chunk-XDLAYQD5.mjs} +2 -2
- package/out/__chunks__/{chunk-XTPCX6MF.mjs → chunk-XHOEWGQ4.mjs} +2 -2
- package/out/__chunks__/{chunk-77MB3RKC.mjs → chunk-Y3MZT7FL.mjs} +2 -2
- package/out/__chunks__/{chunk-GY43CTNP.mjs → chunk-Z5FBBXZT.mjs} +2 -2
- package/out/__chunks__/{chunk-FAWVNS4Q.mjs → chunk-ZDBSG2BU.mjs} +2 -2
- package/out/__chunks__/{chunk-NBEHPVGH.mjs → chunk-ZGAD3U3E.mjs} +2 -2
- package/out/__chunks__/chunk-ZO7UCTX4.mjs +2 -0
- package/out/__chunks__/chunk-ZO7UCTX4.mjs.map +7 -0
- package/out/__chunks__/{chunk-6TYMK3S6.mjs → chunk-ZU6E3AQR.mjs} +2 -2
- package/out/__chunks__/chunk-ZYCDEAG7.mjs +2 -0
- package/out/__chunks__/{chunk-TZ3YUCED.mjs.map → chunk-ZYCDEAG7.mjs.map} +3 -3
- 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.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.cjs +37 -38
- package/out/managers/TransactionManager/TransactionManager.cjs.map +2 -2
- package/out/managers/TransactionManager/TransactionManager.d.ts +0 -1
- 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.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.cjs +7 -2
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs.map +2 -2
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.d.ts +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/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs.map +2 -2
- package/out/managers/internal/UIBaseManager/UIBaseManager.d.ts +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.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.cjs +2 -1
- package/out/methods/account/getLatestNonce.cjs.map +2 -2
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +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.d.ts +0 -5
- 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/getSuccessfulTransactionsSessions.mjs.map +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.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.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/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +1 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +2 -2
- 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.d.ts +0 -5
- 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.cjs +2 -20
- package/out/store/actions/loginInfo/loginInfoActions.cjs.map +2 -2
- package/out/store/actions/loginInfo/loginInfoActions.d.ts +1 -3
- 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.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/slices/index.mjs +1 -1
- package/out/store/slices/loginInfo/index.mjs +1 -1
- package/out/store/slices/loginInfo/loginInfo.types.cjs.map +1 -1
- package/out/store/slices/loginInfo/loginInfo.types.d.ts +0 -9
- package/out/store/slices/loginInfo/loginInfoSlice.cjs +0 -4
- package/out/store/slices/loginInfo/loginInfoSlice.cjs.map +2 -2
- package/out/store/slices/loginInfo/loginInfoSlice.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/tests/getElementByDataTestIdDeep.jest.d.ts +9 -0
- package/out/utils/tests/getElementByDataTestIdDeep.playwright.d.ts +9 -0
- package/out/utils/tests/getElementByDataTestIdDeep.puppeteer.d.ts +9 -0
- package/out/utils/tests/shadowDomTraversal.d.ts +17 -0
- 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.cjs +5 -8
- package/out/utils/window/getWindowParentOrigin.cjs.map +2 -2
- package/out/utils/window/getWindowParentOrigin.d.ts +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +1 -1
- package/out/__chunks__/chunk-2NHQLPQZ.mjs +0 -2
- package/out/__chunks__/chunk-6BEBX4RH.mjs +0 -2
- package/out/__chunks__/chunk-77XXLJH2.mjs +0 -2
- package/out/__chunks__/chunk-C3LVCOLX.mjs +0 -2
- package/out/__chunks__/chunk-DZGLONCH.mjs +0 -2
- package/out/__chunks__/chunk-DZGLONCH.mjs.map +0 -7
- package/out/__chunks__/chunk-E6YIVYVH.mjs +0 -2
- package/out/__chunks__/chunk-IVQKDPKR.mjs +0 -2
- package/out/__chunks__/chunk-IVQKDPKR.mjs.map +0 -7
- package/out/__chunks__/chunk-J2BFMJ4R.mjs +0 -2
- package/out/__chunks__/chunk-JCIAIQ6A.mjs +0 -2
- package/out/__chunks__/chunk-JXBZL733.mjs +0 -2
- package/out/__chunks__/chunk-NUKCXXE7.mjs +0 -2
- package/out/__chunks__/chunk-PJQKMSYS.mjs +0 -2
- package/out/__chunks__/chunk-SG754XHN.mjs +0 -2
- package/out/__chunks__/chunk-TBEZUIKL.mjs +0 -2
- package/out/__chunks__/chunk-TXZ53KDQ.mjs +0 -2
- package/out/__chunks__/chunk-TYLXZ7I3.mjs +0 -2
- package/out/__chunks__/chunk-TZ3YUCED.mjs +0 -2
- package/out/__chunks__/chunk-UWSOMYZJ.mjs +0 -2
- package/out/__chunks__/chunk-UYIZDU7U.mjs +0 -2
- package/out/__chunks__/chunk-WCTJY5KM.mjs +0 -2
- package/out/__chunks__/chunk-WRFEEFU6.mjs +0 -2
- package/out/__chunks__/chunk-WRFZRRKZ.mjs +0 -2
- package/out/__chunks__/chunk-WYNZ6UQF.mjs +0 -2
- package/out/__chunks__/chunk-WYNZ6UQF.mjs.map +0 -7
- package/out/__chunks__/chunk-X4XULIVT.mjs +0 -2
- /package/out/__chunks__/{chunk-JCIAIQ6A.mjs.map → chunk-2MP3RCTQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-37GQJETS.mjs.map → chunk-2WU7D7YG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TXZ53KDQ.mjs.map → chunk-3M53H6YO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HATMKO3E.mjs.map → chunk-3UIE6BRQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IKMXDYW3.mjs.map → chunk-4GHUCWEP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-THLKRICU.mjs.map → chunk-6BLI4FKK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TBEZUIKL.mjs.map → chunk-6J645SGW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RZJFCSMQ.mjs.map → chunk-6QSFQQMX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W6SHPZ3U.mjs.map → chunk-7FSHP4H6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A3KALOME.mjs.map → chunk-7IQY3VO7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KDCWDZHE.mjs.map → chunk-A3KEMXOI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J2BFMJ4R.mjs.map → chunk-AHXCPQRJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LWLCUOTE.mjs.map → chunk-B47MW4MQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GO3HIDG6.mjs.map → chunk-BJAN2AML.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E6YIVYVH.mjs.map → chunk-BR6B7DF2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QCZNG6A7.mjs.map → chunk-C5FEAEFQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WRFZRRKZ.mjs.map → chunk-CAM3ZPGJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F6G45M7E.mjs.map → chunk-CNVAG3VJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6BEBX4RH.mjs.map → chunk-CP2FW52J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZEF24QFQ.mjs.map → chunk-CWZPHB67.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ESWETNND.mjs.map → chunk-D6PDBNSG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6NSQVQGJ.mjs.map → chunk-DIA7C6K4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GJAULBJK.mjs.map → chunk-DX57OY4M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JAISYJMQ.mjs.map → chunk-EA5FRGGI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-24YON5QD.mjs.map → chunk-EQOLC6DK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VXQIGYVC.mjs.map → chunk-ERUJDTZY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LP3FNMJH.mjs.map → chunk-EZF55RCT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QYPQVELM.mjs.map → chunk-G6XQTNAH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UYIZDU7U.mjs.map → chunk-HDET5UQE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P44TH75P.mjs.map → chunk-HERYB4JY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WRFEEFU6.mjs.map → chunk-HHRXRHFC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JK3FLSXR.mjs.map → chunk-HOWOZOK5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-APW4J6AS.mjs.map → chunk-HPRIBTT7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VYCZQO5G.mjs.map → chunk-HQLKZJ25.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XGOW3DLS.mjs.map → chunk-HU3AHMQJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GOBN6PUQ.mjs.map → chunk-IB7XJW3Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4CWR2NJK.mjs.map → chunk-IGJ5TMOT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EH3RKIKC.mjs.map → chunk-IHCYCTKF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EO6YS5TR.mjs.map → chunk-IRE3CPRO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PA7AMY6W.mjs.map → chunk-JKDQLXRK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EYL5DTCP.mjs.map → chunk-JUP4CZ2X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2NHQLPQZ.mjs.map → chunk-KKTID7DD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IUFE5QMD.mjs.map → chunk-KMIXMIDH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YD7XXBEF.mjs.map → chunk-KZPUZR2Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UCW5NENH.mjs.map → chunk-LSBFHWUY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P4WKGTAO.mjs.map → chunk-MYCBTVET.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TYLXZ7I3.mjs.map → chunk-N24QHAHB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UWSOMYZJ.mjs.map → chunk-NMOXI6JM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2HQWOWUK.mjs.map → chunk-NX27H6YQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KZSAOENX.mjs.map → chunk-OC6EUGTY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KSLDJ36Q.mjs.map → chunk-OIEXBS5U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FDDIV4MY.mjs.map → chunk-OTBCYYQJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JXBZL733.mjs.map → chunk-PQ2NXYA5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RFOZXJED.mjs.map → chunk-PXOF6KO2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CQ3TQFRH.mjs.map → chunk-QET2LPCN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZRO6U2CK.mjs.map → chunk-QSUVTM4Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LUJL3TMO.mjs.map → chunk-RCWWARI5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R4NNE2QE.mjs.map → chunk-RXEX2FW6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-77XXLJH2.mjs.map → chunk-S4ILNY2V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-67HWG3LZ.mjs.map → chunk-SCIZ57T6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZPMJKDPP.mjs.map → chunk-TVPUPQOT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SG754XHN.mjs.map → chunk-TWLXB65I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PJQKMSYS.mjs.map → chunk-V3W43G5K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ATGMUGBA.mjs.map → chunk-VFWJ7ARF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QBQQSGSP.mjs.map → chunk-VH7LP5H3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5HL26PV7.mjs.map → chunk-W52HYKAU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JHAJ64CY.mjs.map → chunk-X3YODHAF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7BOVBFFV.mjs.map → chunk-XDLAYQD5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XTPCX6MF.mjs.map → chunk-XHOEWGQ4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-77MB3RKC.mjs.map → chunk-Y3MZT7FL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GY43CTNP.mjs.map → chunk-Z5FBBXZT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FAWVNS4Q.mjs.map → chunk-ZDBSG2BU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NBEHPVGH.mjs.map → chunk-ZGAD3U3E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6TYMK3S6.mjs.map → chunk-ZU6E3AQR.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-YNXPGS77.mjs";import{c as r,d as a}from"./chunk-CAA4VJRH.mjs";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-YNXPGS77.mjs";import{c as r,d as a}from"./chunk-CAA4VJRH.mjs";import{s as e}from"./chunk-ZYCDEAG7.mjs";import{a as n}from"./chunk-UERJ6AKK.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2WU7D7YG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{t as n}from"./chunk-ZDBSG2BU.mjs";import{a as i}from"./chunk-PLUWBWJ2.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3UIE6BRQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-FKBLKOLI.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-FKBLKOLI.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as o}from"./chunk-HHRXRHFC.mjs";import{s as n}from"./chunk-ZYCDEAG7.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var w=async r=>{let{isGuarded:s}=o();if(!i({isGuarded:s,transactions:r}))return r;let a=r[0].getSender().bech32().toString(),{walletAddress:d}=e(n());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4GHUCWEP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-RWONERD2.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6BLI4FKK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-D6PDBNSG.mjs";import{b as r}from"./chunk-Z5FBBXZT.mjs";import{s as i}from"./chunk-ZYCDEAG7.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-6QSFQQMX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-ERUJDTZY.mjs";import e from"lodash.isempty";var p=async({transactionsSessions:t,address:i,explorerAddress:a,egldLabel:o})=>{if(e(t))return[];let n=s(t);return r({transactions:n,address:i,explorerAddress:a,egldLabel:o})};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7FSHP4H6.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as u}from"./chunk-TQA3JDNV.mjs";import{s}from"./chunk-ZYCDEAG7.mjs";import{e as a}from"./chunk-UERJ6AKK.mjs";function x(n){let e=s(),o=u(e),c=a(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t,n.nonce,c)}export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7I2JJXOJ.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/methods/account/getLatestNonce.ts"],
|
|
4
|
-
"sourcesContent": ["import { accountNonceSelector } from '../../store/selectors/accountSelectors';\nimport { transactionsSliceSelector } from '../../store/selectors/transactionsSelector';\nimport { getState } from '../../store/store';\nimport { AccountType } from '../../types/account.types';\n\nexport function getLatestNonce(apiAccount: AccountType | null) {\n const state = getState();\n const transactionsSessions = transactionsSliceSelector(state);\n const currentAccountNonce = accountNonceSelector(state);\n\n // Get the max transactions nonce\n let lastTransactionNonce = Object.keys(transactionsSessions)\n .map(Number) // Convert keys to numbers (timestamps)\n .reduce((maxNonce, timestamp) => {\n const transactions = transactionsSessions[timestamp]?.transactions || [];\n return Math.max(maxNonce, ...transactions.map((tx) => tx.nonce), 0);\n }, 0);\n\n if (lastTransactionNonce > 0) {\n lastTransactionNonce += 1; // Increment only if there's at least one pending transaction\n }\n\n if (apiAccount == null) {\n const currentStoreNonce = Math.max(\n lastTransactionNonce,\n currentAccountNonce\n );\n return currentStoreNonce;\n }\n\n const currentNonce = Math.max(\n lastTransactionNonce
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { accountNonceSelector } from '../../store/selectors/accountSelectors';\nimport { transactionsSliceSelector } from '../../store/selectors/transactionsSelector';\nimport { getState } from '../../store/store';\nimport { AccountType } from '../../types/account.types';\n\nexport function getLatestNonce(apiAccount: AccountType | null) {\n const state = getState();\n const transactionsSessions = transactionsSliceSelector(state);\n const currentAccountNonce = accountNonceSelector(state);\n\n // Get the max transactions nonce\n let lastTransactionNonce = Object.keys(transactionsSessions)\n .map(Number) // Convert keys to numbers (timestamps)\n .reduce((maxNonce, timestamp) => {\n const transactions = transactionsSessions[timestamp]?.transactions || [];\n return Math.max(maxNonce, ...transactions.map((tx) => tx.nonce), 0);\n }, 0);\n\n if (lastTransactionNonce > 0) {\n lastTransactionNonce += 1; // Increment only if there's at least one pending transaction\n }\n\n if (apiAccount == null) {\n const currentStoreNonce = Math.max(\n lastTransactionNonce,\n currentAccountNonce\n );\n return currentStoreNonce;\n }\n\n const currentNonce = Math.max(\n lastTransactionNonce,\n apiAccount.nonce,\n currentAccountNonce\n );\n\n return currentNonce;\n}\n"],
|
|
5
|
+
"mappings": "sHAKO,SAASA,EAAeC,EAAgC,CAC7D,IAAMC,EAAQC,EAAS,EACjBC,EAAuBC,EAA0BH,CAAK,EACtDI,EAAsBC,EAAqBL,CAAK,EAGlDM,EAAuB,OAAO,KAAKJ,CAAoB,EACxD,IAAI,MAAM,EACV,OAAO,CAACK,EAAUC,IAAc,CAC/B,IAAMC,EAAeP,EAAqBM,CAAS,GAAG,cAAgB,CAAC,EACvE,OAAO,KAAK,IAAID,EAAU,GAAGE,EAAa,IAAKC,GAAOA,EAAG,KAAK,EAAG,CAAC,CACpE,EAAG,CAAC,EAMN,OAJIJ,EAAuB,IACzBA,GAAwB,GAGtBP,GAAc,KACU,KAAK,IAC7BO,EACAF,CACF,EAImB,KAAK,IACxBE,EACAP,EAAW,MACXK,CACF,CAGF",
|
|
6
6
|
"names": ["getLatestNonce", "apiAccount", "state", "getState", "transactionsSessions", "transactionsSliceSelector", "currentAccountNonce", "accountNonceSelector", "lastTransactionNonce", "maxNonce", "timestamp", "transactions", "tx"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-IRE3CPRO.mjs";import{a as T}from"./chunk-XCVEFI4B.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as m}from"./chunk-FNYBJAH3.mjs";import{a as l}from"./chunk-U3UMCTU6.mjs";import{c as d}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-UK5MEKBE.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-7IQY3VO7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-JKDQLXRK.mjs";import{a as e}from"./chunk-HDET5UQE.mjs";import{a as i}from"./chunk-CDQ2BNUD.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-A3KEMXOI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-LTAJZBHP.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
|
|
2
|
+
//# sourceMappingURL=chunk-B47MW4MQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-DIA7C6K4.mjs";import{a as c}from"./chunk-CP2FW52J.mjs";import{a}from"./chunk-YUFPUG5O.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BJAN2AML.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-HDET5UQE.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-C5FEAEFQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-4TBVQD27.mjs";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-ZYCDEAG7.mjs";var c=t=>n().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),C=t=>n().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>n().setState(({config:e})=>{let a=t.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=t.walletConnectDeepLink||o.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:s,walletConnectV2RelayAddress:a}},!1,"setWalletConnectConfig");export{c as a,C as b,f as c};
|
|
2
|
+
//# sourceMappingURL=chunk-CNVAG3VJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-W52HYKAU.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CWZPHB67.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-KZPUZR2Y.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-D6PDBNSG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-CP2FW52J.mjs";import{a as f}from"./chunk-FRDR4A7Z.mjs";import{t as c}from"./chunk-ZDBSG2BU.mjs";import{s as n}from"./chunk-ZYCDEAG7.mjs";import{g as a}from"./chunk-UERJ6AKK.mjs";import{e as l}from"./chunk-VNLGNNIL.mjs";import{HWProvider as m}from"@multiversx/sdk-hw-provider";async function A(u){let v=g(),d=u?.shouldInitProvider||!v,o=l(n()),t=a(n()),r=c(),i=new m,I=async()=>{let e=o?.index!=null;if(r instanceof m&&r.isInitialized())return e&&await r.setAddressIndex(o.index),r;if(d&&!await i.init())throw new Error("Failed to initialize Ledger Provider");return e&&await i.setAddressIndex(o.index),i};try{if(!d&&t)return{ledgerProvider:i,ledgerConfig:{version:t.version,dataEnabled:t.hasContractDataEnabled}};let e=await I(),s=await f(e);return{ledgerProvider:e,ledgerConfig:s}}catch(e){throw console.error("Could not initialize ledger app",e),e}}export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DIA7C6K4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as s}from"./chunk-SCIZ57T6.mjs";import{a as u}from"./chunk-URDBQFRH.mjs";import{s as c}from"./chunk-ZYCDEAG7.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-CDQ2BNUD.mjs";import{a as o}from"./chunk-PLUWBWJ2.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:a})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:a})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:a}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(o).filter(n=>![o.none,o.webview,o.passkey].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DX57OY4M.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-PJDJEPY2.mjs";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-PJDJEPY2.mjs";import{a as l}from"./chunk-AHXCPQRJ.mjs";import{a as f}from"./chunk-BR6B7DF2.mjs";import{j as m,k as d,l as p,n as u}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-ERUJDTZY.mjs";var q=async({toastList:S,transactionsSessions:g,account:o,existingCompletedTransactions:y=[]})=>{let n=[],a=[...y],r=l(),F=f();for(let t of S.transactionToasts){let e=g[t.toastId];if(!e?.status)continue;let{status:s,transactions:C,transactionsDisplayInfo:P}=e,x=await T({transactions:C,address:o.address,explorerAddress:r,egldLabel:F}),A=u(s),E=p(s),L=d(s),i=A||E||L,v=m(s),{startTime:R,endTime:b}=t;if(i&&a.some(h=>h.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:x,transactionsDisplayInfo:P,explorerAddress:r,startTime:R,endTime:b});i&&a.push(c),v&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{q as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EA5FRGGI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-N24QHAHB.mjs";import{a as k}from"./chunk-NMOXI6JM.mjs";import{q as f}from"./chunk-ZYCDEAG7.mjs";import{d as b}from"./chunk-UERJ6AKK.mjs";import{c as n}from"./chunk-RXEX2FW6.mjs";import{b as i}from"./chunk-GGBMHKR4.mjs";async function N(){let o=f(),I=g(),s=null,t=null,l=b(o.getState())?.timestamp,c=()=>{k()},u=()=>{s??=setInterval(c,I)},m=()=>{s&&(clearInterval(s),s=null)},p=()=>{m();let a=o.subscribe(({account:{websocketEvent:e}})=>{e?.message&&l!==e.timestamp&&(l=e.timestamp,c())});n.set("websocketEventReceived",a)},S=()=>{i.status!=="not_initialized"||t||(t=setInterval(()=>{i.status==="completed"&&(clearInterval(t),t=null,p())},1e3))};c();let r=()=>{m(),t&&(clearInterval(t),t=null)},v=o.subscribe(({account:{address:a},config:{websocketStatus:e}},T)=>{if(T.config.websocketStatus!==e)switch(e){case"completed":p();break;case"pending":u(),S();break;default:a?u():r();break}});return n.set("websocketStatusChanged",v),n.set("websocketEventReceived",r),{stopTransactionsTracking:r}}export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EQOLC6DK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as h}from"./chunk-W52HYKAU.mjs";import{a as p}from"./chunk-IB7XJW3Z.mjs";import{a as d}from"./chunk-6J645SGW.mjs";import{a as T}from"./chunk-QQAW7UC2.mjs";var f=a=>a.sort((i,o)=>o.timestamp-i.timestamp),H=async({transactions:a,address:i,explorerAddress:o,egldLabel:g})=>{let e=[],r=[];if(a.forEach(s=>{let t=d(s.hash);t?e.push(t):r.push(s.hash)}),r.length===0)return f(e);let c=await h(r),I=c.map(s=>s.txHash),m=r.filter(s=>!I.includes(s));if(m.length>0){let t=a.filter(n=>m.includes(n.hash)).map(n=>({...n,txHash:n.hash,price:0,status:"pending",gasUsed:0,miniBlockHash:"",receiverShard:0,round:0,senderShard:0,timestamp:Date.now()}));c.push(...t)}return c.forEach(s=>{let t=T({transaction:s,address:i,explorerAddress:o,egldLabel:g});t.status!=="pending"&&p({key:`transaction-${s.txHash}`,value:t}),e.push(t)}),f(e)};export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ERUJDTZY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as o,f as a,g as i,h as r}from"./chunk-TQA3JDNV.mjs";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as o,f as a,g as i,h as r}from"./chunk-TQA3JDNV.mjs";import{s as c}from"./chunk-ZYCDEAG7.mjs";function b(){let t=c(),l=r(t),u=i(t),T=a(t),d=o(t),e=Object.keys(d)?.length>0,n=!e&&Object.keys(l)?.length>0,s=!e&&!n&&Object.keys(u)?.length>0,f=!e&&!n&&!s&&Object.keys(T).length>0;return{pending:e,timedOut:n,fail:s,success:f}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EZF55RCT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{t as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{t as g}from"./chunk-ZDBSG2BU.mjs";import{q as u}from"./chunk-ZYCDEAG7.mjs";import{a as p}from"./chunk-UERJ6AKK.mjs";import{a as h,c as l,g as c}from"./chunk-NTEMINYA.mjs";import{a as y}from"./chunk-LTAJZBHP.mjs";var M=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=u();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){y.addEventListener("message",this.handleMessage)}stopListening(){y.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case o.finalizeHandshakeRequest:this.handshake({event:e});break;case o.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case o.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case o.signTransactionsRequest:this.signTransactions({event:e});break;case i.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=p(this.store.getState()),r=g(),n=new c({address:new l(t),data:new Uint8Array(Buffer.from(a))}),d=(await r.signMessage(n))?.signature??"";e.source?.postMessage({type:i.loginResponse,payload:{data:{address:t,signature:Buffer.from(d).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&this.handleLoginCancelled()}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:i.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=p(this.store.getState()),{message:t}=s;try{let r=new c({address:new l(a),data:new Uint8Array(Buffer.from(t))}),d=(await g().signMessage(r))?.signature??"";e.source?.postMessage({type:i.signMessageResponse,payload:{data:{signature:Buffer.from(d).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(n=>h.newFromPlainObject(n)),r=await s.signTransactions(t);e.source?.postMessage({type:i.signTransactionsResponse,payload:{data:r.map(n=>n.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-G6XQTNAH.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as N}from"./chunk-Q2Q4XN4M.mjs";import{b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as N}from"./chunk-Q2Q4XN4M.mjs";import{b}from"./chunk-CNVAG3VJ.mjs";import{d as C,e as I}from"./chunk-HOWOZOK5.mjs";import{q as p}from"./chunk-ZYCDEAG7.mjs";import{b as E}from"./chunk-SAAOQW7P.mjs";import{a as y}from"./chunk-MGQ373AO.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as L}from"socket.io-client";var U=3e3,d=3,k=500,W=1e3,M=1e3,S="batchUpdated",w="connect",O="connect_error",A="disconnect";async function K(l){let{apiAddress:_,websocketUrl:g}=E(p().getState());if(!l)throw new Error("Websocket could not be initialized: address missing");let o=null,n=null,c=e=>{t.status=e,b(e)},R=e=>{o&&clearTimeout(o),o=setTimeout(()=>{C(e)},W)},h=e=>{n&&clearTimeout(n),n=setTimeout(()=>{I(e)},W)},D=()=>{let e=t.instance;e&&(e.off(O),e.off(w),e.off(S),e.off(A),e.close(),console.log("Websocket disconnected.")),c("not_initialized"),t.instance=null,o&&clearTimeout(o),n&&clearTimeout(n)},m=y(async()=>{let e=async(i=d,a=k)=>{let f=0,r=null,s=null,T=async()=>{if(f>=i){console.warn("WebSocket reconnection failed after max attempts."),c("not_initialized");return}f++,t.instance?.off(),t.instance?.close(),t.instance=null;try{await m(),r=setTimeout(()=>{t.instance?.connected||(s=setTimeout(T,a))},M)}catch{s=setTimeout(T,a)}};return T(),()=>{r&&(clearTimeout(r),r=null),s&&(clearTimeout(s),s=null)}};c("pending");let u=g??await N(_);if(!u){c("not_initialized");return}t.instance=L(u,{forceNew:!0,reconnection:!0,reconnectionAttempts:d,timeout:U,query:{address:l}}),t.instance.onAny(R),t.instance.on(S,h),t.instance.on(w,()=>{console.log("Websocket connected."),c("completed")}),t.instance.on(O,async i=>{console.warn("Websocket connect error: ",i.message),(await e())()}),t.instance.on(A,async()=>{console.warn("Websocket disconnected. Trying to reconnect..."),(await e())()})},{retries:2,delay:k});return t.status==="not_initialized"&&!t.instance?.active&&await m(),{closeConnection:D}}export{K as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HERYB4JY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as c}from"./chunk-ZYCDEAG7.mjs";import{a as o}from"./chunk-JMC7CMTU.mjs";var r=e=>{c().setState(({account:t})=>{let s=t.address===e.address;t.accounts={[t.address]:s?e:o}},!1,"setAccount")},u=e=>c().setState(({account:t})=>{t.ledgerAccount=e},!1,"setLedgerAccount"),p=e=>c().setState(({account:t})=>{t.walletConnectAccount=e},!1,"setWalletConnectAccount"),l=e=>c().setState(({account:t})=>{t.websocketEvent={timestamp:Date.now(),message:e}},!1,"setWebsocketEvent"),m=e=>c().setState(({account:t})=>{t.websocketBatchEvent={timestamp:Date.now(),data:e}},!1,"setWebsocketBatchEvent"),A=e=>{c().setState(({account:t})=>{t.accounts[t.address].nonce=e},!1,"setAccountNonce")};export{r as a,u as b,p as c,l as d,m as e,A as f};
|
|
2
|
+
//# sourceMappingURL=chunk-HOWOZOK5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as h}from"./chunk-CWZPHB67.mjs";import{a as S}from"./chunk-OTBCYYQJ.mjs";import{a as o}from"./chunk-FMQYLMTU.mjs";import{a as y}from"./chunk-MFUQ5NBC.mjs";import{b as i,c as f}from"./chunk-OC6EUGTY.mjs";import{l}from"./chunk-65L5EBBL.mjs";var u={};async function d({serverTransaction:e,sessionId:t,isSequential:c}){let{hash:a,status:r,results:m,invalidTransaction:n,hasStatusChanged:p}=e;try{if(u[a]>30){i({sessionId:t,status:"timedOut"}),await o({sessionId:t,status:"timedOut"});return}if(n&&!c||r==="sent"){u[a]=u[a]?u[a]+1:1;return}if(c&&!r){let s=f({sessionId:t,transaction:e});await o({sessionId:t,status:s});return}if(p){let s=f({sessionId:t,transaction:e});await o({sessionId:t,status:s})}l(r)&&await S({sessionId:t,hash:a,results:m})}catch(T){console.error(T),i({sessionId:t,status:"timedOut"}),await o({sessionId:t,status:"timedOut"})}}async function R({sessionId:e,transactionBatch:t,isSequential:c}){try{if(t==null)return;let a=y(t),r=await h(a);for(let n of r)await d({serverTransaction:n,sessionId:e,isSequential:c});if(r.every(n=>n.status!=="pending")){if(r.every(s=>s.status==="success"))return i({sessionId:e,status:"success"});if(r.some(s=>s.status==="fail"))return i({sessionId:e,status:"fail"});if(r.every(s=>s.invalidTransaction))return i({sessionId:e,status:"invalid"})}}catch(a){console.error(a)}}export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HPRIBTT7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-SCIZ57T6.mjs";import{s as n}from"./chunk-ZDBSG2BU.mjs";import{s as m}from"./chunk-ZYCDEAG7.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-PLUWBWJ2.mjs";import{a as f}from"./chunk-IHCYCTKF.mjs";async function u(){let i=s(),o=f()||i?e.webview:t(m());if(!o)return;let r=await p.create({type:o});if(!r)throw new Error("Provider not found");(i||o===e.webview&&r.isInitialized())&&await r.login(),n(r)}export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HQLKZJ25.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-URDBQFRH.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HU3AHMQJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as a}from"./chunk-ZYCDEAG7.mjs";var r=({key:e,value:t})=>{a().setState(({cache:c})=>{c[e]=t},!1,"saveToCache")},s=e=>{a().setState(({cache:t})=>{delete t[e]},!1,"removeFromCache")},h=()=>{a().setState(({cache:e})=>{Object.keys(e).forEach(t=>{delete e[t]})},!1,"clearCache")};export{r as a,s as b,h as c};
|
|
2
|
+
//# sourceMappingURL=chunk-IB7XJW3Z.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-RCWWARI5.mjs";import{a as o}from"./chunk-WE7YOBO7.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IGJ5TMOT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-OOIVSS6B.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IHCYCTKF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-QET2LPCN.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IRE3CPRO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-HU3AHMQJ.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JKDQLXRK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as e}from"./chunk-ZYCDEAG7.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JUP4CZ2X.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as h}from"./chunk-NX27H6YQ.mjs";import{a as s}from"./chunk-Y3MZT7FL.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-AHXCPQRJ.mjs";import{b as A}from"./chunk-HOWOZOK5.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{f as p}from"./chunk-ZYCDEAG7.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-PLUWBWJ2.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-KMIXMIDH.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as r}from"./chunk-ZYCDEAG7.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var d=s=>{let o=e(r()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KZPUZR2Y.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-HERYB4JY.mjs";var t={closeConnectionRef:void 0};async function c(n){let{closeConnection:o}=await e(n);t.closeConnectionRef=o}export{t as a,c as b};
|
|
2
|
+
//# sourceMappingURL=chunk-LSBFHWUY.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.0.
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.0.12'; // 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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/store/slices/loginInfo/loginInfoSlice.ts"],
|
|
4
|
-
"sourcesContent": ["import { StateCreator } from 'zustand/vanilla';\nimport { StoreType, MutatorsIn } from 'store/store.types';\nimport { LoginInfoSliceType } from './loginInfo.types';\n\nexport const initialState: LoginInfoSliceType = {\n providerType: null,\n walletConnectLogin: null,\n ledgerLogin: null,\n tokenLogin: null,\n
|
|
5
|
-
"mappings": "AAIO,IAAMA,EAAmC,CAC9C,aAAc,KACd,mBAAoB,KACpB,YAAa,KACb,WAAY,KACZ,
|
|
4
|
+
"sourcesContent": ["import { StateCreator } from 'zustand/vanilla';\nimport { StoreType, MutatorsIn } from 'store/store.types';\nimport { LoginInfoSliceType } from './loginInfo.types';\n\nexport const initialState: LoginInfoSliceType = {\n providerType: null,\n walletConnectLogin: null,\n ledgerLogin: null,\n tokenLogin: null,\n loginExpiresAt: null\n};\n\nfunction getTokenInfoSlice(): StateCreator<\n StoreType,\n MutatorsIn,\n [],\n LoginInfoSliceType\n> {\n return () => initialState;\n}\n\nexport const loginInfoSlice = getTokenInfoSlice();\n"],
|
|
5
|
+
"mappings": "AAIO,IAAMA,EAAmC,CAC9C,aAAc,KACd,mBAAoB,KACpB,YAAa,KACb,WAAY,KACZ,eAAgB,IAClB,EAEA,SAASC,GAKP,CACA,MAAO,IAAMD,CACf,CAEO,IAAME,EAAiBD,EAAkB",
|
|
6
6
|
"names": ["initialState", "getTokenInfoSlice", "loginInfoSlice"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-JUP4CZ2X.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MYCBTVET.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-HPRIBTT7.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{s as n}from"./chunk-ZYCDEAG7.mjs";async function f(){let t=s(n());if(Object.keys(t).length>0)for(let[e,{transactions:c}]of Object.entries(t))await o({sessionId:e,transactionBatch:c})}export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NMOXI6JM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-RWONERD2.mjs";var c=class n extends i{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-ledger-connect"});this.addressesPerPage=10;this.allAccounts=[];this.initialConnectScreenData={};this.connectScreenData={...this.initialConnectScreenData};this.initialAccountScreenData={accounts:this.allAccounts,startIndex:0,addressesPerPage:this.addressesPerPage,isLoading:!0};this.accountScreenData={...this.initialAccountScreenData};this.initialConfirmScreenData={selectedAddress:"",explorerLink:""};this.confirmScreenData={...this.initialConfirmScreenData};this.initialData={connectScreenData:this.initialConnectScreenData,accountScreenData:this.initialAccountScreenData,confirmScreenData:this.initialConfirmScreenData};this.data=this.getInitialData()}static getInstance(){return n.instance||(n.instance=new n),n.instance}updateAllAccounts(e){this.allAccounts=e,this.accountScreenData.accounts=e}updateStartIndex(e){this.accountScreenData.startIndex=e}updateConnectScreen(e){this.connectScreenData={...this.connectScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=null,this.data.connectScreenData=this.connectScreenData,this.notifyDataUpdate()}updateAccountScreen(e){this.accountScreenData={...this.accountScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=this.accountScreenData,this.notifyDataUpdate()}updateConfirmScreen(e){this.confirmScreenData={...this.confirmScreenData,...e},this.data.accountScreenData=null,this.data.confirmScreenData=this.confirmScreenData,this.notifyDataUpdate()}getAccountScreenData(){return this.data.accountScreenData}getConfirmScreenData(){return this.data.confirmScreenData}getAllAccounts(){return this.allAccounts}subscribeToProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.subscribe("CONNECT_DEVICE",e),this.eventBus.subscribe("CLOSE",t),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}unsubscribeFromProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.unsubscribe("CONNECT_DEVICE",e),this.eventBus.unsubscribe("CLOSE",t),this.eventBus.unsubscribe("UI_DISCONNECTED",this.destroy.bind(this)))}subscribeToAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.subscribe("CLOSE",e),this.eventBus.subscribe("ACCESS_WALLET",t),this.eventBus.subscribe("GO_TO_PAGE",a))}unsubscribeFromAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.unsubscribe("CLOSE",e),this.eventBus.unsubscribe("ACCESS_WALLET",t),this.eventBus.unsubscribe("GO_TO_PAGE",a))}handleClose(){this.anchor?this.anchor?.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy()}resetData(){this.accountScreenData={...this.initialAccountScreenData},this.confirmScreenData={...this.initialConfirmScreenData},this.connectScreenData={...this.initialConnectScreenData},super.resetData()}async setupEventListeners(){this.eventBus&&this.eventBus.subscribe("CLOSE",this.handleClose.bind(this))}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NX27H6YQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-L3MWDI6J.mjs";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-ZYCDEAG7.mjs";var g=({transactions:s,transactionsDisplayInfo:a,status:e,sessionInformation:t})=>{let o=Date.now().toString();return i().setState(({transactions:n})=>{n[o]={transactions:s,status:e,transactionsDisplayInfo:a,interpretedTransactions:{},sessionInformation:t}},!1,"createTransactionsSession"),o},T=({sessionId:s,status:a,errorMessage:e})=>{i().setState(({transactions:t})=>{t[s].status=a,t[s].errorMessage=e},!1,"updateTransactionsSession")},y=({sessionId:s,transaction:a})=>{let e=null;return i().setState(({transactions:t})=>{let o=t[s]?.transactions;if(o!=null){t[s].transactions=o.map(r=>r.hash===a.hash?{...r,...a??{}}:r);let n=u([...t[s].transactions]);n&&(T({sessionId:s,status:n}),e=n)}},!1,"updateTransactionStatus"),e},h=()=>{i().setState(({transactions:s,toasts:a})=>{let t=Object.keys(s).filter(n=>{let r=s[n];if(!r)return!1;let{status:c}=r;return!(c==="pending"||c==="signed"||c==="sent")});t.forEach(n=>{delete s[n]});let o=a.transactionToasts.filter(n=>!t.includes(n.toastId));a.transactionToasts=o},!1,"clearCompletedTransactions")};export{g as a,T as b,y as c,h as d};
|
|
2
|
+
//# sourceMappingURL=chunk-OC6EUGTY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-URDBQFRH.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-OIEXBS5U.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/window/getWindowParentOrigin.ts"],
|
|
4
|
+
"sourcesContent": ["import { safeWindow } from 'constants/window.constants';\n\nexport const getWindowParentOrigin = () => {\n if (!safeWindow) {\n return '';\n }\n\n try {\n const referrer = safeWindow.document?.referrer;\n\n if (!referrer) {\n return '';\n }\n\n return new URL(referrer).origin;\n } catch (e) {\n console.error(e);\n return '';\n }\n};\n"],
|
|
5
|
+
"mappings": "yCAEO,IAAMA,EAAwB,IAAM,CACzC,GAAI,CAACC,EACH,MAAO,GAGT,GAAI,CACF,IAAMC,EAAWD,EAAW,UAAU,SAEtC,OAAKC,EAIE,IAAI,IAAIA,CAAQ,EAAE,OAHhB,EAIX,OAASC,EAAG,CACV,eAAQ,MAAMA,CAAC,EACR,EACT,CACF",
|
|
6
|
+
"names": ["getWindowParentOrigin", "safeWindow", "referrer", "e"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-FMQYLMTU.mjs";import{b as s,c as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-FMQYLMTU.mjs";import{b as s,c as r}from"./chunk-OC6EUGTY.mjs";async function l({results:e,hash:i,sessionId:t}){let a=e?.find(o=>o?.returnMessage!=="");r({sessionId:t,transaction:{...a,hash:i,status:"fail",inTransit:!1}}),s({sessionId:t,status:"fail",errorMessage:a?.returnMessage}),await n({sessionId:t,status:"fail"})}export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OTBCYYQJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{j as p,q as e}from"./chunk-ZYCDEAG7.mjs";import{c as i}from"./chunk-NTEMINYA.mjs";var T=()=>e().setState(p),m=({address:o,providerType:d})=>{e().setState(({account:r,loginInfo:t})=>{r.address=o,r.publicKey=new i(o).hex(),t&&(t.providerType=d)},!1,"loginAction")};export{T as a,m as b};
|
|
2
|
+
//# sourceMappingURL=chunk-PXOF6KO2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-HBQQS6GA.mjs";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-HBQQS6GA.mjs";import{s as m}from"./chunk-ZYCDEAG7.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as s,u as o}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function I({tokenId:n}){let t=a(m()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=c(n),i=n,p=k?s:o;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QET2LPCN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-HHRXRHFC.mjs";import{a as f}from"./chunk-RCWWARI5.mjs";import{a as g}from"./chunk-JUP4CZ2X.mjs";import{b as a}from"./chunk-ZYCDEAG7.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QSUVTM4Q.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-MYCBTVET.mjs";import{a as g}from"./chunk-3S57OP4Z.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RCWWARI5.mjs.map
|