@multiversx/sdk-dapp 5.4.0 → 5.5.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/README.md +49 -6
- package/out/__chunks__/{chunk-UCRVRBTA.mjs → chunk-2AJ5KJ2V.mjs} +1 -1
- package/out/__chunks__/chunk-2AJ5KJ2V.mjs.map +7 -0
- package/out/__chunks__/{chunk-XPASD5P4.mjs → chunk-2DUOXMZP.mjs} +2 -2
- package/out/__chunks__/{chunk-7ZHH6AD4.mjs → chunk-2LIUW5CF.mjs} +2 -2
- package/out/__chunks__/{chunk-LOPC75K6.mjs → chunk-2SYDJSIO.mjs} +2 -2
- package/out/__chunks__/chunk-32Z4H2Q4.mjs +2 -0
- package/out/__chunks__/{chunk-YPH67JEE.mjs → chunk-3DZPVOPO.mjs} +2 -2
- package/out/__chunks__/chunk-3JRG3AWF.mjs +2 -0
- package/out/__chunks__/chunk-3JRG3AWF.mjs.map +7 -0
- package/out/__chunks__/{chunk-VLASN3TA.mjs → chunk-3TM6K4Z4.mjs} +2 -2
- package/out/__chunks__/{chunk-WDFIVLDW.mjs → chunk-43SX7DUF.mjs} +2 -2
- package/out/__chunks__/{chunk-VBNLRSKL.mjs → chunk-44AUEOAU.mjs} +2 -2
- package/out/__chunks__/{chunk-SMCI4JNY.mjs → chunk-4CGAWZR6.mjs} +2 -2
- package/out/__chunks__/{chunk-SFXZJSEY.mjs → chunk-4O27AVB7.mjs} +2 -2
- package/out/__chunks__/{chunk-5R7MHTVH.mjs → chunk-4QDQSEN7.mjs} +2 -2
- package/out/__chunks__/{chunk-JA27GJYB.mjs → chunk-573LAOYN.mjs} +2 -2
- package/out/__chunks__/{chunk-QJTWOZ3K.mjs → chunk-5PENJRCS.mjs} +2 -2
- package/out/__chunks__/{chunk-S4TJTINB.mjs → chunk-6CMARMS2.mjs} +2 -2
- package/out/__chunks__/{chunk-SFGR74WM.mjs → chunk-6DAQAOWP.mjs} +2 -2
- package/out/__chunks__/{chunk-VBWYZ6ZU.mjs → chunk-6TJZZHFV.mjs} +2 -2
- package/out/__chunks__/chunk-6ZVWYKKI.mjs +2 -0
- package/out/__chunks__/{chunk-TPXNYEOT.mjs → chunk-764JPTJ7.mjs} +2 -2
- package/out/__chunks__/chunk-7DNJ6NZI.mjs +2 -0
- package/out/__chunks__/chunk-7DNJ6NZI.mjs.map +7 -0
- package/out/__chunks__/chunk-7MGK7ZUE.mjs +2 -0
- package/out/__chunks__/{chunk-W6XNEY4N.mjs → chunk-A4KOSUVU.mjs} +2 -2
- package/out/__chunks__/{chunk-G2GZG32F.mjs → chunk-AIKIPJUG.mjs} +2 -2
- package/out/__chunks__/{chunk-BODQ3QWR.mjs → chunk-AIQMA75E.mjs} +2 -2
- package/out/__chunks__/{chunk-HDCJEKHM.mjs → chunk-AOF7QPPF.mjs} +2 -2
- package/out/__chunks__/{chunk-SZNAMXXH.mjs → chunk-AVEWWANG.mjs} +2 -2
- package/out/__chunks__/{chunk-K7PXA7CN.mjs → chunk-AXZ3DHTB.mjs} +2 -2
- package/out/__chunks__/{chunk-LIDJNFTE.mjs → chunk-B77BJX6Z.mjs} +2 -2
- package/out/__chunks__/{chunk-X4P6NIGX.mjs → chunk-BB7POIGL.mjs} +2 -2
- package/out/__chunks__/{chunk-GYYGYOIE.mjs → chunk-BKQQK7WP.mjs} +2 -2
- package/out/__chunks__/chunk-BKQQK7WP.mjs.map +7 -0
- package/out/__chunks__/{chunk-OTEIKKOW.mjs → chunk-BPOXONMJ.mjs} +2 -2
- package/out/__chunks__/{chunk-PDI722XH.mjs → chunk-C65TZQBZ.mjs} +2 -2
- package/out/__chunks__/{chunk-PN7JDWSZ.mjs → chunk-CB4IL76J.mjs} +2 -2
- package/out/__chunks__/chunk-CCD7PUHB.mjs +2 -0
- package/out/__chunks__/{chunk-YEY7YGZD.mjs → chunk-CE4N3GKT.mjs} +2 -2
- package/out/__chunks__/{chunk-M5EQGPV5.mjs → chunk-COPAYHAQ.mjs} +2 -2
- package/out/__chunks__/{chunk-NMK74PUW.mjs → chunk-CT5LMMAW.mjs} +2 -2
- package/out/__chunks__/chunk-CZGN3YPT.mjs +2 -0
- package/out/__chunks__/chunk-DA76AK4I.mjs +2 -0
- package/out/__chunks__/chunk-DA76AK4I.mjs.map +7 -0
- package/out/__chunks__/{chunk-UCWTYWB3.mjs → chunk-DCF6BLSL.mjs} +2 -2
- package/out/__chunks__/chunk-DJUPAQRK.mjs +2 -0
- package/out/__chunks__/{chunk-ERDTZ52C.mjs → chunk-ECDI66QL.mjs} +2 -2
- package/out/__chunks__/chunk-EET35YZW.mjs +2 -0
- package/out/__chunks__/{chunk-LL2IIBPG.mjs → chunk-EKBFVSFP.mjs} +2 -2
- package/out/__chunks__/{chunk-PFR5VSL2.mjs → chunk-GBYZHNPO.mjs} +2 -2
- package/out/__chunks__/chunk-GQFB3L2J.mjs +2 -0
- package/out/__chunks__/{chunk-32MEBSR7.mjs → chunk-GWZUTQLT.mjs} +2 -2
- package/out/__chunks__/chunk-HRVNGVC2.mjs +2 -0
- package/out/__chunks__/chunk-HRVNGVC2.mjs.map +7 -0
- package/out/__chunks__/{chunk-B353O452.mjs → chunk-HXFVUYGK.mjs} +2 -2
- package/out/__chunks__/{chunk-ZOYJTXNI.mjs → chunk-HYPARWQN.mjs} +2 -2
- package/out/__chunks__/{chunk-ENJAFJGK.mjs → chunk-IEUUVTQ5.mjs} +2 -2
- package/out/__chunks__/{chunk-6R6TFHBS.mjs → chunk-JSYDF4GF.mjs} +2 -2
- package/out/__chunks__/{chunk-I2YHVWIX.mjs → chunk-JZQKOOZH.mjs} +1 -1
- package/out/__chunks__/{chunk-I2YHVWIX.mjs.map → chunk-JZQKOOZH.mjs.map} +1 -1
- package/out/__chunks__/{chunk-UBQUZNLX.mjs → chunk-K4FRH3YU.mjs} +2 -2
- package/out/__chunks__/{chunk-HP2XUCRI.mjs → chunk-LABBTN37.mjs} +2 -2
- package/out/__chunks__/{chunk-KR2GUJDQ.mjs → chunk-LSAYT6GA.mjs} +2 -2
- package/out/__chunks__/chunk-LXI42ZLN.mjs +2 -0
- package/out/__chunks__/{chunk-HFY3MGS6.mjs.map → chunk-LXI42ZLN.mjs.map} +2 -2
- package/out/__chunks__/{chunk-XBIX2QET.mjs → chunk-LY5VXESF.mjs} +2 -2
- package/out/__chunks__/{chunk-HZ4ZWMRW.mjs → chunk-LZKKBLOO.mjs} +2 -2
- package/out/__chunks__/chunk-LZQXEMRC.mjs +2 -0
- package/out/__chunks__/{chunk-ZMC2BF4F.mjs → chunk-M3G5E4TL.mjs} +2 -2
- package/out/__chunks__/{chunk-TJKB7YME.mjs → chunk-M5COEJ24.mjs} +2 -2
- package/out/__chunks__/{chunk-SQ7C3XLA.mjs → chunk-MNKQNWZS.mjs} +2 -2
- package/out/__chunks__/{chunk-5OAY4PWR.mjs → chunk-N3J6ROD5.mjs} +2 -2
- package/out/__chunks__/chunk-NJUTBWG5.mjs +2 -0
- package/out/__chunks__/chunk-NTCDPOM4.mjs +2 -0
- package/out/__chunks__/{chunk-J7BQ2H5Q.mjs → chunk-NZGZ2C45.mjs} +2 -2
- package/out/__chunks__/chunk-O5PAMBB3.mjs +2 -0
- package/out/__chunks__/chunk-O5PAMBB3.mjs.map +7 -0
- package/out/__chunks__/chunk-OCQY6NUJ.mjs +2 -0
- package/out/__chunks__/chunk-OCQY6NUJ.mjs.map +7 -0
- package/out/__chunks__/{chunk-U4ZCGUVE.mjs → chunk-OE4JXDVW.mjs} +2 -2
- package/out/__chunks__/{chunk-YKHYAKVW.mjs → chunk-OLXCFQVN.mjs} +2 -2
- package/out/__chunks__/{chunk-SYHILLXA.mjs → chunk-OMBZCVQZ.mjs} +2 -2
- package/out/__chunks__/chunk-ON2ITKZA.mjs +2 -0
- package/out/__chunks__/{chunk-Z6OAKBWP.mjs → chunk-OQURAWR4.mjs} +2 -2
- package/out/__chunks__/{chunk-AOLW46E4.mjs → chunk-OVZEW7XD.mjs} +2 -2
- package/out/__chunks__/{chunk-SOGQ76CF.mjs → chunk-OXJJPBYT.mjs} +2 -2
- package/out/__chunks__/{chunk-766V4L43.mjs → chunk-P3WDIKX5.mjs} +2 -2
- package/out/__chunks__/chunk-P3WDIKX5.mjs.map +7 -0
- package/out/__chunks__/{chunk-I36DD2FW.mjs → chunk-P3Z2DQ5Y.mjs} +2 -2
- package/out/__chunks__/{chunk-A4AC45BS.mjs → chunk-QIXUIO74.mjs} +2 -2
- package/out/__chunks__/chunk-QLDZFO7M.mjs +2 -0
- package/out/__chunks__/{chunk-D5L63X7Y.mjs.map → chunk-QLDZFO7M.mjs.map} +1 -1
- package/out/__chunks__/{chunk-I3ILB737.mjs → chunk-QT6QIC4U.mjs} +2 -2
- package/out/__chunks__/{chunk-HTT67LH3.mjs → chunk-RTLNUOX6.mjs} +2 -2
- package/out/__chunks__/chunk-RUJVGJOT.mjs +2 -0
- package/out/__chunks__/chunk-RUJVGJOT.mjs.map +7 -0
- package/out/__chunks__/{chunk-SMEKGCKH.mjs → chunk-RVTPQ3R5.mjs} +2 -2
- package/out/__chunks__/{chunk-66SV7PYL.mjs → chunk-S3EO22CE.mjs} +2 -2
- package/out/__chunks__/{chunk-OCLD2VI4.mjs → chunk-S5DCQEU2.mjs} +2 -2
- package/out/__chunks__/{chunk-KYQ5IP6W.mjs → chunk-STN2J2XX.mjs} +2 -2
- package/out/__chunks__/{chunk-IOQULDE4.mjs → chunk-T3SGVYSV.mjs} +2 -2
- package/out/__chunks__/{chunk-XJY2BTDN.mjs → chunk-TDRQ3OLY.mjs} +2 -2
- package/out/__chunks__/chunk-TY3B64SM.mjs +2 -0
- package/out/__chunks__/{chunk-6PMMPBFA.mjs → chunk-TZCZXHWQ.mjs} +2 -2
- package/out/__chunks__/{chunk-4EQCI4IY.mjs → chunk-U3GPFT4V.mjs} +2 -2
- package/out/__chunks__/{chunk-FOFGZVG5.mjs → chunk-URNYMHJN.mjs} +2 -2
- package/out/__chunks__/{chunk-VT6N4MFC.mjs → chunk-USAIPG7X.mjs} +2 -2
- package/out/__chunks__/{chunk-JILAZBMF.mjs → chunk-UTSW2MIB.mjs} +2 -2
- package/out/__chunks__/chunk-UXWVVWTD.mjs +2 -0
- package/out/__chunks__/{chunk-GC5JRZOA.mjs.map → chunk-UXWVVWTD.mjs.map} +3 -3
- package/out/__chunks__/{chunk-XAMG7OLZ.mjs → chunk-V3VSL4SQ.mjs} +2 -2
- package/out/__chunks__/{chunk-NPWS3TZS.mjs → chunk-W25UUI6O.mjs} +2 -2
- package/out/__chunks__/{chunk-JBF3CPLK.mjs → chunk-W4GIORRC.mjs} +2 -2
- package/out/__chunks__/chunk-WGXHIBDE.mjs +2 -0
- package/out/__chunks__/chunk-WOMDF37F.mjs +2 -0
- package/out/__chunks__/{chunk-7QPD5RSY.mjs → chunk-WRQ5IRXO.mjs} +2 -2
- package/out/__chunks__/{chunk-QHGCAYUB.mjs → chunk-WUKB2V3K.mjs} +2 -2
- package/out/__chunks__/chunk-XD6MJHZL.mjs +2 -0
- package/out/__chunks__/chunk-XD6MJHZL.mjs.map +7 -0
- package/out/__chunks__/{chunk-4D2LHSRB.mjs → chunk-XGALUTQ5.mjs} +2 -2
- package/out/__chunks__/{chunk-WGFZEQNT.mjs → chunk-XVRM5XQM.mjs} +2 -2
- package/out/__chunks__/chunk-XVZUH5QS.mjs +2 -0
- package/out/__chunks__/chunk-XZ3C4DZL.mjs +2 -0
- package/out/__chunks__/chunk-XZ3C4DZL.mjs.map +7 -0
- package/out/__chunks__/chunk-YNJSOBXM.mjs +2 -0
- package/out/__chunks__/chunk-YP65EQFP.mjs +2 -0
- package/out/__chunks__/{chunk-HUZZMMJX.mjs.map → chunk-YP65EQFP.mjs.map} +3 -3
- package/out/__chunks__/{chunk-LWW4KDFK.mjs → chunk-YXWMQGAB.mjs} +2 -2
- package/out/__chunks__/{chunk-GVAJPM5C.mjs → chunk-Z7TITNCM.mjs} +2 -2
- package/out/__chunks__/{chunk-CL5IGYV5.mjs → chunk-ZKFUF6BU.mjs} +2 -2
- package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/economics/getEconomics.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/lib/sdkCore.cjs +1 -1
- package/out/lib/sdkCore.cjs.map +3 -3
- package/out/lib/sdkCore.d.ts +7 -2
- package/out/lib/sdkCore.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/ToastManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/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/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.cjs +1 -1
- package/out/providers/DappProvider/DappProvider.cjs.map +3 -3
- package/out/providers/DappProvider/DappProvider.d.ts +0 -6
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs.map +3 -3
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.d.ts +6 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.mjs.map +4 -4
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +2 -2
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.d.ts +1 -0
- 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/emptyProvider.cjs.map +1 -1
- package/out/providers/helpers/emptyProvider.d.ts +1 -1
- package/out/providers/helpers/emptyProvider.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +2 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +3 -3
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +2 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs.map +3 -3
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +2 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +3 -3
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +2 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +2 -2
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +2 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +3 -3
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +2 -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.cjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs.map +3 -3
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +2 -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/checkIsValidSender.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs.map +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.d.ts +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.d.ts +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +3 -3
- package/out/providers/strategies/helpers/signTransactions/signTransactions.d.ts +3 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.cjs +1 -1
- package/out/store/actions/config/configActions.cjs.map +3 -3
- package/out/store/actions/config/configActions.d.ts +1 -0
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/fetchAccount.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs.map +3 -3
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs.map +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.d.ts +2 -2
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs.map +3 -3
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.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/getTransactionAsset.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/validation/addressIsValid.cjs +1 -1
- package/out/utils/validation/addressIsValid.cjs.map +3 -3
- package/out/utils/validation/addressIsValid.mjs +1 -1
- package/out/utils/validation/isContract.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/package.json +1 -1
- package/out/__chunks__/chunk-2GXPSWQ4.mjs +0 -2
- package/out/__chunks__/chunk-2UVDW2RQ.mjs +0 -2
- package/out/__chunks__/chunk-3C5GZ3BL.mjs +0 -2
- package/out/__chunks__/chunk-3C5GZ3BL.mjs.map +0 -7
- package/out/__chunks__/chunk-4KXXF3PV.mjs +0 -2
- package/out/__chunks__/chunk-6KZ72DNU.mjs +0 -2
- package/out/__chunks__/chunk-6O5Y7U4C.mjs +0 -2
- package/out/__chunks__/chunk-766V4L43.mjs.map +0 -7
- package/out/__chunks__/chunk-7LMYILJF.mjs +0 -2
- package/out/__chunks__/chunk-CQNJKGUF.mjs +0 -2
- package/out/__chunks__/chunk-CQNJKGUF.mjs.map +0 -7
- package/out/__chunks__/chunk-D5L63X7Y.mjs +0 -2
- package/out/__chunks__/chunk-ERZNNJ4M.mjs +0 -2
- package/out/__chunks__/chunk-GC5JRZOA.mjs +0 -2
- package/out/__chunks__/chunk-GYYGYOIE.mjs.map +0 -7
- package/out/__chunks__/chunk-HFY3MGS6.mjs +0 -2
- package/out/__chunks__/chunk-HUZZMMJX.mjs +0 -2
- package/out/__chunks__/chunk-I3MK6KZJ.mjs +0 -2
- package/out/__chunks__/chunk-I3MK6KZJ.mjs.map +0 -7
- package/out/__chunks__/chunk-JI27YEKS.mjs +0 -2
- package/out/__chunks__/chunk-JXPL2SLD.mjs +0 -2
- package/out/__chunks__/chunk-K2FBVE6U.mjs +0 -2
- package/out/__chunks__/chunk-LKC3E6AW.mjs +0 -2
- package/out/__chunks__/chunk-MDVI45IV.mjs +0 -2
- package/out/__chunks__/chunk-MDVI45IV.mjs.map +0 -7
- package/out/__chunks__/chunk-NTEMINYA.mjs +0 -2
- package/out/__chunks__/chunk-NTEMINYA.mjs.map +0 -7
- package/out/__chunks__/chunk-PQ2OJ3JD.mjs +0 -2
- package/out/__chunks__/chunk-PQ2OJ3JD.mjs.map +0 -7
- package/out/__chunks__/chunk-R4BNJI2F.mjs +0 -2
- package/out/__chunks__/chunk-TD26OL6Y.mjs +0 -2
- package/out/__chunks__/chunk-TD26OL6Y.mjs.map +0 -7
- package/out/__chunks__/chunk-UCRVRBTA.mjs.map +0 -7
- package/out/__chunks__/chunk-UMJE36YK.mjs +0 -2
- package/out/__chunks__/chunk-UXP5UK2L.mjs +0 -2
- package/out/__chunks__/chunk-VGDWWBLN.mjs +0 -2
- package/out/__chunks__/chunk-XA6ZDGIQ.mjs +0 -2
- package/out/__chunks__/chunk-XA6ZDGIQ.mjs.map +0 -7
- package/out/__chunks__/chunk-XLMQWFKS.mjs +0 -2
- package/out/__chunks__/chunk-XXQ7FANC.mjs +0 -2
- package/out/__chunks__/chunk-YYZKVLX7.mjs +0 -2
- package/out/__chunks__/chunk-YYZKVLX7.mjs.map +0 -7
- package/out/__chunks__/chunk-ZS4EBCWC.mjs +0 -2
- package/out/__chunks__/chunk-ZS4EBCWC.mjs.map +0 -7
- /package/out/__chunks__/{chunk-XPASD5P4.mjs.map → chunk-2DUOXMZP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7ZHH6AD4.mjs.map → chunk-2LIUW5CF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LOPC75K6.mjs.map → chunk-2SYDJSIO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4KXXF3PV.mjs.map → chunk-32Z4H2Q4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YPH67JEE.mjs.map → chunk-3DZPVOPO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VLASN3TA.mjs.map → chunk-3TM6K4Z4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WDFIVLDW.mjs.map → chunk-43SX7DUF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VBNLRSKL.mjs.map → chunk-44AUEOAU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SMCI4JNY.mjs.map → chunk-4CGAWZR6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SFXZJSEY.mjs.map → chunk-4O27AVB7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5R7MHTVH.mjs.map → chunk-4QDQSEN7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JA27GJYB.mjs.map → chunk-573LAOYN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QJTWOZ3K.mjs.map → chunk-5PENJRCS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S4TJTINB.mjs.map → chunk-6CMARMS2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SFGR74WM.mjs.map → chunk-6DAQAOWP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VBWYZ6ZU.mjs.map → chunk-6TJZZHFV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6O5Y7U4C.mjs.map → chunk-6ZVWYKKI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TPXNYEOT.mjs.map → chunk-764JPTJ7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JXPL2SLD.mjs.map → chunk-7MGK7ZUE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W6XNEY4N.mjs.map → chunk-A4KOSUVU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-G2GZG32F.mjs.map → chunk-AIKIPJUG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BODQ3QWR.mjs.map → chunk-AIQMA75E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HDCJEKHM.mjs.map → chunk-AOF7QPPF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SZNAMXXH.mjs.map → chunk-AVEWWANG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K7PXA7CN.mjs.map → chunk-AXZ3DHTB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LIDJNFTE.mjs.map → chunk-B77BJX6Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X4P6NIGX.mjs.map → chunk-BB7POIGL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OTEIKKOW.mjs.map → chunk-BPOXONMJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PDI722XH.mjs.map → chunk-C65TZQBZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PN7JDWSZ.mjs.map → chunk-CB4IL76J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XLMQWFKS.mjs.map → chunk-CCD7PUHB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YEY7YGZD.mjs.map → chunk-CE4N3GKT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M5EQGPV5.mjs.map → chunk-COPAYHAQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NMK74PUW.mjs.map → chunk-CT5LMMAW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LKC3E6AW.mjs.map → chunk-CZGN3YPT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UCWTYWB3.mjs.map → chunk-DCF6BLSL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XXQ7FANC.mjs.map → chunk-DJUPAQRK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ERDTZ52C.mjs.map → chunk-ECDI66QL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-K2FBVE6U.mjs.map → chunk-EET35YZW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LL2IIBPG.mjs.map → chunk-EKBFVSFP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PFR5VSL2.mjs.map → chunk-GBYZHNPO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2GXPSWQ4.mjs.map → chunk-GQFB3L2J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-32MEBSR7.mjs.map → chunk-GWZUTQLT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B353O452.mjs.map → chunk-HXFVUYGK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZOYJTXNI.mjs.map → chunk-HYPARWQN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ENJAFJGK.mjs.map → chunk-IEUUVTQ5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6R6TFHBS.mjs.map → chunk-JSYDF4GF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UBQUZNLX.mjs.map → chunk-K4FRH3YU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HP2XUCRI.mjs.map → chunk-LABBTN37.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KR2GUJDQ.mjs.map → chunk-LSAYT6GA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XBIX2QET.mjs.map → chunk-LY5VXESF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HZ4ZWMRW.mjs.map → chunk-LZKKBLOO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JI27YEKS.mjs.map → chunk-LZQXEMRC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZMC2BF4F.mjs.map → chunk-M3G5E4TL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TJKB7YME.mjs.map → chunk-M5COEJ24.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SQ7C3XLA.mjs.map → chunk-MNKQNWZS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5OAY4PWR.mjs.map → chunk-N3J6ROD5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7LMYILJF.mjs.map → chunk-NJUTBWG5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UXP5UK2L.mjs.map → chunk-NTCDPOM4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J7BQ2H5Q.mjs.map → chunk-NZGZ2C45.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U4ZCGUVE.mjs.map → chunk-OE4JXDVW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YKHYAKVW.mjs.map → chunk-OLXCFQVN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SYHILLXA.mjs.map → chunk-OMBZCVQZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2UVDW2RQ.mjs.map → chunk-ON2ITKZA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z6OAKBWP.mjs.map → chunk-OQURAWR4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AOLW46E4.mjs.map → chunk-OVZEW7XD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SOGQ76CF.mjs.map → chunk-OXJJPBYT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I36DD2FW.mjs.map → chunk-P3Z2DQ5Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A4AC45BS.mjs.map → chunk-QIXUIO74.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I3ILB737.mjs.map → chunk-QT6QIC4U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HTT67LH3.mjs.map → chunk-RTLNUOX6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SMEKGCKH.mjs.map → chunk-RVTPQ3R5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-66SV7PYL.mjs.map → chunk-S3EO22CE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OCLD2VI4.mjs.map → chunk-S5DCQEU2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KYQ5IP6W.mjs.map → chunk-STN2J2XX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IOQULDE4.mjs.map → chunk-T3SGVYSV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XJY2BTDN.mjs.map → chunk-TDRQ3OLY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VGDWWBLN.mjs.map → chunk-TY3B64SM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6PMMPBFA.mjs.map → chunk-TZCZXHWQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4EQCI4IY.mjs.map → chunk-U3GPFT4V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FOFGZVG5.mjs.map → chunk-URNYMHJN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VT6N4MFC.mjs.map → chunk-USAIPG7X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JILAZBMF.mjs.map → chunk-UTSW2MIB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XAMG7OLZ.mjs.map → chunk-V3VSL4SQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NPWS3TZS.mjs.map → chunk-W25UUI6O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JBF3CPLK.mjs.map → chunk-W4GIORRC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6KZ72DNU.mjs.map → chunk-WGXHIBDE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UMJE36YK.mjs.map → chunk-WOMDF37F.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7QPD5RSY.mjs.map → chunk-WRQ5IRXO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QHGCAYUB.mjs.map → chunk-WUKB2V3K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4D2LHSRB.mjs.map → chunk-XGALUTQ5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WGFZEQNT.mjs.map → chunk-XVRM5XQM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R4BNJI2F.mjs.map → chunk-XVZUH5QS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ERZNNJ4M.mjs.map → chunk-YNJSOBXM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LWW4KDFK.mjs.map → chunk-YXWMQGAB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GVAJPM5C.mjs.map → chunk-Z7TITNCM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CL5IGYV5.mjs.map → chunk-ZKFUF6BU.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-RVTPQ3R5.mjs";var T=async a=>{let n=a.map(s=>s.hash),r=await e(n);return a.map(s=>{let t=r.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EKBFVSFP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-QLDZFO7M.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-GBYZHNPO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-AXZ3DHTB.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-GWZUTQLT.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as l}from"./chunk-XVX7N3JK.mjs";import{a as f}from"./chunk-O5PAMBB3.mjs";import{f as c}from"./chunk-DA76AK4I.mjs";import d from"bignumber.js";var s={tokenId:"",amount:""},g=e=>e.split("@").map((n,t)=>[2,3].includes(t)?n:l(n));function D(e){if(!e)return s;let u=e.startsWith("ESDTTransfer"),a=e.startsWith("ESDTNFTTransfer")&&e.includes("@"),m=e.startsWith("ESDTNFTBurn")&&e.includes("@");try{if(u){let[,n,t]=e.split("@"),o=Buffer.from(n,"hex").toString("ascii");if(!o)return s;let r=new d("0x"+t.replace("0x","")).toString(10);return{tokenId:o,amount:r}}let i=g(e);if(a){let[,n,t,o,r]=i;if([n,t,o,r].every(T=>!!T)&&f(new c(r).toBech32()))return{tokenId:`${n}-${t}`,amount:new d(o,16).toString(10),collection:n,nonce:t,receiver:new c(r).toBech32()}}if(m){let[,n,t,o]=i;if([n,t,o].every(r=>!!r))return{tokenId:`${n}-${t}`,amount:new d(o,16).toString(10),collection:n,nonce:t}}}catch{return s}return s}export{g as a,D as b};
|
|
2
|
+
//# sourceMappingURL=chunk-HRVNGVC2.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.ts"],
|
|
4
|
+
"sourcesContent": ["import BigNumber from 'bignumber.js';\nimport { Address } from 'lib/sdkCore';\nimport { TransactionTypesEnum } from 'types/enums.types';\nimport { decodePart } from 'utils/decoders/decodePart';\nimport { addressIsValid } from 'utils/validation/addressIsValid';\n\nconst noData = {\n tokenId: '',\n amount: ''\n};\n\nexport const decodeData = (data: string) => {\n const nonceIndex = 2;\n const amountIndex = 3;\n const parts = data.split('@');\n const decodedParts = parts.map((part, i) =>\n [nonceIndex, amountIndex].includes(i) ? part : decodePart(part)\n );\n return decodedParts;\n};\n\nexport function getTokenFromData(data?: string): {\n tokenId: string;\n amount: string;\n collection?: string;\n nonce?: string;\n receiver?: string;\n} {\n if (!data) {\n return noData;\n }\n\n const isTokenTransfer = data.startsWith(TransactionTypesEnum.ESDTTransfer);\n const isNftTransfer =\n data.startsWith(TransactionTypesEnum.ESDTNFTTransfer) && data.includes('@');\n const isNftBurn =\n data.startsWith(TransactionTypesEnum.ESDTNFTBurn) && data.includes('@');\n\n try {\n if (isTokenTransfer) {\n const [, encodedToken, encodedAmount] = data.split('@');\n const tokenId = Buffer.from(encodedToken, 'hex').toString('ascii');\n\n if (!tokenId) {\n return noData;\n }\n\n const amount = new BigNumber(\n '0x' + encodedAmount.replace('0x', '')\n ).toString(10);\n\n return {\n tokenId,\n amount\n };\n }\n\n const decodedData = decodeData(data);\n\n if (isNftTransfer) {\n const [, /*ESDTNFTTransfer*/ collection, nonce, quantity, receiver] =\n decodedData;\n\n if (\n [collection, nonce, quantity, receiver].every((el) => Boolean(el)) &&\n addressIsValid(new Address(receiver).toBech32())\n ) {\n return {\n tokenId: `${collection}-${nonce}`,\n amount: new BigNumber(quantity, 16).toString(10),\n collection,\n nonce,\n receiver: new Address(receiver).toBech32()\n };\n }\n }\n\n if (isNftBurn) {\n const [, /*ESDTNFTBurn*/ collection, nonce, quantity] = decodedData;\n\n if ([collection, nonce, quantity].every((el) => Boolean(el))) {\n return {\n tokenId: `${collection}-${nonce}`,\n amount: new BigNumber(quantity, 16).toString(10),\n collection,\n nonce\n };\n }\n }\n } catch {\n return noData;\n }\n\n return noData;\n}\n"],
|
|
5
|
+
"mappings": "2HAAA,OAAOA,MAAe,eAMtB,IAAMC,EAAS,CACb,QAAS,GACT,OAAQ,EACV,EAEaC,EAAcC,GAGXA,EAAK,MAAM,GAAG,EACD,IAAI,CAACC,EAAMC,IACpC,CAAC,EAAY,CAAW,EAAE,SAASA,CAAC,EAAID,EAAOE,EAAWF,CAAI,CAChE,EAIK,SAASG,EAAiBJ,EAM/B,CACA,GAAI,CAACA,EACH,OAAOF,EAGT,IAAMO,EAAkBL,EAAK,yBAA4C,EACnEM,EACJN,EAAK,4BAA+C,GAAKA,EAAK,SAAS,GAAG,EACtEO,EACJP,EAAK,wBAA2C,GAAKA,EAAK,SAAS,GAAG,EAExE,GAAI,CACF,GAAIK,EAAiB,CACnB,GAAM,CAAC,CAAEG,EAAcC,CAAa,EAAIT,EAAK,MAAM,GAAG,EAChDU,EAAU,OAAO,KAAKF,EAAc,KAAK,EAAE,SAAS,OAAO,EAEjE,GAAI,CAACE,EACH,OAAOZ,EAGT,IAAMa,EAAS,IAAIC,EACjB,KAAOH,EAAc,QAAQ,KAAM,EAAE,CACvC,EAAE,SAAS,EAAE,EAEb,MAAO,CACL,QAAAC,EACA,OAAAC,CACF,CACF,CAEA,IAAME,EAAcd,EAAWC,CAAI,EAEnC,GAAIM,EAAe,CACjB,GAAM,CAAC,CAAsBQ,EAAYC,EAAOC,EAAUC,CAAQ,EAChEJ,EAEF,GACE,CAACC,EAAYC,EAAOC,EAAUC,CAAQ,EAAE,MAAOC,GAAO,EAAQA,CAAG,GACjEC,EAAe,IAAIC,EAAQH,CAAQ,EAAE,SAAS,CAAC,EAE/C,MAAO,CACL,QAAS,GAAGH,CAAU,IAAIC,CAAK,GAC/B,OAAQ,IAAIH,EAAUI,EAAU,EAAE,EAAE,SAAS,EAAE,EAC/C,WAAAF,EACA,MAAAC,EACA,SAAU,IAAIK,EAAQH,CAAQ,EAAE,SAAS,CAC3C,CAEJ,CAEA,GAAIV,EAAW,CACb,GAAM,CAAC,CAAkBO,EAAYC,EAAOC,CAAQ,EAAIH,EAExD,GAAI,CAACC,EAAYC,EAAOC,CAAQ,EAAE,MAAOE,GAAO,EAAQA,CAAG,EACzD,MAAO,CACL,QAAS,GAAGJ,CAAU,IAAIC,CAAK,GAC/B,OAAQ,IAAIH,EAAUI,EAAU,EAAE,EAAE,SAAS,EAAE,EAC/C,WAAAF,EACA,MAAAC,CACF,CAEJ,CACF,MAAQ,CACN,OAAOjB,CACT,CAEA,OAAOA,CACT",
|
|
6
|
+
"names": ["BigNumber", "noData", "decodeData", "data", "part", "i", "decodePart", "getTokenFromData", "isTokenTransfer", "isNftTransfer", "isNftBurn", "encodedToken", "encodedAmount", "tokenId", "amount", "BigNumber", "decodedData", "collection", "nonce", "quantity", "receiver", "el", "addressIsValid", "Address"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-TWYGNEQS.mjs";import{b as n,c as o}from"./chunk-LABBTN37.mjs";import{s}from"./chunk-XGALUTQ5.mjs";function T({sessionId:t,transaction:e}){o({sessionId:t,transaction:e});let i=s().transactions?.[t].transactions,a=r(i);return a&&n({sessionId:t,status:a}),a}export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HXFVUYGK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as c}from"./chunk-L7L56ZTG.mjs";import{a as m}from"./chunk-O6VPG7AF.mjs";import{a as d}from"./chunk-V4YC4AKQ.mjs";import{a as T}from"./chunk-QX32V6TT.mjs";import{b as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as c}from"./chunk-L7L56ZTG.mjs";import{a as m}from"./chunk-O6VPG7AF.mjs";import{a as d}from"./chunk-V4YC4AKQ.mjs";import{a as T}from"./chunk-QX32V6TT.mjs";import{b as p}from"./chunk-HRVNGVC2.mjs";import{a as k}from"./chunk-B72JAXSF.mjs";import{a as g}from"./chunk-ZJ2WPN2K.mjs";import{a as f}from"./chunk-HS34AFHY.mjs";import{a as s}from"./chunk-B3IKUIRK.mjs";import{a as t}from"./chunk-YJCTRUJT.mjs";import{a as r}from"./chunk-QNELH2S2.mjs";import{a}from"./chunk-OQURAWR4.mjs";function z({transaction:e,address:h,explorerAddress:o}){let y=e.tokenIdentifier??p(e.data).tokenId,n=f(e),u=g(e),l={timeAgo:c(e.timestamp*1e3,!0),tooltip:s({value:e.timestamp,noSeconds:!1,utc:!0})},v=k({address:h,transaction:e,receiver:n}),I={actionDescription:e.action?.description,name:d(e)},S=m(e),D=t({explorerAddress:o,to:r.accountDetails(e.sender)}),L=t({explorerAddress:o,to:r.accountDetails(n)}),A=t({explorerAddress:o,to:r.senderShard(e.senderShard)}),H=t({explorerAddress:o,to:r.receiverShard(e.receiverShard)}),i=e.originalTxHash||e.txHash,x=t({explorerAddress:o,to:r.transactionDetails(i)});return{...e,txHash:i,tokenIdentifier:y,receiver:n,receiverAssets:u,transactionDetails:{age:l,direction:v,method:I,iconInfo:T(e),transactionTokens:S,isContract:a(e.sender)},links:{senderLink:D,receiverLink:L,senderShardLink:A,receiverShardLink:H,transactionLink:x}}}export{z as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HYPARWQN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-V3VSL4SQ.mjs";import{a as u}from"./chunk-HXFVUYGK.mjs";import{a}from"./chunk-PMHRZ5Y7.mjs";import{l as p}from"./chunk-E2GGD7D4.mjs";import{b as o}from"./chunk-LABBTN37.mjs";var n={};async function b({serverTransaction:r,sessionId:t,isSequential:c}){let{hash:e,status:s,invalidTransaction:f,hasStatusChanged:S}=r;try{if(n[e]>30){o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"});return}if(f&&!c||s==="sent"){n[e]=n[e]?n[e]+1:1;return}if(c&&!s){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i});return}if(S){let i=u({sessionId:t,transaction:r});await a({sessionId:t,status:i})}p(s)&&await m({sessionId:t,transaction:r})}catch(T){console.error(T),o({sessionId:t,status:"timedOut"}),await a({sessionId:t,status:"timedOut"})}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IEUUVTQ5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-3DZPVOPO.mjs";import{a as b}from"./chunk-32Z4H2Q4.mjs";import{a as g}from"./chunk-WOMDF37F.mjs";import{a as m}from"./chunk-YGI3KXMZ.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=>g({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=m({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-JSYDF4GF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var t=["reDelegateRewards","claimRewards","unBond"],A=["wrapEgld","unwrapEgld"],I=["unStake"],n=["unDelegate"];export{t as a,A as b,I as c,n as d};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-JZQKOOZH.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.ts"],
|
|
4
|
-
"sourcesContent": ["import { TransactionActionsEnum } from 'types/serverTransactions.types';\n\n/**\n * If `action.name` or `function` is in `ACTIONS_WITH_MANDATORY_OPERATIONS[]`, transaction value will be computed based `operations` field\n */\nexport const ACTIONS_WITH_MANDATORY_OPERATIONS = [\n TransactionActionsEnum.reDelegateRewards,\n TransactionActionsEnum.claimRewards,\n TransactionActionsEnum.unBond\n];\n\n/**\n * If `action.name` is in `ACTIONS_WITH_EGLD_VALUE[]`, transaction value will be returned directly\n */\nexport const ACTIONS_WITH_EGLD_VALUE = [\n TransactionActionsEnum.wrapEgld,\n TransactionActionsEnum.unwrapEgld\n];\n\n/**\n * If `action.name` is in `ACTIONS_WITH_VALUE_IN_DATA_FIELD[]`, transaction value will be computed based `data` field\n */\nexport const ACTIONS_WITH_VALUE_IN_DATA_FIELD = [\n TransactionActionsEnum.unStake\n];\n\n/**\n * If `action.name` is in `ACTIONS_WITH_VALUE_IN_ACTION_FIELD[]`, transaction value will be computed based `action` field\n */\nexport const ACTIONS_WITH_VALUE_IN_ACTION_FIELD = [\n TransactionActionsEnum.unDelegate\n];\n"],
|
|
4
|
+
"sourcesContent": ["import { TransactionActionsEnum } from 'types/serverTransactions.types';\n\n/**\n * If `action.name` or `function` is in `ACTIONS_WITH_MANDATORY_OPERATIONS[]`, transaction value will be computed based `operations` field\n */\nexport const ACTIONS_WITH_MANDATORY_OPERATIONS = [\n TransactionActionsEnum.reDelegateRewards,\n TransactionActionsEnum.claimRewards,\n TransactionActionsEnum.unBond\n];\n\n/**\n * If `action.name` is in `ACTIONS_WITH_EGLD_VALUE[]`, transaction value will be returned directly\n */\nexport const ACTIONS_WITH_EGLD_VALUE = [\n TransactionActionsEnum.wrapEgld,\n TransactionActionsEnum.unwrapEgld\n];\n\n/**\n * If `action.name` is in `ACTIONS_WITH_VALUE_IN_DATA_FIELD[]`, transaction value will be computed based on `data` field\n */\nexport const ACTIONS_WITH_VALUE_IN_DATA_FIELD = [\n TransactionActionsEnum.unStake\n];\n\n/**\n * If `action.name` is in `ACTIONS_WITH_VALUE_IN_ACTION_FIELD[]`, transaction value will be computed based on `action` field\n */\nexport const ACTIONS_WITH_VALUE_IN_ACTION_FIELD = [\n TransactionActionsEnum.unDelegate\n];\n"],
|
|
5
5
|
"mappings": "AAKO,IAAMA,EAAoC,4CAIjD,EAKaC,EAA0B,wBAGvC,EAKaC,EAAmC,UAEhD,EAKaC,EAAqC,aAElD",
|
|
6
6
|
"names": ["ACTIONS_WITH_MANDATORY_OPERATIONS", "ACTIONS_WITH_EGLD_VALUE", "ACTIONS_WITH_VALUE_IN_DATA_FIELD", "ACTIONS_WITH_VALUE_IN_ACTION_FIELD"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-55W25Q35.mjs";import{a as s}from"./chunk-WUKB2V3K.mjs";import o from"lodash.isempty";var e=async({transactionsSessions:t})=>{if(o(t))return[];let i=r(t);return s({transactions:i})};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-K4FRH3YU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as o}from"./chunk-XGALUTQ5.mjs";import{current as p}from"immer";function d({transactions:t,transactionsDisplayInfo:n,status:r,sessionInformation:s}){let a=Date.now().toString();return o().setState(({transactions:e})=>{e[a]={transactions:t,status:r,transactionsDisplayInfo:n,interpretedTransactions:{},sessionInformation:s}},!1,{type:"createTransactionsSession",payload:{value:{transactions:t,status:r,transactionsDisplayInfo:n,sessionInformation:s}}}),a}function m({sessionId:t,status:n,errorMessage:r}){o().setState(({transactions:s})=>{if(!s[t])return;let a=p(s[t]).transactionsDisplayInfo??{},e=r||a?.errorMessage;s[t].status=n,s[t].errorMessage=e,s[t].transactionsDisplayInfo={...a,errorMessage:e}},!1,{type:"updateSessionStatus",payload:{value:{sessionId:t,status:n,errorMessage:r}}})}function g({sessionId:t,transaction:n}){o().setState(({transactions:r})=>{let s=r[t]?.transactions;s!=null&&(r[t].transactions=s.map(a=>a.hash===n.hash?{...a,...n??{}}:a))},!1,{type:"updateTransactionStatus",payload:{value:{sessionId:t,transaction:n}}})}var h=()=>{o().setState(({transactions:t,toasts:n})=>{let s=Object.keys(t).filter(e=>{let c=t[e];if(!c)return!1;let{status:i}=c;return!(i==="pending"||i==="signed"||i==="sent")});s.forEach(e=>{delete t[e]});let a=n.transactionToasts.filter(e=>!s.includes(e.toastId));n.transactionToasts=a},!1,{type:"clearCompletedTransactions",payload:{value:null}})};export{d as a,m as b,g as c,h as d};
|
|
2
|
+
//# sourceMappingURL=chunk-LABBTN37.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-XVRM5XQM.mjs";import{a as t}from"./chunk-EET35YZW.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-LSAYT6GA.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as f}from"./chunk-L3EOHIBG.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as m}from"./chunk-VJBLHJYB.mjs";import{a as o}from"./chunk-RRK6GTWZ.mjs";import{a}from"./chunk-IPMSVHGJ.mjs";import{a as n}from"./chunk-IHAZNPKL.mjs";import{a as g}from"./chunk-PSJI2G34.mjs";import{a as i}from"./chunk-2CG6PNPJ.mjs";import{a as r,b as e}from"./chunk-2JFN726G.mjs";import{a as d}from"./chunk-RWQNLK3I.mjs";import{rest as s}from"msw";import{setupServer as k}from"msw/node";var t=u=>(A,$,p)=>$(p.status(200),p.json(u)),l=[s.get(`${e.apiAddress}/dapp/config`,t(c)),s.get(`${e.apiAddress}/network/config`,t(i)),s.get(`https://${a.url}/socket.io/`,t(g)),s.get(`${e.apiAddress}/websocket/config`,t(a)),s.get(`${e.apiAddress}/economics`,t(f)),s.get(`${e.apiAddress}/accounts/${r}`,t({...o,address:r})),s.get(`${e.apiAddress}/accounts/${o.address}`,t(o)),s.get(`${e.apiAddress}/transactions/ppu/0`,t({lastBlock:11605677,fast:0,faster:null})),s.get(`${e.apiAddress}/tokens/${n.identifier}`,t(n)),s.get(`${e.apiAddress}/accounts/${d.address}`,t(d)),s.get(`${e.apiAddress}/blocks`,t(m))],v=k(...l);export{s as a,t as b,v as c};
|
|
2
|
+
//# sourceMappingURL=chunk-LXI42ZLN.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/__mocks__/server.ts"],
|
|
4
|
-
"sourcesContent": ["import {\n DefaultBodyType,\n PathParams,\n ResponseComposition,\n rest,\n RestContext,\n RestRequest\n} from 'msw';\nimport { setupServer } from 'msw/node';\nimport { testAddress, testNetwork } from './accountConfig';\nimport {\n account,\n blocks,\n dappConfig,\n economics,\n networkConfig,\n socketResponse,\n websocketConfig\n} from './data';\nimport { testToken } from './data/testToken';\nimport { wrapEgldContract } from './data/wrapEgldContract';\n\nexport const mockResponse =\n <T extends DefaultBodyType>(body: T) =>\n (\n _req: RestRequest<never, PathParams<string>>,\n res: ResponseComposition<DefaultBodyType>,\n ctx: RestContext\n ) => {\n return res(ctx.status(200), ctx.json(body));\n };\n\nconst handlers = [\n rest.get(`${testNetwork.apiAddress}/dapp/config`, mockResponse(dappConfig)),\n\n rest.get(\n `${testNetwork.apiAddress}/network/config`,\n mockResponse(networkConfig)\n ),\n rest.get(\n `https://${websocketConfig.url}/socket.io/`,\n mockResponse(socketResponse)\n ),\n rest.get(\n `${testNetwork.apiAddress}/websocket/config`,\n mockResponse(websocketConfig)\n ),\n rest.get(`${testNetwork.apiAddress}/economics`, mockResponse(economics)),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${testAddress}`,\n mockResponse({ ...account, address: testAddress })\n ),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${account.address}`,\n mockResponse(account)\n ),\n rest.get(\n `${testNetwork.apiAddress}/tokens/${testToken.identifier}`,\n mockResponse(testToken)\n ),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${wrapEgldContract.address}`,\n mockResponse(wrapEgldContract)\n ),\n rest.get(`${testNetwork.apiAddress}/blocks`, mockResponse(blocks))\n];\n\n// This configures a request mocking server with the given request handlers.\nconst server = setupServer(...handlers);\n\nexport { server, rest };\n"],
|
|
5
|
-
"mappings": "4ZAAA,OAIE,QAAAA,MAGK,MACP,OAAS,eAAAC,MAAmB,WAcrB,IAAMC,EACiBC,GAC5B,CACEC,EACAC,EACAC,IAEOD,EAAIC,EAAI,OAAO,GAAG,EAAGA,EAAI,KAAKH,CAAI,CAAC,EAGxCI,EAAW,CACfC,EAAK,IAAI,GAAGC,EAAY,UAAU,eAAgBP,EAAaQ,CAAU,CAAC,EAE1EF,EAAK,IACH,GAAGC,EAAY,UAAU,kBACzBP,EAAaS,CAAa,CAC5B,EACAH,EAAK,IACH,WAAWI,EAAgB,GAAG,cAC9BV,EAAaW,CAAc,CAC7B,EACAL,EAAK,IACH,GAAGC,EAAY,UAAU,oBACzBP,EAAaU,CAAe,CAC9B,EACAJ,EAAK,IAAI,GAAGC,EAAY,UAAU,aAAcP,EAAaY,CAAS,CAAC,EACvEN,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaM,CAAW,GACjDb,EAAa,CAAE,GAAGc,EAAS,QAASD,CAAY,CAAC,CACnD,EACAP,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaO,EAAQ,OAAO,GACrDd,EAAac,CAAO,CACtB,EACAR,EAAK,IACH,GAAGC,EAAY,UAAU,WAAWQ,EAAU,UAAU,GACxDf,EAAae,CAAS,CACxB,EACAT,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaS,EAAiB,OAAO,GAC9DhB,EAAagB,CAAgB,CAC/B,EACAV,EAAK,IAAI,GAAGC,EAAY,UAAU,UAAWP,EAAaiB,CAAM,CAAC,CACnE,EAGMC,EAASC,EAAY,GAAGd,CAAQ",
|
|
4
|
+
"sourcesContent": ["import {\n DefaultBodyType,\n PathParams,\n ResponseComposition,\n rest,\n RestContext,\n RestRequest\n} from 'msw';\nimport { setupServer } from 'msw/node';\nimport { testAddress, testNetwork } from './accountConfig';\nimport {\n account,\n blocks,\n dappConfig,\n economics,\n networkConfig,\n socketResponse,\n websocketConfig\n} from './data';\nimport { testToken } from './data/testToken';\nimport { wrapEgldContract } from './data/wrapEgldContract';\n\nexport const mockResponse =\n <T extends DefaultBodyType>(body: T) =>\n (\n _req: RestRequest<never, PathParams<string>>,\n res: ResponseComposition<DefaultBodyType>,\n ctx: RestContext\n ) => {\n return res(ctx.status(200), ctx.json(body));\n };\n\nconst handlers = [\n rest.get(`${testNetwork.apiAddress}/dapp/config`, mockResponse(dappConfig)),\n\n rest.get(\n `${testNetwork.apiAddress}/network/config`,\n mockResponse(networkConfig)\n ),\n rest.get(\n `https://${websocketConfig.url}/socket.io/`,\n mockResponse(socketResponse)\n ),\n rest.get(\n `${testNetwork.apiAddress}/websocket/config`,\n mockResponse(websocketConfig)\n ),\n rest.get(`${testNetwork.apiAddress}/economics`, mockResponse(economics)),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${testAddress}`,\n mockResponse({ ...account, address: testAddress })\n ),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${account.address}`,\n mockResponse(account)\n ),\n rest.get(\n `${testNetwork.apiAddress}/transactions/ppu/0`,\n mockResponse({ lastBlock: 11605677, fast: 0, faster: null })\n ),\n rest.get(\n `${testNetwork.apiAddress}/tokens/${testToken.identifier}`,\n mockResponse(testToken)\n ),\n rest.get(\n `${testNetwork.apiAddress}/accounts/${wrapEgldContract.address}`,\n mockResponse(wrapEgldContract)\n ),\n rest.get(`${testNetwork.apiAddress}/blocks`, mockResponse(blocks))\n];\n\n// This configures a request mocking server with the given request handlers.\nconst server = setupServer(...handlers);\n\nexport { server, rest };\n"],
|
|
5
|
+
"mappings": "4ZAAA,OAIE,QAAAA,MAGK,MACP,OAAS,eAAAC,MAAmB,WAcrB,IAAMC,EACiBC,GAC5B,CACEC,EACAC,EACAC,IAEOD,EAAIC,EAAI,OAAO,GAAG,EAAGA,EAAI,KAAKH,CAAI,CAAC,EAGxCI,EAAW,CACfC,EAAK,IAAI,GAAGC,EAAY,UAAU,eAAgBP,EAAaQ,CAAU,CAAC,EAE1EF,EAAK,IACH,GAAGC,EAAY,UAAU,kBACzBP,EAAaS,CAAa,CAC5B,EACAH,EAAK,IACH,WAAWI,EAAgB,GAAG,cAC9BV,EAAaW,CAAc,CAC7B,EACAL,EAAK,IACH,GAAGC,EAAY,UAAU,oBACzBP,EAAaU,CAAe,CAC9B,EACAJ,EAAK,IAAI,GAAGC,EAAY,UAAU,aAAcP,EAAaY,CAAS,CAAC,EACvEN,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaM,CAAW,GACjDb,EAAa,CAAE,GAAGc,EAAS,QAASD,CAAY,CAAC,CACnD,EACAP,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaO,EAAQ,OAAO,GACrDd,EAAac,CAAO,CACtB,EACAR,EAAK,IACH,GAAGC,EAAY,UAAU,sBACzBP,EAAa,CAAE,UAAW,SAAU,KAAM,EAAG,OAAQ,IAAK,CAAC,CAC7D,EACAM,EAAK,IACH,GAAGC,EAAY,UAAU,WAAWQ,EAAU,UAAU,GACxDf,EAAae,CAAS,CACxB,EACAT,EAAK,IACH,GAAGC,EAAY,UAAU,aAAaS,EAAiB,OAAO,GAC9DhB,EAAagB,CAAgB,CAC/B,EACAV,EAAK,IAAI,GAAGC,EAAY,UAAU,UAAWP,EAAaiB,CAAM,CAAC,CACnE,EAGMC,EAASC,EAAY,GAAGd,CAAQ",
|
|
6
6
|
"names": ["rest", "setupServer", "mockResponse", "body", "_req", "res", "ctx", "handlers", "rest", "testNetwork", "dappConfig", "networkConfig", "websocketConfig", "socketResponse", "economics", "testAddress", "account", "testToken", "wrapEgldContract", "blocks", "server", "setupServer"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-3GRRAVW4.mjs";import{a}from"./chunk-5HEWN34K.mjs";import{l as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-3GRRAVW4.mjs";import{a}from"./chunk-5HEWN34K.mjs";import{l as c}from"./chunk-YP65EQFP.mjs";import{a as g}from"./chunk-DJUPAQRK.mjs";import{s as e}from"./chunk-XGALUTQ5.mjs";import{g as n}from"./chunk-FK6DWWZF.mjs";import{e as d}from"./chunk-VNLGNNIL.mjs";import{HWProvider as P}from"@multiversx/sdk-hw-provider";async function S(s){let m=g(),t=s?.shouldInitProvider||!m,f=d(e()),o=n(e()),p=c(),i=new P;try{if(!t&&o){let u={version:o.version,dataEnabled:o.hasContractDataEnabled};return{ledgerProvider:i,ledgerConfig:u}}let r=await a({provider:p,ledgerProvider:i,ledgerLogin:f,shouldInitProvider:t}),v=await l(r);return{ledgerProvider:r,ledgerConfig:v}}catch(r){throw console.error("Could not initialize ledger app",r),r}}export{S as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LY5VXESF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-B77BJX6Z.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-LZKKBLOO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{l as n}from"./chunk-YP65EQFP.mjs";import{a as i}from"./chunk-LJX4MW7B.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-M3G5E4TL.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-XVRM5XQM.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-M5COEJ24.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-ON2ITKZA.mjs";import{a as p}from"./chunk-URNYMHJN.mjs";import{a as O}from"./chunk-W4GIORRC.mjs";import{a as M}from"./chunk-LSAYT6GA.mjs";import{k as I,l as F,n as N}from"./chunk-E2GGD7D4.mjs";import{a as b,b as C,d as g,e as v,g as E,h as y,i as S}from"./chunk-44AUEOAU.mjs";import{d as B}from"./chunk-LABBTN37.mjs";import{l as f}from"./chunk-M6MN4RXG.mjs";import{q as c}from"./chunk-XGALUTQ5.mjs";import{a as d}from"./chunk-GBYZHNPO.mjs";import A from"lodash.isequal";import l from"lodash.isequal";var m=class{constructor(t){this.toastsElement=null;this.eventBus=null;this.isCreatingElement=!1;this.eventBusUnsubscribeFunctions=[];this.onCloseToast=t.onCloseToast,this.store=t.store||c(),this.notificationsFeedManager=t.notificationsFeedManager||h.getInstance()}async init(){await this.subscribeToEventBusNotifications()}showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null)}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async publishTransactionToasts(t){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",t),this.hideToasts();return}if(!this.eventBus){let s=await this.createToastListElement();if(!s)return;this.eventBus=await s.getEventBus()}this.eventBus?.publish("TRANSACTION_TOAST_DATA_UPDATE",t)}async publishCustomToasts(t){this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",t)}handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}destroy(){this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[],this.notificationsFeedManager?.destroy()}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await d.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.onCloseToast),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.onCloseToast)}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}};var u=class a{constructor(t){this.transactionToasts=[];this.customToasts=[];this.unsubscribeFromStore=()=>null;this.uiCoordinator=null;this.destroy(),this.store=t?.store||c(),this.lifetimeManager=t?.lifetimeManager??new O,this.uiCoordinator=t?.uiCoordinator??new m({onCloseToast:this.closeToast.bind(this)})}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.uiCoordinator?.init(),this.unsubscribeFromStore=this.store.subscribe(async({toasts:s,transactions:i},{toasts:e,transactions:o})=>{let n=!l(e.transactionToasts,s.transactionToasts),r=!l(o,i);(n||r)&&await this.updateTransactionToastsList(),!l(e.customToasts,s.customToasts)&&await this.updateCustomToastList()})}static getInstance(){return a.instance||(a.instance=new a),a.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),i=s[t];if(!i)return!1;let{status:e}=i,o=N(e),n=F(e),r=I(e),T=n||r||o;return T?(this.successfulToastLifetime&&this.lifetimeManager.start(t),T):(this.lifetimeManager.stop(t),T)}async createTransactionToast(t,s){let i=E({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),i}async createCustomToast(t){let s=S(t);return await this.updateCustomToastList(),s}async updateTransactionToastsList(){let t=this.store.getState(),{toasts:s}=t,{pendingTransactionToasts:i,completedTransactionToasts:e}=await p({store:t});this.transactionToasts=[...i,...e];for(let o of s.transactionToasts)this.handleCompletedTransaction(o.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let e="message"in s?{...s}:{...s,instantiateToastElement:b[s.toastId]};this.customToasts.push(e),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}await this.uiCoordinator?.publishCustomToasts(this.customToasts)}handleTransactionToastClose(t){return this.handleCompletedTransaction(t)?(y(t),!0):!1}async showToasts(){this.uiCoordinator?.showToasts(),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.uiCoordinator?.hideToasts()}closeToast(t){if(this.customToasts.find(i=>i.toastId===t)){this.lifetimeManager.stop(t);let i=C[t];return i?.(),g(t),!0}return this.handleTransactionToastClose(t)}async publishTransactionToasts(){await this.uiCoordinator?.publishTransactionToasts(this.transactionToasts)}destroy(){this.unsubscribeFromStore(),this.lifetimeManager?.destroy(),this.uiCoordinator?.destroy(),v()}};var D="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",h=class a extends M{constructor(s){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.initialData={pendingTransactions:[],historicTransactions:[]};this.store=s||c(),this.data={...this.initialData}}static getInstance(){return a.instance||(a.instance=new a),a.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){u.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let i=this.store.subscribe(async({toasts:e,transactions:o},{toasts:n,transactions:r})=>{(!A(n.transactionToasts,e.transactionToasts)||!A(r,o))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(D,[i]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=u.getInstance();this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s}=this.store.getState(),{pendingTransactionToasts:i}=await p();this.data.pendingTransactions=i;let e=Object.keys(s).reduce((o,n)=>(["sent","pending"].includes(String(s[n].status))||(o[n]=s[n]),o),{});this.data.historicTransactions=await w.getTransactionsHistory({transactionsSessions:e}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){B(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};export{h as a,m as b,u as c};
|
|
2
|
+
//# sourceMappingURL=chunk-MNKQNWZS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-2DUOXMZP.mjs";import{a as c}from"./chunk-O5PAMBB3.mjs";var l=async({receiver:n,sender:s,tokenId:i})=>{let t=null,r=null;if(!i)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await u({tokenId:i}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(s===e&&(t=e),n===e&&(r=e)),c(o[e])&&(s===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-N3J6ROD5.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-BB7POIGL.mjs";import{c as n}from"./chunk-XGALUTQ5.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-NTCDPOM4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-CZEUFCPN.mjs";import{a as s}from"./chunk-JFP2BITI.mjs";import{i as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-CZEUFCPN.mjs";import{a as s}from"./chunk-JFP2BITI.mjs";import{i as t}from"./chunk-XZ3C4DZL.mjs";import{a as l}from"./chunk-LSAYT6GA.mjs";import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-XGALUTQ5.mjs";var e=class e extends l{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:n}=r(o()),i=d(t.customProviders,e.allowedProviders);this.data={providers:i,walletAddress:n},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async n=>{!n?.isLoginFinished&&e.onClose&&e.onClose(),this.closeUI()};this.handleLogin=async({type:n,anchor:i})=>{if(!e.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{s(e.loginHandler)?(await(await t.create({type:n,anchor:i})).login(),e.loginHandler()):e.loginHandler({type:n,anchor:i}),await this.handleCloseUI({isLoginFinished:!0})}catch(a){console.error(a),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await t.destroy()};this.data=this.initialData}static getInstance(){return e.instance||(e.instance=new e),e.instance}static init(n){return this.loginHandler=n.loginHandler,this.allowedProviders=n.allowedProviders,n.onClose&&(this.onClose=n.onClose),this.getInstance()}};e.loginHandler=null,e.onClose=null,e.allowedProviders=null;var c=e;export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-NZGZ2C45.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/validation/addressIsValid.ts"],
|
|
4
|
+
"sourcesContent": ["import { Address } from 'lib/sdkCore';\n\nfunction canTransformToPublicKey(address: string) {\n try {\n return Address.isValid(address);\n } catch {\n return false;\n }\n}\n\nexport function addressIsValid(destinationAddress: string) {\n const isValidString = /^\\w+$/.test(destinationAddress);\n\n return isValidString && canTransformToPublicKey(destinationAddress);\n}\n"],
|
|
5
|
+
"mappings": "yCAEA,SAASA,EAAwBC,EAAiB,CAChD,GAAI,CACF,OAAOC,EAAQ,QAAQD,CAAO,CAChC,MAAQ,CACN,MAAO,EACT,CACF,CAEO,SAASE,EAAeC,EAA4B,CAGzD,MAFsB,QAAQ,KAAKA,CAAkB,GAE7BJ,EAAwBI,CAAkB,CACpE",
|
|
6
|
+
"names": ["canTransformToPublicKey", "address", "Address", "addressIsValid", "destinationAddress"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as l}from"./chunk-7CA6UKPK.mjs";import{b as T}from"./chunk-HRVNGVC2.mjs";import{c}from"./chunk-PWAP64SN.mjs";function y({transactions:s}){let a=[],e={};return!s||s.length===0?{allTransactions:a,parsedTransactionsByDataField:e}:(s.forEach((t,p)=>{let u=t.toPlainObject(),o=c(u?.data??""),r=l(o);if(r.length>0)r.forEach((n,i)=>{let m=i===r.length-1,d={transaction:t,multiTxData:n.data,transactionIndex:i,needsSigning:m};e[n.data]={tokenId:n.token?n.token:"",amount:n.amount?n.amount:"",type:n.type,nonce:n.nonce?n.nonce:"",multiTxData:n.data,receiver:n.receiver},a.push(d)});else{let{tokenId:n,amount:i}=T(o);n&&(e[o]={tokenId:n,amount:i,receiver:t.receiver.toBech32()}),a.push({transaction:t,transactionIndex:p,multiTxData:o,needsSigning:!0})}}),{allTransactions:a,parsedTransactionsByDataField:e})}export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OCQY6NUJ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.ts"],
|
|
4
|
+
"sourcesContent": ["import type { Transaction } from 'lib/sdkCore';\n\nimport {\n MultiSignTransactionType,\n TransactionsDataTokensType\n} from 'types/transactions.types';\nimport { decodeBase64 } from 'utils/decoders/base64Utils';\nimport { getTokenFromData } from 'utils/transactions/getInterpretedTransaction/helpers/getTokenFromData';\nimport { parseMultiEsdtTransferData } from './parseMultiEsdtTransferData';\n\nexport function parseMultiEsdtTransferDataForMultipleTransactions({\n transactions\n}: {\n transactions?: Transaction[];\n}) {\n const allTransactions: MultiSignTransactionType[] = [];\n const parsedTransactionsByDataField: TransactionsDataTokensType = {};\n\n if (!transactions || transactions.length === 0) {\n return {\n allTransactions,\n parsedTransactionsByDataField\n };\n }\n\n transactions.forEach((transaction, transactionIndex) => {\n const plainTransaction = transaction.toPlainObject();\n const txData = decodeBase64(plainTransaction?.data ?? '');\n const multiTxs = parseMultiEsdtTransferData(txData);\n\n if (multiTxs.length > 0) {\n multiTxs.forEach((trx, idx) => {\n const isLastView = idx === multiTxs.length - 1;\n\n const newTx: MultiSignTransactionType = {\n transaction,\n multiTxData: trx.data,\n transactionIndex: idx,\n needsSigning: isLastView\n };\n\n parsedTransactionsByDataField[trx.data] = {\n tokenId: trx.token ? trx.token : '',\n amount: trx.amount ? trx.amount : '',\n type: trx.type,\n nonce: trx.nonce ? trx.nonce : '',\n multiTxData: trx.data,\n receiver: trx.receiver\n };\n\n allTransactions.push(newTx);\n });\n } else {\n const { tokenId, amount } = getTokenFromData(txData);\n\n if (tokenId) {\n parsedTransactionsByDataField[txData] = {\n tokenId,\n amount,\n receiver: transaction.receiver.toBech32()\n };\n }\n allTransactions.push({\n transaction,\n transactionIndex,\n multiTxData: txData,\n needsSigning: true\n });\n }\n });\n\n return {\n allTransactions,\n parsedTransactionsByDataField\n };\n}\n"],
|
|
5
|
+
"mappings": "sHAUO,SAASA,EAAkD,CAChE,aAAAC,CACF,EAEG,CACD,IAAMC,EAA8C,CAAC,EAC/CC,EAA4D,CAAC,EAEnE,MAAI,CAACF,GAAgBA,EAAa,SAAW,EACpC,CACL,gBAAAC,EACA,8BAAAC,CACF,GAGFF,EAAa,QAAQ,CAACG,EAAaC,IAAqB,CACtD,IAAMC,EAAmBF,EAAY,cAAc,EAC7CG,EAASC,EAAaF,GAAkB,MAAQ,EAAE,EAClDG,EAAWC,EAA2BH,CAAM,EAElD,GAAIE,EAAS,OAAS,EACpBA,EAAS,QAAQ,CAACE,EAAKC,IAAQ,CAC7B,IAAMC,EAAaD,IAAQH,EAAS,OAAS,EAEvCK,EAAkC,CACtC,YAAAV,EACA,YAAaO,EAAI,KACjB,iBAAkBC,EAClB,aAAcC,CAChB,EAEAV,EAA8BQ,EAAI,IAAI,EAAI,CACxC,QAASA,EAAI,MAAQA,EAAI,MAAQ,GACjC,OAAQA,EAAI,OAASA,EAAI,OAAS,GAClC,KAAMA,EAAI,KACV,MAAOA,EAAI,MAAQA,EAAI,MAAQ,GAC/B,YAAaA,EAAI,KACjB,SAAUA,EAAI,QAChB,EAEAT,EAAgB,KAAKY,CAAK,CAC5B,CAAC,MACI,CACL,GAAM,CAAE,QAAAC,EAAS,OAAAC,CAAO,EAAIC,EAAiBV,CAAM,EAE/CQ,IACFZ,EAA8BI,CAAM,EAAI,CACtC,QAAAQ,EACA,OAAAC,EACA,SAAUZ,EAAY,SAAS,SAAS,CAC1C,GAEFF,EAAgB,KAAK,CACnB,YAAAE,EACA,iBAAAC,EACA,YAAaE,EACb,aAAc,EAChB,CAAC,CACH,CACF,CAAC,EAEM,CACL,gBAAAL,EACA,8BAAAC,CACF,EACF",
|
|
6
|
+
"names": ["parseMultiEsdtTransferDataForMultipleTransactions", "transactions", "allTransactions", "parsedTransactionsByDataField", "transaction", "transactionIndex", "plainTransaction", "txData", "decodeBase64", "multiTxs", "parseMultiEsdtTransferData", "trx", "idx", "isLastView", "newTx", "tokenId", "amount", "getTokenFromData"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o,f as r}from"./chunk-DA76AK4I.mjs";function u({receiverAddress:a,senderShard:e,senderAddress:s}){let n=new o;try{let t=new r(a),d=n.getShardOfAddress(t);if(e==null&&s!=null){let c=new r(s);return n.getShardOfAddress(c)!==d}return d!==e}catch{return!1}}export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OE4JXDVW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-LSAYT6GA.mjs";import{e}from"./chunk-QNYO7NI5.mjs";var o=class i extends r{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._gasPriceOptionMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,gasPriceOption:0,gasPriceOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){a.filter(t=>t!=null).forEach(t=>{let s=t?Number(t.gasPrice):1e9;this.updateGasPriceMap({nonce:Number(t.nonce),gasPriceOption:s,initialGasPrice:s})});let n=Number(a[0]?.gasPrice)||1e9;this.updateCommonData({gasPriceOption:n})}updateGasPriceMap({nonce:a,gasPriceOption:n,initialGasPrice:t}){this._gasPriceOptionMap[a]={...this._gasPriceOptionMap[a],gasPriceOption:n},t&&(this._gasPriceOptionMap[a].initialGasPrice=t)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,n){switch(a){case"NonFungibleESDT":this.data.nftTransaction=n,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=n,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get getGasPriceOptionMap(){return this._gasPriceOptionMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OLXCFQVN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-4QDQSEN7.mjs";import{a as m}from"./chunk-K4ITACAF.mjs";import{a as o,b as a}from"./chunk-QNYO7NI5.mjs";import{f as r}from"./chunk-PJWJZHIS.mjs";var d=({transaction:e,price:i})=>{let t=n({from:e.sender.toBech32(),to:e.receiver.toBech32(),gasPerDataByte:String(1500),gasPriceModifier:String(.01),gasLimit:e.gasLimit.valueOf().toString(),gasPrice:e.gasPrice.valueOf().toString(),data:e.data.toString(),chainId:e.chainID.valueOf().toString()}),c=r({input:t,showLastNonZeroDecimal:!0}),g=i?m({feeLimit:t,egldPriceInUsd:i,hideEqualSign:!0}):null;return{feeLimitFormatted:c,feeInFiatLimit:g,feeLimit:t}};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OMBZCVQZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d,c as u}from"./chunk-PWAP64SN.mjs";import{a as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d,c as u}from"./chunk-PWAP64SN.mjs";import{a as f}from"./chunk-O5PAMBB3.mjs";import{f as o}from"./chunk-DA76AK4I.mjs";import{f as l}from"./chunk-NWJYEKI2.mjs";import{a as m,b as p}from"./chunk-WRLZ5ICK.mjs";function h(t,r,s=""){if(!f(t))return!1;if(new o(t).isSmartContract())return!0;let i=S({receiver:t,data:s});return i?new o(i).isSmartContract()||g(t,r,s):!1}function g(t,r,s){let n=s?.split("@");if(n==null)return!1;let[e,...i]=n,a=r!=null&&t!=null&&t===r,T=Object.values(l).includes(e),C=i.every(c=>m(c)&&p(c));return a&&T&&C}function S({receiver:t,data:r}){try{if(!r)return t;let s=d(r)?u(r):r,n=E(s),e=s.split("@");return n>-1?e[n]:t}catch(s){console.log(s);return}}function E(t){return t.includes("MultiESDTNFTTransfer")?1:t.includes("ESDTNFTTransfer")?4:-1}export{h as a,g as b,S as c};
|
|
2
|
+
//# sourceMappingURL=chunk-OQURAWR4.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{m as D}from"./chunk-M6MN4RXG.mjs";import{a as f}from"./chunk-
|
|
1
|
+
import{m as D}from"./chunk-M6MN4RXG.mjs";import{a as f}from"./chunk-RTLNUOX6.mjs";import{a as d}from"./chunk-TY3B64SM.mjs";import{a as m}from"./chunk-QT6QIC4U.mjs";import{a as s}from"./chunk-RUJVGJOT.mjs";var F=({data:t,decodeMethod:e,identifier:r,highlight:n=null})=>{let i={displayValue:"",validationWarnings:[],highlight:n};if(t.length>36e3&&["decimal","smart"].includes(e))return{...i,displayValue:t};let c=t.includes("@"),p=t.includes(`
|
|
2
2
|
`);if(!c&&!p)return{...i,displayValue:s({data:t,decodeMethod:e}),highlight:n&&s({data:n,decodeMethod:e})};if(c){let a=t.split("@"),l=f({parts:a,decodeMethod:e,identifier:r,decodedData:i}),o=n?d({data:n,identifier:r,decodeMethod:e,delimiter:"@"}):null;return{...i,displayValue:l.join("@"),highlight:o}}if(p){let a=t.split(`
|
|
3
3
|
`),l=a.map(u=>e==="raw"?u:s({data:Buffer.from(u,"base64").toString("hex"),decodeMethod:e})),o=m({parts:a,initialDecodedParts:l,identifier:r,decodeMethod:e}),y=n?d({data:n,identifier:r,decodeMethod:e,delimiter:`
|
|
4
4
|
`}):null;return{...i,displayValue:o.join(`
|
|
5
5
|
`),highlight:y}}return i};export{F as a};
|
|
6
|
-
//# sourceMappingURL=chunk-
|
|
6
|
+
//# sourceMappingURL=chunk-OVZEW7XD.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-QLDZFO7M.mjs";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"||!t))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-OXJJPBYT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-6R2WFQ7U.mjs";import{a as l}from"./chunk-4CGAWZR6.mjs";import{a as e}from"./chunk-XVZUH5QS.mjs";import{d as s}from"./chunk-V5ZSFCKJ.mjs";import{s as i}from"./chunk-XGALUTQ5.mjs";var c=class{constructor(r){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async r=>{if(!this._login)throw new Error("Provider is not initialized.");let o=await this._login(r);if(!o?.address)throw new Error("Provider is not initialized.");return{...o,address:o.address,signature:o.signature??""}};this.initializeAddress=()=>{if(this.address)return;let r=e();r&&(this.address=r)};this.cancelAction=void 0;this.address=r??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(r,o){throw new Error("Method not implemented.")}async login(r){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let o=new AbortController;this.loginAbortController=o;let n=o.signal;try{let t=new Promise((m,p)=>{n.addEventListener("abort",()=>{p(new Error("Login cancelled"))})}),d=await Promise.race([this.loginOperation(r),t]);return this.loginAbortController=null,d}catch(t){throw this.loginAbortController=null,t}}async initSignState(){if(s(i())?.isSigningUiEnabled===!1)return{onClose:async()=>({}),manager:null};let{onClose:o,manager:n}=await l({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return n.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),n.updateData({name:a[t],type:t}),{onClose:o,manager:n}}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-P3WDIKX5.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.ts"],
|
|
4
|
+
"sourcesContent": ["import { IProviderAccount } from '@multiversx/sdk-wallet-connect-provider/out';\nimport { providerLabels } from 'constants/providerFactory.constants';\nimport { Transaction, Message } from 'lib/sdkCore';\nimport { IDAppProviderOptions, IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { PendingTransactionsEventsEnum } from 'managers/internal/PendingTransactionsStateManager';\nimport { getAddress } from 'methods/account/getAddress';\nimport { SignTransactionsOptionsType } from 'providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider';\nimport { IProvider, ProviderType } from 'providers/types/providerFactory.types';\nimport { providerSettingsSelector } from 'store/selectors/configSelectors';\nimport { getState } from 'store/store';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { getPendingTransactionsHandlers } from '../helpers';\n\nexport type LoginOptionsTypes = {\n token?: string;\n};\n\nexport abstract class BaseProviderStrategy<\n T extends ProviderType = ProviderType\n> implements IProvider<T>\n{\n protected address?: string = '';\n protected _login:\n | ((options?: LoginOptionsTypes) => Promise<IProviderAccount | null>)\n | null = null;\n protected loginAbortController: AbortController | null = null;\n\n /*\n * Allow setting provider address without store login\n */\n constructor(address?: string) {\n this.address = address ?? '';\n }\n\n abstract init(): Promise<boolean>;\n abstract logout(): Promise<boolean>;\n abstract getType(): T;\n\n abstract getAddress(): Promise<string | undefined>;\n abstract setAccount(account: IDAppProviderAccount): void;\n abstract isInitialized(): boolean;\n\n isConnected?(): boolean;\n\n getAccount(): IDAppProviderAccount | null {\n throw new Error('Method not implemented.');\n }\n\n signTransaction(\n _transaction: Transaction,\n _options?: SignTransactionsOptionsType\n ): Promise<Transaction | null> {\n throw new Error('Method not implemented.');\n }\n\n abstract signTransactions(\n transactions: Transaction[],\n options?: IDAppProviderOptions\n ): Promise<Transaction[] | null>;\n\n abstract signMessage(\n messageToSign: Message,\n options?: IDAppProviderOptions\n ): Promise<Message | null>;\n\n public async login(\n options?: LoginOptionsTypes\n ): Promise<{ address: string; signature: string }> {\n if (!this._login) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n if (this.loginAbortController) {\n this.loginAbortController.abort();\n }\n\n const controller = new AbortController();\n this.loginAbortController = controller;\n\n const signal = controller.signal;\n\n try {\n const abortPromise = new Promise<never>((_, reject) => {\n signal.addEventListener('abort', () => {\n reject(new Error('Login cancelled'));\n });\n });\n\n const loginResult = await Promise.race([\n this.loginOperation(options),\n abortPromise\n ]);\n\n this.loginAbortController = null;\n\n return loginResult;\n } catch (error) {\n this.loginAbortController = null;\n throw error;\n }\n }\n\n public cancelLogin = () => {\n if (this.loginAbortController) {\n this.loginAbortController.abort();\n }\n\n this.cancelAction?.();\n this.loginAbortController = null;\n };\n\n protected loginOperation = async (\n options?: LoginOptionsTypes\n ): Promise<{ address: string; signature: string }> => {\n if (!this._login) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n const result = await this._login(options);\n\n if (!result?.address) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n return {\n ...result,\n address: result.address,\n signature: result.signature ?? ''\n };\n };\n\n /**\n * Initializes the provider by setting the address if it is not already set.\n */\n protected initializeAddress = () => {\n if (this.address) {\n return;\n }\n\n const address = getAddress();\n\n if (!address) {\n return;\n }\n\n this.address = address;\n };\n\n cancelAction: (() => Promise<void>) | undefined = undefined;\n\n /**\n * This method should be overridden by subclasses to handle cancel login event.\n */\n // async cancelAction(): Promise<void> {\n // throw new Error('Method not implemented.');\n // }\n\n protected async initSignState() {\n const providerConfig = providerSettingsSelector(getState());\n\n // If UI is disabled, return null values to skip UI operations\n if (providerConfig?.isSigningUiEnabled === false) {\n return {\n onClose: async () => ({}),\n manager: null\n };\n }\n\n const { onClose, manager } = await getPendingTransactionsHandlers({\n cancelAction: this.cancelAction?.bind(this)\n });\n\n const type = this.getType();\n manager.subscribeToEventBus(PendingTransactionsEventsEnum.CLOSE, onClose);\n\n manager.updateData({\n name: providerLabels[type],\n type\n });\n\n return { onClose, manager };\n }\n}\n"],
|
|
5
|
+
"mappings": "wMAiBO,IAAeA,EAAf,KAGP,CAUE,YAAYC,EAAkB,CAT9B,KAAU,QAAmB,GAC7B,KAAU,OAEC,KACX,KAAU,qBAA+C,KA6EzD,KAAO,YAAc,IAAM,CACrB,KAAK,sBACP,KAAK,qBAAqB,MAAM,EAGlC,KAAK,eAAe,EACpB,KAAK,qBAAuB,IAC9B,EAEA,KAAU,eAAiB,MACzBC,GACoD,CACpD,GAAI,CAAC,KAAK,OACR,MAAM,IAAI,oCAAuC,EAGnD,IAAMC,EAAS,MAAM,KAAK,OAAOD,CAAO,EAExC,GAAI,CAACC,GAAQ,QACX,MAAM,IAAI,oCAAuC,EAGnD,MAAO,CACL,GAAGA,EACH,QAASA,EAAO,QAChB,UAAWA,EAAO,WAAa,EACjC,CACF,EAKA,KAAU,kBAAoB,IAAM,CAClC,GAAI,KAAK,QACP,OAGF,IAAMF,EAAUG,EAAW,EAEtBH,IAIL,KAAK,QAAUA,EACjB,EAEA,kBAAkD,OArHhD,KAAK,QAAUA,GAAW,EAC5B,CAYA,YAA0C,CACxC,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAEA,gBACEI,EACAC,EAC6B,CAC7B,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAYA,MAAa,MACXJ,EACiD,CACjD,GAAI,CAAC,KAAK,OACR,MAAM,IAAI,oCAAuC,EAG/C,KAAK,sBACP,KAAK,qBAAqB,MAAM,EAGlC,IAAMK,EAAa,IAAI,gBACvB,KAAK,qBAAuBA,EAE5B,IAAMC,EAASD,EAAW,OAE1B,GAAI,CACF,IAAME,EAAe,IAAI,QAAe,CAACC,EAAGC,IAAW,CACrDH,EAAO,iBAAiB,QAAS,IAAM,CACrCG,EAAO,IAAI,MAAM,iBAAiB,CAAC,CACrC,CAAC,CACH,CAAC,EAEKC,EAAc,MAAM,QAAQ,KAAK,CACrC,KAAK,eAAeV,CAAO,EAC3BO,CACF,CAAC,EAED,YAAK,qBAAuB,KAErBG,CACT,OAASC,EAAO,CACd,WAAK,qBAAuB,KACtBA,CACR,CACF,CAyDA,MAAgB,eAAgB,CAI9B,GAHuBC,EAAyBC,EAAS,CAAC,GAGtC,qBAAuB,GACzC,MAAO,CACL,QAAS,UAAa,CAAC,GACvB,QAAS,IACX,EAGF,GAAM,CAAE,QAAAC,EAAS,QAAAC,CAAQ,EAAI,MAAMC,EAA+B,CAChE,aAAc,KAAK,cAAc,KAAK,IAAI,CAC5C,CAAC,EAEKC,EAAO,KAAK,QAAQ,EAC1B,OAAAF,EAAQ,iDAAyDD,CAAO,EAExEC,EAAQ,WAAW,CACjB,KAAMG,EAAeD,CAAI,EACzB,KAAAA,CACF,CAAC,EAEM,CAAE,QAAAH,EAAS,QAAAC,CAAQ,CAC5B,CACF",
|
|
6
|
+
"names": ["BaseProviderStrategy", "address", "options", "result", "getAddress", "_transaction", "_options", "controller", "signal", "abortPromise", "_", "reject", "loginResult", "error", "providerSettingsSelector", "getState", "onClose", "manager", "getPendingTransactionsHandlers", "type", "providerLabels"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-AOF7QPPF.mjs";import{b as r}from"./chunk-2LIUW5CF.mjs";import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as o}from"./chunk-XGALUTQ5.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=i(o());(!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-P3Z2DQ5Y.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-CE4N3GKT.mjs";import{a as g}from"./chunk-HSF3JATH.mjs";import l from"lodash.isequal";async function C({loginData:f,nativeAuthConfig:r,loginToken:s}){let{address:m,signature:d,...n}=f,a=Object.keys(n).reduce((i,t)=>{let o=["multisig","impersonate"].includes(t)&&n[t]!=null?String(n[t]):null;return o!=null&&(i[t]=o.toString()),i},{}),e={...r};if(Object.keys(a).length>0&&(e.extraInfo=a),!l(r,e)){let i=g(s);return await u(e).initialize({noCache:!0,latestBlockInfo:{hash:i?.blockHash??"",timestamp:i?.extraInfo?.timestamp??0}})}return s}export{C as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QIXUIO74.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.
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.5.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-STN2J2XX.mjs";var n=({parts:r,decodeMethod:d,identifier:o,initialDecodedParts:e})=>d==="smart"?t({parts:r,decodedParts:e,identifier:o}):e;export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QT6QIC4U.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-DZ2BIDRW.mjs";import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-DZ2BIDRW.mjs";import{a as s}from"./chunk-STN2J2XX.mjs";import{a}from"./chunk-RUJVGJOT.mjs";var W=({parts:n,decodeMethod:i,decodedData:t,identifier:c})=>{let d=n.map((e,o)=>{if(n.length>=2&&(o===0&&e.length<64||o===1&&!n[0]))return/[^a-z0-9]/gi.test(e)?a({data:e,decodeMethod:i}):e;let r=l(e);return r?.length&&(t.validationWarnings=Array.from(new Set([...t.validationWarnings,...r]))),a({data:e,decodeMethod:i})});return i==="smart"?s({parts:n,decodedParts:d,identifier:c}):d};export{W as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RTLNUOX6.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as c}from"./chunk-HH5SA7BX.mjs";import{a as s}from"./chunk-O5PAMBB3.mjs";import{f as n}from"./chunk-DA76AK4I.mjs";import i from"bignumber.js";var l=({data:e,decodeMethod:f,transactionTokens:t})=>{switch(f){case"text":try{return Buffer.from(e,"hex").toString("utf8")}catch{return e}case"decimal":return e!==""?new i(e,16).toString(10):"";case"smart":try{let r=n.newFromHex(e).toString();if(s(r))return r}catch{}try{let r=Buffer.from(e,"hex").toString("utf8");if(c(r))return r;{if(t&&[...t.esdts,...t.nfts].some(d=>r.includes(d)))return r;let o=new i(e,16);return o.isFinite()?o.toString(10):e}}catch{return e}case"raw":default:return e}};export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RUJVGJOT.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/transactions/getDecodedDataField/helpers/decodeByMethod.ts"],
|
|
4
|
+
"sourcesContent": ["import BigNumber from 'bignumber.js';\nimport { Address } from 'lib/sdkCore';\n\nimport {\n DecodeMethodEnum,\n TransactionTokensType\n} from 'types/serverTransactions.types';\nimport { isUtf8 } from 'utils/decoders/isUtf8';\nimport { addressIsValid } from 'utils/validation/addressIsValid';\n\ninterface IDecodeByMethod {\n data: string;\n decodeMethod: DecodeMethodEnum | string;\n transactionTokens?: TransactionTokensType;\n}\n\nexport const decodeByMethod = ({\n data,\n decodeMethod,\n transactionTokens\n}: IDecodeByMethod) => {\n switch (decodeMethod) {\n case DecodeMethodEnum.text:\n try {\n return Buffer.from(data, 'hex').toString('utf8');\n } catch {\n return data;\n }\n\n case DecodeMethodEnum.decimal:\n return data !== '' ? new BigNumber(data, 16).toString(10) : '';\n case DecodeMethodEnum.smart:\n try {\n const bech32Encoded = Address.newFromHex(data).toString();\n\n if (addressIsValid(bech32Encoded)) {\n return bech32Encoded;\n }\n } catch {\n // skip\n }\n\n try {\n const decoded = Buffer.from(data, 'hex').toString('utf8');\n\n if (!isUtf8(decoded)) {\n if (transactionTokens) {\n const tokens = [\n ...transactionTokens.esdts,\n ...transactionTokens.nfts\n ];\n\n if (tokens.some((token) => decoded.includes(token))) {\n return decoded;\n }\n }\n\n const bigNumber = new BigNumber(data, 16);\n\n return bigNumber.isFinite() ? bigNumber.toString(10) : data;\n } else {\n return decoded;\n }\n } catch {\n return data;\n }\n\n case DecodeMethodEnum.raw:\n default:\n return data;\n }\n};\n"],
|
|
5
|
+
"mappings": "2HAAA,OAAOA,MAAe,eAgBf,IAAMC,EAAiB,CAAC,CAC7B,KAAAC,EACA,aAAAC,EACA,kBAAAC,CACF,IAAuB,CACrB,OAAQD,EAAc,CACpB,WACE,GAAI,CACF,OAAO,OAAO,KAAKD,EAAM,KAAK,EAAE,SAAS,MAAM,CACjD,MAAQ,CACN,OAAOA,CACT,CAEF,cACE,OAAOA,IAAS,GAAK,IAAIG,EAAUH,EAAM,EAAE,EAAE,SAAS,EAAE,EAAI,GAC9D,YACE,GAAI,CACF,IAAMI,EAAgBC,EAAQ,WAAWL,CAAI,EAAE,SAAS,EAExD,GAAIM,EAAeF,CAAa,EAC9B,OAAOA,CAEX,MAAQ,CAER,CAEA,GAAI,CACF,IAAMG,EAAU,OAAO,KAAKP,EAAM,KAAK,EAAE,SAAS,MAAM,EAExD,GAAKQ,EAAOD,CAAO,EAgBjB,OAAOA,EAhBa,CACpB,GAAIL,GACa,CACb,GAAGA,EAAkB,MACrB,GAAGA,EAAkB,IACvB,EAEW,KAAMO,GAAUF,EAAQ,SAASE,CAAK,CAAC,EAChD,OAAOF,EAIX,IAAMG,EAAY,IAAIP,EAAUH,EAAM,EAAE,EAExC,OAAOU,EAAU,SAAS,EAAIA,EAAU,SAAS,EAAE,EAAIV,CACzD,CAGF,MAAQ,CACN,OAAOA,CACT,CAEF,UACA,QACE,OAAOA,CACX,CACF",
|
|
6
|
+
"names": ["BigNumber", "decodeByMethod", "data", "decodeMethod", "transactionTokens", "BigNumber", "bech32Encoded", "Address", "addressIsValid", "decoded", "isUtf8", "token", "bigNumber"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as t}from"./chunk-7VHTZYM2.mjs";import{s as r}from"./chunk-XGALUTQ5.mjs";import{y as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";var c=async(s,a={apiAddress:""})=>{let{data:o}=await i.get(`${a.apiAddress||t(r())}/${e}`,{params:{hashes:s.join(","),withScResults:!0}});return o};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RVTPQ3R5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-XVRM5XQM.mjs";var c=class n extends i{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-ledger-connect"});this.addressesPerPage=10;this.allAccounts=[];this.initialConnectScreenData={};this.connectScreenData={...this.initialConnectScreenData};this.initialAccountScreenData={accounts:this.allAccounts,startIndex:0,addressesPerPage:this.addressesPerPage,isLoading:!0};this.accountScreenData={...this.initialAccountScreenData};this.initialConfirmScreenData={selectedAddress:"",explorerLink:""};this.confirmScreenData={...this.initialConfirmScreenData};this.initialData={connectScreenData:this.initialConnectScreenData,accountScreenData:this.initialAccountScreenData,confirmScreenData:this.initialConfirmScreenData};this.data=this.getInitialData()}static getInstance(){return n.instance||(n.instance=new n),n.instance}updateAllAccounts(e){this.allAccounts=e,this.accountScreenData.accounts=e}updateStartIndex(e){this.accountScreenData.startIndex=e}updateConnectScreen(e){this.connectScreenData={...this.connectScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=null,this.data.connectScreenData=this.connectScreenData,this.notifyDataUpdate()}updateAccountScreen(e){this.accountScreenData={...this.accountScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=this.accountScreenData,this.notifyDataUpdate()}updateConfirmScreen(e){this.confirmScreenData={...this.confirmScreenData,...e},this.data.accountScreenData=null,this.data.confirmScreenData=this.confirmScreenData,this.notifyDataUpdate()}getAccountScreenData(){return this.data.accountScreenData}getConfirmScreenData(){return this.data.confirmScreenData}getAllAccounts(){return this.allAccounts}subscribeToProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.subscribe("CONNECT_DEVICE",e),this.eventBus.subscribe("CLOSE",t),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}unsubscribeFromProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.unsubscribe("CONNECT_DEVICE",e),this.eventBus.unsubscribe("CLOSE",t),this.eventBus.unsubscribe("UI_DISCONNECTED",this.destroy.bind(this)))}subscribeToAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.subscribe("CLOSE",e),this.eventBus.subscribe("ACCESS_WALLET",t),this.eventBus.subscribe("GO_TO_PAGE",a))}unsubscribeFromAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.unsubscribe("CLOSE",e),this.eventBus.unsubscribe("ACCESS_WALLET",t),this.eventBus.unsubscribe("GO_TO_PAGE",a),this.resetData())}handleClose(){this.anchor?this.anchor?.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy()}resetData(){this.accountScreenData={...this.initialAccountScreenData},this.confirmScreenData={...this.initialConfirmScreenData},this.connectScreenData={...this.initialConnectScreenData},this.allAccounts=[],super.resetData()}async setupEventListeners(){this.eventBus&&this.eventBus.subscribe("CLOSE",this.handleClose.bind(this))}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-S3EO22CE.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-A4KOSUVU.mjs";import{k as r}from"./chunk-PKDR5ERF.mjs";import{a as o}from"./chunk-2JKCBTYK.mjs";import m from"axios";async function c({addressToVerify:s,baseURL:a}){let e=t(a),{data:i}=await m.get(`${e}/${o}/${s}`,{timeout:r});return i}export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-S5DCQEU2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-RUJVGJOT.mjs";var f=({parts:e,decodedParts:d,identifier:o})=>{let r=[...d];if(e[0]==="ESDTNFTTransfer"&&e[2]&&(r[2]=t({data:e[2],decodeMethod:"decimal"})),o==="ESDTNFTTransfer"&&e[1]){let a=Buffer.from(String(e[1]),"base64");r[1]=t({data:a.toString("hex"),decodeMethod:"decimal"})}return r};export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-STN2J2XX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-U3UMCTU6.mjs";import{a as T}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-U3UMCTU6.mjs";import{a as T}from"./chunk-N3J6ROD5.mjs";import{a as p}from"./chunk-573LAOYN.mjs";import{a as i}from"./chunk-M3F2J3PW.mjs";import{a as k}from"./chunk-HYPARWQN.mjs";import{a as l}from"./chunk-YJCTRUJT.mjs";import{c as m}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-OQURAWR4.mjs";var g=class{static async processTransactions({address:v,egldLabel:L,explorerAddress:a,transactions:f}){let h=f.map(e=>k({address:v,explorerAddress:a,transaction:e}));return await Promise.all(h.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),c=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:D,receiverLockedAccount:x}=await T({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=p({transaction:e}),y=r?.token.type==="MetaESDT"?void 0:r?.badgeText,d=u.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??m,digits:2}),S={badge:y??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?L:"",link:l({explorerAddress:a,to:n?.tokenExplorerLink??r?.tokenExplorerLink??""}),linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:d.valueDecimal,valueInteger:d.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!x,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverShardLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:c??"",description:`${c??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!D,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:S}}))}};export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-T3SGVYSV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-CE4N3GKT.mjs";import{a as o}from"./chunk-HSF3JATH.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-TDRQ3OLY.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as d}from"./chunk-QT6QIC4U.mjs";import{a as i}from"./chunk-RUJVGJOT.mjs";var m=({data:o,decodeMethod:e,delimiter:r,identifier:c})=>{let t=o.split("@"),n=t.map(g=>i({data:g,decodeMethod:e}));return d({parts:t,initialDecodedParts:n,identifier:c,decodeMethod:e}).join(r)};export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TY3B64SM.mjs.map
|