@multiversx/sdk-dapp 5.6.18 → 5.6.20-alpha.0
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-C5FVAJRJ.mjs → chunk-2RSRUJSV.mjs} +2 -2
- package/out/__chunks__/{chunk-MORBVWN4.mjs → chunk-3HD2CXWE.mjs} +2 -2
- package/out/__chunks__/{chunk-7HZE5WEG.mjs → chunk-3OHZJZM5.mjs} +2 -2
- package/out/__chunks__/{chunk-5E5P6CWQ.mjs → chunk-3PTKW4LF.mjs} +2 -2
- package/out/__chunks__/{chunk-L7VHBKZV.mjs → chunk-46YZ7Y2T.mjs} +2 -2
- package/out/__chunks__/chunk-47RJIDIN.mjs +2 -0
- package/out/__chunks__/{chunk-QBZAZ6WB.mjs → chunk-4FOZRDSW.mjs} +2 -2
- package/out/__chunks__/chunk-4NKHY5XS.mjs +2 -0
- package/out/__chunks__/{chunk-IBJVJ7HA.mjs → chunk-5KLLOKB4.mjs} +2 -2
- package/out/__chunks__/{chunk-5J4IWE7Q.mjs → chunk-5VGRYPM5.mjs} +2 -2
- package/out/__chunks__/{chunk-2GMLC2DS.mjs → chunk-5WVS7VJG.mjs} +2 -2
- package/out/__chunks__/{chunk-LLQX4NJE.mjs → chunk-6346YLJQ.mjs} +2 -2
- package/out/__chunks__/chunk-6I34GCGC.mjs +2 -0
- package/out/__chunks__/{chunk-MFSHDWXD.mjs → chunk-6Z43SG4O.mjs} +2 -2
- package/out/__chunks__/{chunk-BCZWHACO.mjs → chunk-74DVVP65.mjs} +2 -2
- package/out/__chunks__/chunk-74NILQ3S.mjs +2 -0
- package/out/__chunks__/{chunk-V2A5JSZZ.mjs → chunk-7AVSUQH2.mjs} +2 -2
- package/out/__chunks__/{chunk-JG44VGD5.mjs → chunk-7T2OAXRF.mjs} +2 -2
- package/out/__chunks__/chunk-7YK3KFCN.mjs +2 -0
- package/out/__chunks__/{chunk-WKWRP3PH.mjs.map → chunk-7YK3KFCN.mjs.map} +1 -1
- package/out/__chunks__/{chunk-UCOMADXM.mjs → chunk-AF2TYIBP.mjs} +2 -2
- package/out/__chunks__/chunk-ARAI6ITI.mjs +2 -0
- package/out/__chunks__/{chunk-VBOB5XLW.mjs.map → chunk-ARAI6ITI.mjs.map} +2 -2
- package/out/__chunks__/{chunk-KBMUH73C.mjs → chunk-ARAXAEPL.mjs} +2 -2
- package/out/__chunks__/{chunk-XY2LABQZ.mjs → chunk-AYUUIY5N.mjs} +2 -2
- package/out/__chunks__/{chunk-ARGJ3V72.mjs → chunk-B4LU3NB2.mjs} +2 -2
- package/out/__chunks__/{chunk-NUZA2DSN.mjs → chunk-CLAZOFOH.mjs} +2 -2
- package/out/__chunks__/{chunk-DJEEPI7Q.mjs → chunk-CUKCY37G.mjs} +2 -2
- package/out/__chunks__/{chunk-5FC73VMP.mjs → chunk-DB2DTNNZ.mjs} +2 -2
- package/out/__chunks__/{chunk-64HF66JN.mjs → chunk-DCS6J75Z.mjs} +2 -2
- package/out/__chunks__/chunk-DFFSFXKG.mjs +2 -0
- package/out/__chunks__/{chunk-5OI5GIVQ.mjs → chunk-DX3EFAHB.mjs} +2 -2
- package/out/__chunks__/{chunk-TFJT3FQL.mjs → chunk-DZIQXQ6A.mjs} +2 -2
- package/out/__chunks__/{chunk-BBIFIN3W.mjs → chunk-EFEIPKED.mjs} +2 -2
- package/out/__chunks__/{chunk-DKSNT5LJ.mjs → chunk-EVNJNZSJ.mjs} +2 -2
- package/out/__chunks__/{chunk-6ISK5EQR.mjs → chunk-F7KWKJCR.mjs} +2 -2
- package/out/__chunks__/{chunk-VRVJA2UC.mjs → chunk-FHGUKZWL.mjs} +2 -2
- package/out/__chunks__/{chunk-GG4GZJTT.mjs → chunk-GB4MIW4W.mjs} +2 -2
- package/out/__chunks__/{chunk-TMIEU2IG.mjs → chunk-GSS7ZLEJ.mjs} +2 -2
- package/out/__chunks__/chunk-HTDIU4U4.mjs +2 -0
- package/out/__chunks__/{chunk-JKM3XYCF.mjs → chunk-I3LTT4T4.mjs} +2 -2
- package/out/__chunks__/{chunk-DNNIE76H.mjs → chunk-IDUYFLRG.mjs} +2 -2
- package/out/__chunks__/{chunk-IYSSPSVB.mjs → chunk-IIUFSBY5.mjs} +2 -2
- package/out/__chunks__/{chunk-RJU2PPYB.mjs → chunk-J5WAW47C.mjs} +2 -2
- package/out/__chunks__/{chunk-47AYFELF.mjs → chunk-JR3JJKPV.mjs} +2 -2
- package/out/__chunks__/{chunk-R25SH3F4.mjs → chunk-JXMOO4M7.mjs} +2 -2
- package/out/__chunks__/{chunk-XZIQUMYI.mjs → chunk-KKGRZUCZ.mjs} +2 -2
- package/out/__chunks__/{chunk-676S3ZXO.mjs → chunk-KSOAST6M.mjs} +2 -2
- package/out/__chunks__/{chunk-YPWANG47.mjs → chunk-KUMQTKRS.mjs} +2 -2
- package/out/__chunks__/{chunk-TQIR4R7A.mjs → chunk-LAAOF62F.mjs} +2 -2
- package/out/__chunks__/{chunk-D5EZPRUN.mjs → chunk-LQIJIWD3.mjs} +2 -2
- package/out/__chunks__/chunk-LR477NZM.mjs +2 -0
- package/out/__chunks__/{chunk-OJ4YA7YX.mjs → chunk-M243ZP7I.mjs} +2 -2
- package/out/__chunks__/{chunk-TBB5SD2F.mjs → chunk-M2MEOLYX.mjs} +2 -2
- package/out/__chunks__/{chunk-ZTVEY37I.mjs → chunk-M6PXJPZW.mjs} +2 -2
- package/out/__chunks__/{chunk-KLKVV2YX.mjs → chunk-MBENYESU.mjs} +2 -2
- package/out/__chunks__/{chunk-3OOEFQUC.mjs → chunk-MBG5OS5M.mjs} +2 -2
- package/out/__chunks__/{chunk-IP5UKLWO.mjs → chunk-MCFDW36D.mjs} +2 -2
- package/out/__chunks__/{chunk-ZHWSTQEI.mjs → chunk-MK62XXK5.mjs} +2 -2
- package/out/__chunks__/chunk-N2Y547WG.mjs +2 -0
- package/out/__chunks__/chunk-NI4UDAUT.mjs +2 -0
- package/out/__chunks__/{chunk-L34PPMTI.mjs → chunk-OOW6GLRT.mjs} +2 -2
- package/out/__chunks__/{chunk-UWO2OMPK.mjs → chunk-P45VXLIF.mjs} +2 -2
- package/out/__chunks__/chunk-PBU3STFG.mjs +2 -0
- package/out/__chunks__/{chunk-CIEMKL2O.mjs → chunk-PFEQ2TEA.mjs} +2 -2
- package/out/__chunks__/{chunk-VIQEU6ZA.mjs → chunk-PIPPA6OQ.mjs} +2 -2
- package/out/__chunks__/{chunk-ZCTSX5A6.mjs → chunk-PUVH4JSW.mjs} +2 -2
- package/out/__chunks__/chunk-PVEBIM2W.mjs +2 -0
- package/out/__chunks__/{chunk-U3UMCTU6.mjs.map → chunk-PVEBIM2W.mjs.map} +2 -2
- package/out/__chunks__/{chunk-E4YZV652.mjs → chunk-Q4K4HV5Z.mjs} +2 -2
- package/out/__chunks__/{chunk-I2C5F23X.mjs → chunk-R4JBDKTF.mjs} +2 -2
- package/out/__chunks__/{chunk-NXOMGRWS.mjs → chunk-R6MOYFCV.mjs} +2 -2
- package/out/__chunks__/{chunk-4L7KZTJE.mjs → chunk-RGHFZKYN.mjs} +2 -2
- package/out/__chunks__/{chunk-JNW3DEA3.mjs → chunk-RWNNWGSG.mjs} +2 -2
- package/out/__chunks__/{chunk-QRNPEDC4.mjs → chunk-SCCZ4R6S.mjs} +2 -2
- package/out/__chunks__/{chunk-IMKE7N5T.mjs → chunk-SOEI3RNC.mjs} +2 -2
- package/out/__chunks__/{chunk-YNPRZVAK.mjs → chunk-SUSROENL.mjs} +2 -2
- package/out/__chunks__/{chunk-RSJBTSUT.mjs → chunk-T2BG5HOH.mjs} +2 -2
- package/out/__chunks__/chunk-T7LBAZIQ.mjs +2 -0
- package/out/__chunks__/chunk-TWTOQ25W.mjs +2 -0
- package/out/__chunks__/{chunk-H3ASBOLT.mjs → chunk-UW4PJFRI.mjs} +2 -2
- package/out/__chunks__/chunk-VDOZLH5L.mjs +2 -0
- package/out/__chunks__/{chunk-JPUDVVZY.mjs → chunk-VMRRADTX.mjs} +2 -2
- package/out/__chunks__/{chunk-B2B2TDUL.mjs → chunk-VSSYVKAX.mjs} +2 -2
- package/out/__chunks__/{chunk-UMPEMJY4.mjs → chunk-VULHPG3K.mjs} +2 -2
- package/out/__chunks__/chunk-W65CPFBJ.mjs +2 -0
- package/out/__chunks__/{chunk-P5XJESSE.mjs → chunk-X6WI7N5G.mjs} +2 -2
- package/out/__chunks__/{chunk-CY6KN5YG.mjs → chunk-XYKEIVI7.mjs} +2 -2
- package/out/__chunks__/{chunk-GSUU2PBX.mjs → chunk-Z42ZX3UD.mjs} +2 -2
- package/out/__chunks__/{chunk-UC5L5622.mjs → chunk-Z4FV6BRP.mjs} +2 -2
- package/out/__chunks__/{chunk-3RXJSE37.mjs → chunk-ZSIBDPK4.mjs} +2 -2
- package/out/__chunks__/{chunk-PES47F5C.mjs → chunk-ZWM4G3HM.mjs} +2 -2
- package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
- 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/economics/getEconomics.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.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/storage.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.cjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.cjs.map +2 -2
- package/out/controllers/FormatAmountController/FormatAmountController.mjs +1 -1
- package/out/controllers/FormatAmountController/index.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/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/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/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/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/gasStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.map +2 -2
- 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.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.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/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/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/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/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/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/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/nativeAuth/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/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/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/fetchAccount.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.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/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/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/package.json +1 -1
- package/out/__chunks__/chunk-264QHLQ6.mjs +0 -2
- package/out/__chunks__/chunk-2YFKORNQ.mjs +0 -2
- package/out/__chunks__/chunk-37XA46ZD.mjs +0 -2
- package/out/__chunks__/chunk-4SG5GRKG.mjs +0 -2
- package/out/__chunks__/chunk-64MTSCFM.mjs +0 -2
- package/out/__chunks__/chunk-A6ZFXHEW.mjs +0 -2
- package/out/__chunks__/chunk-G4EDYHSU.mjs +0 -2
- package/out/__chunks__/chunk-IRBY2LR6.mjs +0 -2
- package/out/__chunks__/chunk-KME5MTYJ.mjs +0 -2
- package/out/__chunks__/chunk-RQCJMSAJ.mjs +0 -2
- package/out/__chunks__/chunk-U3UMCTU6.mjs +0 -2
- package/out/__chunks__/chunk-VBOB5XLW.mjs +0 -2
- package/out/__chunks__/chunk-VI5FQEZN.mjs +0 -2
- package/out/__chunks__/chunk-VKA6F7QH.mjs +0 -2
- package/out/__chunks__/chunk-WKWRP3PH.mjs +0 -2
- package/out/__chunks__/chunk-YANGTW26.mjs +0 -2
- package/out/__chunks__/chunk-ZTQ2OP6M.mjs +0 -2
- /package/out/__chunks__/{chunk-C5FVAJRJ.mjs.map → chunk-2RSRUJSV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MORBVWN4.mjs.map → chunk-3HD2CXWE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7HZE5WEG.mjs.map → chunk-3OHZJZM5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5E5P6CWQ.mjs.map → chunk-3PTKW4LF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L7VHBKZV.mjs.map → chunk-46YZ7Y2T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-G4EDYHSU.mjs.map → chunk-47RJIDIN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QBZAZ6WB.mjs.map → chunk-4FOZRDSW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4SG5GRKG.mjs.map → chunk-4NKHY5XS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IBJVJ7HA.mjs.map → chunk-5KLLOKB4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5J4IWE7Q.mjs.map → chunk-5VGRYPM5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2GMLC2DS.mjs.map → chunk-5WVS7VJG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LLQX4NJE.mjs.map → chunk-6346YLJQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RQCJMSAJ.mjs.map → chunk-6I34GCGC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MFSHDWXD.mjs.map → chunk-6Z43SG4O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BCZWHACO.mjs.map → chunk-74DVVP65.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZTQ2OP6M.mjs.map → chunk-74NILQ3S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-V2A5JSZZ.mjs.map → chunk-7AVSUQH2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JG44VGD5.mjs.map → chunk-7T2OAXRF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UCOMADXM.mjs.map → chunk-AF2TYIBP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KBMUH73C.mjs.map → chunk-ARAXAEPL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XY2LABQZ.mjs.map → chunk-AYUUIY5N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ARGJ3V72.mjs.map → chunk-B4LU3NB2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NUZA2DSN.mjs.map → chunk-CLAZOFOH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DJEEPI7Q.mjs.map → chunk-CUKCY37G.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5FC73VMP.mjs.map → chunk-DB2DTNNZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-64HF66JN.mjs.map → chunk-DCS6J75Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-64MTSCFM.mjs.map → chunk-DFFSFXKG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5OI5GIVQ.mjs.map → chunk-DX3EFAHB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TFJT3FQL.mjs.map → chunk-DZIQXQ6A.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BBIFIN3W.mjs.map → chunk-EFEIPKED.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DKSNT5LJ.mjs.map → chunk-EVNJNZSJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6ISK5EQR.mjs.map → chunk-F7KWKJCR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VRVJA2UC.mjs.map → chunk-FHGUKZWL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GG4GZJTT.mjs.map → chunk-GB4MIW4W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TMIEU2IG.mjs.map → chunk-GSS7ZLEJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-37XA46ZD.mjs.map → chunk-HTDIU4U4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JKM3XYCF.mjs.map → chunk-I3LTT4T4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DNNIE76H.mjs.map → chunk-IDUYFLRG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IYSSPSVB.mjs.map → chunk-IIUFSBY5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RJU2PPYB.mjs.map → chunk-J5WAW47C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-47AYFELF.mjs.map → chunk-JR3JJKPV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R25SH3F4.mjs.map → chunk-JXMOO4M7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XZIQUMYI.mjs.map → chunk-KKGRZUCZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-676S3ZXO.mjs.map → chunk-KSOAST6M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YPWANG47.mjs.map → chunk-KUMQTKRS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TQIR4R7A.mjs.map → chunk-LAAOF62F.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D5EZPRUN.mjs.map → chunk-LQIJIWD3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VKA6F7QH.mjs.map → chunk-LR477NZM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OJ4YA7YX.mjs.map → chunk-M243ZP7I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TBB5SD2F.mjs.map → chunk-M2MEOLYX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZTVEY37I.mjs.map → chunk-M6PXJPZW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KLKVV2YX.mjs.map → chunk-MBENYESU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3OOEFQUC.mjs.map → chunk-MBG5OS5M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IP5UKLWO.mjs.map → chunk-MCFDW36D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZHWSTQEI.mjs.map → chunk-MK62XXK5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IRBY2LR6.mjs.map → chunk-N2Y547WG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2YFKORNQ.mjs.map → chunk-NI4UDAUT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L34PPMTI.mjs.map → chunk-OOW6GLRT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UWO2OMPK.mjs.map → chunk-P45VXLIF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-264QHLQ6.mjs.map → chunk-PBU3STFG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CIEMKL2O.mjs.map → chunk-PFEQ2TEA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VIQEU6ZA.mjs.map → chunk-PIPPA6OQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZCTSX5A6.mjs.map → chunk-PUVH4JSW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E4YZV652.mjs.map → chunk-Q4K4HV5Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I2C5F23X.mjs.map → chunk-R4JBDKTF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NXOMGRWS.mjs.map → chunk-R6MOYFCV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4L7KZTJE.mjs.map → chunk-RGHFZKYN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JNW3DEA3.mjs.map → chunk-RWNNWGSG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QRNPEDC4.mjs.map → chunk-SCCZ4R6S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IMKE7N5T.mjs.map → chunk-SOEI3RNC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YNPRZVAK.mjs.map → chunk-SUSROENL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RSJBTSUT.mjs.map → chunk-T2BG5HOH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YANGTW26.mjs.map → chunk-T7LBAZIQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A6ZFXHEW.mjs.map → chunk-TWTOQ25W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H3ASBOLT.mjs.map → chunk-UW4PJFRI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VI5FQEZN.mjs.map → chunk-VDOZLH5L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JPUDVVZY.mjs.map → chunk-VMRRADTX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B2B2TDUL.mjs.map → chunk-VSSYVKAX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UMPEMJY4.mjs.map → chunk-VULHPG3K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KME5MTYJ.mjs.map → chunk-W65CPFBJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P5XJESSE.mjs.map → chunk-X6WI7N5G.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CY6KN5YG.mjs.map → chunk-XYKEIVI7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GSUU2PBX.mjs.map → chunk-Z42ZX3UD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UC5L5622.mjs.map → chunk-Z4FV6BRP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3RXJSE37.mjs.map → chunk-ZSIBDPK4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PES47F5C.mjs.map → chunk-ZWM4G3HM.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-7T2OAXRF.mjs";import o from"lodash.isempty";var e=async({transactionsSessions:t})=>{if(o(t))return[];let i=r(t);return s({transactions:i})};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2RSRUJSV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-SOEI3RNC.mjs";import{a as e}from"./chunk-DFFSFXKG.mjs";import{d as s}from"./chunk-V5ZSFCKJ.mjs";import{s as i}from"./chunk-MBENYESU.mjs";var c=class{constructor(r){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async r=>{if(!this._login)throw new Error("Provider is not initialized.");let o=await this._login(r);if(!o?.address)throw new Error("Provider is not initialized.");return{...o,address:o.address,signature:o.signature??""}};this.initializeAddress=()=>{if(this.address)return;let r=e();r&&(this.address=r)};this.cancelAction=void 0;this.address=r??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(r,o){throw new Error("Method not implemented.")}async login(r){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let o=new AbortController;this.loginAbortController=o;let n=o.signal;try{let t=new Promise((m,p)=>{n.addEventListener("abort",()=>{p(new Error("Login cancelled"))})}),d=await Promise.race([this.loginOperation(r),t]);return this.loginAbortController=null,d}catch(t){throw this.loginAbortController=null,t}}async initSignState(){if(s(i())?.isSigningUiEnabled===!1)return{onClose:async()=>({}),manager:null};let{onClose:o,manager:n}=await l({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return n.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),n.updateData({name:a[t],type:t}),{onClose:o,manager:n}}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3HD2CXWE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-CUKCY37G.mjs";import{s}from"./chunk-MBENYESU.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions?.[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3OHZJZM5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-M243ZP7I.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3PTKW4LF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-XYKEIVI7.mjs";import{q as M}from"./chunk-MBENYESU.mjs";import{a as c}from"./chunk-FK6DWWZF.mjs";import{d as u,f as p,g as l}from"./chunk-DA76AK4I.mjs";import{a as d}from"./chunk-7YK3KFCN.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){d.addEventListener("message",this.handleMessage)}stopListening(){d.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case r.finalizeHandshakeRequest:this.handshake({event:e});break;case r.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case r.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case r.signTransactionsRequest:this.signTransactions({event:e});break;case n.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=c(this.store.getState()),o=g(),i=`${t}${a}`,y=new l({address:new p(t),data:new Uint8Array(Buffer.from(i))}),f=(await o.signMessage(y))?.signature??"";e.source?.postMessage({type:n.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&(await this.handleLoginCancelled(),e.source?.postMessage({type:n.cancelResponse,payload:null},{targetOrigin:e.origin}))}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:n.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=c(this.store.getState()),{message:t}=s;try{let o=new l({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(o))?.signature??"";e.source?.postMessage({type:n.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(i=>u.newFromPlainObject(i)),o=await s.signTransactions(t);e.source?.postMessage({type:n.signTransactionsResponse,payload:{data:o.map(i=>i.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-46YZ7Y2T.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-RGHFZKYN.mjs";import{a as u}from"./chunk-3OHZJZM5.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-CUKCY37G.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4FOZRDSW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-7YK3KFCN.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-5KLLOKB4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-Q4K4HV5Z.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-5VGRYPM5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-SUBC3H4J.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-SUBC3H4J.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as n}from"./chunk-LR477NZM.mjs";import{b as e}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-MBENYESU.mjs";var w=async r=>{let{isGuarded:i}=n();if(!s({isGuarded:i,transactions:r}))return r;let a=r[0].sender.toBech32(),{walletAddress:d}=e(o());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5WVS7VJG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-IWP36NOU.mjs";import{a as w}from"./chunk-LGGG3HW7.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";import{q as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-IWP36NOU.mjs";import{a as w}from"./chunk-LGGG3HW7.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";import{q as u}from"./chunk-MBENYESU.mjs";import{a as l}from"./chunk-SQVKVA7X.mjs";var e=o=>u().setState(({network:t})=>{t.network={...t.network,...o}},!1,{type:"initializeNetworkConfig",payload:{value:o}});var y=async({customNetworkConfig:o={},environment:t})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=t&&t in i,p=n?i[t]:{},s={...l,...p,...o},r={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await c(a),f=r.roundDuration?null:await w(a);if(f!=null&&(r.roundDuration=f.erd_round_duration),m!=null){let k={...r,...m,...o};return e(k),k}}return e(r),r};export{y as a,e as b};
|
|
2
|
+
//# sourceMappingURL=chunk-6346YLJQ.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-GSS7ZLEJ.mjs";import{c as n}from"./chunk-MBENYESU.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6I34GCGC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-MBENYESU.mjs";import{o as a,u as m}from"./chunk-2JKCBTYK.mjs";async function I({tokenId:n}){let t=c(o()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=s(n),i=n,p=k?a:m;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6Z43SG4O.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-7YK3KFCN.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-74DVVP65.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-P45VXLIF.mjs";import{a as g}from"./chunk-HSF3JATH.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7AVSUQH2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-X6WI7N5G.mjs";import{f,g as l}from"./chunk-7VHTZYM2.mjs";import{a as S}from"./chunk-PBU3STFG.mjs";import{a as u}from"./chunk-4O27AVB7.mjs";import{s as h}from"./chunk-MBENYESU.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";var I=r=>r.sort((n,t)=>t.timestamp-n.timestamp),M=async({transactions:r,...n})=>{let t=n.store??h(),o=[],i=[];if(r.forEach(s=>{let e=S(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=u({transaction:s,address:T(t),explorerAddress:l(t),egldLabel:f(t)});e.status!=="pending"&&d({key:`transaction-${s.txHash}`,value:e}),m.set(s.txHash,e)}),I(Array.from(m.values()))};export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7T2OAXRF.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.6.
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.6.20-alpha.0'; // 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-Z4FV6BRP.mjs";var T=async a=>{let n=a.map(s=>s.hash),r=await e(n);return a.map(s=>{let t=r.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AF2TYIBP.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-PUVH4JSW.mjs";import{d as l,e as m}from"./chunk-RWNNWGSG.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-MBENYESU.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var S=3e3,A=3,g=500,E=500,f="batchUpdated",p="connect",N="connect_error",I="disconnect";async function M(i){let{apiAddress:b,websocketUrl:k}=a(r().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let c=null,s=null,o=e=>{t.status=e,u(e)},d=e=>{c&&clearTimeout(c),c=setTimeout(()=>{l(e)},E)},C=e=>{s&&clearTimeout(s),s=setTimeout(()=>{m(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(I),e.close(),console.log("Websocket disconnected.")),o("not_initialized"),t.instance=null,c&&clearTimeout(c),s&&clearTimeout(s)},w=async()=>{o("pending");let e="";try{e=k??await T(b)}catch(n){throw console.error("Failed to get websocket url:",n),o("not_initialized"),n}if(!e){o("not_initialized");return}t.instance=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:A,reconnectionDelay:g,timeout:S,query:{address:i},transports:["websocket"]}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),o("completed")}),t.instance.on(N,n=>{console.warn("Websocket connect error: ",n.message)}),t.instance.on(I,n=>{console.warn("Websocket disconnected: ",n),o("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await w(),{closeConnection:W}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ARAI6ITI.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/methods/initApp/websocket/initializeWebsocketConnection.ts"],
|
|
4
|
-
"sourcesContent": ["import { io } from 'socket.io-client';\nimport { getWebsocketUrl } from 'apiCalls/websocket/getWebsocketUrl';\nimport {\n WebsocketConnectionStatusEnum,\n websocketConnection\n} from 'constants/websocket.constants';\nimport {\n setWebsocketBatchEvent,\n setWebsocketEvent\n} from 'store/actions/account/accountActions';\nimport { setWebsocketStatus } from 'store/actions/config/configActions';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getStore } from 'store/store';\nimport { BatchTransactionsWSResponseType } from 'types/websocket.types';\n\nconst TIMEOUT = 3_000;\nconst RECONNECTION_ATTEMPTS = 3;\nconst RETRY_INTERVAL = 500;\nconst MESSAGE_DELAY = 500;\nconst BATCH_UPDATED_EVENT = 'batchUpdated';\nconst CONNECT = 'connect';\nconst CONNECT_ERROR = 'connect_error';\nconst DISCONNECT = 'disconnect';\n\ntype TimeoutType = ReturnType<typeof setTimeout> | null;\n\nexport async function initializeWebsocketConnection(address: string) {\n const { apiAddress, websocketUrl: customWebsocketUrl } = networkSelector(\n getStore().getState()\n );\n\n if (!address) {\n throw new Error('Websocket could not be initialized: address missing');\n }\n\n let messageTimeout: TimeoutType = null;\n let batchTimeout: TimeoutType = null;\n\n // Update socket status in store for status subscription\n const updateSocketStatus = (status: WebsocketConnectionStatusEnum) => {\n websocketConnection.status = status;\n setWebsocketStatus(status);\n };\n\n const handleMessageReceived = (message: string) => {\n if (messageTimeout) {\n clearTimeout(messageTimeout);\n }\n messageTimeout = setTimeout(() => {\n setWebsocketEvent(message);\n }, MESSAGE_DELAY);\n };\n\n const handleBatchUpdate = (data: BatchTransactionsWSResponseType) => {\n if (batchTimeout) {\n clearTimeout(batchTimeout);\n }\n batchTimeout = setTimeout(() => {\n setWebsocketBatchEvent(data);\n }, MESSAGE_DELAY);\n };\n\n const closeConnection = () => {\n const instance = websocketConnection.instance;\n if (instance) {\n instance.off(CONNECT_ERROR);\n instance.off(CONNECT);\n instance.off(BATCH_UPDATED_EVENT);\n instance.off(DISCONNECT);\n instance.close();\n console.log('Websocket disconnected.');\n }\n\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n websocketConnection.instance = null;\n\n if (messageTimeout) {\n clearTimeout(messageTimeout);\n }\n\n if (batchTimeout) {\n clearTimeout(batchTimeout);\n }\n };\n\n const initializeConnection = async () => {\n updateSocketStatus(WebsocketConnectionStatusEnum.PENDING);\n\n let websocketUrl = '';\n try {\n websocketUrl = customWebsocketUrl ?? (await getWebsocketUrl(apiAddress));\n } catch (error) {\n console.error('Failed to get websocket url:', error);\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n throw error;\n }\n\n if (!websocketUrl) {\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n return;\n }\n\n websocketConnection.instance = io(websocketUrl, {\n forceNew: true,\n reconnection: true,\n reconnectionAttempts: RECONNECTION_ATTEMPTS,\n reconnectionDelay: RETRY_INTERVAL,\n timeout: TIMEOUT,\n query: { address }\n });\n\n websocketConnection.instance.onAny(handleMessageReceived);\n\n websocketConnection.instance.on(BATCH_UPDATED_EVENT, handleBatchUpdate);\n\n websocketConnection.instance.on(CONNECT, () => {\n console.log('Websocket connected.');\n updateSocketStatus(WebsocketConnectionStatusEnum.COMPLETED);\n });\n\n websocketConnection.instance.on(CONNECT_ERROR, (error) => {\n console.warn('Websocket connect error: ', error.message);\n });\n\n websocketConnection.instance.on(DISCONNECT, (reason) => {\n console.warn('Websocket disconnected: ', reason);\n updateSocketStatus(WebsocketConnectionStatusEnum.PENDING);\n });\n };\n\n if (\n websocketConnection.status ===\n WebsocketConnectionStatusEnum.NOT_INITIALIZED &&\n !websocketConnection.instance?.active\n ) {\n await initializeConnection();\n }\n\n return {\n closeConnection\n };\n}\n"],
|
|
5
|
-
"mappings": "6PAAA,OAAS,MAAAA,MAAU,mBAenB,IAAMC,EAAU,IACVC,EAAwB,EACxBC,EAAiB,IACjBC,EAAgB,IAChBC,EAAsB,eACtBC,EAAU,UACVC,EAAgB,gBAChBC,EAAa,aAInB,eAAsBC,EAA8BC,EAAiB,CACnE,GAAM,CAAE,WAAAC,EAAY,aAAcC,CAAmB,EAAIC,EACvDC,EAAS,EAAE,SAAS,CACtB,EAEA,GAAI,CAACJ,EACH,MAAM,IAAI,MAAM,qDAAqD,EAGvE,IAAIK,EAA8B,KAC9BC,EAA4B,KAG1BC,EAAsBC,GAA0C,CACpEC,EAAoB,OAASD,EAC7BE,EAAmBF,CAAM,CAC3B,EAEMG,EAAyBC,GAAoB,CAC7CP,GACF,aAAaA,CAAc,EAE7BA,EAAiB,WAAW,IAAM,CAChCQ,EAAkBD,CAAO,CAC3B,EAAGlB,CAAa,CAClB,EAEMoB,EAAqBC,GAA0C,CAC/DT,GACF,aAAaA,CAAY,EAE3BA,EAAe,WAAW,IAAM,CAC9BU,EAAuBD,CAAI,CAC7B,EAAGrB,CAAa,CAClB,EAEMuB,EAAkB,IAAM,CAC5B,IAAMC,EAAWT,EAAoB,SACjCS,IACFA,EAAS,IAAIrB,CAAa,EAC1BqB,EAAS,IAAItB,CAAO,EACpBsB,EAAS,IAAIvB,CAAmB,EAChCuB,EAAS,IAAIpB,CAAU,EACvBoB,EAAS,MAAM,EACf,QAAQ,IAAI,yBAAyB,GAGvCX,mBAAgE,EAChEE,EAAoB,SAAW,KAE3BJ,GACF,aAAaA,CAAc,EAGzBC,GACF,aAAaA,CAAY,CAE7B,EAEMa,EAAuB,SAAY,CACvCZ,WAAwD,EAExD,IAAIa,EAAe,GACnB,GAAI,CACFA,EAAelB,GAAuB,MAAMmB,EAAgBpB,CAAU,CACxE,OAASqB,EAAO,CACd,cAAQ,MAAM,+BAAgCA,CAAK,EACnDf,mBAAgE,EAC1De,CACR,CAEA,GAAI,CAACF,EAAc,CACjBb,mBAAgE,EAChE,MACF,CAEAE,EAAoB,SAAWc,EAAGH,EAAc,CAC9C,SAAU,GACV,aAAc,GACd,qBAAsB5B,EACtB,kBAAmBC,EACnB,QAASF,EACT,MAAO,CAAE,QAAAS,CAAQ,
|
|
4
|
+
"sourcesContent": ["import { io } from 'socket.io-client';\nimport { getWebsocketUrl } from 'apiCalls/websocket/getWebsocketUrl';\nimport {\n WebsocketConnectionStatusEnum,\n websocketConnection\n} from 'constants/websocket.constants';\nimport {\n setWebsocketBatchEvent,\n setWebsocketEvent\n} from 'store/actions/account/accountActions';\nimport { setWebsocketStatus } from 'store/actions/config/configActions';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getStore } from 'store/store';\nimport { BatchTransactionsWSResponseType } from 'types/websocket.types';\n\nconst TIMEOUT = 3_000;\nconst RECONNECTION_ATTEMPTS = 3;\nconst RETRY_INTERVAL = 500;\nconst MESSAGE_DELAY = 500;\nconst BATCH_UPDATED_EVENT = 'batchUpdated';\nconst CONNECT = 'connect';\nconst CONNECT_ERROR = 'connect_error';\nconst DISCONNECT = 'disconnect';\n\ntype TimeoutType = ReturnType<typeof setTimeout> | null;\n\nexport async function initializeWebsocketConnection(address: string) {\n const { apiAddress, websocketUrl: customWebsocketUrl } = networkSelector(\n getStore().getState()\n );\n\n if (!address) {\n throw new Error('Websocket could not be initialized: address missing');\n }\n\n let messageTimeout: TimeoutType = null;\n let batchTimeout: TimeoutType = null;\n\n // Update socket status in store for status subscription\n const updateSocketStatus = (status: WebsocketConnectionStatusEnum) => {\n websocketConnection.status = status;\n setWebsocketStatus(status);\n };\n\n const handleMessageReceived = (message: string) => {\n if (messageTimeout) {\n clearTimeout(messageTimeout);\n }\n messageTimeout = setTimeout(() => {\n setWebsocketEvent(message);\n }, MESSAGE_DELAY);\n };\n\n const handleBatchUpdate = (data: BatchTransactionsWSResponseType) => {\n if (batchTimeout) {\n clearTimeout(batchTimeout);\n }\n batchTimeout = setTimeout(() => {\n setWebsocketBatchEvent(data);\n }, MESSAGE_DELAY);\n };\n\n const closeConnection = () => {\n const instance = websocketConnection.instance;\n if (instance) {\n instance.off(CONNECT_ERROR);\n instance.off(CONNECT);\n instance.off(BATCH_UPDATED_EVENT);\n instance.off(DISCONNECT);\n instance.close();\n console.log('Websocket disconnected.');\n }\n\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n websocketConnection.instance = null;\n\n if (messageTimeout) {\n clearTimeout(messageTimeout);\n }\n\n if (batchTimeout) {\n clearTimeout(batchTimeout);\n }\n };\n\n const initializeConnection = async () => {\n updateSocketStatus(WebsocketConnectionStatusEnum.PENDING);\n\n let websocketUrl = '';\n try {\n websocketUrl = customWebsocketUrl ?? (await getWebsocketUrl(apiAddress));\n } catch (error) {\n console.error('Failed to get websocket url:', error);\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n throw error;\n }\n\n if (!websocketUrl) {\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n return;\n }\n\n websocketConnection.instance = io(websocketUrl, {\n forceNew: true,\n reconnection: true,\n reconnectionAttempts: RECONNECTION_ATTEMPTS,\n reconnectionDelay: RETRY_INTERVAL,\n timeout: TIMEOUT,\n query: { address },\n transports: ['websocket']\n });\n\n websocketConnection.instance.onAny(handleMessageReceived);\n\n websocketConnection.instance.on(BATCH_UPDATED_EVENT, handleBatchUpdate);\n\n websocketConnection.instance.on(CONNECT, () => {\n console.log('Websocket connected.');\n updateSocketStatus(WebsocketConnectionStatusEnum.COMPLETED);\n });\n\n websocketConnection.instance.on(CONNECT_ERROR, (error) => {\n console.warn('Websocket connect error: ', error.message);\n });\n\n websocketConnection.instance.on(DISCONNECT, (reason) => {\n console.warn('Websocket disconnected: ', reason);\n updateSocketStatus(WebsocketConnectionStatusEnum.PENDING);\n });\n };\n\n if (\n websocketConnection.status ===\n WebsocketConnectionStatusEnum.NOT_INITIALIZED &&\n !websocketConnection.instance?.active\n ) {\n await initializeConnection();\n }\n\n return {\n closeConnection\n };\n}\n"],
|
|
5
|
+
"mappings": "6PAAA,OAAS,MAAAA,MAAU,mBAenB,IAAMC,EAAU,IACVC,EAAwB,EACxBC,EAAiB,IACjBC,EAAgB,IAChBC,EAAsB,eACtBC,EAAU,UACVC,EAAgB,gBAChBC,EAAa,aAInB,eAAsBC,EAA8BC,EAAiB,CACnE,GAAM,CAAE,WAAAC,EAAY,aAAcC,CAAmB,EAAIC,EACvDC,EAAS,EAAE,SAAS,CACtB,EAEA,GAAI,CAACJ,EACH,MAAM,IAAI,MAAM,qDAAqD,EAGvE,IAAIK,EAA8B,KAC9BC,EAA4B,KAG1BC,EAAsBC,GAA0C,CACpEC,EAAoB,OAASD,EAC7BE,EAAmBF,CAAM,CAC3B,EAEMG,EAAyBC,GAAoB,CAC7CP,GACF,aAAaA,CAAc,EAE7BA,EAAiB,WAAW,IAAM,CAChCQ,EAAkBD,CAAO,CAC3B,EAAGlB,CAAa,CAClB,EAEMoB,EAAqBC,GAA0C,CAC/DT,GACF,aAAaA,CAAY,EAE3BA,EAAe,WAAW,IAAM,CAC9BU,EAAuBD,CAAI,CAC7B,EAAGrB,CAAa,CAClB,EAEMuB,EAAkB,IAAM,CAC5B,IAAMC,EAAWT,EAAoB,SACjCS,IACFA,EAAS,IAAIrB,CAAa,EAC1BqB,EAAS,IAAItB,CAAO,EACpBsB,EAAS,IAAIvB,CAAmB,EAChCuB,EAAS,IAAIpB,CAAU,EACvBoB,EAAS,MAAM,EACf,QAAQ,IAAI,yBAAyB,GAGvCX,mBAAgE,EAChEE,EAAoB,SAAW,KAE3BJ,GACF,aAAaA,CAAc,EAGzBC,GACF,aAAaA,CAAY,CAE7B,EAEMa,EAAuB,SAAY,CACvCZ,WAAwD,EAExD,IAAIa,EAAe,GACnB,GAAI,CACFA,EAAelB,GAAuB,MAAMmB,EAAgBpB,CAAU,CACxE,OAASqB,EAAO,CACd,cAAQ,MAAM,+BAAgCA,CAAK,EACnDf,mBAAgE,EAC1De,CACR,CAEA,GAAI,CAACF,EAAc,CACjBb,mBAAgE,EAChE,MACF,CAEAE,EAAoB,SAAWc,EAAGH,EAAc,CAC9C,SAAU,GACV,aAAc,GACd,qBAAsB5B,EACtB,kBAAmBC,EACnB,QAASF,EACT,MAAO,CAAE,QAAAS,CAAQ,EACjB,WAAY,CAAC,WAAW,CAC1B,CAAC,EAEDS,EAAoB,SAAS,MAAME,CAAqB,EAExDF,EAAoB,SAAS,GAAGd,EAAqBmB,CAAiB,EAEtEL,EAAoB,SAAS,GAAGb,EAAS,IAAM,CAC7C,QAAQ,IAAI,sBAAsB,EAClCW,aAA0D,CAC5D,CAAC,EAEDE,EAAoB,SAAS,GAAGZ,EAAgByB,GAAU,CACxD,QAAQ,KAAK,4BAA6BA,EAAM,OAAO,CACzD,CAAC,EAEDb,EAAoB,SAAS,GAAGX,EAAa0B,GAAW,CACtD,QAAQ,KAAK,2BAA4BA,CAAM,EAC/CjB,WAAwD,CAC1D,CAAC,CACH,EAEA,OACEE,EAAoB,4BAEpB,CAACA,EAAoB,UAAU,QAE/B,MAAMU,EAAqB,EAGtB,CACL,gBAAAF,CACF,CACF",
|
|
6
6
|
"names": ["io", "TIMEOUT", "RECONNECTION_ATTEMPTS", "RETRY_INTERVAL", "MESSAGE_DELAY", "BATCH_UPDATED_EVENT", "CONNECT", "CONNECT_ERROR", "DISCONNECT", "initializeWebsocketConnection", "address", "apiAddress", "customWebsocketUrl", "networkSelector", "getStore", "messageTimeout", "batchTimeout", "updateSocketStatus", "status", "websocketConnection", "setWebsocketStatus", "handleMessageReceived", "message", "setWebsocketEvent", "handleBatchUpdate", "data", "setWebsocketBatchEvent", "closeConnection", "instance", "initializeConnection", "websocketUrl", "getWebsocketUrl", "error", "io", "reason"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-F7KWKJCR.mjs";import{a as g}from"./chunk-YJCTRUJT.mjs";import{a as f}from"./chunk-2JKCBTYK.mjs";import{BigNumber as p}from"bignumber.js";async function b({manager:e,provider:s,login:a,token:u,explorerAddress:m,authData:x}){let o={manager:e,provider:s};return await new Promise(async function(A,I){async function d(t){let r=e?e.addressesPerPage??1:1,l=new p(t-1).times(r);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await n(o)}async function c(t){if(!(!s||!a)){e?.updateConfirmScreen({...x,selectedAddress:t.selectedAddress,explorerLink:g({to:`/${f}/${t.selectedAddress}`,explorerAddress:m})});try{let r=u?await s.tokenLogin({token:Buffer.from(`${u}{}`),addressIndex:t.addressIndex}):await a({addressIndex:t.addressIndex});e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),A({address:r.address,signature:r.signature?r.signature.toString("hex"):"",addressIndex:t.addressIndex})}catch(r){console.error("User rejected login:",r),!!e?.getConfirmScreenData()&&await n(o)}}}async function i(){await n(o),e.unsubscribeFromAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d}),I("User cancelled login")}e.subscribeToAuthEvents({handleCancel:i,handleAccessWallet:c,handleGoToPage:d})})}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ARAXAEPL.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-MBENYESU.mjs";import{e as s}from"./chunk-FK6DWWZF.mjs";function x(n){let e=u(),o=a(e),c=s(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-AYUUIY5N.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-M6PXJPZW.mjs";import{a as c}from"./chunk-4NKHY5XS.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await a({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=l(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B4LU3NB2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-7YK3KFCN.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-CLAZOFOH.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as o}from"./chunk-MBENYESU.mjs";import{current as p}from"immer";function d({transactions:t,transactionsDisplayInfo:n,status:r,sessionInformation:s}){let a=Date.now().toString();return o().setState(({transactions:e})=>{e[a]={transactions:t,status:r,transactionsDisplayInfo:n,interpretedTransactions:{},sessionInformation:s}},!1,{type:"createTransactionsSession",payload:{value:{transactions:t,status:r,transactionsDisplayInfo:n,sessionInformation:s}}}),a}function m({sessionId:t,status:n,errorMessage:r}){o().setState(({transactions:s})=>{if(!s[t])return;let a=p(s[t]).transactionsDisplayInfo??{},e=r||a?.errorMessage;s[t].status=n,s[t].errorMessage=e,s[t].transactionsDisplayInfo={...a,errorMessage:e}},!1,{type:"updateSessionStatus",payload:{value:{sessionId:t,status:n,errorMessage:r}}})}function g({sessionId:t,transaction:n}){o().setState(({transactions:r})=>{let s=r[t]?.transactions;s!=null&&(r[t].transactions=s.map(a=>a.hash===n.hash?{...a,...n??{}}:a))},!1,{type:"updateTransactionStatus",payload:{value:{sessionId:t,transaction:n}}})}var h=()=>{o().setState(({transactions:t,toasts:n})=>{let s=Object.keys(t).filter(e=>{let c=t[e];if(!c)return!1;let{status:i}=c;return!(i==="pending"||i==="signed"||i==="sent")});s.forEach(e=>{delete t[e]});let a=n.transactionToasts.filter(e=>!s.includes(e.toastId));n.transactionToasts=a},!1,{type:"clearCompletedTransactions",payload:{value:null}})};export{d as a,m as b,g as c,h as d};
|
|
2
|
+
//# sourceMappingURL=chunk-CUKCY37G.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-6Z43SG4O.mjs";import{a as c}from"./chunk-O5PAMBB3.mjs";var l=async({receiver:n,sender:s,tokenId:i})=>{let t=null,r=null;if(!i)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await u({tokenId:i}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(s===e&&(t=e),n===e&&(r=e)),c(o[e])&&(s===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DB2DTNNZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-DFFSFXKG.mjs";import{f as e,g as s}from"./chunk-DA76AK4I.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DCS6J75Z.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-KKGRZUCZ.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-DX3EFAHB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-OOW6GLRT.mjs";import{a as l}from"./chunk-AIQMA75E.mjs";import{a as p}from"./chunk-OMT62YRR.mjs";import{a as I}from"./chunk-S5XV2COC.mjs";import{b as g}from"./chunk-R4JBDKTF.mjs";import{c as T}from"./chunk-PWAP64SN.mjs";var r={};function M({egldLabel:y,apiAddress:s,sender:t,address:e,parsedTransactionsByDataField:u}){return async o=>{if(o==null)return;let S=!t||t===e?null:await g({address:t,baseURL:s}),{transaction:a,multiTxData:A,transactionIndex:D}=o,c=T(a.data.toString()??""),d=p({data:c,multiTransactionData:A,parsedTransactionsByDataField:u}),{tokenId:f}=d,n=a.receiver.toBech32();if(t&&t!==e&&!l(S,e))throw console.error("You cannot sign transactions from a different account"),"You cannot sign transactions from a different account";let k=e!==n,x=n in r;if(n&&k&&!x){let i=await m({addressToVerify:n,baseURL:s});r={...r,...i?.scamInfo?{[n]:i.scamInfo}:{}}}let V=!!(f&&I({tokenId:f,egldLabel:y}));return{transaction:a,receiverScamInfo:r[n]?.info||null,transactionTokenInfo:d,isTokenTransaction:V,dataField:c,transactionIndex:D,needsSigning:o.needsSigning}}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DZIQXQ6A.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-CCD7PUHB.mjs";import{a as S}from"./chunk-EAJBSX6Y.mjs";import{c as r,d as a}from"./chunk-M6MN4RXG.mjs";import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-CCD7PUHB.mjs";import{a as S}from"./chunk-EAJBSX6Y.mjs";import{c as r,d as a}from"./chunk-M6MN4RXG.mjs";import{s as e}from"./chunk-MBENYESU.mjs";import{a as n}from"./chunk-FK6DWWZF.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EFEIPKED.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s,d as i,h as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s,d as i,h as o}from"./chunk-T2BG5HOH.mjs";var r=1e4,u=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=r;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let e=setTimeout(()=>{o(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;let a=setTimeout(()=>{i(t);let n=s[t];n?.()},e);this.timeoutIntervals.set(t,a)};this.stop=t=>{let e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t??r}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EVNJNZSJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-IIUFSBY5.mjs";import{a as h}from"./chunk-47RJIDIN.mjs";import{a as x}from"./chunk-N2Y547WG.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{f as g}from"./chunk-PJWJZHIS.mjs";import{a as f,f as b}from"./chunk-DA76AK4I.mjs";import y from"bignumber.js";var M=async({manager:e,provider:u})=>{let L=new f;if(!e||!u)throw new Error("Provider is not initialized.");let{network:l}=h(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await I({baseURL:l.apiAddress}),A=o=>o.index>=s&&o.index<s+e.addressesPerPage,O=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),p=r.filter(A),P=!!O[s];if(e.updateAccountScreen({isLoading:!P}),p.length>0){e.updateAccountScreen({accounts:p});return}try{let o=Math.floor(s/e.addressesPerPage),n=await u.getAccounts(o,e.addressesPerPage),S=n.map((t,c)=>{let i=L.getShardOfAddress(b.newFromBech32(t));return{address:t,balance:"...",index:c+s,shard:i}}),j=[...r,...S],B=n.map(t=>x({address:t,baseURL:l.apiAddress})),U=await Promise.all(B),d=j.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});U.forEach(t=>{if(!t||!a||!a.price)return;let c=new y(t.balance),i=c.dividedBy(y(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let N=w({amount:g({input:t.balance}),usd:a?.price});d[t.address].balance=i,d[t.address].usdValue=N});let m=Object.values(d).sort((t,c)=>t.index-c.index),E=m.filter(A);e.updateAllAccounts(m),e.updateAccountScreen({accounts:E,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-F7KWKJCR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-KKGRZUCZ.mjs";import{e}from"./chunk-QNYO7NI5.mjs";var o=class i extends r{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._gasPriceOptionMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,gasPriceOption:0,gasPriceOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){a.filter(t=>t!=null).forEach(t=>{let s=t?Number(t.gasPrice):1e9;this.updateGasPriceMap({nonce:Number(t.nonce),gasPriceOption:s,initialGasPrice:s})});let n=Number(a[0]?.gasPrice)||1e9;this.updateCommonData({gasPriceOption:n})}updateGasPriceMap({nonce:a,gasPriceOption:n,initialGasPrice:t}){this._gasPriceOptionMap[a]={...this._gasPriceOptionMap[a],gasPriceOption:n},t&&(this._gasPriceOptionMap[a].initialGasPrice=t)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,n){switch(a){case"NonFungibleESDT":this.data.nftTransaction=n,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=n,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get getGasPriceOptionMap(){return this._gasPriceOptionMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FHGUKZWL.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{l as n}from"./chunk-XYKEIVI7.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-GB4MIW4W.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-UW4PJFRI.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-GSS7ZLEJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-MBG5OS5M.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}get walletConnectData(){return{...this.data}}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-I3LTT4T4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-NI4UDAUT.mjs";import{a as p}from"./chunk-JXMOO4M7.mjs";import{a as O}from"./chunk-EVNJNZSJ.mjs";import{a as M}from"./chunk-KKGRZUCZ.mjs";import{k as I,l as F,n as N}from"./chunk-E2GGD7D4.mjs";import{a as b,b as C,d as g,e as v,g as E,h as y,i as S}from"./chunk-T2BG5HOH.mjs";import{d as B}from"./chunk-CUKCY37G.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-MBENYESU.mjs";import{a as d}from"./chunk-PFEQ2TEA.mjs";import A from"lodash.isequal";import l from"lodash.isequal";var m=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||c(),this.notificationsFeedManager=t.notificationsFeedManager||h.getInstance()}async init(){await this.subscribeToEventBusNotifications()}showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null)}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async publishTransactionToasts(t){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",t),this.hideToasts();return}if(!this.eventBus){let s=await this.createToastListElement();if(!s)return;this.eventBus=await s.getEventBus()}this.eventBus?.publish("TRANSACTION_TOAST_DATA_UPDATE",t)}async publishCustomToasts(t){this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",t)}handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}destroy(){this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[],this.notificationsFeedManager?.destroy()}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await d.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.onCloseToast),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.onCloseToast)}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}};var u=class a{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||c(),this.lifetimeManager=t?.lifetimeManager??new O,this.uiCoordinator=t?.uiCoordinator??new m({onCloseToast:this.closeToast.bind(this)})}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.uiCoordinator?.init(),this.unsubscribeFromStore=this.store.subscribe(async({toasts:s,transactions:i},{toasts:e,transactions:o})=>{let n=!l(e.transactionToasts,s.transactionToasts),r=!l(o,i);(n||r)&&await this.updateTransactionToastsList(),!l(e.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return a.instance||(a.instance=new a),a.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),i=s[t];if(!i)return!1;let{status:e}=i,o=N(e),n=F(e),r=I(e),T=n||r||o;return T?(this.successfulToastLifetime&&this.lifetimeManager.start(t),T):(this.lifetimeManager.stop(t),T)}async createTransactionToast(t,s){let i=E({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),i}async createCustomToast(t){let s=S(t);return await this.updateCustomToastList(),s}async updateTransactionToastsList(){let t=this.store.getState(),{toasts:s}=t,{pendingTransactionToasts:i,completedTransactionToasts:e}=await p({store:t});this.transactionToasts=[...i,...e];for(let o of s.transactionToasts)this.handleCompletedTransaction(o.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let e="message"in s?{...s}:{...s,instantiateToastElement:b[s.toastId]};this.customToasts.push(e),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(y(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(i=>i.toastId===t)){this.lifetimeManager.stop(t);let i=C[t];return i?.(),g(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),v()}};var D="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",h=class a extends M{constructor(s){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=s||c(),this.data={...this.initialData}}static getInstance(){return a.instance||(a.instance=new a),a.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){u.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let i=this.store.subscribe(async({toasts:e,transactions:o},{toasts:n,transactions:r})=>{(!A(n.transactionToasts,e.transactionToasts)||!A(r,o))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(D,[i]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=u.getInstance();this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s}=this.store.getState(),{pendingTransactionToasts:i}=await p();this.data.pendingTransactions=i;let e=Object.keys(s).reduce((o,n)=>(["sent","pending"].includes(String(s[n].status))||(o[n]=s[n]),o),{});this.data.historicTransactions=await w.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){B(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};export{h as a,m as b,u as c};
|
|
2
|
+
//# sourceMappingURL=chunk-IDUYFLRG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-M243ZP7I.mjs";import{h as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";async function u({url:o=e,baseURL:t}){let c=`${n(t)}/${o}`;try{let{data:r}=await i.get(c);return r}catch(r){return console.error("err fetching economics info",r),null}}export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IIUFSBY5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-PVEBIM2W.mjs";import{a as T}from"./chunk-DB2DTNNZ.mjs";import{a as p}from"./chunk-TWOVGGG2.mjs";import{a as i}from"./chunk-M3F2J3PW.mjs";import{a as k}from"./chunk-HYPARWQN.mjs";import{a as l}from"./chunk-YJCTRUJT.mjs";import{c as m}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-OQURAWR4.mjs";var g=class{static async processTransactions({address:v,egldLabel:L,explorerAddress:a,transactions:f}){let h=f.map(e=>k({address:v,explorerAddress:a,transaction:e}));return await Promise.all(h.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),c=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:D,receiverLockedAccount:x}=await T({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=p({transaction:e}),y=r?.token.type==="MetaESDT"?void 0:r?.badgeText,d=u.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??m,digits:2}),S={badge:y??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?L:"",link:l({explorerAddress:a,to:n?.tokenExplorerLink??r?.tokenExplorerLink??""}),linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:d.valueDecimal,valueInteger:d.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!x,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverShardLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:c??"",description:`${c??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!D,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:S}}))}};export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-J5WAW47C.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as a,q as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{j as a,q as o}from"./chunk-MBENYESU.mjs";import{f as p}from"./chunk-DA76AK4I.mjs";var d=()=>o().setState(a,!1,{type:"logoutAction",payload:{value:null}}),s=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{d as a,s as b};
|
|
2
|
+
//# sourceMappingURL=chunk-JR3JJKPV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-QFXS7HGL.mjs";import{j as d,k as f,l as u,n as I}from"./chunk-E2GGD7D4.mjs";import{a as l}from"./chunk-XXV6KGR4.mjs";import{a as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-QFXS7HGL.mjs";import{j as d,k as f,l as u,n as I}from"./chunk-E2GGD7D4.mjs";import{a as l}from"./chunk-XXV6KGR4.mjs";import{a as p}from"./chunk-7T2OAXRF.mjs";import{a as c}from"./chunk-NGM3AVCY.mjs";import{s as m}from"./chunk-MBENYESU.mjs";import{c as T}from"./chunk-FK6DWWZF.mjs";async function G(g){let s=g?.store??m(),n=[],a=[],y=l(s),F=c(s),C=T(s);for(let o of y.transactionToasts){let r=F[o.toastId];if(!r?.status)continue;let{status:t,transactions:P,transactionsDisplayInfo:h}=r,L=await p({transactions:P,store:s}),O=I(t),R=u(t),v=f(t),e=O||R||v,w=d(t),{startTime:x,endTime:D}=o;if(e&&a.some(b=>b.toastId===o.toastId))continue;let i=S({toastId:o.toastId,address:C,status:t,transactions:L,transactionsDisplayInfo:h,startTime:x,endTime:D});e&&a.push(i),w&&n.push(i)}return{pendingTransactionToasts:n,completedTransactionToasts:a}}export{G as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JXMOO4M7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-MBG5OS5M.mjs";import{a as t}from"./chunk-HTDIU4U4.mjs";var i=class extends n{constructor({uiDataUpdateEvent:e,uiTag:s}){super({uiDataUpdateEvent:e,uiTag:s});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}destroy(){if(this.setIsSidePanelOpen(!1),this.uiElement?.closeWithAnimation){this.uiElement?.closeWithAnimation?.().finally(()=>{super.destroy()});return}super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KKGRZUCZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-Z42ZX3UD.mjs";import{a as p}from"./chunk-ARAXAEPL.mjs";import{a as m}from"./chunk-F7KWKJCR.mjs";import{a as c}from"./chunk-WFMBEYKX.mjs";import{a as g}from"./chunk-TWTOQ25W.mjs";import{b as a}from"./chunk-RWNNWGSG.mjs";import{f as i}from"./chunk-MBENYESU.mjs";import{a as d}from"./chunk-LJX4MW7B.mjs";async function E({options:r,config:t,provider:o,login:l}){let n=s.getInstance(),L=g(),u=c({loginToken:r?.token,version:t.version});await m({manager:n,provider:o});let e=await p({manager:n,provider:o,login:l,token:r?.token,explorerAddress:L,authData:u}),{version:f,dataEnabled:T}=t;return i({index:e.addressIndex,loginType:d.ledger}),a({address:e.address,index:e.addressIndex,version:f,hasContractDataEnabled:T}),{address:e.address,signature:e.signature}}export{E as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KSOAST6M.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-DLWDO7M6.mjs";import{i as v}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-DLWDO7M6.mjs";import{i as v}from"./chunk-SUSROENL.mjs";import{k as d}from"./chunk-XYKEIVI7.mjs";import{s as a}from"./chunk-MBENYESU.mjs";import{d as n}from"./chunk-VNLGNNIL.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";import{a as s}from"./chunk-MK62XXK5.mjs";async function S(){let t=c(),m=s(),e=n(a()),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)}d(r)}export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KUMQTKRS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-CZEUFCPN.mjs";import{a as c}from"./chunk-JFP2BITI.mjs";import{i as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-CZEUFCPN.mjs";import{a as c}from"./chunk-JFP2BITI.mjs";import{i as t}from"./chunk-SUSROENL.mjs";import{a as s}from"./chunk-KKGRZUCZ.mjs";import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as a}from"./chunk-MBENYESU.mjs";var e=class e extends s{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:n}=r(a()),i=d(t.customProviders,e.allowedProviders);this.data={providers:i,walletAddress:n},await this.openUI(),this.notifyDataUpdate()};this.selectProvider=n=>{if(!this.eventBus)throw new Error("Panel not initialized. Call openUnlockPanel() first.");this.eventBus.publish("SELECT_PROVIDER",{providerType:n})};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&&await 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{if(c(e.loginHandler)){let o=await t.create({type:n,anchor:i}),l=e.token;await o.login(l?{token:l}:void 0),e.loginHandler()}else e.loginHandler({type:n,anchor:i});await this.handleCloseUI({isLoginFinished:!0})}catch(o){console.error(o),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await t.destroy(),e.onCancelLogin&&await e.onCancelLogin()};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),n.onCancelLogin&&(this.onCancelLogin=n.onCancelLogin),n.token&&(this.token=n.token),this.getInstance()}};e.loginHandler=null,e.onClose=null,e.allowedProviders=null,e.onCancelLogin=null,e.token=null;var u=e;export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LAAOF62F.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-3HD2CXWE.mjs";import{a as s}from"./chunk-LJX4MW7B.mjs";import{a as e,b as o}from"./chunk-7YK3KFCN.mjs";import{WebviewProvider as d}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var a=class extends n{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(r,i)=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(t){throw this.cancelAction(),t}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=d.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return s.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(o);return this.address&&this.setAccount({address:this.address}),r}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-LQIJIWD3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-MBENYESU.mjs";var d=s=>{let o=r(e()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-M243ZP7I.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./chunk-M6MN4RXG.mjs";import{h as o}from"./chunk-7VHTZYM2.mjs";import{s as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e}from"./chunk-M6MN4RXG.mjs";import{h as o}from"./chunk-7VHTZYM2.mjs";import{s as t}from"./chunk-MBENYESU.mjs";function m(){let r=o(t());return r?Math.max(1e3,r/2):9e4}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-M2MEOLYX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-3GRRAVW4.mjs";import{a}from"./chunk-5HEWN34K.mjs";import{l as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-3GRRAVW4.mjs";import{a}from"./chunk-5HEWN34K.mjs";import{l as c}from"./chunk-XYKEIVI7.mjs";import{a as g}from"./chunk-4NKHY5XS.mjs";import{s as e}from"./chunk-MBENYESU.mjs";import{g as n}from"./chunk-FK6DWWZF.mjs";import{e as d}from"./chunk-VNLGNNIL.mjs";import{HWProvider as P}from"@multiversx/sdk-hw-provider";async function S(s){let m=g(),t=s?.shouldInitProvider||!m,f=d(e()),o=n(e()),p=c(),i=new P;try{if(!t&&o){let u={version:o.version,dataEnabled:o.hasContractDataEnabled};return{ledgerProvider:i,ledgerConfig:u}}let r=await a({provider:p,ledgerProvider:i,ledgerLogin:f,shouldInitProvider:t}),v=await l(r);return{ledgerProvider:r,ledgerConfig:v}}catch(r){throw console.error("Could not initialize ledger app",r),r}}export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-M6PXJPZW.mjs.map
|