@multiversx/sdk-dapp 5.2.12-alpha.2 → 5.2.13
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-27GL7FOR.mjs +2 -0
- package/out/__chunks__/{chunk-Q22GOVKD.mjs → chunk-2M5PQ7VQ.mjs} +2 -2
- package/out/__chunks__/{chunk-HNOIYBWO.mjs → chunk-3BOE7KMH.mjs} +2 -2
- package/out/__chunks__/{chunk-AMEFBYAS.mjs → chunk-3IZTM5SH.mjs} +2 -2
- package/out/__chunks__/chunk-3TQYETUQ.mjs +2 -0
- package/out/__chunks__/chunk-3ULRTEGS.mjs +2 -0
- package/out/__chunks__/{chunk-MVS3VYDX.mjs → chunk-3XTDNJEI.mjs} +2 -2
- package/out/__chunks__/{chunk-D2MM4TYD.mjs → chunk-43L6QQVQ.mjs} +2 -2
- package/out/__chunks__/{chunk-C26UVAF4.mjs → chunk-46HT52TD.mjs} +2 -2
- package/out/__chunks__/{chunk-ISUUMDX4.mjs → chunk-4HACE72D.mjs} +2 -2
- package/out/__chunks__/{chunk-IARYEWKP.mjs → chunk-4YZ6ES24.mjs} +2 -2
- package/out/__chunks__/chunk-5WVYRVED.mjs +2 -0
- package/out/__chunks__/{chunk-I2EGEDHN.mjs → chunk-6BL2PJRI.mjs} +2 -2
- package/out/__chunks__/{chunk-4BMB6VBE.mjs → chunk-7KOIS7OQ.mjs} +2 -2
- package/out/__chunks__/{chunk-GYAL72SJ.mjs → chunk-A2OUGIST.mjs} +2 -2
- package/out/__chunks__/{chunk-ILQAR4VJ.mjs → chunk-A32SSEM7.mjs} +2 -2
- package/out/__chunks__/{chunk-I4KZTXSZ.mjs → chunk-ACNCA5WT.mjs} +2 -2
- package/out/__chunks__/{chunk-LC6N6PXI.mjs → chunk-AGXERDYF.mjs} +2 -2
- package/out/__chunks__/chunk-ARG4BCVP.mjs +2 -0
- package/out/__chunks__/{chunk-SOT3KZQE.mjs → chunk-BDOEZAQW.mjs} +2 -2
- package/out/__chunks__/{chunk-WBZ5ADDP.mjs → chunk-BF2EIXYA.mjs} +2 -2
- package/out/__chunks__/{chunk-FM4TCFJO.mjs → chunk-BMBBSWIO.mjs} +2 -2
- package/out/__chunks__/chunk-BPJEBZSS.mjs +2 -0
- package/out/__chunks__/{chunk-Y6FJOPJ2.mjs → chunk-CD7S5WQ2.mjs} +2 -2
- package/out/__chunks__/{chunk-VZTC36TP.mjs → chunk-CO55WDEX.mjs} +2 -2
- package/out/__chunks__/chunk-CTCIWUCQ.mjs +2 -0
- package/out/__chunks__/chunk-CZEUFCPN.mjs +2 -0
- package/out/__chunks__/chunk-CZEUFCPN.mjs.map +7 -0
- package/out/__chunks__/{chunk-XPOY54ZI.mjs → chunk-FDKQ5GBZ.mjs} +2 -2
- package/out/__chunks__/{chunk-ODKEKQWQ.mjs → chunk-FDN3ZMJB.mjs} +2 -2
- package/out/__chunks__/{chunk-QXCKHVRB.mjs → chunk-FUSW6F2O.mjs} +2 -2
- package/out/__chunks__/{chunk-7CTTCLGS.mjs → chunk-GEPV5HLA.mjs} +2 -2
- package/out/__chunks__/{chunk-2IEDTXZZ.mjs → chunk-GPRR7WIH.mjs} +2 -2
- package/out/__chunks__/{chunk-PHEDYOC2.mjs → chunk-GRGJ3KFV.mjs} +2 -2
- package/out/__chunks__/{chunk-5IAB533T.mjs → chunk-GUZERYYB.mjs} +2 -2
- package/out/__chunks__/{chunk-2OZPMZUW.mjs → chunk-H3PMAMO7.mjs} +2 -2
- package/out/__chunks__/{chunk-YF6TFOHX.mjs → chunk-HA5UXXYU.mjs} +2 -2
- package/out/__chunks__/{chunk-52F6ZX3Y.mjs → chunk-HAHEJ5MG.mjs} +2 -2
- package/out/__chunks__/chunk-HKZI76PK.mjs +2 -0
- package/out/__chunks__/chunk-HKZI76PK.mjs.map +7 -0
- package/out/__chunks__/{chunk-QS7KDRAA.mjs → chunk-HM3DDWL2.mjs} +2 -2
- package/out/__chunks__/{chunk-IN2EN7SO.mjs → chunk-JDIGAG2K.mjs} +2 -2
- package/out/__chunks__/chunk-JFP2BITI.mjs +2 -0
- package/out/__chunks__/chunk-JFP2BITI.mjs.map +7 -0
- package/out/__chunks__/chunk-JH4L2BAI.mjs +2 -0
- package/out/__chunks__/{chunk-4AEINILU.mjs → chunk-JH7DXVOH.mjs} +2 -2
- package/out/__chunks__/{chunk-FJHQTZTD.mjs → chunk-JICJ7JNX.mjs} +2 -2
- package/out/__chunks__/{chunk-5LRPWXRI.mjs → chunk-JIWOIKIN.mjs} +2 -2
- package/out/__chunks__/{chunk-EV2EW4V3.mjs → chunk-JO4RFE6Y.mjs} +2 -2
- package/out/__chunks__/chunk-JU3JK7ZW.mjs +2 -0
- package/out/__chunks__/{chunk-H3OCAYTA.mjs → chunk-KAZ44D6B.mjs} +2 -2
- package/out/__chunks__/{chunk-CGVGJ57H.mjs → chunk-KW67U7EN.mjs} +2 -2
- package/out/__chunks__/chunk-KXJUK6CN.mjs +2 -0
- package/out/__chunks__/{chunk-KRNJLKU3.mjs.map → chunk-KXJUK6CN.mjs.map} +1 -1
- package/out/__chunks__/chunk-LHLSK6R3.mjs +2 -0
- package/out/__chunks__/{chunk-5TQNDCGI.mjs → chunk-LKYNZMTI.mjs} +2 -2
- package/out/__chunks__/{chunk-I6BWUPNY.mjs → chunk-LMULG6DX.mjs} +2 -2
- package/out/__chunks__/chunk-M2SIVB52.mjs +2 -0
- package/out/__chunks__/chunk-MDVHLIC7.mjs +2 -0
- package/out/__chunks__/{chunk-5IBJRQKT.mjs → chunk-MH24PY4N.mjs} +2 -2
- package/out/__chunks__/{chunk-GXBQTKLG.mjs → chunk-MPQUPJUO.mjs} +2 -2
- package/out/__chunks__/{chunk-KYFQTK7Q.mjs → chunk-MT3MZ6SJ.mjs} +2 -2
- package/out/__chunks__/chunk-N72FHB5Q.mjs +2 -0
- package/out/__chunks__/chunk-N72FHB5Q.mjs.map +7 -0
- package/out/__chunks__/{chunk-AK4AHPC5.mjs → chunk-NCH6SFZ2.mjs} +2 -2
- package/out/__chunks__/chunk-ND5SC5UK.mjs +2 -0
- package/out/__chunks__/{chunk-7KSCRRST.mjs → chunk-NE6ED6BJ.mjs} +2 -2
- package/out/__chunks__/{chunk-LZPVBLPR.mjs → chunk-NMVLXQXY.mjs} +2 -2
- package/out/__chunks__/{chunk-IIV6QUGB.mjs → chunk-OVD6R5BF.mjs} +2 -2
- package/out/__chunks__/{chunk-CUDYDCU3.mjs → chunk-QAKIMRWO.mjs} +2 -2
- package/out/__chunks__/chunk-QY6K7L4I.mjs +2 -0
- package/out/__chunks__/{chunk-HCA73UJ2.mjs.map → chunk-QY6K7L4I.mjs.map} +3 -3
- package/out/__chunks__/{chunk-WMSH345X.mjs → chunk-RXQEMX7U.mjs} +2 -2
- package/out/__chunks__/{chunk-JCKIWSMK.mjs → chunk-SBQYWA6T.mjs} +2 -2
- package/out/__chunks__/{chunk-R2AMB7CJ.mjs → chunk-SPP2AXFW.mjs} +2 -2
- package/out/__chunks__/{chunk-XAORPYGX.mjs → chunk-TAA22QOF.mjs} +2 -2
- package/out/__chunks__/chunk-TAFDGCRA.mjs +2 -0
- package/out/__chunks__/{chunk-YAOJBWJF.mjs → chunk-TC5SHARG.mjs} +2 -2
- package/out/__chunks__/{chunk-GDSLKRKG.mjs → chunk-TEIODZEN.mjs} +2 -2
- package/out/__chunks__/chunk-TP6GGLNS.mjs +2 -0
- package/out/__chunks__/{chunk-7NYWVEAK.mjs → chunk-U22RR2MN.mjs} +2 -2
- package/out/__chunks__/{chunk-EIDU2HPZ.mjs → chunk-UB3WTGGF.mjs} +2 -2
- package/out/__chunks__/chunk-UGA4OJPD.mjs +2 -0
- package/out/__chunks__/{chunk-2KFF7P2Q.mjs → chunk-UK2P24V6.mjs} +2 -2
- package/out/__chunks__/{chunk-3NIUNWZZ.mjs → chunk-VJN2RF4O.mjs} +2 -2
- package/out/__chunks__/{chunk-3MOO4WSM.mjs → chunk-VTPHR6O5.mjs} +2 -2
- package/out/__chunks__/{chunk-W745K5B2.mjs → chunk-VVMACGAC.mjs} +2 -2
- package/out/__chunks__/{chunk-W745K5B2.mjs.map → chunk-VVMACGAC.mjs.map} +2 -2
- package/out/__chunks__/chunk-XPQSGRUF.mjs +2 -0
- package/out/__chunks__/{chunk-IHYZJT4R.mjs → chunk-YBEBQWOE.mjs} +2 -2
- package/out/__chunks__/{chunk-R4ROPV7N.mjs → chunk-ZHRGANG5.mjs} +2 -2
- package/out/__chunks__/{chunk-S3X6PZF3.mjs → chunk-ZVAP4GAJ.mjs} +2 -2
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/ToastManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +3 -3
- package/out/managers/UnlockPanelManager/UnlockPanelManager.d.ts +0 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/helpers/getIsSimpleLoginCallback.cjs +2 -0
- package/out/managers/UnlockPanelManager/helpers/getIsSimpleLoginCallback.cjs.map +7 -0
- package/out/managers/UnlockPanelManager/helpers/getIsSimpleLoginCallback.d.ts +7 -0
- package/out/managers/UnlockPanelManager/helpers/getIsSimpleLoginCallback.mjs +2 -0
- package/out/managers/UnlockPanelManager/helpers/getIsSimpleLoginCallback.mjs.map +7 -0
- package/out/managers/UnlockPanelManager/helpers/getProviderList.cjs +1 -1
- package/out/managers/UnlockPanelManager/helpers/getProviderList.cjs.map +2 -2
- package/out/managers/UnlockPanelManager/helpers/getProviderList.d.ts +1 -1
- package/out/managers/UnlockPanelManager/helpers/getProviderList.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs.map +2 -2
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +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.mjs +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/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs.map +3 -3
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +2 -2
- package/out/__chunks__/chunk-2F2JK234.mjs +0 -2
- package/out/__chunks__/chunk-3GCMP7TC.mjs +0 -2
- package/out/__chunks__/chunk-4L5NOLC4.mjs +0 -2
- package/out/__chunks__/chunk-667KBMOX.mjs +0 -2
- package/out/__chunks__/chunk-667KBMOX.mjs.map +0 -7
- package/out/__chunks__/chunk-773EW53K.mjs +0 -2
- package/out/__chunks__/chunk-ANEBJJRW.mjs +0 -2
- package/out/__chunks__/chunk-ENBNUXHU.mjs +0 -2
- package/out/__chunks__/chunk-GWU6SCB5.mjs +0 -2
- package/out/__chunks__/chunk-HCA73UJ2.mjs +0 -2
- package/out/__chunks__/chunk-I5SXY3YD.mjs +0 -2
- package/out/__chunks__/chunk-JBVOLABY.mjs +0 -2
- package/out/__chunks__/chunk-KK4FPMM4.mjs +0 -2
- package/out/__chunks__/chunk-KRNJLKU3.mjs +0 -2
- package/out/__chunks__/chunk-NZCCKRTK.mjs +0 -2
- package/out/__chunks__/chunk-O7RIIOED.mjs +0 -2
- package/out/__chunks__/chunk-OXDJRURA.mjs +0 -2
- package/out/__chunks__/chunk-OXDJRURA.mjs.map +0 -7
- package/out/__chunks__/chunk-RGMFNU2Y.mjs +0 -2
- package/out/__chunks__/chunk-RGMFNU2Y.mjs.map +0 -7
- package/out/__chunks__/chunk-UFCP5C6E.mjs +0 -2
- package/out/__chunks__/chunk-XQ3UGMUS.mjs +0 -2
- package/out/__chunks__/chunk-Y7DQ34ML.mjs +0 -2
- package/out/__chunks__/chunk-YD4WCBGX.mjs +0 -2
- package/out/__chunks__/chunk-ZNPHUPAP.mjs +0 -2
- /package/out/__chunks__/{chunk-4L5NOLC4.mjs.map → chunk-27GL7FOR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Q22GOVKD.mjs.map → chunk-2M5PQ7VQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HNOIYBWO.mjs.map → chunk-3BOE7KMH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AMEFBYAS.mjs.map → chunk-3IZTM5SH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y7DQ34ML.mjs.map → chunk-3TQYETUQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2F2JK234.mjs.map → chunk-3ULRTEGS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MVS3VYDX.mjs.map → chunk-3XTDNJEI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D2MM4TYD.mjs.map → chunk-43L6QQVQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C26UVAF4.mjs.map → chunk-46HT52TD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ISUUMDX4.mjs.map → chunk-4HACE72D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IARYEWKP.mjs.map → chunk-4YZ6ES24.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZNPHUPAP.mjs.map → chunk-5WVYRVED.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I2EGEDHN.mjs.map → chunk-6BL2PJRI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4BMB6VBE.mjs.map → chunk-7KOIS7OQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GYAL72SJ.mjs.map → chunk-A2OUGIST.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ILQAR4VJ.mjs.map → chunk-A32SSEM7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I4KZTXSZ.mjs.map → chunk-ACNCA5WT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LC6N6PXI.mjs.map → chunk-AGXERDYF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I5SXY3YD.mjs.map → chunk-ARG4BCVP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SOT3KZQE.mjs.map → chunk-BDOEZAQW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WBZ5ADDP.mjs.map → chunk-BF2EIXYA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FM4TCFJO.mjs.map → chunk-BMBBSWIO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KK4FPMM4.mjs.map → chunk-BPJEBZSS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y6FJOPJ2.mjs.map → chunk-CD7S5WQ2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VZTC36TP.mjs.map → chunk-CO55WDEX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JBVOLABY.mjs.map → chunk-CTCIWUCQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XPOY54ZI.mjs.map → chunk-FDKQ5GBZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ODKEKQWQ.mjs.map → chunk-FDN3ZMJB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QXCKHVRB.mjs.map → chunk-FUSW6F2O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7CTTCLGS.mjs.map → chunk-GEPV5HLA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2IEDTXZZ.mjs.map → chunk-GPRR7WIH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PHEDYOC2.mjs.map → chunk-GRGJ3KFV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5IAB533T.mjs.map → chunk-GUZERYYB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2OZPMZUW.mjs.map → chunk-H3PMAMO7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YF6TFOHX.mjs.map → chunk-HA5UXXYU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-52F6ZX3Y.mjs.map → chunk-HAHEJ5MG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QS7KDRAA.mjs.map → chunk-HM3DDWL2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IN2EN7SO.mjs.map → chunk-JDIGAG2K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GWU6SCB5.mjs.map → chunk-JH4L2BAI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4AEINILU.mjs.map → chunk-JH7DXVOH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FJHQTZTD.mjs.map → chunk-JICJ7JNX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5LRPWXRI.mjs.map → chunk-JIWOIKIN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EV2EW4V3.mjs.map → chunk-JO4RFE6Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ANEBJJRW.mjs.map → chunk-JU3JK7ZW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H3OCAYTA.mjs.map → chunk-KAZ44D6B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CGVGJ57H.mjs.map → chunk-KW67U7EN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XQ3UGMUS.mjs.map → chunk-LHLSK6R3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5TQNDCGI.mjs.map → chunk-LKYNZMTI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I6BWUPNY.mjs.map → chunk-LMULG6DX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ENBNUXHU.mjs.map → chunk-M2SIVB52.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3GCMP7TC.mjs.map → chunk-MDVHLIC7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5IBJRQKT.mjs.map → chunk-MH24PY4N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GXBQTKLG.mjs.map → chunk-MPQUPJUO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KYFQTK7Q.mjs.map → chunk-MT3MZ6SJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AK4AHPC5.mjs.map → chunk-NCH6SFZ2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YD4WCBGX.mjs.map → chunk-ND5SC5UK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7KSCRRST.mjs.map → chunk-NE6ED6BJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LZPVBLPR.mjs.map → chunk-NMVLXQXY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IIV6QUGB.mjs.map → chunk-OVD6R5BF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CUDYDCU3.mjs.map → chunk-QAKIMRWO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WMSH345X.mjs.map → chunk-RXQEMX7U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JCKIWSMK.mjs.map → chunk-SBQYWA6T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R2AMB7CJ.mjs.map → chunk-SPP2AXFW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XAORPYGX.mjs.map → chunk-TAA22QOF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UFCP5C6E.mjs.map → chunk-TAFDGCRA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YAOJBWJF.mjs.map → chunk-TC5SHARG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GDSLKRKG.mjs.map → chunk-TEIODZEN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O7RIIOED.mjs.map → chunk-TP6GGLNS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7NYWVEAK.mjs.map → chunk-U22RR2MN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EIDU2HPZ.mjs.map → chunk-UB3WTGGF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-773EW53K.mjs.map → chunk-UGA4OJPD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2KFF7P2Q.mjs.map → chunk-UK2P24V6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3NIUNWZZ.mjs.map → chunk-VJN2RF4O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3MOO4WSM.mjs.map → chunk-VTPHR6O5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NZCCKRTK.mjs.map → chunk-XPQSGRUF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IHYZJT4R.mjs.map → chunk-YBEBQWOE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R4ROPV7N.mjs.map → chunk-ZHRGANG5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S3X6PZF3.mjs.map → chunk-ZVAP4GAJ.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-NMVLXQXY.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JICJ7JNX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as p}from"./chunk-TEIODZEN.mjs";import{a as u}from"./chunk-REYJ4EFS.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as T}from"./chunk-HMAL7GVA.mjs";import{a as m}from"./chunk-U3UMCTU6.mjs";import{a as k}from"./chunk-YJCTRUJT.mjs";import{c as l}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-KSC3RFHN.mjs";var g=class{static async processTransactions({address:v,egldLabel:L,explorerAddress:a,transactions:h}){let f=h.map(e=>T({address:v,explorerAddress:a,transaction:e}));return await Promise.all(f.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 p({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=u({transaction:e}),y=r?.token.type==="MetaESDT"?void 0:r?.badgeText,d=m.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??l,digits:2}),S={badge:y??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?L:"",link:k({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-JIWOIKIN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-KXJUK6CN.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-JO4RFE6Y.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-VTPHR6O5.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KAZ44D6B.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-MPQUPJUO.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-KW67U7EN.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants/window.constants.ts"],
|
|
4
|
-
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.2.
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.2.13'; // will be replaced at build time\n"],
|
|
5
5
|
"mappings": "AAAO,IAAMA,EACX,OAAO,OAAW,IAAc,OAAU,CAAC,EAEhCC,EAAU",
|
|
6
6
|
"names": ["safeWindow", "version"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-KXJUK6CN.mjs";var t=()=>{if(!e)return"";try{let r=e.document?.referrer;return r?new URL(r).origin:""}catch(r){return console.error(r),""}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LKYNZMTI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-NGM3AVCY.mjs";import{s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-NGM3AVCY.mjs";import{s}from"./chunk-VJN2RF4O.mjs";import{e as a}from"./chunk-UERJ6AKK.mjs";function x(n){let e=s(),o=u(e),c=a(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t,n.nonce,c)}export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LMULG6DX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-GPRR7WIH.mjs";import{c as e}from"./chunk-MGFIOCA4.mjs";var o=class i extends s{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._ppuMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,ppuOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){let t=0;a.filter(n=>n!=null).forEach(n=>{let r=n?Number(n.gasPrice):0;this.updateGasPriceMap({nonce:Number(n.nonce),ppu:t,initialGasPrice:r})}),this.updateCommonData({ppu:t})}updateGasPriceMap({nonce:a,ppu:t,initialGasPrice:n}){this._ppuMap[a]={...this._ppuMap[a],ppu:t},n&&(this._ppuMap[a].initialGasPrice=n)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,t){switch(a){case"NonFungibleESDT":this.data.nftTransaction=t,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=t,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get ppuMap(){return this._ppuMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MH24PY4N.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-NE6ED6BJ.mjs";import{a as o}from"./chunk-WE7YOBO7.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MPQUPJUO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-UK2P24V6.mjs";import a from"lodash.isempty";var e=async({transactionsSessions:t})=>{if(a(t))return[];let i=s(t);return r({transactions:i})};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MT3MZ6SJ.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as d}from"./chunk-CZEUFCPN.mjs";import{a as s}from"./chunk-JFP2BITI.mjs";import{d as t}from"./chunk-JH7DXVOH.mjs";import{a as l}from"./chunk-GPRR7WIH.mjs";import{s as r}from"./chunk-VJN2RF4O.mjs";import{b as o}from"./chunk-7VHTZYM2.mjs";var e=class e extends l{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:n}=o(r()),i=d(t.customProviders,e.allowedProviders);this.data={providers:i,walletAddress:n},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async n=>{!n?.isLoginFinished&&e.onClose&&e.onClose(),this.closeUI()};this.handleLogin=async({type:n,anchor:i})=>{if(!e.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{s(e.loginHandler)?(await(await t.create({type:n,anchor:i})).login(),e.loginHandler()):e.loginHandler({type:n,anchor:i}),await this.handleCloseUI({isLoginFinished:!0})}catch(a){console.error(a),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await t.destroy()};this.data=this.initialData}static getInstance(){return e.instance||(e.instance=new e),e.instance}static init(n){return this.loginHandler=n.loginHandler,this.allowedProviders=n.allowedProviders,n.onClose&&(this.onClose=n.onClose),this.getInstance()}};e.loginHandler=null,e.onClose=null,e.allowedProviders=null;var c=e;export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-N72FHB5Q.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/managers/UnlockPanelManager/UnlockPanelManager.ts"],
|
|
4
|
+
"sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxUnlockPanel } from 'lib/sdkDappUi';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport {\n IProviderBase,\n IProviderFactory,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport {\n OnCloseUnlockPanelType,\n LoginHandlerType,\n UnlockPanelEventsEnum,\n UnlockPanelManagerInitParamsType\n} from './UnlockPanelManager.types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager';\nimport { getIsSimpleLoginCallback } from './helpers/getIsSimpleLoginCallback';\nimport { getProvidersList } from './helpers/getProviderList';\n\ninterface IUnlockPanelManagerData {\n providers: IProviderBase[] | null;\n walletAddress: string | null;\n}\n\nexport class UnlockPanelManager extends SidePanelBaseManager<\n MvxUnlockPanel,\n IUnlockPanelManagerData,\n UnlockPanelEventsEnum\n> {\n protected initialData: IUnlockPanelManagerData = {\n providers: null,\n walletAddress: null\n };\n\n private static instance: UnlockPanelManager;\n private static loginHandler: LoginHandlerType | null = null;\n private static onClose: OnCloseUnlockPanelType | null = null;\n private static allowedProviders?: ProviderType[] | null = null;\n\n constructor() {\n super({\n uiTag: UITagsEnum.UNLOCK_PANEL,\n uiDataUpdateEvent: UnlockPanelEventsEnum.OPEN\n });\n\n this.data = this.initialData;\n }\n\n public static getInstance(): UnlockPanelManager {\n if (!UnlockPanelManager.instance) {\n UnlockPanelManager.instance = new UnlockPanelManager();\n }\n return UnlockPanelManager.instance;\n }\n\n public static init(params: UnlockPanelManagerInitParamsType) {\n this.loginHandler = params.loginHandler;\n this.allowedProviders = params.allowedProviders;\n\n if (params.onClose) {\n this.onClose = params.onClose;\n }\n\n return this.getInstance();\n }\n\n public openUnlockPanel = async () => {\n const { walletAddress } = networkSelector(getState());\n\n const providers = getProvidersList(\n ProviderFactory.customProviders,\n UnlockPanelManager.allowedProviders\n );\n\n this.data = {\n providers,\n walletAddress\n };\n\n await this.openUI();\n this.notifyDataUpdate();\n };\n\n protected setupEventListeners = async () => {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(UnlockPanelEventsEnum.LOGIN, this.handleLogin);\n this.subscribeToEventBus(\n UnlockPanelEventsEnum.CANCEL_LOGIN,\n this.handleCancelLogin\n );\n this.subscribeToEventBus(UnlockPanelEventsEnum.CLOSE, this.handleCloseUI);\n };\n\n private readonly handleCloseUI = async (options?: {\n isLoginFinished?: boolean;\n }) => {\n if (!options?.isLoginFinished && UnlockPanelManager.onClose) {\n UnlockPanelManager.onClose();\n }\n\n this.closeUI();\n };\n\n private readonly handleLogin = async ({ type, anchor }: IProviderFactory) => {\n if (!UnlockPanelManager.loginHandler) {\n throw new Error(\n 'Login callback not initialized. Please call `init()` first.'\n );\n }\n\n try {\n if (getIsSimpleLoginCallback(UnlockPanelManager.loginHandler)) {\n const provider = await ProviderFactory.create({ type, anchor });\n await provider.login();\n UnlockPanelManager.loginHandler();\n } else {\n UnlockPanelManager.loginHandler({ type, anchor });\n }\n await this.handleCloseUI({ isLoginFinished: true });\n } catch (error) {\n console.error(error);\n this.eventBus?.publish(\n UnlockPanelEventsEnum.CANCEL_IN_PROVIDER,\n this.data\n );\n }\n };\n\n private readonly handleCancelLogin = async () => {\n await ProviderFactory.destroy();\n };\n}\n"],
|
|
5
|
+
"mappings": "sPAyBO,IAAMA,EAAN,MAAMA,UAA2BC,CAItC,CAWA,aAAc,CACZ,MAAM,CACJ,yBACA,wBACF,CAAC,EAdH,KAAU,YAAuC,CAC/C,UAAW,KACX,cAAe,IACjB,EAkCA,KAAO,gBAAkB,SAAY,CACnC,GAAM,CAAE,cAAAC,CAAc,EAAIC,EAAgBC,EAAS,CAAC,EAE9CC,EAAYC,EAChBC,EAAgB,gBAChBP,EAAmB,gBACrB,EAEA,KAAK,KAAO,CACV,UAAAK,EACA,cAAAH,CACF,EAEA,MAAM,KAAK,OAAO,EAClB,KAAK,iBAAiB,CACxB,EAEA,KAAU,oBAAsB,SAAY,CACrC,KAAK,WAIV,KAAK,4BAAiD,KAAK,WAAW,EACtE,KAAK,mCAEH,KAAK,iBACP,EACA,KAAK,4BAAiD,KAAK,aAAa,EAC1E,EAEA,KAAiB,cAAgB,MAAOM,GAElC,CACA,CAACA,GAAS,iBAAmBR,EAAmB,SAClDA,EAAmB,QAAQ,EAG7B,KAAK,QAAQ,CACf,EAEA,KAAiB,YAAc,MAAO,CAAE,KAAAS,EAAM,OAAAC,CAAO,IAAwB,CAC3E,GAAI,CAACV,EAAmB,aACtB,MAAM,IAAI,MACR,6DACF,EAGF,GAAI,CACEW,EAAyBX,EAAmB,YAAY,GAE1D,MADiB,MAAMO,EAAgB,OAAO,CAAE,KAAAE,EAAM,OAAAC,CAAO,CAAC,GAC/C,MAAM,EACrBV,EAAmB,aAAa,GAEhCA,EAAmB,aAAa,CAAE,KAAAS,EAAM,OAAAC,CAAO,CAAC,EAElD,MAAM,KAAK,cAAc,CAAE,gBAAiB,EAAK,CAAC,CACpD,OAASE,EAAO,CACd,QAAQ,MAAMA,CAAK,EACnB,KAAK,UAAU,6BAEb,KAAK,IACP,CACF,CACF,EAEA,KAAiB,kBAAoB,SAAY,CAC/C,MAAML,EAAgB,QAAQ,CAChC,EAxFE,KAAK,KAAO,KAAK,WACnB,CAEA,OAAc,aAAkC,CAC9C,OAAKP,EAAmB,WACtBA,EAAmB,SAAW,IAAIA,GAE7BA,EAAmB,QAC5B,CAEA,OAAc,KAAKa,EAA0C,CAC3D,YAAK,aAAeA,EAAO,aAC3B,KAAK,iBAAmBA,EAAO,iBAE3BA,EAAO,UACT,KAAK,QAAUA,EAAO,SAGjB,KAAK,YAAY,CAC1B,CAsEF,EA9Gab,EAWI,aAAwC,KAX5CA,EAYI,QAAyC,KAZ7CA,EAaI,iBAA2C,KAbrD,IAAMc,EAANd",
|
|
6
|
+
"names": ["_UnlockPanelManager", "SidePanelBaseManager", "walletAddress", "networkSelector", "getState", "providers", "getProvidersList", "ProviderFactory", "options", "type", "anchor", "getIsSimpleLoginCallback", "error", "params", "UnlockPanelManager"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-MDVHLIC7.mjs";import{a as f}from"./chunk-NE6ED6BJ.mjs";import{a as g}from"./chunk-VTPHR6O5.mjs";import{b as a}from"./chunk-VJN2RF4O.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NCH6SFZ2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-KAZ44D6B.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NE6ED6BJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-GPRR7WIH.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-NMVLXQXY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{x as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{x as g}from"./chunk-GEPV5HLA.mjs";import{q as M}from"./chunk-VJN2RF4O.mjs";import{a as d}from"./chunk-UERJ6AKK.mjs";import{a as u,c as p,g as l}from"./chunk-NTEMINYA.mjs";import{a as c}from"./chunk-KXJUK6CN.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(){c.addEventListener("message",this.handleMessage)}stopListening(){c.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}=d(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}=d(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-OVD6R5BF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as o,f as a,g as i,h as r}from"./chunk-NGM3AVCY.mjs";import{s as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as o,f as a,g as i,h as r}from"./chunk-NGM3AVCY.mjs";import{s as c}from"./chunk-VJN2RF4O.mjs";function b(){let t=c(),l=r(t),u=i(t),T=a(t),d=o(t),e=Object.keys(d)?.length>0,n=!e&&Object.keys(l)?.length>0,s=!e&&!n&&Object.keys(u)?.length>0,f=!e&&!n&&!s&&Object.keys(T).length>0;return{pending:e,timedOut:n,fail:s,success:f}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QAKIMRWO.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as A}from"./chunk-VVMACGAC.mjs";import{a as s}from"./chunk-3XTDNJEI.mjs";import{a as h}from"./chunk-B2RDSGON.mjs";import{a as b}from"./chunk-JH4L2BAI.mjs";import{b as L}from"./chunk-CO55WDEX.mjs";import{a as I}from"./chunk-YJCTRUJT.mjs";import{f as p}from"./chunk-VJN2RF4O.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-LJX4MW7B.mjs";import{BigNumber as C}from"bignumber.js";async function H({options:d,config:u,provider:a,login:m}){let e=A.getInstance(),k=b(),T=h({loginToken:d?.token,version:u.version}),o={manager:e,provider:a};await s(o);let t=await new Promise(async function(P,w){async function i(r){let n=e?e.addressesPerPage??1:1,l=new C(r-1).times(n);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await s(o)}async function c(r){if(!(!a||!m)){e?.updateConfirmScreen({...T,selectedAddress:r.selectedAddress,explorerLink:I({to:`/${f}/${r.selectedAddress}`,explorerAddress:k})});try{let n=d?.token?await a.tokenLogin({token:Buffer.from(`${d?.token}{}`),addressIndex:r.addressIndex}):await m({addressIndex:r.addressIndex});e.unsubscribeFromAuthEvents({handleCancel:g,handleAccessWallet:c,handleGoToPage:i}),P({address:n.address,signature:n.signature?n.signature.toString("hex"):"",addressIndex:r.addressIndex})}catch(n){console.error("User rejected login:",n),!!e?.getConfirmScreenData()&&await s(o)}}}async function g(){await s(o),e.unsubscribeFromAuthEvents({handleCancel:g,handleAccessWallet:c,handleGoToPage:i}),w("User cancelled login")}e.subscribeToAuthEvents({handleCancel:g,handleAccessWallet:c,handleGoToPage:i})}),{version:v,dataEnabled:E}=u;return p({index:t.addressIndex,loginType:x.ledger}),L({address:t.address,index:t.addressIndex,version:v,hasContractDataEnabled:E}),{address:t.address,signature:t.signature}}export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QY6K7L4I.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.ts"],
|
|
4
|
-
"sourcesContent": ["import { HWProvider } from '@multiversx/sdk-hw-provider/out';\nimport { BigNumber } from 'bignumber.js';\n\nimport { ACCOUNTS_ENDPOINT } from 'apiCalls';\nimport { IEventBus } from 'lib/sdkDappUi';\nimport { LedgerConnectStateManager } from 'managers/internal/LedgerConnectStateManager/LedgerConnectStateManager';\nimport { getExplorerAddress } from 'methods/network/getExplorerAddress';\nimport { ProviderTypeEnum } from 'providers/types/providerFactory.types';\nimport { setLedgerAccount } from 'store/actions';\nimport { setLedgerLogin } from 'store/actions/loginInfo/loginInfoActions';\nimport { getExplorerLink } from 'utils/transactions/getExplorerLink';\n\nimport { getAuthTokenText } from './getAuthTokenText';\nimport { updateAccountsList } from './updateAccountsList';\nimport {\n LedgerConfigType,\n LedgerLoginType\n} from '../types/ledgerProvider.types';\n\ninterface IGetLedgerLogin {\n options?: {\n callbackUrl?: string;\n token?: string;\n };\n config: LedgerConfigType;\n provider: HWProvider | null;\n eventBus?: IEventBus | null;\n login: LedgerLoginType | null;\n}\n\ninterface ISelectedAccount {\n address: string;\n signature: string;\n addressIndex: number;\n}\n\nexport async function authenticateLedgerAccount({\n options,\n config,\n provider,\n login\n}: IGetLedgerLogin) {\n const manager = LedgerConnectStateManager.getInstance();\n\n const explorerAddress = getExplorerAddress();\n\n const authData = getAuthTokenText({\n loginToken: options?.token,\n version: config.version\n });\n\n const accountsListProps = {\n manager,\n provider\n };\n\n // refresh account list\n await updateAccountsList(accountsListProps);\n\n // cycle through accounts until user makes a choice\n const selectedAccount = await new Promise<ISelectedAccount>(async function (\n resolve,\n reject\n ) {\n async function handleGoToPage(page: number) {\n const addressesPerPage = manager ? manager.addressesPerPage ?? 1 : 1;\n const startIndex = new BigNumber(page - 1).times(addressesPerPage);\n\n manager?.updateStartIndex(Math.max(0, parseInt(startIndex.toString())));\n await updateAccountsList(accountsListProps);\n }\n\n async function handleAccessWallet(payload: {\n addressIndex: number;\n selectedAddress: string;\n }) {\n if (!provider || !login) {\n return;\n }\n\n manager?.updateConfirmScreen({\n ...authData,\n selectedAddress: payload.selectedAddress,\n explorerLink: getExplorerLink({\n to: `/${ACCOUNTS_ENDPOINT}/${payload.selectedAddress}`,\n explorerAddress\n })\n });\n\n try {\n const loginInfo = options?.token\n ? await provider.tokenLogin({\n token: Buffer.from(`${options?.token}{}`),\n addressIndex: payload.addressIndex\n })\n : await login({\n addressIndex: payload.addressIndex\n });\n\n resolve({\n address: loginInfo.address,\n signature: loginInfo.signature\n ? loginInfo.signature.toString('hex')\n : '',\n addressIndex: payload.addressIndex\n });\n } catch (err) {\n console.error('User rejected login:', err);\n\n const shouldGoBack = Boolean(manager?.getConfirmScreenData());\n if (shouldGoBack) {\n await updateAccountsList(accountsListProps);\n }\n }\n }\n\n async function handleCancel() {\n await updateAccountsList(accountsListProps);\n manager.unsubscribeFromAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n });\n reject('User cancelled login');\n }\n\n manager.subscribeToAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n });\n });\n\n const { version, dataEnabled } = config;\n\n // login is finished, data can be persisted in the store\n setLedgerLogin({\n index: selectedAccount.addressIndex,\n loginType: ProviderTypeEnum.ledger\n });\n\n setLedgerAccount({\n address: selectedAccount.address,\n index: selectedAccount.addressIndex,\n version,\n hasContractDataEnabled: dataEnabled\n });\n\n return {\n address: selectedAccount.address,\n signature: selectedAccount.signature\n };\n}\n"],
|
|
5
|
-
"mappings": "iXACA,OAAS,aAAAA,MAAiB,eAmC1B,eAAsBC,EAA0B,CAC9C,QAAAC,EACA,OAAAC,EACA,SAAAC,EACA,MAAAC,CACF,EAAoB,CAClB,IAAMC,EAAUC,EAA0B,YAAY,EAEhDC,EAAkBC,EAAmB,EAErCC,EAAWC,EAAiB,CAChC,WAAYT,GAAS,MACrB,QAASC,EAAO,OAClB,CAAC,EAEKS,EAAoB,CACxB,QAAAN,EACA,SAAAF,CACF,EAGA,MAAMS,EAAmBD,CAAiB,EAG1C,IAAME,EAAkB,MAAM,IAAI,QAA0B,eAC1DC,EACAC,EACA,CACA,eAAeC,EAAeC,EAAc,CAC1C,IAAMC,EAAmBb,EAAUA,EAAQ,kBAAoB,EAAI,EAC7Dc,EAAa,IAAIC,EAAUH,EAAO,CAAC,EAAE,MAAMC,CAAgB,EAEjEb,GAAS,iBAAiB,KAAK,IAAI,EAAG,SAASc,EAAW,SAAS,CAAC,CAAC,CAAC,EACtE,MAAMP,EAAmBD,CAAiB,CAC5C,CAEA,eAAeU,EAAmBC,EAG/B,CACD,GAAI,GAACnB,GAAY,CAACC,GAIlB,CAAAC,GAAS,oBAAoB,CAC3B,GAAGI,EACH,gBAAiBa,EAAQ,gBACzB,aAAcC,EAAgB,CAC5B,GAAI,IAAIC,CAAiB,IAAIF,EAAQ,eAAe,GACpD,gBAAAf,CACF,CAAC,CACH,CAAC,EAED,GAAI,CACF,IAAMkB,EAAYxB,GAAS,MACvB,MAAME,EAAS,WAAW,CACxB,MAAO,OAAO,KAAK,GAAGF,GAAS,KAAK,IAAI,EACxC,aAAcqB,EAAQ,YACxB,CAAC,EACD,MAAMlB,EAAM,CACV,aAAckB,EAAQ,YACxB,CAAC,
|
|
6
|
-
"names": ["BigNumber", "authenticateLedgerAccount", "options", "config", "provider", "login", "manager", "LedgerConnectStateManager", "explorerAddress", "getExplorerAddress", "authData", "getAuthTokenText", "accountsListProps", "updateAccountsList", "selectedAccount", "resolve", "reject", "handleGoToPage", "page", "addressesPerPage", "startIndex", "BigNumber", "handleAccessWallet", "payload", "getExplorerLink", "ACCOUNTS_ENDPOINT", "loginInfo", "
|
|
4
|
+
"sourcesContent": ["import { HWProvider } from '@multiversx/sdk-hw-provider/out';\nimport { BigNumber } from 'bignumber.js';\n\nimport { ACCOUNTS_ENDPOINT } from 'apiCalls';\nimport { IEventBus } from 'lib/sdkDappUi';\nimport { LedgerConnectStateManager } from 'managers/internal/LedgerConnectStateManager/LedgerConnectStateManager';\nimport { getExplorerAddress } from 'methods/network/getExplorerAddress';\nimport { ProviderTypeEnum } from 'providers/types/providerFactory.types';\nimport { setLedgerAccount } from 'store/actions';\nimport { setLedgerLogin } from 'store/actions/loginInfo/loginInfoActions';\nimport { getExplorerLink } from 'utils/transactions/getExplorerLink';\n\nimport { getAuthTokenText } from './getAuthTokenText';\nimport { updateAccountsList } from './updateAccountsList';\nimport {\n LedgerConfigType,\n LedgerLoginType\n} from '../types/ledgerProvider.types';\n\ninterface IGetLedgerLogin {\n options?: {\n callbackUrl?: string;\n token?: string;\n };\n config: LedgerConfigType;\n provider: HWProvider | null;\n eventBus?: IEventBus | null;\n login: LedgerLoginType | null;\n}\n\ninterface ISelectedAccount {\n address: string;\n signature: string;\n addressIndex: number;\n}\n\nexport async function authenticateLedgerAccount({\n options,\n config,\n provider,\n login\n}: IGetLedgerLogin) {\n const manager = LedgerConnectStateManager.getInstance();\n\n const explorerAddress = getExplorerAddress();\n\n const authData = getAuthTokenText({\n loginToken: options?.token,\n version: config.version\n });\n\n const accountsListProps = {\n manager,\n provider\n };\n\n // refresh account list\n await updateAccountsList(accountsListProps);\n\n // cycle through accounts until user makes a choice\n const selectedAccount = await new Promise<ISelectedAccount>(async function (\n resolve,\n reject\n ) {\n async function handleGoToPage(page: number) {\n const addressesPerPage = manager ? manager.addressesPerPage ?? 1 : 1;\n const startIndex = new BigNumber(page - 1).times(addressesPerPage);\n\n manager?.updateStartIndex(Math.max(0, parseInt(startIndex.toString())));\n await updateAccountsList(accountsListProps);\n }\n\n async function handleAccessWallet(payload: {\n addressIndex: number;\n selectedAddress: string;\n }) {\n if (!provider || !login) {\n return;\n }\n\n manager?.updateConfirmScreen({\n ...authData,\n selectedAddress: payload.selectedAddress,\n explorerLink: getExplorerLink({\n to: `/${ACCOUNTS_ENDPOINT}/${payload.selectedAddress}`,\n explorerAddress\n })\n });\n\n try {\n const loginInfo = options?.token\n ? await provider.tokenLogin({\n token: Buffer.from(`${options?.token}{}`),\n addressIndex: payload.addressIndex\n })\n : await login({\n addressIndex: payload.addressIndex\n });\n\n manager.unsubscribeFromAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n });\n\n resolve({\n address: loginInfo.address,\n signature: loginInfo.signature\n ? loginInfo.signature.toString('hex')\n : '',\n addressIndex: payload.addressIndex\n });\n } catch (err) {\n console.error('User rejected login:', err);\n\n const shouldGoBack = Boolean(manager?.getConfirmScreenData());\n if (shouldGoBack) {\n await updateAccountsList(accountsListProps);\n }\n }\n }\n\n async function handleCancel() {\n await updateAccountsList(accountsListProps);\n manager.unsubscribeFromAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n });\n reject('User cancelled login');\n }\n\n manager.subscribeToAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n });\n });\n\n const { version, dataEnabled } = config;\n\n // login is finished, data can be persisted in the store\n setLedgerLogin({\n index: selectedAccount.addressIndex,\n loginType: ProviderTypeEnum.ledger\n });\n\n setLedgerAccount({\n address: selectedAccount.address,\n index: selectedAccount.addressIndex,\n version,\n hasContractDataEnabled: dataEnabled\n });\n\n return {\n address: selectedAccount.address,\n signature: selectedAccount.signature\n };\n}\n"],
|
|
5
|
+
"mappings": "iXACA,OAAS,aAAAA,MAAiB,eAmC1B,eAAsBC,EAA0B,CAC9C,QAAAC,EACA,OAAAC,EACA,SAAAC,EACA,MAAAC,CACF,EAAoB,CAClB,IAAMC,EAAUC,EAA0B,YAAY,EAEhDC,EAAkBC,EAAmB,EAErCC,EAAWC,EAAiB,CAChC,WAAYT,GAAS,MACrB,QAASC,EAAO,OAClB,CAAC,EAEKS,EAAoB,CACxB,QAAAN,EACA,SAAAF,CACF,EAGA,MAAMS,EAAmBD,CAAiB,EAG1C,IAAME,EAAkB,MAAM,IAAI,QAA0B,eAC1DC,EACAC,EACA,CACA,eAAeC,EAAeC,EAAc,CAC1C,IAAMC,EAAmBb,EAAUA,EAAQ,kBAAoB,EAAI,EAC7Dc,EAAa,IAAIC,EAAUH,EAAO,CAAC,EAAE,MAAMC,CAAgB,EAEjEb,GAAS,iBAAiB,KAAK,IAAI,EAAG,SAASc,EAAW,SAAS,CAAC,CAAC,CAAC,EACtE,MAAMP,EAAmBD,CAAiB,CAC5C,CAEA,eAAeU,EAAmBC,EAG/B,CACD,GAAI,GAACnB,GAAY,CAACC,GAIlB,CAAAC,GAAS,oBAAoB,CAC3B,GAAGI,EACH,gBAAiBa,EAAQ,gBACzB,aAAcC,EAAgB,CAC5B,GAAI,IAAIC,CAAiB,IAAIF,EAAQ,eAAe,GACpD,gBAAAf,CACF,CAAC,CACH,CAAC,EAED,GAAI,CACF,IAAMkB,EAAYxB,GAAS,MACvB,MAAME,EAAS,WAAW,CACxB,MAAO,OAAO,KAAK,GAAGF,GAAS,KAAK,IAAI,EACxC,aAAcqB,EAAQ,YACxB,CAAC,EACD,MAAMlB,EAAM,CACV,aAAckB,EAAQ,YACxB,CAAC,EAELjB,EAAQ,0BAA0B,CAChC,aAAAqB,EACA,mBAAAL,EACA,eAAAL,CACF,CAAC,EAEDF,EAAQ,CACN,QAASW,EAAU,QACnB,UAAWA,EAAU,UACjBA,EAAU,UAAU,SAAS,KAAK,EAClC,GACJ,aAAcH,EAAQ,YACxB,CAAC,CACH,OAASK,EAAK,CACZ,QAAQ,MAAM,uBAAwBA,CAAG,EAEpB,EAAQtB,GAAS,qBAAqB,GAEzD,MAAMO,EAAmBD,CAAiB,CAE9C,EACF,CAEA,eAAee,GAAe,CAC5B,MAAMd,EAAmBD,CAAiB,EAC1CN,EAAQ,0BAA0B,CAChC,aAAAqB,EACA,mBAAAL,EACA,eAAAL,CACF,CAAC,EACDD,EAAO,sBAAsB,CAC/B,CAEAV,EAAQ,sBAAsB,CAC5B,aAAAqB,EACA,mBAAAL,EACA,eAAAL,CACF,CAAC,CACH,CAAC,EAEK,CAAE,QAAAY,EAAS,YAAAC,CAAY,EAAI3B,EAGjC,OAAA4B,EAAe,CACb,MAAOjB,EAAgB,aACvB,UAAWkB,EAAiB,MAC9B,CAAC,EAEDC,EAAiB,CACf,QAASnB,EAAgB,QACzB,MAAOA,EAAgB,aACvB,QAAAe,EACA,uBAAwBC,CAC1B,CAAC,EAEM,CACL,QAAShB,EAAgB,QACzB,UAAWA,EAAgB,SAC7B,CACF",
|
|
6
|
+
"names": ["BigNumber", "authenticateLedgerAccount", "options", "config", "provider", "login", "manager", "LedgerConnectStateManager", "explorerAddress", "getExplorerAddress", "authData", "getAuthTokenText", "accountsListProps", "updateAccountsList", "selectedAccount", "resolve", "reject", "handleGoToPage", "page", "addressesPerPage", "startIndex", "BigNumber", "handleAccessWallet", "payload", "getExplorerLink", "ACCOUNTS_ENDPOINT", "loginInfo", "handleCancel", "err", "version", "dataEnabled", "setLedgerLogin", "ProviderTypeEnum", "setLedgerAccount"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-4TBVQD27.mjs";import{q as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-4TBVQD27.mjs";import{q as o}from"./chunk-VJN2RF4O.mjs";var C=t=>o().setState(({config:e})=>{e.nativeAuthConfig=t},!1,{type:"setNativeAuthConfig",payload:{value:t}}),c=t=>o().setState(({config:e})=>{e.websocketStatus=t},!1,{type:"setWebsocketStatus",payload:{value:t}}),f=t=>o().setState(({config:e})=>{let a=t.walletConnectV2RelayAddress||n.walletConnectV2RelayAddress,l=t.walletConnectDeepLink||n.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:l,walletConnectV2RelayAddress:a}},!1,{type:"setWalletConnectConfig",payload:{value:t}});export{C as a,c as b,f as c};
|
|
2
|
+
//# sourceMappingURL=chunk-RXQEMX7U.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{x as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{x as n}from"./chunk-GEPV5HLA.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-SBQYWA6T.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-ZVAP4GAJ.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-SPP2AXFW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-SPP2AXFW.mjs";import{a}from"./chunk-ND5SC5UK.mjs";import{a as u}from"./chunk-7KOIS7OQ.mjs";import{c as n}from"./chunk-HM3DDWL2.mjs";import{a as s}from"./chunk-KXJUK6CN.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-TAA22QOF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as t}from"./chunk-VJN2RF4O.mjs";import{d as e}from"./chunk-7VHTZYM2.mjs";import{x as r}from"./chunk-KD2IQ32V.mjs";import i from"axios";var c=async(s,a={apiAddress:""})=>{let{data:o}=await i.get(`${a.apiAddress||e(t())}/${r}`,{params:{hashes:s.join(","),withScResults:!0}});return o};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TC5SHARG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-A2OUGIST.mjs";import{a as c}from"./chunk-I3MK6KZJ.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-TEIODZEN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-3IZTM5SH.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-U22RR2MN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-JICJ7JNX.mjs";import{a as e}from"./chunk-ND5SC5UK.mjs";import{a as i}from"./chunk-6R2WFQ7U.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-UB3WTGGF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-BMBBSWIO.mjs";import{a as u}from"./chunk-LHLSK6R3.mjs";import{a as l}from"./chunk-WCEZVGFB.mjs";import{s as f}from"./chunk-VJN2RF4O.mjs";import{c as T}from"./chunk-UERJ6AKK.mjs";import{f as h,g as d}from"./chunk-7VHTZYM2.mjs";var I=r=>r.sort((n,t)=>t.timestamp-n.timestamp),M=async({transactions:r,...n})=>{let t=n.store??f(),o=[],i=[];if(r.forEach(s=>{let e=u(s.hash,t);e?o.push(e):i.push(s.hash)}),i.length===0)return I(o);let c=r.map(s=>({...s,txHash:s.hash})),g=c.map(s=>s.txHash),p=i.filter(s=>!g.includes(s));if(p.length>0){let e=r.filter(a=>p.includes(a.hash)).map(a=>({...a,txHash:a.hash,price:0,status:"pending",gasUsed:0,miniBlockHash:"",receiverShard:0,round:0,senderShard:0,timestamp:Date.now()}));c.push(...e)}let m=new Map;return o.forEach(s=>{let e=s.hash;e&&m.set(String(e),s)}),c.forEach(s=>{let e=l({transaction:s,address:T(t),explorerAddress:d(t),egldLabel:h(t)});e.status!=="pending"&&S({key:`transaction-${s.txHash}`,value:e}),m.set(s.txHash,e)}),I(Array.from(m.values()))};export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UK2P24V6.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a,f as p}from"./chunk-UERJ6AKK.mjs";import{f as l}from"./chunk-VNLGNNIL.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as a,f as p}from"./chunk-UERJ6AKK.mjs";import{f as l}from"./chunk-VNLGNNIL.mjs";import{a as d,b as y}from"./chunk-NLRDRI7Q.mjs";import{a as I}from"./chunk-3TQYETUQ.mjs";import{a as k}from"./chunk-KRWR77QE.mjs";import{b as T}from"./chunk-A7FTKX2A.mjs";import{a as c,b as g}from"./chunk-WZGG2YKQ.mjs";import{a as m,b as f}from"./chunk-M7BM6QPB.mjs";import{a as L}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as v}from"./chunk-NB7A4C7L.mjs";import{c as s}from"./chunk-NTEMINYA.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=c,e.loginInfo=m,e.transactions=d,e.toasts=S};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=p(e),n=l(e),{address:i,publicKey:M}=a(e);if(i&&M!==new s(i).toHex()&&A(e),!t)return;if(n==null){w(H());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var W=(e,t)=>{C(e)};var z=e=>{let t=J(V(h(N((...n)=>({network:x(...n),account:g(...n),loginInfo:f(...n),config:L(...n),transactions:y(...n),toasts:u(...n),cache:T(...n),ui:v(...n)})),{name:"sdk-dapp-store",storage:O(e)}),{name:"sdk-dapp"}));return t.subscribe(W),t},r,D=e=>{r=e},o=()=>(r||D(z(()=>new k)),r),le=(e=I)=>{let t=z(e);return D(t),t},se=()=>o().getState();var me=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,{type:"setProviderType",payload:{value:e}}),fe=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,{type:"setTokenLogin",payload:{value:e}}),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,{type:"setLoginToken",payload:{value:e}}),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,{type:"setTokenLoginSignature",payload:{value:e}}),de=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,{type:"setWalletConnectLogin",payload:{value:e}}),ye=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,{type:"setLedgerLogin",payload:{value:e}}),xe=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{me as a,fe as b,Se as c,ue as d,de as e,ye as f,xe as g,E as h,b as i,A as j,H as k,w as l,C as m,W as n,z as o,D as p,o as q,le as r,se as s};
|
|
2
|
+
//# sourceMappingURL=chunk-VJN2RF4O.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as e}from"./chunk-VJN2RF4O.mjs";import{b as o}from"./chunk-7VHTZYM2.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VTPHR6O5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-3IZTM5SH.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-VVMACGAC.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.ts"],
|
|
4
|
-
"sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\n\nimport { MvxLedgerConnect } from 'lib/sdkDappUI.components';\nimport { UnlockPanelEventsEnum } from 'managers/UnlockPanelManager/UnlockPanelManager.types';\nimport {\n IAccountScreenData,\n ILedgerAccount,\n ILedgerConnectPanelData,\n IConnectScreenData,\n IConfirmScreenData\n} from 'providers/strategies/LedgerProviderStrategy/types/ledger.types';\nimport { LedgerConnectEventsEnum } from './types';\nimport { UIBaseManager } from '../UIBaseManager/UIBaseManager';\n\ntype AuthEventsParams = {\n handleCancel: () => Promise<void>;\n handleAccessWallet: (payload: {\n addressIndex: number;\n selectedAddress: string;\n }) => Promise<void>;\n handleGoToPage: (page: number) => Promise<void>;\n};\n\ntype ProviderInitEventsParams = {\n handleRetry: () => void;\n handleCancel: () => void;\n};\n\nexport class LedgerConnectStateManager extends UIBaseManager<\n MvxLedgerConnect,\n ILedgerConnectPanelData,\n LedgerConnectEventsEnum\n> {\n private static instance: LedgerConnectStateManager;\n\n public static getInstance(): LedgerConnectStateManager {\n if (!LedgerConnectStateManager.instance) {\n LedgerConnectStateManager.instance = new LedgerConnectStateManager();\n }\n return LedgerConnectStateManager.instance;\n }\n\n public readonly addressesPerPage = 10;\n\n private allAccounts: ILedgerAccount[] = [];\n\n // first screen data\n private initialConnectScreenData: IConnectScreenData = {};\n private connectScreenData: IConnectScreenData = {\n ...this.initialConnectScreenData\n };\n\n // second screen data\n private initialAccountScreenData: IAccountScreenData = {\n accounts: this.allAccounts,\n startIndex: 0,\n addressesPerPage: this.addressesPerPage,\n isLoading: true\n };\n\n private accountScreenData: IAccountScreenData = {\n ...this.initialAccountScreenData\n };\n\n // third screen data\n private initialConfirmScreenData: IConfirmScreenData = {\n selectedAddress: '',\n explorerLink: ''\n };\n\n private confirmScreenData: IConfirmScreenData = {\n ...this.initialConfirmScreenData\n };\n\n protected initialData: ILedgerConnectPanelData = {\n connectScreenData: this.initialConnectScreenData,\n accountScreenData: this.initialAccountScreenData,\n confirmScreenData: this.initialConfirmScreenData\n };\n\n constructor() {\n super({\n uiDataUpdateEvent: LedgerConnectEventsEnum.DATA_UPDATE,\n uiTag: UITagsEnum.LEDGER_CONNECT\n });\n this.data = this.getInitialData();\n }\n\n public updateAllAccounts(accounts: ILedgerAccount[]): void {\n this.allAccounts = accounts;\n this.accountScreenData.accounts = accounts;\n }\n\n public updateStartIndex(startIndex: number): void {\n this.accountScreenData.startIndex = startIndex;\n }\n\n public updateConnectScreen(members: Partial<IConnectScreenData>): void {\n this.connectScreenData = {\n ...this.connectScreenData,\n ...members\n };\n\n this.data.confirmScreenData = null;\n this.data.accountScreenData = null;\n this.data.connectScreenData = this.connectScreenData;\n this.notifyDataUpdate();\n }\n\n public updateAccountScreen(members: Partial<IAccountScreenData>): void {\n this.accountScreenData = {\n ...this.accountScreenData,\n ...members\n };\n this.data.confirmScreenData = null;\n this.data.accountScreenData = this.accountScreenData;\n this.notifyDataUpdate();\n }\n\n public updateConfirmScreen(members: Partial<IConfirmScreenData>): void {\n this.confirmScreenData = {\n ...this.confirmScreenData,\n ...members\n };\n this.data.accountScreenData = null;\n this.data.confirmScreenData = this.confirmScreenData;\n this.notifyDataUpdate();\n }\n\n public getAccountScreenData(): IAccountScreenData | null {\n return this.data.accountScreenData;\n }\n\n public getConfirmScreenData(): IConfirmScreenData | null {\n return this.data.confirmScreenData;\n }\n\n public getAllAccounts(): ILedgerAccount[] {\n return this.allAccounts;\n }\n\n public subscribeToProviderInit({\n handleRetry,\n handleCancel\n }: ProviderInitEventsParams): void {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.subscribe(\n LedgerConnectEventsEnum.CONNECT_DEVICE,\n handleRetry\n );\n this.eventBus.subscribe(LedgerConnectEventsEnum.CLOSE, handleCancel);\n this.eventBus.subscribe(\n LedgerConnectEventsEnum.UI_DISCONNECTED,\n this.destroy.bind(this)\n );\n }\n\n public unsubscribeFromProviderInit({\n handleRetry,\n handleCancel\n }: ProviderInitEventsParams): void {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.unsubscribe(\n LedgerConnectEventsEnum.CONNECT_DEVICE,\n handleRetry\n );\n this.eventBus.unsubscribe(LedgerConnectEventsEnum.CLOSE, handleCancel);\n this.eventBus.unsubscribe(\n LedgerConnectEventsEnum.UI_DISCONNECTED,\n this.destroy.bind(this)\n );\n }\n\n public subscribeToAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n }: AuthEventsParams) {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.subscribe(LedgerConnectEventsEnum.CLOSE, handleCancel);\n\n this.eventBus.subscribe(\n LedgerConnectEventsEnum.ACCESS_WALLET,\n handleAccessWallet\n );\n this.eventBus.subscribe(LedgerConnectEventsEnum.GO_TO_PAGE, handleGoToPage);\n }\n public unsubscribeFromAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n }: AuthEventsParams) {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.unsubscribe(LedgerConnectEventsEnum.CLOSE, handleCancel);\n\n this.eventBus.unsubscribe(\n LedgerConnectEventsEnum.ACCESS_WALLET,\n handleAccessWallet\n );\n this.eventBus.unsubscribe(\n LedgerConnectEventsEnum.GO_TO_PAGE,\n handleGoToPage\n );\n }\n\n public handleClose() {\n if (this.anchor) {\n this.anchor?.dispatchEvent(\n new CustomEvent(UnlockPanelEventsEnum.ANCHOR_CLOSE, {\n composed: false,\n bubbles: false\n })\n );\n } else {\n this.destroy();\n }\n }\n\n protected resetData(): void {\n this.accountScreenData = { ...this.initialAccountScreenData };\n this.confirmScreenData = { ...this.initialConfirmScreenData };\n this.connectScreenData = { ...this.initialConnectScreenData };\n super.resetData();\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.subscribe(\n LedgerConnectEventsEnum.CLOSE,\n this.handleClose.bind(this)\n );\n }\n}\n"],
|
|
5
|
-
"mappings": "yCA4BO,IAAMA,EAAN,MAAMC,UAAkCC,CAI7C,CAgDA,aAAc,CACZ,MAAM,CACJ,gCACA,0BACF,CAAC,EA1CH,KAAgB,iBAAmB,GAEnC,KAAQ,YAAgC,CAAC,EAGzC,KAAQ,yBAA+C,CAAC,EACxD,KAAQ,kBAAwC,CAC9C,GAAG,KAAK,wBACV,EAGA,KAAQ,yBAA+C,CACrD,SAAU,KAAK,YACf,WAAY,EACZ,iBAAkB,KAAK,iBACvB,UAAW,EACb,EAEA,KAAQ,kBAAwC,CAC9C,GAAG,KAAK,wBACV,EAGA,KAAQ,yBAA+C,CACrD,gBAAiB,GACjB,aAAc,EAChB,EAEA,KAAQ,kBAAwC,CAC9C,GAAG,KAAK,wBACV,EAEA,KAAU,YAAuC,CAC/C,kBAAmB,KAAK,yBACxB,kBAAmB,KAAK,yBACxB,kBAAmB,KAAK,wBAC1B,EAOE,KAAK,KAAO,KAAK,eAAe,CAClC,CAnDA,OAAc,aAAyC,CACrD,OAAKD,EAA0B,WAC7BA,EAA0B,SAAW,IAAIA,GAEpCA,EAA0B,QACnC,CAgDO,kBAAkBE,EAAkC,CACzD,KAAK,YAAcA,EACnB,KAAK,kBAAkB,SAAWA,CACpC,CAEO,iBAAiBC,EAA0B,CAChD,KAAK,kBAAkB,WAAaA,CACtC,CAEO,oBAAoBC,EAA4C,CACrE,KAAK,kBAAoB,CACvB,GAAG,KAAK,kBACR,GAAGA,CACL,EAEA,KAAK,KAAK,kBAAoB,KAC9B,KAAK,KAAK,kBAAoB,KAC9B,KAAK,KAAK,kBAAoB,KAAK,kBACnC,KAAK,iBAAiB,CACxB,CAEO,oBAAoBA,EAA4C,CACrE,KAAK,kBAAoB,CACvB,GAAG,KAAK,kBACR,GAAGA,CACL,EACA,KAAK,KAAK,kBAAoB,KAC9B,KAAK,KAAK,kBAAoB,KAAK,kBACnC,KAAK,iBAAiB,CACxB,CAEO,oBAAoBA,EAA4C,CACrE,KAAK,kBAAoB,CACvB,GAAG,KAAK,kBACR,GAAGA,CACL,EACA,KAAK,KAAK,kBAAoB,KAC9B,KAAK,KAAK,kBAAoB,KAAK,kBACnC,KAAK,iBAAiB,CACxB,CAEO,sBAAkD,CACvD,OAAO,KAAK,KAAK,iBACnB,CAEO,sBAAkD,CACvD,OAAO,KAAK,KAAK,iBACnB,CAEO,gBAAmC,CACxC,OAAO,KAAK,WACd,CAEO,wBAAwB,CAC7B,YAAAC,EACA,aAAAC,CACF,EAAmC,CAC5B,KAAK,WAIV,KAAK,SAAS,2BAEZD,CACF,EACA,KAAK,SAAS,kBAAyCC,CAAY,EACnE,KAAK,SAAS,4BAEZ,KAAK,QAAQ,KAAK,IAAI,CACxB,EACF,CAEO,4BAA4B,CACjC,YAAAD,EACA,aAAAC,CACF,EAAmC,CAC5B,KAAK,WAIV,KAAK,SAAS,6BAEZD,CACF,EACA,KAAK,SAAS,oBAA2CC,CAAY,EACrE,KAAK,SAAS,8BAEZ,KAAK,QAAQ,KAAK,IAAI,CACxB,EACF,CAEO,sBAAsB,CAC3B,aAAAA,EACA,mBAAAC,EACA,eAAAC,CACF,EAAqB,CACd,KAAK,WAIV,KAAK,SAAS,kBAAyCF,CAAY,EAEnE,KAAK,SAAS,0BAEZC,CACF,EACA,KAAK,SAAS,uBAA8CC,CAAc,EAC5E,CACO,0BAA0B,CAC/B,aAAAF,EACA,mBAAAC,EACA,eAAAC,CACF,EAAqB,CACd,KAAK,WAIV,KAAK,SAAS,oBAA2CF,CAAY,EAErE,KAAK,SAAS,4BAEZC,CACF,EACA,KAAK,SAAS,yBAEZC,CACF,
|
|
4
|
+
"sourcesContent": ["import { UITagsEnum } from 'constants/UITags.enum';\n\nimport { MvxLedgerConnect } from 'lib/sdkDappUI.components';\nimport { UnlockPanelEventsEnum } from 'managers/UnlockPanelManager/UnlockPanelManager.types';\nimport {\n IAccountScreenData,\n ILedgerAccount,\n ILedgerConnectPanelData,\n IConnectScreenData,\n IConfirmScreenData\n} from 'providers/strategies/LedgerProviderStrategy/types/ledger.types';\nimport { LedgerConnectEventsEnum } from './types';\nimport { UIBaseManager } from '../UIBaseManager/UIBaseManager';\n\ntype AuthEventsParams = {\n handleCancel: () => Promise<void>;\n handleAccessWallet: (payload: {\n addressIndex: number;\n selectedAddress: string;\n }) => Promise<void>;\n handleGoToPage: (page: number) => Promise<void>;\n};\n\ntype ProviderInitEventsParams = {\n handleRetry: () => void;\n handleCancel: () => void;\n};\n\nexport class LedgerConnectStateManager extends UIBaseManager<\n MvxLedgerConnect,\n ILedgerConnectPanelData,\n LedgerConnectEventsEnum\n> {\n private static instance: LedgerConnectStateManager;\n\n public static getInstance(): LedgerConnectStateManager {\n if (!LedgerConnectStateManager.instance) {\n LedgerConnectStateManager.instance = new LedgerConnectStateManager();\n }\n return LedgerConnectStateManager.instance;\n }\n\n public readonly addressesPerPage = 10;\n\n private allAccounts: ILedgerAccount[] = [];\n\n // first screen data\n private initialConnectScreenData: IConnectScreenData = {};\n private connectScreenData: IConnectScreenData = {\n ...this.initialConnectScreenData\n };\n\n // second screen data\n private initialAccountScreenData: IAccountScreenData = {\n accounts: this.allAccounts,\n startIndex: 0,\n addressesPerPage: this.addressesPerPage,\n isLoading: true\n };\n\n private accountScreenData: IAccountScreenData = {\n ...this.initialAccountScreenData\n };\n\n // third screen data\n private initialConfirmScreenData: IConfirmScreenData = {\n selectedAddress: '',\n explorerLink: ''\n };\n\n private confirmScreenData: IConfirmScreenData = {\n ...this.initialConfirmScreenData\n };\n\n protected initialData: ILedgerConnectPanelData = {\n connectScreenData: this.initialConnectScreenData,\n accountScreenData: this.initialAccountScreenData,\n confirmScreenData: this.initialConfirmScreenData\n };\n\n constructor() {\n super({\n uiDataUpdateEvent: LedgerConnectEventsEnum.DATA_UPDATE,\n uiTag: UITagsEnum.LEDGER_CONNECT\n });\n this.data = this.getInitialData();\n }\n\n public updateAllAccounts(accounts: ILedgerAccount[]): void {\n this.allAccounts = accounts;\n this.accountScreenData.accounts = accounts;\n }\n\n public updateStartIndex(startIndex: number): void {\n this.accountScreenData.startIndex = startIndex;\n }\n\n public updateConnectScreen(members: Partial<IConnectScreenData>): void {\n this.connectScreenData = {\n ...this.connectScreenData,\n ...members\n };\n\n this.data.confirmScreenData = null;\n this.data.accountScreenData = null;\n this.data.connectScreenData = this.connectScreenData;\n this.notifyDataUpdate();\n }\n\n public updateAccountScreen(members: Partial<IAccountScreenData>): void {\n this.accountScreenData = {\n ...this.accountScreenData,\n ...members\n };\n this.data.confirmScreenData = null;\n this.data.accountScreenData = this.accountScreenData;\n this.notifyDataUpdate();\n }\n\n public updateConfirmScreen(members: Partial<IConfirmScreenData>): void {\n this.confirmScreenData = {\n ...this.confirmScreenData,\n ...members\n };\n this.data.accountScreenData = null;\n this.data.confirmScreenData = this.confirmScreenData;\n this.notifyDataUpdate();\n }\n\n public getAccountScreenData(): IAccountScreenData | null {\n return this.data.accountScreenData;\n }\n\n public getConfirmScreenData(): IConfirmScreenData | null {\n return this.data.confirmScreenData;\n }\n\n public getAllAccounts(): ILedgerAccount[] {\n return this.allAccounts;\n }\n\n public subscribeToProviderInit({\n handleRetry,\n handleCancel\n }: ProviderInitEventsParams): void {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.subscribe(\n LedgerConnectEventsEnum.CONNECT_DEVICE,\n handleRetry\n );\n this.eventBus.subscribe(LedgerConnectEventsEnum.CLOSE, handleCancel);\n this.eventBus.subscribe(\n LedgerConnectEventsEnum.UI_DISCONNECTED,\n this.destroy.bind(this)\n );\n }\n\n public unsubscribeFromProviderInit({\n handleRetry,\n handleCancel\n }: ProviderInitEventsParams): void {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.unsubscribe(\n LedgerConnectEventsEnum.CONNECT_DEVICE,\n handleRetry\n );\n this.eventBus.unsubscribe(LedgerConnectEventsEnum.CLOSE, handleCancel);\n this.eventBus.unsubscribe(\n LedgerConnectEventsEnum.UI_DISCONNECTED,\n this.destroy.bind(this)\n );\n }\n\n public subscribeToAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n }: AuthEventsParams) {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.subscribe(LedgerConnectEventsEnum.CLOSE, handleCancel);\n\n this.eventBus.subscribe(\n LedgerConnectEventsEnum.ACCESS_WALLET,\n handleAccessWallet\n );\n this.eventBus.subscribe(LedgerConnectEventsEnum.GO_TO_PAGE, handleGoToPage);\n }\n public unsubscribeFromAuthEvents({\n handleCancel,\n handleAccessWallet,\n handleGoToPage\n }: AuthEventsParams) {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.unsubscribe(LedgerConnectEventsEnum.CLOSE, handleCancel);\n\n this.eventBus.unsubscribe(\n LedgerConnectEventsEnum.ACCESS_WALLET,\n handleAccessWallet\n );\n this.eventBus.unsubscribe(\n LedgerConnectEventsEnum.GO_TO_PAGE,\n handleGoToPage\n );\n\n this.resetData();\n }\n\n public handleClose() {\n if (this.anchor) {\n this.anchor?.dispatchEvent(\n new CustomEvent(UnlockPanelEventsEnum.ANCHOR_CLOSE, {\n composed: false,\n bubbles: false\n })\n );\n } else {\n this.destroy();\n }\n }\n\n protected resetData(): void {\n this.accountScreenData = { ...this.initialAccountScreenData };\n this.confirmScreenData = { ...this.initialConfirmScreenData };\n this.connectScreenData = { ...this.initialConnectScreenData };\n this.allAccounts = [];\n super.resetData();\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.subscribe(\n LedgerConnectEventsEnum.CLOSE,\n this.handleClose.bind(this)\n );\n }\n}\n"],
|
|
5
|
+
"mappings": "yCA4BO,IAAMA,EAAN,MAAMC,UAAkCC,CAI7C,CAgDA,aAAc,CACZ,MAAM,CACJ,gCACA,0BACF,CAAC,EA1CH,KAAgB,iBAAmB,GAEnC,KAAQ,YAAgC,CAAC,EAGzC,KAAQ,yBAA+C,CAAC,EACxD,KAAQ,kBAAwC,CAC9C,GAAG,KAAK,wBACV,EAGA,KAAQ,yBAA+C,CACrD,SAAU,KAAK,YACf,WAAY,EACZ,iBAAkB,KAAK,iBACvB,UAAW,EACb,EAEA,KAAQ,kBAAwC,CAC9C,GAAG,KAAK,wBACV,EAGA,KAAQ,yBAA+C,CACrD,gBAAiB,GACjB,aAAc,EAChB,EAEA,KAAQ,kBAAwC,CAC9C,GAAG,KAAK,wBACV,EAEA,KAAU,YAAuC,CAC/C,kBAAmB,KAAK,yBACxB,kBAAmB,KAAK,yBACxB,kBAAmB,KAAK,wBAC1B,EAOE,KAAK,KAAO,KAAK,eAAe,CAClC,CAnDA,OAAc,aAAyC,CACrD,OAAKD,EAA0B,WAC7BA,EAA0B,SAAW,IAAIA,GAEpCA,EAA0B,QACnC,CAgDO,kBAAkBE,EAAkC,CACzD,KAAK,YAAcA,EACnB,KAAK,kBAAkB,SAAWA,CACpC,CAEO,iBAAiBC,EAA0B,CAChD,KAAK,kBAAkB,WAAaA,CACtC,CAEO,oBAAoBC,EAA4C,CACrE,KAAK,kBAAoB,CACvB,GAAG,KAAK,kBACR,GAAGA,CACL,EAEA,KAAK,KAAK,kBAAoB,KAC9B,KAAK,KAAK,kBAAoB,KAC9B,KAAK,KAAK,kBAAoB,KAAK,kBACnC,KAAK,iBAAiB,CACxB,CAEO,oBAAoBA,EAA4C,CACrE,KAAK,kBAAoB,CACvB,GAAG,KAAK,kBACR,GAAGA,CACL,EACA,KAAK,KAAK,kBAAoB,KAC9B,KAAK,KAAK,kBAAoB,KAAK,kBACnC,KAAK,iBAAiB,CACxB,CAEO,oBAAoBA,EAA4C,CACrE,KAAK,kBAAoB,CACvB,GAAG,KAAK,kBACR,GAAGA,CACL,EACA,KAAK,KAAK,kBAAoB,KAC9B,KAAK,KAAK,kBAAoB,KAAK,kBACnC,KAAK,iBAAiB,CACxB,CAEO,sBAAkD,CACvD,OAAO,KAAK,KAAK,iBACnB,CAEO,sBAAkD,CACvD,OAAO,KAAK,KAAK,iBACnB,CAEO,gBAAmC,CACxC,OAAO,KAAK,WACd,CAEO,wBAAwB,CAC7B,YAAAC,EACA,aAAAC,CACF,EAAmC,CAC5B,KAAK,WAIV,KAAK,SAAS,2BAEZD,CACF,EACA,KAAK,SAAS,kBAAyCC,CAAY,EACnE,KAAK,SAAS,4BAEZ,KAAK,QAAQ,KAAK,IAAI,CACxB,EACF,CAEO,4BAA4B,CACjC,YAAAD,EACA,aAAAC,CACF,EAAmC,CAC5B,KAAK,WAIV,KAAK,SAAS,6BAEZD,CACF,EACA,KAAK,SAAS,oBAA2CC,CAAY,EACrE,KAAK,SAAS,8BAEZ,KAAK,QAAQ,KAAK,IAAI,CACxB,EACF,CAEO,sBAAsB,CAC3B,aAAAA,EACA,mBAAAC,EACA,eAAAC,CACF,EAAqB,CACd,KAAK,WAIV,KAAK,SAAS,kBAAyCF,CAAY,EAEnE,KAAK,SAAS,0BAEZC,CACF,EACA,KAAK,SAAS,uBAA8CC,CAAc,EAC5E,CACO,0BAA0B,CAC/B,aAAAF,EACA,mBAAAC,EACA,eAAAC,CACF,EAAqB,CACd,KAAK,WAIV,KAAK,SAAS,oBAA2CF,CAAY,EAErE,KAAK,SAAS,4BAEZC,CACF,EACA,KAAK,SAAS,yBAEZC,CACF,EAEA,KAAK,UAAU,EACjB,CAEO,aAAc,CACf,KAAK,OACP,KAAK,QAAQ,cACX,IAAI,2BAAgD,CAClD,SAAU,GACV,QAAS,EACX,CAAC,CACH,EAEA,KAAK,QAAQ,CAEjB,CAEU,WAAkB,CAC1B,KAAK,kBAAoB,CAAE,GAAG,KAAK,wBAAyB,EAC5D,KAAK,kBAAoB,CAAE,GAAG,KAAK,wBAAyB,EAC5D,KAAK,kBAAoB,CAAE,GAAG,KAAK,wBAAyB,EAC5D,KAAK,YAAc,CAAC,EACpB,MAAM,UAAU,CAClB,CAEA,MAAgB,qBAAsB,CAC/B,KAAK,UAIV,KAAK,SAAS,kBAEZ,KAAK,YAAY,KAAK,IAAI,CAC5B,CACF,CACF",
|
|
6
6
|
"names": ["LedgerConnectStateManager", "_LedgerConnectStateManager", "UIBaseManager", "accounts", "startIndex", "members", "handleRetry", "handleCancel", "handleAccessWallet", "handleGoToPage"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as r}from"./chunk-VJN2RF4O.mjs";import{b as e}from"./chunk-7VHTZYM2.mjs";var d=s=>{let o=e(r()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YBEBQWOE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-DLWDO7M6.mjs";import{d as v}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-DLWDO7M6.mjs";import{d as v}from"./chunk-JH7DXVOH.mjs";import{w as a}from"./chunk-GEPV5HLA.mjs";import{s as n}from"./chunk-VJN2RF4O.mjs";import{d as s}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as d}from"./chunk-FDKQ5GBZ.mjs";async function S(){let t=c(),m=d(),e=s(n()),o=m||t?i.webview:e,p=Object.values(i).includes(e);if(e&&!p&&(o=e),!o)return;let r=await v.create({type:o});if(!r)throw new Error("Provider not found");if(t||o===i.webview&&r.isInitialized())try{await r.login()}catch(f){console.warn("Failed to login with provider",r.getType(),f)}a(r)}export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZHRGANG5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-RXQEMX7U.mjs";import{d as m,e as l}from"./chunk-CO55WDEX.mjs";import{q as a}from"./chunk-VJN2RF4O.mjs";import{b as r}from"./chunk-7VHTZYM2.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var A=3e3,g=3,w=500,E=500,f="batchUpdated",p="connect",N="connect_error",b="disconnect";async function M(i){let{apiAddress:k,websocketUrl:I}=r(a().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let o=null,n=null,c=e=>{t.status=e,u(e)},d=e=>{o&&clearTimeout(o),o=setTimeout(()=>{m(e)},E)},C=e=>{n&&clearTimeout(n),n=setTimeout(()=>{l(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(b),e.close(),console.log("Websocket disconnected.")),c("not_initialized"),t.instance=null,o&&clearTimeout(o),n&&clearTimeout(n)},S=async()=>{c("pending");let e=I??await T(k);if(!e){c("not_initialized");return}t.instance=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:g,reconnectionDelay:w,timeout:A,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),c("completed")}),t.instance.on(N,s=>{console.warn("Websocket connect error: ",s.message)}),t.instance.on(b,s=>{console.warn("Websocket disconnected: ",s),c("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await S(),{closeConnection:W}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZVAP4GAJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-VJGOUAZ2.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-VJGOUAZ2.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-HA5UXXYU.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-6R2WFQ7U.mjs";import"../../__chunks__/chunk-HM3DDWL2.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-PKDR5ERF.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-LJX4MW7B.mjs";import"../../__chunks__/chunk-KXJUK6CN.mjs";export{a as getScamAddressData};
|
|
2
2
|
//# sourceMappingURL=getScamAddressData.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-YBEBQWOE.mjs";import"../../__chunks__/chunk-VJN2RF4O.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-3TQYETUQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-KXJUK6CN.mjs";export{a as getCleanApiAddress};
|
|
2
2
|
//# sourceMappingURL=getCleanApiAddress.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-HAHEJ5MG.mjs";import"../../__chunks__/chunk-YBEBQWOE.mjs";import"../../__chunks__/chunk-VJN2RF4O.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-3TQYETUQ.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-KXJUK6CN.mjs";export{a as getGasStationMetadataFromApi};
|
|
2
2
|
//# sourceMappingURL=getGasStationMetadata.mjs.map
|
package/out/apiCalls/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../__chunks__/chunk-YV7ZJBAY.mjs";import"../__chunks__/chunk-
|
|
1
|
+
import"../__chunks__/chunk-YV7ZJBAY.mjs";import"../__chunks__/chunk-K5MJ4FMD.mjs";import{a as F}from"../__chunks__/chunk-BF2EIXYA.mjs";import"../__chunks__/chunk-DXRSXWLQ.mjs";import"../__chunks__/chunk-INRKVOET.mjs";import"../__chunks__/chunk-6ET5BDZH.mjs";import{a as G}from"../__chunks__/chunk-D2JYGLAC.mjs";import"../__chunks__/chunk-ZFXAT6MD.mjs";import{a as H}from"../__chunks__/chunk-Q2Q4XN4M.mjs";import{a as D}from"../__chunks__/chunk-YK7T6MBD.mjs";import{a as E}from"../__chunks__/chunk-KMJMQEXI.mjs";import{a as B,b as C}from"../__chunks__/chunk-72VXBZOB.mjs";import{a as A}from"../__chunks__/chunk-3GGBXXXJ.mjs";import{a as z}from"../__chunks__/chunk-O7LCTC4K.mjs";import"../__chunks__/chunk-VJN2RF4O.mjs";import"../__chunks__/chunk-T4FRQ4JG.mjs";import"../__chunks__/chunk-UTWIKUIK.mjs";import"../__chunks__/chunk-UERJ6AKK.mjs";import"../__chunks__/chunk-KPK72MOE.mjs";import"../__chunks__/chunk-7VHTZYM2.mjs";import"../__chunks__/chunk-VNLGNNIL.mjs";import"../__chunks__/chunk-6JM4DPOH.mjs";import"../__chunks__/chunk-ZODTYAYF.mjs";import"../__chunks__/chunk-NLRDRI7Q.mjs";import"../__chunks__/chunk-DKX6JUT6.mjs";import"../__chunks__/chunk-3TQYETUQ.mjs";import"../__chunks__/chunk-KRWR77QE.mjs";import"../__chunks__/chunk-B7YCKWDU.mjs";import"../__chunks__/chunk-HDJOER66.mjs";import"../__chunks__/chunk-A7FTKX2A.mjs";import"../__chunks__/chunk-XKU5QBXG.mjs";import"../__chunks__/chunk-WZGG2YKQ.mjs";import"../__chunks__/chunk-JMC7CMTU.mjs";import"../__chunks__/chunk-S2B2ZKIJ.mjs";import"../__chunks__/chunk-T2YPFNVM.mjs";import"../__chunks__/chunk-M7BM6QPB.mjs";import"../__chunks__/chunk-5N4F5T5L.mjs";import"../__chunks__/chunk-CYCS3K6Q.mjs";import"../__chunks__/chunk-YMPZDHKF.mjs";import"../__chunks__/chunk-VKEESSBI.mjs";import"../__chunks__/chunk-2DNGCNYM.mjs";import"../__chunks__/chunk-SQVKVA7X.mjs";import"../__chunks__/chunk-I24YBVHK.mjs";import"../__chunks__/chunk-NB7A4C7L.mjs";import"../__chunks__/chunk-PJWJZHIS.mjs";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../__chunks__/chunk-KD2IQ32V.mjs";import"../__chunks__/chunk-NTEMINYA.mjs";import"../__chunks__/chunk-3FXHIV6O.mjs";import"../__chunks__/chunk-PKDR5ERF.mjs";import"../__chunks__/chunk-MGFIOCA4.mjs";import"../__chunks__/chunk-GGBMHKR4.mjs";import"../__chunks__/chunk-NWJYEKI2.mjs";import"../__chunks__/chunk-KXJUK6CN.mjs";export{a as ACCOUNTS_ENDPOINT,b as ADDRESS_ENDPOINT,c as BLOCKS_ENDPOINT,d as CODE_ENDPOINT,e as COLLECTIONS_ENDPOINT,f as CONFIG_ENDPOINT,g as CONTRACTS_ENDPOINT,h as ECONOMICS_ENDPOINT,i as IDENTITIES_ENDPOINT,j as KEYS_ENDPOINT,k as LOCKED_ACCOUNTS_ENDPOINT,l as LOGS_ENDPOINT,m as MINIBLOCKS_ENDPOINT,n as NETWORK_CONFIG_ENDPOINT,o as NFTS_ENDPOINT,p as NODES_ENDPOINT,q as PROVIDERS_ENDPOINT,r as ROLES_ENDPOINT,s as SC_RESULTS_ENDPOINT,t as STAKE_ENDPOINT,u as TOKENS_ENDPOINT,w as TRANSACTIONS_BATCH,v as TRANSACTIONS_COUNT_ENDPOINT,x as TRANSACTIONS_ENDPOINT,y as TRANSFERS_ENDPOINT,B as accountFetcher,G as axiosFetcher,z as axiosInstance,C as getAccountFromApi,A as getCleanApiAddress,E as getNetworkConfigFromApi,D as getServerConfiguration,F as getTokenDetails,H as getWebsocketUrl};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|