@multiversx/sdk-dapp 5.1.2-alpha.1 → 5.1.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/__chunks__/chunk-23BMJL5I.mjs +2 -0
- package/out/__chunks__/chunk-23VZAAPS.mjs +2 -0
- package/out/__chunks__/chunk-2ARILYKC.mjs +2 -0
- package/out/__chunks__/{chunk-ZS4EBCWC.mjs → chunk-2GG67TZD.mjs} +2 -2
- package/out/__chunks__/chunk-2IUBMLF4.mjs +2 -0
- package/out/__chunks__/{chunk-CAA4VJRH.mjs.map → chunk-2IUBMLF4.mjs.map} +3 -3
- package/out/__chunks__/chunk-2OYUVJ4V.mjs +2 -0
- package/out/__chunks__/{chunk-SX4YSAPS.mjs → chunk-3DBK6MUI.mjs} +2 -2
- package/out/__chunks__/{chunk-VMTIKPNF.mjs → chunk-42XAKFZX.mjs} +2 -2
- package/out/__chunks__/chunk-4I7IJNEQ.mjs +2 -0
- package/out/__chunks__/{chunk-2ONA7QPD.mjs → chunk-5DP2QBUG.mjs} +2 -2
- package/out/__chunks__/{chunk-M362X4QE.mjs → chunk-5IB7V3T5.mjs} +2 -2
- package/out/__chunks__/{chunk-2FHHGZ3T.mjs → chunk-6CWZFHNV.mjs} +2 -2
- package/out/__chunks__/{chunk-5KVNYLOM.mjs → chunk-6DWUEZO7.mjs} +2 -2
- package/out/__chunks__/{chunk-VWKWN65J.mjs → chunk-6QURUDVX.mjs} +2 -2
- package/out/__chunks__/{chunk-S22DKQQQ.mjs → chunk-7R7GYV2Q.mjs} +2 -2
- package/out/__chunks__/{chunk-DNGD7KKH.mjs → chunk-AIHJZJX7.mjs} +2 -2
- package/out/__chunks__/chunk-AJ5LH5DY.mjs +2 -0
- package/out/__chunks__/{chunk-LOK6ESLB.mjs.map → chunk-AJ5LH5DY.mjs.map} +2 -2
- package/out/__chunks__/{chunk-THI2ESLV.mjs → chunk-ALLSMTZ6.mjs} +2 -2
- package/out/__chunks__/chunk-AQ6D3F5K.mjs +2 -0
- package/out/__chunks__/chunk-AQ6D3F5K.mjs.map +7 -0
- package/out/__chunks__/chunk-BFIHV4M5.mjs +2 -0
- package/out/__chunks__/chunk-BHAHZQVO.mjs +2 -0
- package/out/__chunks__/chunk-BHAHZQVO.mjs.map +7 -0
- package/out/__chunks__/{chunk-PPZ3GNGJ.mjs → chunk-BIQTHJFC.mjs} +2 -2
- package/out/__chunks__/{chunk-IMPOALRX.mjs → chunk-BIVZJPSH.mjs} +1 -1
- package/out/__chunks__/{chunk-IMPOALRX.mjs.map → chunk-BIVZJPSH.mjs.map} +2 -2
- package/out/__chunks__/{chunk-5CKJT4NO.mjs → chunk-BJX6XZJZ.mjs} +2 -2
- package/out/__chunks__/{chunk-LC3NMRQO.mjs → chunk-CP5CXMNG.mjs} +2 -2
- package/out/__chunks__/{chunk-DNBALEVB.mjs → chunk-D2MEDQRS.mjs} +2 -2
- package/out/__chunks__/{chunk-CV2NXEM6.mjs → chunk-D7Q254FK.mjs} +2 -2
- package/out/__chunks__/{chunk-WSB5E7UB.mjs → chunk-DATOYALW.mjs} +2 -2
- package/out/__chunks__/{chunk-7K52RCRP.mjs → chunk-DO4PJGXP.mjs} +2 -2
- package/out/__chunks__/chunk-DSVSX4ZT.mjs +2 -0
- package/out/__chunks__/chunk-DSVSX4ZT.mjs.map +7 -0
- package/out/__chunks__/{chunk-KCW6EANO.mjs → chunk-DXI7IIPO.mjs} +2 -2
- package/out/__chunks__/chunk-DZ2BIDRW.mjs +2 -0
- package/out/__chunks__/chunk-DZ2BIDRW.mjs.map +7 -0
- package/out/__chunks__/{chunk-4VPONYGE.mjs → chunk-E75WVJBY.mjs} +2 -2
- package/out/__chunks__/chunk-EAH7XGM3.mjs +2 -0
- package/out/__chunks__/chunk-EAH7XGM3.mjs.map +7 -0
- package/out/__chunks__/{chunk-IRGVG3HG.mjs → chunk-ECUWXEXM.mjs} +2 -2
- package/out/__chunks__/{chunk-55BUT2DM.mjs → chunk-EE3KJKGZ.mjs} +2 -2
- package/out/__chunks__/chunk-ESLRNICJ.mjs +2 -0
- package/out/__chunks__/chunk-EYNCTMGG.mjs +2 -0
- package/out/__chunks__/{chunk-QPRSKCYO.mjs → chunk-FI6P7XAS.mjs} +2 -2
- package/out/__chunks__/chunk-G4CMYBPE.mjs +2 -0
- package/out/__chunks__/chunk-GF6ZP3BP.mjs +2 -0
- package/out/__chunks__/{chunk-C4DY3CZP.mjs → chunk-GWOW4TBY.mjs} +2 -2
- package/out/__chunks__/chunk-HI6GWYQP.mjs +2 -0
- package/out/__chunks__/{chunk-PHACGQQA.mjs → chunk-HSCQLXDI.mjs} +2 -2
- package/out/__chunks__/{chunk-AOAF6JOM.mjs → chunk-HZII4LOV.mjs} +2 -2
- package/out/__chunks__/chunk-I4BDQFVV.mjs +2 -0
- package/out/__chunks__/{chunk-SJ4MUNXH.mjs → chunk-IBVUYIRU.mjs} +2 -2
- package/out/__chunks__/chunk-IE3UIHJF.mjs +2 -0
- package/out/__chunks__/{chunk-X4TO7DF4.mjs.map → chunk-IE3UIHJF.mjs.map} +1 -1
- package/out/__chunks__/{chunk-QW6CLOKD.mjs → chunk-IGTJKYGR.mjs} +2 -2
- package/out/__chunks__/{chunk-ZQ2G4FUO.mjs → chunk-ITHXLW7N.mjs} +2 -2
- package/out/__chunks__/chunk-J2SRCAF3.mjs +2 -0
- package/out/__chunks__/{chunk-PJDJEPY2.mjs.map → chunk-J2SRCAF3.mjs.map} +3 -3
- package/out/__chunks__/{chunk-EL63EGMA.mjs → chunk-J42MMBDO.mjs} +2 -2
- package/out/__chunks__/{chunk-VTBN7CFO.mjs → chunk-JW2KPAHT.mjs} +2 -2
- package/out/__chunks__/chunk-KDNN7EJ5.mjs +2 -0
- package/out/__chunks__/{chunk-J6IY7X4A.mjs → chunk-KG5VFT6E.mjs} +2 -2
- package/out/__chunks__/chunk-KIOUFP5Q.mjs +1 -0
- package/out/__chunks__/{chunk-MH5NWDPB.mjs → chunk-KJB2FQHY.mjs} +2 -2
- package/out/__chunks__/{chunk-VPA6IRSJ.mjs → chunk-KQNIDAOO.mjs} +2 -2
- package/out/__chunks__/{chunk-J3IIPBSL.mjs → chunk-L5SWSYR7.mjs} +2 -2
- package/out/__chunks__/{chunk-QXHA5XJG.mjs → chunk-M2GO2ZKG.mjs} +2 -2
- package/out/__chunks__/{chunk-OJZA7VEQ.mjs → chunk-MQABF3VZ.mjs} +2 -2
- package/out/__chunks__/{chunk-KWOHYUBI.mjs → chunk-MVDR6OGY.mjs} +2 -2
- package/out/__chunks__/chunk-N342XMFH.mjs +6 -0
- package/out/__chunks__/chunk-N342XMFH.mjs.map +7 -0
- package/out/__chunks__/{chunk-IWEDMR3L.mjs → chunk-NHIO5LHC.mjs} +2 -2
- package/out/__chunks__/{chunk-EY4KOLUQ.mjs → chunk-NIUHMHFD.mjs} +2 -2
- package/out/__chunks__/{chunk-LQT4RCW4.mjs → chunk-NOMP7OYA.mjs} +2 -2
- package/out/__chunks__/{chunk-7ZDBJIIG.mjs → chunk-NP5YXGD3.mjs} +2 -2
- package/out/__chunks__/{chunk-MYDURWQE.mjs → chunk-OBUQ633K.mjs} +2 -2
- package/out/__chunks__/chunk-OL6LWUIJ.mjs +1 -0
- package/out/__chunks__/chunk-OL6LWUIJ.mjs.map +7 -0
- package/out/__chunks__/chunk-OOVV574D.mjs +2 -0
- package/out/__chunks__/chunk-OOVV574D.mjs.map +7 -0
- package/out/__chunks__/{chunk-3JYOJ4YQ.mjs → chunk-OV6QTSRW.mjs} +2 -2
- package/out/__chunks__/{chunk-7CNSDGK5.mjs → chunk-P5OCEUZJ.mjs} +2 -2
- package/out/__chunks__/chunk-PLMCHSS6.mjs +2 -0
- package/out/__chunks__/chunk-PLMCHSS6.mjs.map +7 -0
- package/out/__chunks__/chunk-PLTUKRYU.mjs +2 -0
- package/out/__chunks__/chunk-PLTUKRYU.mjs.map +7 -0
- package/out/__chunks__/{chunk-M3TXYTY7.mjs → chunk-PZKUGWW4.mjs} +2 -2
- package/out/__chunks__/chunk-QCKPVCWD.mjs +2 -0
- package/out/__chunks__/{chunk-BNBD3WVN.mjs → chunk-RBJ3O63I.mjs} +2 -2
- package/out/__chunks__/{chunk-6KH3KBWW.mjs → chunk-RDTIWBQU.mjs} +2 -2
- package/out/__chunks__/{chunk-CKPAEIWF.mjs → chunk-RHJ4M62M.mjs} +2 -2
- package/out/__chunks__/{chunk-GZAYDA7W.mjs → chunk-SDFOOFQZ.mjs} +2 -2
- package/out/__chunks__/chunk-SMWXMBEX.mjs +2 -0
- package/out/__chunks__/{chunk-DXJ5LGIX.mjs → chunk-ST2OXKY2.mjs} +2 -2
- package/out/__chunks__/{chunk-2DPKSENT.mjs → chunk-T54HTQQQ.mjs} +2 -2
- package/out/__chunks__/chunk-TFZ46GCB.mjs +1 -0
- package/out/__chunks__/chunk-TFZ46GCB.mjs.map +7 -0
- package/out/__chunks__/{chunk-PQF47VZ5.mjs → chunk-U63YDSPL.mjs} +2 -2
- package/out/__chunks__/{chunk-A4R4G5XO.mjs → chunk-UB2NR7NA.mjs} +2 -2
- package/out/__chunks__/{chunk-MI4RORQZ.mjs → chunk-UGLW3SSB.mjs} +2 -2
- package/out/__chunks__/{chunk-DNFWIYZH.mjs → chunk-UNBTFF6K.mjs} +2 -2
- package/out/__chunks__/{chunk-4LCYPBMP.mjs → chunk-V226OFPH.mjs} +2 -2
- package/out/__chunks__/{chunk-4DNBZFZP.mjs → chunk-VBXM6QDZ.mjs} +2 -2
- package/out/__chunks__/{chunk-NFNCA7X4.mjs → chunk-WCHM6ROW.mjs} +2 -2
- package/out/__chunks__/chunk-WJQVMI33.mjs +2 -0
- package/out/__chunks__/chunk-WJQVMI33.mjs.map +7 -0
- package/out/__chunks__/{chunk-NUGTEQDM.mjs → chunk-WPGHI7H5.mjs} +2 -2
- package/out/__chunks__/chunk-WQYM2QJ2.mjs +2 -0
- package/out/__chunks__/{chunk-6WACOJG2.mjs → chunk-X4PG526M.mjs} +2 -2
- package/out/__chunks__/chunk-XBF3UPD7.mjs +2 -0
- package/out/__chunks__/chunk-XBF3UPD7.mjs.map +7 -0
- package/out/__chunks__/{chunk-EMP4AJ5K.mjs → chunk-XJ54ERL3.mjs} +2 -2
- package/out/__chunks__/{chunk-JBMEDLYV.mjs → chunk-YGA2ZW7F.mjs} +2 -2
- package/out/__chunks__/chunk-YIF2ADTM.mjs +2 -0
- package/out/__chunks__/chunk-YIF2ADTM.mjs.map +7 -0
- package/out/__chunks__/{chunk-LZQCDNHM.mjs → chunk-YPEZAU5L.mjs} +2 -2
- package/out/__chunks__/{chunk-XHKNB4IP.mjs → chunk-YY724VZR.mjs} +2 -2
- package/out/__chunks__/{chunk-G4J3ELJX.mjs → chunk-ZAPTIV5E.mjs} +2 -2
- package/out/__chunks__/{chunk-XWMIQG5L.mjs → chunk-ZGPDC6C7.mjs} +2 -2
- package/out/__chunks__/{chunk-XBRFDEG4.mjs → chunk-ZQFABMSJ.mjs} +2 -2
- package/out/__mocks__/accountConfig.mjs +1 -1
- package/out/__mocks__/data/index.mjs +1 -1
- package/out/__mocks__/index.mjs +1 -1
- package/out/__mocks__/server.mjs +1 -1
- package/out/__mocks__/utils/index.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/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.cjs +3 -0
- package/out/constants/transactions.constants.cjs.map +2 -2
- package/out/constants/transactions.constants.d.ts +1 -0
- package/out/constants/transactions.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -3
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +2 -2
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/ToastManager/ToastManager.cjs +3 -6
- package/out/managers/internal/ToastManager/ToastManager.cjs.map +2 -2
- package/out/managers/internal/ToastManager/ToastManager.d.ts +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs +3 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs.map +2 -2
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.cjs +8 -7
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.cjs.map +2 -2
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.d.ts +1 -1
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.mjs +1 -1
- package/out/managers/internal/ToastManager/types/index.mjs +1 -1
- package/out/managers/internal/ToastManager/types/toast.types.cjs.map +2 -2
- package/out/managers/internal/ToastManager/types/toast.types.d.ts +1 -0
- package/out/managers/internal/ToastManager/types/toast.types.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.cjs +2 -0
- package/out/methods/initApp/initApp.cjs.map +2 -2
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.mjs.map +3 -3
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +28 -74
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.map +2 -2
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.cjs +0 -9
- package/out/providers/helpers/clearInitiatedLogins.cjs.map +2 -2
- package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +2 -221
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs.map +3 -3
- 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.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +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.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/index.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/types/index.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/dateTime/index.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs +111 -0
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +90 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.d.ts +8 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs +48 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs +45 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs +61 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs +39 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.d.ts +1 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs +52 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.d.ts +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.cjs +33 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.d.ts +6 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/index.cjs +25 -0
- package/out/utils/transactions/getDecodedDataField/index.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/index.d.ts +2 -0
- package/out/utils/transactions/getDecodedDataField/index.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/index.mjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.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/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.cjs +2 -0
- package/out/utils/transactions/index.cjs.map +2 -2
- package/out/utils/transactions/index.d.ts +1 -0
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/validation/index.mjs +1 -1
- package/out/utils/validation/isContract.mjs +1 -1
- package/out/utils/validation/tests/addressIsValid.test.d.ts +1 -0
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +4 -3
- package/out/__chunks__/chunk-2IA3N6X2.mjs +0 -2
- package/out/__chunks__/chunk-37Z3SLQK.mjs +0 -2
- package/out/__chunks__/chunk-4E4FWASC.mjs +0 -2
- package/out/__chunks__/chunk-4HEE3XZP.mjs +0 -2
- package/out/__chunks__/chunk-4HEE3XZP.mjs.map +0 -7
- package/out/__chunks__/chunk-4I5CGEEA.mjs +0 -2
- package/out/__chunks__/chunk-4MV4YBJL.mjs +0 -2
- package/out/__chunks__/chunk-54IH7FLV.mjs +0 -2
- package/out/__chunks__/chunk-6CQMLD25.mjs +0 -1
- package/out/__chunks__/chunk-AE4JJ7RL.mjs +0 -2
- package/out/__chunks__/chunk-BETSOJFK.mjs +0 -6
- package/out/__chunks__/chunk-BETSOJFK.mjs.map +0 -7
- package/out/__chunks__/chunk-C6L3VA2Y.mjs +0 -2
- package/out/__chunks__/chunk-C6L3VA2Y.mjs.map +0 -7
- package/out/__chunks__/chunk-CAA4VJRH.mjs +0 -2
- package/out/__chunks__/chunk-DU4U4RQA.mjs +0 -2
- package/out/__chunks__/chunk-G4Z3ZQR6.mjs +0 -2
- package/out/__chunks__/chunk-G4Z3ZQR6.mjs.map +0 -7
- package/out/__chunks__/chunk-J5LYZT4O.mjs +0 -2
- package/out/__chunks__/chunk-LFT5SLMM.mjs +0 -2
- package/out/__chunks__/chunk-LOK6ESLB.mjs +0 -2
- package/out/__chunks__/chunk-LWYWMJNF.mjs +0 -2
- package/out/__chunks__/chunk-M34EBTB6.mjs +0 -2
- package/out/__chunks__/chunk-PEVVIJ3R.mjs +0 -2
- package/out/__chunks__/chunk-PEVVIJ3R.mjs.map +0 -7
- package/out/__chunks__/chunk-PJDJEPY2.mjs +0 -2
- package/out/__chunks__/chunk-SDDCT2O5.mjs +0 -2
- package/out/__chunks__/chunk-UCYN4JJO.mjs +0 -2
- package/out/__chunks__/chunk-X4TO7DF4.mjs +0 -2
- package/out/__chunks__/chunk-Y5TCOIV4.mjs +0 -2
- package/out/__chunks__/chunk-ZW4HQOAV.mjs +0 -2
- /package/out/__chunks__/{chunk-4MV4YBJL.mjs.map → chunk-23BMJL5I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M34EBTB6.mjs.map → chunk-23VZAAPS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y5TCOIV4.mjs.map → chunk-2ARILYKC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZS4EBCWC.mjs.map → chunk-2GG67TZD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4E4FWASC.mjs.map → chunk-2OYUVJ4V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SX4YSAPS.mjs.map → chunk-3DBK6MUI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VMTIKPNF.mjs.map → chunk-42XAKFZX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4I5CGEEA.mjs.map → chunk-4I7IJNEQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2ONA7QPD.mjs.map → chunk-5DP2QBUG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M362X4QE.mjs.map → chunk-5IB7V3T5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2FHHGZ3T.mjs.map → chunk-6CWZFHNV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5KVNYLOM.mjs.map → chunk-6DWUEZO7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VWKWN65J.mjs.map → chunk-6QURUDVX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S22DKQQQ.mjs.map → chunk-7R7GYV2Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DNGD7KKH.mjs.map → chunk-AIHJZJX7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-THI2ESLV.mjs.map → chunk-ALLSMTZ6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-37Z3SLQK.mjs.map → chunk-BFIHV4M5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PPZ3GNGJ.mjs.map → chunk-BIQTHJFC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5CKJT4NO.mjs.map → chunk-BJX6XZJZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LC3NMRQO.mjs.map → chunk-CP5CXMNG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DNBALEVB.mjs.map → chunk-D2MEDQRS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CV2NXEM6.mjs.map → chunk-D7Q254FK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WSB5E7UB.mjs.map → chunk-DATOYALW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7K52RCRP.mjs.map → chunk-DO4PJGXP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KCW6EANO.mjs.map → chunk-DXI7IIPO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4VPONYGE.mjs.map → chunk-E75WVJBY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IRGVG3HG.mjs.map → chunk-ECUWXEXM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-55BUT2DM.mjs.map → chunk-EE3KJKGZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AE4JJ7RL.mjs.map → chunk-ESLRNICJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-54IH7FLV.mjs.map → chunk-EYNCTMGG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QPRSKCYO.mjs.map → chunk-FI6P7XAS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DU4U4RQA.mjs.map → chunk-G4CMYBPE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J5LYZT4O.mjs.map → chunk-GF6ZP3BP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C4DY3CZP.mjs.map → chunk-GWOW4TBY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LWYWMJNF.mjs.map → chunk-HI6GWYQP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PHACGQQA.mjs.map → chunk-HSCQLXDI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AOAF6JOM.mjs.map → chunk-HZII4LOV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UCYN4JJO.mjs.map → chunk-I4BDQFVV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SJ4MUNXH.mjs.map → chunk-IBVUYIRU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QW6CLOKD.mjs.map → chunk-IGTJKYGR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZQ2G4FUO.mjs.map → chunk-ITHXLW7N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EL63EGMA.mjs.map → chunk-J42MMBDO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VTBN7CFO.mjs.map → chunk-JW2KPAHT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LFT5SLMM.mjs.map → chunk-KDNN7EJ5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J6IY7X4A.mjs.map → chunk-KG5VFT6E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6CQMLD25.mjs.map → chunk-KIOUFP5Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MH5NWDPB.mjs.map → chunk-KJB2FQHY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VPA6IRSJ.mjs.map → chunk-KQNIDAOO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J3IIPBSL.mjs.map → chunk-L5SWSYR7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QXHA5XJG.mjs.map → chunk-M2GO2ZKG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OJZA7VEQ.mjs.map → chunk-MQABF3VZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KWOHYUBI.mjs.map → chunk-MVDR6OGY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IWEDMR3L.mjs.map → chunk-NHIO5LHC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EY4KOLUQ.mjs.map → chunk-NIUHMHFD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LQT4RCW4.mjs.map → chunk-NOMP7OYA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7ZDBJIIG.mjs.map → chunk-NP5YXGD3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MYDURWQE.mjs.map → chunk-OBUQ633K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3JYOJ4YQ.mjs.map → chunk-OV6QTSRW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7CNSDGK5.mjs.map → chunk-P5OCEUZJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M3TXYTY7.mjs.map → chunk-PZKUGWW4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZW4HQOAV.mjs.map → chunk-QCKPVCWD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BNBD3WVN.mjs.map → chunk-RBJ3O63I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6KH3KBWW.mjs.map → chunk-RDTIWBQU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CKPAEIWF.mjs.map → chunk-RHJ4M62M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GZAYDA7W.mjs.map → chunk-SDFOOFQZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SDDCT2O5.mjs.map → chunk-SMWXMBEX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DXJ5LGIX.mjs.map → chunk-ST2OXKY2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2DPKSENT.mjs.map → chunk-T54HTQQQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PQF47VZ5.mjs.map → chunk-U63YDSPL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A4R4G5XO.mjs.map → chunk-UB2NR7NA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MI4RORQZ.mjs.map → chunk-UGLW3SSB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DNFWIYZH.mjs.map → chunk-UNBTFF6K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4LCYPBMP.mjs.map → chunk-V226OFPH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4DNBZFZP.mjs.map → chunk-VBXM6QDZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NFNCA7X4.mjs.map → chunk-WCHM6ROW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NUGTEQDM.mjs.map → chunk-WPGHI7H5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2IA3N6X2.mjs.map → chunk-WQYM2QJ2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6WACOJG2.mjs.map → chunk-X4PG526M.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EMP4AJ5K.mjs.map → chunk-XJ54ERL3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JBMEDLYV.mjs.map → chunk-YGA2ZW7F.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LZQCDNHM.mjs.map → chunk-YPEZAU5L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XHKNB4IP.mjs.map → chunk-YY724VZR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-G4J3ELJX.mjs.map → chunk-ZAPTIV5E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XWMIQG5L.mjs.map → chunk-ZGPDC6C7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XBRFDEG4.mjs.map → chunk-ZQFABMSJ.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-XVX7N3JK.mjs";import{a as f}from"./chunk-I3MK6KZJ.mjs";import{Address as l}from"@multiversx/sdk-core";import c from"bignumber.js";var s={tokenId:"",amount:""},g=e=>e.split("@").map((n,t)=>[2,3].includes(t)?n:m(n));function D(e){if(!e)return s;let d=e.startsWith("ESDTTransfer"),u=e.startsWith("ESDTNFTTransfer")&&e.includes("@"),a=e.startsWith("ESDTNFTBurn")&&e.includes("@");try{if(d){let[,n,t]=e.split("@"),o=Buffer.from(n,"hex").toString("ascii");if(!o)return s;let r=new c("0x"+t.replace("0x","")).toString(10);return{tokenId:o,amount:r}}let i=g(e);if(u){let[,n,t,o,r]=i;if([n,t,o,r].every(T=>!!T)&&f(new l(r).toBech32()))return{tokenId:`${n}-${t}`,amount:new c(o,16).toString(10),collection:n,nonce:t,receiver:new l(r).toBech32()}}if(a){let[,n,t,o]=i;if([n,t,o].every(r=>!!r))return{tokenId:`${n}-${t}`,amount:new c(o,16).toString(10),collection:n,nonce:t}}}catch{return s}return s}export{g as a,D as b};
|
|
2
|
+
//# sourceMappingURL=chunk-2GG67TZD.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants/transactions.constants.ts"],
|
|
4
|
-
"sourcesContent": ["export const CANCEL_TRANSACTION_TOAST_ID = 'cancel-transaction-toast';\nexport const ERROR_SIGNING_TOAST_ID = 'error-signing-toast';\nexport const AVERAGE_TX_DURATION_MS = 6000;\nexport const CROSS_SHARD_ROUNDS = 5;\nexport const TRANSACTIONS_STATUS_POLLING_INTERVAL_MS = 90 * 1000; // 90sec\nexport const TRANSACTIONS_STATUS_DROP_INTERVAL_MS = 10 * 60 * 1000; // 10min\nexport const CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION = 10000;\nexport const BATCH_TRANSACTIONS_ID_SEPARATOR = '-';\nexport const SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE = 75;\nexport const CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE = 25;\nexport const PROGRESS_INTERVAL_DURATION_MS = 100;\nexport const DEFAULT_TOAST_LIEFTIME = 5000;\n"],
|
|
5
|
-
"mappings": "AAAO,IAAMA,EAA8B,2BAC9BC,EAAyB,sBACzBC,EAAyB,IACzBC,EAAqB,EACrBC,EAA0C,IAC1CC,EAAuC,IACvCC,EAA4C,IAC5CC,EAAkC,IAClCC,EAA8C,GAC9CC,EAA+C,GAC/CC,EAAgC,IAChCC,EAAyB",
|
|
6
|
-
"names": ["CANCEL_TRANSACTION_TOAST_ID", "ERROR_SIGNING_TOAST_ID", "AVERAGE_TX_DURATION_MS", "CROSS_SHARD_ROUNDS", "TRANSACTIONS_STATUS_POLLING_INTERVAL_MS", "TRANSACTIONS_STATUS_DROP_INTERVAL_MS", "CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION", "BATCH_TRANSACTIONS_ID_SEPARATOR", "SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE", "CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE", "PROGRESS_INTERVAL_DURATION_MS", "DEFAULT_TOAST_LIEFTIME"]
|
|
4
|
+
"sourcesContent": ["export const CANCEL_TRANSACTION_TOAST_ID = 'cancel-transaction-toast';\nexport const ERROR_SIGNING_TOAST_ID = 'error-signing-toast';\nexport const AVERAGE_TX_DURATION_MS = 6000;\nexport const CROSS_SHARD_ROUNDS = 5;\nexport const TRANSACTIONS_STATUS_POLLING_INTERVAL_MS = 90 * 1000; // 90sec\nexport const TRANSACTIONS_STATUS_DROP_INTERVAL_MS = 10 * 60 * 1000; // 10min\nexport const CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION = 10000;\nexport const BATCH_TRANSACTIONS_ID_SEPARATOR = '-';\nexport const SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE = 75;\nexport const CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE = 25;\nexport const PROGRESS_INTERVAL_DURATION_MS = 100;\nexport const DEFAULT_TOAST_LIEFTIME = 5000;\nexport const MAX_DECODE_TX_DATA_LENGTH = 36000;\n"],
|
|
5
|
+
"mappings": "AAAO,IAAMA,EAA8B,2BAC9BC,EAAyB,sBACzBC,EAAyB,IACzBC,EAAqB,EACrBC,EAA0C,IAC1CC,EAAuC,IACvCC,EAA4C,IAC5CC,EAAkC,IAClCC,EAA8C,GAC9CC,EAA+C,GAC/CC,EAAgC,IAChCC,EAAyB,IACzBC,EAA4B",
|
|
6
|
+
"names": ["CANCEL_TRANSACTION_TOAST_ID", "ERROR_SIGNING_TOAST_ID", "AVERAGE_TX_DURATION_MS", "CROSS_SHARD_ROUNDS", "TRANSACTIONS_STATUS_POLLING_INTERVAL_MS", "TRANSACTIONS_STATUS_DROP_INTERVAL_MS", "CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION", "BATCH_TRANSACTIONS_ID_SEPARATOR", "SAME_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE", "CROSS_SHARD_MAX_TOAST_WIDTH_PERCENT_DECREASE", "PROGRESS_INTERVAL_DURATION_MS", "DEFAULT_TOAST_LIEFTIME", "MAX_DECODE_TX_DATA_LENGTH"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-ZGPDC6C7.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{s as n}from"./chunk-SDFOOFQZ.mjs";async function f(){let t=s(n());if(Object.keys(t).length>0)for(let[e,{transactions:c}]of Object.entries(t))await o({sessionId:e,transactionBatch:c})}export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2OYUVJ4V.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-SDFOOFQZ.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as s,u as o}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function I({tokenId:n}){let t=a(m()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=c(n),i=n,p=k?s:o;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3DBK6MUI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-IE3UIHJF.mjs";import{MvxLedgerConnect as r}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a,r as b};
|
|
2
|
+
//# sourceMappingURL=chunk-42XAKFZX.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-D7Q254FK.mjs";import{c as n}from"./chunk-SDFOOFQZ.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-4I7IJNEQ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-RWQNLK3I.mjs";import{a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-RWQNLK3I.mjs";import{a as d}from"./chunk-VJBLHJYB.mjs";import{a}from"./chunk-RRK6GTWZ.mjs";import{a as o}from"./chunk-IPMSVHGJ.mjs";import{a as g}from"./chunk-PSJI2G34.mjs";import{a as i}from"./chunk-2CG6PNPJ.mjs";import{a as c}from"./chunk-FROSOADM.mjs";import{a as p,b as e}from"./chunk-HDRB2QL6.mjs";import{rest as t}from"msw";import{setupServer as u}from"msw/node";var s=m=>(R,f,n)=>f(n.status(200),n.json(m)),k=[t.get(`${e.apiAddress}/dapp/config`,s(c)),t.get(`${e.apiAddress}/network/config`,s(i)),t.get(`https://${o.url}/socket.io/`,s(g)),t.get(`${e.apiAddress}/websocket/config`,s(o)),t.get(`${e.apiAddress}/accounts/${p}`,s(a)),t.get(`${e.apiAddress}/accounts/${r.address}`,s(r)),t.get(`${e.apiAddress}/blocks`,s(d))],P=u(...k);export{t as a,s as b,P as c};
|
|
2
|
+
//# sourceMappingURL=chunk-5DP2QBUG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{t as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{t as g}from"./chunk-YIF2ADTM.mjs";import{q as u}from"./chunk-SDFOOFQZ.mjs";import{a as p}from"./chunk-UERJ6AKK.mjs";import{a as h,c as l,g as c}from"./chunk-NTEMINYA.mjs";import{a as y}from"./chunk-IE3UIHJF.mjs";var M=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=u();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){y.addEventListener("message",this.handleMessage)}stopListening(){y.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case o.finalizeHandshakeRequest:this.handshake({event:e});break;case o.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case o.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case o.signTransactionsRequest:this.signTransactions({event:e});break;case i.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=p(this.store.getState()),r=g(),n=new c({address:new l(t),data:new Uint8Array(Buffer.from(a))}),d=(await r.signMessage(n))?.signature??"";e.source?.postMessage({type:i.loginResponse,payload:{data:{address:t,signature:Buffer.from(d).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&this.handleLoginCancelled()}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:i.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=p(this.store.getState()),{message:t}=s;try{let r=new c({address:new l(a),data:new Uint8Array(Buffer.from(t))}),d=(await g().signMessage(r))?.signature??"";e.source?.postMessage({type:i.signMessageResponse,payload:{data:{signature:Buffer.from(d).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(n=>h.newFromPlainObject(n)),r=await s.signTransactions(t);e.source?.postMessage({type:i.signTransactionsResponse,payload:{data:r.map(n=>n.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5IB7V3T5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-IE3UIHJF.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
|
|
2
|
+
//# sourceMappingURL=chunk-6CWZFHNV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-XVX7N3JK.mjs";import{a as m}from"./chunk-I3MK6KZJ.mjs";import{Address as f}from"@multiversx/sdk-core";import s from"bignumber.js";var c={tokenId:"",amount:""},l=r=>r.split("@").map((t,e)=>[2,3].includes(e)?t:d(t));function y(r){if(!r)return c;let i=r.startsWith("ESDTTransfer"),a=r.startsWith("ESDTNFTTransfer")&&r.includes("@"),u=r.startsWith("ESDTNFTBurn")&&r.includes("@");if(i){let[,n,t]=r.split("@");try{let e=Buffer.from(n,"hex").toString("ascii");if(!e)return c;let o=new s("0x"+t.replace("0x","")).toString(10);return{tokenId:e,amount:o}}catch(e){console.error("Error getting token from transaction data",e)}}if(a)try{let[,n,t,e,o]=l(r);if([n,t,e,o].every(g=>!!g)&&m(new f(o).toBech32()))return{tokenId:`${n}-${t}`,amount:new s(e,16).toString(10),collection:n,nonce:t,receiver:new f(o).toBech32()}}catch{}if(u)try{let[,n,t,e]=l(r);if([n,t,e].every(o=>!!o))return{tokenId:`${n}-${t}`,amount:new s(e,16).toString(10),collection:n,nonce:t}}catch{}return c}export{l as a,y as b};
|
|
2
|
+
//# sourceMappingURL=chunk-6DWUEZO7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-SDFOOFQZ.mjs";import{a as c}from"./chunk-SQVKVA7X.mjs";import{a as i}from"./chunk-ULUZWP2P.mjs";var e=o=>u().setState(({network:r})=>{r.network={...r.network,...o}},!1,"initializeNetworkConfig");var y=async({customNetworkConfig:o={},environment:r})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=r&&r in i,p=n?i[r]:{},s={...c,...p,...o},t={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await w(a),f=t.roundDuration?null:await l(a);if(f!=null&&(t.roundDuration=f.erd_round_duration),m!=null){let k={...t,...m,...o};return e(k),k}}return e(t),t};export{y as a,e as b};
|
|
2
|
+
//# sourceMappingURL=chunk-6QURUDVX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-23BMJL5I.mjs";import{a as f}from"./chunk-FRDR4A7Z.mjs";import{t as c}from"./chunk-YIF2ADTM.mjs";import{s as n}from"./chunk-SDFOOFQZ.mjs";import{g as a}from"./chunk-UERJ6AKK.mjs";import{e as l}from"./chunk-VNLGNNIL.mjs";import{HWProvider as m}from"@multiversx/sdk-hw-provider";async function A(u){let v=g(),d=u?.shouldInitProvider||!v,o=l(n()),t=a(n()),r=c(),i=new m,I=async()=>{let e=o?.index!=null;if(r instanceof m&&r.isInitialized())return e&&await r.setAddressIndex(o.index),r;if(d&&!await i.init())throw new Error("Failed to initialize Ledger Provider");return e&&await i.setAddressIndex(o.index),i};try{if(!d&&t)return{ledgerProvider:i,ledgerConfig:{version:t.version,dataEnabled:t.hasContractDataEnabled}};let e=await I(),s=await f(e);return{ledgerProvider:e,ledgerConfig:s}}catch(e){throw console.error("Could not initialize ledger app",e),e}}export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7R7GYV2Q.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-ITHXLW7N.mjs";import{a as e}from"./chunk-QCKPVCWD.mjs";import{a as i}from"./chunk-CDQ2BNUD.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-AIHJZJX7.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as s}from"./chunk-NOMP7OYA.mjs";import{a as u}from"./chunk-RHJ4M62M.mjs";import{s as c}from"./chunk-SDFOOFQZ.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-CDQ2BNUD.mjs";import{a}from"./chunk-PLUWBWJ2.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(a).filter(n=>![a.none,a.webview].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AJ5LH5DY.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/managers/UnlockPanelManager/UnlockPanelManager.ts"],
|
|
4
|
-
"sourcesContent": ["import { providerLabels } from 'constants/providerFactory.constants';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxUnlockPanel } from 'lib/sdkDappUi';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport {\n IProviderBase,\n IProviderFactory,\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport {\n OnCloseUnlockPanelType,\n LoginHandlerType,\n UnlockPanelEventsEnum,\n UnlockPanelManagerInitParamsType\n} from './UnlockPanelManager.types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager';\n\ninterface IUnlockPanelManagerData {\n providers: IProviderBase[] | null;\n walletAddress: string | null;\n}\n\nexport class UnlockPanelManager extends SidePanelBaseManager<\n MvxUnlockPanel,\n IUnlockPanelManagerData,\n UnlockPanelEventsEnum\n> {\n protected initialData: IUnlockPanelManagerData = {\n providers: null,\n walletAddress: null\n };\n\n private static instance: UnlockPanelManager;\n private static loginHandler: LoginHandlerType | null = null;\n private static onClose: OnCloseUnlockPanelType | null = null;\n private static allowedProviders?: ProviderType[] | null = null;\n\n constructor() {\n super({\n uiTag: UITagsEnum.UNLOCK_PANEL,\n uiDataUpdateEvent: UnlockPanelEventsEnum.OPEN\n });\n\n this.data = this.initialData;\n }\n\n public static getInstance(): UnlockPanelManager {\n if (!UnlockPanelManager.instance) {\n UnlockPanelManager.instance = new UnlockPanelManager();\n }\n return UnlockPanelManager.instance;\n }\n\n public static init(params: UnlockPanelManagerInitParamsType) {\n this.loginHandler = params.loginHandler;\n this.allowedProviders = params.allowedProviders;\n\n if (params.onClose) {\n this.onClose = params.onClose;\n }\n\n return this.getInstance();\n }\n\n public openUnlockPanel = async () => {\n const { walletAddress } = networkSelector(getState());\n\n this.data = {\n providers: this.getProvidersList(),\n walletAddress\n };\n\n await this.openUI();\n this.notifyDataUpdate();\n };\n\n protected setupEventListeners = async () => {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(UnlockPanelEventsEnum.LOGIN, this.handleLogin);\n this.subscribeToEventBus(\n UnlockPanelEventsEnum.CANCEL_LOGIN,\n this.handleCancelLogin\n );\n this.subscribeToEventBus(UnlockPanelEventsEnum.CLOSE, this.handleCloseUI);\n };\n\n private readonly handleCloseUI = async (options?: {\n isLoginFinished?: boolean;\n }) => {\n if (!options?.isLoginFinished && UnlockPanelManager.onClose) {\n UnlockPanelManager.onClose();\n }\n\n this.closeUI();\n };\n\n private readonly handleLogin = async ({ type, anchor }: IProviderFactory) => {\n if (!UnlockPanelManager.loginHandler) {\n throw new Error(\n 'Login callback not initialized. Please call `init()` first.'\n );\n }\n\n try {\n if (this.isSimpleLoginCallback(UnlockPanelManager.loginHandler)) {\n const provider = await ProviderFactory.create({ type, anchor });\n await provider.login();\n UnlockPanelManager.loginHandler();\n } else {\n UnlockPanelManager.loginHandler({ type, anchor });\n }\n await this.handleCloseUI({ isLoginFinished: true });\n } catch (error) {\n console.error(error);\n this.eventBus?.publish(\n UnlockPanelEventsEnum.CANCEL_IN_PROVIDER,\n this.data\n );\n }\n };\n\n private readonly handleCancelLogin = async () => {\n await ProviderFactory.destroy();\n };\n\n private readonly isSimpleLoginCallback = (\n login: LoginHandlerType\n ): login is () => void => {\n const takesZeroArguments = login.length === 0;\n return takesZeroArguments;\n };\n\n private getProvidersList(): IProviderBase[] {\n const customProviders = ProviderFactory.customProviders;\n\n const defaultProviderTypes = Object.values(ProviderTypeEnum).filter(\n (type) => {\n const excludedProviders: string[] = [\n ProviderTypeEnum.none,\n ProviderTypeEnum.webview
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import { providerLabels } from 'constants/providerFactory.constants';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxUnlockPanel } from 'lib/sdkDappUi';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport {\n IProviderBase,\n IProviderFactory,\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\nimport { networkSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport {\n OnCloseUnlockPanelType,\n LoginHandlerType,\n UnlockPanelEventsEnum,\n UnlockPanelManagerInitParamsType\n} from './UnlockPanelManager.types';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager';\n\ninterface IUnlockPanelManagerData {\n providers: IProviderBase[] | null;\n walletAddress: string | null;\n}\n\nexport class UnlockPanelManager extends SidePanelBaseManager<\n MvxUnlockPanel,\n IUnlockPanelManagerData,\n UnlockPanelEventsEnum\n> {\n protected initialData: IUnlockPanelManagerData = {\n providers: null,\n walletAddress: null\n };\n\n private static instance: UnlockPanelManager;\n private static loginHandler: LoginHandlerType | null = null;\n private static onClose: OnCloseUnlockPanelType | null = null;\n private static allowedProviders?: ProviderType[] | null = null;\n\n constructor() {\n super({\n uiTag: UITagsEnum.UNLOCK_PANEL,\n uiDataUpdateEvent: UnlockPanelEventsEnum.OPEN\n });\n\n this.data = this.initialData;\n }\n\n public static getInstance(): UnlockPanelManager {\n if (!UnlockPanelManager.instance) {\n UnlockPanelManager.instance = new UnlockPanelManager();\n }\n return UnlockPanelManager.instance;\n }\n\n public static init(params: UnlockPanelManagerInitParamsType) {\n this.loginHandler = params.loginHandler;\n this.allowedProviders = params.allowedProviders;\n\n if (params.onClose) {\n this.onClose = params.onClose;\n }\n\n return this.getInstance();\n }\n\n public openUnlockPanel = async () => {\n const { walletAddress } = networkSelector(getState());\n\n this.data = {\n providers: this.getProvidersList(),\n walletAddress\n };\n\n await this.openUI();\n this.notifyDataUpdate();\n };\n\n protected setupEventListeners = async () => {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(UnlockPanelEventsEnum.LOGIN, this.handleLogin);\n this.subscribeToEventBus(\n UnlockPanelEventsEnum.CANCEL_LOGIN,\n this.handleCancelLogin\n );\n this.subscribeToEventBus(UnlockPanelEventsEnum.CLOSE, this.handleCloseUI);\n };\n\n private readonly handleCloseUI = async (options?: {\n isLoginFinished?: boolean;\n }) => {\n if (!options?.isLoginFinished && UnlockPanelManager.onClose) {\n UnlockPanelManager.onClose();\n }\n\n this.closeUI();\n };\n\n private readonly handleLogin = async ({ type, anchor }: IProviderFactory) => {\n if (!UnlockPanelManager.loginHandler) {\n throw new Error(\n 'Login callback not initialized. Please call `init()` first.'\n );\n }\n\n try {\n if (this.isSimpleLoginCallback(UnlockPanelManager.loginHandler)) {\n const provider = await ProviderFactory.create({ type, anchor });\n await provider.login();\n UnlockPanelManager.loginHandler();\n } else {\n UnlockPanelManager.loginHandler({ type, anchor });\n }\n await this.handleCloseUI({ isLoginFinished: true });\n } catch (error) {\n console.error(error);\n this.eventBus?.publish(\n UnlockPanelEventsEnum.CANCEL_IN_PROVIDER,\n this.data\n );\n }\n };\n\n private readonly handleCancelLogin = async () => {\n await ProviderFactory.destroy();\n };\n\n private readonly isSimpleLoginCallback = (\n login: LoginHandlerType\n ): login is () => void => {\n const takesZeroArguments = login.length === 0;\n return takesZeroArguments;\n };\n\n private getProvidersList(): IProviderBase[] {\n const customProviders = ProviderFactory.customProviders;\n\n const defaultProviderTypes = Object.values(ProviderTypeEnum).filter(\n (type) => {\n const excludedProviders: string[] = [\n ProviderTypeEnum.none,\n ProviderTypeEnum.webview\n ];\n return !excludedProviders.includes(type);\n }\n );\n\n const allAvailableProviderTypes = [\n ...defaultProviderTypes,\n ...customProviders.map((p) => p.type)\n ];\n\n const customProviderLabels = customProviders.reduce(\n (acc, provider) => {\n acc[provider.type] = provider.name;\n return acc;\n },\n {} as Record<ProviderType, string>\n );\n\n const allAvailableLabels = {\n ...providerLabels,\n ...customProviderLabels\n };\n\n const allowedProviderTypes = UnlockPanelManager.allowedProviders\n ? UnlockPanelManager?.allowedProviders.filter((type) =>\n allAvailableProviderTypes.includes(type)\n )\n : allAvailableProviderTypes;\n\n const providerList = allowedProviderTypes.map((type) => {\n const custom = customProviders.find(\n (customProvider) => customProvider.type === type\n );\n if (custom) {\n return custom;\n }\n\n return {\n name: type in allAvailableLabels ? allAvailableLabels[type] : type,\n type\n };\n });\n\n return providerList;\n }\n}\n"],
|
|
5
|
+
"mappings": "iPAyBO,IAAMA,EAAN,MAAMA,UAA2BC,CAItC,CAWA,aAAc,CACZ,MAAM,CACJ,yBACA,wBACF,CAAC,EAdH,KAAU,YAAuC,CAC/C,UAAW,KACX,cAAe,IACjB,EAkCA,KAAO,gBAAkB,SAAY,CACnC,GAAM,CAAE,cAAAC,CAAc,EAAIC,EAAgBC,EAAS,CAAC,EAEpD,KAAK,KAAO,CACV,UAAW,KAAK,iBAAiB,EACjC,cAAAF,CACF,EAEA,MAAM,KAAK,OAAO,EAClB,KAAK,iBAAiB,CACxB,EAEA,KAAU,oBAAsB,SAAY,CACrC,KAAK,WAIV,KAAK,4BAAiD,KAAK,WAAW,EACtE,KAAK,mCAEH,KAAK,iBACP,EACA,KAAK,4BAAiD,KAAK,aAAa,EAC1E,EAEA,KAAiB,cAAgB,MAAOG,GAElC,CACA,CAACA,GAAS,iBAAmBL,EAAmB,SAClDA,EAAmB,QAAQ,EAG7B,KAAK,QAAQ,CACf,EAEA,KAAiB,YAAc,MAAO,CAAE,KAAAM,EAAM,OAAAC,CAAO,IAAwB,CAC3E,GAAI,CAACP,EAAmB,aACtB,MAAM,IAAI,MACR,6DACF,EAGF,GAAI,CACE,KAAK,sBAAsBA,EAAmB,YAAY,GAE5D,MADiB,MAAMQ,EAAgB,OAAO,CAAE,KAAAF,EAAM,OAAAC,CAAO,CAAC,GAC/C,MAAM,EACrBP,EAAmB,aAAa,GAEhCA,EAAmB,aAAa,CAAE,KAAAM,EAAM,OAAAC,CAAO,CAAC,EAElD,MAAM,KAAK,cAAc,CAAE,gBAAiB,EAAK,CAAC,CACpD,OAASE,EAAO,CACd,QAAQ,MAAMA,CAAK,EACnB,KAAK,UAAU,6BAEb,KAAK,IACP,CACF,CACF,EAEA,KAAiB,kBAAoB,SAAY,CAC/C,MAAMD,EAAgB,QAAQ,CAChC,EAEA,KAAiB,sBACfE,GAE2BA,EAAM,SAAW,EAxF5C,KAAK,KAAO,KAAK,WACnB,CAEA,OAAc,aAAkC,CAC9C,OAAKV,EAAmB,WACtBA,EAAmB,SAAW,IAAIA,GAE7BA,EAAmB,QAC5B,CAEA,OAAc,KAAKW,EAA0C,CAC3D,YAAK,aAAeA,EAAO,aAC3B,KAAK,iBAAmBA,EAAO,iBAE3BA,EAAO,UACT,KAAK,QAAUA,EAAO,SAGjB,KAAK,YAAY,CAC1B,CAyEQ,kBAAoC,CAC1C,IAAMC,EAAkBJ,EAAgB,gBAYlCK,EAA4B,CAChC,GAX2B,OAAO,OAAOC,CAAgB,EAAE,OAC1DR,GAKQ,CAJ6B,CAClCQ,EAAiB,KACjBA,EAAiB,OACnB,EAC0B,SAASR,CAAI,CAE3C,EAIE,GAAGM,EAAgB,IAAKG,GAAMA,EAAE,IAAI,CACtC,EAEMC,EAAuBJ,EAAgB,OAC3C,CAACK,EAAKC,KACJD,EAAIC,EAAS,IAAI,EAAIA,EAAS,KACvBD,GAET,CAAC,CACH,EAEME,EAAqB,CACzB,GAAGC,EACH,GAAGJ,CACL,EAsBA,OApB6BhB,EAAmB,iBAC5CA,GAAoB,iBAAiB,OAAQM,GAC3CO,EAA0B,SAASP,CAAI,CACzC,EACAO,GAEsC,IAAKP,GAAS,CACtD,IAAMe,EAAST,EAAgB,KAC5BU,GAAmBA,EAAe,OAAShB,CAC9C,EACA,OAAIe,GAIG,CACL,KAAMf,KAAQa,EAAqBA,EAAmBb,CAAI,EAAIA,EAC9D,KAAAA,CACF,CACF,CAAC,CAGH,CACF,EAtKaN,EAWI,aAAwC,KAX5CA,EAYI,QAAyC,KAZ7CA,EAaI,iBAA2C,KAbrD,IAAMuB,EAANvB",
|
|
6
6
|
"names": ["_UnlockPanelManager", "SidePanelBaseManager", "walletAddress", "networkSelector", "getState", "options", "type", "anchor", "ProviderFactory", "error", "login", "params", "customProviders", "allAvailableProviderTypes", "ProviderTypeEnum", "p", "customProviderLabels", "acc", "provider", "allAvailableLabels", "providerLabels", "custom", "customProvider", "UnlockPanelManager"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-I4BDQFVV.mjs";import{a as k}from"./chunk-2OYUVJ4V.mjs";import{q as f}from"./chunk-SDFOOFQZ.mjs";import{d as b}from"./chunk-UERJ6AKK.mjs";import{c as n}from"./chunk-DATOYALW.mjs";import{b as i}from"./chunk-GGBMHKR4.mjs";async function N(){let o=f(),I=g(),s=null,t=null,l=b(o.getState())?.timestamp,c=()=>{k()},u=()=>{s??=setInterval(c,I)},m=()=>{s&&(clearInterval(s),s=null)},p=()=>{m();let a=o.subscribe(({account:{websocketEvent:e}})=>{e?.message&&l!==e.timestamp&&(l=e.timestamp,c())});n.set("websocketEventReceived",a)},S=()=>{i.status!=="not_initialized"||t||(t=setInterval(()=>{i.status==="completed"&&(clearInterval(t),t=null,p())},1e3))};c();let r=()=>{m(),t&&(clearInterval(t),t=null)},v=o.subscribe(({account:{address:a},config:{websocketStatus:e}},T)=>{if(T.config.websocketStatus!==e)switch(e){case"completed":p();break;case"pending":u(),S();break;default:a?u():r();break}});return n.set("websocketStatusChanged",v),n.set("websocketEventReceived",r),{stopTransactionsTracking:r}}export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ALLSMTZ6.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i}from"./chunk-QJGFIK7H.mjs";import{a as r}from"./chunk-PLUWBWJ2.mjs";var a=n=>(Object.values(r).forEach(o=>{if(o!==n?.skipLoginMethod)switch(o){case r.crossWindow:{let e=i.getInstance();e.isInitialized()&&e.onDestroy();break}default:break}}),null);export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-AQ6D3F5K.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/helpers/clearInitiatedLogins.ts"],
|
|
4
|
+
"sourcesContent": ["import { CrossWindowProvider } from 'lib/sdkWebWalletCrossWindowProvider';\nimport { ProviderTypeEnum, ProviderType } from '../types/providerFactory.types';\n\nexport const clearInitiatedLogins = (\n props?: {\n skipLoginMethod: ProviderType;\n } | null\n) => {\n Object.values(ProviderTypeEnum).forEach((method) => {\n if (method === props?.skipLoginMethod) {\n return;\n }\n\n switch (method) {\n case ProviderTypeEnum.crossWindow: {\n const crossWindowProvider = CrossWindowProvider.getInstance();\n if (crossWindowProvider.isInitialized()) {\n // Clean up the crossWindowProvider state without triggering a full logout.\n crossWindowProvider.onDestroy();\n }\n break;\n }\n\n default:\n break;\n }\n });\n\n return null;\n};\n"],
|
|
5
|
+
"mappings": "kFAGO,IAAMA,EACXC,IAIA,OAAO,OAAOC,CAAgB,EAAE,QAASC,GAAW,CAClD,GAAIA,IAAWF,GAAO,gBAItB,OAAQE,EAAQ,CACd,KAAKD,EAAiB,YAAa,CACjC,IAAME,EAAsBC,EAAoB,YAAY,EACxDD,EAAoB,cAAc,GAEpCA,EAAoB,UAAU,EAEhC,KACF,CAEA,QACE,KACJ,CACF,CAAC,EAEM",
|
|
6
|
+
"names": ["clearInitiatedLogins", "props", "ProviderTypeEnum", "method", "crossWindowProvider", "CrossWindowProvider"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/transactions/getDecodedDataField/helpers/getDecodedParts.ts"],
|
|
4
|
+
"sourcesContent": ["import { DecodeMethodEnum } from 'types/serverTransactions.types';\nimport { getSmartDecodedParts } from './getSmartDecodedParts';\n\ninterface IGetDecodedParts {\n parts: string[];\n decodeMethod: DecodeMethodEnum;\n initialDecodedParts: string[];\n identifier?: string;\n}\n\nexport const getDecodedParts = ({\n parts,\n decodeMethod,\n identifier,\n initialDecodedParts\n}: IGetDecodedParts) => {\n if (decodeMethod === DecodeMethodEnum.smart) {\n return getSmartDecodedParts({\n parts,\n decodedParts: initialDecodedParts,\n identifier\n });\n }\n\n return initialDecodedParts;\n};\n"],
|
|
5
|
+
"mappings": "yCAUO,IAAMA,EAAkB,CAAC,CAC9B,MAAAC,EACA,aAAAC,EACA,WAAAC,EACA,oBAAAC,CACF,IACMF,YACKG,EAAqB,CAC1B,MAAAJ,EACA,aAAcG,EACd,WAAAD,CACF,CAAC,EAGIC",
|
|
6
|
+
"names": ["getDecodedParts", "parts", "decodeMethod", "identifier", "initialDecodedParts", "getSmartDecodedParts"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-KQNIDAOO.mjs";var c=class n extends i{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-ledger-connect"});this.addressesPerPage=10;this.allAccounts=[];this.initialConnectScreenData={};this.connectScreenData={...this.initialConnectScreenData};this.initialAccountScreenData={accounts:this.allAccounts,startIndex:0,addressesPerPage:this.addressesPerPage,isLoading:!0};this.accountScreenData={...this.initialAccountScreenData};this.initialConfirmScreenData={selectedAddress:"",explorerLink:""};this.confirmScreenData={...this.initialConfirmScreenData};this.initialData={connectScreenData:this.initialConnectScreenData,accountScreenData:this.initialAccountScreenData,confirmScreenData:this.initialConfirmScreenData};this.data=this.getInitialData()}static getInstance(){return n.instance||(n.instance=new n),n.instance}updateAllAccounts(e){this.allAccounts=e,this.accountScreenData.accounts=e}updateStartIndex(e){this.accountScreenData.startIndex=e}updateConnectScreen(e){this.connectScreenData={...this.connectScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=null,this.data.connectScreenData=this.connectScreenData,this.notifyDataUpdate()}updateAccountScreen(e){this.accountScreenData={...this.accountScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=this.accountScreenData,this.notifyDataUpdate()}updateConfirmScreen(e){this.confirmScreenData={...this.confirmScreenData,...e},this.data.accountScreenData=null,this.data.confirmScreenData=this.confirmScreenData,this.notifyDataUpdate()}getAccountScreenData(){return this.data.accountScreenData}getConfirmScreenData(){return this.data.confirmScreenData}getAllAccounts(){return this.allAccounts}subscribeToProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.subscribe("CONNECT_DEVICE",e),this.eventBus.subscribe("CLOSE",t),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}unsubscribeFromProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.unsubscribe("CONNECT_DEVICE",e),this.eventBus.unsubscribe("CLOSE",t),this.eventBus.unsubscribe("UI_DISCONNECTED",this.destroy.bind(this)))}subscribeToAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.subscribe("CLOSE",e),this.eventBus.subscribe("ACCESS_WALLET",t),this.eventBus.subscribe("GO_TO_PAGE",a))}unsubscribeFromAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.unsubscribe("CLOSE",e),this.eventBus.unsubscribe("ACCESS_WALLET",t),this.eventBus.unsubscribe("GO_TO_PAGE",a))}handleClose(){this.anchor?this.anchor?.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy()}resetData(){this.accountScreenData={...this.initialAccountScreenData},this.confirmScreenData={...this.initialConfirmScreenData},this.connectScreenData={...this.initialConnectScreenData},super.resetData()}async setupEventListeners(){this.eventBus&&this.eventBus.subscribe("CLOSE",this.handleClose.bind(this))}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BIQTHJFC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var a=(t=>(t.success="Transaction successful",t.received="Transaction received",t.failed="Transaction failed",t.pending="Processing transaction",t.timedOut="Transaction timed out",t.invalid="Transaction invalid",t))(a||{}),r=(t=>(t.OPEN_NOTIFICATIONS_FEED="OPEN_NOTIFICATIONS_FEED",t.CLOSE="CLOSE_TOAST",t.TRANSACTION_TOAST_DATA_UPDATE="TRANSACTION_TOAST_DATA_UPDATE",t.CUSTOM_TOAST_DATA_UPDATE="CUSTOM_TOAST_DATA_UPDATE",t.HIDE="HIDE_TOAST_LIST",t.SHOW="SHOW_TOAST_LIST",t))(r||{});export{a,r as b};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-BIVZJPSH.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/managers/internal/ToastManager/types/toast.types.ts"],
|
|
4
|
-
"sourcesContent": ["import { ITransactionListItem } from 'lib/sdkDappUi';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { TransactionsDisplayInfoType } from 'types/transactions.types';\n\nexport enum TransactionsDefaultTitles {\n success = 'Transaction successful',\n received = 'Transaction received',\n failed = 'Transaction failed',\n pending = 'Processing transaction',\n timedOut = 'Transaction timed out',\n invalid = 'Transaction invalid'\n}\n\nexport interface GetToastsOptionsDataPropsType {\n address: string;\n sender: string;\n status?: TransactionBatchStatusesEnum | TransactionServerStatusesEnum;\n toastId: string;\n transactionsDisplayInfo?: TransactionsDisplayInfoType;\n}\n\nexport interface IToastDataState {\n id: string;\n icon: string;\n hasCloseButton: boolean;\n title: string;\n iconClassName: string;\n}\nexport interface ITransactionProgressState {\n startTime: number;\n endTime: number;\n}\nexport interface ITransaction {\n hash: string;\n status: string;\n link: string;\n}\nexport interface ITransactionToast {\n toastId: string;\n processedTransactionsStatus: string;\n transactions: ITransactionListItem[];\n toastDataState: IToastDataState;\n transactionProgressState?: ITransactionProgressState | null;\n}\n\nexport enum ToastEventsEnum {\n OPEN_NOTIFICATIONS_FEED = 'OPEN_NOTIFICATIONS_FEED',\n CLOSE = 'CLOSE_TOAST',\n // Event to update the transaction toast data\n TRANSACTION_TOAST_DATA_UPDATE = 'TRANSACTION_TOAST_DATA_UPDATE',\n // Event to update the custom toast data\n CUSTOM_TOAST_DATA_UPDATE = 'CUSTOM_TOAST_DATA_UPDATE',\n HIDE = 'HIDE_TOAST_LIST',\n SHOW = 'SHOW_TOAST_LIST'\n}\n"],
|
|
5
|
-
"mappings": "AAOO,IAAKA,OACVA,EAAA,QAAU,yBACVA,EAAA,SAAW,uBACXA,EAAA,OAAS,qBACTA,EAAA,QAAU,yBACVA,EAAA,SAAW,wBACXA,EAAA,QAAU,sBANAA,OAAA,
|
|
4
|
+
"sourcesContent": ["import { ITransactionListItem } from 'lib/sdkDappUi';\nimport {\n TransactionBatchStatusesEnum,\n TransactionServerStatusesEnum\n} from 'types/enums.types';\nimport { TransactionsDisplayInfoType } from 'types/transactions.types';\n\nexport enum TransactionsDefaultTitles {\n success = 'Transaction successful',\n received = 'Transaction received',\n failed = 'Transaction failed',\n pending = 'Processing transaction',\n timedOut = 'Transaction timed out',\n invalid = 'Transaction invalid'\n}\n\nexport interface GetToastsOptionsDataPropsType {\n address: string;\n sender: string;\n status?: TransactionBatchStatusesEnum | TransactionServerStatusesEnum;\n toastId: string;\n transactionsDisplayInfo?: TransactionsDisplayInfoType;\n txActionName?: string;\n}\n\nexport interface IToastDataState {\n id: string;\n icon: string;\n hasCloseButton: boolean;\n title: string;\n iconClassName: string;\n}\nexport interface ITransactionProgressState {\n startTime: number;\n endTime: number;\n}\nexport interface ITransaction {\n hash: string;\n status: string;\n link: string;\n}\nexport interface ITransactionToast {\n toastId: string;\n processedTransactionsStatus: string;\n transactions: ITransactionListItem[];\n toastDataState: IToastDataState;\n transactionProgressState?: ITransactionProgressState | null;\n}\n\nexport enum ToastEventsEnum {\n OPEN_NOTIFICATIONS_FEED = 'OPEN_NOTIFICATIONS_FEED',\n CLOSE = 'CLOSE_TOAST',\n // Event to update the transaction toast data\n TRANSACTION_TOAST_DATA_UPDATE = 'TRANSACTION_TOAST_DATA_UPDATE',\n // Event to update the custom toast data\n CUSTOM_TOAST_DATA_UPDATE = 'CUSTOM_TOAST_DATA_UPDATE',\n HIDE = 'HIDE_TOAST_LIST',\n SHOW = 'SHOW_TOAST_LIST'\n}\n"],
|
|
5
|
+
"mappings": "AAOO,IAAKA,OACVA,EAAA,QAAU,yBACVA,EAAA,SAAW,uBACXA,EAAA,OAAS,qBACTA,EAAA,QAAU,yBACVA,EAAA,SAAW,wBACXA,EAAA,QAAU,sBANAA,OAAA,IA0CAC,OACVA,EAAA,wBAA0B,0BAC1BA,EAAA,MAAQ,cAERA,EAAA,8BAAgC,gCAEhCA,EAAA,yBAA2B,2BAC3BA,EAAA,KAAO,kBACPA,EAAA,KAAO,kBARGA,OAAA",
|
|
6
6
|
"names": ["TransactionsDefaultTitles", "ToastEventsEnum"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-SUBC3H4J.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-SUBC3H4J.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as n}from"./chunk-ESLRNICJ.mjs";import{s as e}from"./chunk-SDFOOFQZ.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";var w=async r=>{let{isGuarded:i}=n();if(!s({isGuarded:i,transactions:r}))return r;let a=r[0].sender.toBech32(),{walletAddress:d}=o(e());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BJX6XZJZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as c}from"./chunk-SDFOOFQZ.mjs";import{a as o}from"./chunk-JMC7CMTU.mjs";var r=e=>{c().setState(({account:t})=>{let s=t.address===e.address;t.accounts={[t.address]:s?e:o}},!1,"setAccount")},u=e=>c().setState(({account:t})=>{t.ledgerAccount=e},!1,"setLedgerAccount"),p=e=>c().setState(({account:t})=>{t.walletConnectAccount=e},!1,"setWalletConnectAccount"),l=e=>c().setState(({account:t})=>{t.websocketEvent={timestamp:Date.now(),message:e}},!1,"setWebsocketEvent"),m=e=>c().setState(({account:t})=>{t.websocketBatchEvent={timestamp:Date.now(),data:e}},!1,"setWebsocketBatchEvent"),A=e=>{c().setState(({account:t})=>{t.accounts[t.address].nonce=e},!1,"setAccountNonce")};export{r as a,u as b,p as c,l as d,m as e,A as f};
|
|
2
|
+
//# sourceMappingURL=chunk-CP5CXMNG.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-ECUWXEXM.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-D2MEDQRS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-DXI7IIPO.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-D7Q254FK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-IE3UIHJF.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-DATOYALW.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-NOMP7OYA.mjs";import{s as n}from"./chunk-YIF2ADTM.mjs";import{s as m}from"./chunk-SDFOOFQZ.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-PLUWBWJ2.mjs";import{a as f}from"./chunk-D2MEDQRS.mjs";async function u(){let i=s(),o=f()||i?e.webview:t(m());if(!o)return;let r=await p.create({type:o});if(!r)throw new Error("Provider not found");(i||o===e.webview&&r.isInitialized())&&await r.login(),n(r)}export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DO4PJGXP.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as l}from"./chunk-DZ2BIDRW.mjs";import{a as s}from"./chunk-EAH7XGM3.mjs";import{a}from"./chunk-OOVV574D.mjs";var W=({parts:n,decodeMethod:i,decodedData:t,identifier:c})=>{let d=n.map((e,o)=>{if(n.length>=2&&(o===0&&e.length<64||o===1&&!n[0]))return/[^a-z0-9]/gi.test(e)?a({data:e,decodeMethod:i}):e;let r=l(e);return r?.length&&(t.validationWarnings=Array.from(new Set([...t.validationWarnings,...r]))),a({data:e,decodeMethod:i})});return i==="smart"?s({parts:n,decodedParts:d,identifier:c}):d};export{W as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DSVSX4ZT.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n DecodeMethodEnum,\n DecodedDisplayType\n} from 'types/serverTransactions.types';\nimport { decodeByMethod } from './decodeByMethod';\nimport { getHexValidationWarnings } from './getHexValidationWarnings';\nimport { getSmartDecodedParts } from './getSmartDecodedParts';\n\ninterface IGetDisplayValueAndValidationWarnings {\n parts: string[];\n decodeMethod: DecodeMethodEnum;\n decodedData: DecodedDisplayType;\n identifier?: string;\n}\n\nexport const getDisplayValueAndValidationWarnings = ({\n parts,\n decodeMethod,\n decodedData,\n identifier\n}: IGetDisplayValueAndValidationWarnings) => {\n const initialDecodedParts = parts.map((part, index) => {\n if (\n parts.length >= 2 &&\n ((index === 0 && part.length < 64) || (index === 1 && !parts[0]))\n ) {\n const encodedDisplayValue = /[^a-z0-9]/gi.test(part);\n\n if (encodedDisplayValue) {\n return decodeByMethod({ data: part, decodeMethod });\n }\n\n return part;\n }\n\n const hexValidationWarnings = getHexValidationWarnings(part);\n\n if (hexValidationWarnings?.length) {\n decodedData.validationWarnings = Array.from(\n new Set([...decodedData.validationWarnings, ...hexValidationWarnings])\n );\n }\n\n return decodeByMethod({ data: part, decodeMethod });\n });\n\n const decodedParts =\n decodeMethod === DecodeMethodEnum.smart\n ? getSmartDecodedParts({\n parts,\n decodedParts: initialDecodedParts,\n identifier\n })\n : initialDecodedParts;\n\n return decodedParts;\n};\n"],
|
|
5
|
+
"mappings": "sHAeO,IAAMA,EAAuC,CAAC,CACnD,MAAAC,EACA,aAAAC,EACA,YAAAC,EACA,WAAAC,CACF,IAA6C,CAC3C,IAAMC,EAAsBJ,EAAM,IAAI,CAACK,EAAMC,IAAU,CACrD,GACEN,EAAM,QAAU,IACdM,IAAU,GAAKD,EAAK,OAAS,IAAQC,IAAU,GAAK,CAACN,EAAM,CAAC,GAI9D,MAF4B,cAAc,KAAKK,CAAI,EAG1CE,EAAe,CAAE,KAAMF,EAAM,aAAAJ,CAAa,CAAC,EAG7CI,EAGT,IAAMG,EAAwBC,EAAyBJ,CAAI,EAE3D,OAAIG,GAAuB,SACzBN,EAAY,mBAAqB,MAAM,KACrC,IAAI,IAAI,CAAC,GAAGA,EAAY,mBAAoB,GAAGM,CAAqB,CAAC,CACvE,GAGKD,EAAe,CAAE,KAAMF,EAAM,aAAAJ,CAAa,CAAC,CACpD,CAAC,EAWD,OAREA,YACIS,EAAqB,CACnB,MAAAV,EACA,aAAcI,EACd,WAAAD,CACF,CAAC,EACDC,CAGR",
|
|
6
|
+
"names": ["getDisplayValueAndValidationWarnings", "parts", "decodeMethod", "decodedData", "identifier", "initialDecodedParts", "part", "index", "decodeByMethod", "hexValidationWarnings", "getHexValidationWarnings", "getSmartDecodedParts"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-EE3KJKGZ.mjs";import{a as o}from"./chunk-WE7YOBO7.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DXI7IIPO.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.ts"],
|
|
4
|
+
"sourcesContent": ["import { isHexValidCharacters, isHexValidLength } from 'utils/validation/hex';\n\nexport const getHexValidationWarnings = (str: string) => {\n const warnings = [];\n\n if (str && !isHexValidCharacters(str)) {\n warnings.push(`Invalid Hex characters on argument @${str}`);\n }\n\n if (str && !isHexValidLength(str)) {\n warnings.push(`Odd number of Hex characters on argument @${str}`);\n }\n\n return warnings;\n};\n"],
|
|
5
|
+
"mappings": "gDAEO,IAAMA,EAA4BC,GAAgB,CACvD,IAAMC,EAAW,CAAC,EAElB,OAAID,GAAO,CAACE,EAAqBF,CAAG,GAClCC,EAAS,KAAK,uCAAuCD,CAAG,EAAE,EAGxDA,GAAO,CAACG,EAAiBH,CAAG,GAC9BC,EAAS,KAAK,6CAA6CD,CAAG,EAAE,EAG3DC,CACT",
|
|
6
|
+
"names": ["getHexValidationWarnings", "str", "warnings", "isHexValidCharacters", "isHexValidLength"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-J2SRCAF3.mjs";import{a as l}from"./chunk-WQYM2QJ2.mjs";import{a as f}from"./chunk-KDNN7EJ5.mjs";import{j as m,k as d,l as p,n as u}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-L5SWSYR7.mjs";var q=async({toastList:S,transactionsSessions:g,account:o,existingCompletedTransactions:y=[]})=>{let n=[],a=[...y],r=l(),F=f();for(let t of S.transactionToasts){let e=g[t.toastId];if(!e?.status)continue;let{status:s,transactions:C,transactionsDisplayInfo:P}=e,x=await T({transactions:C,address:o.address,explorerAddress:r,egldLabel:F}),A=u(s),E=p(s),L=d(s),i=A||E||L,v=m(s),{startTime:R,endTime:b}=t;if(i&&a.some(h=>h.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:x,transactionsDisplayInfo:P,explorerAddress:r,startTime:R,endTime:b});i&&a.push(c),v&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{q as a};
|
|
2
|
+
//# sourceMappingURL=chunk-E75WVJBY.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-OOVV574D.mjs";var f=({parts:e,decodedParts:d,identifier:o})=>{let r=[...d];if(e[0]==="ESDTNFTTransfer"&&e[2]&&(r[2]=t({data:e[2],decodeMethod:"decimal"})),o==="ESDTNFTTransfer"&&e[1]){let a=Buffer.from(String(e[1]),"base64");r[1]=t({data:a.toString("hex"),decodeMethod:"decimal"})}return r};export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EAH7XGM3.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.ts"],
|
|
4
|
+
"sourcesContent": ["import { TransactionTypesEnum } from 'types/enums.types';\nimport { DecodeMethodEnum } from 'types/serverTransactions.types';\nimport { decodeByMethod } from './decodeByMethod';\n\ninterface ISmartDecodedParts {\n parts: string[];\n decodedParts: string[];\n identifier?: string;\n}\n\nexport const getSmartDecodedParts = ({\n parts,\n decodedParts,\n identifier\n}: ISmartDecodedParts) => {\n const smartDecodedParts = [...decodedParts];\n\n if (parts[0] === TransactionTypesEnum.ESDTNFTTransfer && parts[2]) {\n smartDecodedParts[2] = decodeByMethod({\n data: parts[2],\n decodeMethod: DecodeMethodEnum.decimal\n });\n }\n\n if (identifier === TransactionTypesEnum.ESDTNFTTransfer && parts[1]) {\n const base64Buffer = Buffer.from(String(parts[1]), 'base64');\n smartDecodedParts[1] = decodeByMethod({\n data: base64Buffer.toString('hex'),\n decodeMethod: DecodeMethodEnum.decimal\n });\n }\n\n return smartDecodedParts;\n};\n"],
|
|
5
|
+
"mappings": "yCAUO,IAAMA,EAAuB,CAAC,CACnC,MAAAC,EACA,aAAAC,EACA,WAAAC,CACF,IAA0B,CACxB,IAAMC,EAAoB,CAAC,GAAGF,CAAY,EAS1C,GAPID,EAAM,CAAC,uBAA8CA,EAAM,CAAC,IAC9DG,EAAkB,CAAC,EAAIC,EAAe,CACpC,KAAMJ,EAAM,CAAC,EACb,sBACF,CAAC,GAGCE,uBAAuDF,EAAM,CAAC,EAAG,CACnE,IAAMK,EAAe,OAAO,KAAK,OAAOL,EAAM,CAAC,CAAC,EAAG,QAAQ,EAC3DG,EAAkB,CAAC,EAAIC,EAAe,CACpC,KAAMC,EAAa,SAAS,KAAK,EACjC,sBACF,CAAC,CACH,CAEA,OAAOF,CACT",
|
|
6
|
+
"names": ["getSmartDecodedParts", "parts", "decodedParts", "identifier", "smartDecodedParts", "decodeByMethod", "base64Buffer"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-IE3UIHJF.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-ECUWXEXM.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-J42MMBDO.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-EE3KJKGZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-QCKPVCWD.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FI6P7XAS.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-SDFOOFQZ.mjs";var g=({transactions:s,transactionsDisplayInfo:a,status:e,sessionInformation:t})=>{let o=Date.now().toString();return i().setState(({transactions:n})=>{n[o]={transactions:s,status:e,transactionsDisplayInfo:a,interpretedTransactions:{},sessionInformation:t}},!1,"createTransactionsSession"),o},T=({sessionId:s,status:a,errorMessage:e})=>{i().setState(({transactions:t})=>{t[s].status=a,t[s].errorMessage=e},!1,"updateTransactionsSession")},y=({sessionId:s,transaction:a})=>{let e=null;return i().setState(({transactions:t})=>{let o=t[s]?.transactions;if(o!=null){t[s].transactions=o.map(r=>r.hash===a.hash?{...r,...a??{}}:r);let n=u([...t[s].transactions]);n&&(T({sessionId:s,status:n}),e=n)}},!1,"updateTransactionStatus"),e},h=()=>{i().setState(({transactions:s,toasts:a})=>{let t=Object.keys(s).filter(n=>{let r=s[n];if(!r)return!1;let{status:c}=r;return!(c==="pending"||c==="signed"||c==="sent")});t.forEach(n=>{delete s[n]});let o=a.transactionToasts.filter(n=>!t.includes(n.toastId));a.transactionToasts=o},!1,"clearCompletedTransactions")};export{g as a,T as b,y as c,h as d};
|
|
2
|
+
//# sourceMappingURL=chunk-GWOW4TBY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as o,f as a,g as i,h as r}from"./chunk-TQA3JDNV.mjs";import{s as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as o,f as a,g as i,h as r}from"./chunk-TQA3JDNV.mjs";import{s as c}from"./chunk-SDFOOFQZ.mjs";function b(){let t=c(),l=r(t),u=i(t),T=a(t),d=o(t),e=Object.keys(d)?.length>0,n=!e&&Object.keys(l)?.length>0,s=!e&&!n&&Object.keys(u)?.length>0,f=!e&&!n&&!s&&Object.keys(T).length>0;return{pending:e,timedOut:n,fail:s,success:f}}export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HSCQLXDI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-SDFOOFQZ.mjs";var c=t=>n().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),C=t=>n().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>n().setState(({config:e})=>{let a=t.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=t.walletConnectDeepLink||o.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:s,walletConnectV2RelayAddress:a}},!1,"setWalletConnectConfig");export{c as a,C as b,f as c};
|
|
2
|
+
//# sourceMappingURL=chunk-HZII4LOV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as h}from"./chunk-BIQTHJFC.mjs";import{a as s}from"./chunk-ZAPTIV5E.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-WQYM2QJ2.mjs";import{b as A}from"./chunk-CP5CXMNG.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{f as p}from"./chunk-SDFOOFQZ.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-PLUWBWJ2.mjs";import{BigNumber as C}from"bignumber.js";async function M({options:d,config:i,provider:a,login:c}){let e=h.getInstance(),T=L(),b=k({loginToken:d?.token,version:i.version}),o={manager:e,provider:a};await s(o);let t=await new Promise(async function(E,w){async function g(r){let n=e?e.addressesPerPage??1:1,l=new C(r-1).times(n);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await s(o)}async function u(r){if(!(!a||!c)){e?.updateConfirmScreen({...b,selectedAddress:r.selectedAddress,explorerLink:I({to:`/${f}/${r.selectedAddress}`,explorerAddress:T})});try{let n=d?.token?await a.tokenLogin({token:Buffer.from(`${d?.token}{}`),addressIndex:r.addressIndex}):await c({addressIndex:r.addressIndex});E({address:n.address,signature:n.signature?n.signature.toString("hex"):"",addressIndex:r.addressIndex})}catch(n){console.error("User rejected login:",n),!!e?.getConfirmScreenData()&&await s(o)}}}async function m(){await s(o),e.unsubscribeFromAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g}),w("User cancelled login")}e.subscribeToAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g})}),{version:P,dataEnabled:v}=i;return p({index:t.addressIndex,loginType:x.ledger}),A({address:t.address,index:t.addressIndex,version:P,hasContractDataEnabled:v}),{address:t.address,signature:t.signature}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IBVUYIRU.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/constants/window.constants.ts"],
|
|
4
|
-
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.1.
|
|
4
|
+
"sourcesContent": ["export const safeWindow: Window =\n typeof window !== 'undefined' ? window : ({} as Window);\n\nexport const version = '5.1.3-alpha.0'; // will be replaced at build time\n"],
|
|
5
5
|
"mappings": "AAAO,IAAMA,EACX,OAAO,OAAW,IAAc,OAAU,CAAC,EAEhCC,EAAU",
|
|
6
6
|
"names": ["safeWindow", "version"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as A}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as A}from"./chunk-U63YDSPL.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as f}from"./chunk-YIF2ADTM.mjs";import{b as S}from"./chunk-3ZEUVYQF.mjs";import{a as y}from"./chunk-GWOW4TBY.mjs";import{a as g}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-ESLRNICJ.mjs";import{h as u}from"./chunk-2IUBMLF4.mjs";import{s as m}from"./chunk-SDFOOFQZ.mjs";import{b as T}from"./chunk-SAAOQW7P.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:a,onFail:t})=>{S({onSuccess:a,onFail:t})};this.send=async a=>{if(a.length===0)throw new Error("No transactions to send");try{if(!I(a))return await this.sendSignedTransactions(a);let t=await this.sendSignedBatchTransactions(a);if(!t.data||t.data.error)throw new Error(t.data?.error??"Failed to send transactions");return t.data.transactions}catch(t){throw t.response?.data?.message??t.message}};this.track=async(a,t={disableToasts:!1})=>{let n=this.sequentialToFlatArray(a).map(e=>({...e,status:e.status??"pending"})),o=g(n),s=y({transactions:n,transactionsDisplayInfo:t.transactionsDisplayInfo,status:o??"sent",sessionInformation:t.sessionInformation});if(t.disableToasts===!0)return s;let i=A(a);return f({toastId:s,totalDuration:i}),s};this.sendSignedTransactions=async a=>{let{apiAddress:t,apiTimeout:n}=T(m());return await Promise.all(a.map(async s=>{let i=await w.post(`${t}/transactions`,s.toPlainObject(),{timeout:Number(n)}),e=i.data.txHash;return{...s.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async a=>{let{address:t}=h(),{apiAddress:n,apiTimeout:o}=T(m());if(!t)return{error:"Invalid address provided. You need to be logged in to send transactions"};let s=this.buildBatchId(t),e={transactions:a.map(p=>p.map(c=>c.toPlainObject())),id:s},{data:l}=await w.post(`${n}/batch`,e,{timeout:Number(o)}),B=l.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return b({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...l,transactions:B}}};this.buildBatchId=a=>`${Date.now().toString()}${u}${a}`;this.sequentialToFlatArray=(a=[])=>this.getIsSequential(a)?a.flat():a;this.getIsSequential=a=>a?.every(t=>Array.isArray(t))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IGTJKYGR.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as e}from"./chunk-NHIO5LHC.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-ITHXLW7N.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as r}from"./chunk-PLTUKRYU.mjs";import{a as o}from"./chunk-VDMJZZU4.mjs";import{j as n}from"./chunk-65L5EBBL.mjs";var y=({toastId:a,address:e,status:s,transactions:t,transactionsDisplayInfo:i,startTime:c,endTime:T})=>{let m=n(s),p=t[0]?.action?.name,f=r({address:e,sender:t[0]?.interactor??"",toastId:a,status:s,transactionsDisplayInfo:i,txActionName:p}),u=o(t);return{toastDataState:f,processedTransactionsStatus:u,transactionProgressState:m?{endTime:T,startTime:c}:null,toastId:a,transactions:t}};export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-J2SRCAF3.mjs.map
|