@multiversx/sdk-dapp 5.1.4 → 5.1.5
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/README.md +14 -14
- package/out/__chunks__/chunk-2WWGLFNR.mjs +2 -0
- package/out/__chunks__/{chunk-WIH2HALG.mjs → chunk-37ZYC4SQ.mjs} +2 -2
- package/out/__chunks__/{chunk-7DECU3EO.mjs → chunk-3NBR5S3K.mjs} +2 -2
- package/out/__chunks__/{chunk-AN7WTTXJ.mjs → chunk-3PAQ2Z7N.mjs} +2 -2
- package/out/__chunks__/{chunk-QNGOARJQ.mjs → chunk-4ADFEGIK.mjs} +2 -2
- package/out/__chunks__/{chunk-BMB5EBCD.mjs → chunk-4JRSZ2WY.mjs} +2 -2
- package/out/__chunks__/{chunk-WV7M6B7H.mjs → chunk-4PIC7DFH.mjs} +2 -2
- package/out/__chunks__/{chunk-WJEJIGZL.mjs → chunk-5GAD4GPI.mjs} +2 -2
- package/out/__chunks__/{chunk-QG4OP5CW.mjs → chunk-5LRQIZ4G.mjs} +2 -2
- package/out/__chunks__/{chunk-HD6OPS7Q.mjs → chunk-5TAQLAW3.mjs} +2 -2
- package/out/__chunks__/{chunk-72FLAB3J.mjs → chunk-6ILB52XY.mjs} +2 -2
- package/out/__chunks__/{chunk-FBE76A3W.mjs → chunk-6LATG7X5.mjs} +2 -2
- package/out/__chunks__/{chunk-C43JUIS3.mjs → chunk-7MZD7YCO.mjs} +2 -2
- package/out/__chunks__/{chunk-YWZJG5RG.mjs → chunk-7OBI7GUK.mjs} +2 -2
- package/out/__chunks__/{chunk-G36BWGZR.mjs → chunk-A5BJAB7T.mjs} +2 -2
- package/out/__chunks__/{chunk-HFN44NHN.mjs → chunk-ASVVZSNW.mjs} +2 -2
- package/out/__chunks__/{chunk-QUX36OME.mjs → chunk-AYPDQETP.mjs} +2 -2
- package/out/__chunks__/{chunk-RKIJSY5U.mjs → chunk-B3UFF7ML.mjs} +2 -2
- package/out/__chunks__/chunk-BMC2YI75.mjs +2 -0
- package/out/__chunks__/chunk-C4A4E2FY.mjs +2 -0
- package/out/__chunks__/{chunk-LNKBLVKB.mjs → chunk-D4BQCSIY.mjs} +2 -2
- package/out/__chunks__/{chunk-GUD6RECQ.mjs → chunk-DUNGWQ5A.mjs} +2 -2
- package/out/__chunks__/{chunk-BN6QVD7B.mjs → chunk-E2XW7YVE.mjs} +2 -2
- package/out/__chunks__/{chunk-USYO34PE.mjs → chunk-ECTE4GIA.mjs} +2 -2
- package/out/__chunks__/{chunk-UZSATXTQ.mjs → chunk-EGM63G4K.mjs} +2 -2
- package/out/__chunks__/{chunk-YKKA4F3Z.mjs → chunk-FCH3TZNB.mjs} +2 -2
- package/out/__chunks__/{chunk-TBV26EXY.mjs → chunk-FLN5MNNT.mjs} +2 -2
- package/out/__chunks__/chunk-FXR3CXVB.mjs +2 -0
- package/out/__chunks__/chunk-FYEAQFW5.mjs +2 -0
- package/out/__chunks__/{chunk-RPHY4POK.mjs → chunk-GOK56W56.mjs} +2 -2
- package/out/__chunks__/{chunk-CDFO2GVK.mjs → chunk-HAA2EO5S.mjs} +2 -2
- package/out/__chunks__/{chunk-5JYWEIVX.mjs → chunk-HVUUOFDY.mjs} +2 -2
- package/out/__chunks__/{chunk-L6P6YGKR.mjs → chunk-IILEKPBI.mjs} +2 -2
- package/out/__chunks__/{chunk-QRW74BOT.mjs → chunk-ILGTFJZA.mjs} +2 -2
- package/out/__chunks__/chunk-JIOAD7MK.mjs +2 -0
- package/out/__chunks__/{chunk-IKCEIZK2.mjs → chunk-JVKQPCTQ.mjs} +2 -2
- package/out/__chunks__/chunk-KI2NE6MI.mjs +2 -0
- package/out/__chunks__/chunk-KJLFUHEH.mjs +2 -0
- package/out/__chunks__/{chunk-ICF2MAYU.mjs.map → chunk-KJLFUHEH.mjs.map} +1 -1
- package/out/__chunks__/chunk-KN6ADSRW.mjs +2 -0
- package/out/__chunks__/chunk-KQ4LLKWZ.mjs +2 -0
- package/out/__chunks__/{chunk-BZ7SOBES.mjs → chunk-LMNAVRBQ.mjs} +2 -2
- package/out/__chunks__/{chunk-6M6WCTHW.mjs → chunk-LPPO6LUR.mjs} +2 -2
- package/out/__chunks__/{chunk-ARKNESS3.mjs → chunk-LS3YSRRM.mjs} +2 -2
- package/out/__chunks__/{chunk-QXV4PPZE.mjs → chunk-MI73KXKA.mjs} +2 -2
- package/out/__chunks__/{chunk-XOZA4RC2.mjs → chunk-MUYR3PCB.mjs} +2 -2
- package/out/__chunks__/{chunk-L6FN2IMQ.mjs → chunk-MZBHPAM4.mjs} +2 -2
- package/out/__chunks__/{chunk-U4LAMKLU.mjs → chunk-O5TU5QQI.mjs} +2 -2
- package/out/__chunks__/{chunk-AN65FUBF.mjs → chunk-OA5HXCGR.mjs} +2 -2
- package/out/__chunks__/{chunk-WFSFMRX4.mjs → chunk-OHUOJ5P3.mjs} +2 -2
- package/out/__chunks__/chunk-OKR2YV5J.mjs +2 -0
- package/out/__chunks__/{chunk-MVFIZ2UW.mjs → chunk-OYO5HAC3.mjs} +2 -2
- package/out/__chunks__/{chunk-CS5BSVSE.mjs → chunk-PH34FNHZ.mjs} +2 -2
- package/out/__chunks__/{chunk-MBHXPTPF.mjs → chunk-Q3XYMQWN.mjs} +2 -2
- package/out/__chunks__/{chunk-APLLFKCG.mjs → chunk-Q5BUVODR.mjs} +2 -2
- package/out/__chunks__/chunk-R55WPJMP.mjs +2 -0
- package/out/__chunks__/{chunk-IAQCHY3X.mjs → chunk-RFCXQES5.mjs} +2 -2
- package/out/__chunks__/{chunk-XNFTD5SG.mjs → chunk-SLWY5XP5.mjs} +2 -2
- package/out/__chunks__/{chunk-MZZNZFMX.mjs → chunk-TE5XVHX2.mjs} +2 -2
- package/out/__chunks__/chunk-U4MC4F2U.mjs +2 -0
- package/out/__chunks__/chunk-U6BZ2PHS.mjs +2 -0
- package/out/__chunks__/{chunk-ISHHMEWX.mjs → chunk-UGJVHUID.mjs} +2 -2
- package/out/__chunks__/{chunk-5MTV6BYP.mjs → chunk-USDJ7CAG.mjs} +2 -2
- package/out/__chunks__/{chunk-Z3I5UBKJ.mjs → chunk-UVHONPA5.mjs} +2 -2
- package/out/__chunks__/{chunk-JKXED2JJ.mjs → chunk-VEEHHORJ.mjs} +2 -2
- package/out/__chunks__/{chunk-L5G2CINO.mjs → chunk-VOGVARHA.mjs} +2 -2
- package/out/__chunks__/{chunk-JFRQ37WV.mjs → chunk-VRXZUSWL.mjs} +2 -2
- package/out/__chunks__/{chunk-7ZARUNA4.mjs → chunk-VXNZHN7T.mjs} +2 -2
- package/out/__chunks__/{chunk-C6NQEN6N.mjs → chunk-WNEPIIEY.mjs} +2 -2
- package/out/__chunks__/{chunk-HFYBB326.mjs → chunk-XFUNY6KC.mjs} +2 -2
- package/out/__chunks__/{chunk-HLEGJP45.mjs → chunk-XM4IYM4M.mjs} +2 -2
- package/out/__chunks__/{chunk-ZN3MQVUF.mjs → chunk-XVCSSYCP.mjs} +2 -2
- package/out/__chunks__/{chunk-LBCZDKL3.mjs → chunk-YAMIPNLB.mjs} +2 -2
- package/out/__chunks__/{chunk-MQE7EP66.mjs → chunk-YTR6YMAJ.mjs} +2 -2
- package/out/__chunks__/{chunk-3GZLHBMS.mjs → chunk-YUBLXI76.mjs} +2 -2
- package/out/__chunks__/chunk-Z35H36KH.mjs +2 -0
- package/out/__chunks__/{chunk-XSQDQMCL.mjs → chunk-Z745SBSQ.mjs} +2 -2
- package/out/__chunks__/chunk-ZDMHP47O.mjs +2 -0
- package/out/__chunks__/{chunk-TF3E3RUT.mjs → chunk-ZFJOYMJ7.mjs} +2 -2
- package/out/__chunks__/{chunk-NVA7A4D6.mjs → chunk-ZM5EFY6B.mjs} +2 -2
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +6 -6
- package/out/__chunks__/chunk-4SJNM6SL.mjs +0 -2
- package/out/__chunks__/chunk-6IP7LJSW.mjs +0 -2
- package/out/__chunks__/chunk-7AU7TZJF.mjs +0 -2
- package/out/__chunks__/chunk-D3KKYOYF.mjs +0 -2
- package/out/__chunks__/chunk-DGHPHAOS.mjs +0 -2
- package/out/__chunks__/chunk-GE6T2B4E.mjs +0 -2
- package/out/__chunks__/chunk-HBB7HL5B.mjs +0 -2
- package/out/__chunks__/chunk-HO2Y34SD.mjs +0 -2
- package/out/__chunks__/chunk-ICF2MAYU.mjs +0 -2
- package/out/__chunks__/chunk-IJT27EFF.mjs +0 -2
- package/out/__chunks__/chunk-KGFWVCB5.mjs +0 -2
- package/out/__chunks__/chunk-MKUAKB6R.mjs +0 -2
- package/out/__chunks__/chunk-R3XFYXKM.mjs +0 -2
- package/out/__chunks__/chunk-UKC2J7S5.mjs +0 -2
- package/out/__chunks__/chunk-VFIT554C.mjs +0 -2
- package/out/__chunks__/chunk-WJMZWKHU.mjs +0 -2
- /package/out/__chunks__/{chunk-UKC2J7S5.mjs.map → chunk-2WWGLFNR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WIH2HALG.mjs.map → chunk-37ZYC4SQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7DECU3EO.mjs.map → chunk-3NBR5S3K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AN7WTTXJ.mjs.map → chunk-3PAQ2Z7N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QNGOARJQ.mjs.map → chunk-4ADFEGIK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BMB5EBCD.mjs.map → chunk-4JRSZ2WY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WV7M6B7H.mjs.map → chunk-4PIC7DFH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WJEJIGZL.mjs.map → chunk-5GAD4GPI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QG4OP5CW.mjs.map → chunk-5LRQIZ4G.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HD6OPS7Q.mjs.map → chunk-5TAQLAW3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-72FLAB3J.mjs.map → chunk-6ILB52XY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FBE76A3W.mjs.map → chunk-6LATG7X5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C43JUIS3.mjs.map → chunk-7MZD7YCO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YWZJG5RG.mjs.map → chunk-7OBI7GUK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-G36BWGZR.mjs.map → chunk-A5BJAB7T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HFN44NHN.mjs.map → chunk-ASVVZSNW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QUX36OME.mjs.map → chunk-AYPDQETP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RKIJSY5U.mjs.map → chunk-B3UFF7ML.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MKUAKB6R.mjs.map → chunk-BMC2YI75.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DGHPHAOS.mjs.map → chunk-C4A4E2FY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LNKBLVKB.mjs.map → chunk-D4BQCSIY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GUD6RECQ.mjs.map → chunk-DUNGWQ5A.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BN6QVD7B.mjs.map → chunk-E2XW7YVE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-USYO34PE.mjs.map → chunk-ECTE4GIA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UZSATXTQ.mjs.map → chunk-EGM63G4K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YKKA4F3Z.mjs.map → chunk-FCH3TZNB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TBV26EXY.mjs.map → chunk-FLN5MNNT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R3XFYXKM.mjs.map → chunk-FXR3CXVB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4SJNM6SL.mjs.map → chunk-FYEAQFW5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RPHY4POK.mjs.map → chunk-GOK56W56.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CDFO2GVK.mjs.map → chunk-HAA2EO5S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5JYWEIVX.mjs.map → chunk-HVUUOFDY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L6P6YGKR.mjs.map → chunk-IILEKPBI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QRW74BOT.mjs.map → chunk-ILGTFJZA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GE6T2B4E.mjs.map → chunk-JIOAD7MK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IKCEIZK2.mjs.map → chunk-JVKQPCTQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HBB7HL5B.mjs.map → chunk-KI2NE6MI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IJT27EFF.mjs.map → chunk-KN6ADSRW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VFIT554C.mjs.map → chunk-KQ4LLKWZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BZ7SOBES.mjs.map → chunk-LMNAVRBQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6M6WCTHW.mjs.map → chunk-LPPO6LUR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ARKNESS3.mjs.map → chunk-LS3YSRRM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QXV4PPZE.mjs.map → chunk-MI73KXKA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XOZA4RC2.mjs.map → chunk-MUYR3PCB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L6FN2IMQ.mjs.map → chunk-MZBHPAM4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U4LAMKLU.mjs.map → chunk-O5TU5QQI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AN65FUBF.mjs.map → chunk-OA5HXCGR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WFSFMRX4.mjs.map → chunk-OHUOJ5P3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KGFWVCB5.mjs.map → chunk-OKR2YV5J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MVFIZ2UW.mjs.map → chunk-OYO5HAC3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CS5BSVSE.mjs.map → chunk-PH34FNHZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MBHXPTPF.mjs.map → chunk-Q3XYMQWN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-APLLFKCG.mjs.map → chunk-Q5BUVODR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D3KKYOYF.mjs.map → chunk-R55WPJMP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IAQCHY3X.mjs.map → chunk-RFCXQES5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XNFTD5SG.mjs.map → chunk-SLWY5XP5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MZZNZFMX.mjs.map → chunk-TE5XVHX2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6IP7LJSW.mjs.map → chunk-U4MC4F2U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HO2Y34SD.mjs.map → chunk-U6BZ2PHS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ISHHMEWX.mjs.map → chunk-UGJVHUID.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5MTV6BYP.mjs.map → chunk-USDJ7CAG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z3I5UBKJ.mjs.map → chunk-UVHONPA5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JKXED2JJ.mjs.map → chunk-VEEHHORJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L5G2CINO.mjs.map → chunk-VOGVARHA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JFRQ37WV.mjs.map → chunk-VRXZUSWL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7ZARUNA4.mjs.map → chunk-VXNZHN7T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C6NQEN6N.mjs.map → chunk-WNEPIIEY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HFYBB326.mjs.map → chunk-XFUNY6KC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HLEGJP45.mjs.map → chunk-XM4IYM4M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZN3MQVUF.mjs.map → chunk-XVCSSYCP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LBCZDKL3.mjs.map → chunk-YAMIPNLB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MQE7EP66.mjs.map → chunk-YTR6YMAJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3GZLHBMS.mjs.map → chunk-YUBLXI76.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WJMZWKHU.mjs.map → chunk-Z35H36KH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XSQDQMCL.mjs.map → chunk-Z745SBSQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7AU7TZJF.mjs.map → chunk-ZDMHP47O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TF3E3RUT.mjs.map → chunk-ZFJOYMJ7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NVA7A4D6.mjs.map → chunk-ZM5EFY6B.mjs.map} +0 -0
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ It is built for applications that use any of the following technologies:
|
|
|
17
17
|
- Angular (example: [Angular Template Dapp](https://github.com/multiversx/mx-template-dapp-angular))
|
|
18
18
|
- Vue (example: [Vue Template Dapp](https://github.com/multiversx/mx-template-dapp-vue))
|
|
19
19
|
- Any other JavaScript framework (e.g. Solid.js etc.) (example: [Solid.js Dapp](https://github.com/multiversx/mx-solidjs-template-dapp))
|
|
20
|
-
- React Native
|
|
20
|
+
- React Native (example: [React Native Dapp](https://github.com/multiversx/mx-template-dapp-react-native))
|
|
21
21
|
- Next.js (example: [Next.js Dapp](https://github.com/multiversx/mx-template-dapp-nextjs))
|
|
22
22
|
|
|
23
23
|
## GitHub project
|
|
@@ -74,7 +74,7 @@ Having this knowledge, we can consider several steps needed to put a dApp togeth
|
|
|
74
74
|
| 1 | Configuration | - storage configuration (e.g. sessionStorage, localStorage etc.)<br>- chain configuration<br>- custom provider configuration (adding / disabling / changing providers) |
|
|
75
75
|
| 2 | Provider interaction | - logging in and out<br>- signing transactions / messages |
|
|
76
76
|
| 3 | Presenting data | - get store data (e.g. account balance, account address etc.)<br>- use components to display data (e.g. balance, address, transactions list) |
|
|
77
|
-
| 4 | Transactions | - sending transactions<br>- tracking transactions<br>-
|
|
77
|
+
| 4 | Transactions | - sending transactions<br>- tracking transactions<br>- displaying transactions history |
|
|
78
78
|
|
|
79
79
|
Each of these steps will be explained in more detail in the following sections.
|
|
80
80
|
|
|
@@ -191,7 +191,7 @@ export const AdvancedConnectButton = () => {
|
|
|
191
191
|
|
|
192
192
|
```
|
|
193
193
|
|
|
194
|
-
#### 2.2
|
|
194
|
+
#### 2.2 Programmatic login using the `ProviderFactory`
|
|
195
195
|
|
|
196
196
|
If you want to login using your custom UI, you can link user actions to specific providers by calling the `ProviderFactory`.
|
|
197
197
|
|
|
@@ -391,7 +391,7 @@ We have seen in the previous chapter what are the minimal steps to get up and ru
|
|
|
391
391
|
| # | Type | Description |
|
|
392
392
|
|---|------|-------------|
|
|
393
393
|
| 1 | Network | Chain configuration |
|
|
394
|
-
| 2 | Provider | The signing provider for logging in and
|
|
394
|
+
| 2 | Provider | The signing provider for logging in and signing transactions |
|
|
395
395
|
| 3 | Account | Inspecting user address and balance |
|
|
396
396
|
| 4 | Transactions Manager | Sending and tracking transactions |
|
|
397
397
|
| 5 | UI Components | Displaying UI information like balance, public keys etc. |
|
|
@@ -415,13 +415,13 @@ Conceptually, these can be split into 3 main parts:
|
|
|
415
415
|
|
|
416
416
|
- First is the business logic in `apiCalls`, `constants`, `providers` and `methods`
|
|
417
417
|
- Then comes the persistence layer hosted in the `store` folder, using [Zustand](https://zustand.docs.pmnd.rs/) under the hood.
|
|
418
|
-
- Last are the UI components hosted in [@multiversx/sdk-dapp-ui](https://github.com/multiversx/mx-sdk-dapp-ui) with some components controlled on demand by classes defined in `
|
|
418
|
+
- Last are the UI components hosted in [@multiversx/sdk-dapp-ui](https://github.com/multiversx/mx-sdk-dapp-ui) with some components controlled on demand by classes defined in `controllers` and `managers`
|
|
419
419
|
|
|
420
420
|
Next, we will take the elements from Table 3 and detail them in the following sections.
|
|
421
421
|
|
|
422
422
|
### 1. Network
|
|
423
423
|
|
|
424
|
-
The network configuration is done in the `initApp` method, where you can make several
|
|
424
|
+
The network configuration is done in the `initApp` method, where you can make several configurations like:
|
|
425
425
|
|
|
426
426
|
- specifying the environment (`devnet`, `testnet`, `mainnet`)
|
|
427
427
|
- overriding certain network parameters like wallet address, explorer address etc.
|
|
@@ -449,9 +449,9 @@ const provider = await ProviderFactory.create({
|
|
|
449
449
|
await provider?.login();
|
|
450
450
|
```
|
|
451
451
|
|
|
452
|
-
#### Accessing
|
|
452
|
+
#### Accessing provider methods
|
|
453
453
|
|
|
454
|
-
Once the provider is initialized, you can get a reference to it using the `getAccountProvider` method. Then you can call the `login`, `logout`, `signTransactions`, `signMessage` methods, or other custom methods depending on the
|
|
454
|
+
Once the provider is initialized, you can get a reference to it using the `getAccountProvider` method. Then you can call the `login`, `logout`, `signTransactions`, `signMessage` methods, or other custom methods depending on the initialized provider (see ledger for example).
|
|
455
455
|
|
|
456
456
|
### 3. Account
|
|
457
457
|
|
|
@@ -507,7 +507,7 @@ The transaction lifecycle consists of the following steps:
|
|
|
507
507
|
|---|------|-------------|----|
|
|
508
508
|
| | `methods/transactions` | path | `react/transactions` |
|
|
509
509
|
| 1 | `getTransactionSessions()` | returns all transaction sessions |`useGetTransactionSessions()` |
|
|
510
|
-
| 2 | `getPendingTransactionsSessions()` | returns
|
|
510
|
+
| 2 | `getPendingTransactionsSessions()` | returns a record of pending sessions | `useGetPendingTransactionsSessions()`|
|
|
511
511
|
| 3 | `getPendingTransactions()` | returns an array of signed transactions | `useGetPendingTransactions()` |
|
|
512
512
|
| 4 | `getFailedTransactionsSessions()` | returns a record of failed sessions | `useGetFailedTransactionsSessions()`|
|
|
513
513
|
| 5 | `getFailedTransactions()` | returns an array of failed transactions | `useGetFailedTransactions()`|
|
|
@@ -560,7 +560,7 @@ In this way, all transactions are sent simultaneously. There is no limit to the
|
|
|
560
560
|
|
|
561
561
|
```typescript
|
|
562
562
|
const transactionManager = TransactionManager.getInstance();
|
|
563
|
-
const parallelTransactions:
|
|
563
|
+
const parallelTransactions: SignedTransactionType[] = [tx1, tx2, tx3, tx4];
|
|
564
564
|
const sentTransactions = await transactionManager.send(parallelTransactions);
|
|
565
565
|
```
|
|
566
566
|
|
|
@@ -652,7 +652,7 @@ await tManager.track([plainTransaction]);
|
|
|
652
652
|
|
|
653
653
|
#### 3.2 Advanced Usage
|
|
654
654
|
|
|
655
|
-
If you need to check the status of the signed transactions, you can query the store
|
|
655
|
+
If you need to check the status of the signed transactions, you can query the store directly using the `sessionId` returned by the `track()` method.
|
|
656
656
|
|
|
657
657
|
```typescript
|
|
658
658
|
import { getStore } from '@multiversx/sdk-dapp/out/store/store';
|
|
@@ -668,7 +668,7 @@ Object.entries(state).forEach(([sessionKey, data]) => {
|
|
|
668
668
|
|
|
669
669
|
### 5. UI Components
|
|
670
670
|
|
|
671
|
-
`sdk-dapp` needs to make use of visual elements for allowing the user to interact with some providers (like the ledger), or to display messages to the user (like idle states or toasts). These visual elements
|
|
671
|
+
`sdk-dapp` needs to make use of visual elements for allowing the user to interact with some providers (like the ledger), or to display messages to the user (like idle states or toasts). These visual elements consist of webcomponents hosted in the `@multiversx/sdk-dapp-ui` package. Thus, `sdk-dapp` does not hold any UI elements, just business logic that controls external components. We can consider two types of UI components: internal and public. They are differentiated by the way they are controlled: internal components are controlled by `sdk-dapp`'s signing or logging in flows, while public components should be controlled by the dApp.
|
|
672
672
|
|
|
673
673
|
#### 5.1 Public components
|
|
674
674
|
|
|
@@ -761,7 +761,7 @@ If you want to override private components and create your own, you can implemen
|
|
|
761
761
|
|
|
762
762
|
The recommended way to debug your application is by using [lerna](https://lerna.js.org/). Make sure you have the same package version in sdk-dapp's package.json and in your project's package.json.
|
|
763
763
|
|
|
764
|
-
If you
|
|
764
|
+
If you prefer to use [npm link](https://docs.npmjs.com/cli/v11/commands/npm-link), make sure to use the `preserveSymlinks` option in the server configuration:
|
|
765
765
|
|
|
766
766
|
```js
|
|
767
767
|
resolve: {
|
|
@@ -772,7 +772,7 @@ If you preffer to use [npm link](https://docs.npmjs.com/cli/v11/commands/npm-lin
|
|
|
772
772
|
},
|
|
773
773
|
```
|
|
774
774
|
|
|
775
|
-
|
|
775
|
+
Chrome Redux DevTools are by default enabled to help you debug your application. You can find the extension in the Chrome Extensions store.
|
|
776
776
|
|
|
777
777
|
To build the library, run:
|
|
778
778
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-LS3YSRRM.mjs";import{c as n}from"./chunk-YTR6YMAJ.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-2WWGLFNR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as e}from"./chunk-YTR6YMAJ.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-37ZYC4SQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-Z35H36KH.mjs";import{a as m}from"./chunk-NZYB675D.mjs";import{f}from"./chunk-PJWJZHIS.mjs";import x from"bignumber.js";var F=async({manager:e,provider:d})=>{if(!e||!d)throw new Error("Provider is not initialized.");let{network:u}=b(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await w({baseURL:u.apiAddress}),l=o=>o.index>=s&&o.index<s+e.addressesPerPage,I=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),A=r.filter(l),y=!!I[s];if(e.updateAccountScreen({isLoading:!y}),A.length>0){e.updateAccountScreen({accounts:A});return}try{let o=Math.floor(s/e.addressesPerPage),n=await d.getAccounts(o,e.addressesPerPage),L=n.map((t,c)=>({address:t,balance:"...",index:c+s})),P=[...r,...L],h=n.map(t=>m({address:t,baseURL:u.apiAddress})),j=await Promise.all(h),i=P.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});j.forEach(t=>{if(!t||!a||!a.price)return;let c=new x(t.balance),S=c.dividedBy(x(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let U=g({amount:f({input:t.balance}),usd:a?.price});i[t.address].balance=S,i[t.address].usdValue=U});let p=Object.values(i).sort((t,c)=>t.index-c.index),O=p.filter(l);e.updateAllAccounts(p),e.updateAccountScreen({accounts:O,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{F as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3NBR5S3K.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-37ZYC4SQ.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-3PAQ2Z7N.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-E2XW7YVE.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4ADFEGIK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-KJLFUHEH.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4JRSZ2WY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as e}from"./chunk-YTR6YMAJ.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-4PIC7DFH.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{s as r}from"./chunk-YTR6YMAJ.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-5GAD4GPI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-6LATG7X5.mjs";import{a}from"./chunk-YUFPUG5O.mjs";import{a as c}from"./chunk-C4A4E2FY.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-5LRQIZ4G.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-O5TU5QQI.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-5TAQLAW3.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-U6BZ2PHS.mjs";import{s as e}from"./chunk-YTR6YMAJ.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-6ILB52XY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-XVCSSYCP.mjs";import{a as c}from"./chunk-C4A4E2FY.mjs";import{s as n}from"./chunk-YTR6YMAJ.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-6LATG7X5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as B}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as B}from"./chunk-FYEAQFW5.mjs";import{a as b}from"./chunk-VOGVARHA.mjs";import{a as k}from"./chunk-QXC4D3AC.mjs";import{a as D}from"./chunk-TE5XVHX2.mjs";import{a as I}from"./chunk-PHOF3Z5D.mjs";import{a as _}from"./chunk-6ILB52XY.mjs";import{a as R}from"./chunk-YY724VZR.mjs";import{a as j}from"./chunk-URJQWHBM.mjs";import{a as A}from"./chunk-YAMIPNLB.mjs";import{a as O}from"./chunk-FXR3CXVB.mjs";import{s as x}from"./chunk-YTR6YMAJ.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-7MZD7YCO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-MI73KXKA.mjs";import{b as r}from"./chunk-LPPO6LUR.mjs";import{s as i}from"./chunk-YTR6YMAJ.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-7OBI7GUK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-4ADFEGIK.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-A5BJAB7T.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-LMNAVRBQ.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ASVVZSNW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-LMNAVRBQ.mjs";import{a as t}from"./chunk-KQ4LLKWZ.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-AYPDQETP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-AYPDQETP.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-B3UFF7ML.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-B3UFF7ML.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-D4BQCSIY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-U6BZ2PHS.mjs";import{a as f}from"./chunk-5TAQLAW3.mjs";import{a as g}from"./chunk-4PIC7DFH.mjs";import{b as a}from"./chunk-YTR6YMAJ.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DUNGWQ5A.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-YTR6YMAJ.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-E2XW7YVE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-KJLFUHEH.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-ECTE4GIA.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-XFUNY6KC.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-EGM63G4K.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as c}from"./chunk-YTR6YMAJ.mjs";import{a as o}from"./chunk-JMC7CMTU.mjs";var r=e=>{c().setState(({account:t})=>{let s=t.address===e.address;t.accounts={[t.address]:s?e:o}},!1,"setAccount")},u=e=>c().setState(({account:t})=>{t.ledgerAccount=e},!1,"setLedgerAccount"),p=e=>c().setState(({account:t})=>{t.walletConnectAccount=e},!1,"setWalletConnectAccount"),l=e=>c().setState(({account:t})=>{t.websocketEvent={timestamp:Date.now(),message:e}},!1,"setWebsocketEvent"),m=e=>c().setState(({account:t})=>{t.websocketBatchEvent={timestamp:Date.now(),data:e}},!1,"setWebsocketBatchEvent"),A=e=>{c().setState(({account:t})=>{t.accounts[t.address].nonce=e},!1,"setAccountNonce")};export{r as a,u as b,p as c,l as d,m as e,A as f};
|
|
2
|
+
//# sourceMappingURL=chunk-FCH3TZNB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-KJLFUHEH.mjs";var t=()=>{if(!e)return"";try{let r=e.document?.referrer;return r?new URL(r).origin:""}catch(r){return console.error(r),""}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FLN5MNNT.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-YTR6YMAJ.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-GOK56W56.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-D4BQCSIY.mjs";import{a as e}from"./chunk-KI2NE6MI.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-HAA2EO5S.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-GOK56W56.mjs";import{d as m,e as l}from"./chunk-FCH3TZNB.mjs";import{q as a}from"./chunk-YTR6YMAJ.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-HVUUOFDY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-FMQYLMTU.mjs";import{b as e,c as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-FMQYLMTU.mjs";import{b as e,c as i}from"./chunk-Q5BUVODR.mjs";import{j as r}from"./chunk-65L5EBBL.mjs";import{q as n}from"./chunk-YTR6YMAJ.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-IILEKPBI.mjs.map
|
|
@@ -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-YTR6YMAJ.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-ILGTFJZA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-KI2NE6MI.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JVKQPCTQ.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.5'; // 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 s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-ECTE4GIA.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-LMNAVRBQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-YTR6YMAJ.mjs";import{a as c}from"./chunk-SQVKVA7X.mjs";import{a as i}from"./chunk-ULUZWP2P.mjs";var e=o=>u().setState(({network:r})=>{r.network={...r.network,...o}},!1,"initializeNetworkConfig");var y=async({customNetworkConfig:o={},environment:r})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=r&&r in i,p=n?i[r]:{},s={...c,...p,...o},t={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await w(a),f=t.roundDuration?null:await l(a);if(f!=null&&(t.roundDuration=f.erd_round_duration),m!=null){let k={...t,...m,...o};return e(k),k}}return e(t),t};export{y as a,e as b};
|
|
2
|
+
//# sourceMappingURL=chunk-LPPO6LUR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-Q3XYMQWN.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-LS3YSRRM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-5GAD4GPI.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-MI73KXKA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as s}from"./chunk-OA5HXCGR.mjs";import{a as u}from"./chunk-AYPDQETP.mjs";import{s as c}from"./chunk-YTR6YMAJ.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-CDQ2BNUD.mjs";import{a}from"./chunk-PLUWBWJ2.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(a).filter(n=>![a.none,a.webview].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MUYR3PCB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as A}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as A}from"./chunk-PH34FNHZ.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as f}from"./chunk-XVCSSYCP.mjs";import{b as S}from"./chunk-3ZEUVYQF.mjs";import{a as y}from"./chunk-Q5BUVODR.mjs";import{a as g}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-U6BZ2PHS.mjs";import{h as u}from"./chunk-2IUBMLF4.mjs";import{s as m}from"./chunk-YTR6YMAJ.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-MZBHPAM4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-4PIC7DFH.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-O5TU5QQI.mjs.map
|