@multiversx/sdk-dapp 5.6.9 → 5.6.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-CDWQSFYM.mjs → chunk-2NE75KNA.mjs} +2 -2
- package/out/__chunks__/chunk-2WUOBFRV.mjs +2 -0
- package/out/__chunks__/{chunk-SFNIICWA.mjs → chunk-3C4QWHTF.mjs} +2 -2
- package/out/__chunks__/{chunk-OLWNOBIQ.mjs → chunk-3MWPYDLA.mjs} +2 -2
- package/out/__chunks__/{chunk-R34WZLE5.mjs → chunk-3Z7CLSDP.mjs} +2 -2
- package/out/__chunks__/chunk-422ZUBTP.mjs +2 -0
- package/out/__chunks__/{chunk-NFUEPPQR.mjs → chunk-6BA2NDJT.mjs} +2 -2
- package/out/__chunks__/{chunk-OPIR3VXY.mjs → chunk-6BNZ4EJC.mjs} +2 -2
- package/out/__chunks__/{chunk-QTX4NHPU.mjs → chunk-6VJXXSIS.mjs} +2 -2
- package/out/__chunks__/chunk-6ZU2IBDO.mjs +2 -0
- package/out/__chunks__/{chunk-PMEPPI6R.mjs → chunk-AAIKQGPN.mjs} +2 -2
- package/out/__chunks__/{chunk-CB4IL76J.mjs → chunk-AC3N236P.mjs} +2 -2
- package/out/__chunks__/{chunk-VIHKBS2X.mjs → chunk-AHORDOF4.mjs} +2 -2
- package/out/__chunks__/{chunk-CILOQDO7.mjs → chunk-AJBGY6A5.mjs} +2 -2
- package/out/__chunks__/chunk-BFVULVAD.mjs +2 -0
- package/out/__chunks__/chunk-BZLQ6QLQ.mjs +2 -0
- package/out/__chunks__/{chunk-IYGNSIQ5.mjs → chunk-CDHVNNSM.mjs} +2 -2
- package/out/__chunks__/{chunk-D6O5CXIJ.mjs → chunk-CG6BZB2U.mjs} +2 -2
- package/out/__chunks__/chunk-CKY2HBH6.mjs +2 -0
- package/out/__chunks__/{chunk-XXRHWR52.mjs → chunk-CMN37YZP.mjs} +2 -2
- package/out/__chunks__/{chunk-XXXUMU4O.mjs → chunk-CNE5LY2X.mjs} +2 -2
- package/out/__chunks__/{chunk-V4LJXYQC.mjs → chunk-COA54JTE.mjs} +2 -2
- package/out/__chunks__/{chunk-VRMDOPB6.mjs → chunk-CYKK4HPZ.mjs} +2 -2
- package/out/__chunks__/{chunk-LVHVC32Z.mjs → chunk-DDB4KRVV.mjs} +2 -2
- package/out/__chunks__/{chunk-ZJOJQZCC.mjs → chunk-DY3P72D3.mjs} +2 -2
- package/out/__chunks__/{chunk-XJL3OI7L.mjs → chunk-DY53O4ED.mjs} +2 -2
- package/out/__chunks__/{chunk-NAEHROA2.mjs → chunk-EETA2QXV.mjs} +2 -2
- package/out/__chunks__/{chunk-C37CZZ7G.mjs → chunk-EH3QXINF.mjs} +2 -2
- package/out/__chunks__/chunk-EOAIKG7U.mjs +2 -0
- package/out/__chunks__/{chunk-UIC4S5TZ.mjs → chunk-FRIOQMD3.mjs} +2 -2
- package/out/__chunks__/{chunk-S4C27CCJ.mjs → chunk-FRREO5DY.mjs} +2 -2
- package/out/__chunks__/{chunk-7TM4PETT.mjs → chunk-H3MXIVR4.mjs} +2 -2
- package/out/__chunks__/{chunk-OWQXZ55A.mjs → chunk-H3TSHWUD.mjs} +2 -2
- package/out/__chunks__/{chunk-HCVXJWZQ.mjs → chunk-HKZTCRSV.mjs} +2 -2
- package/out/__chunks__/{chunk-VSM5G4ZH.mjs → chunk-I5NDCPU2.mjs} +2 -2
- package/out/__chunks__/{chunk-QV3D2ZVT.mjs → chunk-ICJ5ZWS4.mjs} +2 -2
- package/out/__chunks__/{chunk-DRPJ3IFU.mjs → chunk-IHB7ALDL.mjs} +1 -1
- package/out/__chunks__/{chunk-DRPJ3IFU.mjs.map → chunk-IHB7ALDL.mjs.map} +2 -2
- package/out/__chunks__/{chunk-SKYZYQFB.mjs → chunk-IWQH426N.mjs} +2 -2
- package/out/__chunks__/{chunk-KZKHUGFE.mjs → chunk-IZVWRQDU.mjs} +2 -2
- package/out/__chunks__/{chunk-N2URS6RY.mjs → chunk-J7DUP7GC.mjs} +2 -2
- package/out/__chunks__/{chunk-WAEPXUJW.mjs → chunk-JBPJL3B7.mjs} +2 -2
- package/out/__chunks__/{chunk-OZJYVSVG.mjs → chunk-JJ6B2ZYX.mjs} +2 -2
- package/out/__chunks__/{chunk-476BGZWV.mjs → chunk-JMJ7OMSW.mjs} +2 -2
- package/out/__chunks__/{chunk-DO5KNMAG.mjs → chunk-JO3KLBXS.mjs} +2 -2
- package/out/__chunks__/{chunk-VPSQTIAR.mjs → chunk-KTSYT4CA.mjs} +2 -2
- package/out/__chunks__/{chunk-WOPE4NY2.mjs → chunk-L5RYEWHO.mjs} +2 -2
- package/out/__chunks__/{chunk-SS3A7KK2.mjs → chunk-L7AC35OO.mjs} +2 -2
- package/out/__chunks__/{chunk-MG5FGHHV.mjs → chunk-LNRVNBRB.mjs} +2 -2
- package/out/__chunks__/{chunk-JSG65RN6.mjs → chunk-LUVMM57Y.mjs} +2 -2
- package/out/__chunks__/chunk-MJXIB64Q.mjs +2 -0
- package/out/__chunks__/{chunk-M6ERVE23.mjs → chunk-MNN7JOCV.mjs} +2 -2
- package/out/__chunks__/{chunk-YIH3FJB4.mjs → chunk-O65UD2QD.mjs} +2 -2
- package/out/__chunks__/{chunk-RXRVBUAX.mjs → chunk-O7ORKWKU.mjs} +2 -2
- package/out/__chunks__/{chunk-PIJ4OMIA.mjs → chunk-OAFYVJLF.mjs} +2 -2
- package/out/__chunks__/{chunk-VSZYA5AR.mjs → chunk-OKO3GIXC.mjs} +2 -2
- package/out/__chunks__/{chunk-TSYN7VWE.mjs → chunk-OSGTEMH4.mjs} +2 -2
- package/out/__chunks__/{chunk-TDNZYOQN.mjs → chunk-OWYOEUPL.mjs} +2 -2
- package/out/__chunks__/{chunk-WJTMUYTI.mjs → chunk-P4H53TTI.mjs} +2 -2
- package/out/__chunks__/{chunk-U3JV6DJH.mjs → chunk-P6OHY6KU.mjs} +2 -2
- package/out/__chunks__/{chunk-NOFMFBNG.mjs → chunk-PENSR33H.mjs} +2 -2
- package/out/__chunks__/chunk-PI76AQ3J.mjs +2 -0
- package/out/__chunks__/{chunk-UKJT66VH.mjs → chunk-PKNPUHFQ.mjs} +2 -2
- package/out/__chunks__/chunk-PZI62JRY.mjs +2 -0
- package/out/__chunks__/{chunk-FJLZCJXP.mjs → chunk-Q6SV22DH.mjs} +2 -2
- package/out/__chunks__/{chunk-2M6ZZ2SL.mjs → chunk-QACFOFUG.mjs} +2 -2
- package/out/__chunks__/{chunk-ATYZKVD3.mjs → chunk-QGUQTBVR.mjs} +2 -2
- package/out/__chunks__/{chunk-MBS3W5NI.mjs → chunk-QHANP3XT.mjs} +2 -2
- package/out/__chunks__/{chunk-SNXSD7MF.mjs → chunk-QMSYQJAU.mjs} +2 -2
- package/out/__chunks__/chunk-R3IH76PW.mjs +2 -0
- package/out/__chunks__/{chunk-AYQWPMYV.mjs.map → chunk-R3IH76PW.mjs.map} +1 -1
- package/out/__chunks__/{chunk-CEP3W56Z.mjs → chunk-R7Y4IM2T.mjs} +2 -2
- package/out/__chunks__/{chunk-DQGHE25H.mjs → chunk-RGDZMPES.mjs} +2 -2
- package/out/__chunks__/{chunk-56S5SGPS.mjs → chunk-RMMIR3MN.mjs} +2 -2
- package/out/__chunks__/{chunk-3CWJ722Y.mjs → chunk-RQOU5LG4.mjs} +2 -2
- package/out/__chunks__/{chunk-O57N3Y2D.mjs → chunk-RSNSPKZ3.mjs} +2 -2
- package/out/__chunks__/{chunk-X4CUC3IQ.mjs → chunk-S4GXN3R7.mjs} +2 -2
- package/out/__chunks__/{chunk-2YUHHXLR.mjs → chunk-T6I7XQHS.mjs} +2 -2
- package/out/__chunks__/chunk-TN3MSIAN.mjs +2 -0
- package/out/__chunks__/{chunk-3MVZ3KNW.mjs → chunk-TRICXIPQ.mjs} +2 -2
- package/out/__chunks__/{chunk-YQBCROZN.mjs → chunk-TU6TE5PG.mjs} +2 -2
- package/out/__chunks__/{chunk-573LAOYN.mjs → chunk-TWOVGGG2.mjs} +2 -2
- package/out/__chunks__/{chunk-VUVEHXGH.mjs → chunk-UGY4JSP3.mjs} +2 -2
- package/out/__chunks__/{chunk-QLIZ5PRI.mjs → chunk-UWCHOJH4.mjs} +2 -2
- package/out/__chunks__/chunk-V5ZA5MQV.mjs +2 -0
- package/out/__chunks__/{chunk-MLT5MRG6.mjs → chunk-VLJXRHVE.mjs} +2 -2
- package/out/__chunks__/chunk-VMUOJEUV.mjs +2 -0
- package/out/__chunks__/{chunk-VBPV3GOM.mjs → chunk-W4F3YI3F.mjs} +2 -2
- package/out/__chunks__/chunk-WXTELBRA.mjs +2 -0
- package/out/__chunks__/chunk-WZSA2EE5.mjs +2 -0
- package/out/__chunks__/{chunk-HL4TSHGS.mjs → chunk-X7XFHGOE.mjs} +2 -2
- package/out/__chunks__/{chunk-A4W6PM3I.mjs → chunk-XZ2BAC7C.mjs} +2 -2
- package/out/__chunks__/{chunk-3KPRXK4G.mjs → chunk-YEBGEZ5L.mjs} +2 -2
- package/out/__chunks__/{chunk-OPVLMQIS.mjs → chunk-YJQR63IW.mjs} +2 -2
- package/out/__chunks__/{chunk-HOOSVVXO.mjs → chunk-YVOZYFMU.mjs} +2 -2
- package/out/apiCalls/account/getAccountFromApi.cjs +1 -1
- package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
- package/out/apiCalls/account/getScamAddressData.cjs +1 -1
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.cjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.cjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/economics/getEconomics.cjs +1 -1
- package/out/apiCalls/economics/getEconomics.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedToken.cjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.cjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.cjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.cjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactions.cjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/utils/axiosFetcher.cjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/network.constants.cjs +1 -1
- package/out/constants/providerFactory.constants.cjs +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/FormatAmountController/FormatAmountController.cjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.cjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/ToastManager/ToastManager.cjs +1 -1
- package/out/managers/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.cjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.cjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/ToastManager/helpers/createTransactionToast.cjs +1 -1
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs +1 -1
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.cjs +1 -1
- package/out/managers/ToastManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.cjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +1 -1
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/helpers/getProviderList.cjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs +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 +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.cjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/methods/account/getAccount.cjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.cjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.cjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.cjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.cjs +1 -1
- package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/helpers/waitForStoreRehydration.cjs +1 -1
- package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
- package/out/methods/initApp/initApp.cjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +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.cjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.cjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.cjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.cjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runSessionCallbacks.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/getPendingTransactions.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.cjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.cjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.cjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.cjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.cjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.cjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.cjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.cjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs +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.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.cjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.cjs +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/clearInitiatedLogins.cjs +1 -1
- package/out/providers/helpers/emptyProvider.cjs +1 -1
- package/out/providers/helpers/restoreProvider.cjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +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.cjs +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.cjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getAuthTokenText.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +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.cjs +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.cjs +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.cjs +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.cjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getGasPriceOptions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.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/nativeAuth/helpers/decodeLoginToken.cjs +1 -1
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs +1 -1
- package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs +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.cjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.cjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.cjs +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.cjs +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.cjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.cjs +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.cjs +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.cjs +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.cjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionStateByStatus.cjs +1 -1
- package/out/store/actions/transactions/transactionsActions.cjs +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.cjs +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.cjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.cjs +1 -1
- package/out/store/selectors/transactionsSelector.cjs +1 -1
- package/out/store/slices/account/emptyAccount.cjs +1 -1
- package/out/store/slices/config/configSlice.cjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.cjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/types/serverTransactions.types.cjs +1 -1
- package/out/types/serverTransactions.types.cjs.map +2 -2
- package/out/types/serverTransactions.types.mjs +1 -1
- package/out/types/transactions.types.cjs.map +2 -2
- package/out/types/transactions.types.mjs.map +2 -2
- package/out/utils/ComponentFactory.cjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/fetchAccount.cjs +1 -1
- package/out/utils/account/fetchAccount.mjs +1 -1
- package/out/utils/account/refreshAccount.cjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.cjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/operations/trimAmountDecimals.cjs +1 -1
- package/out/utils/transactions/explorerUrlBuilder.cjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.cjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.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/getAssetAmount.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/isGuardianTx.cjs +1 -1
- package/out/utils/validation/addressIsValid.cjs +1 -1
- package/out/utils/validation/isContract.cjs +1 -1
- package/out/utils/visual/switchTheme.cjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.cjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/package.json +2 -2
- package/out/__chunks__/chunk-244THUVU.mjs +0 -2
- package/out/__chunks__/chunk-AJ24DJ6R.mjs +0 -2
- package/out/__chunks__/chunk-AYQWPMYV.mjs +0 -2
- package/out/__chunks__/chunk-EFJCWATU.mjs +0 -2
- package/out/__chunks__/chunk-HIEQWWNV.mjs +0 -2
- package/out/__chunks__/chunk-HK3FFQRW.mjs +0 -2
- package/out/__chunks__/chunk-I7VZ3NT7.mjs +0 -2
- package/out/__chunks__/chunk-IHAVY2FZ.mjs +0 -2
- package/out/__chunks__/chunk-IRT7DVNX.mjs +0 -2
- package/out/__chunks__/chunk-JAY4M72W.mjs +0 -2
- package/out/__chunks__/chunk-JLDDNS5Y.mjs +0 -2
- package/out/__chunks__/chunk-KRNGFXMQ.mjs +0 -2
- package/out/__chunks__/chunk-LBARJ4NX.mjs +0 -2
- package/out/__chunks__/chunk-NMVSEQH7.mjs +0 -2
- package/out/__chunks__/chunk-O3S3N3Q7.mjs +0 -2
- package/out/__chunks__/chunk-YXHYT7CA.mjs +0 -2
- package/out/apiCalls/account/getAccountFromApi.d.ts +0 -9
- package/out/apiCalls/account/getScamAddressData.d.ts +0 -8
- package/out/apiCalls/configuration/getCleanApiAddress.d.ts +0 -1
- package/out/apiCalls/configuration/getGasStationMetadata.d.ts +0 -2
- package/out/apiCalls/configuration/getNetworkConfigFromApi.d.ts +0 -2
- package/out/apiCalls/configuration/getServerConfiguration.d.ts +0 -2
- package/out/apiCalls/economics/getEconomics.d.ts +0 -13
- package/out/apiCalls/endpoints.d.ts +0 -26
- package/out/apiCalls/tokens/getPersistedToken.d.ts +0 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.d.ts +0 -35
- package/out/apiCalls/tokens/getTokenDetails.d.ts +0 -4
- package/out/apiCalls/tokens/tokenDataStorage.d.ts +0 -5
- package/out/apiCalls/transactions/getServerTransactionsByHashes.d.ts +0 -4
- package/out/apiCalls/transactions/getTransactionByHash.d.ts +0 -2
- package/out/apiCalls/transactions/getTransactions.d.ts +0 -21
- package/out/apiCalls/transactions/getTransactionsByHashes.d.ts +0 -2
- package/out/apiCalls/utils/axiosFetcher.d.ts +0 -1
- package/out/apiCalls/utils/axiosInstance.d.ts +0 -2
- package/out/apiCalls/websocket/getWebsocketUrl.d.ts +0 -1
- package/out/constants/UITags.enum.d.ts +0 -9
- package/out/constants/browser.constants.d.ts +0 -2
- package/out/constants/ledger.constants.d.ts +0 -92
- package/out/constants/mvx.constants.d.ts +0 -15
- package/out/constants/network.constants.d.ts +0 -11
- package/out/constants/placeholders.constants.d.ts +0 -7
- package/out/constants/providerFactory.constants.d.ts +0 -3
- package/out/constants/storage.constants.d.ts +0 -7
- package/out/constants/transactions.constants.d.ts +0 -13
- package/out/constants/walletConnect.constants.d.ts +0 -2
- package/out/constants/websocket.constants.d.ts +0 -10
- package/out/constants/window.constants.d.ts +0 -2
- package/out/controllers/FormatAmountController/FormatAmountController.d.ts +0 -6
- package/out/controllers/FormatAmountController/index.d.ts +0 -1
- package/out/controllers/FormatAmountController/types.d.ts +0 -11
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.d.ts +0 -4
- package/out/controllers/TransactionsHistoryController/index.d.ts +0 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.d.ts +0 -12
- package/out/controllers/TransactionsTableController/index.d.ts +0 -1
- package/out/controllers/TransactionsTableController/transactionsTableController.types.d.ts +0 -38
- package/out/lib/sdkCore.d.ts +0 -7
- package/out/lib/sdkDappUI.components.d.ts +0 -1
- package/out/lib/sdkDappUi.d.ts +0 -9
- package/out/lib/sdkDappUtils.d.ts +0 -6
- package/out/lib/sdkWebWalletCrossWindowProvider.d.ts +0 -3
- package/out/lib/sdkWebWalletIframeProvider.d.ts +0 -1
- package/out/lib/sdkWebviewProvider.d.ts +0 -1
- package/out/managers/LogoutManager/LogoutManager.d.ts +0 -15
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.d.ts +0 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +0 -31
- package/out/managers/NotificationsFeedManager/index.d.ts +0 -2
- package/out/managers/NotificationsFeedManager/types/index.d.ts +0 -1
- package/out/managers/NotificationsFeedManager/types/notifications.types.d.ts +0 -7
- package/out/managers/ToastManager/ToastManager.d.ts +0 -36
- package/out/managers/ToastManager/ToastUICoordinator.d.ts +0 -30
- package/out/managers/ToastManager/helpers/LifetimeManager.d.ts +0 -14
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.d.ts +0 -11
- package/out/managers/ToastManager/helpers/createTransactionToast.d.ts +0 -15
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.d.ts +0 -2
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.d.ts +0 -2
- package/out/managers/ToastManager/helpers/tests/baseTransactionMock.d.ts +0 -2
- package/out/managers/ToastManager/helpers/tests/mocks/cache.d.ts +0 -14
- package/out/managers/ToastManager/helpers/tests/mocks/transactions.d.ts +0 -14
- package/out/managers/ToastManager/index.d.ts +0 -1
- package/out/managers/ToastManager/tests/helpers/createStoreStub.d.ts +0 -2
- package/out/managers/ToastManager/types/index.d.ts +0 -1
- package/out/managers/ToastManager/types/toast.types.d.ts +0 -50
- package/out/managers/TransactionManager/TransactionManager.d.ts +0 -55
- package/out/managers/TransactionManager/TransactionManager.types.d.ts +0 -21
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.d.ts +0 -2
- package/out/managers/TransactionManager/helpers/getToastDuration.d.ts +0 -2
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.d.ts +0 -3
- package/out/managers/TransactionManager/helpers/isBatchTransaction.d.ts +0 -1
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.d.ts +0 -6
- package/out/managers/TransactionManager/helpers/sessionCallbacks.d.ts +0 -8
- package/out/managers/TransactionManager/index.d.ts +0 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.d.ts +0 -27
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +0 -86
- package/out/managers/UnlockPanelManager/helpers/getIsSimpleLoginCallback.d.ts +0 -7
- package/out/managers/UnlockPanelManager/helpers/getProviderList.d.ts +0 -2
- package/out/managers/UnlockPanelManager/index.d.ts +0 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.d.ts +0 -46
- package/out/managers/internal/LedgerConnectStateManager/index.d.ts +0 -2
- package/out/managers/internal/LedgerConnectStateManager/types/index.d.ts +0 -1
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.d.ts +0 -8
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.d.ts +0 -13
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.d.ts +0 -12
- package/out/managers/internal/PendingTransactionsStateManager/index.d.ts +0 -2
- package/out/managers/internal/PendingTransactionsStateManager/types/index.d.ts +0 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.d.ts +0 -4
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.d.ts +0 -18
- package/out/managers/internal/SidePanelBaseManager/index.d.ts +0 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.d.ts +0 -29
- package/out/managers/internal/SignTransactionsStateManager/index.d.ts +0 -1
- package/out/managers/internal/SignTransactionsStateManager/types/index.d.ts +0 -1
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.d.ts +0 -63
- package/out/managers/internal/UIBaseManager/UIBaseManager.d.ts +0 -30
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.d.ts +0 -14
- package/out/managers/internal/WalletConnectStateManager/index.d.ts +0 -1
- package/out/methods/account/getAccount.d.ts +0 -1
- package/out/methods/account/getAccountInfo.d.ts +0 -15
- package/out/methods/account/getAddress.d.ts +0 -1
- package/out/methods/account/getIsLoggedIn.d.ts +0 -1
- package/out/methods/account/getLatestNonce.d.ts +0 -2
- package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.d.ts +0 -6
- package/out/methods/initApp/helpers/waitForStoreRehydration.d.ts +0 -6
- package/out/methods/initApp/initApp.d.ts +0 -19
- package/out/methods/initApp/initApp.types.d.ts +0 -126
- package/out/methods/initApp/websocket/initializeWebsocketConnection.d.ts +0 -3
- package/out/methods/initApp/websocket/registerWebsocket.d.ts +0 -19
- package/out/methods/loginInfo/getLoginInfo.d.ts +0 -9
- package/out/methods/network/getEgldLabel.d.ts +0 -1
- package/out/methods/network/getExplorerAddress.d.ts +0 -1
- package/out/methods/network/getNetworkConfig.d.ts +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.d.ts +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.d.ts +0 -7
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runSessionCallbacks.d.ts +0 -7
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.d.ts +0 -5
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.d.ts +0 -13
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.d.ts +0 -3
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.d.ts +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/getPendingTransactions.d.ts +0 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.d.ts +0 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.d.ts +0 -1
- package/out/methods/trackTransactions/trackTransactions.d.ts +0 -7
- package/out/methods/transactions/getFailedTransactions.d.ts +0 -1
- package/out/methods/transactions/getFailedTransactionsSessions.d.ts +0 -1
- package/out/methods/transactions/getPendingTransactions.d.ts +0 -1
- package/out/methods/transactions/getPendingTransactionsSessions.d.ts +0 -1
- package/out/methods/transactions/getSuccessfulTransactions.d.ts +0 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.d.ts +0 -1
- package/out/methods/transactions/getTransactionSessions.d.ts +0 -1
- package/out/providers/DappProvider/DappProvider.d.ts +0 -29
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.d.ts +0 -8
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.d.ts +0 -5
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.d.ts +0 -8
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.d.ts +0 -10
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.d.ts +0 -13
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.d.ts +0 -8
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.d.ts +0 -7
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.d.ts +0 -10
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.d.ts +0 -4
- package/out/providers/DappProvider/helpers/login/login.d.ts +0 -7
- package/out/providers/DappProvider/helpers/logout/logout.d.ts +0 -12
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.d.ts +0 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.d.ts +0 -7
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.d.ts +0 -10
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.d.ts +0 -6
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.d.ts +0 -13
- package/out/providers/DappProvider/index.d.ts +0 -1
- package/out/providers/ProviderFactory.d.ts +0 -9
- package/out/providers/helpers/accountProvider.d.ts +0 -5
- package/out/providers/helpers/cancelCrossWindowAction.d.ts +0 -1
- package/out/providers/helpers/clearInitiatedLogins.d.ts +0 -4
- package/out/providers/helpers/emptyProvider.d.ts +0 -35
- package/out/providers/helpers/restoreProvider.d.ts +0 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +0 -51
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +0 -25
- package/out/providers/strategies/CrossWindowProviderStrategy/index.d.ts +0 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +0 -19
- package/out/providers/strategies/ExtensionProviderStrategy/index.d.ts +0 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +0 -22
- package/out/providers/strategies/IframeProviderStrategy/index.d.ts +0 -2
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.d.ts +0 -4
- package/out/providers/strategies/IframeProviderStrategy/types/index.d.ts +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +0 -38
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.d.ts +0 -16
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getAuthTokenText.d.ts +0 -8
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.d.ts +0 -9
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/secondsToTimeString.d.ts +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.d.ts +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.d.ts +0 -13
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.types.d.ts +0 -8
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.d.ts +0 -19
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.d.ts +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.d.ts +0 -4
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.d.ts +0 -8
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.d.ts +0 -5
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/initHwProvider.d.ts +0 -12
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.d.ts +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.d.ts +0 -10
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.d.ts +0 -5
- package/out/providers/strategies/LedgerProviderStrategy/index.d.ts +0 -2
- package/out/providers/strategies/LedgerProviderStrategy/types/index.d.ts +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.d.ts +0 -40
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.d.ts +0 -8
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +0 -37
- package/out/providers/strategies/WalletConnectProviderStrategy/index.d.ts +0 -2
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.d.ts +0 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.d.ts +0 -29
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.d.ts +0 -20
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.d.ts +0 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +0 -23
- package/out/providers/strategies/WebviewProviderStrategy/index.d.ts +0 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.d.ts +0 -9
- package/out/providers/strategies/helpers/index.d.ts +0 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.d.ts +0 -9
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.d.ts +0 -6
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.d.ts +0 -13
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.d.ts +0 -31
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.d.ts +0 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.d.ts +0 -6
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.d.ts +0 -18
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getGasPriceOptions.d.ts +0 -13
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.d.ts +0 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.d.ts +0 -10
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.d.ts +0 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.d.ts +0 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.d.ts +0 -6
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/mockGetCommonDataInput.d.ts +0 -73
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.d.ts +0 -9
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.d.ts +0 -7
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.d.ts +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.d.ts +0 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.d.ts +0 -8
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.d.ts +0 -5
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.d.ts +0 -5
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.d.ts +0 -2
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.d.ts +0 -4
- package/out/providers/strategies/helpers/signTransactions/signTransactions.d.ts +0 -12
- package/out/providers/strategies/helpers/signTransactions/tests/mocks.d.ts +0 -16
- package/out/providers/types/providerFactory.types.d.ts +0 -51
- package/out/react/account/useGetAccount.d.ts +0 -1
- package/out/react/account/useGetAccountInfo.d.ts +0 -15
- package/out/react/account/useGetIsLoggedIn.d.ts +0 -1
- package/out/react/account/useGetLatestNonce.d.ts +0 -1
- package/out/react/index.d.ts +0 -1
- package/out/react/loginInfo/useGetLoginInfo.d.ts +0 -9
- package/out/react/network/useGetNetworkConfig.d.ts +0 -1
- package/out/react/store/createBoundedStore.d.ts +0 -14
- package/out/react/store/getReactStore.d.ts +0 -4
- package/out/react/store/useSelector.d.ts +0 -6
- package/out/react/transactions/useGetFailedTransactions.d.ts +0 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.d.ts +0 -1
- package/out/react/transactions/useGetPendingTransactions.d.ts +0 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.d.ts +0 -1
- package/out/react/transactions/useGetSuccessfulTransactions.d.ts +0 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.d.ts +0 -1
- package/out/react/transactions/useGetTransactionSessions.d.ts +0 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.d.ts +0 -9
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.d.ts +0 -8
- package/out/services/nativeAuth/helpers/getLatestBlockHash.d.ts +0 -12
- package/out/services/nativeAuth/helpers/index.d.ts +0 -3
- package/out/services/nativeAuth/index.d.ts +0 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.d.ts +0 -15
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.d.ts +0 -7
- package/out/services/nativeAuth/methods/getTokenExpiration.d.ts +0 -6
- package/out/services/nativeAuth/nativeAuth.d.ts +0 -19
- package/out/services/nativeAuth/nativeAuth.types.d.ts +0 -19
- package/out/store/actions/account/accountActions.d.ts +0 -9
- package/out/store/actions/account/index.d.ts +0 -1
- package/out/store/actions/cache/cacheActions.d.ts +0 -6
- package/out/store/actions/cache/index.d.ts +0 -1
- package/out/store/actions/config/configActions.d.ts +0 -9
- package/out/store/actions/config/index.d.ts +0 -1
- package/out/store/actions/loginInfo/loginInfoActions.d.ts +0 -12
- package/out/store/actions/network/index.d.ts +0 -1
- package/out/store/actions/network/initializeNetwork.d.ts +0 -7
- package/out/store/actions/network/networkActions.d.ts +0 -3
- package/out/store/actions/sharedActions/index.d.ts +0 -1
- package/out/store/actions/sharedActions/sharedActions.d.ts +0 -7
- package/out/store/actions/toasts/index.d.ts +0 -1
- package/out/store/actions/toasts/toastsActions.d.ts +0 -13
- package/out/store/actions/transactions/transactionStateByStatus.d.ts +0 -23
- package/out/store/actions/transactions/transactionsActions.d.ts +0 -20
- package/out/store/actions/ui/index.d.ts +0 -1
- package/out/store/actions/ui/uiActions.d.ts +0 -1
- package/out/store/middleware/applyMiddlewares.d.ts +0 -2
- package/out/store/middleware/index.d.ts +0 -1
- package/out/store/middleware/logoutMiddleware.d.ts +0 -6
- package/out/store/selectors/accountSelectors.d.ts +0 -25
- package/out/store/selectors/cacheSelector.d.ts +0 -3
- package/out/store/selectors/configSelectors.d.ts +0 -5
- package/out/store/selectors/loginInfoSelectors.d.ts +0 -7
- package/out/store/selectors/networkSelectors.d.ts +0 -9
- package/out/store/selectors/storeSelector.d.ts +0 -2
- package/out/store/selectors/toastsSelectors.d.ts +0 -4
- package/out/store/selectors/transactionsSelector.d.ts +0 -10
- package/out/store/selectors/uiSelectors.d.ts +0 -3
- package/out/store/slices/account/account.types.d.ts +0 -25
- package/out/store/slices/account/accountSlice.d.ts +0 -5
- package/out/store/slices/account/emptyAccount.d.ts +0 -2
- package/out/store/slices/account/index.d.ts +0 -1
- package/out/store/slices/cache/cacheSlice.d.ts +0 -5
- package/out/store/slices/cache/cacheSlice.types.d.ts +0 -3
- package/out/store/slices/cache/index.d.ts +0 -1
- package/out/store/slices/config/config.types.d.ts +0 -16
- package/out/store/slices/config/configSlice.d.ts +0 -4
- package/out/store/slices/config/index.d.ts +0 -1
- package/out/store/slices/loginInfo/index.d.ts +0 -1
- package/out/store/slices/loginInfo/loginInfo.types.d.ts +0 -19
- package/out/store/slices/loginInfo/loginInfoSlice.d.ts +0 -5
- package/out/store/slices/network/emptyNetwork.d.ts +0 -2
- package/out/store/slices/network/index.d.ts +0 -1
- package/out/store/slices/network/network.types.d.ts +0 -5
- package/out/store/slices/network/networkSlice.d.ts +0 -4
- package/out/store/slices/network/networkSlice.types.d.ts +0 -4
- package/out/store/slices/toast/index.d.ts +0 -1
- package/out/store/slices/toast/toastSlice.d.ts +0 -5
- package/out/store/slices/toast/toastSlice.types.d.ts +0 -50
- package/out/store/slices/transactions/index.d.ts +0 -1
- package/out/store/slices/transactions/transactionsSlice.d.ts +0 -5
- package/out/store/slices/transactions/transactionsSlice.types.d.ts +0 -4
- package/out/store/slices/ui/index.d.ts +0 -1
- package/out/store/slices/ui/ui.types.d.ts +0 -3
- package/out/store/slices/ui/uiSlice.d.ts +0 -4
- package/out/store/storage/inMemoryStorage.d.ts +0 -9
- package/out/store/storage/index.d.ts +0 -2
- package/out/store/storage/storageCallback.d.ts +0 -3
- package/out/store/store.d.ts +0 -103
- package/out/store/store.types.d.ts +0 -46
- package/out/types/account.types.d.ts +0 -38
- package/out/types/enums.types.d.ts +0 -74
- package/out/types/login.types.d.ts +0 -13
- package/out/types/manager.types.d.ts +0 -5
- package/out/types/network.types.d.ts +0 -51
- package/out/types/provider.types.d.ts +0 -6
- package/out/types/serverTransactions.types.d.ts +0 -321
- package/out/types/subscriptions.type.d.ts +0 -5
- package/out/types/suspiciousLink.types.d.ts +0 -17
- package/out/types/theme.types.d.ts +0 -5
- package/out/types/tokens.types.d.ts +0 -173
- package/out/types/transaction-list-item.types.d.ts +0 -87
- package/out/types/transactions.types.d.ts +0 -106
- package/out/types/websocket.types.d.ts +0 -4
- package/out/utils/ComponentFactory.d.ts +0 -14
- package/out/utils/account/fetchAccount.d.ts +0 -4
- package/out/utils/account/refreshAccount.d.ts +0 -27
- package/out/utils/account/refreshNativeAuthTokenLogin.d.ts +0 -10
- package/out/utils/account/trimUsernameDomain.d.ts +0 -1
- package/out/utils/asyncActions/index.d.ts +0 -1
- package/out/utils/asyncActions/sleep.d.ts +0 -1
- package/out/utils/dateTime/getUnixTimestamp.d.ts +0 -1
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.d.ts +0 -1
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.d.ts +0 -1
- package/out/utils/dateTime/index.d.ts +0 -3
- package/out/utils/decoders/base64Utils.d.ts +0 -22
- package/out/utils/decoders/decodePart.d.ts +0 -1
- package/out/utils/decoders/isAscii.d.ts +0 -1
- package/out/utils/decoders/isUtf8.d.ts +0 -1
- package/out/utils/decoders/stringContainsNumbers.d.ts +0 -1
- package/out/utils/network/index.d.ts +0 -1
- package/out/utils/network/setAxiosInterceptors.d.ts +0 -6
- package/out/utils/operations/capitalize.d.ts +0 -1
- package/out/utils/operations/getUsdValue.d.ts +0 -6
- package/out/utils/operations/pluralize.d.ts +0 -1
- package/out/utils/operations/tests/pluralize.spec.d.ts +0 -1
- package/out/utils/operations/tests/trimAmountDecimals.spec.d.ts +0 -1
- package/out/utils/operations/timeRemaining.d.ts +0 -4
- package/out/utils/operations/trimAmountDecimals.d.ts +0 -6
- package/out/utils/retryMultipleTimes.d.ts +0 -6
- package/out/utils/tests/shadowDomTraversal.d.ts +0 -17
- package/out/utils/transactions/explorerUrlBuilder.d.ts +0 -25
- package/out/utils/transactions/getActiveTransactionsStatus.d.ts +0 -7
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.d.ts +0 -9
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.d.ts +0 -8
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.d.ts +0 -9
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.d.ts +0 -9
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.d.ts +0 -9
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.d.ts +0 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.d.ts +0 -7
- package/out/utils/transactions/getDecodedDataField/index.d.ts +0 -1
- package/out/utils/transactions/getExplorerLink.d.ts +0 -4
- package/out/utils/transactions/getHumanReadableTimeFormat.d.ts +0 -10
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.d.ts +0 -7
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.d.ts +0 -17
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.d.ts +0 -12
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.d.ts +0 -7
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.d.ts +0 -8
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.d.ts +0 -16
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.d.ts +0 -8
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.d.ts +0 -8
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.d.ts +0 -8
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.d.ts +0 -22
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.d.ts +0 -10
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.d.ts +0 -8
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.d.ts +0 -6
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.d.ts +0 -5
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.d.ts +0 -7
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.d.ts +0 -8
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/baseTransactionMock.d.ts +0 -27
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/extendedTransactionMock.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/index.d.ts +0 -1
- package/out/utils/transactions/getScamFlag.d.ts +0 -8
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.d.ts +0 -3
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.d.ts +0 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.d.ts +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.d.ts +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.d.ts +0 -3
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.d.ts +0 -2
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.d.ts +0 -6
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.d.ts +0 -13
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.d.ts +0 -8
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.d.ts +0 -7
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.d.ts +0 -7
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.d.ts +0 -15
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.d.ts +0 -16
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.d.ts +0 -12
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.d.ts +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.d.ts +0 -9
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.d.ts +0 -12
- package/out/utils/transactions/getTransactionsHistory/index.d.ts +0 -1
- package/out/utils/transactions/isGuardianTx.d.ts +0 -4
- package/out/utils/validation/addressIsValid.d.ts +0 -1
- package/out/utils/validation/getIdentifierType.d.ts +0 -5
- package/out/utils/validation/hex.d.ts +0 -2
- package/out/utils/validation/isContract.d.ts +0 -6
- package/out/utils/validation/maxDecimals.d.ts +0 -1
- package/out/utils/visual/switchTheme.d.ts +0 -2
- package/out/utils/walletconnect/__sdkWalletconnectProvider.d.ts +0 -8
- package/out/utils/window/buildUrlParams.d.ts +0 -8
- package/out/utils/window/getIsAuthRoute.d.ts +0 -15
- package/out/utils/window/getIsInIframe.d.ts +0 -1
- package/out/utils/window/getWindowLocation.d.ts +0 -9
- package/out/utils/window/getWindowParentOrigin.d.ts +0 -1
- package/out/utils/window/isWindowAvailable.d.ts +0 -1
- package/out/utils/window/matchPath.d.ts +0 -60
- package/out/utils/window/sanitizeCallbackUrl.d.ts +0 -1
- /package/out/__chunks__/{chunk-CDWQSFYM.mjs.map → chunk-2NE75KNA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HK3FFQRW.mjs.map → chunk-2WUOBFRV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SFNIICWA.mjs.map → chunk-3C4QWHTF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OLWNOBIQ.mjs.map → chunk-3MWPYDLA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R34WZLE5.mjs.map → chunk-3Z7CLSDP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AJ24DJ6R.mjs.map → chunk-422ZUBTP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NFUEPPQR.mjs.map → chunk-6BA2NDJT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OPIR3VXY.mjs.map → chunk-6BNZ4EJC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QTX4NHPU.mjs.map → chunk-6VJXXSIS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KRNGFXMQ.mjs.map → chunk-6ZU2IBDO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PMEPPI6R.mjs.map → chunk-AAIKQGPN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CB4IL76J.mjs.map → chunk-AC3N236P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VIHKBS2X.mjs.map → chunk-AHORDOF4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CILOQDO7.mjs.map → chunk-AJBGY6A5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HIEQWWNV.mjs.map → chunk-BFVULVAD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IRT7DVNX.mjs.map → chunk-BZLQ6QLQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IYGNSIQ5.mjs.map → chunk-CDHVNNSM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D6O5CXIJ.mjs.map → chunk-CG6BZB2U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LBARJ4NX.mjs.map → chunk-CKY2HBH6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XXRHWR52.mjs.map → chunk-CMN37YZP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XXXUMU4O.mjs.map → chunk-CNE5LY2X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-V4LJXYQC.mjs.map → chunk-COA54JTE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VRMDOPB6.mjs.map → chunk-CYKK4HPZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LVHVC32Z.mjs.map → chunk-DDB4KRVV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZJOJQZCC.mjs.map → chunk-DY3P72D3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XJL3OI7L.mjs.map → chunk-DY53O4ED.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NAEHROA2.mjs.map → chunk-EETA2QXV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C37CZZ7G.mjs.map → chunk-EH3QXINF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-244THUVU.mjs.map → chunk-EOAIKG7U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UIC4S5TZ.mjs.map → chunk-FRIOQMD3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S4C27CCJ.mjs.map → chunk-FRREO5DY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7TM4PETT.mjs.map → chunk-H3MXIVR4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OWQXZ55A.mjs.map → chunk-H3TSHWUD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HCVXJWZQ.mjs.map → chunk-HKZTCRSV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VSM5G4ZH.mjs.map → chunk-I5NDCPU2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QV3D2ZVT.mjs.map → chunk-ICJ5ZWS4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SKYZYQFB.mjs.map → chunk-IWQH426N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KZKHUGFE.mjs.map → chunk-IZVWRQDU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-N2URS6RY.mjs.map → chunk-J7DUP7GC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WAEPXUJW.mjs.map → chunk-JBPJL3B7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OZJYVSVG.mjs.map → chunk-JJ6B2ZYX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-476BGZWV.mjs.map → chunk-JMJ7OMSW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DO5KNMAG.mjs.map → chunk-JO3KLBXS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VPSQTIAR.mjs.map → chunk-KTSYT4CA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WOPE4NY2.mjs.map → chunk-L5RYEWHO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SS3A7KK2.mjs.map → chunk-L7AC35OO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MG5FGHHV.mjs.map → chunk-LNRVNBRB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JSG65RN6.mjs.map → chunk-LUVMM57Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NMVSEQH7.mjs.map → chunk-MJXIB64Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M6ERVE23.mjs.map → chunk-MNN7JOCV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YIH3FJB4.mjs.map → chunk-O65UD2QD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RXRVBUAX.mjs.map → chunk-O7ORKWKU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PIJ4OMIA.mjs.map → chunk-OAFYVJLF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VSZYA5AR.mjs.map → chunk-OKO3GIXC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TSYN7VWE.mjs.map → chunk-OSGTEMH4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TDNZYOQN.mjs.map → chunk-OWYOEUPL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WJTMUYTI.mjs.map → chunk-P4H53TTI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U3JV6DJH.mjs.map → chunk-P6OHY6KU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NOFMFBNG.mjs.map → chunk-PENSR33H.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IHAVY2FZ.mjs.map → chunk-PI76AQ3J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UKJT66VH.mjs.map → chunk-PKNPUHFQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I7VZ3NT7.mjs.map → chunk-PZI62JRY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FJLZCJXP.mjs.map → chunk-Q6SV22DH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2M6ZZ2SL.mjs.map → chunk-QACFOFUG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ATYZKVD3.mjs.map → chunk-QGUQTBVR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MBS3W5NI.mjs.map → chunk-QHANP3XT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SNXSD7MF.mjs.map → chunk-QMSYQJAU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CEP3W56Z.mjs.map → chunk-R7Y4IM2T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DQGHE25H.mjs.map → chunk-RGDZMPES.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-56S5SGPS.mjs.map → chunk-RMMIR3MN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3CWJ722Y.mjs.map → chunk-RQOU5LG4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O57N3Y2D.mjs.map → chunk-RSNSPKZ3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X4CUC3IQ.mjs.map → chunk-S4GXN3R7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2YUHHXLR.mjs.map → chunk-T6I7XQHS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JLDDNS5Y.mjs.map → chunk-TN3MSIAN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3MVZ3KNW.mjs.map → chunk-TRICXIPQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YQBCROZN.mjs.map → chunk-TU6TE5PG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-573LAOYN.mjs.map → chunk-TWOVGGG2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VUVEHXGH.mjs.map → chunk-UGY4JSP3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QLIZ5PRI.mjs.map → chunk-UWCHOJH4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JAY4M72W.mjs.map → chunk-V5ZA5MQV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MLT5MRG6.mjs.map → chunk-VLJXRHVE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YXHYT7CA.mjs.map → chunk-VMUOJEUV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VBPV3GOM.mjs.map → chunk-W4F3YI3F.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EFJCWATU.mjs.map → chunk-WXTELBRA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O3S3N3Q7.mjs.map → chunk-WZSA2EE5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HL4TSHGS.mjs.map → chunk-X7XFHGOE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A4W6PM3I.mjs.map → chunk-XZ2BAC7C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3KPRXK4G.mjs.map → chunk-YEBGEZ5L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OPVLMQIS.mjs.map → chunk-YJQR63IW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HOOSVVXO.mjs.map → chunk-YVOZYFMU.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-DY3P72D3.mjs";import{a as o}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=i(e());return{origin:t?.origin||o().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2NE75KNA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-TU6TE5PG.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-3C4QWHTF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as o}from"./chunk-DY3P72D3.mjs";import{a as c}from"./chunk-APCGI2A5.mjs";var p=t=>{o().setState(({account:e})=>{let s=e.address===t.address;e.accounts={[e.address]:s?t:c}},!1,{type:"setAccount",payload:{value:t}})},r=t=>o().setState(({account:e})=>{e.ledgerAccount=t},!1,{type:"setLedgerAccount",payload:{value:t}}),u=t=>o().setState(({account:e})=>{e.walletConnectAccount=t},!1,{type:"setWalletConnectAccount",payload:{value:t}}),l=t=>o().setState(({account:e})=>{e.websocketEvent={timestamp:Date.now(),message:t}},!1,{type:"setWebsocketEvent",payload:{value:t}}),d=t=>o().setState(({account:e})=>{e.websocketBatchEvent={timestamp:Date.now(),data:t}},!1,{type:"setWebsocketBatchEvent",payload:{value:t}}),y=t=>{o().setState(({account:e})=>{e.accounts[e.address].nonce=t},!1,{type:"setAccountNonce",payload:{value:t}})};export{p as a,r as b,u as c,l as d,d as e,y as f};
|
|
2
|
+
//# sourceMappingURL=chunk-3MWPYDLA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-L7AC35OO.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3Z7CLSDP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as le}from"./chunk-M3YL36ZL.mjs";import{a as I}from"./chunk-VPSQTIAR.mjs";import{a as pe}from"./chunk-2Y66XRQK.mjs";import{a as oe}from"./chunk-VSZYA5AR.mjs";import{a as V}from"./chunk-C37CZZ7G.mjs";import{a as ae}from"./chunk-MG5FGHHV.mjs";import{a as se}from"./chunk-YUFPUG5O.mjs";import{a as ne}from"./chunk-N2URS6RY.mjs";import{a as ge}from"./chunk-VIHKBS2X.mjs";import{a as g}from"./chunk-MLT5MRG6.mjs";import{a as l,b as ie}from"./chunk-6R2WFQ7U.mjs";import{a as de}from"./chunk-U3JV6DJH.mjs";import{a as z}from"./chunk-HCVXJWZQ.mjs";import{a as ce}from"./chunk-M6ERVE23.mjs";import{a as b}from"./chunk-QJGFIK7H.mjs";import{b as te}from"./chunk-4Z3DZ2A3.mjs";import{j as S,k as T,l as L}from"./chunk-OPVLMQIS.mjs";import{c as N}from"./chunk-PMEPPI6R.mjs";import{a as C}from"./chunk-HIEQWWNV.mjs";import{a as Y}from"./chunk-LBARJ4NX.mjs";import{a as R}from"./chunk-4TBVQD27.mjs";import{i as J}from"./chunk-QV3D2ZVT.mjs";import{a as re}from"./chunk-VBPV3GOM.mjs";import{a as U}from"./chunk-O3S3N3Q7.mjs";import{b as Q,c as Z,d as ee}from"./chunk-V5ZSFCKJ.mjs";import{g as X}from"./chunk-M6MN4RXG.mjs";import{b as f,c as K}from"./chunk-7VHTZYM2.mjs";import{a as $,q as F,s as c}from"./chunk-ZJOJQZCC.mjs";import{f as j}from"./chunk-FK6DWWZF.mjs";import{a as q}from"./chunk-VNLGNNIL.mjs";import{b as y,c as G}from"./chunk-7B7XIPV2.mjs";import{a as n}from"./chunk-LJX4MW7B.mjs";async function me({message:a,handleSignMessage:o}){try{return await m({message:a,handleSignMessage:o,providerType:l.ledger})}catch(e){let{errorMessage:r}=se(e);throw r?{message:r}:e}}var w=class extends g{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await oe({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!C())return;await V.getInstance().init(e)};this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await z({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider),options:r})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await me({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await ne({shouldInitProvider:!0});this.provider=r}catch(r){throw J({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"close",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return n.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await this.initLegderConnectManager(this.options?.anchor);let e=V.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((s,i)=>ae({manager:e,resolve:s,reject:i,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ue=3e4,fe=5e3,we=3e3,O=class a{constructor(){this.store=F();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let o=this.store.getState(),{providerType:e}=q(o),r=j(o);return!!(e===n.ledger&&r)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let o=te(c());if(!(!this.shouldCheckConnection()||o))try{await L().getProvider().getAddress()}catch{if(N.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",icon:"close",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,fe)}},ue))};this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let o=new w({shouldInitProvider:!0});await o.init();let e=new S(o);o.getType=()=>n.ledger,T(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,N.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",duration:we,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var A=class extends g{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:t,manager:s}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(i){throw await t({shouldCancelAction:!0}),i}finally{s?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await m({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.crossWindow})};this.walletAddress=e?.walletAddress,this.provider=b.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=f(c()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return n.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as Pe}from"@multiversx/sdk-extension-provider/out/extensionProvider";var _=class extends g{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:t,onClose:s}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(i){throw await s({shouldCancelAction:!1}),i}finally{t?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await m({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension})};this.provider=Pe.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return n.extension}};var W=class extends g{constructor({address:e,walletUrl:r}={}){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:t,onClose:s}=await this.initSignState();try{return await z({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider),options:r})}catch(i){throw await s({shouldCancelAction:!0}),i}finally{t?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await m({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l[n.metamask]})};this.walletUrl=r??"",this.provider=le.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=f(c());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return n.metamask}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as Ce}from"@multiversx/sdk-wallet-connect-provider/out";var ve=[y.CANCEL_ACTION,y.SIGN_LOGIN_TOKEN],x=class extends g{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.cancelActionAbortController=null;this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:t,onClose:s}=await this.initSignState();this.cancelActionAbortController=new AbortController;let i=this.cancelActionAbortController.signal;try{let d=new Promise((p,P)=>{i.addEventListener("abort",()=>{P(new Error("cancelled by user"))})}),v=await Promise.race([this.provider.signTransactions(e),d]);return await ce(v)}catch(d){throw await s({shouldCancelAction:!0}),d}finally{t?.closeUI()}};this.cancelAction=async()=>{this.sendCustomRequest({method:y.CANCEL_ACTION,action:Ce.CANCEL_ACTION}),this.cancelActionAbortController?.abort()};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");this.cancelActionAbortController=new AbortController;let r=this.cancelActionAbortController.signal,t=new Promise((i,d)=>{r.addEventListener("abort",()=>{d(new Error("cancelled by user"))})});return await Promise.race([m({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension}),t])};this.config=e}async init(){try{if(this.provider?.isInitialized())return!0;await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return n.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:s}=await this.provider.connect({methods:this.methods}),i=this.config.walletConnectDeepLink??R.walletConnectDeepLink;this._approval=s,I.getInstance().updateData({wcURI:t,walletConnectDeepLink:`${i}?wallet-connect=${encodeURIComponent(t)}`})}async initWalletConnectManager(){if(!!C())return;await I.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=C(),t=K(c());if(Q(c())&&ve.push(y.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let h={onClientLogin:()=>{},onClientLogout:()=>{re()},onClientEvent:p=>{}};try{let{walletConnectV2ProjectId:p,walletConnectV2Options:P={},walletConnectV2RelayAddress:D=""}=e,M=new G(h,t,D,p,P);return await M.init(),{walletConnectProvider:M,dappMethods:ve}}catch(p){throw console.error("Unable to connect",p),r&&await this.logout(),p}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=I.getInstance(),{uri:s="",approval:i}=await this.provider.connect({methods:this.methods}),d=this.config.walletConnectDeepLink??R.walletConnectDeepLink;t.updateData({wcURI:s,walletConnectDeepLink:`${d}?wallet-connect=${encodeURIComponent(s)}`});let v=await this.provider.login({approval:i,token:e?.token}),{address:h="",signature:p=""}=v??{};return t.handleClose({isLoginFinished:!!h}),{address:h,signature:p}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:s="",signature:i=""}=t??{};return I.getInstance().handleClose({isLoginFinished:!!s}),{address:s,signature:i}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var E=class{static set customProviders(o){this._customProviders=o}static get customProviders(){return this._customProviders}static async create({type:o,anchor:e}){let r=null;switch(o){case n.extension:{r=new _;break}case n.crossWindow:{r=new A;break}case n.ledger:{r=new w({anchor:e}),await O.getInstance().init();break}case n.metamask:{r=new W;break}case n.passkey:{let i=f(c());r=new A({walletAddress:`${i.walletAddress}?${ie}=${n.passkey}`});break}case n.walletConnect:{let i=Z(c());if(!i?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new x({anchor:e,...i});break}case n.webview:{r=new ge;break}default:{let i=Y();for(let d of this._customProviders)d.type===o&&(r=await d.constructor({address:i,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new S(r);T(t);let s="provider"in r&&r.provider instanceof b;return pe(s?{skipLoginMethod:n.crossWindow}:null),t}static async destroy(){L().cancelLogin(),T(null),$(n.none)}};E._customProviders=[];var Te=(a,o)=>a.some(e=>e.type===o);async function m({message:a,handleSignMessage:o,cancelAction:e,providerType:r}){if(ee(c())?.isSigningUiEnabled===!1){U(!0);try{return await o(a)}finally{U(!1)}}return await new Promise(async(i,d)=>{let{manager:v,onClose:h}=await de({cancelAction:e}),p=Object.values(E.customProviders),P=p.reduce((u,B)=>(u[B.type]=B.name,u),{}),D={...l,...P},M=async()=>{await h({shouldCancelAction:!0}),d({message:"Signing canceled"})};v.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",M);let H=Te(p,r)?r:n.none;v.updateData({name:D[H],type:H});try{let u=await o(a);i(u)}catch(u){await h({shouldCancelAction:!0}),d(u)}finally{v.closeUI()}})}export{m as a,me as b,w as c,O as d,A as e,_ as f,W as g,x as h,E as i};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as le}from"./chunk-M3YL36ZL.mjs";import{a as I}from"./chunk-KTSYT4CA.mjs";import{a as pe}from"./chunk-2Y66XRQK.mjs";import{a as oe}from"./chunk-OKO3GIXC.mjs";import{a as V}from"./chunk-EH3QXINF.mjs";import{a as ae}from"./chunk-LNRVNBRB.mjs";import{a as se}from"./chunk-YUFPUG5O.mjs";import{a as ne}from"./chunk-J7DUP7GC.mjs";import{a as ge}from"./chunk-AHORDOF4.mjs";import{a as g}from"./chunk-VLJXRHVE.mjs";import{a as l,b as ie}from"./chunk-6R2WFQ7U.mjs";import{a as de}from"./chunk-P6OHY6KU.mjs";import{a as z}from"./chunk-HKZTCRSV.mjs";import{a as ce}from"./chunk-MNN7JOCV.mjs";import{a as b}from"./chunk-QJGFIK7H.mjs";import{b as te}from"./chunk-4Z3DZ2A3.mjs";import{j as S,k as T,l as L}from"./chunk-YJQR63IW.mjs";import{c as N}from"./chunk-AAIKQGPN.mjs";import{a as C}from"./chunk-BFVULVAD.mjs";import{a as Y}from"./chunk-CKY2HBH6.mjs";import{a as R}from"./chunk-4TBVQD27.mjs";import{i as J}from"./chunk-ICJ5ZWS4.mjs";import{a as re}from"./chunk-W4F3YI3F.mjs";import{a as U}from"./chunk-WZSA2EE5.mjs";import{b as Q,c as Z,d as ee}from"./chunk-V5ZSFCKJ.mjs";import{g as X}from"./chunk-M6MN4RXG.mjs";import{b as f,c as K}from"./chunk-7VHTZYM2.mjs";import{a as $,q as F,s as c}from"./chunk-DY3P72D3.mjs";import{f as j}from"./chunk-FK6DWWZF.mjs";import{a as q}from"./chunk-VNLGNNIL.mjs";import{b as y,c as G}from"./chunk-7B7XIPV2.mjs";import{a as n}from"./chunk-LJX4MW7B.mjs";async function me({message:a,handleSignMessage:o}){try{return await m({message:a,handleSignMessage:o,providerType:l.ledger})}catch(e){let{errorMessage:r}=se(e);throw r?{message:r}:e}}var w=class extends g{constructor({address:e,anchor:r,shouldInitProvider:t}){super(e);this.provider=null;this.config=null;this.ledgerLogin=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");if(!e||typeof e.addressIndex!="number")throw new Error("Missing addressIndex for Ledger login");let{address:r,signature:t}=await this.provider.login({addressIndex:e.addressIndex});return{address:r,signature:t??""}};this.loginOperation=async e=>{if(!this.provider||!this.config)throw new Error("Provider is not initialized.");return await oe({options:e,config:this.config,provider:this.provider,login:this.ledgerLogin.bind(this)})};this.initLegderConnectManager=async e=>{if(!!C())return;await V.getInstance().init(e)};this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await z({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider),options:r})};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await this.rebuildProvider(),await me({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider)})};this.rebuildProvider=async()=>{try{await this.provider?.getAddress()}catch{try{let{ledgerProvider:r}=await ne({shouldInitProvider:!0});this.provider=r}catch(r){throw J({toastId:"ledger-provider-rebuild-error",duration:1e4,icon:"close",iconClassName:"warning",message:"Unlock your device & open the MultiversX App",title:"Ledger unavailable"}),r}}};this.options={anchor:r,shouldInitProvider:t},this._login=this.ledgerLogin.bind(this)}async init(){try{this.initializeAddress(),await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return n.ledger}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){await this.initLegderConnectManager(this.options?.anchor);let e=V.getInstance(),{ledgerProvider:r,ledgerConfig:t}=await new Promise((s,i)=>ae({manager:e,resolve:s,reject:i,shouldInitProvider:this.options?.shouldInitProvider}));this.config=t,this.provider=r}};var ue=3e4,fe=5e3,we=3e3,O=class a{constructor(){this.store=F();this.connectionCheckInterval=null;this.recreateProviderInterval=null;this.init=async()=>{this.startCheckConnectionLoop()};this.shouldCheckConnection=()=>{let o=this.store.getState(),{providerType:e}=q(o),r=j(o);return!!(e===n.ledger&&r)};this.startCheckConnectionLoop=()=>{this.connectionCheckInterval||(this.connectionCheckInterval=setInterval(async()=>{let o=te(c());if(!(!this.shouldCheckConnection()||o))try{await L().getProvider().getAddress()}catch{if(N.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",icon:"close",iconClassName:"warning",message:"Unlock your device to continue signing transactions",title:"Ledger disconnected"}),this.reset(),this.recreateProviderInterval)return;this.recreateProviderInterval=setInterval(this.reconnectProvider,fe)}},ue))};this.reconnectProvider=async()=>{if(this.shouldCheckConnection())try{let o=new w({shouldInitProvider:!0});await o.init();let e=new S(o);o.getType=()=>n.ledger,T(e),this.reset(),clearInterval(this.recreateProviderInterval??0),this.recreateProviderInterval=null,N.getInstance().createCustomToast({toastId:"ledger-provider-idle-warning",duration:we,icon:"check",iconClassName:"success",message:"Your device is ready to sign transactions",title:"Ledger reconnected"}),this.startCheckConnectionLoop()}catch{console.log("Unable to reconnect to Ledger")}};this.reset=()=>{clearInterval(this.connectionCheckInterval??0),this.connectionCheckInterval=null}}static getInstance(){return a.instance||(a.instance=new a),a.instance}};var A=class extends g{constructor(e){super(e?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");let{onClose:t,manager:s}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(i){throw await t({shouldCancelAction:!0}),i}finally{s?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await m({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.crossWindow})};this.walletAddress=e?.walletAddress,this.provider=b.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=f(c()),r=await this.provider.init();return this.provider.setWalletUrl(this.walletAddress??e.walletAddress),this.address&&this.provider.setAddress(this.address),r}logout(){return this.provider.logout()}getType(){return n.crossWindow}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{ExtensionProvider as Pe}from"@multiversx/sdk-extension-provider/out/extensionProvider";var _=class extends g{constructor(e){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:t,onClose:s}=await this.initSignState();try{return await this.provider.signTransactions(e)??[]}catch(i){throw await s({shouldCancelAction:!1}),i}finally{t?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await m({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension})};this.provider=Pe.getInstance(),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}async initializeProvider(){let e=await this.provider.init();return this.address&&this.setAccount({address:this.address}),e}getAddress(){return this.provider.getAddress()}setAccount(e){return this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}logout(){return this.provider.logout()}getType(){return n.extension}};var W=class extends g{constructor({address:e,walletUrl:r}={}){super(e);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:t,onClose:s}=await this.initSignState();try{return await z({transactions:e,handleSign:this.provider.signTransactions.bind(this.provider),options:r})}catch(i){throw await s({shouldCancelAction:!0}),i}finally{t?.closeUI()}};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");return await m({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l[n.metamask]})};this.walletUrl=r??"",this.provider=le.getInstance(),this._login=this.provider.login.bind(this.provider)}init(){return this.initializeAddress(),this.initializeWalletUrl(),this.initializeProvider()}initializeWalletUrl(){if(this.walletUrl)return;let e=f(c());if(!e.iframeWalletAddress)throw new Error("Invalid walletUrl");this.walletUrl=e.iframeWalletAddress}async initializeProvider(){return await this.provider.init(),this.address&&this.setAccount({address:this.address}),this.provider.setWalletUrl(this.walletUrl),!0}logout(){return this.provider.logout()}getType(){return n.metamask}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.getAddress()}setAccount(e){this.provider.setAccount(e)}isInitialized(){return this.provider.isInitialized()}};import{OptionalOperation as Ce}from"@multiversx/sdk-wallet-connect-provider/out";var ve=[y.CANCEL_ACTION,y.SIGN_LOGIN_TOKEN],x=class extends g{constructor(e){super();this.provider=null;this.methods=[];this._approval=null;this.cancelActionAbortController=null;this.signTransactions=async(e,r)=>{if(!this.provider)throw new Error("Provider is not initialized.");let{manager:t,onClose:s}=await this.initSignState();this.cancelActionAbortController=new AbortController;let i=this.cancelActionAbortController.signal;try{let d=new Promise((p,P)=>{i.addEventListener("abort",()=>{P(new Error("cancelled by user"))})}),v=await Promise.race([this.provider.signTransactions(e),d]);return await ce(v)}catch(d){throw await s({shouldCancelAction:!0}),d}finally{t?.closeUI()}};this.cancelAction=async()=>{this.sendCustomRequest({method:y.CANCEL_ACTION,action:Ce.CANCEL_ACTION}),this.cancelActionAbortController?.abort()};this.signMessage=async e=>{if(!this.provider)throw new Error("Provider is not initialized.");this.cancelActionAbortController=new AbortController;let r=this.cancelActionAbortController.signal,t=new Promise((i,d)=>{r.addEventListener("abort",()=>{d(new Error("cancelled by user"))})});return await Promise.race([m({message:e,handleSignMessage:this.provider.signMessage.bind(this.provider),cancelAction:this.cancelAction,providerType:l.extension}),t])};this.config=e}async init(){try{if(this.provider?.isInitialized())return!0;await this.initializeProvider()}catch{return!1}return!0}logout(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.logout()}getType(){return n.walletConnect}getAddress(){if(!this.provider)throw new Error("Provider is not initialized.");return Promise.resolve(this.provider.getAddress())}setAccount(e){return this.provider?.setAccount(e)}isInitialized(){if(!this.provider)throw new Error("Provider is not initialized.");return this.provider.isInitialized()}async initializeProvider(){if(await this.initWalletConnectManager(),!this.config)throw new Error("Invalid WalletConnect setup");let{walletConnectProvider:e,dappMethods:r}=await this.createWalletConnectProvider(this.config);this.provider=e,this.methods=r;let{uri:t="",approval:s}=await this.provider.connect({methods:this.methods}),i=this.config.walletConnectDeepLink??R.walletConnectDeepLink;this._approval=s,I.getInstance().updateData({wcURI:t,walletConnectDeepLink:`${i}?wallet-connect=${encodeURIComponent(t)}`})}async initWalletConnectManager(){if(!!C())return;await I.getInstance().init(this.config?.anchor)}async createWalletConnectProvider(e){let r=C(),t=K(c());if(Q(c())&&ve.push(y.SIGN_NATIVE_AUTH_TOKEN),!e?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");let h={onClientLogin:()=>{},onClientLogout:()=>{re()},onClientEvent:p=>{}};try{let{walletConnectV2ProjectId:p,walletConnectV2Options:P={},walletConnectV2RelayAddress:D=""}=e,M=new G(h,t,D,p,P);return await M.init(),{walletConnectProvider:M,dappMethods:ve}}catch(p){throw console.error("Unable to connect",p),r&&await this.logout(),p}}async login(e){if(!this.provider)throw new Error("Provider is not initialized. Call createProvider first.");let r=async()=>{if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.init();let t=I.getInstance(),{uri:s="",approval:i}=await this.provider.connect({methods:this.methods}),d=this.config.walletConnectDeepLink??R.walletConnectDeepLink;t.updateData({wcURI:s,walletConnectDeepLink:`${d}?wallet-connect=${encodeURIComponent(s)}`});let v=await this.provider.login({approval:i,token:e?.token}),{address:h="",signature:p=""}=v??{};return t.handleClose({isLoginFinished:!!h}),{address:h,signature:p}}catch{return await r()}};if(!this._approval)throw new Error("Approval or login is not initialized");try{let t=await this.provider.login({approval:this._approval.bind(this),token:e?.token}),{address:s="",signature:i=""}=t??{};return I.getInstance().handleClose({isLoginFinished:!!s}),{address:s,signature:i}}catch(t){return console.error("User rejected connection proposal",t),await r()}}async sendCustomRequest({action:e,method:r}){if(!this.provider)throw new Error("Provider is not initialized.");try{await this.provider.sendCustomRequest?.({request:{method:r,params:{action:e}}})}catch(t){console.error("Unable to send event",t)}}};var E=class{static set customProviders(o){this._customProviders=o}static get customProviders(){return this._customProviders}static async create({type:o,anchor:e}){let r=null;switch(o){case n.extension:{r=new _;break}case n.crossWindow:{r=new A;break}case n.ledger:{r=new w({anchor:e}),await O.getInstance().init();break}case n.metamask:{r=new W;break}case n.passkey:{let i=f(c());r=new A({walletAddress:`${i.walletAddress}?${ie}=${n.passkey}`});break}case n.walletConnect:{let i=Z(c());if(!i?.walletConnectV2ProjectId)throw new Error("Invalid WalletConnect setup");r=new x({anchor:e,...i});break}case n.webview:{r=new ge;break}default:{let i=Y();for(let d of this._customProviders)d.type===o&&(r=await d.constructor({address:i,anchor:e}));break}}if(!r)throw new Error("Unable to create provider");await r.init();let t=new S(r);T(t);let s="provider"in r&&r.provider instanceof b;return pe(s?{skipLoginMethod:n.crossWindow}:null),t}static async destroy(){L().cancelLogin(),T(null),$(n.none)}};E._customProviders=[];var Te=(a,o)=>a.some(e=>e.type===o);async function m({message:a,handleSignMessage:o,cancelAction:e,providerType:r}){if(ee(c())?.isSigningUiEnabled===!1){U(!0);try{return await o(a)}finally{U(!1)}}return await new Promise(async(i,d)=>{let{manager:v,onClose:h}=await de({cancelAction:e}),p=Object.values(E.customProviders),P=p.reduce((u,B)=>(u[B.type]=B.name,u),{}),D={...l,...P},M=async()=>{await h({shouldCancelAction:!0}),d({message:"Signing canceled"})};v.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",M);let H=Te(p,r)?r:n.none;v.updateData({name:D[H],type:H});try{let u=await o(a);i(u)}catch(u){await h({shouldCancelAction:!0}),d(u)}finally{v.closeUI()}})}export{m as a,me as b,w as c,O as d,A as e,_ as f,W as g,x as h,E as i};
|
|
2
|
+
//# sourceMappingURL=chunk-6BA2NDJT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-YJQR63IW.mjs";import{q as M}from"./chunk-DY3P72D3.mjs";import{a as c}from"./chunk-FK6DWWZF.mjs";import{d as u,f as p,g as l}from"./chunk-DA76AK4I.mjs";import{a as d}from"./chunk-R3IH76PW.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){d.addEventListener("message",this.handleMessage)}stopListening(){d.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 r.finalizeHandshakeRequest:this.handshake({event:e});break;case r.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case r.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case r.signTransactionsRequest:this.signTransactions({event:e});break;case n.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}=c(this.store.getState()),o=g(),i=`${t}${a}`,y=new l({address:new p(t),data:new Uint8Array(Buffer.from(i))}),f=(await o.signMessage(y))?.signature??"";e.source?.postMessage({type:n.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&(await this.handleLoginCancelled(),e.source?.postMessage({type:n.cancelResponse,payload:null},{targetOrigin:e.origin}))}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:n.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=c(this.store.getState()),{message:t}=s;try{let o=new l({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(o))?.signature??"";e.source?.postMessage({type:n.signMessageResponse,payload:{data:{signature:Buffer.from(h).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(i=>u.newFromPlainObject(i)),o=await s.signTransactions(t);e.source?.postMessage({type:n.signTransactionsResponse,payload:{data:o.map(i=>i.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6BNZ4EJC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-QMSYQJAU.mjs";import{s}from"./chunk-DY3P72D3.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions?.[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6VJXXSIS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-422ZUBTP.mjs";import{a as p}from"./chunk-QHANP3XT.mjs";import{a as O}from"./chunk-RGDZMPES.mjs";import{a as M}from"./chunk-CMN37YZP.mjs";import{k as I,l as F,n as N}from"./chunk-E2GGD7D4.mjs";import{a as b,b as C,d as g,e as v,g as E,h as y,i as S}from"./chunk-ICJ5ZWS4.mjs";import{d as B}from"./chunk-QMSYQJAU.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-DY3P72D3.mjs";import{a as d}from"./chunk-EETA2QXV.mjs";import A from"lodash.isequal";import l from"lodash.isequal";var m=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||c(),this.notificationsFeedManager=t.notificationsFeedManager||h.getInstance()}async init(){await this.subscribeToEventBusNotifications()}showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null)}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async publishTransactionToasts(t){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",t),this.hideToasts();return}if(!this.eventBus){let s=await this.createToastListElement();if(!s)return;this.eventBus=await s.getEventBus()}this.eventBus?.publish("TRANSACTION_TOAST_DATA_UPDATE",t)}async publishCustomToasts(t){this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",t)}handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}destroy(){this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[],this.notificationsFeedManager?.destroy()}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await d.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.onCloseToast),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.onCloseToast)}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}};var u=class a{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||c(),this.lifetimeManager=t?.lifetimeManager??new O,this.uiCoordinator=t?.uiCoordinator??new m({onCloseToast:this.closeToast.bind(this)})}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.uiCoordinator?.init(),this.unsubscribeFromStore=this.store.subscribe(async({toasts:s,transactions:i},{toasts:e,transactions:o})=>{let n=!l(e.transactionToasts,s.transactionToasts),r=!l(o,i);(n||r)&&await this.updateTransactionToastsList(),!l(e.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return a.instance||(a.instance=new a),a.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),i=s[t];if(!i)return!1;let{status:e}=i,o=N(e),n=F(e),r=I(e),T=n||r||o;return T?(this.successfulToastLifetime&&this.lifetimeManager.start(t),T):(this.lifetimeManager.stop(t),T)}async createTransactionToast(t,s){let i=E({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),i}async createCustomToast(t){let s=S(t);return await this.updateCustomToastList(),s}async updateTransactionToastsList(){let t=this.store.getState(),{toasts:s}=t,{pendingTransactionToasts:i,completedTransactionToasts:e}=await p({store:t});this.transactionToasts=[...i,...e];for(let o of s.transactionToasts)this.handleCompletedTransaction(o.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let e="message"in s?{...s}:{...s,instantiateToastElement:b[s.toastId]};this.customToasts.push(e),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(y(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(i=>i.toastId===t)){this.lifetimeManager.stop(t);let i=C[t];return i?.(),g(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),v()}};var D="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",h=class a extends M{constructor(s){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=s||c(),this.data={...this.initialData}}static getInstance(){return a.instance||(a.instance=new a),a.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){u.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let i=this.store.subscribe(async({toasts:e,transactions:o},{toasts:n,transactions:r})=>{(!A(n.transactionToasts,e.transactionToasts)||!A(r,o))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(D,[i]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=u.getInstance();this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s}=this.store.getState(),{pendingTransactionToasts:i}=await p();this.data.pendingTransactions=i;let e=Object.keys(s).reduce((o,n)=>(["sent","pending"].includes(String(s[n].status))||(o[n]=s[n]),o),{});this.data.historicTransactions=await w.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){B(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};export{h as a,m as b,u as c};
|
|
2
|
+
//# sourceMappingURL=chunk-AAIKQGPN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-OVZEW7XD.mjs";import{h as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-OVZEW7XD.mjs";import{h as o}from"./chunk-IHB7ALDL.mjs";var D=({data:r,highlight:a,identifier:i})=>{let e={};return Object.values(o).forEach(t=>{let c=d({data:r,identifier:i,decodeMethod:t,highlight:a});e[t]=c}),e};export{D as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AC3N236P.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-VLJXRHVE.mjs";import{a as s}from"./chunk-LJX4MW7B.mjs";import{a as e,b as o}from"./chunk-R3IH76PW.mjs";import{WebviewProvider as d}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var a=class extends n{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(r,i)=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(t){throw this.cancelAction(),t}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=d.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return s.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(o);return this.address&&this.setAccount({address:this.address}),r}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-AHORDOF4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-DY3P72D3.mjs";import{y as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";var c=async(s,a={apiAddress:""})=>{let{data:o}=await i.get(`${a.apiAddress||t(r())}/${e}`,{params:{hashes:s.join(","),withScResults:!0}});return o};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AJBGY6A5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-U3UMCTU6.mjs";import{a as T}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-U3UMCTU6.mjs";import{a as T}from"./chunk-FRIOQMD3.mjs";import{a as p}from"./chunk-TWOVGGG2.mjs";import{a as i}from"./chunk-M3F2J3PW.mjs";import{a as k}from"./chunk-HYPARWQN.mjs";import{a as l}from"./chunk-YJCTRUJT.mjs";import{c as m}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-OQURAWR4.mjs";var g=class{static async processTransactions({address:v,egldLabel:L,explorerAddress:a,transactions:f}){let h=f.map(e=>k({address:v,explorerAddress:a,transaction:e}));return await Promise.all(h.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),c=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:D,receiverLockedAccount:x}=await T({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=p({transaction:e}),y=r?.token.type==="MetaESDT"?void 0:r?.badgeText,d=u.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??m,digits:2}),S={badge:y??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?L:"",link:l({explorerAddress:a,to: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:d.valueDecimal,valueInteger:d.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:!!x,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverShardLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:c??"",description:`${c??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!D,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:S}}))}};export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CDHVNNSM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-CMN37YZP.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-CG6BZB2U.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-JBPJL3B7.mjs";import{a as t}from"./chunk-WZSA2EE5.mjs";var i=class extends n{constructor({uiDataUpdateEvent:e,uiTag:s}){super({uiDataUpdateEvent:e,uiTag:s});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}destroy(){if(this.setIsSidePanelOpen(!1),this.uiElement?.closeWithAnimation){this.uiElement?.closeWithAnimation?.().finally(()=>{super.destroy()});return}super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CMN37YZP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-QGUQTBVR.mjs";import{a as h}from"./chunk-WXTELBRA.mjs";import{a as x}from"./chunk-BZLQ6QLQ.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{f as g}from"./chunk-PJWJZHIS.mjs";import{a as f,f as b}from"./chunk-DA76AK4I.mjs";import y from"bignumber.js";var M=async({manager:e,provider:u})=>{let L=new f;if(!e||!u)throw new Error("Provider is not initialized.");let{network:l}=h(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await I({baseURL:l.apiAddress}),A=o=>o.index>=s&&o.index<s+e.addressesPerPage,O=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),p=r.filter(A),P=!!O[s];if(e.updateAccountScreen({isLoading:!P}),p.length>0){e.updateAccountScreen({accounts:p});return}try{let o=Math.floor(s/e.addressesPerPage),n=await u.getAccounts(o,e.addressesPerPage),S=n.map((t,c)=>{let i=L.getShardOfAddress(b.newFromBech32(t));return{address:t,balance:"...",index:c+s,shard:i}}),j=[...r,...S],B=n.map(t=>x({address:t,baseURL:l.apiAddress})),U=await Promise.all(B),d=j.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});U.forEach(t=>{if(!t||!a||!a.price)return;let c=new y(t.balance),i=c.dividedBy(y(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let N=w({amount:g({input:t.balance}),usd:a?.price});d[t.address].balance=i,d[t.address].usdValue=N});let m=Object.values(d).sort((t,c)=>t.index-c.index),E=m.filter(A);e.updateAllAccounts(m),e.updateAccountScreen({accounts:E,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CNE5LY2X.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-L7AC35OO.mjs";import{a as e}from"./chunk-N56SMVGU.mjs";import{k as c}from"./chunk-PKDR5ERF.mjs";import{a as n}from"./chunk-2JKCBTYK.mjs";var a=({address:r,baseURL:o})=>{let t=i(o),s=`${t}/${n}/${r}?withGuardianInfo=true`;return e.get(s,{baseURL:t,timeout:c})},g=async({address:r,baseURL:o})=>{if(!r)return null;try{let{data:t}=await a({address:r,baseURL:o});return t}catch{console.error("error fetching configuration for ",r)}return null};export{a,g as b};
|
|
2
|
+
//# sourceMappingURL=chunk-COA54JTE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-R3IH76PW.mjs";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"||!t))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CYKK4HPZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-3C4QWHTF.mjs";import{c as n}from"./chunk-RSNSPKZ3.mjs";import{a}from"./chunk-CKY2HBH6.mjs";import{a as u}from"./chunk-W4F3YI3F.mjs";import{a as s}from"./chunk-R3IH76PW.mjs";var g=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&g(r,s.localStorage);try{return u(),n.forEach(c=>c()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DDB4KRVV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as p,f as l}from"./chunk-FK6DWWZF.mjs";import{f as s}from"./chunk-VNLGNNIL.mjs";import{b as x}from"./chunk-A7FTKX2A.mjs";import{a as m,b as c}from"./chunk-RIPIZH54.mjs";import{a as T}from"./chunk-2DNGCNYM.mjs";import{a as f,b as g}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-ONT6BGYB.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as u,b as S}from"./chunk-VKEESSBI.mjs";import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as p,f as l}from"./chunk-FK6DWWZF.mjs";import{f as s}from"./chunk-VNLGNNIL.mjs";import{b as x}from"./chunk-A7FTKX2A.mjs";import{a as m,b as c}from"./chunk-RIPIZH54.mjs";import{a as T}from"./chunk-2DNGCNYM.mjs";import{a as f,b as g}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-ONT6BGYB.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as u,b as S}from"./chunk-VKEESSBI.mjs";import{a as I}from"./chunk-6ZU2IBDO.mjs";import{a as k}from"./chunk-KRWR77QE.mjs";import{a as v}from"./chunk-NB7A4C7L.mjs";import{f as a}from"./chunk-DA76AK4I.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=m,e.loginInfo=f,e.transactions=d,e.toasts=u};function H(){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),r=s(e),{address:i,publicKey:D}=p(e);if(i&&D!==new a(i).toHex()&&A(e),!t)return;if(r==null){w(H());return}let P=Date.now();r-P<0&&(w(null),o().setState(A,!1,{type:"logoutMiddleware",payload:{value:null}}))};var M=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...r)=>({network:T(...r),account:c(...r),loginInfo:g(...r),config:L(...r),transactions:y(...r),toasts:S(...r),cache:x(...r),ui:v(...r)})),{name:"sdk-dapp-store",storage:O(e)}),{name:"sdk-dapp"}));return t.subscribe(M),t},n,z=e=>{n=e},o=()=>(n||z(W(()=>new k)),n),Se=(e=I)=>{let t=W(e);return z(t),t},de=()=>o().getState();var Le=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,{type:"setProviderType",payload:{value:e}}),Te=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,{type:"setTokenLogin",payload:{value:e}}),ve=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,{type:"setLoginToken",payload:{value:e}}),Ie=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,{type:"setTokenLoginSignature",payload:{value:e}}),ke=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,{type:"setWalletConnectLogin",payload:{value:e}}),Ae=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,{type:"setLedgerLogin",payload:{value:e}}),we=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,{type:"setIsWalletConnectV2Initialized",payload:{value:e}}),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,{type:"removeLoginExpiresAt",payload:{value:null}}),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,{type:"addLoginExpiresAt",payload:{value:e}});export{Le as a,Te as b,ve as c,Ie as d,ke as e,Ae as f,we as g,E as h,b as i,A as j,H as k,w as l,C as m,M as n,W as o,z as p,o as q,Se as r,de as s};
|
|
2
|
+
//# sourceMappingURL=chunk-DY3P72D3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-T6I7XQHS.mjs";import o from"lodash.isempty";var e=async({transactionsSessions:t})=>{if(o(t))return[];let i=r(t);return s({transactions:i})};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DY53O4ED.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-R3IH76PW.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EETA2QXV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-JBPJL3B7.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),this.resetData())}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},this.allAccounts=[],super.resetData()}async setupEventListeners(){this.eventBus&&this.eventBus.subscribe("CLOSE",this.handleClose.bind(this))}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EH3QXINF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-UGY4JSP3.mjs";import{a as c}from"./chunk-O5PAMBB3.mjs";var l=async({receiver:n,sender:s,tokenId:i})=>{let t=null,r=null;if(!i)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await u({tokenId:i}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(s===e&&(t=e),n===e&&(r=e)),c(o[e])&&(s===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{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FRIOQMD3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-IWP36NOU.mjs";import{a as w}from"./chunk-LGGG3HW7.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";import{q as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-IWP36NOU.mjs";import{a as w}from"./chunk-LGGG3HW7.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";import{q as u}from"./chunk-DY3P72D3.mjs";import{a as l}from"./chunk-SQVKVA7X.mjs";var e=o=>u().setState(({network:t})=>{t.network={...t.network,...o}},!1,{type:"initializeNetworkConfig",payload:{value:o}});var y=async({customNetworkConfig:o={},environment:t})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=t&&t in i,p=n?i[t]:{},s={...l,...p,...o},r={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await c(a),f=r.roundDuration?null:await w(a);if(f!=null&&(r.roundDuration=f.erd_round_duration),m!=null){let k={...r,...m,...o};return e(k),k}}return e(r),r};export{y as a,e as b};
|
|
2
|
+
//# sourceMappingURL=chunk-FRREO5DY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-OSGTEMH4.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-H3MXIVR4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-R3IH76PW.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-H3TSHWUD.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as z}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as z}from"./chunk-I5NDCPU2.mjs";import{a as H}from"./chunk-V5ZA5MQV.mjs";import{a as h}from"./chunk-Q6SV22DH.mjs";import{a as j}from"./chunk-QGUQTBVR.mjs";import{a as O}from"./chunk-S4GXN3R7.mjs";import{a as K}from"./chunk-OMBZCVQZ.mjs";import{a as W}from"./chunk-MNN7JOCV.mjs";import{a as X}from"./chunk-BKQQK7WP.mjs";import{a as C}from"./chunk-WZSA2EE5.mjs";import{d as R}from"./chunk-V5ZSFCKJ.mjs";import{a as B}from"./chunk-2WUOBFRV.mjs";import{e as k}from"./chunk-QNYO7NI5.mjs";import{b as _}from"./chunk-7VHTZYM2.mjs";import{s as E}from"./chunk-DY3P72D3.mjs";import{a as F,c as U,f as x}from"./chunk-PJWJZHIS.mjs";import{d as y}from"./chunk-DA76AK4I.mjs";async function On({transactions:$=[],handleSign:G,guardTransactions:L=W,options:q}){let{address:N,shard:D,username:M}=B(),u=_(E()),J=R(E()),v=H(),{allTransactions:o,parsedTransactionsByDataField:A}=X($),l=[];if(J?.isSigningUiEnabled===!1){C(!0);try{let d=[];for(let c of o){let p=await G([c.transaction]);p&&p.length>0&&d.push(p[0])}return await L(d)}finally{C(!1)}}let n=z.getInstance();if(await n.openUI(),!n)throw new Error("Unable to establish connection with sign screens");let Q=async()=>{await h(),n.closeUI()};return n.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",Q),new Promise(async(d,f)=>{let c=[],p=await j({baseURL:u.apiAddress});n.notifyDataUpdate(),n.initializeGasPriceMap(o.map(a=>a.transaction));let S=p?.price,t=0,P=async()=>{let r=o[t]?.transaction,m=Number(r.nonce);try{n.updateIsLoading(!0);let{commonData:e,tokenTransaction:s,fungibleTransaction:i}=await O({allTransactions:o,currentScreenIndex:t,egldLabel:v,network:u,gasPriceData:n.getGasPriceOptionMap[m],price:S,address:N,username:M,shard:D,signedIndexes:l,parsedTransactionsByDataField:A});s&&n.updateTokenTransaction(s),i&&n.updateNonFungibleTransaction(i.type,i),n.updateCommonData(e)}catch(e){throw console.error(`Error fetching common data for transaction at index ${t}:`,e),e}finally{n.updateIsLoading(!1)}},V=()=>{t>0&&(t--,P())},Y=(a=1e9)=>{let m=o[t].transaction,e=Number(m.nonce);n.updateGasPriceMap({nonce:e,gasPriceOption:a});let s=m.toPlainObject(),i=y.newFromPlainObject({...s,gasPrice:a}),g=K({transaction:i,price:S}),I=x({input:a.toString(),decimals:U,addCommas:!0,digits:F});n.updateCommonData({feeLimit:g.feeLimitFormatted,feeInFiatLimit:g.feeInFiatLimit,gasPrice:I,gasPriceOption:a})},Z=async()=>{f(new Error("Transaction signing cancelled by user")),await h(),n.closeUI()},w=()=>{t<n.transactionsCount-1&&(t++,P())},nn=async()=>{let r=o[t].transaction,m=Number(r.nonce),{commonData:e}=await O({allTransactions:o,currentScreenIndex:t,egldLabel:v,network:u,gasPriceData:n.getGasPriceOptionMap[m],price:S,address:N,username:M,shard:D,signedIndexes:l,parsedTransactionsByDataField:A});if(!e.needsSigning)return l.push(t),w();let s=r.toPlainObject(),i=s.nonce,{gasPriceOption:g}=n.getGasPriceOptionMap[i],I=y.newFromPlainObject({...s,gasPrice:g});try{let T=await G([I]);T&&(l.push(t),c.push(T[0]));let on=t===o.length-1,en=o.filter(b=>b.needsSigning),rn=c.length===en.length;if(on&&rn){let b=await q?.callback?.(c)||c,sn=await L(b);return n.closeUI(),d(sn)}w()}catch(T){n.closeUI(),f(T)}},tn=new Map([["NEXT_SIGN_TRANSACTIONS",w],["CONFIRM_SIGN_TRANSACTIONS",nn],["CLOSE_SIGN_TRANSACTIONS",Z],["BACK_SIGN_TRANSACTIONS",V],["SET_GAS_PRICE_OPTION_SIGN_TRANSACTIONS",Y]]);function an(){for(let[a,r]of tn)n.subscribeToEventBus(a,r)}n.clearEventHandlers(["NEXT_SIGN_TRANSACTIONS","CONFIRM_SIGN_TRANSACTIONS","CLOSE_SIGN_TRANSACTIONS","BACK_SIGN_TRANSACTIONS","SET_GAS_PRICE_OPTION_SIGN_TRANSACTIONS"]),an(),await P()})}export{On as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HKZTCRSV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-CMN37YZP.mjs";import{e}from"./chunk-QNYO7NI5.mjs";var o=class i extends r{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._gasPriceOptionMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,gasPriceOption:0,gasPriceOptions:[],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){a.filter(t=>t!=null).forEach(t=>{let s=t?Number(t.gasPrice):1e9;this.updateGasPriceMap({nonce:Number(t.nonce),gasPriceOption:s,initialGasPrice:s})});let n=Number(a[0]?.gasPrice)||1e9;this.updateCommonData({gasPriceOption:n})}updateGasPriceMap({nonce:a,gasPriceOption:n,initialGasPrice:t}){this._gasPriceOptionMap[a]={...this._gasPriceOptionMap[a],gasPriceOption:n},t&&(this._gasPriceOptionMap[a].initialGasPrice=t)}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,n){switch(a){case"NonFungibleESDT":this.data.nftTransaction=n,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=n,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get getGasPriceOptionMap(){return this._gasPriceOptionMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-I5NDCPU2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-NJN53MJV.mjs";import{a as l}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-NJN53MJV.mjs";import{a as l}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-DY3P72D3.mjs";var c={},u={},p=(t,o)=>{n().setState(({toasts:s})=>{let a=s.customToasts.length>0?Math.max(...s.customToasts.map(m=>parseInt(m.toastId.split("-").pop()??"0"))):0,e=o??`custom-toast-${a+1}`,T=s.customToasts.findIndex(m=>m.toastId===e),i={...t,toastId:e};if(T!==-1){s.customToasts[T]=i;return}s.customToasts.push({...i,toastId:e})},!1,{type:"addCustomToast",payload:{value:{customToast:t,currentToastId:o}}})},C=t=>{n().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(s=>s.toastId!==t)},!1,{type:"removeCustomToast",payload:{value:t}})},I=()=>{n().setState(({toasts:t})=>{t.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},f=()=>{n().setState(({toasts:t})=>{t.transactionToasts=[]},!1,{type:"removeAllTransactionToasts",payload:{value:null}})},g=({toastId:t,totalDuration:o})=>{let s="";return n().setState(({toasts:a})=>{let e=a.transactionToasts.length>0?Math.max(...a.transactionToasts.map(T=>parseInt(T.toastId.split("-").pop()??"0"))):0;s=t??`transaction-toast-${e+1}`,a.transactionToasts.push({startTime:l(),endTime:r(o),toastId:s})},!1,{type:"addTransactionToast",payload:{value:{toastId:t,totalDuration:o}}}),s},v=t=>{n().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(s=>s.toastId!==t)},!1,{type:"removeTransactionToast",payload:{value:t}}),delete u[t],delete c[t]},h=t=>{let{toasts:o}=n().getState(),s=o.customToasts.length>0?Math.max(...o.customToasts.map(e=>parseInt(e.toastId.split("-").pop()??"0"))):0,a=t.toastId||`custom-toast-${s+1}`;return t.onClose&&(u[a]=t.onClose),t.instantiateToastElement?(c[a]=t.instantiateToastElement,n().setState(({toasts:e})=>{let T=e.customToasts.findIndex(m=>m.toastId===a),i={...t,instantiateToastElement:null,toastId:a};T!==-1?e.customToasts[T]=i:e.customToasts.push(i)},!1,{type:"createCustomToast",payload:{value:t}}),a):(p(t,a),a)};export{c as a,u as b,p as c,C as d,I as e,f,g,v as h,h as i};
|
|
2
|
+
//# sourceMappingURL=chunk-ICJ5ZWS4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var g=(e=>(e.transfer="transfer",e.unBond="unBond",e.unStake="unStake",e.delegate="delegate",e.stake="stake",e.unDelegate="unDelegate",e.stakeClaimRewards="claimRewards",e.reDelegateRewards="reDelegateRewards",e.withdraw="withdraw",e.claimLockedAssets="claimLockedAssets",e.swapTokensFixedInput="swapTokensFixedInput",e.swapTokensFixedOutput="swapTokensFixedOutput",e.swap="swap",e.addLiquidity="addLiquidity",e.addLiquidityProxy="addLiquidityProxy",e.removeLiquidity="removeLiquidity",e.removeLiquidityProxy="removeLiquidityProxy",e.enterFarm="enterFarm",e.enterFarmProxy="enterFarmProxy",e.enterFarmAndLockRewards="enterFarmAndLockRewards",e.enterFarmAndLockRewardsProxy="enterFarmAndLockRewardsProxy",e.exitFarm="exitFarm",e.exitFarmProxy="exitFarmProxy",e.claimRewards="claimRewards",e.claimRewardsProxy="claimRewardsProxy",e.compoundRewards="compoundRewards",e.compoundRewardsProxy="compoundRewardsProxy",e.wrapEgld="wrapEgld",e.unwrapEgld="unwrapEgld",e.unlockAssets="unlockAssets",e.mergeLockedAssetTokens="mergeLockedAssetTokens",e.stakeFarm="stakeFarm",e.stakeFarmProxy="stakeFarmProxy",e.stakeFarmTokens="stakeFarmTokens",e.stakeFarmTokensProxy="stakeFarmTokensProxy",e.unstakeFarm="unstakeFarm",e.unstakeFarmProxy="unstakeFarmProxy",e.unstakeFarmTokens="unstakeFarmTokens",e.unstakeFarmTokensProxy="unstakeFarmTokensProxy",e.claimDualYield="claimDualYield",e.claimDualYieldProxy="claimDualYieldProxy",e.unbondFarm="unbondFarm",e.ping="ping",e.lockTokens="lockTokens",e.migrateOldTokens="migrateOldTokens",e))(g||{}),d=(r=>(r.esdtNft="esdtNft",r.mex="mex",r.stake="stake",r.scCall="scCall",r))(d||{}),n=(s=>(s.none="none",s.transfer="transfer",s.burn="burn",s.addQuantity="addQuantity",s.create="create",s.multiTransfer="multiTransfer",s.localMint="localMint",s.localBurn="localBurn",s.wipe="wipe",s.freeze="freeze",s.writeLog="writeLog",s.signalError="signalError",s.ESDTLocalMint="ESDTLocalMint",s.ESDTLocalBurn="ESDTLocalBurn",s))(n||{}),l=(t=>(t.nft="nft",t.esdt="esdt",t.egld="egld",t))(l||{}),p=(t=>(t.none="none",t.error="error",t.log="log",t))(p||{}),o=(a=>(a.Transaction="Transaction",a.SmartContractResult="SmartContractResult",a))(o||{}),m=(r=>(r.SELF="Self",r.INTERNAL="Internal",r.IN="In",r.OUT="Out",r))(m||{}),y=(r=>(r.raw="raw",r.text="text",r.decimal="decimal",r.smart="smart",r))(y||{}),k=(i=>(i.pending="pending",i.success="success",i.invalid="invalid",i.dropped="dropped",i.fail="fail",i))(k||{});export{g as a,d as b,n as c,l as d,p as e,o as f,m as g,y as h,k as i};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-IHB7ALDL.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/types/serverTransactions.types.ts"],
|
|
4
|
-
"sourcesContent": ["import { AssetType, ScamInfoType } from './account.types';\nimport {\n IconNamesEnum,\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from './enums.types';\nimport { EsdtEnumType, NftEnumType } from './tokens.types';\nimport { SignedTransactionType } from './transactions.types';\n\nexport interface ScResultType {\n callType: string;\n gasLimit: number;\n gasPrice: number;\n nonce: number;\n prevTxHash: string;\n hash: string;\n originalTxHash: string;\n receiver: string;\n sender: string;\n timestamp: number;\n value: string;\n data?: string;\n returnMessage?: string;\n}\n\nexport interface TransactionTokensType {\n esdts: string[];\n nfts: string[];\n}\n\nexport enum TransactionActionsEnum {\n // esdtNft category\n transfer = 'transfer',\n // legacy delegation\n unBond = 'unBond',\n unStake = 'unStake',\n // stake category\n delegate = 'delegate',\n stake = 'stake',\n unDelegate = 'unDelegate',\n stakeClaimRewards = 'claimRewards',\n reDelegateRewards = 'reDelegateRewards',\n withdraw = 'withdraw',\n // mex category\n claimLockedAssets = 'claimLockedAssets',\n swapTokensFixedInput = 'swapTokensFixedInput',\n swapTokensFixedOutput = 'swapTokensFixedOutput',\n swap = 'swap',\n addLiquidity = 'addLiquidity',\n addLiquidityProxy = 'addLiquidityProxy',\n removeLiquidity = 'removeLiquidity',\n removeLiquidityProxy = 'removeLiquidityProxy',\n enterFarm = 'enterFarm',\n enterFarmProxy = 'enterFarmProxy',\n enterFarmAndLockRewards = 'enterFarmAndLockRewards',\n enterFarmAndLockRewardsProxy = 'enterFarmAndLockRewardsProxy',\n exitFarm = 'exitFarm',\n exitFarmProxy = 'exitFarmProxy',\n claimRewards = 'claimRewards',\n claimRewardsProxy = 'claimRewardsProxy',\n compoundRewards = 'compoundRewards',\n compoundRewardsProxy = 'compoundRewardsProxy',\n wrapEgld = 'wrapEgld',\n unwrapEgld = 'unwrapEgld',\n unlockAssets = 'unlockAssets',\n mergeLockedAssetTokens = 'mergeLockedAssetTokens',\n stakeFarm = 'stakeFarm',\n stakeFarmProxy = 'stakeFarmProxy',\n stakeFarmTokens = 'stakeFarmTokens',\n stakeFarmTokensProxy = 'stakeFarmTokensProxy',\n unstakeFarm = 'unstakeFarm',\n unstakeFarmProxy = 'unstakeFarmProxy',\n unstakeFarmTokens = 'unstakeFarmTokens',\n unstakeFarmTokensProxy = 'unstakeFarmTokensProxy',\n claimDualYield = 'claimDualYield',\n claimDualYieldProxy = 'claimDualYieldProxy',\n unbondFarm = 'unbondFarm',\n ping = 'ping',\n lockTokens = 'lockTokens',\n migrateOldTokens = 'migrateOldTokens'\n}\n\nexport enum TransactionActionCategoryEnum {\n esdtNft = 'esdtNft',\n mex = 'mex',\n stake = 'stake',\n scCall = 'scCall'\n}\n\nexport interface TokenArgumentType {\n type: NftEnumType | EsdtEnumType;\n name: string;\n ticker: string;\n collection?: string;\n identifier?: string;\n token?: string;\n decimals: number;\n value: string;\n providerName?: string;\n providerAvatar?: string;\n svgUrl?: string;\n valueUSD?: string;\n}\n\nexport interface TransactionActionType {\n category: string;\n name: TransactionActionsEnum;\n description?: string;\n arguments?: { [key: string]: any };\n}\n\nexport interface UnwrapperType {\n token?: TokenArgumentType[];\n tokenNoValue?: TokenArgumentType[];\n tokenNoLink?: TokenArgumentType[];\n address?: string;\n egldValue?: string;\n value?: string;\n providerName?: string;\n providerAvatar?: string;\n}\n\nexport enum TransactionOperationActionTypeEnum {\n none = 'none',\n transfer = 'transfer',\n burn = 'burn',\n addQuantity = 'addQuantity',\n create = 'create',\n multiTransfer = 'multiTransfer',\n localMint = 'localMint',\n localBurn = 'localBurn',\n wipe = 'wipe',\n freeze = 'freeze',\n writeLog = 'writeLog',\n signalError = 'signalError',\n\n // to be deprecated ?\n ESDTLocalMint = 'ESDTLocalMint',\n ESDTLocalBurn = 'ESDTLocalBurn'\n}\n\nexport enum VisibleTransactionOperationType {\n nft = 'nft',\n esdt = 'esdt',\n egld = 'egld'\n}\nexport enum HiddenTransactionOperationType {\n none = 'none',\n error = 'error',\n log = 'log'\n}\n\nexport interface OperationType {\n id?: string;\n action: TransactionOperationActionTypeEnum;\n type: VisibleTransactionOperationType | HiddenTransactionOperationType;\n esdtType?: NftEnumType | EsdtEnumType;\n collection?: string;\n name?: string;\n identifier?: string;\n sender: string;\n ticker?: string;\n receiver: string;\n value: string;\n decimals?: number;\n data?: string;\n message?: string;\n svgUrl?: string;\n senderAssets?: AssetType;\n receiverAssets?: AssetType;\n valueUSD?: string;\n}\n\nexport interface LogType {\n hash: string;\n callType: string;\n gasLimit: number;\n gasPrice: number;\n nonce: number;\n prevTxHash: string;\n receiver?: string;\n sender: string;\n value: string;\n data?: string;\n originalTxHash: string;\n returnMessage?: string;\n logs?: any;\n}\n\nexport interface EventType {\n address: string;\n identifier: string;\n topics: string[];\n order: number;\n data?: string;\n additionalData?: string[];\n}\n\nexport interface ResultLogType {\n id: string;\n address: string;\n events: EventType[];\n}\n\nexport interface ResultType {\n hash: string;\n callType: string;\n gasLimit: number;\n gasPrice: number;\n nonce: number;\n prevTxHash: string;\n receiver?: string;\n sender: string;\n value: string;\n data?: string;\n originalTxHash: string;\n returnMessage?: string;\n logs?: ResultLogType;\n senderAssets?: AssetType;\n receiverAssets?: AssetType;\n miniBlockHash?: string;\n function?: string;\n timestamp?: number;\n}\n\nexport interface ReceiptType {\n value: string;\n sender: string;\n data: string;\n}\n\nexport interface ServerTransactionType {\n fee?: string;\n data: string;\n gasLimit: number;\n gasPrice: number;\n gasUsed: number;\n txHash: string;\n miniBlockHash: string;\n nonce: number;\n receiver: string;\n receiverShard: number;\n round: number;\n sender: string;\n senderShard: number;\n signature: string;\n status:\n | `${TransactionServerStatusesEnum}`\n | `${TransactionBatchStatusesEnum}`;\n inTransit?: boolean;\n timestamp: number;\n value: string;\n price: number;\n results?: ResultType[];\n operations?: OperationType[];\n action?: TransactionActionType;\n logs?: {\n id: string;\n address: string;\n events: EventType[];\n };\n scamInfo?: ScamInfoType;\n pendingResults?: boolean;\n receipt?: ReceiptType;\n senderAssets?: AssetType;\n receiverAssets?: AssetType;\n type?: TransferTypeEnum;\n originalTxHash?: string;\n isNew?: boolean; // UI flag\n tokenValue?: string;\n tokenIdentifier?: string;\n function?: string;\n}\n\nexport enum TransferTypeEnum {\n Transaction = 'Transaction',\n SmartContractResult = 'SmartContractResult'\n}\n\n//#endregion\n\n//#region interpreted transactions\n\nexport enum TransactionDirectionEnum {\n SELF = 'Self',\n INTERNAL = 'Internal',\n IN = 'In',\n OUT = 'Out'\n}\n\nexport type TransactionAgeType = {\n timeAgo: string;\n tooltip: string;\n};\n\nexport type TransactionMethodType = {\n name: string;\n actionDescription?: string;\n};\n\nexport type TransactionIconInfoType = {\n icon?: `${IconNamesEnum}`;\n tooltip: string;\n};\n\nexport interface InterpretedTransactionType extends ServerTransactionType {\n transactionDetails: {\n age: TransactionAgeType;\n direction?: TransactionDirectionEnum;\n iconInfo: TransactionIconInfoType;\n method: TransactionMethodType;\n transactionTokens: TokenArgumentType[];\n isContract?: boolean;\n };\n links: {\n senderLink?: string;\n receiverLink?: string;\n senderShardLink?: string;\n receiverShardLink?: string;\n transactionLink?: string;\n };\n}\n\nexport
|
|
5
|
-
"mappings": "AA8BO,IAAKA,OAEVA,EAAA,SAAW,WAEXA,EAAA,OAAS,SACTA,EAAA,QAAU,UAEVA,EAAA,SAAW,WACXA,EAAA,MAAQ,QACRA,EAAA,WAAa,aACbA,EAAA,kBAAoB,eACpBA,EAAA,kBAAoB,oBACpBA,EAAA,SAAW,WAEXA,EAAA,kBAAoB,oBACpBA,EAAA,qBAAuB,uBACvBA,EAAA,sBAAwB,wBACxBA,EAAA,KAAO,OACPA,EAAA,aAAe,eACfA,EAAA,kBAAoB,oBACpBA,EAAA,gBAAkB,kBAClBA,EAAA,qBAAuB,uBACvBA,EAAA,UAAY,YACZA,EAAA,eAAiB,iBACjBA,EAAA,wBAA0B,0BAC1BA,EAAA,6BAA+B,+BAC/BA,EAAA,SAAW,WACXA,EAAA,cAAgB,gBAChBA,EAAA,aAAe,eACfA,EAAA,kBAAoB,oBACpBA,EAAA,gBAAkB,kBAClBA,EAAA,qBAAuB,uBACvBA,EAAA,SAAW,WACXA,EAAA,WAAa,aACbA,EAAA,aAAe,eACfA,EAAA,uBAAyB,yBACzBA,EAAA,UAAY,YACZA,EAAA,eAAiB,iBACjBA,EAAA,gBAAkB,kBAClBA,EAAA,qBAAuB,uBACvBA,EAAA,YAAc,cACdA,EAAA,iBAAmB,mBACnBA,EAAA,kBAAoB,oBACpBA,EAAA,uBAAyB,yBACzBA,EAAA,eAAiB,iBACjBA,EAAA,oBAAsB,sBACtBA,EAAA,WAAa,aACbA,EAAA,KAAO,OACPA,EAAA,WAAa,aACbA,EAAA,iBAAmB,mBAjDTA,OAAA,IAoDAC,OACVA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,MAAQ,QACRA,EAAA,OAAS,SAJCA,OAAA,IAwCAC,OACVA,EAAA,KAAO,OACPA,EAAA,SAAW,WACXA,EAAA,KAAO,OACPA,EAAA,YAAc,cACdA,EAAA,OAAS,SACTA,EAAA,cAAgB,gBAChBA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,KAAO,OACPA,EAAA,OAAS,SACTA,EAAA,SAAW,WACXA,EAAA,YAAc,cAGdA,EAAA,cAAgB,gBAChBA,EAAA,cAAgB,gBAhBNA,OAAA,IAmBAC,OACVA,EAAA,IAAM,MACNA,EAAA,KAAO,OACPA,EAAA,KAAO,OAHGA,OAAA,IAKAC,OACVA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,IAAM,MAHIA,OAAA,IAgIAC,OACVA,EAAA,YAAc,cACdA,EAAA,oBAAsB,sBAFZA,OAAA,IASAC,OACVA,EAAA,KAAO,OACPA,EAAA,SAAW,WACXA,EAAA,GAAK,KACLA,EAAA,IAAM,MAJIA,OAAA,
|
|
4
|
+
"sourcesContent": ["import { AssetType, ScamInfoType } from './account.types';\nimport {\n IconNamesEnum,\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from './enums.types';\nimport { EsdtEnumType, NftEnumType } from './tokens.types';\nimport { SignedTransactionType } from './transactions.types';\n\nexport interface ScResultType {\n callType: string;\n gasLimit: number;\n gasPrice: number;\n nonce: number;\n prevTxHash: string;\n hash: string;\n originalTxHash: string;\n receiver: string;\n sender: string;\n timestamp: number;\n value: string;\n data?: string;\n returnMessage?: string;\n}\n\nexport interface TransactionTokensType {\n esdts: string[];\n nfts: string[];\n}\n\nexport enum TransactionActionsEnum {\n // esdtNft category\n transfer = 'transfer',\n // legacy delegation\n unBond = 'unBond',\n unStake = 'unStake',\n // stake category\n delegate = 'delegate',\n stake = 'stake',\n unDelegate = 'unDelegate',\n stakeClaimRewards = 'claimRewards',\n reDelegateRewards = 'reDelegateRewards',\n withdraw = 'withdraw',\n // mex category\n claimLockedAssets = 'claimLockedAssets',\n swapTokensFixedInput = 'swapTokensFixedInput',\n swapTokensFixedOutput = 'swapTokensFixedOutput',\n swap = 'swap',\n addLiquidity = 'addLiquidity',\n addLiquidityProxy = 'addLiquidityProxy',\n removeLiquidity = 'removeLiquidity',\n removeLiquidityProxy = 'removeLiquidityProxy',\n enterFarm = 'enterFarm',\n enterFarmProxy = 'enterFarmProxy',\n enterFarmAndLockRewards = 'enterFarmAndLockRewards',\n enterFarmAndLockRewardsProxy = 'enterFarmAndLockRewardsProxy',\n exitFarm = 'exitFarm',\n exitFarmProxy = 'exitFarmProxy',\n claimRewards = 'claimRewards',\n claimRewardsProxy = 'claimRewardsProxy',\n compoundRewards = 'compoundRewards',\n compoundRewardsProxy = 'compoundRewardsProxy',\n wrapEgld = 'wrapEgld',\n unwrapEgld = 'unwrapEgld',\n unlockAssets = 'unlockAssets',\n mergeLockedAssetTokens = 'mergeLockedAssetTokens',\n stakeFarm = 'stakeFarm',\n stakeFarmProxy = 'stakeFarmProxy',\n stakeFarmTokens = 'stakeFarmTokens',\n stakeFarmTokensProxy = 'stakeFarmTokensProxy',\n unstakeFarm = 'unstakeFarm',\n unstakeFarmProxy = 'unstakeFarmProxy',\n unstakeFarmTokens = 'unstakeFarmTokens',\n unstakeFarmTokensProxy = 'unstakeFarmTokensProxy',\n claimDualYield = 'claimDualYield',\n claimDualYieldProxy = 'claimDualYieldProxy',\n unbondFarm = 'unbondFarm',\n ping = 'ping',\n lockTokens = 'lockTokens',\n migrateOldTokens = 'migrateOldTokens'\n}\n\nexport enum TransactionActionCategoryEnum {\n esdtNft = 'esdtNft',\n mex = 'mex',\n stake = 'stake',\n scCall = 'scCall'\n}\n\nexport interface TokenArgumentType {\n type: NftEnumType | EsdtEnumType;\n name: string;\n ticker: string;\n collection?: string;\n identifier?: string;\n token?: string;\n decimals: number;\n value: string;\n providerName?: string;\n providerAvatar?: string;\n svgUrl?: string;\n valueUSD?: string;\n}\n\nexport interface TransactionActionType {\n category: string;\n name: TransactionActionsEnum;\n description?: string;\n arguments?: { [key: string]: any };\n}\n\nexport interface UnwrapperType {\n token?: TokenArgumentType[];\n tokenNoValue?: TokenArgumentType[];\n tokenNoLink?: TokenArgumentType[];\n address?: string;\n egldValue?: string;\n value?: string;\n providerName?: string;\n providerAvatar?: string;\n}\n\nexport enum TransactionOperationActionTypeEnum {\n none = 'none',\n transfer = 'transfer',\n burn = 'burn',\n addQuantity = 'addQuantity',\n create = 'create',\n multiTransfer = 'multiTransfer',\n localMint = 'localMint',\n localBurn = 'localBurn',\n wipe = 'wipe',\n freeze = 'freeze',\n writeLog = 'writeLog',\n signalError = 'signalError',\n\n // to be deprecated ?\n ESDTLocalMint = 'ESDTLocalMint',\n ESDTLocalBurn = 'ESDTLocalBurn'\n}\n\nexport enum VisibleTransactionOperationType {\n nft = 'nft',\n esdt = 'esdt',\n egld = 'egld'\n}\nexport enum HiddenTransactionOperationType {\n none = 'none',\n error = 'error',\n log = 'log'\n}\n\nexport interface OperationType {\n id?: string;\n action: TransactionOperationActionTypeEnum;\n type: VisibleTransactionOperationType | HiddenTransactionOperationType;\n esdtType?: NftEnumType | EsdtEnumType;\n collection?: string;\n name?: string;\n identifier?: string;\n sender: string;\n ticker?: string;\n receiver: string;\n value: string;\n decimals?: number;\n data?: string;\n message?: string;\n svgUrl?: string;\n senderAssets?: AssetType;\n receiverAssets?: AssetType;\n valueUSD?: string;\n}\n\nexport interface LogType {\n hash: string;\n callType: string;\n gasLimit: number;\n gasPrice: number;\n nonce: number;\n prevTxHash: string;\n receiver?: string;\n sender: string;\n value: string;\n data?: string;\n originalTxHash: string;\n returnMessage?: string;\n logs?: any;\n}\n\nexport interface EventType {\n address: string;\n identifier: string;\n topics: string[];\n order: number;\n data?: string;\n additionalData?: string[];\n}\n\nexport interface ResultLogType {\n id: string;\n address: string;\n events: EventType[];\n}\n\nexport interface ResultType {\n hash: string;\n callType: string;\n gasLimit: number;\n gasPrice: number;\n nonce: number;\n prevTxHash: string;\n receiver?: string;\n sender: string;\n value: string;\n data?: string;\n originalTxHash: string;\n returnMessage?: string;\n logs?: ResultLogType;\n senderAssets?: AssetType;\n receiverAssets?: AssetType;\n miniBlockHash?: string;\n function?: string;\n timestamp?: number;\n}\n\nexport interface ReceiptType {\n value: string;\n sender: string;\n data: string;\n}\n\nexport interface ServerTransactionType {\n fee?: string;\n data: string;\n gasLimit: number;\n gasPrice: number;\n gasUsed: number;\n txHash: string;\n miniBlockHash: string;\n nonce: number;\n receiver: string;\n receiverShard: number;\n round: number;\n sender: string;\n senderShard: number;\n signature: string;\n status:\n | `${TransactionServerStatusesEnum}`\n | `${TransactionBatchStatusesEnum}`;\n inTransit?: boolean;\n timestamp: number;\n value: string;\n price: number;\n results?: ResultType[];\n operations?: OperationType[];\n action?: TransactionActionType;\n logs?: {\n id: string;\n address: string;\n events: EventType[];\n };\n scamInfo?: ScamInfoType;\n pendingResults?: boolean;\n receipt?: ReceiptType;\n senderAssets?: AssetType;\n receiverAssets?: AssetType;\n type?: TransferTypeEnum;\n originalTxHash?: string;\n isNew?: boolean; // UI flag\n tokenValue?: string;\n tokenIdentifier?: string;\n function?: string;\n}\n\nexport enum TransferTypeEnum {\n Transaction = 'Transaction',\n SmartContractResult = 'SmartContractResult'\n}\n\n//#endregion\n\n//#region interpreted transactions\n\nexport enum TransactionDirectionEnum {\n SELF = 'Self',\n INTERNAL = 'Internal',\n IN = 'In',\n OUT = 'Out'\n}\n\nexport type TransactionAgeType = {\n timeAgo: string;\n tooltip: string;\n};\n\nexport type TransactionMethodType = {\n name: string;\n actionDescription?: string;\n};\n\nexport type TransactionIconInfoType = {\n icon?: `${IconNamesEnum}`;\n tooltip: string;\n};\n\nexport interface InterpretedTransactionType extends ServerTransactionType {\n transactionDetails: {\n age: TransactionAgeType;\n direction?: TransactionDirectionEnum;\n iconInfo: TransactionIconInfoType;\n method: TransactionMethodType;\n transactionTokens: TokenArgumentType[];\n isContract?: boolean;\n };\n links: {\n senderLink?: string;\n receiverLink?: string;\n senderShardLink?: string;\n receiverShardLink?: string;\n transactionLink?: string;\n };\n}\n\nexport type DecodedDisplayType = {\n displayValue: string;\n validationWarnings: string[];\n highlight: string | null;\n};\n\nexport enum DecodeMethodEnum {\n raw = 'raw',\n text = 'text',\n decimal = 'decimal',\n smart = 'smart'\n}\n\n//#endregion\n\nexport enum BatchTransactionStatus {\n pending = 'pending',\n success = 'success',\n invalid = 'invalid',\n dropped = 'dropped',\n fail = 'fail'\n}\n\nexport interface BatchTransactionsRequestType {\n id: string;\n transactions: SignedTransactionType[][];\n}\n\nexport interface BatchTransactionsResponseType {\n id: string;\n status: BatchTransactionStatus;\n transactions: SignedTransactionType[][];\n error?: string;\n message?: string;\n statusCode?: string;\n}\n"],
|
|
5
|
+
"mappings": "AA8BO,IAAKA,OAEVA,EAAA,SAAW,WAEXA,EAAA,OAAS,SACTA,EAAA,QAAU,UAEVA,EAAA,SAAW,WACXA,EAAA,MAAQ,QACRA,EAAA,WAAa,aACbA,EAAA,kBAAoB,eACpBA,EAAA,kBAAoB,oBACpBA,EAAA,SAAW,WAEXA,EAAA,kBAAoB,oBACpBA,EAAA,qBAAuB,uBACvBA,EAAA,sBAAwB,wBACxBA,EAAA,KAAO,OACPA,EAAA,aAAe,eACfA,EAAA,kBAAoB,oBACpBA,EAAA,gBAAkB,kBAClBA,EAAA,qBAAuB,uBACvBA,EAAA,UAAY,YACZA,EAAA,eAAiB,iBACjBA,EAAA,wBAA0B,0BAC1BA,EAAA,6BAA+B,+BAC/BA,EAAA,SAAW,WACXA,EAAA,cAAgB,gBAChBA,EAAA,aAAe,eACfA,EAAA,kBAAoB,oBACpBA,EAAA,gBAAkB,kBAClBA,EAAA,qBAAuB,uBACvBA,EAAA,SAAW,WACXA,EAAA,WAAa,aACbA,EAAA,aAAe,eACfA,EAAA,uBAAyB,yBACzBA,EAAA,UAAY,YACZA,EAAA,eAAiB,iBACjBA,EAAA,gBAAkB,kBAClBA,EAAA,qBAAuB,uBACvBA,EAAA,YAAc,cACdA,EAAA,iBAAmB,mBACnBA,EAAA,kBAAoB,oBACpBA,EAAA,uBAAyB,yBACzBA,EAAA,eAAiB,iBACjBA,EAAA,oBAAsB,sBACtBA,EAAA,WAAa,aACbA,EAAA,KAAO,OACPA,EAAA,WAAa,aACbA,EAAA,iBAAmB,mBAjDTA,OAAA,IAoDAC,OACVA,EAAA,QAAU,UACVA,EAAA,IAAM,MACNA,EAAA,MAAQ,QACRA,EAAA,OAAS,SAJCA,OAAA,IAwCAC,OACVA,EAAA,KAAO,OACPA,EAAA,SAAW,WACXA,EAAA,KAAO,OACPA,EAAA,YAAc,cACdA,EAAA,OAAS,SACTA,EAAA,cAAgB,gBAChBA,EAAA,UAAY,YACZA,EAAA,UAAY,YACZA,EAAA,KAAO,OACPA,EAAA,OAAS,SACTA,EAAA,SAAW,WACXA,EAAA,YAAc,cAGdA,EAAA,cAAgB,gBAChBA,EAAA,cAAgB,gBAhBNA,OAAA,IAmBAC,OACVA,EAAA,IAAM,MACNA,EAAA,KAAO,OACPA,EAAA,KAAO,OAHGA,OAAA,IAKAC,OACVA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,IAAM,MAHIA,OAAA,IAgIAC,OACVA,EAAA,YAAc,cACdA,EAAA,oBAAsB,sBAFZA,OAAA,IASAC,OACVA,EAAA,KAAO,OACPA,EAAA,SAAW,WACXA,EAAA,GAAK,KACLA,EAAA,IAAM,MAJIA,OAAA,IA8CAC,OACVA,EAAA,IAAM,MACNA,EAAA,KAAO,OACPA,EAAA,QAAU,UACVA,EAAA,MAAQ,QAJEA,OAAA,IASAC,OACVA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,KAAO,OALGA,OAAA",
|
|
6
6
|
"names": ["TransactionActionsEnum", "TransactionActionCategoryEnum", "TransactionOperationActionTypeEnum", "VisibleTransactionOperationType", "HiddenTransactionOperationType", "TransferTypeEnum", "TransactionDirectionEnum", "DecodeMethodEnum", "BatchTransactionStatus"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as A}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as A}from"./chunk-O65UD2QD.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-TWYGNEQS.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{g as S}from"./chunk-ICJ5ZWS4.mjs";import{a as h}from"./chunk-QMSYQJAU.mjs";import{a as y}from"./chunk-2WUOBFRV.mjs";import{h as f}from"./chunk-M6MN4RXG.mjs";import{b as l}from"./chunk-7VHTZYM2.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{s as m}from"./chunk-DY3P72D3.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=b(s),n=h({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=l(m());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=y(),{apiAddress:s,apiTimeout:o}=l(m());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return g({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${f}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IWQH426N.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-PKNPUHFQ.mjs";import{a as g}from"./chunk-OBIQ63DJ.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var N=h=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=l(h),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:m,timestamp:c}=n,p=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${m}.${r}.${p}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:f}};export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IZVWRQDU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-3GRRAVW4.mjs";import{a}from"./chunk-5HEWN34K.mjs";import{l as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-3GRRAVW4.mjs";import{a}from"./chunk-5HEWN34K.mjs";import{l as c}from"./chunk-YJQR63IW.mjs";import{a as g}from"./chunk-BFVULVAD.mjs";import{s as e}from"./chunk-DY3P72D3.mjs";import{g as n}from"./chunk-FK6DWWZF.mjs";import{e as d}from"./chunk-VNLGNNIL.mjs";import{HWProvider as P}from"@multiversx/sdk-hw-provider";async function S(s){let m=g(),t=s?.shouldInitProvider||!m,f=d(e()),o=n(e()),p=c(),i=new P;try{if(!t&&o){let u={version:o.version,dataEnabled:o.hasContractDataEnabled};return{ledgerProvider:i,ledgerConfig:u}}let r=await a({provider:p,ledgerProvider:i,ledgerLogin:f,shouldInitProvider:t}),v=await l(r);return{ledgerProvider:r,ledgerConfig:v}}catch(r){throw console.error("Could not initialize ledger app",r),r}}export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-J7DUP7GC.mjs.map
|