@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
package/README.md
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
[](https://github.com/multiversx/mx-sdk-dapp/actions/workflows/run-template-dapps-integration.yml)
|
|
6
6
|
[](https://deepwiki.com/multiversx/mx-sdk-dapp)
|
|
7
7
|
|
|
8
|
-
|
|
9
8
|
MultiversX Front-End SDK for JavaScript and TypeScript (written in TypeScript).
|
|
10
9
|
|
|
11
10
|
## Introduction
|
|
@@ -304,6 +303,47 @@ const provider = getAccountProvider();
|
|
|
304
303
|
const signedTransactions = await provider.signTransactions(transactions);
|
|
305
304
|
```
|
|
306
305
|
|
|
306
|
+
#### 4.1.1 Signing Options
|
|
307
|
+
|
|
308
|
+
The `signTransactions` method accepts an optional second parameter with signing options:
|
|
309
|
+
|
|
310
|
+
```typescript
|
|
311
|
+
import type { SignTransactionsOptionsType } from '@multiversx/sdk-dapp/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider';
|
|
312
|
+
|
|
313
|
+
const options: SignTransactionsOptionsType = {
|
|
314
|
+
skipGuardian?: boolean; // Skip guardian validation for guarded accounts
|
|
315
|
+
callback?: (signedTransactions: Transaction[]) => Promise<Transaction[]>; // Post-signing callback
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const signedTransactions = await provider.signTransactions(transactions, options);
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
**Available options:**
|
|
322
|
+
|
|
323
|
+
- `skipGuardian` (`boolean`): Optional. When `true`, skips the guardian co-signing step for guarded accounts. Useful for transactions that don't require guardian approval.
|
|
324
|
+
|
|
325
|
+
- `callback` (`(signedTransactions: Transaction[]) => Promise<Transaction[]>`): Optional. A callback function that receives the signed transactions after all transactions have been signed by the user, but before guardian validation. This allows you to modify, filter, or perform additional processing on the signed transactions. The returned transactions will proceed to guardian validation (if applicable).
|
|
326
|
+
|
|
327
|
+
**Example: Using the callback option**
|
|
328
|
+
|
|
329
|
+
The `callback` option is particularly useful for:
|
|
330
|
+
|
|
331
|
+
- **Guarded accounts**: Processing signed transactions before they are sent to the guardian service for co-signing
|
|
332
|
+
- **Custom validation**: Adding additional validation logic after user signing
|
|
333
|
+
- **Logging/Analytics**: Recording signed transactions before final submission
|
|
334
|
+
|
|
335
|
+
```typescript
|
|
336
|
+
const signedTransactions = await provider.signTransactions(transactions, {
|
|
337
|
+
callback: async (signedTxs) => {
|
|
338
|
+
// Example: Log signed transactions before guardian processing
|
|
339
|
+
console.log('User signed transactions:', signedTxs);
|
|
340
|
+
|
|
341
|
+
// Return the transactions to proceed with guardian validation
|
|
342
|
+
return signedTxs;
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
```
|
|
346
|
+
|
|
307
347
|
#### 4.2 Sending and tracking transactions
|
|
308
348
|
|
|
309
349
|
Then, to send the transactions, you need to use the `TransactionManager` class and pass in the `signedTransactions` to the `send` method. You can then track the transactions by using the `track` method. This will create a toast notification with the transaction hash and its status.
|
|
@@ -589,24 +629,27 @@ import { TransactionManagerTrackOptionsType } from '@multiversx/sdk-dapp/out/man
|
|
|
589
629
|
|
|
590
630
|
const options: TransactionManagerTrackOptionsType = {
|
|
591
631
|
disableToasts: false, // `false` by default
|
|
592
|
-
transactionsDisplayInfo: {
|
|
632
|
+
transactionsDisplayInfo: {
|
|
633
|
+
// optional. If left `undefined`, it will use the default messages
|
|
593
634
|
errorMessage: 'Failed adding stake',
|
|
594
635
|
successMessage: 'Stake successfully added',
|
|
595
636
|
receivedMessage: 'Stake successfully added', // optional, add it in case of multiple transactions
|
|
596
|
-
processingMessage: 'Staking in progress'
|
|
637
|
+
processingMessage: 'Staking in progress'
|
|
597
638
|
// submittedMessage: 'Stake submitted',
|
|
598
|
-
// timedOutMessage: 'Transaction timed out',
|
|
639
|
+
// timedOutMessage: 'Transaction timed out',
|
|
599
640
|
// invalidMessage: 'Invalid transaction',
|
|
600
641
|
},
|
|
601
642
|
sessionInformation: {
|
|
602
643
|
// `undefined` by default. Use to perform additional actions based on the session information
|
|
603
644
|
stakeAmount: '1000000000000000000000000'
|
|
604
645
|
},
|
|
605
|
-
onSuccess: async(sessionId) => {
|
|
646
|
+
onSuccess: async (sessionId) => {
|
|
647
|
+
// optional
|
|
606
648
|
// overrides the the global `onSuccess` callback set in the `initApp` method for the current session only
|
|
607
649
|
console.log('Session successful', sessionId);
|
|
608
650
|
},
|
|
609
|
-
onFail: async(sessionId) => {
|
|
651
|
+
onFail: async (sessionId) => {
|
|
652
|
+
// optional
|
|
610
653
|
console.log('Session failed', sessionId);
|
|
611
654
|
}
|
|
612
655
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as t}from"./chunk-LJX4MW7B.mjs";var o=s=>`Unable to perform ${s}, Provider not initialized`,e=class{init(){return Promise.resolve(!1)}login(n){throw new Error(o(`login with options: ${n}`))}logout(n){throw new Error(o(`logout with options: ${n}`))}getAccount(){throw new Error(o("unable to get account"))}setAccount(n){throw new Error(o(`unable to set account with: ${n}`))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(n,r){throw new Error(o(`sendTransaction with transactions: ${n} options: ${r}`))}signTransaction(n,r){throw new Error(o(`signTransaction with transactions: ${JSON.stringify(n)} options: ${r}`))}signTransactions(n){throw new Error(o(`signTransactions with transactions: ${JSON.stringify(n)}`))}signMessage(n,r){throw new Error(o(`signMessage with ${n} and options ${r}`))}sendCustomMessage({method:n,params:r}){throw new Error(o(`sendCustomMessage with method: ${n} params: ${r}`))}sendCustomRequest(n){throw new Error(o(`sendSessionEvent with options: ${n}`))}async getAddress(){throw new Error(o("getAddress"))}getType(){return t.none}},c=new e;export{e as a,c as b};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-2AJ5KJ2V.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/helpers/emptyProvider.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n IDAppProviderAccount,\n IDAppProviderOptions\n} from '@multiversx/sdk-dapp-utils/out';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport {\n IProvider,\n ProviderType,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\n\nimport { EngineTypes } from 'utils/walletconnect/__sdkWalletconnectProvider';\n\nconst notInitializedError = (caller: string) => {\n return `Unable to perform ${caller}, Provider not initialized`;\n};\n\nexport class EmptyProvider implements IProvider {\n init(): Promise<boolean> {\n return Promise.resolve(false);\n }\n\n login<TOptions = { callbackUrl?: string } | undefined, TResponse = string>(\n options?: TOptions\n ): Promise<TResponse> {\n throw new Error(notInitializedError(`login with options: ${options}`));\n }\n\n logout<TOptions = { callbackUrl?: string }, TResponse = boolean>(\n options?: TOptions\n ): Promise<TResponse> {\n throw new Error(notInitializedError(`logout with options: ${options}`));\n }\n\n getAccount(): IDAppProviderAccount | null {\n throw new Error(notInitializedError('unable to get account'));\n }\n setAccount(account: IDAppProviderAccount): void {\n throw new Error(\n notInitializedError(`unable to set account with: ${account}`)\n );\n }\n\n isInitialized(): boolean {\n return false;\n }\n\n isConnected(): boolean {\n return false;\n }\n\n sendTransaction?<\n TOptions = { callbackUrl?: string },\n TResponse = Transaction\n >(transaction: Transaction, options?: TOptions): Promise<TResponse> {\n throw new Error(\n notInitializedError(\n `sendTransaction with transactions: ${transaction} options: ${options}`\n )\n );\n }\n\n signTransaction<TOptions = { callbackUrl?: string }, TResponse = Transaction>(\n transaction: Transaction,\n options?: TOptions\n ): Promise<TResponse> {\n throw new Error(\n notInitializedError(\n `signTransaction with transactions: ${JSON.stringify(transaction)} options: ${options}`\n )\n );\n }\n\n signTransactions<T>(transactions: T[]): Promise<T[]> {\n throw new Error(\n notInitializedError(\n `signTransactions with transactions: ${JSON.stringify(transactions)}`\n )\n );\n }\n\n signMessage(\n message: Message,\n options?: IDAppProviderOptions\n ): Promise<Message | null> {\n throw new Error(\n notInitializedError(`signMessage with ${message} and options ${options}`)\n );\n }\n\n sendCustomMessage?({\n method,\n params\n }: {\n method: string;\n params: any;\n }): Promise<any> {\n throw new Error(\n notInitializedError(\n `sendCustomMessage with method: ${method} params: ${params}`\n )\n );\n }\n\n sendCustomRequest?(options?: {\n request: EngineTypes.RequestParams['request'];\n }): Promise<any> {\n throw new Error(\n notInitializedError(`sendSessionEvent with options: ${options}`)\n );\n }\n\n async getAddress(): Promise<string | undefined> {\n throw new Error(notInitializedError('getAddress'));\n }\n\n getType(): ProviderType {\n return ProviderTypeEnum.none;\n }\n}\n\nexport const emptyProvider = new EmptyProvider();\n"],
|
|
5
|
+
"mappings": "yCAaA,IAAMA,EAAuBC,GACpB,qBAAqBA,CAAM,6BAGvBC,EAAN,KAAyC,CAC9C,MAAyB,CACvB,OAAO,QAAQ,QAAQ,EAAK,CAC9B,CAEA,MACEC,EACoB,CACpB,MAAM,IAAI,MAAMH,EAAoB,uBAAuBG,CAAO,EAAE,CAAC,CACvE,CAEA,OACEA,EACoB,CACpB,MAAM,IAAI,MAAMH,EAAoB,wBAAwBG,CAAO,EAAE,CAAC,CACxE,CAEA,YAA0C,CACxC,MAAM,IAAI,MAAMH,EAAoB,uBAAuB,CAAC,CAC9D,CACA,WAAWI,EAAqC,CAC9C,MAAM,IAAI,MACRJ,EAAoB,+BAA+BI,CAAO,EAAE,CAC9D,CACF,CAEA,eAAyB,CACvB,MAAO,EACT,CAEA,aAAuB,CACrB,MAAO,EACT,CAEA,gBAGEC,EAA0BF,EAAwC,CAClE,MAAM,IAAI,MACRH,EACE,sCAAsCK,CAAW,aAAaF,CAAO,EACvE,CACF,CACF,CAEA,gBACEE,EACAF,EACoB,CACpB,MAAM,IAAI,MACRH,EACE,sCAAsC,KAAK,UAAUK,CAAW,CAAC,aAAaF,CAAO,EACvF,CACF,CACF,CAEA,iBAAoBG,EAAiC,CACnD,MAAM,IAAI,MACRN,EACE,uCAAuC,KAAK,UAAUM,CAAY,CAAC,EACrE,CACF,CACF,CAEA,YACEC,EACAJ,EACyB,CACzB,MAAM,IAAI,MACRH,EAAoB,oBAAoBO,CAAO,gBAAgBJ,CAAO,EAAE,CAC1E,CACF,CAEA,kBAAmB,CACjB,OAAAK,EACA,OAAAC,CACF,EAGiB,CACf,MAAM,IAAI,MACRT,EACE,kCAAkCQ,CAAM,YAAYC,CAAM,EAC5D,CACF,CACF,CAEA,kBAAmBN,EAEF,CACf,MAAM,IAAI,MACRH,EAAoB,kCAAkCG,CAAO,EAAE,CACjE,CACF,CAEA,MAAM,YAA0C,CAC9C,MAAM,IAAI,MAAMH,EAAoB,YAAY,CAAC,CACnD,CAEA,SAAwB,CACtB,OAAOU,EAAiB,IAC1B,CACF,EAEaC,EAAgB,IAAIT",
|
|
6
|
+
"names": ["notInitializedError", "caller", "EmptyProvider", "options", "account", "transaction", "transactions", "message", "method", "params", "ProviderTypeEnum", "emptyProvider"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-NYZ726DG.mjs";import{b as c}from"./chunk-7VHTZYM2.mjs";import{a as s}from"./chunk-3FXHIV6O.mjs";import{s as o}from"./chunk-XGALUTQ5.mjs";import{o as a,u as m}from"./chunk-2JKCBTYK.mjs";async function I({tokenId:n}){let t=c(o()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=s(n),i=n,p=k?a:m;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2DUOXMZP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-IWP36NOU.mjs";import{a as w}from"./chunk-LGGG3HW7.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";import{q as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-IWP36NOU.mjs";import{a as w}from"./chunk-LGGG3HW7.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";import{q as u}from"./chunk-XGALUTQ5.mjs";import{a as l}from"./chunk-SQVKVA7X.mjs";var e=o=>u().setState(({network:t})=>{t.network={...t.network,...o}},!1,{type:"initializeNetworkConfig",payload:{value:o}});var y=async({customNetworkConfig:o={},environment:t})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=t&&t in i,p=n?i[t]:{},s={...l,...p,...o},r={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await c(a),f=r.roundDuration?null:await w(a);if(f!=null&&(r.roundDuration=f.erd_round_duration),m!=null){let k={...r,...m,...o};return e(k),k}}return e(r),r};export{y as a,e as b};
|
|
2
|
+
//# sourceMappingURL=chunk-2LIUW5CF.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{a as c}from"./chunk-APCGI2A5.mjs";var p=t=>{o().setState(({account:e})=>{let s=e.address===t.address;e.accounts={[e.address]:s?t:c}},!1,{type:"setAccount",payload:{value:t}})},r=t=>o().setState(({account:e})=>{e.ledgerAccount=t},!1,{type:"setLedgerAccount",payload:{value:t}}),u=t=>o().setState(({account:e})=>{e.walletConnectAccount=t},!1,{type:"setWalletConnectAccount",payload:{value:t}}),l=t=>o().setState(({account:e})=>{e.websocketEvent={timestamp:Date.now(),message:t}},!1,{type:"setWebsocketEvent",payload:{value:t}}),d=t=>o().setState(({account:e})=>{e.websocketBatchEvent={timestamp:Date.now(),data:t}},!1,{type:"setWebsocketBatchEvent",payload:{value:t}}),y=t=>{o().setState(({account:e})=>{e.accounts[e.address].nonce=t},!1,{type:"setAccountNonce",payload:{value:t}})};export{p as a,r as b,u as c,l as d,d as e,y as f};
|
|
2
|
+
//# sourceMappingURL=chunk-2SYDJSIO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-A4KOSUVU.mjs";import{h as e}from"./chunk-2JKCBTYK.mjs";import i from"axios";async function u({url:o=e,baseURL:t}){let c=`${n(t)}/${o}`;try{let{data:r}=await i.get(c);return r}catch(r){return console.error("err fetching economics info",r),null}}export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3DZPVOPO.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-P3WDIKX5.mjs";import{a as s}from"./chunk-LJX4MW7B.mjs";import{a as e,b as o}from"./chunk-QLDZFO7M.mjs";import{WebviewProvider as d}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var a=class extends n{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async(r,i)=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(t){throw this.cancelAction(),t}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=d.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return s.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(o);return this.address&&this.setAccount({address:this.address}),r}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-3JRG3AWF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.ts"],
|
|
4
|
+
"sourcesContent": ["import { WebviewProvider } from '@multiversx/sdk-webview-provider/out/WebviewProvider';\nimport { safeWindow, version } from 'constants/window.constants';\nimport { Message, Transaction } from 'lib/sdkCore';\nimport { IDAppProviderAccount } from 'lib/sdkDappUtils';\nimport { SignTransactionsOptionsType } from 'providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider';\nimport {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { BaseProviderStrategy } from '../BaseProviderStrategy/BaseProviderStrategy';\n\ntype WebviewProviderProps = {\n address?: string;\n};\n\nexport class WebviewProviderStrategy extends BaseProviderStrategy {\n private readonly provider: WebviewProvider;\n\n constructor(config?: WebviewProviderProps) {\n super(config?.address);\n this.provider = WebviewProvider.getInstance({\n resetStateCallback: () => {\n /* \n Used in Hub to clear storage when logging out via the hub header.\n */\n safeWindow.localStorage?.clear?.();\n safeWindow.sessionStorage?.clear?.();\n }\n });\n\n this._login = this.provider.login.bind(this.provider);\n }\n\n async init(): Promise<boolean> {\n this.initializeAddress();\n return this.initializeProvider();\n }\n\n logout(): Promise<boolean> {\n return this.provider.logout();\n }\n\n getType(): ProviderType {\n return ProviderTypeEnum.webview;\n }\n\n getAddress(): Promise<string | undefined> {\n throw new Error('Method not implemented.');\n }\n\n setAccount(account: IDAppProviderAccount): void {\n return this.provider.setAccount(account);\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n private async initializeProvider() {\n const isInitialized = await this.provider.init(version);\n\n if (this.address) {\n this.setAccount({ address: this.address });\n }\n\n return isInitialized;\n }\n\n cancelAction = async () => {\n this.provider.cancelAction();\n };\n\n signTransactions = async (\n transactions: Transaction[],\n _options?: SignTransactionsOptionsType\n ) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n const signedTransactions =\n await this.provider.signTransactions(transactions);\n return signedTransactions || [];\n } catch (error) {\n this.cancelAction();\n throw error;\n }\n };\n\n signMessage = async (message: Message) => {\n if (!this.provider) {\n throw new Error(ProviderErrorsEnum.notInitialized);\n }\n\n try {\n const signedMessage = await this.provider.signMessage(message);\n return signedMessage;\n } catch (error) {\n this.cancelAction();\n throw error;\n }\n };\n}\n"],
|
|
5
|
+
"mappings": "kIAAA,OAAS,mBAAAA,MAAuB,uDAgBzB,IAAMC,EAAN,cAAsCC,CAAqB,CAGhE,YAAYC,EAA+B,CACzC,MAAMA,GAAQ,OAAO,EAiDvB,kBAAe,SAAY,CACzB,KAAK,SAAS,aAAa,CAC7B,EAEA,sBAAmB,MACjBC,EACAC,IACG,CACH,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,GAAI,CAGF,OADE,MAAM,KAAK,SAAS,iBAAiBD,CAAY,GACtB,CAAC,CAChC,OAASE,EAAO,CACd,WAAK,aAAa,EACZA,CACR,CACF,EAEA,iBAAc,MAAOC,GAAqB,CACxC,GAAI,CAAC,KAAK,SACR,MAAM,IAAI,oCAAuC,EAGnD,GAAI,CAEF,OADsB,MAAM,KAAK,SAAS,YAAYA,CAAO,CAE/D,OAASD,EAAO,CACd,WAAK,aAAa,EACZA,CACR,CACF,EAlFE,KAAK,SAAWE,EAAgB,YAAY,CAC1C,mBAAoB,IAAM,CAIxBC,EAAW,cAAc,QAAQ,EACjCA,EAAW,gBAAgB,QAAQ,CACrC,CACF,CAAC,EAED,KAAK,OAAS,KAAK,SAAS,MAAM,KAAK,KAAK,QAAQ,CACtD,CAEA,MAAM,MAAyB,CAC7B,YAAK,kBAAkB,EAChB,KAAK,mBAAmB,CACjC,CAEA,QAA2B,CACzB,OAAO,KAAK,SAAS,OAAO,CAC9B,CAEA,SAAwB,CACtB,OAAOC,EAAiB,OAC1B,CAEA,YAA0C,CACxC,MAAM,IAAI,MAAM,yBAAyB,CAC3C,CAEA,WAAWC,EAAqC,CAC9C,OAAO,KAAK,SAAS,WAAWA,CAAO,CACzC,CAEA,eAAyB,CACvB,OAAO,KAAK,SAAS,cAAc,CACrC,CAEA,MAAc,oBAAqB,CACjC,IAAMC,EAAgB,MAAM,KAAK,SAAS,KAAKC,CAAO,EAEtD,OAAI,KAAK,SACP,KAAK,WAAW,CAAE,QAAS,KAAK,OAAQ,CAAC,EAGpCD,CACT,CAqCF",
|
|
6
|
+
"names": ["WebviewProvider", "WebviewProviderStrategy", "BaseProviderStrategy", "config", "transactions", "_options", "error", "message", "WebviewProvider", "safeWindow", "ProviderTypeEnum", "account", "isInitialized", "version"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as U}from"./chunk-WGXHIBDE.mjs";import{a as B}from"./chunk-GBDHEWNQ.mjs";import{a as $}from"./chunk-43SX7DUF.mjs";import{a as _}from"./chunk-CB4IL76J.mjs";import{a as j}from"./chunk-7Z7IX367.mjs";import{a as z}from"./chunk-VCQBYNNS.mjs";import{a as V}from"./chunk-RBZC4PEU.mjs";import{a as R}from"./chunk-OMBZCVQZ.mjs";import{l as M}from"./chunk-YP65EQFP.mjs";import{a as w}from"./chunk-YGI3KXMZ.mjs";import{a as v}from"./chunk-2DUOXMZP.mjs";import{a as O}from"./chunk-RYIJWGFA.mjs";import{k as x}from"./chunk-QNYO7NI5.mjs";import{a as A}from"./chunk-YJCTRUJT.mjs";import{a as h,c as L,f}from"./chunk-PJWJZHIS.mjs";import{a as G}from"./chunk-2JKCBTYK.mjs";import{c as F}from"./chunk-PWAP64SN.mjs";import{a as C}from"./chunk-QLDZFO7M.mjs";import{BigNumber as St}from"bignumber.js";async function qt({allTransactions:u,currentScreenIndex:s,egldLabel:o,network:n,gasPriceData:T,price:S,address:m,username:q,shard:H,signedIndexes:e,parsedTransactionsByDataField:K}){let c=u[s],W=c?.transaction?.sender.toString(),p=c?.transaction,i=p?.toPlainObject(),D=null,y=null,t=await $({egldLabel:o,sender:W,apiAddress:n.apiAddress,address:m,parsedTransactionsByDataField:K})(c),d=!t?.transactionTokenInfo?.tokenId,{tokenId:g,nonce:l,amount:I=""}=t?.transactionTokenInfo??{},Z=g&&l&&l.length>0?`${g}-${l}`:g,J=await v({tokenId:Z}),{esdtPrice:Q,tokenDecimals:X,type:r,identifier:a,tokenImageUrl:Y}=J;if(r==="SemiFungibleESDT"||r==="NonFungibleESDT")y={type:r,identifier:a,amount:I,imageURL:Y};else{let E=({addCommas:Tt})=>f({input:d?p.value.toString():I,decimals:d?Number(n.decimals):X,digits:Number(n.digits),showLastNonZeroDecimal:!1,addCommas:Tt}),gt=E({addCommas:!0}),lt=E({addCommas:!1}),ft=Number(d?S:Q),ut=w({amount:lt,usd:ft,addEqualSign:!0});D={identifier:(a===x?o:a)??o,amount:gt,usdValue:ut}}let{feeLimitFormatted:tt,feeInFiatLimit:ot}=R({transaction:p,price:S}),nt=B({shard:H,initialGasPrice:T.initialGasPrice,transaction:i,gasStationMetadata:n.gasStationMetadata}),{gasPriceOption:N}=T,et=M().getType(),it=O(et),k=u.length,rt=e.length>0?e[e.length-1]+1:0,P=F(i?.data??""),b=V(t?.transactionTokenInfo),at=_({data:P,identifier:a,highlight:b}),st=U(),mt=A({to:`/${G}/${m}`,explorerAddress:st}),ct=k===1||t?.needsSigning&&!e.includes(s),pt=f({input:N.toString(),decimals:L,addCommas:!0,digits:h}),dt=new St(i.gasLimit).toFormat({decimalSeparator:".",groupSeparator:",",groupSize:3});return{commonData:{receiver:i.receiver.toString(),data:P,decodedData:at,gasPrice:pt,gasLimit:dt,explorerLink:mt,gasPriceOption:N,gasPriceOptions:nt,egldLabel:o,tokenType:j(r),feeLimit:tt,feeInFiatLimit:ot,transactionsCount:k,currentIndex:s,currentIndexToSign:rt,highlight:b,scCall:z(t?.transactionTokenInfo),needsSigning:ct,isEditable:t?.needsSigning,providerName:it,address:m,username:q,origin:C.location?.origin},tokenTransaction:D,fungibleTransaction:y}}export{qt as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3TM6K4Z4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-S5DCQEU2.mjs";import{a as l}from"./chunk-AIQMA75E.mjs";import{a as p}from"./chunk-OMT62YRR.mjs";import{a as I}from"./chunk-S5XV2COC.mjs";import{b as g}from"./chunk-Z7TITNCM.mjs";import{c as T}from"./chunk-PWAP64SN.mjs";var r={};function M({egldLabel:y,apiAddress:s,sender:t,address:e,parsedTransactionsByDataField:u}){return async o=>{if(o==null)return;let S=!t||t===e?null:await g({address:t,baseURL:s}),{transaction:a,multiTxData:A,transactionIndex:D}=o,c=T(a.data.toString()??""),d=p({data:c,multiTransactionData:A,parsedTransactionsByDataField:u}),{tokenId:f}=d,n=a.receiver.toBech32();if(t&&t!==e&&!l(S,e))throw console.error("You cannot sign transactions from a different account"),"You cannot sign transactions from a different account";let k=e!==n,x=n in r;if(n&&k&&!x){let i=await m({addressToVerify:n,baseURL:s});r={...r,...i?.scamInfo?{[n]:i.scamInfo}:{}}}let V=!!(f&&I({tokenId:f,egldLabel:y}));return{transaction:a,receiverScamInfo:r[n]?.info||null,transactionTokenInfo:d,isTokenTransaction:V,dataField:c,transactionIndex:D,needsSigning:o.needsSigning}}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-43SX7DUF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-NJN53MJV.mjs";import{a as r}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-NJN53MJV.mjs";import{a as r}from"./chunk-YSCND2MX.mjs";import{q as n}from"./chunk-XGALUTQ5.mjs";var l={},u={},p=(t,o)=>{n().setState(({toasts:s})=>{let a=s.customToasts.length>0?Math.max(...s.customToasts.map(m=>parseInt(m.toastId.split("-").pop()??"0"))):0,e=o??`custom-toast-${a+1}`,T=s.customToasts.findIndex(m=>m.toastId===e),i={...t,toastId:e};if(T!==-1){s.customToasts[T]=i;return}s.customToasts.push({...i,toastId:e})},!1,{type:"addCustomToast",payload:{value:{customToast:t,currentToastId:o}}})},C=t=>{n().setState(({toasts:o})=>{o.customToasts=o.customToasts.filter(s=>s.toastId!==t)},!1,{type:"removeCustomToast",payload:{value:t}})},f=()=>{n().setState(({toasts:t})=>{t.customToasts=[]},!1,{type:"removeAllCustomToasts",payload:{value:null}})},g=()=>{n().setState(({toasts:t})=>{t.transactionToasts=[]})},y=({toastId:t,totalDuration:o})=>{let s="";return n().setState(({toasts:a})=>{let e=a.transactionToasts.length>0?Math.max(...a.transactionToasts.map(T=>parseInt(T.toastId.split("-").pop()??"0"))):0;s=t??`transaction-toast-${e+1}`,a.transactionToasts.push({startTime:r(),endTime:c(o),toastId:s})},!1,"addTransactionToast"),s},v=t=>{n().setState(({toasts:o})=>{o.transactionToasts=o.transactionToasts.filter(s=>s.toastId!==t)},!1,"removeTransactionToast"),delete u[t],delete l[t]},h=t=>{let{toasts:o}=n().getState(),s=o.customToasts.length>0?Math.max(...o.customToasts.map(e=>parseInt(e.toastId.split("-").pop()??"0"))):0,a=t.toastId||`custom-toast-${s+1}`;return t.onClose&&(u[a]=t.onClose),t.instantiateToastElement?(l[a]=t.instantiateToastElement,n().setState(({toasts:e})=>{let T=e.customToasts.findIndex(m=>m.toastId===a),i={...t,instantiateToastElement:null,toastId:a};T!==-1?e.customToasts[T]=i:e.customToasts.push(i)},!1,"createCustomToast"),a):(p(t,a),a)};export{l as a,u as b,p as c,C as d,f as e,g as f,y as g,v as h,h as i};
|
|
2
|
+
//# sourceMappingURL=chunk-44AUEOAU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-764JPTJ7.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4CGAWZR6.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-VDDXFGB2.mjs";import{b as g}from"./chunk-5OMQOYP7.mjs";import{a as p}from"./chunk-WZ2DNB3R.mjs";import{a as f}from"./chunk-BHWSBAMZ.mjs";import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-VDDXFGB2.mjs";import{b as g}from"./chunk-5OMQOYP7.mjs";import{a as p}from"./chunk-WZ2DNB3R.mjs";import{a as f}from"./chunk-BHWSBAMZ.mjs";import{a as I}from"./chunk-ECDI66QL.mjs";import{a as c}from"./chunk-YJCTRUJT.mjs";import{a as T}from"./chunk-QNELH2S2.mjs";var P=({transaction:t,isPending:o=!1,address:e,explorerAddress:l,egldLabel:n})=>{let{receiver:r,receiverAssets:i}=p(t),s=e===r,v=g({transaction:t,currentUserAddress:e,egldLabel:n,isPending:o}),a=f({userIsReceiver:r===e,transaction:t,egldLabel:n}),m=t.originalTxHash??t.txHash;return{asset:I({...t,transactionAssets:a,showDefaultState:o,status:t.status}),interactor:s?t.sender:r,interactorAsset:s?t.senderAssets?.iconSvg??t.senderAssets?.iconPng:i?.iconSvg??i?.iconPng,directionLabel:s?"From":"To",action:v,amount:u({transactionAssets:a,isIncomingTransaction:s}),hash:m,status:t.status,timestamp:t.timestamp,link:c({explorerAddress:l,to:T.transactionDetails(m)})}};export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4O27AVB7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as I,d as p,e as d}from"./chunk-QNYO7NI5.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{b as m,d as u,e as f}from"./chunk-PJWJZHIS.mjs";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as I,d as p,e as d}from"./chunk-QNYO7NI5.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{b as m,d as u,e as f}from"./chunk-PJWJZHIS.mjs";import{d as o,e as c,f as t}from"./chunk-DA76AK4I.mjs";import _ from"bignumber.js";function M({from:l,to:G,minGasLimit:r=String(5e4),gasLimit:i,gasPrice:e,data:B,gasPerDataByte:L,gasPriceModifier:T,defaultGasPrice:P=String(1e9),chainId:n}){let a=B||"",A=u(i)?i:r,C=g({data:a})?5e4:0,D=new _(A).plus(C).toNumber(),F=f(e)?e:P,S=new o({nonce:BigInt(0),value:BigInt(0),receiver:new t(G),sender:new t(l),gasPrice:BigInt(F),gasLimit:BigInt(D),data:Buffer.from(a.trim()),chainID:n,version:1});try{return new c().computeTransactionFee(S,{gasPerDataByte:BigInt(L),minGasLimit:BigInt(r),gasPriceModifier:parseFloat(T),chainID:n}).toString(10)}catch(s){return console.error(s),m}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4QDQSEN7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as V}from"./chunk-FCIBGJDC.mjs";import{a as k}from"./chunk-LFMHK4UE.mjs";import{a as d}from"./chunk-3IYTFWEN.mjs";import{a as p,b as s,c,d as f}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as V}from"./chunk-FCIBGJDC.mjs";import{a as k}from"./chunk-LFMHK4UE.mjs";import{a as d}from"./chunk-3IYTFWEN.mjs";import{a as p,b as s,c,d as f}from"./chunk-JZQKOOZH.mjs";import{a as D}from"./chunk-RXRVBUAX.mjs";import{a as A}from"./chunk-Q7YFEWWK.mjs";import{a as r}from"./chunk-FKGDHZZJ.mjs";import{a as m}from"./chunk-O6VPG7AF.mjs";import{b as T}from"./chunk-UQU2VWPJ.mjs";import{c as n,f as i}from"./chunk-PJWJZHIS.mjs";import{a as u}from"./chunk-QNELH2S2.mjs";var b=({transaction:t,hideMultipleBadge:g})=>{if(t.action){if(s.includes(t.action.name))return r(t.value);if(c.includes(t.action.name))return A(t);if(p.includes(t.action.name))return D(t);if(f.includes(t.action.name))return V(t);let a=m(t);if(a.length){let e=a[0],I=Object.values(T).includes(e.type),l=!g&&a.length>1?k(a):"";if(I){let{badgeText:E,tokenFormattedAmount:o,tokenExplorerLink:_,tokenLinkText:y}=d({token:e});return{nftValueData:{badgeText:E,tokenFormattedAmount:o,tokenExplorerLink:_,tokenLinkText:y,transactionTokens:a,token:e,value:o!=null?e.value:null,decimals:o!=null?e.decimals:null,titleText:l}}}let x=e.value?i({input:e.value,decimals:e.decimals??n,digits:2,addCommas:!0}):null;return{tokenValueData:{tokenExplorerLink:u.tokenDetails(String(e.token)),showFormattedAmount:!1,tokenFormattedAmount:x,tokenLinkText:e.ticker,transactionTokens:a,token:e,value:e.value,decimals:e.decimals??n,titleText:l}}}}return r(t.value)};export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-573LAOYN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as r,c as n}from"./chunk-QJGFIK7H.mjs";import{l as g}from"./chunk-YP65EQFP.mjs";import{q as M}from"./chunk-XGALUTQ5.mjs";import{a as c}from"./chunk-FK6DWWZF.mjs";import{d as u,f as p,g as l}from"./chunk-DA76AK4I.mjs";import{a as d}from"./chunk-QLDZFO7M.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){d.addEventListener("message",this.handleMessage)}stopListening(){d.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case r.finalizeHandshakeRequest:this.handshake({event:e});break;case r.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case r.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case r.signTransactionsRequest:this.signTransactions({event:e});break;case n.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=c(this.store.getState()),o=g(),i=`${t}${a}`,y=new l({address:new p(t),data:new Uint8Array(Buffer.from(i))}),f=(await o.signMessage(y))?.signature??"";e.source?.postMessage({type:n.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&(await this.handleLoginCancelled(),e.source?.postMessage({type:n.cancelResponse,payload:null},{targetOrigin:e.origin}))}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:n.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=c(this.store.getState()),{message:t}=s;try{let o=new l({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(o))?.signature??"";e.source?.postMessage({type:n.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(i=>u.newFromPlainObject(i)),o=await s.signTransactions(t);e.source?.postMessage({type:n.signTransactionsResponse,payload:{data:o.map(i=>i.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5PENJRCS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-UXWVVWTD.mjs";import{d as l,e as m}from"./chunk-2SYDJSIO.mjs";import{b as a}from"./chunk-7VHTZYM2.mjs";import{q as r}from"./chunk-XGALUTQ5.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as S}from"socket.io-client";var w=3e3,A=3,g=500,E=500,f="batchUpdated",p="connect",N="connect_error",I="disconnect";async function M(i){let{apiAddress:b,websocketUrl:k}=a(r().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let c=null,s=null,o=e=>{t.status=e,u(e)},d=e=>{c&&clearTimeout(c),c=setTimeout(()=>{l(e)},E)},C=e=>{s&&clearTimeout(s),s=setTimeout(()=>{m(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(I),e.close(),console.log("Websocket disconnected.")),o("not_initialized"),t.instance=null,c&&clearTimeout(c),s&&clearTimeout(s)},y=async()=>{o("pending");let e="";try{e=k??await T(b)}catch(n){throw console.error("Failed to get websocket url:",n),o("not_initialized"),n}if(!e){o("not_initialized");return}t.instance=S(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:A,reconnectionDelay:g,timeout:w,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),o("completed")}),t.instance.on(N,n=>{console.warn("Websocket connect error: ",n.message)}),t.instance.on(I,n=>{console.warn("Websocket disconnected: ",n),o("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await y(),{closeConnection:W}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6CMARMS2.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-YUFPUG5O.mjs";import{a}from"./chunk-LY5VXESF.mjs";import{a as c}from"./chunk-DJUPAQRK.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await a({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=l(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6DAQAOWP.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-NGM3AVCY.mjs";import{s as u}from"./chunk-XGALUTQ5.mjs";import{e as s}from"./chunk-FK6DWWZF.mjs";function x(n){let e=u(),o=a(e),c=s(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t,n.nonce,c)}export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6TJZZHFV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-LSAYT6GA.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-764JPTJ7.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as z}from"./chunk-OLXCFQVN.mjs";import{a as H}from"./chunk-LZQXEMRC.mjs";import{a as h}from"./chunk-M3G5E4TL.mjs";import{a as j}from"./chunk-3DZPVOPO.mjs";import{a as O}from"./chunk-3TM6K4Z4.mjs";import{a as K}from"./chunk-OMBZCVQZ.mjs";import{a as W}from"./chunk-USAIPG7X.mjs";import{a as X}from"./chunk-BKQQK7WP.mjs";import{a as C}from"./chunk-EET35YZW.mjs";import{d as R}from"./chunk-V5ZSFCKJ.mjs";import{a as B}from"./chunk-NJUTBWG5.mjs";import{e as k}from"./chunk-QNYO7NI5.mjs";import{b as _}from"./chunk-7VHTZYM2.mjs";import{s as E}from"./chunk-XGALUTQ5.mjs";import{a as F,c as U,f as x}from"./chunk-PJWJZHIS.mjs";import{d as y}from"./chunk-DA76AK4I.mjs";async function On({transactions:$=[],handleSign:G,guardTransactions:L=W,options:q}){let{address:N,shard:D,username:M}=B(),u=_(E()),J=R(E()),v=H(),{allTransactions:o,parsedTransactionsByDataField:A}=X($),l=[];if(J?.isSigningUiEnabled===!1){C(!0);try{let d=[];for(let c of o){let p=await G([c.transaction]);p&&p.length>0&&d.push(p[0])}return await L(d)}finally{C(!1)}}let n=z.getInstance();if(await n.openUI(),!n)throw new Error("Unable to establish connection with sign screens");let Q=async()=>{await h(),n.closeUI()};return n.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",Q),new Promise(async(d,f)=>{let c=[],p=await j({baseURL:u.apiAddress});n.notifyDataUpdate(),n.initializeGasPriceMap(o.map(a=>a.transaction));let S=p?.price,t=0,P=async()=>{let r=o[t]?.transaction,m=Number(r.nonce);try{n.updateIsLoading(!0);let{commonData:e,tokenTransaction:s,fungibleTransaction:i}=await O({allTransactions:o,currentScreenIndex:t,egldLabel:v,network:u,gasPriceData:n.getGasPriceOptionMap[m],price:S,address:N,username:M,shard:D,signedIndexes:l,parsedTransactionsByDataField:A});s&&n.updateTokenTransaction(s),i&&n.updateNonFungibleTransaction(i.type,i),n.updateCommonData(e)}catch(e){throw console.error(`Error fetching common data for transaction at index ${t}:`,e),e}finally{n.updateIsLoading(!1)}},V=()=>{t>0&&(t--,P())},Y=(a=1e9)=>{let m=o[t].transaction,e=Number(m.nonce);n.updateGasPriceMap({nonce:e,gasPriceOption:a});let s=m.toPlainObject(),i=y.newFromPlainObject({...s,gasPrice:a}),g=K({transaction:i,price:S}),I=x({input:a.toString(),decimals:U,addCommas:!0,digits:F});n.updateCommonData({feeLimit:g.feeLimitFormatted,feeInFiatLimit:g.feeInFiatLimit,gasPrice:I,gasPriceOption:a})},Z=async()=>{f(new Error("Transaction signing cancelled by user")),await h(),n.closeUI()},w=()=>{t<n.transactionsCount-1&&(t++,P())},nn=async()=>{let r=o[t].transaction,m=Number(r.nonce),{commonData:e}=await O({allTransactions:o,currentScreenIndex:t,egldLabel:v,network:u,gasPriceData:n.getGasPriceOptionMap[m],price:S,address:N,username:M,shard:D,signedIndexes:l,parsedTransactionsByDataField:A});if(!e.needsSigning)return l.push(t),w();let s=r.toPlainObject(),i=s.nonce,{gasPriceOption:g}=n.getGasPriceOptionMap[i],I=y.newFromPlainObject({...s,gasPrice:g});try{let T=await G([I]);T&&(l.push(t),c.push(T[0]));let on=t===o.length-1,en=o.filter(b=>b.needsSigning),rn=c.length===en.length;if(on&&rn){let b=await q?.callback?.(c)||c,sn=await L(b);return n.closeUI(),d(sn)}w()}catch(T){n.closeUI(),f(T)}},tn=new Map([["NEXT_SIGN_TRANSACTIONS",w],["CONFIRM_SIGN_TRANSACTIONS",nn],["CLOSE_SIGN_TRANSACTIONS",Z],["BACK_SIGN_TRANSACTIONS",V],["SET_GAS_PRICE_OPTION_SIGN_TRANSACTIONS",Y]]);function an(){for(let[a,r]of tn)n.subscribeToEventBus(a,r)}n.clearEventHandlers(["NEXT_SIGN_TRANSACTIONS","CONFIRM_SIGN_TRANSACTIONS","CLOSE_SIGN_TRANSACTIONS","BACK_SIGN_TRANSACTIONS","SET_GAS_PRICE_OPTION_SIGN_TRANSACTIONS"]),an(),await P()})}export{On as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7DNJ6NZI.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/helpers/signTransactions/signTransactions.ts"],
|
|
4
|
+
"sourcesContent": ["import { getEconomics } from 'apiCalls/economics/getEconomics';\nimport { GAS_PRICE } from 'constants/mvx.constants';\nimport { Transaction } from 'lib/sdkCore';\nimport { DECIMALS, DIGITS, formatAmount } from 'lib/sdkDappUtils';\nimport { SignTransactionsStateManager } from 'managers/internal/SignTransactionsStateManager/SignTransactionsStateManager';\nimport { SignEventsEnum } from 'managers/internal/SignTransactionsStateManager/types';\nimport { getAccount } from 'methods/account/getAccount';\nimport { getEgldLabel } from 'methods/network/getEgldLabel';\nimport { SignTransactionsOptionsType } from 'providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider';\nimport { cancelCrossWindowAction } from 'providers/helpers/cancelCrossWindowAction';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { setIsSidePanelOpen } from 'store/actions/ui/uiActions';\nimport { providerSettingsSelector } from 'store/selectors/configSelectors';\nimport { networkSelector } from 'store/selectors/networkSelectors';\nimport { getState } from 'store/store';\nimport { getCommonData } from './helpers/getCommonData/getCommonData';\nimport { getFeeData } from './helpers/getFeeData';\nimport { getMultiEsdtTransferData } from './helpers/getMultiEsdtTransferData/getMultiEsdtTransferData';\nimport { guardTransactions as getGuardedTransactions } from './helpers/guardTransactions/guardTransactions';\n\ntype SignTransactionsParamsType = {\n transactions?: Transaction[];\n handleSign: IProvider['signTransactions'];\n guardTransactions?: typeof getGuardedTransactions;\n options?: SignTransactionsOptionsType;\n};\n\nexport async function signTransactions({\n transactions = [],\n handleSign,\n guardTransactions = getGuardedTransactions,\n options\n}: SignTransactionsParamsType): Promise<Transaction[]> {\n const { address, shard, username } = getAccount();\n const network = networkSelector(getState());\n const providerConfig = providerSettingsSelector(getState());\n\n const egldLabel = getEgldLabel();\n\n const { allTransactions, parsedTransactionsByDataField } =\n getMultiEsdtTransferData(transactions);\n\n const signedIndexes: number[] = [];\n\n if (providerConfig?.isSigningUiEnabled === false) {\n // Mark signing as in progress so idle state manager doesn't interfere\n setIsSidePanelOpen(true);\n\n try {\n const signedTransactions: Transaction[] = [];\n\n for (const item of allTransactions) {\n const signedTxs = await handleSign([item.transaction]);\n if (signedTxs && signedTxs.length > 0) {\n signedTransactions.push(signedTxs[0]);\n }\n }\n\n const optionallyGuardedTransactions =\n await guardTransactions(signedTransactions);\n\n return optionallyGuardedTransactions;\n } finally {\n setIsSidePanelOpen(false);\n }\n }\n\n const manager = SignTransactionsStateManager.getInstance();\n await manager.openUI();\n\n if (!manager) {\n throw new Error('Unable to establish connection with sign screens');\n }\n\n const handleCancel = async () => {\n await cancelCrossWindowAction();\n manager.closeUI();\n };\n\n manager.subscribeToEventBus(SignEventsEnum.CLOSE, handleCancel);\n\n return new Promise<Transaction[]>(async (resolve, reject) => {\n const signedTransactions: Transaction[] = [];\n const economics = await getEconomics({ baseURL: network.apiAddress });\n\n manager.notifyDataUpdate();\n\n manager.initializeGasPriceMap(allTransactions.map((tx) => tx.transaction));\n const price = economics?.price;\n\n let currentScreenIndex = 0;\n\n const updateScreen = async () => {\n const currentTransaction = allTransactions[currentScreenIndex];\n const transaction = currentTransaction?.transaction;\n\n const currentNonce = Number(transaction.nonce);\n\n try {\n manager.updateIsLoading(true);\n\n const { commonData, tokenTransaction, fungibleTransaction } =\n await getCommonData({\n allTransactions,\n currentScreenIndex,\n egldLabel,\n network,\n gasPriceData: manager.getGasPriceOptionMap[currentNonce],\n price,\n address,\n username,\n shard,\n signedIndexes,\n parsedTransactionsByDataField\n });\n\n if (tokenTransaction) {\n manager.updateTokenTransaction(tokenTransaction);\n }\n\n if (fungibleTransaction) {\n manager.updateNonFungibleTransaction(\n fungibleTransaction.type,\n fungibleTransaction\n );\n }\n\n manager.updateCommonData(commonData);\n } catch (error) {\n console.error(\n `Error fetching common data for transaction at index ${currentScreenIndex}:`,\n error\n );\n\n throw error;\n } finally {\n manager.updateIsLoading(false);\n }\n };\n\n const onBack = () => {\n if (currentScreenIndex > 0) {\n currentScreenIndex--;\n updateScreen();\n }\n };\n\n const onSetGasPriceOption = (gasPriceOption: number = GAS_PRICE) => {\n const currentTransaction = allTransactions[currentScreenIndex];\n const transaction = currentTransaction.transaction;\n const currentNonce = Number(transaction.nonce);\n\n manager.updateGasPriceMap({\n nonce: currentNonce,\n gasPriceOption\n });\n\n const plainTransaction = transaction.toPlainObject();\n\n const newTransaction = Transaction.newFromPlainObject({\n ...plainTransaction,\n gasPrice: gasPriceOption\n });\n\n const feeData = getFeeData({\n transaction: newTransaction,\n price\n });\n\n const formattedGasPrice = formatAmount({\n input: gasPriceOption.toString(),\n decimals: DECIMALS,\n addCommas: true,\n digits: DIGITS\n });\n\n manager.updateCommonData({\n feeLimit: feeData.feeLimitFormatted,\n feeInFiatLimit: feeData.feeInFiatLimit,\n gasPrice: formattedGasPrice,\n gasPriceOption\n });\n };\n\n const onCancel = async () => {\n reject(new Error('Transaction signing cancelled by user'));\n await cancelCrossWindowAction();\n manager.closeUI();\n };\n\n const onNext = () => {\n if (currentScreenIndex < manager.transactionsCount - 1) {\n currentScreenIndex++;\n updateScreen();\n }\n };\n\n const onSign = async () => {\n const currentTransaction = allTransactions[currentScreenIndex];\n const transaction = currentTransaction.transaction;\n const currentNonce = Number(transaction.nonce);\n\n const { commonData } = await getCommonData({\n allTransactions,\n currentScreenIndex,\n egldLabel,\n network,\n gasPriceData: manager.getGasPriceOptionMap[currentNonce],\n price,\n address,\n username,\n shard,\n signedIndexes,\n parsedTransactionsByDataField\n });\n\n if (!commonData.needsSigning) {\n signedIndexes.push(currentScreenIndex);\n return onNext();\n }\n\n const plainTransaction = transaction.toPlainObject();\n const txNonce = plainTransaction.nonce;\n\n const { gasPriceOption } = manager.getGasPriceOptionMap[txNonce];\n\n const transactionToSign = Transaction.newFromPlainObject({\n ...plainTransaction,\n gasPrice: gasPriceOption\n });\n\n try {\n const signedTxs = await handleSign([transactionToSign]);\n if (signedTxs) {\n signedIndexes.push(currentScreenIndex);\n signedTransactions.push(signedTxs[0]);\n }\n\n const isLastScreen = currentScreenIndex === allTransactions.length - 1;\n const allSignableTransactions = allTransactions.filter(\n (tx) => tx.needsSigning\n );\n\n const areAllTransactionsSigned =\n signedTransactions.length === allSignableTransactions.length;\n\n if (isLastScreen && areAllTransactionsSigned) {\n const finalizedTransactions =\n (await options?.callback?.(signedTransactions)) ||\n signedTransactions;\n\n const optionallyGuardedTransactions = await guardTransactions(\n finalizedTransactions\n );\n manager.closeUI();\n return resolve(optionallyGuardedTransactions);\n }\n\n onNext();\n } catch (error) {\n manager.closeUI();\n reject(error);\n }\n };\n\n const eventHandlersMap = new Map([\n [SignEventsEnum.NEXT, onNext],\n [SignEventsEnum.CONFIRM, onSign],\n [SignEventsEnum.CLOSE, onCancel],\n [SignEventsEnum.BACK, onBack],\n [SignEventsEnum.SET_GAS_PRICE_OPTION, onSetGasPriceOption]\n ]);\n\n function setupEventListeners() {\n for (const [event, handler] of eventHandlersMap) {\n manager.subscribeToEventBus(event, handler);\n }\n }\n\n manager.clearEventHandlers([\n SignEventsEnum.NEXT,\n SignEventsEnum.CONFIRM,\n SignEventsEnum.CLOSE,\n SignEventsEnum.BACK,\n SignEventsEnum.SET_GAS_PRICE_OPTION\n ]);\n\n setupEventListeners();\n await updateScreen();\n });\n}\n"],
|
|
5
|
+
"mappings": "8pBA2BA,eAAsBA,GAAiB,CACrC,aAAAC,EAAe,CAAC,EAChB,WAAAC,EACA,kBAAAC,EAAoBA,EACpB,QAAAC,CACF,EAAuD,CACrD,GAAM,CAAE,QAAAC,EAAS,MAAAC,EAAO,SAAAC,CAAS,EAAIC,EAAW,EAC1CC,EAAUC,EAAgBC,EAAS,CAAC,EACpCC,EAAiBC,EAAyBF,EAAS,CAAC,EAEpDG,EAAYC,EAAa,EAEzB,CAAE,gBAAAC,EAAiB,8BAAAC,CAA8B,EACrDC,EAAyBjB,CAAY,EAEjCkB,EAA0B,CAAC,EAEjC,GAAIP,GAAgB,qBAAuB,GAAO,CAEhDQ,EAAmB,EAAI,EAEvB,GAAI,CACF,IAAMC,EAAoC,CAAC,EAE3C,QAAWC,KAAQN,EAAiB,CAClC,IAAMO,EAAY,MAAMrB,EAAW,CAACoB,EAAK,WAAW,CAAC,EACjDC,GAAaA,EAAU,OAAS,GAClCF,EAAmB,KAAKE,EAAU,CAAC,CAAC,CAExC,CAKA,OAFE,MAAMpB,EAAkBkB,CAAkB,CAG9C,QAAE,CACAD,EAAmB,EAAK,CAC1B,CACF,CAEA,IAAMI,EAAUC,EAA6B,YAAY,EAGzD,GAFA,MAAMD,EAAQ,OAAO,EAEjB,CAACA,EACH,MAAM,IAAI,MAAM,kDAAkD,EAGpE,IAAME,EAAe,SAAY,CAC/B,MAAMC,EAAwB,EAC9BH,EAAQ,QAAQ,CAClB,EAEA,OAAAA,EAAQ,8CAA0CE,CAAY,EAEvD,IAAI,QAAuB,MAAOE,EAASC,IAAW,CAC3D,IAAMR,EAAoC,CAAC,EACrCS,EAAY,MAAMC,EAAa,CAAE,QAAStB,EAAQ,UAAW,CAAC,EAEpEe,EAAQ,iBAAiB,EAEzBA,EAAQ,sBAAsBR,EAAgB,IAAKgB,GAAOA,EAAG,WAAW,CAAC,EACzE,IAAMC,EAAQH,GAAW,MAErBI,EAAqB,EAEnBC,EAAe,SAAY,CAE/B,IAAMC,EADqBpB,EAAgBkB,CAAkB,GACrB,YAElCG,EAAe,OAAOD,EAAY,KAAK,EAE7C,GAAI,CACFZ,EAAQ,gBAAgB,EAAI,EAE5B,GAAM,CAAE,WAAAc,EAAY,iBAAAC,EAAkB,oBAAAC,CAAoB,EACxD,MAAMC,EAAc,CAClB,gBAAAzB,EACA,mBAAAkB,EACA,UAAApB,EACA,QAAAL,EACA,aAAce,EAAQ,qBAAqBa,CAAY,EACvD,MAAAJ,EACA,QAAA5B,EACA,SAAAE,EACA,MAAAD,EACA,cAAAa,EACA,8BAAAF,CACF,CAAC,EAECsB,GACFf,EAAQ,uBAAuBe,CAAgB,EAG7CC,GACFhB,EAAQ,6BACNgB,EAAoB,KACpBA,CACF,EAGFhB,EAAQ,iBAAiBc,CAAU,CACrC,OAASI,EAAO,CACd,cAAQ,MACN,uDAAuDR,CAAkB,IACzEQ,CACF,EAEMA,CACR,QAAE,CACAlB,EAAQ,gBAAgB,EAAK,CAC/B,CACF,EAEMmB,EAAS,IAAM,CACfT,EAAqB,IACvBA,IACAC,EAAa,EAEjB,EAEMS,EAAsB,CAACC,EAAyB,MAAc,CAElE,IAAMT,EADqBpB,EAAgBkB,CAAkB,EACtB,YACjCG,EAAe,OAAOD,EAAY,KAAK,EAE7CZ,EAAQ,kBAAkB,CACxB,MAAOa,EACP,eAAAQ,CACF,CAAC,EAED,IAAMC,EAAmBV,EAAY,cAAc,EAE7CW,EAAiBC,EAAY,mBAAmB,CACpD,GAAGF,EACH,SAAUD,CACZ,CAAC,EAEKI,EAAUC,EAAW,CACzB,YAAaH,EACb,MAAAd,CACF,CAAC,EAEKkB,EAAoBC,EAAa,CACrC,MAAOP,EAAe,SAAS,EAC/B,SAAUQ,EACV,UAAW,GACX,OAAQC,CACV,CAAC,EAED9B,EAAQ,iBAAiB,CACvB,SAAUyB,EAAQ,kBAClB,eAAgBA,EAAQ,eACxB,SAAUE,EACV,eAAAN,CACF,CAAC,CACH,EAEMU,EAAW,SAAY,CAC3B1B,EAAO,IAAI,MAAM,uCAAuC,CAAC,EACzD,MAAMF,EAAwB,EAC9BH,EAAQ,QAAQ,CAClB,EAEMgC,EAAS,IAAM,CACftB,EAAqBV,EAAQ,kBAAoB,IACnDU,IACAC,EAAa,EAEjB,EAEMsB,GAAS,SAAY,CAEzB,IAAMrB,EADqBpB,EAAgBkB,CAAkB,EACtB,YACjCG,EAAe,OAAOD,EAAY,KAAK,EAEvC,CAAE,WAAAE,CAAW,EAAI,MAAMG,EAAc,CACzC,gBAAAzB,EACA,mBAAAkB,EACA,UAAApB,EACA,QAAAL,EACA,aAAce,EAAQ,qBAAqBa,CAAY,EACvD,MAAAJ,EACA,QAAA5B,EACA,SAAAE,EACA,MAAAD,EACA,cAAAa,EACA,8BAAAF,CACF,CAAC,EAED,GAAI,CAACqB,EAAW,aACd,OAAAnB,EAAc,KAAKe,CAAkB,EAC9BsB,EAAO,EAGhB,IAAMV,EAAmBV,EAAY,cAAc,EAC7CsB,EAAUZ,EAAiB,MAE3B,CAAE,eAAAD,CAAe,EAAIrB,EAAQ,qBAAqBkC,CAAO,EAEzDC,EAAoBX,EAAY,mBAAmB,CACvD,GAAGF,EACH,SAAUD,CACZ,CAAC,EAED,GAAI,CACF,IAAMtB,EAAY,MAAMrB,EAAW,CAACyD,CAAiB,CAAC,EAClDpC,IACFJ,EAAc,KAAKe,CAAkB,EACrCb,EAAmB,KAAKE,EAAU,CAAC,CAAC,GAGtC,IAAMqC,GAAe1B,IAAuBlB,EAAgB,OAAS,EAC/D6C,GAA0B7C,EAAgB,OAC7CgB,GAAOA,EAAG,YACb,EAEM8B,GACJzC,EAAmB,SAAWwC,GAAwB,OAExD,GAAID,IAAgBE,GAA0B,CAC5C,IAAMC,EACH,MAAM3D,GAAS,WAAWiB,CAAkB,GAC7CA,EAEI2C,GAAgC,MAAM7D,EAC1C4D,CACF,EACA,OAAAvC,EAAQ,QAAQ,EACTI,EAAQoC,EAA6B,CAC9C,CAEAR,EAAO,CACT,OAASd,EAAO,CACdlB,EAAQ,QAAQ,EAChBK,EAAOa,CAAK,CACd,CACF,EAEMuB,GAAmB,IAAI,IAAI,CAC/B,0BAAsBT,CAAM,EAC5B,6BAAyBC,EAAM,EAC/B,2BAAuBF,CAAQ,EAC/B,0BAAsBZ,CAAM,EAC5B,0CAAsCC,CAAmB,CAC3D,CAAC,EAED,SAASsB,IAAsB,CAC7B,OAAW,CAACC,EAAOC,CAAO,IAAKH,GAC7BzC,EAAQ,oBAAoB2C,EAAOC,CAAO,CAE9C,CAEA5C,EAAQ,mBAAmB,iJAM3B,CAAC,EAED0C,GAAoB,EACpB,MAAM/B,EAAa,CACrB,CAAC,CACH",
|
|
6
|
+
"names": ["signTransactions", "transactions", "handleSign", "guardTransactions", "options", "address", "shard", "username", "getAccount", "network", "networkSelector", "getState", "providerConfig", "providerSettingsSelector", "egldLabel", "getEgldLabel", "allTransactions", "parsedTransactionsByDataField", "getMultiEsdtTransferData", "signedIndexes", "setIsSidePanelOpen", "signedTransactions", "item", "signedTxs", "manager", "SignTransactionsStateManager", "handleCancel", "cancelCrossWindowAction", "resolve", "reject", "economics", "getEconomics", "tx", "price", "currentScreenIndex", "updateScreen", "transaction", "currentNonce", "commonData", "tokenTransaction", "fungibleTransaction", "getCommonData", "error", "onBack", "onSetGasPriceOption", "gasPriceOption", "plainTransaction", "newTransaction", "Transaction", "feeData", "getFeeData", "formattedGasPrice", "formatAmount", "DECIMALS", "DIGITS", "onCancel", "onNext", "onSign", "txNonce", "transactionToSign", "isLastScreen", "allSignableTransactions", "areAllTransactionsSigned", "finalizedTransactions", "optionallyGuardedTransactions", "eventHandlersMap", "setupEventListeners", "event", "handler"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as r}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-XGALUTQ5.mjs";var d=s=>{let o=r(e()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-A4KOSUVU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e}from"./chunk-M6MN4RXG.mjs";import{h as o}from"./chunk-7VHTZYM2.mjs";import{s as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e}from"./chunk-M6MN4RXG.mjs";import{h as o}from"./chunk-7VHTZYM2.mjs";import{s as t}from"./chunk-XGALUTQ5.mjs";function m(){let r=o(t());return r?Math.max(1e3,r/2):9e4}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AIKIPJUG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as s}from"./chunk-QNYO7NI5.mjs";import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{l as s}from"./chunk-QNYO7NI5.mjs";import{a as o}from"./chunk-OQURAWR4.mjs";import{a}from"./chunk-CKTFPRJS.mjs";var p=(r,i)=>{if(!r||!r.address)return!0;let e=a()?.origin?.endsWith(s),n=o(r.address);return e||n?!0:Array.isArray(i)?i.some(t=>r.address===t||r.activeGuardianAddress===t):r.address===i||r.activeGuardianAddress===i};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AIQMA75E.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-A4KOSUVU.mjs";import{v as e}from"./chunk-2JKCBTYK.mjs";import n from"axios";async function p(r,s){let a=`${o(s)}/${e}/${r}`;try{let{data:t}=await n.get(a);return t?{[r]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",a,t),null}}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AOF7QPPF.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-YXWMQGAB.mjs";import{c as n}from"./chunk-CT5LMMAW.mjs";import{a}from"./chunk-XVZUH5QS.mjs";import{a as u}from"./chunk-DCF6BLSL.mjs";import{a as s}from"./chunk-QLDZFO7M.mjs";var g=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&g(r,s.localStorage);try{return u(),n.forEach(c=>c()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AVEWWANG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as i}from"./chunk-7VHTZYM2.mjs";import{s as e}from"./chunk-XGALUTQ5.mjs";import{a as o}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=i(e());return{origin:t?.origin||o().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AXZ3DHTB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-QLDZFO7M.mjs";var t=()=>{if(!e)return"";try{let r=e.document?.referrer;return r?new URL(r).origin:""}catch(r){return console.error(r),""}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-B77BJX6Z.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-TDRQ3OLY.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BB7POIGL.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a}from"./chunk-OCQY6NUJ.mjs";function e(t){let{allTransactions:n,parsedTransactionsByDataField:r}=a({transactions:t});return{parsedTransactionsByDataField:r,allTransactions:n}}export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BKQQK7WP.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.ts"],
|
|
4
|
+
"sourcesContent": ["import { Transaction } from 'lib/sdkCore';\nimport {\n MultiSignTransactionType,\n TransactionDataTokenType\n} from 'types/transactions.types';\nimport { parseMultiEsdtTransferDataForMultipleTransactions } from './helpers/parseMultiEsdtTransferDataForMultipleTransactions';\n\nexport type MultiEsdtTransferDataReturnType = ReturnType<\n typeof getMultiEsdtTransferData\n>;\n\nexport function getMultiEsdtTransferData(transactions?: Transaction[]): {\n parsedTransactionsByDataField: Record<string, TransactionDataTokenType>;\n allTransactions: MultiSignTransactionType[];\n} {\n const { allTransactions, parsedTransactionsByDataField } =\n parseMultiEsdtTransferDataForMultipleTransactions({ transactions });\n\n return {\n parsedTransactionsByDataField,\n allTransactions\n };\n}\n"],
|
|
5
|
+
"mappings": "oCAWO,SAASA,EAAyBC,EAGvC,CACA,GAAM,CAAE,gBAAAC,EAAiB,8BAAAC,CAA8B,EACrDC,EAAkD,CAAE,aAAAH,CAAa,CAAC,EAEpE,MAAO,CACL,8BAAAE,EACA,gBAAAD,CACF,CACF",
|
|
6
|
+
"names": ["getMultiEsdtTransferData", "transactions", "allTransactions", "parsedTransactionsByDataField", "parseMultiEsdtTransferDataForMultipleTransactions"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as A}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as A}from"./chunk-W25UUI6O.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-TWYGNEQS.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{g as S}from"./chunk-44AUEOAU.mjs";import{a as h}from"./chunk-LABBTN37.mjs";import{a as y}from"./chunk-NJUTBWG5.mjs";import{h as f}from"./chunk-M6MN4RXG.mjs";import{b as l}from"./chunk-7VHTZYM2.mjs";import{a as g}from"./chunk-NI7XCWV5.mjs";import{s as m}from"./chunk-XGALUTQ5.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=b(s),n=h({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=l(m());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=y(),{apiAddress:s,apiTimeout:o}=l(m());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return g({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${f}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BPOXONMJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as t}from"./chunk-XGALUTQ5.mjs";var r=({key:e,value:a})=>{t().setState(({cache:c})=>{c[e]=a},!1,{type:"saveToCache",payload:{value:a}})},s=e=>{t().setState(({cache:a})=>{delete a[e]},!1,{type:"removeFromCache",payload:{value:e}})},h=()=>{t().setState(({cache:e})=>{Object.keys(e).forEach(a=>{delete e[a]})},!1,"clearCache")};export{r as a,s as b,h as c};
|
|
2
|
+
//# sourceMappingURL=chunk-C65TZQBZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-OVZEW7XD.mjs";import{h as o}from"./chunk-DRPJ3IFU.mjs";var D=({data:r,highlight:a,identifier:i})=>{let e={};return Object.values(o).forEach(t=>{let c=d({data:r,identifier:i,decodeMethod:t,highlight:a});e[t]=c}),e};export{D as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CB4IL76J.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-OE4JXDVW.mjs";import{c as o}from"./chunk-OQURAWR4.mjs";var u=(r,s=1)=>r?.length?r.reduce((e,{receiver:a,data:i})=>{let n=o({receiver:a,data:i??""});return n==null?e:e&&t({receiverAddress:n,senderShard:s})},!0):!0;export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CCD7PUHB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as f}from"./chunk-BSA3IGL6.mjs";import{a as l}from"./chunk-GWZUTQLT.mjs";import{a as g}from"./chunk-OBIQ63DJ.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var N=h=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=l(h),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:m,timestamp:c}=n,p=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${m}.${r}.${p}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:f}};export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-CE4N3GKT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{i as g}from"./chunk-44AUEOAU.mjs";import{a as i,b as a,g as c}from"./chunk-M6MN4RXG.mjs";var s={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${a}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${i}-${Date.now()}`}},m={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},E=n=>{for(let[r,e]of Object.entries(m))if(n.includes(r))return e;return"Error when signing"};function O(n,r="error"){let e=n?.message,o=E(e),t=o!=="Error when signing"?"warning":r,l=Object.keys(s).includes(t)?s[t]:s.error,{toastId:T,iconClassName:d,title:u}=l;return g({toastId:T,duration:1e4,icon:"close",iconClassName:d,message:o,title:u}),o}export{O as a};
|
|
2
|
+
//# sourceMappingURL=chunk-COPAYHAQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-QLDZFO7M.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map,n=3e3;export{r as a,i as b,p as c,n as d};
|
|
2
|
+
//# sourceMappingURL=chunk-CT5LMMAW.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{AddressComputer as e}from"@multiversx/sdk-core/out/core/address";import{TransactionVersion as s,TransactionOptions as a}from"@multiversx/sdk-core/out/core/networkParams";import{Transaction as p}from"@multiversx/sdk-core/out/core/transaction";import{TransactionComputer as i}from"@multiversx/sdk-core/out/core/transactionComputer";import{Address as f}from"@multiversx/sdk-core/out/core/address";import{Message as d,MessageComputer as u}from"@multiversx/sdk-core/out/core/message";export{e as a,s as b,a as c,p as d,i as e,f,d as g,u as h};
|
|
2
|
+
//# sourceMappingURL=chunk-DA76AK4I.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/lib/sdkCore.ts"],
|
|
4
|
+
"sourcesContent": ["export type { IPlainTransactionObject } from '@multiversx/sdk-core/out/core/interfaces';\nexport { AddressComputer } from '@multiversx/sdk-core/out/core/address';\nexport {\n TransactionVersion,\n TransactionOptions\n} from '@multiversx/sdk-core/out/core/networkParams';\nexport { Transaction } from '@multiversx/sdk-core/out/core/transaction';\nexport { TransactionComputer } from '@multiversx/sdk-core/out/core/transactionComputer';\n\nexport { Address } from '@multiversx/sdk-core/out/core/address';\nexport {\n Message,\n MessageComputer\n} from '@multiversx/sdk-core/out/core/message';\n"],
|
|
5
|
+
"mappings": "AACA,OAAS,mBAAAA,MAAuB,wCAChC,OACE,sBAAAC,EACA,sBAAAC,MACK,8CACP,OAAS,eAAAC,MAAmB,4CAC5B,OAAS,uBAAAC,MAA2B,oDAEpC,OAAS,WAAAC,MAAe,wCACxB,OACE,WAAAC,EACA,mBAAAC,MACK",
|
|
6
|
+
"names": ["AddressComputer", "TransactionVersion", "TransactionOptions", "Transaction", "TransactionComputer", "Address", "Message", "MessageComputer"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as n,q as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{j as n,q as o}from"./chunk-XGALUTQ5.mjs";import{f as p}from"./chunk-DA76AK4I.mjs";var s=()=>o().setState(n),l=({address:e,providerType:t})=>{o().setState(({account:r,loginInfo:i})=>{r.address=e,r.publicKey=new p(e).toHex(),i&&(i.providerType=t)},!1,{type:"loginAction",payload:{value:{address:e,providerType:t}}})};export{s as a,l as b};
|
|
2
|
+
//# sourceMappingURL=chunk-DCF6BLSL.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-54B3EIZC.mjs";import{a as T}from"./chunk-QJ7MRSGB.mjs";import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-54B3EIZC.mjs";import{a as T}from"./chunk-QJ7MRSGB.mjs";import{a as e}from"./chunk-OQURAWR4.mjs";var k=({receiver:n,sender:r,senderAssets:l,receiverAssets:u,transactionAssets:t,showDefaultState:f=!1,status:a})=>{let i=n===r,I=i?e(r):e(n),g=T({senderAssets:l,receiverAssets:u,userIsReceiver:i}),[s]=t??[],p=t.length>1,S=s?.type==="NonFungibleESDT",o=s?.type==="SemiFungibleESDT",A=t?.every(F=>s&&F.assetTicker===s.assetTicker)??!1,E=m(a),c=a==="pending";return(c||E)&&!f?{icon:c?"hourglass":"close"}:p&&!A?{icon:"coins"}:s?.assetImage?{imageUrl:s.assetImage}:S||o?{text:o?"sft":"nft"}:I?{imageUrl:g||void 0}:null};export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ECDI66QL.mjs.map
|