@multiversx/sdk-dapp 5.1.3 → 5.1.4-alpha.1
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-H3DYNUJU.mjs → chunk-2B3CQJ7O.mjs} +2 -2
- package/out/__chunks__/{chunk-KIQFGAFN.mjs → chunk-2SQW3ZE6.mjs} +2 -2
- package/out/__chunks__/{chunk-XIDZCWKE.mjs → chunk-3MFQZN6P.mjs} +2 -2
- package/out/__chunks__/{chunk-END5ZJQH.mjs → chunk-3PH6XWVJ.mjs} +2 -2
- package/out/__chunks__/chunk-3SEYG2TH.mjs +2 -0
- package/out/__chunks__/{chunk-UGUQSBY5.mjs → chunk-3ZM355SG.mjs} +2 -2
- package/out/__chunks__/chunk-4GD5ESS7.mjs +2 -0
- package/out/__chunks__/{chunk-WJXCNHT3.mjs → chunk-4H4K46HN.mjs} +2 -2
- package/out/__chunks__/{chunk-LC3EPABR.mjs → chunk-4I6XFBRI.mjs} +2 -2
- package/out/__chunks__/chunk-4PCBHSAB.mjs +2 -0
- package/out/__chunks__/{chunk-VX6FOSXG.mjs → chunk-55YZ3IRW.mjs} +2 -2
- package/out/__chunks__/chunk-5ZCTLMZK.mjs +2 -0
- package/out/__chunks__/{chunk-Y7BUJTYP.mjs → chunk-63KWCFPE.mjs} +2 -2
- package/out/__chunks__/{chunk-4AGZHXFR.mjs → chunk-64YE7QJ5.mjs} +2 -2
- package/out/__chunks__/{chunk-TSK44JFJ.mjs → chunk-6MVIMW4U.mjs} +2 -2
- package/out/__chunks__/{chunk-AYURCZHZ.mjs → chunk-7IS6C4WK.mjs} +2 -2
- package/out/__chunks__/{chunk-QLEOO5UN.mjs → chunk-7M2YZAHW.mjs} +2 -2
- package/out/__chunks__/{chunk-NA5CDQ5C.mjs → chunk-7RHFBSVM.mjs} +2 -2
- package/out/__chunks__/{chunk-4N34K4EN.mjs → chunk-A4QPQK4N.mjs} +2 -2
- package/out/__chunks__/{chunk-F4RI663J.mjs → chunk-AHF2YGLI.mjs} +2 -2
- package/out/__chunks__/{chunk-A3CEGIRB.mjs → chunk-ASFSZP4U.mjs} +2 -2
- package/out/__chunks__/{chunk-SYNNW6IN.mjs → chunk-B2CRU44C.mjs} +2 -2
- package/out/__chunks__/{chunk-QGTHGE7E.mjs → chunk-B3MJTLY7.mjs} +2 -2
- package/out/__chunks__/{chunk-S2HQMNW6.mjs → chunk-B3NG2NOR.mjs} +2 -2
- package/out/__chunks__/{chunk-JNUF7URZ.mjs → chunk-BXVNRLKE.mjs} +2 -2
- package/out/__chunks__/chunk-C6QF2PWC.mjs +2 -0
- package/out/__chunks__/chunk-CN47OMNH.mjs +2 -0
- package/out/__chunks__/{chunk-ZEQI7SII.mjs → chunk-CWRVJWQD.mjs} +2 -2
- package/out/__chunks__/{chunk-555CAG7Y.mjs → chunk-EUUARGU3.mjs} +2 -2
- package/out/__chunks__/{chunk-ZKAIQNIL.mjs → chunk-F6JS7XZN.mjs} +2 -2
- package/out/__chunks__/{chunk-TURUYZA7.mjs → chunk-FDXRQC6M.mjs} +2 -2
- package/out/__chunks__/{chunk-XHRRQNPV.mjs → chunk-FJNU5VL6.mjs} +2 -2
- package/out/__chunks__/{chunk-QEU6LCSD.mjs → chunk-G4SHHDV6.mjs} +2 -2
- package/out/__chunks__/chunk-GDKW3NI7.mjs +2 -0
- package/out/__chunks__/chunk-GDKW3NI7.mjs.map +7 -0
- package/out/__chunks__/{chunk-6V76WUHS.mjs → chunk-GFBHBIES.mjs} +2 -2
- package/out/__chunks__/chunk-GJPOP2QV.mjs +2 -0
- package/out/__chunks__/{chunk-PBMO4Y47.mjs → chunk-I36BPJED.mjs} +2 -2
- package/out/__chunks__/chunk-I5S54KA7.mjs +2 -0
- package/out/__chunks__/chunk-I5S54KA7.mjs.map +7 -0
- package/out/__chunks__/{chunk-76A63VDO.mjs → chunk-II4C2MOU.mjs} +2 -2
- package/out/__chunks__/chunk-INYX52TZ.mjs +2 -0
- package/out/__chunks__/{chunk-XDYKH6G4.mjs.map → chunk-INYX52TZ.mjs.map} +1 -1
- package/out/__chunks__/{chunk-YCSATFGK.mjs → chunk-JRF2RFTC.mjs} +2 -2
- package/out/__chunks__/{chunk-JNJ4L4QD.mjs → chunk-JVUXLR26.mjs} +2 -2
- package/out/__chunks__/{chunk-ZMLJXSO5.mjs → chunk-KBL2GVO3.mjs} +2 -2
- package/out/__chunks__/{chunk-7HNMIUES.mjs → chunk-KP6LJO7T.mjs} +2 -2
- package/out/__chunks__/{chunk-ZP44CDGG.mjs → chunk-LRJNWYVD.mjs} +2 -2
- package/out/__chunks__/{chunk-XJQ4VZS2.mjs → chunk-LWQZ3ODY.mjs} +2 -2
- package/out/__chunks__/{chunk-TJYR4CV6.mjs → chunk-MBJNMOHO.mjs} +2 -2
- package/out/__chunks__/{chunk-C25AGRYE.mjs → chunk-N3F2ZVI3.mjs} +2 -2
- package/out/__chunks__/{chunk-2KE2BNG7.mjs → chunk-NDP6HUYZ.mjs} +2 -2
- package/out/__chunks__/chunk-NTPPGGDC.mjs +2 -0
- package/out/__chunks__/{chunk-T2BVHJVW.mjs → chunk-O2C5YGWB.mjs} +2 -2
- package/out/__chunks__/{chunk-EEWLVNMR.mjs → chunk-OI62R74K.mjs} +2 -2
- package/out/__chunks__/{chunk-VQ4GD4WE.mjs → chunk-OMOTZPAR.mjs} +2 -2
- package/out/__chunks__/chunk-ORC2SCXO.mjs +2 -0
- package/out/__chunks__/{chunk-GVTM4RFC.mjs → chunk-OYHNC7AV.mjs} +2 -2
- package/out/__chunks__/{chunk-PETVWH5Z.mjs → chunk-POLYR7OE.mjs} +2 -2
- package/out/__chunks__/{chunk-SZ3AWPZH.mjs → chunk-PPH3RDAS.mjs} +2 -2
- package/out/__chunks__/{chunk-W6P2TQ3N.mjs → chunk-PQCYKEZA.mjs} +2 -2
- package/out/__chunks__/chunk-Q2MLVJSP.mjs +2 -0
- package/out/__chunks__/{chunk-4PILLRHM.mjs → chunk-QJAIPDD6.mjs} +2 -2
- package/out/__chunks__/{chunk-BUHHNIJJ.mjs → chunk-QQBMLLIQ.mjs} +2 -2
- package/out/__chunks__/chunk-RHB4T45O.mjs +2 -0
- package/out/__chunks__/{chunk-XQUUCE53.mjs → chunk-ROGNJB62.mjs} +2 -2
- package/out/__chunks__/{chunk-MUMHVEIZ.mjs → chunk-RQAJIFZS.mjs} +2 -2
- package/out/__chunks__/{chunk-JW2RVDMU.mjs → chunk-RTADPQGR.mjs} +2 -2
- package/out/__chunks__/{chunk-IBM2AHR2.mjs → chunk-RUWJKSCI.mjs} +2 -2
- package/out/__chunks__/{chunk-PWXUYZF5.mjs → chunk-SIRVEQCG.mjs} +2 -2
- package/out/__chunks__/chunk-SKPK57EU.mjs +2 -0
- package/out/__chunks__/{chunk-WC4UR2ZF.mjs → chunk-T7MRWPJP.mjs} +2 -2
- package/out/__chunks__/{chunk-ZDCPV3O4.mjs → chunk-TY7QG7ZT.mjs} +2 -2
- package/out/__chunks__/chunk-U2UYK54X.mjs +2 -0
- package/out/__chunks__/{chunk-KJCSIEAC.mjs → chunk-UTBU4OCC.mjs} +2 -2
- package/out/__chunks__/{chunk-MZEDBAQE.mjs → chunk-V4O3VRWA.mjs} +2 -2
- package/out/__chunks__/{chunk-2KPILBQ2.mjs → chunk-VNLWRVNS.mjs} +2 -2
- package/out/__chunks__/chunk-VZSWUP43.mjs +2 -0
- package/out/__chunks__/{chunk-463K27BJ.mjs → chunk-X2YQF6XJ.mjs} +2 -2
- package/out/__chunks__/chunk-X6K7QVBT.mjs +2 -0
- package/out/__chunks__/chunk-X6K7QVBT.mjs.map +7 -0
- package/out/__chunks__/{chunk-Q62OP5VI.mjs → chunk-XOM5JS7L.mjs} +2 -2
- package/out/__chunks__/{chunk-CIB3ITZR.mjs → chunk-Z6LX4L3O.mjs} +2 -2
- package/out/__chunks__/chunk-ZOVDKYFX.mjs +2 -0
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs +6 -2
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs.map +2 -2
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.d.ts +2 -2
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.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/initApp.mjs.map +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs +38 -26
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs +18 -9
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs.map +2 -2
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.cjs +2 -1
- package/out/utils/account/refreshAccount.cjs.map +2 -2
- 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 +19 -10
- package/out/__chunks__/chunk-3JHE6RJX.mjs +0 -2
- package/out/__chunks__/chunk-3MJNBS6H.mjs +0 -2
- package/out/__chunks__/chunk-3MJNBS6H.mjs.map +0 -7
- package/out/__chunks__/chunk-AIKQPMR3.mjs +0 -2
- package/out/__chunks__/chunk-CUS6AHOH.mjs +0 -2
- package/out/__chunks__/chunk-J2SRCAF3.mjs +0 -2
- package/out/__chunks__/chunk-J2SRCAF3.mjs.map +0 -7
- package/out/__chunks__/chunk-J5EJIWY3.mjs +0 -2
- package/out/__chunks__/chunk-J5EJIWY3.mjs.map +0 -7
- package/out/__chunks__/chunk-JQDWP4DW.mjs +0 -2
- package/out/__chunks__/chunk-NJSC7RC2.mjs +0 -2
- package/out/__chunks__/chunk-OE5E647N.mjs +0 -2
- package/out/__chunks__/chunk-OFSHYRXC.mjs +0 -2
- package/out/__chunks__/chunk-PIBYPDMV.mjs +0 -2
- package/out/__chunks__/chunk-PIBYPDMV.mjs.map +0 -7
- package/out/__chunks__/chunk-RN2VZOXB.mjs +0 -2
- package/out/__chunks__/chunk-T3JST5WU.mjs +0 -2
- package/out/__chunks__/chunk-T3JST5WU.mjs.map +0 -7
- package/out/__chunks__/chunk-U6OAEGT3.mjs +0 -2
- package/out/__chunks__/chunk-UP7CK2EN.mjs +0 -1
- package/out/__chunks__/chunk-UP7CK2EN.mjs.map +0 -7
- package/out/__chunks__/chunk-WJTCBV34.mjs +0 -2
- package/out/__chunks__/chunk-XDYKH6G4.mjs +0 -2
- package/out/__chunks__/chunk-XFP6N66W.mjs +0 -2
- package/out/__chunks__/chunk-XIQFXEMO.mjs +0 -2
- package/out/__chunks__/chunk-YJFGRD5R.mjs +0 -2
- package/out/__chunks__/chunk-YJIAAC7S.mjs +0 -2
- package/out/__chunks__/chunk-ZQOG6A2Z.mjs +0 -2
- package/out/__chunks__/chunk-ZQOIMST2.mjs +0 -2
- package/out/__chunks__/chunk-ZQOIMST2.mjs.map +0 -7
- package/out/__mocks__/accountConfig.cjs +0 -37
- package/out/__mocks__/accountConfig.cjs.map +0 -7
- package/out/__mocks__/accountConfig.d.ts +0 -3
- package/out/__mocks__/accountConfig.mjs +0 -2
- package/out/__mocks__/accountConfig.mjs.map +0 -7
- package/out/__mocks__/data/account.cjs +0 -38
- package/out/__mocks__/data/account.cjs.map +0 -7
- package/out/__mocks__/data/account.d.ts +0 -10
- package/out/__mocks__/data/account.mjs +0 -2
- package/out/__mocks__/data/account.mjs.map +0 -7
- package/out/__mocks__/data/blocks.cjs +0 -34
- package/out/__mocks__/data/blocks.cjs.map +0 -7
- package/out/__mocks__/data/blocks.d.ts +0 -4
- package/out/__mocks__/data/blocks.mjs +0 -2
- package/out/__mocks__/data/blocks.mjs.map +0 -7
- package/out/__mocks__/data/dappConfig.cjs +0 -43
- package/out/__mocks__/data/dappConfig.cjs.map +0 -7
- package/out/__mocks__/data/dappConfig.d.ts +0 -15
- package/out/__mocks__/data/dappConfig.mjs +0 -2
- package/out/__mocks__/data/dappConfig.mjs.map +0 -7
- package/out/__mocks__/data/index.cjs +0 -35
- package/out/__mocks__/data/index.cjs.map +0 -7
- package/out/__mocks__/data/index.d.ts +0 -7
- package/out/__mocks__/data/index.mjs +0 -2
- package/out/__mocks__/data/index.mjs.map +0 -7
- package/out/__mocks__/data/networkConfig.cjs +0 -56
- package/out/__mocks__/data/networkConfig.cjs.map +0 -7
- package/out/__mocks__/data/networkConfig.d.ts +0 -28
- package/out/__mocks__/data/networkConfig.mjs +0 -2
- package/out/__mocks__/data/networkConfig.mjs.map +0 -7
- package/out/__mocks__/data/socketResponse.cjs +0 -35
- package/out/__mocks__/data/socketResponse.cjs.map +0 -7
- package/out/__mocks__/data/socketResponse.d.ts +0 -7
- package/out/__mocks__/data/socketResponse.mjs +0 -2
- package/out/__mocks__/data/socketResponse.mjs.map +0 -7
- package/out/__mocks__/data/websocketConfig.cjs +0 -29
- package/out/__mocks__/data/websocketConfig.cjs.map +0 -7
- package/out/__mocks__/data/websocketConfig.d.ts +0 -3
- package/out/__mocks__/data/websocketConfig.mjs +0 -2
- package/out/__mocks__/data/websocketConfig.mjs.map +0 -7
- package/out/__mocks__/data/wrapEgldContract.cjs +0 -54
- package/out/__mocks__/data/wrapEgldContract.cjs.map +0 -7
- package/out/__mocks__/data/wrapEgldContract.d.ts +0 -26
- package/out/__mocks__/data/wrapEgldContract.mjs +0 -2
- package/out/__mocks__/data/wrapEgldContract.mjs.map +0 -7
- package/out/__mocks__/index.cjs +0 -27
- package/out/__mocks__/index.cjs.map +0 -7
- package/out/__mocks__/index.d.ts +0 -3
- package/out/__mocks__/index.mjs +0 -2
- package/out/__mocks__/index.mjs.map +0 -7
- package/out/__mocks__/server.cjs +0 -65
- package/out/__mocks__/server.cjs.map +0 -7
- package/out/__mocks__/server.d.ts +0 -4
- package/out/__mocks__/server.mjs +0 -2
- package/out/__mocks__/server.mjs.map +0 -7
- package/out/__mocks__/utils/index.cjs +0 -25
- package/out/__mocks__/utils/index.cjs.map +0 -7
- package/out/__mocks__/utils/index.d.ts +0 -2
- package/out/__mocks__/utils/index.mjs +0 -2
- package/out/__mocks__/utils/index.mjs.map +0 -7
- package/out/__mocks__/utils/mockWindowHistory.cjs +0 -45
- package/out/__mocks__/utils/mockWindowHistory.cjs.map +0 -7
- package/out/__mocks__/utils/mockWindowHistory.d.ts +0 -1
- package/out/__mocks__/utils/mockWindowHistory.mjs +0 -2
- package/out/__mocks__/utils/mockWindowHistory.mjs.map +0 -7
- package/out/__mocks__/utils/mockWindowLocation.cjs +0 -45
- package/out/__mocks__/utils/mockWindowLocation.cjs.map +0 -7
- package/out/__mocks__/utils/mockWindowLocation.d.ts +0 -1
- package/out/__mocks__/utils/mockWindowLocation.mjs +0 -2
- package/out/__mocks__/utils/mockWindowLocation.mjs.map +0 -7
- package/out/controllers/FormatAmountController/tests/formatAmountController.test.d.ts +0 -1
- package/out/controllers/TransactionsTableController/tests/transactionsTableController.test.d.ts +0 -1
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.d.ts +0 -1
- package/out/managers/TransactionManager/tests/getAreTransactionsOnCrossShards.test.d.ts +0 -1
- package/out/managers/TransactionManager/tests/getToastDuration.test.d.ts +0 -1
- package/out/managers/TransactionManager/tests/getTransactionsStatus.test.d.ts +0 -1
- package/out/managers/TransactionManager/tests/isCrossShardTransaction.test.d.ts +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/createToastsFromTransactions.test.d.ts +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/createTransactionToast.test.d.ts +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/getToastDataStateByStatus.test.d.ts +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/getToastTransactionsStatus.test.d.ts +0 -1
- package/out/managers/internal/ToastManager/tests/getToastProceededStatus.test.d.ts +0 -1
- package/out/methods/account/tests/getLatestNonce.test.d.ts +0 -1
- package/out/providers/DappProvider/helpers/login/helpers/tests/getModifiedLoginToken.test.d.ts +0 -1
- package/out/providers/DappProvider/helpers/signMessage/tests/verifyMessage.test.d.ts +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/tests/getLedgerVersionOptions.test.d.ts +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/tests/secondsToTimeString.test.d.ts +0 -1
- package/out/providers/strategies/WebviewProviderStrategy/tests/webview.test.d.ts +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/tests/decodeDataField.test.d.ts +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/tests/getGasPriceDetails.test.d.ts +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.d.ts +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/tests/getMultiEsdtTransferData.test.d.ts +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/tests/calculateFeeInFiat.test.d.ts +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/tests/calculateFeeLimit.test.d.ts +0 -1
- package/out/services/nativeAuth/helpers/tests/decodeLoginToken.test.d.ts +0 -1
- package/out/services/nativeAuth/helpers/tests/decodeNativeAuthToken.test.d.ts +0 -1
- package/out/services/nativeAuth/methods/tests/getTokenExpiration.test.d.ts +0 -1
- package/out/services/nativeAuth/tests/nativeAuth.test.d.ts +0 -1
- package/out/utils/decoders/tests/base64Utils.test.d.ts +0 -1
- package/out/utils/decoders/tests/decodePart.test.d.ts +0 -1
- package/out/utils/decoders/tests/isAscii.test.d.ts +0 -1
- package/out/utils/decoders/tests/isUtf8.test.d.ts +0 -1
- package/out/utils/operations/tests/capitalize.test.d.ts +0 -1
- package/out/utils/operations/tests/getUsdValue.test.d.ts +0 -1
- package/out/utils/operations/tests/timeRemaining.test.d.ts +0 -1
- package/out/utils/tests/getElementByDataTestIdDeep.jest.d.ts +0 -9
- package/out/utils/tests/getElementByDataTestIdDeep.playwright.d.ts +0 -9
- package/out/utils/tests/getElementByDataTestIdDeep.puppeteer.d.ts +0 -9
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/tests/getTransactionTokens.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/base-transaction-mock.d.ts +0 -27
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/extended-transaction-mock.d.ts +0 -2
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getOperationsMessages.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getReceiptMessage.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getScResultsMessages.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getShardText.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTokenFromData.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionIconInfo.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionMethod.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionReceiver.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionReceiverAssets.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionTokens.test.d.ts +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionTransferType.test.d.ts +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/tests/createTransactionsHistoryFromSessions.test.d.ts +0 -1
- package/out/utils/transactions/tests/getExplorerkLink.test.d.ts +0 -1
- package/out/utils/transactions/tests/getHumanReadableTimeFormat.test.d.ts +0 -1
- package/out/utils/validation/tests/addressIsValid.test.d.ts +0 -1
- package/out/utils/validation/tests/isContract.test.d.ts +0 -1
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.cjs +0 -36
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.cjs.map +0 -7
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.d.ts +0 -9
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +0 -2
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs.map +0 -7
- package/out/utils/window/tests/buildUrlParams.test.d.ts +0 -1
- package/out/utils/window/tests/getIsAuthRoute.test.d.ts +0 -1
- package/out/utils/window/tests/getIsInIframe.test.d.ts +0 -1
- package/out/utils/window/tests/getWindowLocation.test.d.ts +0 -1
- package/out/utils/window/tests/getWindowParentOrigin.test.d.ts +0 -0
- package/out/utils/window/tests/sanitizeCallbackUrl.test.d.ts +0 -1
- /package/out/__chunks__/{chunk-H3DYNUJU.mjs.map → chunk-2B3CQJ7O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KIQFGAFN.mjs.map → chunk-2SQW3ZE6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XIDZCWKE.mjs.map → chunk-3MFQZN6P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-END5ZJQH.mjs.map → chunk-3PH6XWVJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OFSHYRXC.mjs.map → chunk-3SEYG2TH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UGUQSBY5.mjs.map → chunk-3ZM355SG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XIQFXEMO.mjs.map → chunk-4GD5ESS7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WJXCNHT3.mjs.map → chunk-4H4K46HN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LC3EPABR.mjs.map → chunk-4I6XFBRI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XFP6N66W.mjs.map → chunk-4PCBHSAB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VX6FOSXG.mjs.map → chunk-55YZ3IRW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YJIAAC7S.mjs.map → chunk-5ZCTLMZK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y7BUJTYP.mjs.map → chunk-63KWCFPE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4AGZHXFR.mjs.map → chunk-64YE7QJ5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TSK44JFJ.mjs.map → chunk-6MVIMW4U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AYURCZHZ.mjs.map → chunk-7IS6C4WK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QLEOO5UN.mjs.map → chunk-7M2YZAHW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NA5CDQ5C.mjs.map → chunk-7RHFBSVM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4N34K4EN.mjs.map → chunk-A4QPQK4N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F4RI663J.mjs.map → chunk-AHF2YGLI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A3CEGIRB.mjs.map → chunk-ASFSZP4U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SYNNW6IN.mjs.map → chunk-B2CRU44C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QGTHGE7E.mjs.map → chunk-B3MJTLY7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S2HQMNW6.mjs.map → chunk-B3NG2NOR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JNUF7URZ.mjs.map → chunk-BXVNRLKE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RN2VZOXB.mjs.map → chunk-C6QF2PWC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YJFGRD5R.mjs.map → chunk-CN47OMNH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZEQI7SII.mjs.map → chunk-CWRVJWQD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-555CAG7Y.mjs.map → chunk-EUUARGU3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZKAIQNIL.mjs.map → chunk-F6JS7XZN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TURUYZA7.mjs.map → chunk-FDXRQC6M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XHRRQNPV.mjs.map → chunk-FJNU5VL6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QEU6LCSD.mjs.map → chunk-G4SHHDV6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6V76WUHS.mjs.map → chunk-GFBHBIES.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3JHE6RJX.mjs.map → chunk-GJPOP2QV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PBMO4Y47.mjs.map → chunk-I36BPJED.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-76A63VDO.mjs.map → chunk-II4C2MOU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YCSATFGK.mjs.map → chunk-JRF2RFTC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JNJ4L4QD.mjs.map → chunk-JVUXLR26.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZMLJXSO5.mjs.map → chunk-KBL2GVO3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7HNMIUES.mjs.map → chunk-KP6LJO7T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZP44CDGG.mjs.map → chunk-LRJNWYVD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XJQ4VZS2.mjs.map → chunk-LWQZ3ODY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TJYR4CV6.mjs.map → chunk-MBJNMOHO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C25AGRYE.mjs.map → chunk-N3F2ZVI3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2KE2BNG7.mjs.map → chunk-NDP6HUYZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OE5E647N.mjs.map → chunk-NTPPGGDC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-T2BVHJVW.mjs.map → chunk-O2C5YGWB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EEWLVNMR.mjs.map → chunk-OI62R74K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VQ4GD4WE.mjs.map → chunk-OMOTZPAR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JQDWP4DW.mjs.map → chunk-ORC2SCXO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GVTM4RFC.mjs.map → chunk-OYHNC7AV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PETVWH5Z.mjs.map → chunk-POLYR7OE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SZ3AWPZH.mjs.map → chunk-PPH3RDAS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W6P2TQ3N.mjs.map → chunk-PQCYKEZA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CUS6AHOH.mjs.map → chunk-Q2MLVJSP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4PILLRHM.mjs.map → chunk-QJAIPDD6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BUHHNIJJ.mjs.map → chunk-QQBMLLIQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZQOG6A2Z.mjs.map → chunk-RHB4T45O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XQUUCE53.mjs.map → chunk-ROGNJB62.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MUMHVEIZ.mjs.map → chunk-RQAJIFZS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JW2RVDMU.mjs.map → chunk-RTADPQGR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IBM2AHR2.mjs.map → chunk-RUWJKSCI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PWXUYZF5.mjs.map → chunk-SIRVEQCG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AIKQPMR3.mjs.map → chunk-SKPK57EU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WC4UR2ZF.mjs.map → chunk-T7MRWPJP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZDCPV3O4.mjs.map → chunk-TY7QG7ZT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U6OAEGT3.mjs.map → chunk-U2UYK54X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KJCSIEAC.mjs.map → chunk-UTBU4OCC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MZEDBAQE.mjs.map → chunk-V4O3VRWA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2KPILBQ2.mjs.map → chunk-VNLWRVNS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WJTCBV34.mjs.map → chunk-VZSWUP43.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-463K27BJ.mjs.map → chunk-X2YQF6XJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Q62OP5VI.mjs.map → chunk-XOM5JS7L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CIB3ITZR.mjs.map → chunk-Z6LX4L3O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NJSC7RC2.mjs.map → chunk-ZOVDKYFX.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as o,f as a,g as i,h as r}from"./chunk-TQA3JDNV.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-TQA3JDNV.mjs";import{s as c}from"./chunk-7IS6C4WK.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-2B3CQJ7O.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-POLYR7OE.mjs";import{b as r}from"./chunk-V4O3VRWA.mjs";import{s as i}from"./chunk-7IS6C4WK.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=o(i());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2SQW3ZE6.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-OYHNC7AV.mjs";import{a as o}from"./chunk-PLUWBWJ2.mjs";import{a as e,b as t}from"./chunk-INYX52TZ.mjs";import{WebviewProvider as a}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var n=class extends s{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(i){throw this.cancelAction(),i}};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=a.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 o.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(t);return this.address&&this.setAccount({address:this.address}),r}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3MFQZN6P.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-ROGNJB62.mjs";import e from"lodash.isempty";var p=async({transactionsSessions:t,address:i,explorerAddress:a,egldLabel:o})=>{if(e(t))return[];let n=s(t);return r({transactions:n,address:i,explorerAddress:a,egldLabel:o})};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3PH6XWVJ.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-RUWJKSCI.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-3ZM355SG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-3ZM355SG.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-4H4K46HN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-QJAIPDD6.mjs";import{a as T}from"./chunk-XCVEFI4B.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as m}from"./chunk-UNBTFF6K.mjs";import{a as l}from"./chunk-U3UMCTU6.mjs";import{c as d}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-7CELSV4S.mjs";var p=class{static async processTransactions({address:u,egldLabel:v,explorerAddress:g,transactions:L}){let f=L.map(e=>m({address:u,explorerAddress:g,transaction:e}));return await Promise.all(f.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),a=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:h,receiverLockedAccount:D}=await k({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=T({transaction:e}),x=r?.token.type==="MetaESDT"?void 0:r?.badgeText,c=l.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??d,digits:2}),y={badge:x??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?v:"",link: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:c.valueDecimal,valueInteger:c.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:!!D,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:a??"",description:`${a??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!h,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:y}}))}};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4I6XFBRI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-63KWCFPE.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))}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},super.resetData()}async setupEventListeners(){this.eventBus&&this.eventBus.subscribe("CLOSE",this.handleClose.bind(this))}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-55YZ3IRW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-OI62R74K.mjs";var a=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.unsubscribeFunctions=new Map;this.uiDataUpdateEvent=t,this.uiTag=e,this.data=this.getInitialData()}async init(t){this.anchor=t,await this.createUIElement(t),await this.setupEventListeners()}updateData(t){this.data={...this.data,...t},this.notifyDataUpdate()}subscribeToEventBus(t,e){if(!this.eventBus)throw new Error("eventBus is not initialized");let i=this.eventBus?.subscribe(t,e);if(i){let n=this.unsubscribeFunctions.get(t)||[];n.push(i),this.unsubscribeFunctions.set(t,n)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}resetData(){this.data=this.getInitialData()}async createUIElement(t=this.anchor){if(this.isCreatingElement||this.uiElement)return this.uiElement;if(this.isCreatingElement=!0,this.uiElement=await s.create({name:this.uiTag,anchor:t}),this.isCreatingElement=!1,!this.uiElement)throw new Error(`Failed to create ${this.uiTag} element`);if(this.eventBus||(this.eventBus=await this.uiElement.getEventBus()),!this.eventBus)throw new Error("eventBus is not initialized");return this.uiElement}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-63KWCFPE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-O2C5YGWB.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-64YE7QJ5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as r}from"./chunk-7IS6C4WK.mjs";import{b as e}from"./chunk-SAAOQW7P.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-6MVIMW4U.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s,f as a}from"./chunk-UERJ6AKK.mjs";import{f as p}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s,f as a}from"./chunk-UERJ6AKK.mjs";import{f as p}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-4PCBHSAB.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}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 T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as l}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=a(e),n=p(e),{address:i,publicKey:M}=s(e);if(i&&M!==new l(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 z=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...n)=>({network:x(...n),account:g(...n),loginInfo:f(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:O(e)})));return t.subscribe(z),t},r,D=e=>{r=e},o=()=>(r||D(W(()=>new v)),r),pe=(e=k)=>{let t=W(e);return D(t),t},le=()=>o().getState();var me=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),fe=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{me as a,fe as b,Se as c,ue as d,de as e,Le as f,xe as g,E as h,b as i,A as j,H as k,w as l,C as m,z as n,W as o,D as p,o as q,pe as r,le as s};
|
|
2
|
+
//# sourceMappingURL=chunk-7IS6C4WK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-TQA3JDNV.mjs";import{s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-TQA3JDNV.mjs";import{s}from"./chunk-7IS6C4WK.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-7M2YZAHW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as a}from"./chunk-7IS6C4WK.mjs";var r=({key:e,value:t})=>{a().setState(({cache:c})=>{c[e]=t},!1,"saveToCache")},s=e=>{a().setState(({cache:t})=>{delete t[e]},!1,"removeFromCache")},h=()=>{a().setState(({cache:e})=>{Object.keys(e).forEach(t=>{delete e[t]})},!1,"clearCache")};export{r as a,s as b,h as c};
|
|
2
|
+
//# sourceMappingURL=chunk-7RHFBSVM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-7IS6C4WK.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as s,u as o}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function I({tokenId:n}){let t=a(m()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=c(n),i=n,p=k?s:o;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-A4QPQK4N.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-SIRVEQCG.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AHF2YGLI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as A}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as A}from"./chunk-OMOTZPAR.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as f}from"./chunk-X6K7QVBT.mjs";import{b as S}from"./chunk-3ZEUVYQF.mjs";import{a as y}from"./chunk-N3F2ZVI3.mjs";import{a as g}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-SKPK57EU.mjs";import{h as u}from"./chunk-2IUBMLF4.mjs";import{s as m}from"./chunk-7IS6C4WK.mjs";import{b as T}from"./chunk-SAAOQW7P.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:a,onFail:t})=>{S({onSuccess:a,onFail:t})};this.send=async a=>{if(a.length===0)throw new Error("No transactions to send");try{if(!I(a))return await this.sendSignedTransactions(a);let t=await this.sendSignedBatchTransactions(a);if(!t.data||t.data.error)throw new Error(t.data?.error??"Failed to send transactions");return t.data.transactions}catch(t){throw t.response?.data?.message??t.message}};this.track=async(a,t={disableToasts:!1})=>{let n=this.sequentialToFlatArray(a).map(e=>({...e,status:e.status??"pending"})),o=g(n),s=y({transactions:n,transactionsDisplayInfo:t.transactionsDisplayInfo,status:o??"sent",sessionInformation:t.sessionInformation});if(t.disableToasts===!0)return s;let i=A(a);return f({toastId:s,totalDuration:i}),s};this.sendSignedTransactions=async a=>{let{apiAddress:t,apiTimeout:n}=T(m());return await Promise.all(a.map(async s=>{let i=await w.post(`${t}/transactions`,s.toPlainObject(),{timeout:Number(n)}),e=i.data.txHash;return{...s.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async a=>{let{address:t}=h(),{apiAddress:n,apiTimeout:o}=T(m());if(!t)return{error:"Invalid address provided. You need to be logged in to send transactions"};let s=this.buildBatchId(t),e={transactions:a.map(p=>p.map(c=>c.toPlainObject())),id:s},{data:l}=await w.post(`${n}/batch`,e,{timeout:Number(o)}),B=l.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return b({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...l,transactions:B}}};this.buildBatchId=a=>`${Date.now().toString()}${u}${a}`;this.sequentialToFlatArray=(a=[])=>this.getIsSequential(a)?a.flat():a;this.getIsSequential=a=>a?.every(t=>Array.isArray(t))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ASFSZP4U.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-XOM5JS7L.mjs";import{a}from"./chunk-5ZCTLMZK.mjs";import{a as u}from"./chunk-I36BPJED.mjs";import{c as n}from"./chunk-LWQZ3ODY.mjs";import{a as s}from"./chunk-INYX52TZ.mjs";var c=(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&&c(r,s.localStorage);try{return u(),n.forEach(g=>g()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B2CRU44C.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as B}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as B}from"./chunk-RHB4T45O.mjs";import{a as b}from"./chunk-NDP6HUYZ.mjs";import{a as k}from"./chunk-QXC4D3AC.mjs";import{a as D}from"./chunk-G4SHHDV6.mjs";import{a as I}from"./chunk-PHOF3Z5D.mjs";import{a as _}from"./chunk-B3NG2NOR.mjs";import{a as R}from"./chunk-YY724VZR.mjs";import{a as j}from"./chunk-URJQWHBM.mjs";import{a as A}from"./chunk-MBJNMOHO.mjs";import{a as O}from"./chunk-ZOVDKYFX.mjs";import{s as x}from"./chunk-7IS6C4WK.mjs";import{b as v}from"./chunk-SAAOQW7P.mjs";import{a as G,c as U,f as F}from"./chunk-PJWJZHIS.mjs";import{a as w}from"./chunk-NTEMINYA.mjs";import{c as N}from"./chunk-MGFIOCA4.mjs";async function Dn({transactions:z=[],handleSign:H,guardTransactions:K=_}){let{account:{address:y,shard:h,username:E}}=B(),g=v(x()),C=O(),{allTransactions:r,parsedTransactionsByDataField:L}=R(z),p=[],n=A.getInstance();if(await n.openUI(),!n)throw new Error("Unable to establish connection with sign screens");let W=async()=>{await b(),n.closeUI()};return n.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",W),new Promise(async(X,M)=>{let d=[],Y=await k({baseURL:g.apiAddress});n.notifyDataUpdate(),n.initializeGasPriceMap(r.map(a=>a.transaction));let l=Y?.price,t=0,T=async()=>{let c=r[t]?.transaction,i=Number(c.nonce);try{n.updateIsLoading(!0);let{commonData:o,tokenTransaction:e,fungibleTransaction:s}=await D({allTransactions:r,currentScreenIndex:t,egldLabel:C,network:g,gasPriceData:n.ppuMap[i],price:l,address:y,username:E,shard:h,signedIndexes:p,parsedTransactionsByDataField:L});e&&n.updateTokenTransaction(e),s&&n.updateNonFungibleTransaction(s.type,s),n.updateCommonData(o)}catch(o){throw console.error(`Error fetching common data for transaction at index ${t}:`,o),o}finally{n.updateIsLoading(!1)}},$=()=>{t>0&&(t--,T())},q=(a=0)=>{let i=r[t].transaction,o=Number(i.nonce);n.updateGasPriceMap({nonce:o,ppu:a}),n.updateCommonData({ppu:a});let e=i.toPlainObject(),s=I({transaction:e,gasPriceData:n.ppuMap[o]}),P=w.newFromPlainObject({...e,gasPrice:s}),u=j({transaction:P,price:l}),m=F({input:s.toString(),decimals:U,addCommas:!0,digits:G});n.updateCommonData({feeLimit:u.feeLimitFormatted,feeInFiatLimit:u.feeInFiatLimit,gasPrice:m,ppu:a})},J=async()=>{M(new Error("Transaction signing cancelled by user")),await b(),n.closeUI()},f=()=>{t<n.transactionsCount-1&&(t++,T())},Q=async()=>{let c=r[t].transaction,i=Number(c.nonce),{commonData:o}=await D({allTransactions:r,currentScreenIndex:t,egldLabel:C,network:g,gasPriceData:n.ppuMap[i],price:l,address:y,username:E,shard:h,signedIndexes:p,parsedTransactionsByDataField:L});if(!o.needsSigning)return p.push(t),f();let e=c.toPlainObject(),s=e.nonce,P=I({transaction:e,gasPriceData:n.ppuMap[s]}),u=w.newFromPlainObject({...e,gasPrice:P});try{let m=await H([u]);m&&(p.push(t),d.push(m[0]));let nn=t===r.length-1,tn=r.filter(S=>S.needsSigning),an=d.length===tn.length;if(nn&&an){let S=await K(d);return n.closeUI(),X(S)}f()}catch(m){n.closeUI(),M(m)}},V=new Map([["NEXT_SIGN_TRANSACTIONS",f],["CONFIRM_SIGN_TRANSACTIONS",Q],["CLOSE_SIGN_TRANSACTIONS",J],["BACK_SIGN_TRANSACTIONS",$],["SET_PPU_SIGN_TRANSACTIONS",q]]);function Z(){for(let[a,c]of V)n.subscribeToEventBus(a,c)}Z(),await T()})}export{Dn as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B3MJTLY7.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-SKPK57EU.mjs";import{s as e}from"./chunk-7IS6C4WK.mjs";import{b as o}from"./chunk-SAAOQW7P.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}=o(e());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B3NG2NOR.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-LRJNWYVD.mjs";import{d as m,e as l}from"./chunk-RQAJIFZS.mjs";import{q as a}from"./chunk-7IS6C4WK.mjs";import{b as r}from"./chunk-SAAOQW7P.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=1e3,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-BXVNRLKE.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-F6JS7XZN.mjs";import{c as n}from"./chunk-7IS6C4WK.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-C6QF2PWC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-GDKW3NI7.mjs";import{a as l}from"./chunk-3SEYG2TH.mjs";import{a as f}from"./chunk-ZOVDKYFX.mjs";import{j as m,k as d,l as p,n as u}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-ROGNJB62.mjs";var q=async({toastList:S,transactionsSessions:g,account:o,existingCompletedTransactions:y=[]})=>{let n=[],a=[...y],r=l(),F=f();for(let t of S.transactionToasts){let e=g[t.toastId];if(!e?.status)continue;let{status:s,transactions:C,transactionsDisplayInfo:P}=e,x=await T({transactions:C,address:o.address,explorerAddress:r,egldLabel:F}),A=u(s),E=p(s),L=d(s),i=A||E||L,v=m(s),{startTime:R,endTime:b}=t;if(i&&a.some(h=>h.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:x,transactionsDisplayInfo:P,explorerAddress:r,startTime:R,endTime:b});i&&a.push(c),v&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{q as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CWRVJWQD.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-INYX52TZ.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
|
|
2
|
+
//# sourceMappingURL=chunk-EUUARGU3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-4H4K46HN.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-F6JS7XZN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as e}from"./chunk-7IS6C4WK.mjs";import{b as t}from"./chunk-SAAOQW7P.mjs";import{x as r}from"./chunk-KD2IQ32V.mjs";import i from"axios";var T=async o=>{let{apiAddress:s}=t(e()),{data:a}=await i.get(`${s}/${r}`,{params:{hashes:o.join(","),withScResults:!0}});return a};export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FDXRQC6M.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-7IS6C4WK.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FJNU5VL6.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as M}from"./chunk-PLMCHSS6.mjs";import{a as V}from"./chunk-7Z7IX367.mjs";import{a as B}from"./chunk-VCQBYNNS.mjs";import{a as $}from"./chunk-LN5UXO64.mjs";import{a as _}from"./chunk-PHOF3Z5D.mjs";import{a as U}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-BQX7MJR6.mjs";import{a as w}from"./chunk-URJQWHBM.mjs";import{a as O}from"./chunk-YGI3KXMZ.mjs";import{a as x}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as M}from"./chunk-PLMCHSS6.mjs";import{a as V}from"./chunk-7Z7IX367.mjs";import{a as B}from"./chunk-VCQBYNNS.mjs";import{a as $}from"./chunk-LN5UXO64.mjs";import{a as _}from"./chunk-PHOF3Z5D.mjs";import{a as U}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-BQX7MJR6.mjs";import{a as w}from"./chunk-URJQWHBM.mjs";import{a as O}from"./chunk-YGI3KXMZ.mjs";import{a as x}from"./chunk-A4QPQK4N.mjs";import{a as v}from"./chunk-RYIJWGFA.mjs";import{w as G}from"./chunk-X6K7QVBT.mjs";import{a as L}from"./chunk-3SEYG2TH.mjs";import{a as h}from"./chunk-BRJNX4JF.mjs";import{a as b,c as C,f as u}from"./chunk-PJWJZHIS.mjs";import{a as P}from"./chunk-KD2IQ32V.mjs";import{c as f}from"./chunk-TI37DKBT.mjs";import{k as A}from"./chunk-LHEH7L4L.mjs";import{a as F}from"./chunk-INYX52TZ.mjs";import{BigNumber as yt}from"bignumber.js";async function Kt({allTransactions:T,currentScreenIndex:m,egldLabel:o,network:e,gasPriceData:c,price:S,address:p,username:z,shard:j,signedIndexes:i,parsedTransactionsByDataField:q}){let t=T[m],H=t?.transaction?.sender.toString(),K=t?.transaction,D=null,y=null,W=R({egldLabel:o,sender:H,apiAddress:e.apiAddress,address:p,parsedTransactionsByDataField:q}),a=t.transaction.toPlainObject(),n=await W(t),d=!n?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=n?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await x({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:s,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:s,amount:I,imageURL:Y};else{let E=({addCommas:Dt})=>u({input:d?t.transaction.value.toString():I,decimals:d?Number(e.decimals):X,digits:Number(e.digits),showLastNonZeroDecimal:!1,addCommas:Dt}),ut=E({addCommas:!0}),ft=E({addCommas:!1}),Tt=Number(d?S:Q),St=O({amount:ft,usd:Tt,addEqualSign:!0});D={identifier:(s===A?o:s)??o,amount:ut,usdValue:St}}let{feeLimitFormatted:tt,feeInFiatLimit:nt}=w({transaction:K,price:S}),ot=$({shard:j,initialGasPrice:c.initialGasPrice,transaction:a,gasStationMetadata:e.gasStationMetadata}),et=_({transaction:a,gasPriceData:c}),it=G().getType(),at=v(it),N=T.length,rt=i.length>0?i[i.length-1]+1:0,st=f(t.transaction.data.toString()??""),k=U(n?.transactionTokenInfo),mt=M({data:st,identifier:s,highlight:k}),ct=L(),pt=h({to:`/${P}/${p}`,explorerAddress:ct}),dt=N===1||n?.needsSigning&&!i.includes(m),gt=u({input:et.toString(),decimals:C,addCommas:!0,digits:b}),lt=new yt(a.gasLimit).toFormat({decimalSeparator:",",groupSeparator:".",groupSize:3});return{commonData:{receiver:a.receiver.toString(),data:f(t.transaction.data.toString()??""),decodedData:mt,gasPrice:gt,gasLimit:lt,explorerLink:pt,ppu:c.ppu,ppuOptions:ot,egldLabel:o,tokenType:V(r),feeLimit:tt,feeInFiatLimit:nt,transactionsCount:N,currentIndex:m,currentIndexToSign:rt,highlight:k,scCall:B(n?.transactionTokenInfo),needsSigning:dt,isEditable:n?.needsSigning,providerName:at,address:p,username:z,origin:F.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{Kt as a};
|
|
2
|
+
//# sourceMappingURL=chunk-G4SHHDV6.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as s}from"./chunk-PLTUKRYU.mjs";import{a as r}from"./chunk-VDMJZZU4.mjs";import{j as n}from"./chunk-65L5EBBL.mjs";var l=({toastId:a,address:o,status:e,transactions:t,transactionsDisplayInfo:i,startTime:c,endTime:T})=>{let m=t.some(f=>n(f.status)),u=t[0]?.action?.name,p=s({address:o,sender:t[0]?.interactor??"",toastId:a,status:e,transactionsDisplayInfo:i,txActionName:u}),S=r(t);return{toastDataState:p,processedTransactionsStatus:S,transactionProgressState:m?{endTime:T,startTime:c}:null,toastId:a,transactions:t}};export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-GDKW3NI7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/managers/internal/ToastManager/helpers/createTransactionToast.ts"],
|
|
4
|
+
"sourcesContent": ["import { ITransactionListItem } from 'lib/sdkDappUi';\nimport { getIsTransactionPending } from 'store/actions/transactions/transactionStateByStatus';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { TransactionsDisplayInfoType } from 'types/transactions.types';\nimport { getToastDataStateByStatus } from './getToastDataStateByStatus';\nimport { getToastTransactionsStatus } from './getToastTransactionsStatus';\nimport { ITransactionToast } from '../types/toast.types';\ninterface CreateTransactionToastParamsType {\n toastId: string;\n address: string;\n status: TransactionServerStatusesEnum | TransactionBatchStatusesEnum;\n transactions: ITransactionListItem[];\n transactionsDisplayInfo?: TransactionsDisplayInfoType;\n explorerAddress: string;\n startTime: number;\n endTime: number;\n}\n\nexport const createTransactionToast = ({\n toastId,\n address,\n status,\n transactions,\n transactionsDisplayInfo,\n startTime,\n endTime\n}: CreateTransactionToastParamsType): ITransactionToast => {\n const hasPendingTransaction = transactions.some((tx) =>\n getIsTransactionPending(\n tx.status as TransactionServerStatusesEnum | TransactionBatchStatusesEnum\n )\n );\n // Extracts action name from the first transaction\n const txActionName = transactions[0]?.action?.name;\n\n const toastDataState = getToastDataStateByStatus({\n address,\n sender: transactions[0]?.interactor ?? '',\n toastId,\n status,\n transactionsDisplayInfo,\n txActionName\n });\n\n const processedTransactionsStatus = getToastTransactionsStatus(transactions);\n\n const transactionProgressState = hasPendingTransaction\n ? {\n endTime,\n startTime\n }\n : null;\n\n return {\n toastDataState,\n processedTransactionsStatus,\n transactionProgressState,\n toastId,\n transactions\n };\n};\n"],
|
|
5
|
+
"mappings": "2HAqBO,IAAMA,EAAyB,CAAC,CACrC,QAAAC,EACA,QAAAC,EACA,OAAAC,EACA,aAAAC,EACA,wBAAAC,EACA,UAAAC,EACA,QAAAC,CACF,IAA2D,CACzD,IAAMC,EAAwBJ,EAAa,KAAMK,GAC/CC,EACED,EAAG,MACL,CACF,EAEME,EAAeP,EAAa,CAAC,GAAG,QAAQ,KAExCQ,EAAiBC,EAA0B,CAC/C,QAAAX,EACA,OAAQE,EAAa,CAAC,GAAG,YAAc,GACvC,QAAAH,EACA,OAAAE,EACA,wBAAAE,EACA,aAAAM,CACF,CAAC,EAEKG,EAA8BC,EAA2BX,CAAY,EAS3E,MAAO,CACL,eAAAQ,EACA,4BAAAE,EACA,yBAV+BN,EAC7B,CACE,QAAAD,EACA,UAAAD,CACF,EACA,KAMF,QAAAL,EACA,aAAAG,CACF,CACF",
|
|
6
|
+
"names": ["createTransactionToast", "toastId", "address", "status", "transactions", "transactionsDisplayInfo", "startTime", "endTime", "hasPendingTransaction", "tx", "getIsTransactionPending", "txActionName", "toastDataState", "getToastDataStateByStatus", "processedTransactionsStatus", "getToastTransactionsStatus"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as e}from"./chunk-7IS6C4WK.mjs";import{b as o}from"./chunk-SAAOQW7P.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-GFBHBIES.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as p,q as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{j as p,q as e}from"./chunk-7IS6C4WK.mjs";import{c as i}from"./chunk-NTEMINYA.mjs";var T=()=>e().setState(p),a=({address:o,providerType:d})=>{e().setState(({account:r,loginInfo:t})=>{r.address=o,r.publicKey=new i(o).toHex(),t&&(t.providerType=d)},!1,"loginAction")};export{T as a,a as b};
|
|
2
|
+
//# sourceMappingURL=chunk-I36BPJED.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-FMQYLMTU.mjs";import{b as e,c as i}from"./chunk-N3F2ZVI3.mjs";import{j as r}from"./chunk-65L5EBBL.mjs";import{q as n}from"./chunk-7IS6C4WK.mjs";async function E({results:u,hash:c,sessionId:s}){let a=u?.find(t=>t?.returnMessage!=="");i({sessionId:s,transaction:{...a,hash:c,status:"fail",inTransit:!1}});let{transactions:m}=n().getState();m[s].transactions.some(t=>r(t.status))||(e({sessionId:s,status:"fail",errorMessage:a?.returnMessage}),await o({sessionId:s,status:"fail"}))}export{E as a};
|
|
2
|
+
//# sourceMappingURL=chunk-I5S54KA7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n updateTransactionStatus,\n updateSessionStatus\n} from 'store/actions/transactions/transactionsActions';\nimport { getIsTransactionPending } from 'store/actions/transactions/transactionStateByStatus';\nimport { getStore } from 'store/store';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { ResultType } from 'types/serverTransactions.types';\nimport { SignedTransactionType } from 'types/transactions.types';\nimport { runSessionCallbacks } from './runSessionCallbacks';\n\nexport async function manageFailedTransactions({\n results,\n hash,\n sessionId\n}: {\n results: ResultType[];\n hash: string;\n sessionId: string;\n}) {\n const resultWithError = results?.find(\n (scResult) => scResult?.returnMessage !== ''\n );\n\n updateTransactionStatus({\n sessionId,\n transaction: {\n ...(resultWithError as unknown as SignedTransactionType),\n hash,\n status: TransactionServerStatusesEnum.fail,\n inTransit: false\n }\n });\n\n const { transactions: sessions } = getStore().getState();\n const session = sessions[sessionId];\n\n const hasPendingTransactions = session.transactions.some((tx) =>\n getIsTransactionPending(tx.status)\n );\n\n if (!hasPendingTransactions) {\n updateSessionStatus({\n sessionId,\n status: TransactionBatchStatusesEnum.fail,\n errorMessage: resultWithError?.returnMessage\n });\n\n await runSessionCallbacks({\n sessionId,\n status: TransactionBatchStatusesEnum.fail\n });\n }\n}\n"],
|
|
5
|
+
"mappings": "2KAcA,eAAsBA,EAAyB,CAC7C,QAAAC,EACA,KAAAC,EACA,UAAAC,CACF,EAIG,CACD,IAAMC,EAAkBH,GAAS,KAC9BI,GAAaA,GAAU,gBAAkB,EAC5C,EAEAC,EAAwB,CACtB,UAAAH,EACA,YAAa,CACX,GAAIC,EACJ,KAAAF,EACA,cACA,UAAW,EACb,CACF,CAAC,EAED,GAAM,CAAE,aAAcK,CAAS,EAAIC,EAAS,EAAE,SAAS,EACvCD,EAASJ,CAAS,EAEK,aAAa,KAAMM,GACxDC,EAAwBD,EAAG,MAAM,CACnC,IAGEE,EAAoB,CAClB,UAAAR,EACA,cACA,aAAcC,GAAiB,aACjC,CAAC,EAED,MAAMQ,EAAoB,CACxB,UAAAT,EACA,aACF,CAAC,EAEL",
|
|
6
|
+
"names": ["manageFailedTransactions", "results", "hash", "sessionId", "resultWithError", "scResult", "updateTransactionStatus", "sessions", "getStore", "tx", "getIsTransactionPending", "updateSessionStatus", "runSessionCallbacks"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-JVUXLR26.mjs";import{a}from"./chunk-YUFPUG5O.mjs";import{a as c}from"./chunk-VZSWUP43.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 l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-II4C2MOU.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.1.
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.1.4-alpha.1'; // 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 t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-INYX52TZ.mjs";import{MvxLedgerConnect as r}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a,r as b};
|
|
2
|
+
//# sourceMappingURL=chunk-JRF2RFTC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-X6K7QVBT.mjs";import{a as c}from"./chunk-VZSWUP43.mjs";import{s as n}from"./chunk-7IS6C4WK.mjs";import{g as a}from"./chunk-UERJ6AKK.mjs";import{e as l}from"./chunk-VNLGNNIL.mjs";import{HWProvider as m}from"@multiversx/sdk-hw-provider";async function A(u){let v=c(),d=u?.shouldInitProvider||!v,o=l(n()),t=a(n()),r=g(),i=new m,I=async()=>{let e=o?.index!=null;if(r instanceof m&&r.isInitialized())return e&&await r.setAddressIndex(o.index),r;if(d&&!await i.init())throw new Error("Failed to initialize Ledger Provider");return e&&await i.setAddressIndex(o.index),i};try{if(!d&&t)return{ledgerProvider:i,ledgerConfig:{version:t.version,dataEnabled:t.hasContractDataEnabled}};let e=await I(),s=await f(e);return{ledgerProvider:e,ledgerConfig:s}}catch(e){throw console.error("Could not initialize ledger app",e),e}}export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JVUXLR26.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{w as g}from"./chunk-X6K7QVBT.mjs";import{q as u}from"./chunk-7IS6C4WK.mjs";import{a as p}from"./chunk-UERJ6AKK.mjs";import{a as h,c as l,g as c}from"./chunk-NTEMINYA.mjs";import{a as y}from"./chunk-INYX52TZ.mjs";var M=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=u();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){y.addEventListener("message",this.handleMessage)}stopListening(){y.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 o.finalizeHandshakeRequest:this.handshake({event:e});break;case o.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case o.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case o.signTransactionsRequest:this.signTransactions({event:e});break;case i.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}=p(this.store.getState()),r=g(),n=new c({address:new l(t),data:new Uint8Array(Buffer.from(a))}),d=(await r.signMessage(n))?.signature??"";e.source?.postMessage({type:i.loginResponse,payload:{data:{address:t,signature:Buffer.from(d).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&this.handleLoginCancelled()}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:i.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=p(this.store.getState()),{message:t}=s;try{let r=new c({address:new l(a),data:new Uint8Array(Buffer.from(t))}),d=(await g().signMessage(r))?.signature??"";e.source?.postMessage({type:i.signMessageResponse,payload:{data:{signature:Buffer.from(d).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(n=>h.newFromPlainObject(n)),r=await s.signTransactions(t);e.source?.postMessage({type:i.signTransactionsResponse,payload:{data:r.map(n=>n.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KBL2GVO3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-FDXRQC6M.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.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{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KP6LJO7T.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-7IS6C4WK.mjs";var c=t=>n().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),C=t=>n().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>n().setState(({config:e})=>{let a=t.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=t.walletConnectDeepLink||o.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:s,walletConnectV2RelayAddress:a}},!1,"setWalletConnectConfig");export{c as a,C as b,f as c};
|
|
2
|
+
//# sourceMappingURL=chunk-LRJNWYVD.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-INYX52TZ.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map,n=3e3;export{r as a,i as b,p as c,n as d};
|
|
2
|
+
//# sourceMappingURL=chunk-LWQZ3ODY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-O2C5YGWB.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-MBJNMOHO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-7IS6C4WK.mjs";var g=({transactions:s,transactionsDisplayInfo:a,status:e,sessionInformation:t})=>{let o=Date.now().toString();return i().setState(({transactions:n})=>{n[o]={transactions:s,status:e,transactionsDisplayInfo:a,interpretedTransactions:{},sessionInformation:t}},!1,"createTransactionsSession"),o},T=({sessionId:s,status:a,errorMessage:e})=>{i().setState(({transactions:t})=>{t[s].status=a,t[s].errorMessage=e},!1,"updateTransactionsSession")},y=({sessionId:s,transaction:a})=>{let e=null;return i().setState(({transactions:t})=>{let o=t[s]?.transactions;if(o!=null){t[s].transactions=o.map(r=>r.hash===a.hash?{...r,...a??{}}:r);let n=u([...t[s].transactions]);n&&(T({sessionId:s,status:n}),e=n)}},!1,"updateTransactionStatus"),e},h=()=>{i().setState(({transactions:s,toasts:a})=>{let t=Object.keys(s).filter(n=>{let r=s[n];if(!r)return!1;let{status:c}=r;return!(c==="pending"||c==="signed"||c==="sent")});t.forEach(n=>{delete s[n]});let o=a.transactionToasts.filter(n=>!t.includes(n.toastId));a.transactionToasts=o},!1,"clearCompletedTransactions")};export{g as a,T as b,y as c,h as d};
|
|
2
|
+
//# sourceMappingURL=chunk-N3F2ZVI3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{w as n}from"./chunk-X6K7QVBT.mjs";import{a as i}from"./chunk-PLUWBWJ2.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-NDP6HUYZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-63KWCFPE.mjs";import{a as t}from"./chunk-CN47OMNH.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-O2C5YGWB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-INYX52TZ.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OI62R74K.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-NTOY6GTP.mjs";import{c as r,d as a}from"./chunk-2IUBMLF4.mjs";import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-NTOY6GTP.mjs";import{c as r,d as a}from"./chunk-2IUBMLF4.mjs";import{s as e}from"./chunk-7IS6C4WK.mjs";import{a as n}from"./chunk-UERJ6AKK.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-OMOTZPAR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-Z6LX4L3O.mjs";import{a as e}from"./chunk-5ZCTLMZK.mjs";import{a as i}from"./chunk-CDQ2BNUD.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-OYHNC7AV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-6MVIMW4U.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-POLYR7OE.mjs.map
|