@multiversx/sdk-dapp 5.0.10 → 5.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/__chunks__/{chunk-6TYMK3S6.mjs → chunk-23TMKZFJ.mjs} +2 -2
- package/out/__chunks__/{chunk-37GQJETS.mjs → chunk-24XAM2VT.mjs} +2 -2
- package/out/__chunks__/chunk-2AIOZ7AI.mjs +2 -0
- package/out/__chunks__/{chunk-VXQIGYVC.mjs → chunk-2DS6LYYY.mjs} +2 -2
- package/out/__chunks__/{chunk-APW4J6AS.mjs → chunk-2ZU7DAXN.mjs} +2 -2
- package/out/__chunks__/{chunk-TZ3YUCED.mjs → chunk-3BAZ5IKF.mjs} +2 -2
- package/out/__chunks__/{chunk-ZPMJKDPP.mjs → chunk-3HNDMSWW.mjs} +2 -2
- package/out/__chunks__/chunk-4IYHEFEY.mjs +2 -0
- package/out/__chunks__/chunk-4LT5LGQC.mjs +2 -0
- package/out/__chunks__/{chunk-IKMXDYW3.mjs → chunk-5HBROJL7.mjs} +2 -2
- package/out/__chunks__/chunk-5MLAF3LT.mjs +2 -0
- package/out/__chunks__/{chunk-P4WKGTAO.mjs → chunk-66WRMAXV.mjs} +2 -2
- package/out/__chunks__/chunk-6KY5GEWL.mjs +2 -0
- package/out/__chunks__/{chunk-EH3RKIKC.mjs → chunk-6MXUKZB3.mjs} +2 -2
- package/out/__chunks__/{chunk-KSLDJ36Q.mjs → chunk-6WVBN32G.mjs} +2 -2
- package/out/__chunks__/{chunk-IUFE5QMD.mjs → chunk-7CFPPCWC.mjs} +2 -2
- package/out/__chunks__/chunk-7KFLWTDT.mjs +2 -0
- package/out/__chunks__/{chunk-P44TH75P.mjs → chunk-7RLXMK3R.mjs} +2 -2
- package/out/__chunks__/{chunk-PA7AMY6W.mjs → chunk-ADE33SZY.mjs} +2 -2
- package/out/__chunks__/{chunk-LWLCUOTE.mjs → chunk-B5QFFY63.mjs} +2 -2
- package/out/__chunks__/{chunk-THLKRICU.mjs → chunk-B7VHGVIW.mjs} +2 -2
- package/out/__chunks__/chunk-BMFKD76W.mjs +2 -0
- package/out/__chunks__/{chunk-KDCWDZHE.mjs → chunk-BNDFXYBM.mjs} +2 -2
- package/out/__chunks__/{chunk-DZGLONCH.mjs → chunk-BRWXITGZ.mjs} +2 -2
- package/out/__chunks__/chunk-CZYRFACG.mjs +2 -0
- package/out/__chunks__/{chunk-ZRO6U2CK.mjs → chunk-DJY24BHS.mjs} +2 -2
- package/out/__chunks__/{chunk-UEZ62NSX.mjs → chunk-EHWT3WER.mjs} +2 -2
- package/out/__chunks__/{chunk-HATMKO3E.mjs → chunk-EVS2OAVI.mjs} +2 -2
- package/out/__chunks__/{chunk-EO6YS5TR.mjs → chunk-F2UXV2DY.mjs} +2 -2
- package/out/__chunks__/{chunk-KZSAOENX.mjs → chunk-FE3NXNR6.mjs} +2 -2
- package/out/__chunks__/{chunk-FDDIV4MY.mjs → chunk-FVHDVMP6.mjs} +2 -2
- package/out/__chunks__/{chunk-GOBN6PUQ.mjs → chunk-GJYL4HXE.mjs} +2 -2
- package/out/__chunks__/chunk-HHGGPCIT.mjs +2 -0
- package/out/__chunks__/chunk-HRTYNOPV.mjs +2 -0
- package/out/__chunks__/chunk-IQNEWWWL.mjs +2 -0
- package/out/__chunks__/{chunk-UCW5NENH.mjs → chunk-IZMXB463.mjs} +2 -2
- package/out/__chunks__/{chunk-ESWETNND.mjs → chunk-JJ23PMQB.mjs} +2 -2
- package/out/__chunks__/{chunk-77MB3RKC.mjs → chunk-JPGDRR3A.mjs} +2 -2
- package/out/__chunks__/{chunk-LUJL3TMO.mjs → chunk-JSFAGVXL.mjs} +2 -2
- package/out/__chunks__/{chunk-67HWG3LZ.mjs → chunk-KT6OP6QC.mjs} +2 -2
- package/out/__chunks__/{chunk-6NSQVQGJ.mjs → chunk-KU45KIR2.mjs} +2 -2
- package/out/__chunks__/{chunk-JK3FLSXR.mjs → chunk-LST3XXIJ.mjs} +2 -2
- package/out/__chunks__/{chunk-F6G45M7E.mjs → chunk-M3S3XSZ7.mjs} +2 -2
- package/out/__chunks__/{chunk-JAISYJMQ.mjs → chunk-MD5HYIJO.mjs} +2 -2
- package/out/__chunks__/{chunk-C3LVCOLX.mjs → chunk-MFYHPHET.mjs} +2 -2
- package/out/__chunks__/{chunk-XGOW3DLS.mjs → chunk-MMLP7K73.mjs} +2 -2
- package/out/__chunks__/{chunk-7BOVBFFV.mjs → chunk-NA5BUERU.mjs} +2 -2
- package/out/__chunks__/chunk-NSF7L6H7.mjs +2 -0
- package/out/__chunks__/chunk-OCT3B7SK.mjs +2 -0
- package/out/__chunks__/{chunk-YD7XXBEF.mjs → chunk-OEBWA3U7.mjs} +2 -2
- package/out/__chunks__/chunk-P6XFODV4.mjs +2 -0
- package/out/__chunks__/{chunk-RZJFCSMQ.mjs → chunk-PAT5TWYK.mjs} +2 -2
- package/out/__chunks__/{chunk-5HL26PV7.mjs → chunk-PGY32PLX.mjs} +2 -2
- package/out/__chunks__/{chunk-NBEHPVGH.mjs → chunk-QEEQRZS6.mjs} +2 -2
- package/out/__chunks__/chunk-QET2OLJT.mjs +2 -0
- package/out/__chunks__/{chunk-NUKCXXE7.mjs.map → chunk-QET2OLJT.mjs.map} +1 -1
- package/out/__chunks__/chunk-QGUSK75W.mjs +2 -0
- package/out/__chunks__/chunk-QGUSK75W.mjs.map +7 -0
- package/out/__chunks__/{chunk-GO3HIDG6.mjs → chunk-QIBUEZS3.mjs} +2 -2
- package/out/__chunks__/{chunk-FAWVNS4Q.mjs → chunk-QYUEIE7N.mjs} +2 -2
- package/out/__chunks__/{chunk-A3KALOME.mjs → chunk-R7SGU5J2.mjs} +2 -2
- package/out/__chunks__/{chunk-ZEF24QFQ.mjs → chunk-RHZYJH4K.mjs} +2 -2
- package/out/__chunks__/{chunk-4CWR2NJK.mjs → chunk-RRRK4J56.mjs} +2 -2
- package/out/__chunks__/{chunk-JHAJ64CY.mjs → chunk-RZNOYCZT.mjs} +2 -2
- package/out/__chunks__/chunk-SBJ5SNMG.mjs +2 -0
- package/out/__chunks__/{chunk-W6SHPZ3U.mjs → chunk-SGGAZCOK.mjs} +2 -2
- package/out/__chunks__/{chunk-QCZNG6A7.mjs → chunk-SZOPMJSG.mjs} +2 -2
- package/out/__chunks__/{chunk-RFOZXJED.mjs → chunk-TAWCCADM.mjs} +2 -2
- package/out/__chunks__/{chunk-CQ3TQFRH.mjs → chunk-TPKK34YE.mjs} +2 -2
- package/out/__chunks__/{chunk-XTPCX6MF.mjs → chunk-TRQA733J.mjs} +2 -2
- package/out/__chunks__/{chunk-2HQWOWUK.mjs → chunk-WDFZXGVF.mjs} +2 -2
- package/out/__chunks__/{chunk-IVQKDPKR.mjs → chunk-WEQQ52VT.mjs} +2 -2
- package/out/__chunks__/{chunk-WCTJY5KM.mjs → chunk-WM2ARQV6.mjs} +2 -2
- package/out/__chunks__/chunk-WZLGCBPM.mjs +2 -0
- package/out/__chunks__/{chunk-QYPQVELM.mjs → chunk-X5KTEL7F.mjs} +2 -2
- package/out/__chunks__/{chunk-QBQQSGSP.mjs → chunk-YFO4VEZA.mjs} +2 -2
- package/out/__chunks__/{chunk-ATGMUGBA.mjs → chunk-YKUDEXLD.mjs} +2 -2
- package/out/__chunks__/{chunk-GJAULBJK.mjs → chunk-YRUQIWQX.mjs} +2 -2
- package/out/__chunks__/{chunk-R4NNE2QE.mjs → chunk-YU6ZFE62.mjs} +2 -2
- package/out/__chunks__/{chunk-LP3FNMJH.mjs → chunk-YXC4NJUD.mjs} +2 -2
- package/out/__chunks__/{chunk-VYCZQO5G.mjs → chunk-YZZYAO7Z.mjs} +2 -2
- package/out/__chunks__/{chunk-EYL5DTCP.mjs → chunk-Z2M3TCDN.mjs} +2 -2
- package/out/__chunks__/{chunk-24YON5QD.mjs → chunk-ZRKEA6YR.mjs} +2 -2
- package/out/__chunks__/{chunk-GY43CTNP.mjs → chunk-ZWOEWFL2.mjs} +2 -2
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.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.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.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.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.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.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.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +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-E6YIVYVH.mjs +0 -2
- 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-UWSOMYZJ.mjs +0 -2
- package/out/__chunks__/chunk-UYIZDU7U.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-6TYMK3S6.mjs.map → chunk-23TMKZFJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-37GQJETS.mjs.map → chunk-24XAM2VT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-77XXLJH2.mjs.map → chunk-2AIOZ7AI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VXQIGYVC.mjs.map → chunk-2DS6LYYY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-APW4J6AS.mjs.map → chunk-2ZU7DAXN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TZ3YUCED.mjs.map → chunk-3BAZ5IKF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZPMJKDPP.mjs.map → chunk-3HNDMSWW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2NHQLPQZ.mjs.map → chunk-4IYHEFEY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J2BFMJ4R.mjs.map → chunk-4LT5LGQC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IKMXDYW3.mjs.map → chunk-5HBROJL7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6BEBX4RH.mjs.map → chunk-5MLAF3LT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P4WKGTAO.mjs.map → chunk-66WRMAXV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UYIZDU7U.mjs.map → chunk-6KY5GEWL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EH3RKIKC.mjs.map → chunk-6MXUKZB3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KSLDJ36Q.mjs.map → chunk-6WVBN32G.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IUFE5QMD.mjs.map → chunk-7CFPPCWC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UWSOMYZJ.mjs.map → chunk-7KFLWTDT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P44TH75P.mjs.map → chunk-7RLXMK3R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PA7AMY6W.mjs.map → chunk-ADE33SZY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LWLCUOTE.mjs.map → chunk-B5QFFY63.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-THLKRICU.mjs.map → chunk-B7VHGVIW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TBEZUIKL.mjs.map → chunk-BMFKD76W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KDCWDZHE.mjs.map → chunk-BNDFXYBM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DZGLONCH.mjs.map → chunk-BRWXITGZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TXZ53KDQ.mjs.map → chunk-CZYRFACG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZRO6U2CK.mjs.map → chunk-DJY24BHS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UEZ62NSX.mjs.map → chunk-EHWT3WER.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HATMKO3E.mjs.map → chunk-EVS2OAVI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EO6YS5TR.mjs.map → chunk-F2UXV2DY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KZSAOENX.mjs.map → chunk-FE3NXNR6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FDDIV4MY.mjs.map → chunk-FVHDVMP6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GOBN6PUQ.mjs.map → chunk-GJYL4HXE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E6YIVYVH.mjs.map → chunk-HHGGPCIT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SG754XHN.mjs.map → chunk-HRTYNOPV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JCIAIQ6A.mjs.map → chunk-IQNEWWWL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UCW5NENH.mjs.map → chunk-IZMXB463.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ESWETNND.mjs.map → chunk-JJ23PMQB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-77MB3RKC.mjs.map → chunk-JPGDRR3A.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LUJL3TMO.mjs.map → chunk-JSFAGVXL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-67HWG3LZ.mjs.map → chunk-KT6OP6QC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6NSQVQGJ.mjs.map → chunk-KU45KIR2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JK3FLSXR.mjs.map → chunk-LST3XXIJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F6G45M7E.mjs.map → chunk-M3S3XSZ7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JAISYJMQ.mjs.map → chunk-MD5HYIJO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C3LVCOLX.mjs.map → chunk-MFYHPHET.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XGOW3DLS.mjs.map → chunk-MMLP7K73.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7BOVBFFV.mjs.map → chunk-NA5BUERU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PJQKMSYS.mjs.map → chunk-NSF7L6H7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TYLXZ7I3.mjs.map → chunk-OCT3B7SK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YD7XXBEF.mjs.map → chunk-OEBWA3U7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WRFZRRKZ.mjs.map → chunk-P6XFODV4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RZJFCSMQ.mjs.map → chunk-PAT5TWYK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5HL26PV7.mjs.map → chunk-PGY32PLX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NBEHPVGH.mjs.map → chunk-QEEQRZS6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GO3HIDG6.mjs.map → chunk-QIBUEZS3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FAWVNS4Q.mjs.map → chunk-QYUEIE7N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A3KALOME.mjs.map → chunk-R7SGU5J2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZEF24QFQ.mjs.map → chunk-RHZYJH4K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4CWR2NJK.mjs.map → chunk-RRRK4J56.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JHAJ64CY.mjs.map → chunk-RZNOYCZT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JXBZL733.mjs.map → chunk-SBJ5SNMG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W6SHPZ3U.mjs.map → chunk-SGGAZCOK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QCZNG6A7.mjs.map → chunk-SZOPMJSG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RFOZXJED.mjs.map → chunk-TAWCCADM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CQ3TQFRH.mjs.map → chunk-TPKK34YE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XTPCX6MF.mjs.map → chunk-TRQA733J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2HQWOWUK.mjs.map → chunk-WDFZXGVF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IVQKDPKR.mjs.map → chunk-WEQQ52VT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WCTJY5KM.mjs.map → chunk-WM2ARQV6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WRFEEFU6.mjs.map → chunk-WZLGCBPM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QYPQVELM.mjs.map → chunk-X5KTEL7F.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QBQQSGSP.mjs.map → chunk-YFO4VEZA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ATGMUGBA.mjs.map → chunk-YKUDEXLD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GJAULBJK.mjs.map → chunk-YRUQIWQX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R4NNE2QE.mjs.map → chunk-YU6ZFE62.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LP3FNMJH.mjs.map → chunk-YXC4NJUD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VYCZQO5G.mjs.map → chunk-YZZYAO7Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EYL5DTCP.mjs.map → chunk-Z2M3TCDN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-24YON5QD.mjs.map → chunk-ZRKEA6YR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GY43CTNP.mjs.map → chunk-ZWOEWFL2.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-WHEXX3BD.mjs";import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-WHEXX3BD.mjs";import{a}from"../../__chunks__/chunk-QEEQRZS6.mjs";import"../../__chunks__/chunk-QET2OLJT.mjs";export{a as switchTheme};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-QEEQRZS6.mjs";import"../../__chunks__/chunk-QET2OLJT.mjs";export{a as switchTheme};
|
|
2
2
|
//# sourceMappingURL=switchTheme.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-6MXUKZB3.mjs";import"../../__chunks__/chunk-WEQQ52VT.mjs";import"../../__chunks__/chunk-QET2OLJT.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getIsInIframe};
|
|
2
2
|
//# sourceMappingURL=getIsInIframe.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-WEQQ52VT.mjs";import"../../__chunks__/chunk-QET2OLJT.mjs";export{a as getWindowParentOrigin};
|
|
2
2
|
//# sourceMappingURL=getWindowParentOrigin.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-6MXUKZB3.mjs";import"../../__chunks__/chunk-WEQQ52VT.mjs";import{a as e}from"../../__chunks__/chunk-EHDGJUEU.mjs";import{a as d}from"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-QET2OLJT.mjs";import{a as c}from"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import{a}from"../../__chunks__/chunk-B2UIPHJ3.mjs";export{d as buildUrlParams,e as getIsAuthRoute,f as getIsInIframe,b as getWindowLocation,a as isWindowAvailable,c as sanitizeCallbackUrl};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-JHAJ64CY.mjs";import{c as n}from"./chunk-TZ3YUCED.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
|
|
2
|
-
//# sourceMappingURL=chunk-PJQKMSYS.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 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
|
-
}
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|