@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 +0,0 @@
|
|
|
1
|
-
import{b as s,f as l}from"./chunk-UERJ6AKK.mjs";import{f as a}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-JCIAIQ6A.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as g,b as c}from"./chunk-WZGG2YKQ.mjs";import{a as f,b as m}from"./chunk-X4XULIVT.mjs";import{a as T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as p}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as h,devtools as O,persist as V}from"zustand/middleware";import{immer as H}from"zustand/middleware/immer";import{createStore as N}from"zustand/vanilla";var A=e=>{e.account=g,e.loginInfo=f,e.transactions=d,e.toasts=S};function R(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),n=a(e),{address:i,publicKey:M}=s(e);if(i&&M!==new p(i).hex()&&A(e),!t)return;if(n==null){w(R());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var W=(e,t)=>{C(e)};var z=e=>{let t=N(O(V(H((...n)=>({network:x(...n),account:c(...n),loginInfo:m(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:h(e)})));return t.subscribe(W),t},r,D=e=>{r=e},o=()=>(r||D(z(()=>new v)),r),ae=(e=k)=>D(z(e)),pe=()=>o().getState();var fe=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),me=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletLogin=e},!1,"setWalletLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),Te=e=>o().setState(({loginInfo:t})=>{t.logoutRoute=e},!1,"setLogoutRoute"),ye=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{fe as a,me as b,Se as c,ue as d,de as e,Le as f,xe as g,Te as h,ye as i,E as j,b as k,A as l,R as m,w as n,C as o,W as p,z as q,D as r,o as s,ae as t,pe as u};
|
|
2
|
-
//# sourceMappingURL=chunk-TZ3YUCED.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-APW4J6AS.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{u as n}from"./chunk-TZ3YUCED.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-UWSOMYZJ.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-UEZ62NSX.mjs";import{a as t}from"./chunk-77XXLJH2.mjs";var s=class extends n{constructor({uiDataUpdateEvent:e,uiTag:i}){super({uiDataUpdateEvent:e,uiTag:i});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}async destroy(){this.setIsSidePanelOpen(!1),await this.uiElement?.closeWithAnimation?.(),super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{s as a};
|
|
2
|
-
//# sourceMappingURL=chunk-WCTJY5KM.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as w}from"./chunk-37GQJETS.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as y}from"./chunk-FAWVNS4Q.mjs";import{h as l}from"./chunk-CAA4VJRH.mjs";import{b as S}from"./chunk-3ZEUVYQF.mjs";import{a as f}from"./chunk-KZSAOENX.mjs";import{a as g}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-WRFEEFU6.mjs";import{u as d}from"./chunk-TZ3YUCED.mjs";import{b as p}from"./chunk-SAAOQW7P.mjs";import{e as T}from"./chunk-NTEMINYA.mjs";import A from"axios";var o=class o{constructor(){this.setCallbacks=({onSuccess:a,onFail:t})=>{S({onSuccess:a,onFail:t})};this.send=async a=>{if(a.length===0)throw new Error("No transactions to send");try{if(!I(a))return await this.sendSignedTransactions(a);let t=await this.sendSignedBatchTransactions(a);if(!t.data||t.data.error)throw new Error(t.data?.error??"Failed to send transactions");return t.data.transactions}catch(t){throw t.response?.data?.message??t.message}};this.track=async(a,t={disableToasts:!1})=>{let n=this.sequentialToFlatArray(a).map(i=>({...i,status:i.status??"pending"})),e=g(n),s=f({transactions:n,transactionsDisplayInfo:t.transactionsDisplayInfo,status:e??"sent",sessionInformation:t.sessionInformation});if(t.disableToasts===!0)return s;let c=w(a);return y({toastId:s,totalDuration:c}),s};this.sendSignedTransactions=async a=>{let{apiAddress:t,apiTimeout:n}=p(d()),e=a.map(r=>A.post(`${t}/transactions`,r.toPlainObject(),{timeout:Number(n)})),s=await Promise.all(e),c=new T;return s.map(({data:r})=>({...a.find(x=>c.computeTransactionHash(x)===r.txHash)?.toPlainObject(),...r,status:"pending",hash:r.txHash}))};this.sendSignedBatchTransactions=async a=>{let{address:t}=h(),{apiAddress:n,apiTimeout:e}=p(d());if(!t)return{error:"Invalid address provided. You need to be logged in to send transactions"};let s=this.buildBatchId(t),i={transactions:a.map(m=>m.map(u=>this.parseSignedTransaction(u))),id:s},{data:r}=await A.post(`${n}/batch`,i,{timeout:Number(e)});return{data:r}};this.buildBatchId=a=>`${Date.now().toString()}${l}${a}`;this.sequentialToFlatArray=(a=[])=>this.getIsSequential(a)?a.flat():a;this.getIsSequential=a=>a?.every(t=>Array.isArray(t));this.parseSignedTransaction=a=>{let t=new T,n={...a.toPlainObject(),hash:t.computeTransactionHash(a),status:"pending"};return b({data:n.data})&&(delete n.senderUsername,delete n.receiverUsername),n}}static getInstance(){return o.instance||(o.instance=new o),o.instance}};o.instance=null;var v=o;export{v as a};
|
|
2
|
-
//# sourceMappingURL=chunk-WYNZ6UQF.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/managers/TransactionManager/TransactionManager.ts"],
|
|
4
|
-
"sourcesContent": ["import axios, { AxiosError } from 'axios';\nimport { BATCH_TRANSACTIONS_ID_SEPARATOR } from 'constants/transactions.constants';\nimport { Transaction, TransactionComputer } from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport { TransactionTrackingConfigType } from 'methods/initApp/initApp.types';\nimport { addTransactionToast } from 'store/actions/toasts/toastsActions';\nimport { createTransactionsSession } from 'store/actions/transactions/transactionsActions';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { BatchTransactionsResponseType } from 'types/serverTransactions.types';\nimport { SignedTransactionType } from 'types/transactions.types';\nimport { isGuardianTx } from 'utils/transactions/isGuardianTx';\nimport { getToastDuration } from './helpers/getToastDuration';\nimport { getTransactionsSessionStatus } from './helpers/getTransactionsStatus';\nimport { isBatchTransaction } from './helpers/isBatchTransaction';\nimport { registerSessionCallbacks } from './helpers/sessionCallbacks';\nimport { TransactionManagerTrackOptionsType } from './TransactionManager.types';\n\nexport class TransactionManager {\n private static instance: TransactionManager | null = null;\n\n public static getInstance(): TransactionManager {\n if (!TransactionManager.instance) {\n TransactionManager.instance = new TransactionManager();\n }\n return TransactionManager.instance;\n }\n\n /**\n * Set callbacks to be executed when the transaction session is successful or fails.\n * @param onSuccess - The callback to run when the transaction session is successful.\n * @param onFail - The callback to run when the transaction session fails.\n * @example\n * ```ts\n * TransactionManager.setCallbacks({\n * onSuccess: (sessionId) => {\n * console.log('Transaction session successful', sessionId);\n * },\n * });\n */\n public setCallbacks = ({\n onSuccess,\n onFail\n }: TransactionTrackingConfigType) => {\n registerSessionCallbacks({ onSuccess, onFail });\n };\n\n public send = async (\n signedTransactions: Transaction[] | Transaction[][]\n ): Promise<SignedTransactionType[] | SignedTransactionType[][]> => {\n if (signedTransactions.length === 0) {\n throw new Error('No transactions to send');\n }\n\n try {\n if (!isBatchTransaction(signedTransactions)) {\n const flatTransactions =\n await this.sendSignedTransactions(signedTransactions);\n\n return flatTransactions;\n }\n\n const sentTransactions =\n await this.sendSignedBatchTransactions(signedTransactions);\n\n if (!sentTransactions.data || sentTransactions.data.error) {\n throw new Error(\n sentTransactions.data?.error ?? 'Failed to send transactions'\n );\n }\n\n const groupedTransactions = sentTransactions.data.transactions;\n\n return groupedTransactions;\n } catch (error) {\n const responseData = <{ message: string }>(\n (error as AxiosError).response?.data\n );\n throw responseData?.message ?? (error as any).message;\n }\n };\n\n public track = async (\n sentTransactions: SignedTransactionType[] | SignedTransactionType[][],\n options: TransactionManagerTrackOptionsType = { disableToasts: false }\n ): Promise<string> => {\n const flatTransactions = this.sequentialToFlatArray(sentTransactions).map(\n (transaction) => ({\n ...transaction,\n status: transaction.status ?? TransactionServerStatusesEnum.pending\n })\n );\n\n const status = getTransactionsSessionStatus(flatTransactions);\n\n const sessionId = createTransactionsSession({\n transactions: flatTransactions,\n transactionsDisplayInfo: options.transactionsDisplayInfo,\n status: status ?? TransactionBatchStatusesEnum.sent,\n sessionInformation: options.sessionInformation\n });\n\n if (options.disableToasts === true) {\n return sessionId;\n }\n\n const totalDuration = getToastDuration(sentTransactions);\n addTransactionToast({\n toastId: sessionId,\n totalDuration\n });\n\n return sessionId;\n };\n\n private readonly sendSignedTransactions = async (\n signedTransactions: Transaction[]\n ): Promise<SignedTransactionType[]> => {\n const { apiAddress, apiTimeout } = networkSelector(getState());\n\n const promises = signedTransactions.map((transaction) =>\n axios.post(`${apiAddress}/transactions`, transaction.toPlainObject(), {\n timeout: Number(apiTimeout)\n })\n );\n\n const response = await Promise.all(promises);\n const transactionComputer = new TransactionComputer();\n\n const mergedTransactions = response.map(({ data }) => {\n const foundTransaction = signedTransactions.find((tx) => {\n const txHash = transactionComputer.computeTransactionHash(tx);\n return txHash === data.txHash;\n });\n\n const currentTransaction = {\n ...foundTransaction?.toPlainObject(),\n ...data,\n status: TransactionServerStatusesEnum.pending,\n hash: data.txHash\n };\n\n return currentTransaction;\n });\n\n return mergedTransactions;\n };\n\n private readonly sendSignedBatchTransactions = async (\n signedTransactions: Transaction[][]\n ) => {\n const { address } = getAccount();\n const { apiAddress, apiTimeout } = networkSelector(getState());\n\n if (!address) {\n return {\n error:\n 'Invalid address provided. You need to be logged in to send transactions'\n };\n }\n\n const batchId = this.buildBatchId(address);\n const parsedTransactions = signedTransactions.map((transactions) =>\n transactions.map((transaction) =>\n this.parseSignedTransaction(transaction)\n )\n );\n\n const payload = {\n transactions: parsedTransactions,\n id: batchId\n };\n\n const { data } = await axios.post<BatchTransactionsResponseType>(\n `${apiAddress}/batch`,\n payload,\n {\n timeout: Number(apiTimeout)\n }\n );\n\n return { data };\n };\n\n private readonly buildBatchId = (address: string) => {\n const sessionId = Date.now().toString();\n return `${sessionId}${BATCH_TRANSACTIONS_ID_SEPARATOR}${address}`;\n };\n private readonly sequentialToFlatArray = (\n transactions: SignedTransactionType[] | SignedTransactionType[][] = []\n ) =>\n this.getIsSequential(transactions)\n ? transactions.flat()\n : (transactions as SignedTransactionType[]);\n\n private readonly getIsSequential = (\n transactions?: SignedTransactionType[] | SignedTransactionType[][]\n ) => transactions?.every((transaction) => Array.isArray(transaction));\n\n private readonly parseSignedTransaction = (\n signedTransaction: Transaction\n ): SignedTransactionType => {\n const transactionComputer = new TransactionComputer();\n\n const parsedTransaction = {\n ...signedTransaction.toPlainObject(),\n hash: transactionComputer.computeTransactionHash(signedTransaction),\n status: TransactionServerStatusesEnum.pending\n };\n\n // Remove when the protocol supports usernames for guardian transactions\n if (isGuardianTx({ data: parsedTransaction.data })) {\n delete parsedTransaction.senderUsername;\n delete parsedTransaction.receiverUsername;\n }\n\n return parsedTransaction;\n };\n}\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": ["axios", "_TransactionManager", "onSuccess", "onFail", "registerSessionCallbacks", "signedTransactions", "isBatchTransaction", "sentTransactions", "error", "options", "flatTransactions", "transaction", "status", "getTransactionsSessionStatus", "sessionId", "createTransactionsSession", "totalDuration", "getToastDuration", "addTransactionToast", "apiAddress", "apiTimeout", "networkSelector", "getState", "promises", "axios", "response", "transactionComputer", "TransactionComputer", "data", "tx", "address", "getAccount", "batchId", "payload", "transactions", "BATCH_TRANSACTIONS_ID_SEPARATOR", "signedTransaction", "parsedTransaction", "isGuardianTx", "TransactionManager"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var o={providerType:null,walletConnectLogin:null,ledgerLogin:null,tokenLogin:null,walletLogin:null,extensionLogin:null,operaLogin:null,crossWindowLogin:null,loginExpiresAt:null};function n(){return()=>o}var e=n();export{o as a,e as b};
|
|
2
|
-
//# sourceMappingURL=chunk-X4XULIVT.mjs.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|