@multiversx/sdk-dapp 5.0.2 → 5.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -17
- package/out/__chunks__/chunk-2DFE24NA.mjs +2 -0
- package/out/__chunks__/chunk-2ONA7QPD.mjs +2 -0
- package/out/__chunks__/chunk-2S4GDHPC.mjs +2 -0
- package/out/__chunks__/chunk-2XGXXRSH.mjs +2 -0
- package/out/__chunks__/chunk-3AALZJXX.mjs +2 -0
- package/out/__chunks__/chunk-3C5GZ3BL.mjs +2 -0
- package/out/__chunks__/chunk-3IKGFPT3.mjs +2 -0
- package/out/__chunks__/chunk-3OZWOKL7.mjs +2 -0
- package/out/__chunks__/chunk-52PGMMOM.mjs +2 -0
- package/out/__chunks__/chunk-5AGNJNHL.mjs +2 -0
- package/out/__chunks__/chunk-5AITBRJM.mjs +2 -0
- package/out/__chunks__/chunk-5E32AO3E.mjs +2 -0
- package/out/__chunks__/chunk-5IKWP24U.mjs +2 -0
- package/out/__chunks__/chunk-5J6OW5XP.mjs +2 -0
- package/out/__chunks__/chunk-5P5FMYGA.mjs +2 -0
- package/out/__chunks__/chunk-66LM6A7E.mjs +2 -0
- package/out/__chunks__/chunk-6D53LH5J.mjs +2 -0
- package/out/__chunks__/chunk-6JIZDYQM.mjs +2 -0
- package/out/__chunks__/chunk-6K6VHJWQ.mjs +2 -0
- package/out/__chunks__/chunk-7FEQBPHA.mjs +2 -0
- package/out/__chunks__/chunk-7YHMRUFS.mjs +2 -0
- package/out/__chunks__/chunk-AGUGUYQS.mjs +2 -0
- package/out/__chunks__/chunk-AWVWVATR.mjs +2 -0
- package/out/__chunks__/chunk-BYJK2EOI.mjs +2 -0
- package/out/__chunks__/chunk-C7NS47QA.mjs +2 -0
- package/out/__chunks__/chunk-CC4DXLNZ.mjs +2 -0
- package/out/__chunks__/chunk-CETMI3F5.mjs +2 -0
- package/out/__chunks__/chunk-D2ULWBRR.mjs +2 -0
- package/out/__chunks__/chunk-DF5ZV5BO.mjs +2 -0
- package/out/__chunks__/chunk-DFSBS3PX.mjs +2 -0
- package/out/__chunks__/chunk-DJWI5LZX.mjs +2 -0
- package/out/__chunks__/chunk-DLWDO7M6.mjs +2 -0
- package/out/__chunks__/chunk-DLWDO7M6.mjs.map +7 -0
- package/out/__chunks__/chunk-DOU66R4K.mjs +2 -0
- package/out/__chunks__/chunk-EJ2HUL6D.mjs +2 -0
- package/out/__chunks__/chunk-F5Q64A5W.mjs +2 -0
- package/out/__chunks__/chunk-FCIBGJDC.mjs +2 -0
- package/out/__chunks__/chunk-FKGDHZZJ.mjs +2 -0
- package/out/__chunks__/chunk-FNYBJAH3.mjs +2 -0
- package/out/__chunks__/chunk-GDF5AJ5S.mjs +2 -0
- package/out/__chunks__/chunk-GFR6K4DR.mjs +2 -0
- package/out/__chunks__/chunk-GMX4XDVR.mjs +2 -0
- package/out/__chunks__/chunk-GSMTFDRE.mjs +2 -0
- package/out/__chunks__/chunk-GUNYJMJE.mjs +2 -0
- package/out/__chunks__/chunk-GY2WKBFX.mjs +2 -0
- package/out/__chunks__/chunk-H33OUO77.mjs +2 -0
- package/out/__chunks__/chunk-H7E4BCEJ.mjs +2 -0
- package/out/__chunks__/chunk-HIKIVTTW.mjs +2 -0
- package/out/__chunks__/chunk-HLORMFN4.mjs +2 -0
- package/out/__chunks__/chunk-I5OYRIZC.mjs +2 -0
- package/out/__chunks__/chunk-IE3A2COQ.mjs +2 -0
- package/out/__chunks__/chunk-IFIL5YA5.mjs +2 -0
- package/out/__chunks__/chunk-IFIL5YA5.mjs.map +7 -0
- package/out/__chunks__/chunk-IINL5CEU.mjs +2 -0
- package/out/__chunks__/chunk-IVSP42IE.mjs +2 -0
- package/out/__chunks__/chunk-IWHUAAVD.mjs +2 -0
- package/out/__chunks__/chunk-IXGPMW52.mjs +2 -0
- package/out/__chunks__/chunk-J6N7KVXV.mjs +2 -0
- package/out/__chunks__/chunk-JAIA24ND.mjs +2 -0
- package/out/__chunks__/chunk-JIAKT3GI.mjs +2 -0
- package/out/__chunks__/chunk-JMC7CMTU.mjs +2 -0
- package/out/__chunks__/chunk-K4ITACAF.mjs +2 -0
- package/out/__chunks__/chunk-K7R2V5KX.mjs +2 -0
- package/out/__chunks__/chunk-KXK3FLN2.mjs +2 -0
- package/out/__chunks__/chunk-LM2GCQL5.mjs +2 -0
- package/out/__chunks__/chunk-LN5UXO64.mjs +2 -0
- package/out/__chunks__/chunk-LWDK4NX3.mjs +2 -0
- package/out/__chunks__/chunk-M2ZSNGPS.mjs +2 -0
- package/out/__chunks__/chunk-M5T2OACP.mjs +2 -0
- package/out/__chunks__/chunk-MDVI45IV.mjs +2 -0
- package/out/__chunks__/chunk-ML7FXWAD.mjs +2 -0
- package/out/__chunks__/chunk-MSQGMOCS.mjs +2 -0
- package/out/__chunks__/chunk-N5DIMOWZ.mjs +2 -0
- package/out/__chunks__/chunk-NEHR66XQ.mjs +2 -0
- package/out/__chunks__/chunk-NEHR66XQ.mjs.map +7 -0
- package/out/__chunks__/chunk-NKUK5GFB.mjs +2 -0
- package/out/__chunks__/chunk-NRXYSTRW.mjs +2 -0
- package/out/__chunks__/chunk-NRXYSTRW.mjs.map +7 -0
- package/out/__chunks__/chunk-NTEMINYA.mjs +2 -0
- package/out/__chunks__/chunk-NTEMINYA.mjs.map +7 -0
- package/out/__chunks__/chunk-NVE5YTZK.mjs +2 -0
- package/out/__chunks__/chunk-ODPJDT5F.mjs +2 -0
- package/out/__chunks__/chunk-ODPJDT5F.mjs.map +7 -0
- package/out/__chunks__/chunk-OLOCTHIE.mjs +2 -0
- package/out/__chunks__/chunk-OX6DILCF.mjs +2 -0
- package/out/__chunks__/chunk-P4QMB34E.mjs +2 -0
- package/out/__chunks__/chunk-P4QMB34E.mjs.map +7 -0
- package/out/__chunks__/chunk-PDEIJQWE.mjs +2 -0
- package/out/__chunks__/chunk-PHOF3Z5D.mjs +2 -0
- package/out/__chunks__/chunk-PJWJZHIS.mjs +2 -0
- package/out/__chunks__/chunk-PJWJZHIS.mjs.map +7 -0
- package/out/__chunks__/chunk-PWXGNRYT.mjs +2 -0
- package/out/__chunks__/chunk-PWXGNRYT.mjs.map +7 -0
- package/out/__chunks__/chunk-Q5Z34JFU.mjs +3 -0
- package/out/__chunks__/chunk-QAHFVBCD.mjs +2 -0
- package/out/__chunks__/chunk-QGNMCCFK.mjs +2 -0
- package/out/__chunks__/chunk-QQAW7UC2.mjs +2 -0
- package/out/__chunks__/chunk-QS2RBVTW.mjs +2 -0
- package/out/__chunks__/chunk-RD2EB7NA.mjs +2 -0
- package/out/__chunks__/chunk-RHCAOCW3.mjs +2 -0
- package/out/__chunks__/chunk-RPTQJKFR.mjs +2 -0
- package/out/__chunks__/chunk-RSVM3MZD.mjs +2 -0
- package/out/__chunks__/chunk-RU7UYXPW.mjs +2 -0
- package/out/__chunks__/chunk-S5VF4GWN.mjs +2 -0
- package/out/__chunks__/chunk-S6EACMBJ.mjs +2 -0
- package/out/__chunks__/chunk-SKCBMUQL.mjs +2 -0
- package/out/__chunks__/chunk-TRIPQLQM.mjs +2 -0
- package/out/__chunks__/chunk-TZ2EDK3R.mjs +2 -0
- package/out/__chunks__/chunk-U3UMCTU6.mjs +2 -0
- package/out/__chunks__/chunk-U4ZCGUVE.mjs +2 -0
- package/out/__chunks__/chunk-U7E2AVPF.mjs +2 -0
- package/out/__chunks__/chunk-UCJMQJM4.mjs +2 -0
- package/out/__chunks__/chunk-UCNS6KD5.mjs +2 -0
- package/out/__chunks__/chunk-UERJ6AKK.mjs +2 -0
- package/out/__chunks__/chunk-UK5MEKBE.mjs +2 -0
- package/out/__chunks__/chunk-UKGXMWHE.mjs +2 -0
- package/out/__chunks__/chunk-UO4CECP4.mjs +2 -0
- package/out/__chunks__/chunk-UTN4SJ54.mjs +2 -0
- package/out/__chunks__/chunk-UVN6CHEM.mjs +2 -0
- package/out/__chunks__/chunk-VG7UDG2S.mjs +2 -0
- package/out/__chunks__/chunk-WBPXPWSV.mjs +2 -0
- package/out/__chunks__/chunk-WIHG6SHO.mjs +2 -0
- package/out/__chunks__/chunk-WTBHS6AM.mjs +2 -0
- package/out/__chunks__/chunk-WZGG2YKQ.mjs +2 -0
- package/out/__chunks__/chunk-XCVEFI4B.mjs +2 -0
- package/out/__chunks__/chunk-XFYYVB6G.mjs +2 -0
- package/out/__chunks__/chunk-YNXPGS77.mjs +2 -0
- package/out/__chunks__/chunk-YTA6XGBJ.mjs +2 -0
- package/out/__chunks__/chunk-YVVAPGXF.mjs +2 -0
- package/out/__mocks__/data/index.mjs +1 -1
- package/out/__mocks__/index.mjs +1 -1
- package/out/__mocks__/server.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/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.mjs +1 -1
- package/out/controllers/FormatAmountController/index.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.d.ts +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/controllers/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkCore.d.ts +2 -1
- package/out/lib/sdkCore.mjs +1 -1
- package/out/lib/sdkDappUi.d.ts +10 -11
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/lib/sdkDappUtils.d.ts +1 -1
- package/out/lib/sdkDappUtils.mjs +1 -1
- package/out/lib/sdkWebviewProvider.d.ts +1 -0
- package/out/lib/sdkWebviewProvider.mjs +2 -0
- package/out/lib/sdkWebviewProvider.mjs.map +7 -0
- 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/isCrossShardTransaction.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.mjs.map +3 -3
- 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/getVerifier.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.mjs +1 -1
- package/out/store/selectors/index.mjs +1 -1
- package/out/store/slices/account/accountSlice.mjs +1 -1
- package/out/store/slices/account/emptyAccount.mjs +1 -1
- package/out/store/slices/account/index.mjs +1 -1
- package/out/store/slices/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/utils/ComponentFactory.d.ts +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/operations/trimAmountDecimals.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.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/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/getAssetAmount.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.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.mjs +1 -1
- package/out/utils/validation/index.mjs +1 -1
- package/out/utils/validation/isContract.mjs +1 -1
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.d.ts +2 -1
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs.map +1 -1
- package/out/utils/walletconnect/__sdkWalletconnectProvider.d.ts +2 -1
- package/out/utils/walletconnect/__sdkWalletconnectProvider.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 +2 -2
- package/out/__chunks__/chunk-266T724O.mjs +0 -2
- package/out/__chunks__/chunk-2I4BJK55.mjs +0 -2
- package/out/__chunks__/chunk-2SOS3KAT.mjs +0 -2
- package/out/__chunks__/chunk-36VCBI2F.mjs +0 -2
- package/out/__chunks__/chunk-3MWXXTQQ.mjs +0 -2
- package/out/__chunks__/chunk-4X3GF5DF.mjs +0 -2
- package/out/__chunks__/chunk-54I7T2PP.mjs +0 -2
- package/out/__chunks__/chunk-5ECETGF7.mjs +0 -2
- package/out/__chunks__/chunk-62EX26PE.mjs +0 -2
- package/out/__chunks__/chunk-673M5M6E.mjs +0 -2
- package/out/__chunks__/chunk-6EBIYJLF.mjs +0 -2
- package/out/__chunks__/chunk-6IACSXVX.mjs +0 -2
- package/out/__chunks__/chunk-6JEPIISC.mjs +0 -2
- package/out/__chunks__/chunk-6RAMYSEC.mjs +0 -2
- package/out/__chunks__/chunk-6RJQVLIY.mjs +0 -2
- package/out/__chunks__/chunk-6TJVNG7O.mjs +0 -2
- package/out/__chunks__/chunk-6W67LK22.mjs +0 -2
- package/out/__chunks__/chunk-7BP53CXF.mjs +0 -2
- package/out/__chunks__/chunk-7D7CRUIW.mjs +0 -2
- package/out/__chunks__/chunk-7D7CRUIW.mjs.map +0 -7
- package/out/__chunks__/chunk-A4RNPJJW.mjs +0 -2
- package/out/__chunks__/chunk-A6IG4DO6.mjs +0 -2
- package/out/__chunks__/chunk-ABHYXD3U.mjs +0 -2
- package/out/__chunks__/chunk-AV4HSXYZ.mjs +0 -2
- package/out/__chunks__/chunk-AZMKY66I.mjs +0 -2
- package/out/__chunks__/chunk-BRBIUWAW.mjs +0 -2
- package/out/__chunks__/chunk-BSWV5MEC.mjs +0 -2
- package/out/__chunks__/chunk-BVKUZJNB.mjs +0 -2
- package/out/__chunks__/chunk-C5X7N2AN.mjs +0 -2
- package/out/__chunks__/chunk-C6NGX4MC.mjs +0 -2
- package/out/__chunks__/chunk-COZTBWPH.mjs +0 -2
- package/out/__chunks__/chunk-CQ5GZXM5.mjs +0 -2
- package/out/__chunks__/chunk-D5IP4ZG2.mjs +0 -2
- package/out/__chunks__/chunk-DHPD6E7P.mjs +0 -2
- package/out/__chunks__/chunk-DIV6ZH5K.mjs +0 -2
- package/out/__chunks__/chunk-DNHKXKYY.mjs +0 -2
- package/out/__chunks__/chunk-DPUWJW5E.mjs +0 -2
- package/out/__chunks__/chunk-DT6YLEPL.mjs +0 -2
- package/out/__chunks__/chunk-DV3XIKOX.mjs +0 -2
- package/out/__chunks__/chunk-EQEYL6AE.mjs +0 -2
- package/out/__chunks__/chunk-EVTERXBU.mjs +0 -2
- package/out/__chunks__/chunk-FEFZKA2B.mjs +0 -2
- package/out/__chunks__/chunk-FFHVVGYW.mjs +0 -2
- package/out/__chunks__/chunk-FFHVVGYW.mjs.map +0 -7
- package/out/__chunks__/chunk-FIVH6RKU.mjs +0 -2
- package/out/__chunks__/chunk-FZS7JL2U.mjs +0 -2
- package/out/__chunks__/chunk-HCAXI2LY.mjs +0 -2
- package/out/__chunks__/chunk-HVEI4BFC.mjs +0 -2
- package/out/__chunks__/chunk-HVEI4BFC.mjs.map +0 -7
- package/out/__chunks__/chunk-I6BAZCYU.mjs +0 -2
- package/out/__chunks__/chunk-I7NIOE4D.mjs +0 -2
- package/out/__chunks__/chunk-ICZ6YALG.mjs +0 -2
- package/out/__chunks__/chunk-IHKF4UNO.mjs +0 -2
- package/out/__chunks__/chunk-IP3MMHXY.mjs +0 -2
- package/out/__chunks__/chunk-ISPRIGOE.mjs +0 -2
- package/out/__chunks__/chunk-J4CPYFK6.mjs +0 -2
- package/out/__chunks__/chunk-J4CPYFK6.mjs.map +0 -7
- package/out/__chunks__/chunk-JESUVU73.mjs +0 -2
- package/out/__chunks__/chunk-JIJSBQEU.mjs +0 -2
- package/out/__chunks__/chunk-JQ47IJOB.mjs +0 -2
- package/out/__chunks__/chunk-JQTCROGW.mjs +0 -2
- package/out/__chunks__/chunk-KDCMWWIT.mjs +0 -2
- package/out/__chunks__/chunk-KGXIPD5I.mjs +0 -2
- package/out/__chunks__/chunk-KIQBMB2Y.mjs +0 -2
- package/out/__chunks__/chunk-KN7QMGWV.mjs +0 -2
- package/out/__chunks__/chunk-KO5KDKZ7.mjs +0 -2
- package/out/__chunks__/chunk-KSKOSHYV.mjs +0 -2
- package/out/__chunks__/chunk-KU74A6T3.mjs +0 -2
- package/out/__chunks__/chunk-KZC44J42.mjs +0 -2
- package/out/__chunks__/chunk-LIPGE2RA.mjs +0 -2
- package/out/__chunks__/chunk-LJ5JGAYL.mjs +0 -2
- package/out/__chunks__/chunk-LTHGO7JM.mjs +0 -2
- package/out/__chunks__/chunk-LUDF7ZUR.mjs +0 -2
- package/out/__chunks__/chunk-M7EUMCPG.mjs +0 -2
- package/out/__chunks__/chunk-MD7CSIXL.mjs +0 -2
- package/out/__chunks__/chunk-MELQLFCR.mjs +0 -2
- package/out/__chunks__/chunk-MFK6BEXF.mjs +0 -2
- package/out/__chunks__/chunk-MOOY3SNQ.mjs +0 -2
- package/out/__chunks__/chunk-MYSCFOXV.mjs +0 -2
- package/out/__chunks__/chunk-NO7YH2FT.mjs +0 -2
- package/out/__chunks__/chunk-O3V4TGXK.mjs +0 -2
- package/out/__chunks__/chunk-O4DQ3TWG.mjs +0 -2
- package/out/__chunks__/chunk-OZCEAS6L.mjs +0 -2
- package/out/__chunks__/chunk-P3BXXGQA.mjs +0 -2
- package/out/__chunks__/chunk-PFXB2A66.mjs +0 -2
- package/out/__chunks__/chunk-PFXB2A66.mjs.map +0 -7
- package/out/__chunks__/chunk-PO27JYMA.mjs +0 -2
- package/out/__chunks__/chunk-PQY2A63Y.mjs +0 -2
- package/out/__chunks__/chunk-PWEOLD6L.mjs +0 -2
- package/out/__chunks__/chunk-PWEOLD6L.mjs.map +0 -7
- package/out/__chunks__/chunk-QJSB5NX4.mjs +0 -2
- package/out/__chunks__/chunk-QSBLXZFC.mjs +0 -2
- package/out/__chunks__/chunk-QZGJ5DCM.mjs +0 -2
- package/out/__chunks__/chunk-R53MCZI6.mjs +0 -2
- package/out/__chunks__/chunk-R53MCZI6.mjs.map +0 -7
- package/out/__chunks__/chunk-R5SGFTE7.mjs +0 -2
- package/out/__chunks__/chunk-ROYSFSCI.mjs +0 -2
- package/out/__chunks__/chunk-RT44V62F.mjs +0 -2
- package/out/__chunks__/chunk-RU7LAHKK.mjs +0 -2
- package/out/__chunks__/chunk-RVEEVVOA.mjs +0 -2
- package/out/__chunks__/chunk-SRX2EMTG.mjs +0 -2
- package/out/__chunks__/chunk-SXECAH2A.mjs +0 -2
- package/out/__chunks__/chunk-T2BUXSZ5.mjs +0 -2
- package/out/__chunks__/chunk-T4BJTXVW.mjs +0 -2
- package/out/__chunks__/chunk-U22MXHMS.mjs +0 -2
- package/out/__chunks__/chunk-U7R4JK6U.mjs +0 -2
- package/out/__chunks__/chunk-UAW7SD6P.mjs +0 -2
- package/out/__chunks__/chunk-V4Z4FQJO.mjs +0 -2
- package/out/__chunks__/chunk-VJ2DAL5M.mjs +0 -2
- package/out/__chunks__/chunk-VMFJUT3G.mjs +0 -2
- package/out/__chunks__/chunk-VMFJUT3G.mjs.map +0 -7
- package/out/__chunks__/chunk-VTJUZ3TY.mjs +0 -2
- package/out/__chunks__/chunk-VWYDJFJH.mjs +0 -2
- package/out/__chunks__/chunk-XALHL7VA.mjs +0 -2
- package/out/__chunks__/chunk-XLVZQDL3.mjs +0 -2
- package/out/__chunks__/chunk-XTJQ2D6K.mjs +0 -2
- package/out/__chunks__/chunk-XVAA5JSP.mjs +0 -2
- package/out/__chunks__/chunk-XVFVG64Y.mjs +0 -2
- package/out/__chunks__/chunk-YB7AHPBR.mjs +0 -2
- package/out/__chunks__/chunk-YMNKYTXZ.mjs +0 -2
- package/out/__chunks__/chunk-YNEVRTJM.mjs +0 -2
- package/out/__chunks__/chunk-YRCMHPYS.mjs +0 -2
- package/out/__chunks__/chunk-YTFYVPZO.mjs +0 -2
- package/out/__chunks__/chunk-YUIJMELA.mjs +0 -2
- package/out/__chunks__/chunk-Z5CDCI3Y.mjs +0 -2
- package/out/__chunks__/chunk-ZU7V2CMU.mjs +0 -2
- package/out/__chunks__/chunk-ZXIBFH6X.mjs +0 -3
- package/out/__mocks__/accountConfig.js +0 -9
- package/out/__mocks__/accountConfig.js.map +0 -1
- package/out/__mocks__/data/account.js +0 -14
- package/out/__mocks__/data/account.js.map +0 -1
- package/out/__mocks__/data/blocks.js +0 -10
- package/out/__mocks__/data/blocks.js.map +0 -1
- package/out/__mocks__/data/dappConfig.js +0 -19
- package/out/__mocks__/data/dappConfig.js.map +0 -1
- package/out/__mocks__/data/index.js +0 -24
- package/out/__mocks__/data/index.js.map +0 -1
- package/out/__mocks__/data/networkConfig.js +0 -32
- package/out/__mocks__/data/networkConfig.js.map +0 -1
- package/out/__mocks__/data/socketResponse.js +0 -11
- package/out/__mocks__/data/socketResponse.js.map +0 -1
- package/out/__mocks__/data/websocketConfig.js +0 -5
- package/out/__mocks__/data/websocketConfig.js.map +0 -1
- package/out/__mocks__/data/wrapEgldContract.js +0 -30
- package/out/__mocks__/data/wrapEgldContract.js.map +0 -1
- package/out/__mocks__/index.js +0 -20
- package/out/__mocks__/index.js.map +0 -1
- package/out/__mocks__/server.js +0 -26
- package/out/__mocks__/server.js.map +0 -1
- package/out/__mocks__/utils/index.js +0 -19
- package/out/__mocks__/utils/index.js.map +0 -1
- package/out/__mocks__/utils/mockWindowHistory.js +0 -21
- package/out/__mocks__/utils/mockWindowHistory.js.map +0 -1
- package/out/__mocks__/utils/mockWindowLocation.js +0 -21
- package/out/__mocks__/utils/mockWindowLocation.js.map +0 -1
- package/out/apiCalls/account/getAccountFromApi.js +0 -32
- package/out/apiCalls/account/getAccountFromApi.js.map +0 -1
- package/out/apiCalls/account/getScamAddressData.js +0 -19
- package/out/apiCalls/account/getScamAddressData.js.map +0 -1
- package/out/apiCalls/account/index.js +0 -18
- package/out/apiCalls/account/index.js.map +0 -1
- package/out/apiCalls/configuration/getCleanApiAddress.js +0 -12
- package/out/apiCalls/configuration/getCleanApiAddress.js.map +0 -1
- package/out/apiCalls/configuration/getGasStationMetadata.js +0 -32
- package/out/apiCalls/configuration/getGasStationMetadata.js.map +0 -1
- package/out/apiCalls/configuration/getNetworkConfigFromApi.js +0 -34
- package/out/apiCalls/configuration/getNetworkConfigFromApi.js.map +0 -1
- package/out/apiCalls/configuration/getServerConfiguration.js +0 -34
- package/out/apiCalls/configuration/getServerConfiguration.js.map +0 -1
- package/out/apiCalls/configuration/index.js +0 -19
- package/out/apiCalls/configuration/index.js.map +0 -1
- package/out/apiCalls/economics/getEconomics.js +0 -23
- package/out/apiCalls/economics/getEconomics.js.map +0 -1
- package/out/apiCalls/endpoints.js +0 -29
- package/out/apiCalls/endpoints.js.map +0 -1
- package/out/apiCalls/index.js +0 -23
- package/out/apiCalls/index.js.map +0 -1
- package/out/apiCalls/tokens/getPersistedToken.js +0 -20
- package/out/apiCalls/tokens/getPersistedToken.js.map +0 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.js +0 -51
- package/out/apiCalls/tokens/getPersistedTokenDetails.js.map +0 -1
- package/out/apiCalls/tokens/getTokenDetails.js +0 -53
- package/out/apiCalls/tokens/getTokenDetails.js.map +0 -1
- package/out/apiCalls/tokens/index.js +0 -18
- package/out/apiCalls/tokens/index.js.map +0 -1
- package/out/apiCalls/tokens/tokenDataStorage.js +0 -36
- package/out/apiCalls/tokens/tokenDataStorage.js.map +0 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.js +0 -22
- package/out/apiCalls/transactions/getServerTransactionsByHashes.js.map +0 -1
- package/out/apiCalls/transactions/getTransactionByHash.js +0 -18
- package/out/apiCalls/transactions/getTransactionByHash.js.map +0 -1
- package/out/apiCalls/transactions/getTransactions.js +0 -30
- package/out/apiCalls/transactions/getTransactions.js.map +0 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.js +0 -21
- package/out/apiCalls/transactions/getTransactionsByHashes.js.map +0 -1
- package/out/apiCalls/utils/axiosFetcher.js +0 -7
- package/out/apiCalls/utils/axiosFetcher.js.map +0 -1
- package/out/apiCalls/utils/axiosInstance.js +0 -83
- package/out/apiCalls/utils/axiosInstance.js.map +0 -1
- package/out/apiCalls/utils/getCleanApiAddress.js +0 -8
- package/out/apiCalls/utils/getCleanApiAddress.js.map +0 -1
- package/out/apiCalls/utils/index.js +0 -20
- package/out/apiCalls/utils/index.js.map +0 -1
- package/out/apiCalls/websocket/getWebsocketUrl.js +0 -19
- package/out/apiCalls/websocket/getWebsocketUrl.js.map +0 -1
- package/out/apiCalls/websocket/index.js +0 -18
- package/out/apiCalls/websocket/index.js.map +0 -1
- package/out/constants/UITags.enum.js +0 -14
- package/out/constants/UITags.enum.js.map +0 -1
- package/out/constants/browser.constants.js +0 -9
- package/out/constants/browser.constants.js.map +0 -1
- package/out/constants/index.js +0 -27
- package/out/constants/index.js.map +0 -1
- package/out/constants/ledger.constants.js +0 -96
- package/out/constants/ledger.constants.js.map +0 -1
- package/out/constants/mvx.constants.js +0 -18
- package/out/constants/mvx.constants.js.map +0 -1
- package/out/constants/network.constants.js +0 -76
- package/out/constants/network.constants.js.map +0 -1
- package/out/constants/placeholders.constants.js +0 -11
- package/out/constants/placeholders.constants.js.map +0 -1
- package/out/constants/providerFactory.constants.js +0 -15
- package/out/constants/providerFactory.constants.js.map +0 -1
- package/out/constants/storage.constants.js +0 -13
- package/out/constants/storage.constants.js.map +0 -1
- package/out/constants/transactions.constants.js +0 -16
- package/out/constants/transactions.constants.js.map +0 -1
- package/out/constants/walletConnect.constants.js +0 -9
- package/out/constants/walletConnect.constants.js.map +0 -1
- package/out/constants/webWalletProvider.constants.js +0 -15
- package/out/constants/webWalletProvider.constants.js.map +0 -1
- package/out/constants/websocket.constants.js +0 -14
- package/out/constants/websocket.constants.js.map +0 -1
- package/out/constants/window.constants.js +0 -6
- package/out/constants/window.constants.js.map +0 -1
- package/out/controllers/FormatAmountController/FormatAmountController.js +0 -35
- package/out/controllers/FormatAmountController/FormatAmountController.js.map +0 -1
- package/out/controllers/FormatAmountController/index.js +0 -18
- package/out/controllers/FormatAmountController/index.js.map +0 -1
- package/out/controllers/FormatAmountController/tests/formatAmountController.test.js +0 -94
- package/out/controllers/FormatAmountController/tests/formatAmountController.test.js.map +0 -1
- package/out/controllers/FormatAmountController/types.js +0 -3
- package/out/controllers/FormatAmountController/types.js.map +0 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.js +0 -12
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.js.map +0 -1
- package/out/controllers/TransactionsHistoryController/index.js +0 -18
- package/out/controllers/TransactionsHistoryController/index.js.map +0 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.js +0 -104
- package/out/controllers/TransactionsTableController/TransactionsTableController.js.map +0 -1
- package/out/controllers/TransactionsTableController/index.js +0 -18
- package/out/controllers/TransactionsTableController/index.js.map +0 -1
- package/out/controllers/TransactionsTableController/tests/transactionsTableController.test.js +0 -299
- package/out/controllers/TransactionsTableController/tests/transactionsTableController.test.js.map +0 -1
- package/out/controllers/TransactionsTableController/transactionsTableController.types.js +0 -3
- package/out/controllers/TransactionsTableController/transactionsTableController.types.js.map +0 -1
- package/out/controllers/index.js +0 -18
- package/out/controllers/index.js.map +0 -1
- package/out/index.js +0 -23
- package/out/index.js.map +0 -1
- package/out/lib/sdkCore.js +0 -15
- package/out/lib/sdkCore.js.map +0 -1
- package/out/lib/sdkDappUi.js +0 -37
- package/out/lib/sdkDappUi.js.map +0 -1
- package/out/lib/sdkDappUtils.js +0 -16
- package/out/lib/sdkDappUtils.js.map +0 -1
- package/out/lib/sdkWebWalletCrossWindowProvider.js +0 -9
- package/out/lib/sdkWebWalletCrossWindowProvider.js.map +0 -1
- package/out/lib/sdkWebWalletIframeProvider.js +0 -6
- package/out/lib/sdkWebWalletIframeProvider.js.map +0 -1
- package/out/managers/LogoutManager/LogoutManager.js +0 -137
- package/out/managers/LogoutManager/LogoutManager.js.map +0 -1
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js +0 -33
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.js.map +0 -1
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js +0 -48
- package/out/managers/LogoutManager/helpers/tests/getHumanReadableTokenExpirationTime.test.js.map +0 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js +0 -115
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.js.map +0 -1
- package/out/managers/NotificationsFeedManager/index.js +0 -19
- package/out/managers/NotificationsFeedManager/index.js.map +0 -1
- package/out/managers/NotificationsFeedManager/types/index.js +0 -18
- package/out/managers/NotificationsFeedManager/types/index.js.map +0 -1
- package/out/managers/NotificationsFeedManager/types/notifications.types.js +0 -14
- package/out/managers/NotificationsFeedManager/types/notifications.types.js.map +0 -1
- package/out/managers/TransactionManager/TransactionManager.js +0 -154
- package/out/managers/TransactionManager/TransactionManager.js.map +0 -1
- package/out/managers/TransactionManager/TransactionManager.types.js +0 -3
- package/out/managers/TransactionManager/TransactionManager.types.js.map +0 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.js +0 -26
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.js.map +0 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.js +0 -28
- package/out/managers/TransactionManager/helpers/getToastDuration.js.map +0 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.js +0 -25
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.js.map +0 -1
- package/out/managers/TransactionManager/helpers/isBatchTransaction.js +0 -8
- package/out/managers/TransactionManager/helpers/isBatchTransaction.js.map +0 -1
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.js +0 -22
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.js.map +0 -1
- package/out/managers/TransactionManager/helpers/sessionCallbacks.js +0 -14
- package/out/managers/TransactionManager/helpers/sessionCallbacks.js.map +0 -1
- package/out/managers/TransactionManager/index.js +0 -18
- package/out/managers/TransactionManager/index.js.map +0 -1
- package/out/managers/TransactionManager/tests/getAreTransactionsOnCrossShards.test.js +0 -124
- package/out/managers/TransactionManager/tests/getAreTransactionsOnCrossShards.test.js.map +0 -1
- package/out/managers/TransactionManager/tests/getToastDuration.test.js +0 -61
- package/out/managers/TransactionManager/tests/getToastDuration.test.js.map +0 -1
- package/out/managers/TransactionManager/tests/getTransactionsStatus.test.js +0 -79
- package/out/managers/TransactionManager/tests/getTransactionsStatus.test.js.map +0 -1
- package/out/managers/TransactionManager/tests/isCrossShardTransaction.test.js +0 -49
- package/out/managers/TransactionManager/tests/isCrossShardTransaction.test.js.map +0 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.js +0 -123
- package/out/managers/UnlockPanelManager/UnlockPanelManager.js.map +0 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.js +0 -16
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.js.map +0 -1
- package/out/managers/UnlockPanelManager/index.js +0 -18
- package/out/managers/UnlockPanelManager/index.js.map +0 -1
- package/out/managers/index.js +0 -19
- package/out/managers/index.js.map +0 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.js +0 -153
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.js.map +0 -1
- package/out/managers/internal/LedgerConnectStateManager/index.js +0 -19
- package/out/managers/internal/LedgerConnectStateManager/index.js.map +0 -1
- package/out/managers/internal/LedgerConnectStateManager/types/index.js +0 -18
- package/out/managers/internal/LedgerConnectStateManager/types/index.js.map +0 -1
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.js +0 -13
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.js.map +0 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js +0 -101
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.js.map +0 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js +0 -34
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.js.map +0 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.js +0 -19
- package/out/managers/internal/PendingTransactionsStateManager/index.js.map +0 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/index.js +0 -18
- package/out/managers/internal/PendingTransactionsStateManager/types/index.js.map +0 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.js +0 -10
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.js.map +0 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.js +0 -38
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.js.map +0 -1
- package/out/managers/internal/SidePanelBaseManager/index.js +0 -18
- package/out/managers/internal/SidePanelBaseManager/index.js.map +0 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.js +0 -115
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.js.map +0 -1
- package/out/managers/internal/SignTransactionsStateManager/index.js +0 -18
- package/out/managers/internal/SignTransactionsStateManager/index.js.map +0 -1
- package/out/managers/internal/SignTransactionsStateManager/types/index.js +0 -18
- package/out/managers/internal/SignTransactionsStateManager/types/index.js.map +0 -1
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.js +0 -13
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.js.map +0 -1
- package/out/managers/internal/ToastManager/ToastManager.js +0 -208
- package/out/managers/internal/ToastManager/ToastManager.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.js +0 -50
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.js +0 -61
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.js +0 -32
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.js +0 -78
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.js +0 -16
- package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/baseTransactionMock.js +0 -17
- package/out/managers/internal/ToastManager/helpers/tests/baseTransactionMock.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/createToastsFromTransactions.test.js +0 -164
- package/out/managers/internal/ToastManager/helpers/tests/createToastsFromTransactions.test.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/createTransactionToast.test.js +0 -150
- package/out/managers/internal/ToastManager/helpers/tests/createTransactionToast.test.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/getToastDataStateByStatus.test.js +0 -112
- package/out/managers/internal/ToastManager/helpers/tests/getToastDataStateByStatus.test.js.map +0 -1
- package/out/managers/internal/ToastManager/helpers/tests/getToastTransactionsStatus.test.js +0 -60
- package/out/managers/internal/ToastManager/helpers/tests/getToastTransactionsStatus.test.js.map +0 -1
- package/out/managers/internal/ToastManager/tests/getToastProceededStatus.test.js +0 -79
- package/out/managers/internal/ToastManager/tests/getToastProceededStatus.test.js.map +0 -1
- package/out/managers/internal/ToastManager/types/index.js +0 -18
- package/out/managers/internal/ToastManager/types/index.js.map +0 -1
- package/out/managers/internal/ToastManager/types/toast.types.js +0 -24
- package/out/managers/internal/ToastManager/types/toast.types.js.map +0 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.js +0 -75
- package/out/managers/internal/UIBaseManager/UIBaseManager.js.map +0 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js +0 -49
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.js.map +0 -1
- package/out/managers/internal/WalletConnectStateManager/index.js +0 -18
- package/out/managers/internal/WalletConnectStateManager/index.js.map +0 -1
- package/out/managers/internal/index.js +0 -12
- package/out/managers/internal/index.js.map +0 -1
- package/out/methods/account/getAccount.js +0 -10
- package/out/methods/account/getAccount.js.map +0 -1
- package/out/methods/account/getAccountInfo.js +0 -10
- package/out/methods/account/getAccountInfo.js.map +0 -1
- package/out/methods/account/getAddress.js +0 -10
- package/out/methods/account/getAddress.js.map +0 -1
- package/out/methods/account/getIsLoggedIn.js +0 -10
- package/out/methods/account/getIsLoggedIn.js.map +0 -1
- package/out/methods/account/getLatestNonce.js +0 -29
- package/out/methods/account/getLatestNonce.js.map +0 -1
- package/out/methods/account/tests/getLatestNonce.test.js +0 -81
- package/out/methods/account/tests/getLatestNonce.test.js.map +0 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.js +0 -37
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.js.map +0 -1
- package/out/methods/initApp/initApp.js +0 -101
- package/out/methods/initApp/initApp.js.map +0 -1
- package/out/methods/initApp/initApp.types.js +0 -3
- package/out/methods/initApp/initApp.types.js.map +0 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.js +0 -156
- package/out/methods/initApp/websocket/initializeWebsocketConnection.js.map +0 -1
- package/out/methods/initApp/websocket/registerWebsocket.js +0 -28
- package/out/methods/initApp/websocket/registerWebsocket.js.map +0 -1
- package/out/methods/loginInfo/getLoginInfo.js +0 -14
- package/out/methods/loginInfo/getLoginInfo.js.map +0 -1
- package/out/methods/network/getEgldLabel.js +0 -10
- package/out/methods/network/getEgldLabel.js.map +0 -1
- package/out/methods/network/getExplorerAddress.js +0 -10
- package/out/methods/network/getExplorerAddress.js.map +0 -1
- package/out/methods/network/getNetworkConfig.js +0 -10
- package/out/methods/network/getNetworkConfig.js.map +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js +0 -118
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.js.map +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.js +0 -19
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.js.map +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.js +0 -16
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.js.map +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.js +0 -18
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.js.map +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js +0 -29
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.js.map +0 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js +0 -24
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.js.map +0 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.js +0 -16
- package/out/methods/trackTransactions/helpers/getPollingInterval.js.map +0 -1
- package/out/methods/trackTransactions/trackTransactions.js +0 -89
- package/out/methods/trackTransactions/trackTransactions.js.map +0 -1
- package/out/methods/transactions/getFailedTransactions.js +0 -10
- package/out/methods/transactions/getFailedTransactions.js.map +0 -1
- package/out/methods/transactions/getFailedTransactionsSessions.js +0 -10
- package/out/methods/transactions/getFailedTransactionsSessions.js.map +0 -1
- package/out/methods/transactions/getPendingTransactions.js +0 -10
- package/out/methods/transactions/getPendingTransactions.js.map +0 -1
- package/out/methods/transactions/getPendingTransactionsSessions.js +0 -10
- package/out/methods/transactions/getPendingTransactionsSessions.js.map +0 -1
- package/out/methods/transactions/getSuccessfulTransactions.js +0 -10
- package/out/methods/transactions/getSuccessfulTransactions.js.map +0 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.js +0 -10
- package/out/methods/transactions/getSuccessfulTransactionsSessions.js.map +0 -1
- package/out/methods/transactions/getTransactionSessions.js +0 -10
- package/out/methods/transactions/getTransactionSessions.js.map +0 -1
- package/out/providers/DappProvider/DappProvider.js +0 -92
- package/out/providers/DappProvider/DappProvider.js.map +0 -1
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.js +0 -15
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.js.map +0 -1
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.js +0 -22
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.js.map +0 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.js +0 -40
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.js.map +0 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.js +0 -18
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.js.map +0 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.js +0 -18
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.js.map +0 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.js +0 -30
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.js.map +0 -1
- package/out/providers/DappProvider/helpers/login/helpers/tests/getModifiedLoginToken.test.js +0 -35
- package/out/providers/DappProvider/helpers/login/helpers/tests/getModifiedLoginToken.test.js.map +0 -1
- package/out/providers/DappProvider/helpers/login/login.js +0 -89
- package/out/providers/DappProvider/helpers/login/login.js.map +0 -1
- package/out/providers/DappProvider/helpers/logout/logout.js +0 -40
- package/out/providers/DappProvider/helpers/logout/logout.js.map +0 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.js +0 -54
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.js.map +0 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.js +0 -10
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.js.map +0 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.js +0 -16
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.js.map +0 -1
- package/out/providers/DappProvider/helpers/signMessage/tests/verifyMessage.test.js +0 -18
- package/out/providers/DappProvider/helpers/signMessage/tests/verifyMessage.test.js.map +0 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.js +0 -36
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.js.map +0 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.js +0 -34
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.js.map +0 -1
- package/out/providers/DappProvider/index.js +0 -18
- package/out/providers/DappProvider/index.js.map +0 -1
- package/out/providers/ProviderFactory.js +0 -104
- package/out/providers/ProviderFactory.js.map +0 -1
- package/out/providers/helpers/accountProvider.js +0 -15
- package/out/providers/helpers/accountProvider.js.map +0 -1
- package/out/providers/helpers/cancelCrossWindowAction.js +0 -15
- package/out/providers/helpers/cancelCrossWindowAction.js.map +0 -1
- package/out/providers/helpers/clearInitiatedLogins.js +0 -36
- package/out/providers/helpers/clearInitiatedLogins.js.map +0 -1
- package/out/providers/helpers/emptyProvider.js +0 -57
- package/out/providers/helpers/emptyProvider.js.map +0 -1
- package/out/providers/helpers/restoreProvider.js +0 -35
- package/out/providers/helpers/restoreProvider.js.map +0 -1
- package/out/providers/index.js +0 -21
- package/out/providers/index.js.map +0 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js +0 -108
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.js.map +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js +0 -86
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.js.map +0 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.js +0 -18
- package/out/providers/strategies/CrossWindowProviderStrategy/index.js.map +0 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js +0 -76
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.js.map +0 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.js +0 -18
- package/out/providers/strategies/ExtensionProviderStrategy/index.js.map +0 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js +0 -100
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.js.map +0 -1
- package/out/providers/strategies/IframeProviderStrategy/index.js +0 -19
- package/out/providers/strategies/IframeProviderStrategy/index.js.map +0 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.js +0 -3
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.js.map +0 -1
- package/out/providers/strategies/IframeProviderStrategy/types/index.js +0 -18
- package/out/providers/strategies/IframeProviderStrategy/types/index.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js +0 -159
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.js +0 -105
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.js +0 -36
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.js +0 -15
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.js +0 -27
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.js +0 -57
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.js +0 -47
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.js +0 -23
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.js +0 -40
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.js +0 -32
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.js +0 -22
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.js +0 -18
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.js +0 -88
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.js +0 -3
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.js +0 -19
- package/out/providers/strategies/LedgerProviderStrategy/index.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/tests/getLedgerVersionOptions.test.js +0 -89
- package/out/providers/strategies/LedgerProviderStrategy/tests/getLedgerVersionOptions.test.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/tests/secondsToTimeString.test.js +0 -44
- package/out/providers/strategies/LedgerProviderStrategy/tests/secondsToTimeString.test.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/index.js +0 -18
- package/out/providers/strategies/LedgerProviderStrategy/types/index.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.js +0 -15
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.js.map +0 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.js +0 -3
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.js.map +0 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js +0 -235
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.js.map +0 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.js +0 -19
- package/out/providers/strategies/WalletConnectProviderStrategy/index.js.map +0 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.js +0 -18
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.js.map +0 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.js +0 -24
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.js.map +0 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.js +0 -147
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.js.map +0 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.js +0 -18
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.js.map +0 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js +0 -80
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.js.map +0 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.js +0 -18
- package/out/providers/strategies/WebviewProviderStrategy/index.js.map +0 -1
- package/out/providers/strategies/WebviewProviderStrategy/tests/webview.test.js +0 -93
- package/out/providers/strategies/WebviewProviderStrategy/tests/webview.test.js.map +0 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.js +0 -17
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.js.map +0 -1
- package/out/providers/strategies/helpers/index.js +0 -6
- package/out/providers/strategies/helpers/index.js.map +0 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.js +0 -52
- package/out/providers/strategies/helpers/signMessage/signMessage.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.js +0 -24
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.js +0 -52
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js +0 -151
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.js +0 -18
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.js +0 -212
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.js +0 -65
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.js +0 -11
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.js +0 -58
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.js +0 -20
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.js +0 -17
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.js +0 -16
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.js +0 -25
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/tests/decodeDataField.test.js +0 -72
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/tests/decodeDataField.test.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/tests/getGasPriceDetails.test.js +0 -44
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/tests/getGasPriceDetails.test.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js +0 -262
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/getCommonData.test.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/mockGetCommonDataInput.js +0 -125
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/mockGetCommonDataInput.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.js +0 -31
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.js +0 -13
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.js +0 -14
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.js +0 -85
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.js +0 -92
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.js +0 -63
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/tests/getMultiEsdtTransferData.test.js +0 -11
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/tests/getMultiEsdtTransferData.test.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.js +0 -23
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.js +0 -12
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.js +0 -31
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.js +0 -8
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/tests/calculateFeeInFiat.test.js +0 -13
- package/out/providers/strategies/helpers/signTransactions/helpers/tests/calculateFeeInFiat.test.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/tests/calculateFeeLimit.test.js +0 -86
- package/out/providers/strategies/helpers/signTransactions/helpers/tests/calculateFeeLimit.test.js.map +0 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.js +0 -198
- package/out/providers/strategies/helpers/signTransactions/signTransactions.js.map +0 -1
- package/out/providers/strategies/index.js +0 -22
- package/out/providers/strategies/index.js.map +0 -1
- package/out/providers/types/providerFactory.types.js +0 -14
- package/out/providers/types/providerFactory.types.js.map +0 -1
- package/out/react/account/useGetAccount.js +0 -10
- package/out/react/account/useGetAccount.js.map +0 -1
- package/out/react/account/useGetAccountInfo.js +0 -10
- package/out/react/account/useGetAccountInfo.js.map +0 -1
- package/out/react/account/useGetIsLoggedIn.js +0 -11
- package/out/react/account/useGetIsLoggedIn.js.map +0 -1
- package/out/react/account/useGetLatestNonce.js +0 -12
- package/out/react/account/useGetLatestNonce.js.map +0 -1
- package/out/react/index.js +0 -18
- package/out/react/index.js.map +0 -1
- package/out/react/loginInfo/useGetLoginInfo.js +0 -13
- package/out/react/loginInfo/useGetLoginInfo.js.map +0 -1
- package/out/react/network/useGetNetworkConfig.js +0 -10
- package/out/react/network/useGetNetworkConfig.js.map +0 -1
- package/out/react/store/createBoundedStore.js +0 -11
- package/out/react/store/createBoundedStore.js.map +0 -1
- package/out/react/store/getReactStore.js +0 -8
- package/out/react/store/getReactStore.js.map +0 -1
- package/out/react/store/useSelector.js +0 -10
- package/out/react/store/useSelector.js.map +0 -1
- package/out/react/transactions/useGetFailedTransactions.js +0 -11
- package/out/react/transactions/useGetFailedTransactions.js.map +0 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.js +0 -11
- package/out/react/transactions/useGetFailedTransactionsSessions.js.map +0 -1
- package/out/react/transactions/useGetPendingTransactions.js +0 -11
- package/out/react/transactions/useGetPendingTransactions.js.map +0 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.js +0 -11
- package/out/react/transactions/useGetPendingTransactionsSessions.js.map +0 -1
- package/out/react/transactions/useGetSuccessfulTransactions.js +0 -11
- package/out/react/transactions/useGetSuccessfulTransactions.js.map +0 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.js +0 -11
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.js.map +0 -1
- package/out/react/transactions/useGetTransactionSessions.js +0 -11
- package/out/react/transactions/useGetTransactionSessions.js.map +0 -1
- package/out/services/index.js +0 -18
- package/out/services/index.js.map +0 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.js +0 -34
- package/out/services/nativeAuth/helpers/decodeLoginToken.js.map +0 -1
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.js +0 -50
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.js.map +0 -1
- package/out/services/nativeAuth/helpers/getLatestBlockHash.js +0 -69
- package/out/services/nativeAuth/helpers/getLatestBlockHash.js.map +0 -1
- package/out/services/nativeAuth/helpers/index.js +0 -20
- package/out/services/nativeAuth/helpers/index.js.map +0 -1
- package/out/services/nativeAuth/helpers/tests/decodeLoginToken.test.js +0 -26
- package/out/services/nativeAuth/helpers/tests/decodeLoginToken.test.js.map +0 -1
- package/out/services/nativeAuth/helpers/tests/decodeNativeAuthToken.test.js +0 -37
- package/out/services/nativeAuth/helpers/tests/decodeNativeAuthToken.test.js.map +0 -1
- package/out/services/nativeAuth/index.js +0 -18
- package/out/services/nativeAuth/index.js.map +0 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.js +0 -20
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.js.map +0 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js +0 -21
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.js.map +0 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.js +0 -29
- package/out/services/nativeAuth/methods/getTokenExpiration.js.map +0 -1
- package/out/services/nativeAuth/methods/index.js +0 -19
- package/out/services/nativeAuth/methods/index.js.map +0 -1
- package/out/services/nativeAuth/methods/tests/getTokenExpiration.test.js +0 -55
- package/out/services/nativeAuth/methods/tests/getTokenExpiration.test.js.map +0 -1
- package/out/services/nativeAuth/nativeAuth.js +0 -45
- package/out/services/nativeAuth/nativeAuth.js.map +0 -1
- package/out/services/nativeAuth/nativeAuth.types.js +0 -3
- package/out/services/nativeAuth/nativeAuth.types.js.map +0 -1
- package/out/services/nativeAuth/tests/nativeAuth.test.js +0 -105
- package/out/services/nativeAuth/tests/nativeAuth.test.js.map +0 -1
- package/out/setupTests.d.ts +0 -1
- package/out/setupTests.js +0 -36
- package/out/setupTests.js.map +0 -1
- package/out/store/actions/account/accountActions.js +0 -43
- package/out/store/actions/account/accountActions.js.map +0 -1
- package/out/store/actions/account/index.js +0 -18
- package/out/store/actions/account/index.js.map +0 -1
- package/out/store/actions/cache/cacheActions.js +0 -25
- package/out/store/actions/cache/cacheActions.js.map +0 -1
- package/out/store/actions/cache/index.js +0 -18
- package/out/store/actions/cache/index.js.map +0 -1
- package/out/store/actions/config/configActions.js +0 -26
- package/out/store/actions/config/configActions.js.map +0 -1
- package/out/store/actions/config/index.js +0 -18
- package/out/store/actions/config/index.js.map +0 -1
- package/out/store/actions/index.js +0 -24
- package/out/store/actions/index.js.map +0 -1
- package/out/store/actions/loginInfo/loginInfoActions.js +0 -57
- package/out/store/actions/loginInfo/loginInfoActions.js.map +0 -1
- package/out/store/actions/network/index.js +0 -18
- package/out/store/actions/network/index.js.map +0 -1
- package/out/store/actions/network/initializeNetwork.js +0 -49
- package/out/store/actions/network/initializeNetwork.js.map +0 -1
- package/out/store/actions/network/networkActions.js +0 -14
- package/out/store/actions/network/networkActions.js.map +0 -1
- package/out/store/actions/sharedActions/index.js +0 -18
- package/out/store/actions/sharedActions/index.js.map +0 -1
- package/out/store/actions/sharedActions/sharedActions.js +0 -19
- package/out/store/actions/sharedActions/sharedActions.js.map +0 -1
- package/out/store/actions/toasts/index.js +0 -18
- package/out/store/actions/toasts/index.js.map +0 -1
- package/out/store/actions/toasts/toastsActions.js +0 -107
- package/out/store/actions/toasts/toastsActions.js.map +0 -1
- package/out/store/actions/transactions/transactionStateByStatus.js +0 -100
- package/out/store/actions/transactions/transactionStateByStatus.js.map +0 -1
- package/out/store/actions/transactions/transactionsActions.js +0 -79
- package/out/store/actions/transactions/transactionsActions.js.map +0 -1
- package/out/store/actions/ui/index.js +0 -18
- package/out/store/actions/ui/index.js.map +0 -1
- package/out/store/actions/ui/uiActions.js +0 -9
- package/out/store/actions/ui/uiActions.js.map +0 -1
- package/out/store/middleware/applyMiddlewares.js +0 -9
- package/out/store/middleware/applyMiddlewares.js.map +0 -1
- package/out/store/middleware/index.js +0 -18
- package/out/store/middleware/index.js.map +0 -1
- package/out/store/middleware/logoutMiddleware.js +0 -54
- package/out/store/middleware/logoutMiddleware.js.map +0 -1
- package/out/store/selectors/accountSelectors.js +0 -31
- package/out/store/selectors/accountSelectors.js.map +0 -1
- package/out/store/selectors/cacheSelector.js +0 -8
- package/out/store/selectors/cacheSelector.js.map +0 -1
- package/out/store/selectors/configSelectors.js +0 -12
- package/out/store/selectors/configSelectors.js.map +0 -1
- package/out/store/selectors/index.js +0 -23
- package/out/store/selectors/index.js.map +0 -1
- package/out/store/selectors/loginInfoSelectors.js +0 -16
- package/out/store/selectors/loginInfoSelectors.js.map +0 -1
- package/out/store/selectors/networkSelectors.js +0 -14
- package/out/store/selectors/networkSelectors.js.map +0 -1
- package/out/store/selectors/storeSelector.js +0 -6
- package/out/store/selectors/storeSelector.js.map +0 -1
- package/out/store/selectors/toastsSelectors.js +0 -10
- package/out/store/selectors/toastsSelectors.js.map +0 -1
- package/out/store/selectors/transactionsSelector.js +0 -104
- package/out/store/selectors/transactionsSelector.js.map +0 -1
- package/out/store/selectors/uiSelectors.js +0 -8
- package/out/store/selectors/uiSelectors.js.map +0 -1
- package/out/store/slices/account/account.types.js +0 -3
- package/out/store/slices/account/account.types.js.map +0 -1
- package/out/store/slices/account/accountSlice.js +0 -18
- package/out/store/slices/account/accountSlice.js.map +0 -1
- package/out/store/slices/account/emptyAccount.js +0 -15
- package/out/store/slices/account/emptyAccount.js.map +0 -1
- package/out/store/slices/account/index.js +0 -6
- package/out/store/slices/account/index.js.map +0 -1
- package/out/store/slices/cache/cacheSlice.js +0 -9
- package/out/store/slices/cache/cacheSlice.js.map +0 -1
- package/out/store/slices/cache/cacheSlice.types.js +0 -3
- package/out/store/slices/cache/cacheSlice.types.js.map +0 -1
- package/out/store/slices/cache/index.js +0 -6
- package/out/store/slices/cache/index.js.map +0 -1
- package/out/store/slices/config/config.types.js +0 -3
- package/out/store/slices/config/config.types.js.map +0 -1
- package/out/store/slices/config/configSlice.js +0 -18
- package/out/store/slices/config/configSlice.js.map +0 -1
- package/out/store/slices/config/index.js +0 -6
- package/out/store/slices/config/index.js.map +0 -1
- package/out/store/slices/index.js +0 -24
- package/out/store/slices/index.js.map +0 -1
- package/out/store/slices/loginInfo/index.js +0 -6
- package/out/store/slices/loginInfo/index.js.map +0 -1
- package/out/store/slices/loginInfo/loginInfo.types.js +0 -3
- package/out/store/slices/loginInfo/loginInfo.types.js.map +0 -1
- package/out/store/slices/loginInfo/loginInfoSlice.js +0 -19
- package/out/store/slices/loginInfo/loginInfoSlice.js.map +0 -1
- package/out/store/slices/network/emptyNetwork.js +0 -18
- package/out/store/slices/network/emptyNetwork.js.map +0 -1
- package/out/store/slices/network/index.js +0 -6
- package/out/store/slices/network/index.js.map +0 -1
- package/out/store/slices/network/network.types.js +0 -3
- package/out/store/slices/network/network.types.js.map +0 -1
- package/out/store/slices/network/networkSlice.js +0 -12
- package/out/store/slices/network/networkSlice.js.map +0 -1
- package/out/store/slices/network/networkSlice.types.js +0 -3
- package/out/store/slices/network/networkSlice.types.js.map +0 -1
- package/out/store/slices/toast/index.js +0 -6
- package/out/store/slices/toast/index.js.map +0 -1
- package/out/store/slices/toast/toastSlice.js +0 -12
- package/out/store/slices/toast/toastSlice.js.map +0 -1
- package/out/store/slices/toast/toastSlice.types.js +0 -3
- package/out/store/slices/toast/toastSlice.types.js.map +0 -1
- package/out/store/slices/transactions/index.js +0 -6
- package/out/store/slices/transactions/index.js.map +0 -1
- package/out/store/slices/transactions/transactionsSlice.js +0 -9
- package/out/store/slices/transactions/transactionsSlice.js.map +0 -1
- package/out/store/slices/transactions/transactionsSlice.types.js +0 -3
- package/out/store/slices/transactions/transactionsSlice.types.js.map +0 -1
- package/out/store/slices/ui/index.js +0 -6
- package/out/store/slices/ui/index.js.map +0 -1
- package/out/store/slices/ui/ui.types.js +0 -3
- package/out/store/slices/ui/ui.types.js.map +0 -1
- package/out/store/slices/ui/uiSlice.js +0 -11
- package/out/store/slices/ui/uiSlice.js.map +0 -1
- package/out/store/storage/inMemoryStorage.js +0 -29
- package/out/store/storage/inMemoryStorage.js.map +0 -1
- package/out/store/storage/index.js +0 -19
- package/out/store/storage/index.js.map +0 -1
- package/out/store/storage/storageCallback.js +0 -7
- package/out/store/storage/storageCallback.js.map +0 -1
- package/out/store/store.js +0 -60
- package/out/store/store.js.map +0 -1
- package/out/store/store.types.js +0 -3
- package/out/store/store.types.js.map +0 -1
- package/out/types/account.types.js +0 -3
- package/out/types/account.types.js.map +0 -1
- package/out/types/enums.types.js +0 -80
- package/out/types/enums.types.js.map +0 -1
- package/out/types/index.js +0 -24
- package/out/types/index.js.map +0 -1
- package/out/types/login.types.js +0 -3
- package/out/types/login.types.js.map +0 -1
- package/out/types/manager.types.js +0 -3
- package/out/types/manager.types.js.map +0 -1
- package/out/types/network.types.js +0 -3
- package/out/types/network.types.js.map +0 -1
- package/out/types/provider.types.js +0 -11
- package/out/types/provider.types.js.map +0 -1
- package/out/types/serverTransactions.types.js +0 -123
- package/out/types/serverTransactions.types.js.map +0 -1
- package/out/types/subscriptions.type.js +0 -10
- package/out/types/subscriptions.type.js.map +0 -1
- package/out/types/suspiciousLink.types.js +0 -3
- package/out/types/suspiciousLink.types.js.map +0 -1
- package/out/types/theme.types.js +0 -9
- package/out/types/theme.types.js.map +0 -1
- package/out/types/tokens.types.js +0 -14
- package/out/types/tokens.types.js.map +0 -1
- package/out/types/transaction-list-item.types.js +0 -89
- package/out/types/transaction-list-item.types.js.map +0 -1
- package/out/types/transactions.types.js +0 -11
- package/out/types/transactions.types.js.map +0 -1
- package/out/types/websocket.types.js +0 -3
- package/out/types/websocket.types.js.map +0 -1
- package/out/utils/ComponentFactory.js +0 -28
- package/out/utils/ComponentFactory.js.map +0 -1
- package/out/utils/account/fetchAccount.js +0 -7
- package/out/utils/account/fetchAccount.js.map +0 -1
- package/out/utils/account/index.js +0 -21
- package/out/utils/account/index.js.map +0 -1
- package/out/utils/account/refreshAccount.js +0 -60
- package/out/utils/account/refreshAccount.js.map +0 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.js +0 -42
- package/out/utils/account/refreshNativeAuthTokenLogin.js.map +0 -1
- package/out/utils/account/trimUsernameDomain.js +0 -15
- package/out/utils/account/trimUsernameDomain.js.map +0 -1
- package/out/utils/asyncActions/index.js +0 -18
- package/out/utils/asyncActions/index.js.map +0 -1
- package/out/utils/asyncActions/sleep.js +0 -15
- package/out/utils/asyncActions/sleep.js.map +0 -1
- package/out/utils/dateTime/getUnixTimestamp.js +0 -8
- package/out/utils/dateTime/getUnixTimestamp.js.map +0 -1
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.js +0 -8
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.js.map +0 -1
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.js +0 -8
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.js.map +0 -1
- package/out/utils/dateTime/index.js +0 -20
- package/out/utils/dateTime/index.js.map +0 -1
- package/out/utils/decoders/base64Utils.js +0 -56
- package/out/utils/decoders/base64Utils.js.map +0 -1
- package/out/utils/decoders/decodePart.js +0 -19
- package/out/utils/decoders/decodePart.js.map +0 -1
- package/out/utils/decoders/index.js +0 -22
- package/out/utils/decoders/index.js.map +0 -1
- package/out/utils/decoders/isAscii.js +0 -7
- package/out/utils/decoders/isAscii.js.map +0 -1
- package/out/utils/decoders/isUtf8.js +0 -13
- package/out/utils/decoders/isUtf8.js.map +0 -1
- package/out/utils/decoders/stringContainsNumbers.js +0 -6
- package/out/utils/decoders/stringContainsNumbers.js.map +0 -1
- package/out/utils/decoders/tests/base64Utils.test.js +0 -58
- package/out/utils/decoders/tests/base64Utils.test.js.map +0 -1
- package/out/utils/decoders/tests/decodePart.test.js +0 -14
- package/out/utils/decoders/tests/decodePart.test.js.map +0 -1
- package/out/utils/decoders/tests/isAscii.test.js +0 -22
- package/out/utils/decoders/tests/isAscii.test.js.map +0 -1
- package/out/utils/decoders/tests/isUtf8.test.js +0 -22
- package/out/utils/decoders/tests/isUtf8.test.js.map +0 -1
- package/out/utils/index.js +0 -27
- package/out/utils/index.js.map +0 -1
- package/out/utils/network/index.js +0 -18
- package/out/utils/network/index.js.map +0 -1
- package/out/utils/network/setAxiosInterceptors.js +0 -29
- package/out/utils/network/setAxiosInterceptors.js.map +0 -1
- package/out/utils/operations/capitalize.js +0 -6
- package/out/utils/operations/capitalize.js.map +0 -1
- package/out/utils/operations/getUsdValue.js +0 -18
- package/out/utils/operations/getUsdValue.js.map +0 -1
- package/out/utils/operations/pluralize.js +0 -6
- package/out/utils/operations/pluralize.js.map +0 -1
- package/out/utils/operations/tests/capitalize.test.js +0 -10
- package/out/utils/operations/tests/capitalize.test.js.map +0 -1
- package/out/utils/operations/tests/getUsdValue.test.js +0 -21
- package/out/utils/operations/tests/getUsdValue.test.js.map +0 -1
- package/out/utils/operations/tests/pluralize.spec.js +0 -19
- package/out/utils/operations/tests/pluralize.spec.js.map +0 -1
- package/out/utils/operations/tests/timeRemaining.test.js +0 -32
- package/out/utils/operations/tests/timeRemaining.test.js.map +0 -1
- package/out/utils/operations/tests/trimAmountDecimals.spec.js +0 -86
- package/out/utils/operations/tests/trimAmountDecimals.spec.js.map +0 -1
- package/out/utils/operations/timeRemaining.js +0 -76
- package/out/utils/operations/timeRemaining.js.map +0 -1
- package/out/utils/operations/trimAmountDecimals.js +0 -27
- package/out/utils/operations/trimAmountDecimals.js.map +0 -1
- package/out/utils/retryMultipleTimes.js +0 -24
- package/out/utils/retryMultipleTimes.js.map +0 -1
- package/out/utils/transactions/explorerUrlBuilder.js +0 -30
- package/out/utils/transactions/explorerUrlBuilder.js.map +0 -1
- package/out/utils/transactions/getActiveTransactionsStatus.js +0 -27
- package/out/utils/transactions/getActiveTransactionsStatus.js.map +0 -1
- package/out/utils/transactions/getExplorerLink.js +0 -26
- package/out/utils/transactions/getExplorerLink.js.map +0 -1
- package/out/utils/transactions/getHumanReadableTimeFormat.js +0 -24
- package/out/utils/transactions/getHumanReadableTimeFormat.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js +0 -83
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.js +0 -32
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.js +0 -74
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.js +0 -13
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.js +0 -36
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.js +0 -46
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.js +0 -17
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.js +0 -23
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.js +0 -30
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.js +0 -30
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.js +0 -10
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.js +0 -23
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/tests/getTransactionTokens.test.js +0 -50
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/tests/getTransactionTokens.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.js +0 -18
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.js +0 -3
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.js +0 -57
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.js +0 -10
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js +0 -38
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.js +0 -10
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.js +0 -22
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.js +0 -76
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.js +0 -26
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.js +0 -15
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.js +0 -23
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.js +0 -12
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.js +0 -15
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.js +0 -22
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.js +0 -17
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.js +0 -23
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.js +0 -30
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/base-transaction-mock.js +0 -31
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/base-transaction-mock.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/extended-transaction-mock.js +0 -86
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/extended-transaction-mock.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getOperationsMessages.test.js +0 -40
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getOperationsMessages.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getReceiptMessage.test.js +0 -54
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getReceiptMessage.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getScResultsMessages.test.js +0 -39
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getScResultsMessages.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getShardText.test.js +0 -15
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getShardText.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTokenFromData.test.js +0 -39
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTokenFromData.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionIconInfo.test.js +0 -131
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionIconInfo.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionMethod.test.js +0 -52
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionMethod.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionReceiver.test.js +0 -30
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionReceiver.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionReceiverAssets.test.js +0 -45
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionReceiverAssets.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionTokens.test.js +0 -50
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionTokens.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionTransferType.test.js +0 -60
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/getTransactionTransferType.test.js.map +0 -1
- package/out/utils/transactions/getInterpretedTransaction/index.js +0 -19
- package/out/utils/transactions/getInterpretedTransaction/index.js.map +0 -1
- package/out/utils/transactions/getScamFlag.js +0 -78
- package/out/utils/transactions/getScamFlag.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.js +0 -22
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.js +0 -12
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.js +0 -34
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.js +0 -25
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.js +0 -11
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.js +0 -14
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.js +0 -21
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.js +0 -79
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.js +0 -31
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.js +0 -34
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.js +0 -28
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.js +0 -62
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.js +0 -39
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.js +0 -17
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.js +0 -20
- package/out/utils/transactions/getTransactionsHistory/helpers/index.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.js +0 -15
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.js +0 -64
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.js +0 -54
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/tests/createTransactionsHistoryFromSessions.test.js +0 -44
- package/out/utils/transactions/getTransactionsHistory/helpers/tests/createTransactionsHistoryFromSessions.test.js.map +0 -1
- package/out/utils/transactions/getTransactionsHistory/index.js +0 -19
- package/out/utils/transactions/getTransactionsHistory/index.js.map +0 -1
- package/out/utils/transactions/index.js +0 -21
- package/out/utils/transactions/index.js.map +0 -1
- package/out/utils/transactions/isGuardianTx.js +0 -15
- package/out/utils/transactions/isGuardianTx.js.map +0 -1
- package/out/utils/transactions/tests/getExplorerkLink.test.js +0 -23
- package/out/utils/transactions/tests/getExplorerkLink.test.js.map +0 -1
- package/out/utils/transactions/tests/getHumanReadableTimeFormat.test.js +0 -118
- package/out/utils/transactions/tests/getHumanReadableTimeFormat.test.js.map +0 -1
- package/out/utils/validation/addressIsValid.js +0 -18
- package/out/utils/validation/addressIsValid.js.map +0 -1
- package/out/utils/validation/getIdentifierType.js +0 -31
- package/out/utils/validation/getIdentifierType.js.map +0 -1
- package/out/utils/validation/hex.js +0 -12
- package/out/utils/validation/hex.js.map +0 -1
- package/out/utils/validation/index.js +0 -22
- package/out/utils/validation/index.js.map +0 -1
- package/out/utils/validation/isContract.js +0 -65
- package/out/utils/validation/isContract.js.map +0 -1
- package/out/utils/validation/maxDecimals.js +0 -13
- package/out/utils/validation/maxDecimals.js.map +0 -1
- package/out/utils/validation/tests/isContract.test.js +0 -24
- package/out/utils/validation/tests/isContract.test.js.map +0 -1
- package/out/utils/visual/index.js +0 -18
- package/out/utils/visual/index.js.map +0 -1
- package/out/utils/visual/switchTheme.js +0 -15
- package/out/utils/visual/switchTheme.js.map +0 -1
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js +0 -11
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.js.map +0 -1
- package/out/utils/walletconnect/__sdkWalletconnectProvider.js +0 -9
- package/out/utils/walletconnect/__sdkWalletconnectProvider.js.map +0 -1
- package/out/utils/window/buildUrlParams.js +0 -14
- package/out/utils/window/buildUrlParams.js.map +0 -1
- package/out/utils/window/getIsAuthRoute.js +0 -22
- package/out/utils/window/getIsAuthRoute.js.map +0 -1
- package/out/utils/window/getIsInIframe.js +0 -26
- package/out/utils/window/getIsInIframe.js.map +0 -1
- package/out/utils/window/getWindowLocation.js +0 -32
- package/out/utils/window/getWindowLocation.js.map +0 -1
- package/out/utils/window/getWindowParentOrigin.js +0 -25
- package/out/utils/window/getWindowParentOrigin.js.map +0 -1
- package/out/utils/window/index.js +0 -23
- package/out/utils/window/index.js.map +0 -1
- package/out/utils/window/isWindowAvailable.js +0 -6
- package/out/utils/window/isWindowAvailable.js.map +0 -1
- package/out/utils/window/matchPath.js +0 -108
- package/out/utils/window/matchPath.js.map +0 -1
- package/out/utils/window/sanitizeCallbackUrl.js +0 -16
- package/out/utils/window/sanitizeCallbackUrl.js.map +0 -1
- package/out/utils/window/tests/buildUrlParams.test.js +0 -60
- package/out/utils/window/tests/buildUrlParams.test.js.map +0 -1
- package/out/utils/window/tests/getIsAuthRoute.test.js +0 -29
- package/out/utils/window/tests/getIsAuthRoute.test.js.map +0 -1
- package/out/utils/window/tests/getIsInIframe.test.js +0 -54
- package/out/utils/window/tests/getIsInIframe.test.js.map +0 -1
- package/out/utils/window/tests/getWindowLocation.test.js +0 -68
- package/out/utils/window/tests/getWindowLocation.test.js.map +0 -1
- package/out/utils/window/tests/getWindowParentOrigin.test.js +0 -88
- package/out/utils/window/tests/getWindowParentOrigin.test.js.map +0 -1
- package/out/utils/window/tests/sanitizeCallbackUrl.test.js +0 -30
- package/out/utils/window/tests/sanitizeCallbackUrl.test.js.map +0 -1
- /package/out/__chunks__/{chunk-YTFYVPZO.mjs.map → chunk-2DFE24NA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LJ5JGAYL.mjs.map → chunk-2ONA7QPD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-62EX26PE.mjs.map → chunk-2S4GDHPC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FIVH6RKU.mjs.map → chunk-2XGXXRSH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6IACSXVX.mjs.map → chunk-3AALZJXX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NO7YH2FT.mjs.map → chunk-3C5GZ3BL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KU74A6T3.mjs.map → chunk-3IKGFPT3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SRX2EMTG.mjs.map → chunk-3OZWOKL7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LIPGE2RA.mjs.map → chunk-52PGMMOM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PQY2A63Y.mjs.map → chunk-5AGNJNHL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O4DQ3TWG.mjs.map → chunk-5AITBRJM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2SOS3KAT.mjs.map → chunk-5E32AO3E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ROYSFSCI.mjs.map → chunk-5IKWP24U.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D5IP4ZG2.mjs.map → chunk-5J6OW5XP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6RAMYSEC.mjs.map → chunk-5P5FMYGA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C6NGX4MC.mjs.map → chunk-66LM6A7E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YB7AHPBR.mjs.map → chunk-6D53LH5J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QZGJ5DCM.mjs.map → chunk-6JIZDYQM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZU7V2CMU.mjs.map → chunk-6K6VHJWQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DHPD6E7P.mjs.map → chunk-7FEQBPHA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M7EUMCPG.mjs.map → chunk-7YHMRUFS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ISPRIGOE.mjs.map → chunk-AGUGUYQS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MOOY3SNQ.mjs.map → chunk-AWVWVATR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-36VCBI2F.mjs.map → chunk-BYJK2EOI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XTJQ2D6K.mjs.map → chunk-C7NS47QA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MFK6BEXF.mjs.map → chunk-CC4DXLNZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YNEVRTJM.mjs.map → chunk-CETMI3F5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UAW7SD6P.mjs.map → chunk-D2ULWBRR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KZC44J42.mjs.map → chunk-DF5ZV5BO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3MWXXTQQ.mjs.map → chunk-DFSBS3PX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C5X7N2AN.mjs.map → chunk-DJWI5LZX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MELQLFCR.mjs.map → chunk-DOU66R4K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-T2BUXSZ5.mjs.map → chunk-EJ2HUL6D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-54I7T2PP.mjs.map → chunk-F5Q64A5W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-266T724O.mjs.map → chunk-FCIBGJDC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FEFZKA2B.mjs.map → chunk-FKGDHZZJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EQEYL6AE.mjs.map → chunk-FNYBJAH3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6TJVNG7O.mjs.map → chunk-GDF5AJ5S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KSKOSHYV.mjs.map → chunk-GFR6K4DR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-673M5M6E.mjs.map → chunk-GMX4XDVR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I7NIOE4D.mjs.map → chunk-GSMTFDRE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MYSCFOXV.mjs.map → chunk-GUNYJMJE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OZCEAS6L.mjs.map → chunk-GY2WKBFX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DNHKXKYY.mjs.map → chunk-H33OUO77.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YMNKYTXZ.mjs.map → chunk-H7E4BCEJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KIQBMB2Y.mjs.map → chunk-HIKIVTTW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BVKUZJNB.mjs.map → chunk-HLORMFN4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CQ5GZXM5.mjs.map → chunk-I5OYRIZC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JIJSBQEU.mjs.map → chunk-IE3A2COQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JESUVU73.mjs.map → chunk-IINL5CEU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A4RNPJJW.mjs.map → chunk-IVSP42IE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6JEPIISC.mjs.map → chunk-IWHUAAVD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KO5KDKZ7.mjs.map → chunk-IXGPMW52.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LTHGO7JM.mjs.map → chunk-J6N7KVXV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KN7QMGWV.mjs.map → chunk-JAIA24ND.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ICZ6YALG.mjs.map → chunk-JIAKT3GI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BRBIUWAW.mjs.map → chunk-JMC7CMTU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DV3XIKOX.mjs.map → chunk-K4ITACAF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DIV6ZH5K.mjs.map → chunk-K7R2V5KX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KDCMWWIT.mjs.map → chunk-KXK3FLN2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5ECETGF7.mjs.map → chunk-LM2GCQL5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O3V4TGXK.mjs.map → chunk-LN5UXO64.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VWYDJFJH.mjs.map → chunk-LWDK4NX3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VTJUZ3TY.mjs.map → chunk-M2ZSNGPS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SXECAH2A.mjs.map → chunk-M5T2OACP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z5CDCI3Y.mjs.map → chunk-MDVI45IV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U7R4JK6U.mjs.map → chunk-ML7FXWAD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PO27JYMA.mjs.map → chunk-MSQGMOCS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RT44V62F.mjs.map → chunk-N5DIMOWZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JQ47IJOB.mjs.map → chunk-NKUK5GFB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-COZTBWPH.mjs.map → chunk-NVE5YTZK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ABHYXD3U.mjs.map → chunk-OLOCTHIE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6RJQVLIY.mjs.map → chunk-OX6DILCF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HCAXI2LY.mjs.map → chunk-PDEIJQWE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AV4HSXYZ.mjs.map → chunk-PHOF3Z5D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZXIBFH6X.mjs.map → chunk-Q5Z34JFU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XVFVG64Y.mjs.map → chunk-QAHFVBCD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6EBIYJLF.mjs.map → chunk-QGNMCCFK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LUDF7ZUR.mjs.map → chunk-QQAW7UC2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FZS7JL2U.mjs.map → chunk-QS2RBVTW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-T4BJTXVW.mjs.map → chunk-RD2EB7NA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IP3MMHXY.mjs.map → chunk-RHCAOCW3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-V4Z4FQJO.mjs.map → chunk-RPTQJKFR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6W67LK22.mjs.map → chunk-RSVM3MZD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4X3GF5DF.mjs.map → chunk-RU7UYXPW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R5SGFTE7.mjs.map → chunk-S5VF4GWN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RU7LAHKK.mjs.map → chunk-S6EACMBJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KGXIPD5I.mjs.map → chunk-SKCBMUQL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U22MXHMS.mjs.map → chunk-TRIPQLQM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EVTERXBU.mjs.map → chunk-TZ2EDK3R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VJ2DAL5M.mjs.map → chunk-U3UMCTU6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2I4BJK55.mjs.map → chunk-U4ZCGUVE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XALHL7VA.mjs.map → chunk-U7E2AVPF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XLVZQDL3.mjs.map → chunk-UCJMQJM4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QSBLXZFC.mjs.map → chunk-UCNS6KD5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QJSB5NX4.mjs.map → chunk-UERJ6AKK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BSWV5MEC.mjs.map → chunk-UK5MEKBE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JQTCROGW.mjs.map → chunk-UKGXMWHE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MD7CSIXL.mjs.map → chunk-UO4CECP4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A6IG4DO6.mjs.map → chunk-UTN4SJ54.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YUIJMELA.mjs.map → chunk-UVN6CHEM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RVEEVVOA.mjs.map → chunk-VG7UDG2S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I6BAZCYU.mjs.map → chunk-WBPXPWSV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DPUWJW5E.mjs.map → chunk-WIHG6SHO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AZMKY66I.mjs.map → chunk-WTBHS6AM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7BP53CXF.mjs.map → chunk-WZGG2YKQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P3BXXGQA.mjs.map → chunk-XCVEFI4B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRCMHPYS.mjs.map → chunk-XFYYVB6G.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DT6YLEPL.mjs.map → chunk-YNXPGS77.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IHKF4UNO.mjs.map → chunk-YTA6XGBJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XVAA5JSP.mjs.map → chunk-YVVAPGXF.mjs.map} +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# MultiversX SDK for Front-End DApps
|
|
2
2
|
|
|
3
|
+
[](https://github.com/multiversx/mx-wallet-dapp/actions/workflows/pre-merge-main-unit-tests.yml)
|
|
4
|
+
[](https://github.com/multiversx/mx-wallet-dapp/actions/workflows/prun-template-dapps-integration.yml)
|
|
5
|
+
[](https://deepwiki.com/multiversx/mx-sdk-dapp)
|
|
6
|
+
|
|
3
7
|
MultiversX Front-End SDK for JavaScript and TypeScript (written in TypeScript).
|
|
4
8
|
|
|
5
9
|
## Introduction
|
|
@@ -8,9 +12,9 @@ MultiversX Front-End SDK for JavaScript and TypeScript (written in TypeScript).
|
|
|
8
12
|
|
|
9
13
|
It is built for applications that use any of the following technologies:
|
|
10
14
|
|
|
11
|
-
- React (example: [Template Dapp](https://github.com/multiversx/mx-template-dapp))
|
|
12
|
-
- Angular
|
|
13
|
-
- Vue
|
|
15
|
+
- React (example: [React Template Dapp](https://github.com/multiversx/mx-template-dapp))
|
|
16
|
+
- Angular (example: [Angular Template Dapp](https://github.com/multiversx/mx-template-dapp-angular))
|
|
17
|
+
- Vue (example: [Vue Template Dapp](https://github.com/multiversx/mx-template-dapp-vue))
|
|
14
18
|
- Any other JavaScript framework (e.g. Solid.js etc.) (example: [Solid.js Dapp](https://github.com/multiversx/mx-solidjs-template-dapp))
|
|
15
19
|
- React Native
|
|
16
20
|
- Next.js (example: [Next.js Dapp](https://github.com/multiversx/mx-template-dapp-nextjs))
|
|
@@ -21,7 +25,7 @@ The GitHub repository can be found here: [https://github.com/multiversx/mx-sdk-d
|
|
|
21
25
|
|
|
22
26
|
## Live demo: template-dapp
|
|
23
27
|
|
|
24
|
-
See [Template dApp](https://template-dapp.multiversx.com/) for live demo or
|
|
28
|
+
See [Template dApp](https://template-dapp.multiversx.com/) for live demo or check out usage in the [Github repo](https://github.com/multiversx/mx-template-dapp)
|
|
25
29
|
|
|
26
30
|
## Requirements
|
|
27
31
|
|
|
@@ -47,7 +51,7 @@ yarn add @multiversx/sdk-dapp
|
|
|
47
51
|
```
|
|
48
52
|
> **Note:** Make sure you run your app on `https`, not `http`, otherwise some providers will not work.
|
|
49
53
|
|
|
50
|
-
If you're transitioning from `@multiversx/sdk-dapp@4.x`, you can check out the [Migration guide](https://github.com/multiversx/mx-template-dapp/blob/
|
|
54
|
+
If you're transitioning from `@multiversx/sdk-dapp@4.x`, you can check out the [Migration guide](https://github.com/multiversx/mx-template-dapp/blob/main/MIGRATION_GUIDE.md) and the [migration PR](https://github.com/multiversx/mx-template-dapp/pull/343) of Template Dapp
|
|
51
55
|
|
|
52
56
|
## Usage
|
|
53
57
|
|
|
@@ -110,7 +114,7 @@ initApp(config).then(() => {
|
|
|
110
114
|
|
|
111
115
|
### 2. Provider interaction
|
|
112
116
|
|
|
113
|
-
Once your dApp has loaded, the first user action is logging in with a chosen provider. There are two ways to perform a login
|
|
117
|
+
Once your dApp has loaded, the first user action is logging in with a chosen provider. There are two ways to perform a login: using the `UnlockPanelManager` and programmatic login using the `ProviderFactory`.
|
|
114
118
|
|
|
115
119
|
#### 2.1 Using the `UnlockPanelManager`
|
|
116
120
|
By using the provided UI, you get the benefit of having all supported providers ready for login in a side panel. You simply need to link the `unlockPanelManager.openUnlockPanel` to a user action.
|
|
@@ -139,7 +143,7 @@ export const ConnectButton = () => {
|
|
|
139
143
|
Once the user has logged in, if `nativeAuth` is configured in the `initApp` method, an automatic logout will be performed upon native auth expiration. Before the actual logout is performed, the `LogoutManager` will show a warning toast to the user. This toast can be customized by passing a `tokenExpirationToastWarningSeconds` to the `nativeAuth` config.
|
|
140
144
|
|
|
141
145
|
```typescript
|
|
142
|
-
// in
|
|
146
|
+
// in initApp config
|
|
143
147
|
const config: InitAppType = {
|
|
144
148
|
// ...
|
|
145
149
|
nativeAuth: {
|
|
@@ -172,7 +176,7 @@ export const AdvancedConnectButton = () => {
|
|
|
172
176
|
anchor
|
|
173
177
|
});
|
|
174
178
|
const { address, signature } = await provider.login();
|
|
175
|
-
navigate(`/dashboard?address=${address}
|
|
179
|
+
navigate(`/dashboard?address=${address}`);
|
|
176
180
|
},
|
|
177
181
|
});
|
|
178
182
|
const handleOpenUnlockPanel = () => {
|
|
@@ -203,7 +207,7 @@ Depending on the framework, you can either use hooks or selectors to get the use
|
|
|
203
207
|
|
|
204
208
|
#### 3.1 React hooks
|
|
205
209
|
|
|
206
|
-
If you are using React, all hooks can be found under the `/out/react` folder. All store information can be accessed via different hooks but below you will find the main
|
|
210
|
+
If you are using React, all hooks can be found under the `/out/react` folder. All store information can be accessed via different hooks, but below you will find the main hooks related to the most common use cases
|
|
207
211
|
|
|
208
212
|
```bash
|
|
209
213
|
out/react/
|
|
@@ -333,16 +337,16 @@ await notificationManager.openNotificationsFeed();
|
|
|
333
337
|
|
|
334
338
|
You can find both methods and hooks to access transactions data, as seen in the table below.
|
|
335
339
|
|
|
336
|
-
**Table 2**.
|
|
340
|
+
**Table 2**. Inspecting transactions
|
|
337
341
|
| # | Helper | Description | React hook equivalent |
|
|
338
342
|
|---|------|-------------|----|
|
|
339
343
|
| | `methods/transactions` | path | `react/transactions` |
|
|
340
|
-
| 1 | `getTransactionSessions()` | returns all
|
|
341
|
-
| 2 | `getPendingTransactionsSessions()` | returns
|
|
344
|
+
| 1 | `getTransactionSessions()` | returns all transaction sessions |`useGetTransactionSessions()` |
|
|
345
|
+
| 2 | `getPendingTransactionsSessions()` | returns a record of pending sessions | `useGetPendingTransactionsSessions()`|
|
|
342
346
|
| 3 | `getPendingTransactions()` | returns an array of signed transactions | `useGetPendingTransactions()` |
|
|
343
|
-
| 4 | `getFailedTransactionsSessions()` | returns
|
|
347
|
+
| 4 | `getFailedTransactionsSessions()` | returns a record of failed sessions | `useGetFailedTransactionsSessions()`|
|
|
344
348
|
| 5 | `getFailedTransactions()` | returns an array of failed transactions | `useGetFailedTransactions()`|
|
|
345
|
-
| 6 | `getSuccessfulTransactionsSessions()` | returns
|
|
349
|
+
| 6 | `getSuccessfulTransactionsSessions()` | returns a record of successful sessions | `useGetSuccessfulTransactionsSessions()`|
|
|
346
350
|
| 7 | `getSuccessfulTransactions()` | returns an array of successful transactions | `useGetSuccessfulTransactions()`|
|
|
347
351
|
|
|
348
352
|
There is a way to inspect store information regarding a specific transaction, using the `transactionsSliceSelector`. An example is shown below:
|
|
@@ -499,12 +503,12 @@ The transaction lifecycle consists of the following steps:
|
|
|
499
503
|
| # | Helper | Description | React hook equivalent |
|
|
500
504
|
|---|------|-------------|----|
|
|
501
505
|
| | `methods/transactions` | path | `react/transactions` |
|
|
502
|
-
| 1 | `getTransactionSessions()` | returns all
|
|
506
|
+
| 1 | `getTransactionSessions()` | returns all transaction sessions |`useGetTransactionSessions()` |
|
|
503
507
|
| 2 | `getPendingTransactionsSessions()` | returns an record of pending sessions | `useGetPendingTransactionsSessions()`|
|
|
504
508
|
| 3 | `getPendingTransactions()` | returns an array of signed transactions | `useGetPendingTransactions()` |
|
|
505
|
-
| 4 | `getFailedTransactionsSessions()` | returns
|
|
509
|
+
| 4 | `getFailedTransactionsSessions()` | returns a record of failed sessions | `useGetFailedTransactionsSessions()`|
|
|
506
510
|
| 5 | `getFailedTransactions()` | returns an array of failed transactions | `useGetFailedTransactions()`|
|
|
507
|
-
| 6 | `getSuccessfulTransactionsSessions()` | returns
|
|
511
|
+
| 6 | `getSuccessfulTransactionsSessions()` | returns a record of successful sessions | `useGetSuccessfulTransactionsSessions()`|
|
|
508
512
|
| 7 | `getSuccessfulTransactions()` | returns an array of successful transactions | `useGetSuccessfulTransactions()`|
|
|
509
513
|
|
|
510
514
|
5. **User feedback** is provided through toast notifications, which are triggered to inform about transactions' progress. Additional tracking details can be optionally displayed in the toast UI.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-JAIA24ND.mjs";import{a as m}from"./chunk-K4ITACAF.mjs";import{f as a}from"./chunk-PJWJZHIS.mjs";import{a as r,b as o}from"./chunk-LHEH7L4L.mjs";var I=({transaction:t,price:i})=>{let e=n({gasPerDataByte:String(1500),gasPriceModifier:String(.01),gasLimit:t.getGasLimit().valueOf().toString(),gasPrice:t.getGasPrice().valueOf().toString(),data:t.getData().toString(),chainId:t.getChainID().valueOf()}),g=a({input:e,showLastNonZeroDecimal:!0}),c=i?m({feeLimit:e,egldPriceInUsd:i,hideEqualSign:!0}):null;return{feeLimitFormatted:g,feeInFiatLimit:c,feeLimit:e}};export{I as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2DFE24NA.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as r}from"./chunk-RWQNLK3I.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 d}from"./chunk-VJBLHJYB.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-2ONA7QPD.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o}from"./chunk-IINL5CEU.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{u as n}from"./chunk-M5T2OACP.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-2S4GDHPC.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as r}from"./chunk-IE3A2COQ.mjs";import{c as a,f as o}from"./chunk-PJWJZHIS.mjs";import{a as n}from"./chunk-3FXHIV6O.mjs";var k=u=>{let i=u.map(e=>{let{isNft:l}=n(e.type);if(l){let{badgeText:t,tokenFormattedAmount:p,tokenLinkText:T}=r({token:e});return`${t!=null?`(${t}) `:""}${p} ${T}`}let m=e.value?o({input:e.value,decimals:e.decimals??a,digits:2,addCommas:!0}):null,d=e.collection?e.identifier:e.token;return`${m} ${e.ticker} (${d})`});return decodeURI(i.join("%0A"))};export{k as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2XGXXRSH.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-UO4CECP4.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-3IKGFPT3.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-RPTQJKFR.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3OZWOKL7.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as u}from"./chunk-UCNS6KD5.mjs";import{a as d}from"./chunk-TX7PTLVP.mjs";import{b as T}from"./chunk-HMHP5DPL.mjs";import I from"lodash.startcase";import C from"lodash.uniq";var M=(e=>(e.mex="mex",e.stake="stake",e))(M||{}),R=({currentUserAddress:g,transaction:t,egldLabel:e,isPending:A=!1})=>{if(A)return{name:"Pending..."};let l={},y=Object.entries(T).reduce((s,[x,D])=>Object.assign(s,{[x]:D}),l),n=t.action,r=n&&n.arguments,i=n&&n.category?n.category:null,b=r&&n.name==="transfer",a=r&&Array.isArray(r.transfers)?r.transfers:[],c=a.map(s=>s.type),[m]=C(c),L=e??"EGLD",p=d({transaction:t,transferType:m,currentUserAddress:g}),E=u({allTransferTypes:c,transferType:m,transactionTransfers:a}),h=i&&["mex","stake"].includes(i),o=n&&h?n.description:void 0,f=t.function&&t.function!=="transfer"?y[t.function]??I(t.function):null;return b&&r?{name:`${p} ${E}`,description:o}:f?{name:f,description:o}:{name:`${p} ${L}`,description:o}};export{M as a,R as b};
|
|
2
|
+
//# sourceMappingURL=chunk-52PGMMOM.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as h}from"./chunk-N5DIMOWZ.mjs";import{a as p}from"./chunk-GDF5AJ5S.mjs";import{a as d}from"./chunk-CETMI3F5.mjs";import{a as T}from"./chunk-QQAW7UC2.mjs";var f=a=>a.sort((i,o)=>o.timestamp-i.timestamp),H=async({transactions:a,address:i,explorerAddress:o,egldLabel:g})=>{let e=[],r=[];if(a.forEach(s=>{let t=d(s.hash);t?e.push(t):r.push(s.hash)}),r.length===0)return f(e);let c=await h(r),I=c.map(s=>s.txHash),m=r.filter(s=>!I.includes(s));if(m.length>0){let t=a.filter(n=>m.includes(n.hash)).map(n=>({...n,txHash:n.hash,price:0,status:"pending",gasUsed:0,miniBlockHash:"",receiverShard:0,round:0,senderShard:0,timestamp:Date.now()}));c.push(...t)}return c.forEach(s=>{let t=T({transaction:s,address:i,explorerAddress:o,egldLabel:g});t.status!=="pending"&&p({key:`transaction-${s.txHash}`,value:t}),e.push(t)}),f(e)};export{H as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5AITBRJM.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i,c as o,f as s}from"./chunk-PJWJZHIS.mjs";import{j as u}from"./chunk-LHEH7L4L.mjs";import m from"bignumber.js";var p=e=>{if(!e.receipt?.value)return"";if(e.receipt?.data===u){let r=s({input:e.receipt.value,decimals:o,digits:i,showLastNonZeroDecimal:!0});return new m(r).times(e.gasPrice).times(100).toFixed()}return e.receipt.value};function d(e){let r=e.receipt?.data;if(!r)return"";let t=p(e),a=t?`: ${t}`:"";return`${r}${a}`}export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5E32AO3E.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-HIKIVTTW.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5IKWP24U.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-N5DIMOWZ.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-5P5FMYGA.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-TZ2EDK3R.mjs";import{c as n}from"./chunk-M5T2OACP.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-66LM6A7E.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as u}from"./chunk-H33OUO77.mjs";import{a as n}from"./chunk-HQQMSHTW.mjs";import{a as e,b as t,c as i,f as s}from"./chunk-PJWJZHIS.mjs";import d from"bignumber.js";import p from"lodash.trimend";var N=m=>{if(n(m))return parseFloat(m.value).toLocaleString();let a=s({input:String(m.value??t),decimals:Number(m.decimals??i),showLastNonZeroDecimal:!0,addCommas:!0}),o=u({minimumPositiveDecimals:e,amount:a}),[c,r]=o.split("."),l=p(r,t);return r&&new d(r).isGreaterThan(t)?`${c}.${l}`:o};export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6D53LH5J.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-PWXGNRYT.mjs";function t(){if(!e)return"";try{if(e.document.referrer)return new URL(e.document.referrer).origin;let r=e.location.ancestorOrigins;return r.length<1?"":new URL(r[r.length-1]).origin}catch(r){return console.error(r),""}}export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6JIZDYQM.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as t}from"./chunk-FKGDHZZJ.mjs";import{c as a}from"./chunk-TI37DKBT.mjs";import l from"bignumber.js";var o=!1;function u(e){try{let n=a(e.data).replace(`${e.action?.name}@`,""),r=new l(n,16);if(!r.isNaN())return t(r.toString(10))}catch{o||(console.error(`Unable to extract value for txHash: ${e.txHash}`),o=!0)}return t(e.value)}export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7FEQBPHA.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-5AITBRJM.mjs";import e from"lodash.isempty";var p=async({transactionsSessions:t,address:i,explorerAddress:a,egldLabel:o})=>{if(e(t))return[];let n=s(t);return r({transactions:n,address:i,explorerAddress:a,egldLabel:o})};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7YHMRUFS.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as m}from"./chunk-54B3EIZC.mjs";import{a as T}from"./chunk-QJ7MRSGB.mjs";import{a as e}from"./chunk-UK5MEKBE.mjs";var C=({receiver:n,sender:a,senderAssets:l,receiverAssets:u,transactionAssets:s,showDefaultState:f=!1,status:r})=>{let i=n===a,I=i?e(a):e(n),g=T({senderAssets:l,receiverAssets:u,userIsReceiver:i}),[t]=s??[],p=s.length>1,S=t?.type==="NonFungibleESDT",o=t?.type==="SemiFungibleESDT",A=s?.every(d=>t&&d.assetTicker===t.assetTicker)??!1,F=m(r),c=r==="pending";return(c||F)&&!f?{icon:c?"faHourglass":"faTimes"}:p&&!A?{icon:"faCoins"}:t?.assetImage?{imageUrl:t.assetImage}:S||o?{text:o?"sft":"nft"}:I?{imageUrl:g||void 0}:null};export{C as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AGUGUYQS.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-YNXPGS77.mjs";import{c as r,d as a}from"./chunk-CAA4VJRH.mjs";import{u as e}from"./chunk-M5T2OACP.mjs";import{a as n}from"./chunk-UERJ6AKK.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-AWVWVATR.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as r}from"./chunk-SKCBMUQL.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-BYJK2EOI.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{l as p,s as e}from"./chunk-M5T2OACP.mjs";import{c as i}from"./chunk-NTEMINYA.mjs";var T=()=>e().setState(p),m=({address:o,providerType:d})=>{e().setState(({account:r,loginInfo:t})=>{r.address=o,r.publicKey=new i(o).hex(),t&&(t.providerType=d)},!1,"loginAction")};export{T as a,m as b};
|
|
2
|
+
//# sourceMappingURL=chunk-CC4DXLNZ.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as g}from"./chunk-GFR6K4DR.mjs";import{a as e}from"./chunk-6D53LH5J.mjs";import{c}from"./chunk-PJWJZHIS.mjs";var y=({transaction:r,userIsReceiver:m,egldLabel:A})=>{let n=r.action,t=n&&n.arguments,a=t&&Array.isArray(t.transfers)?t.transfers:[],p=a.length===0,i=A??"EGLD",o=m?"+":"-",T={assetPrefix:o,type:i,assetTicker:i,assetAmount:e({value:r.value,decimals:String(c)})},l=a.map(s=>({assetPrefix:o,type:s.type,assetTicker:s.ticker,assetImage:s.svgUrl,assetAmount:e(s),assetPrice:g(s)}));return p?[T]:l};export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DFSBS3PX.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/lib/sdkWebviewProvider.ts"],
|
|
4
|
+
"sourcesContent": ["export { isMobileWebview } from '@multiversx/sdk-webview-provider/out/helpers/isMobileWebview';\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,mBAAAA,MAAuB",
|
|
6
|
+
"names": ["isMobileWebview"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i}from"./chunk-QAHFVBCD.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-DOU66R4K.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as I}from"./chunk-PJDJEPY2.mjs";import{a as l}from"./chunk-IWHUAAVD.mjs";import{a as f}from"./chunk-UCJMQJM4.mjs";import{j as m,k as d,l as p,n as u}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-5AITBRJM.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-EJ2HUL6D.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-FMQYLMTU.mjs";import{b as s,c as r}from"./chunk-UKGXMWHE.mjs";async function l({results:e,hash:i,sessionId:t}){let a=e?.find(o=>o?.returnMessage!=="");r({sessionId:t,transaction:{...a,hash:i,status:"fail",inTransit:!1}}),s({sessionId:t,status:"fail",errorMessage:a?.returnMessage}),await n({sessionId:t,status:"fail"})}export{l as a};
|
|
2
|
+
//# sourceMappingURL=chunk-F5Q64A5W.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as r}from"./chunk-FKGDHZZJ.mjs";import a from"bignumber.js";var t=!1;function i(e){return new a(e.action?.arguments?.value).isNaN()?(t||(console.error(`Unable to interpret ${e.action?.name} data for txHash: ${e.txHash}`),t=!0),r(e.value)):r(e.action?.arguments?.value)}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FCIBGJDC.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as c}from"./chunk-L7L56ZTG.mjs";import{a as T}from"./chunk-V4YC4AKQ.mjs";import{a as p}from"./chunk-OLOCTHIE.mjs";import{b as m}from"./chunk-RRKNYQ6D.mjs";import{a as k}from"./chunk-B72JAXSF.mjs";import{a as g}from"./chunk-6GREKTLP.mjs";import{a as f}from"./chunk-ZJ2WPN2K.mjs";import{a as d}from"./chunk-HS34AFHY.mjs";import{a}from"./chunk-B3IKUIRK.mjs";import{a as r}from"./chunk-BRJNX4JF.mjs";import{a as t}from"./chunk-DBIIY2TX.mjs";import{a as s}from"./chunk-UK5MEKBE.mjs";function z({transaction:e,address:h,explorerAddress:o}){let y=e.tokenIdentifier??m(e.data).tokenId,n=d(e),u=f(e),l={timeAgo:c(e.timestamp*1e3,!0),tooltip:a({value:e.timestamp,noSeconds:!1,utc:!0})},v=k({address:h,transaction:e,receiver:n}),I={actionDescription:e.action?.description,name:T(e)},S=g(e),D=r({explorerAddress:o,to:t.accountDetails(e.sender)}),L=r({explorerAddress:o,to:t.accountDetails(n)}),A=r({explorerAddress:o,to:t.senderShard(e.senderShard)}),H=r({explorerAddress:o,to:t.receiverShard(e.receiverShard)}),i=e.originalTxHash||e.txHash,x=r({explorerAddress:o,to:t.transactionDetails(i)});return{...e,txHash:i,tokenIdentifier:y,receiver:n,receiverAssets:u,transactionDetails:{age:l,direction:v,method:I,iconInfo:p(e),transactionTokens:S,isContract:s(e.sender)},links:{senderLink:D,receiverLink:L,senderShardLink:A,receiverShardLink:H,transactionLink:x}}}export{z as a};
|
|
2
|
+
//# sourceMappingURL=chunk-FNYBJAH3.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as a}from"./chunk-M5T2OACP.mjs";var r=({key:e,value:t})=>{a().setState(({cache:c})=>{c[e]=t},!1,"saveToCache")},s=e=>{a().setState(({cache:t})=>{delete t[e]},!1,"removeFromCache")},h=()=>{a().setState(({cache:e})=>{Object.keys(e).forEach(t=>{delete e[t]})},!1,"clearCache")};export{r as a,s as b,h as c};
|
|
2
|
+
//# sourceMappingURL=chunk-GDF5AJ5S.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as m}from"./chunk-HQQMSHTW.mjs";import{b as e,c as r,f as i}from"./chunk-PJWJZHIS.mjs";import s from"bignumber.js";var n=t=>{if(m(t))return;let o=i({input:String(t.value??e),decimals:Number(t.decimals??r),showLastNonZeroDecimal:!0});return new s(t.usdPrice??"1").times(o).toString()};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-GFR6K4DR.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as h}from"./chunk-DOU66R4K.mjs";import{a as s}from"./chunk-QGNMCCFK.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-IWHUAAVD.mjs";import{b as A}from"./chunk-IVSP42IE.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{g as p}from"./chunk-M5T2OACP.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-S2FQWSUO.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-GMX4XDVR.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as ot}from"./chunk-6K6VHJWQ.mjs";import{a as ut}from"./chunk-6UZHM5LW.mjs";import{a as L}from"./chunk-EJ2HUL6D.mjs";import{a as lt}from"./chunk-LM2GCQL5.mjs";import{a as S}from"./chunk-OX6DILCF.mjs";import{a as X,b as Z,g as tt,l as st}from"./chunk-CAA4VJRH.mjs";import{a as dt}from"./chunk-HLORMFN4.mjs";import{b as C}from"./chunk-3AALZJXX.mjs";import{a as Tt}from"./chunk-66LM6A7E.mjs";import{a as vt}from"./chunk-4ODPAHHA.mjs";import{a as ft}from"./chunk-MDVI45IV.mjs";import{a as gt}from"./chunk-PDEIJQWE.mjs";import{a as g}from"./chunk-RU7UYXPW.mjs";import{a as Q}from"./chunk-DJWI5LZX.mjs";import{a as ct}from"./chunk-RHCAOCW3.mjs";import{a as y}from"./chunk-I5OYRIZC.mjs";import{a as b,f as mt}from"./chunk-IVSP42IE.mjs";import{b as pt}from"./chunk-CC4DXLNZ.mjs";import{d as at}from"./chunk-UKGXMWHE.mjs";import{k as et,l as it,n as nt}from"./chunk-65L5EBBL.mjs";import{a as w}from"./chunk-HORSXVIV.mjs";import{a as ht}from"./chunk-5AGNJNHL.mjs";import{a as J}from"./chunk-SKCBMUQL.mjs";import{a as I}from"./chunk-QTKK6OSJ.mjs";import{a as E}from"./chunk-6FXEHNGW.mjs";import{a as Et}from"./chunk-NJN53MJV.mjs";import{a as j}from"./chunk-YSCND2MX.mjs";import{a as V,b as q,s as u,u as Y}from"./chunk-M5T2OACP.mjs";import{c as H,f as $}from"./chunk-UERJ6AKK.mjs";import{b as d}from"./chunk-VNLGNNIL.mjs";import{b as h}from"./chunk-6JM4DPOH.mjs";import{b as G,c as K,f as z}from"./chunk-NTEMINYA.mjs";import{b as It}from"./chunk-QWV25ZSJ.mjs";import{a as rt}from"./chunk-ODPJDT5F.mjs";import{a as v}from"./chunk-S2FQWSUO.mjs";import _ from"lodash.isequal";import yt from"lodash.isequal";var Ot="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",A=class e extends ct{constructor(){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.store=u();this.initialData={pendingTransactions:[],historicTransactions:[]};this.closeUI=async()=>{this.data.pendingTransactions.length>0?(this.unsubscribeFunctions.forEach(s=>s.forEach(o=>o())),this.unsubscribeFunctions.clear(),await this.uiElement?.closeWithAnimation()):super.closeUI()};this.data={...this.initialData}}static getInstance(){return e.instance||(e.instance=new e),e.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){p.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let o=this.store.subscribe(async({toasts:i,transactions:n},{toasts:a,transactions:c})=>{(!yt(a.transactionToasts,i.transactionToasts)||!yt(c,n))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(Ot,[o]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let s=p.getInstance();await this.closeUI(),await s.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:s,account:o,toasts:i,network:n}=this.store.getState(),{pendingTransactionToasts:a}=await L({toastList:i,transactionsSessions:s,account:o});this.data.pendingTransactions=a,this.data.historicTransactions=await ot.getTransactionsHistory({transactionsSessions:s,address:o.address,explorerAddress:n.network.explorerAddress,egldLabel:n.network.egldLabel}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){at(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};import R from"bignumber.js";var x=class e{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),s=d(t),{isExpired:o}=I(s?.nativeAuthToken);o?f().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let t=this.store.getState(),s=d(t),o=$(t);return!!(s?.nativeAuthToken&&o)};this.addPlannedLogout=()=>{let t=f(),s=H(this.store.getState()),o=t.getType()===v.webview;if(!s||o)return;this.addLogoutWarning();let i=d(this.store.getState()),{secondsUntilExpires:n,expiresAt:a}=I(i?.nativeAuthToken),c=new R(String(n)),r=`${s}_${a}`,m=this.plannedLogoutKey===r;if(!(n&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=r,clearTimeout(this.plannedLogoutTimeoutRef??0);let W=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{p.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},W.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},W.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=h(this.store.getState()),s=d(this.store.getState()),{secondsUntilExpires:o}=I(s?.nativeAuthToken),i=new R(String(o)),n=i.times(1e3);if(!o||i.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new R(t?.tokenExpirationToastWarningSeconds??0).times(1e3),r=i.times(1e3).minus(c),m=ut(n.toNumber()),l=r.isLessThanOrEqualTo(0)?0:r.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{p.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return e.instance||(e.instance=new e),e.instance}};async function B({address:e,provider:t,apiAddress:s}){let o=await E({address:e,baseURL:s});if(!o)throw new Error("Account not found");pt({address:e,providerType:t.getType()});let i={...o,username:w(o.username),nonce:y(o)};b(i),await C(e),S(),o.shard!=null&&await lt({shard:Number(o.shard),apiAddress:s})}async function Pt(e){let{network:{apiAddress:t}}=g();await e.login();let s=await e.getAddress();if(!s)throw new Error("Address not found");return await B({address:s,provider:e,apiAddress:t}),{address:s}}async function Dt({provider:e,nativeAuthConfig:t,token:s}){let{network:{apiAddress:o}}=g(),i=J(t),n=s;n||(n=await i.initialize({noCache:!0}));let{address:a,signature:c,...r}=await e.login({token:n});if(!a)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let m=i.getToken({address:a,token:n,signature:c});q({loginToken:n,signature:c,nativeAuthToken:m});let l=await Tt({loginToken:n,extraInfoData:{multisig:r?.multisig,impersonate:r?.impersonate},address:a});return await B({address:l,provider:e,apiAddress:o}),{address:l,signature:c}}async function Lt(e,t){let s=h(Y());if(s)return await Dt({provider:e,nativeAuthConfig:s,token:t?.token});let{address:o}=await Pt(e);return await C(o),S(),{address:o}}var U={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${Z}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${X}-${Date.now()}`}},Rt={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},Bt=e=>{for(let[t,s]of Object.entries(Rt))if(e.includes(t))return s;return"Error when signing"};function k(e,t="error"){let s=e?.message,o=Bt(s),n=o!=="Error when signing"?"warning":t,a=Object.keys(U).includes(n)?U[n]:U.error,{toastId:c,iconClassName:r,title:m}=a;return N({toastId:c,duration:1e4,icon:"times",iconClassName:r,message:o,title:m}),o}async function bt({provider:e,transactions:t,options:s={}}){await Ct();let{isGuarded:o,activeGuardianAddress:i,nonce:n}=ht(),a=e.getType()===v.ledger,c=vt({latestNonce:n,transactions:t}),r=i&&o&&!s.skipGuardian?c?.map(l=>(l.version=G.withTxOptions().valueOf(),l.options=z.withOptions({guarded:!0,...a?{hashSign:!0}:{}}).valueOf(),l.guardian=K.newFromBech32(i),l)):c,m=await e.signTransactions(r)??[];return mt(n+m.length),m}var M=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let s=await Lt(this.provider,t);return V(this.provider.getType()),St(this),x.getInstance().init(),s}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let s=await dt({provider:this.provider,options:t});return this._isLoggingOut=!1,s}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,s){try{return await bt({provider:this.provider,transactions:t,options:s})}catch(o){let i=k(o);throw new Error(i)}}async signMessage(t,s){try{return await gt({provider:this.provider,message:t,options:s})}catch(o){let i=k(o,"warning");throw new Error(i)}}async verifyMessage(t){return await ft(t)}cancelLogin(){this.provider.cancelLogin?.()}};var wt=null;function St(e){wt=e}function f(){return wt||new M(It)}var Ut=async()=>{try{let e=Q(),{network:t}=g();try{let s=await E({address:e,baseURL:t.apiAddress});if(s!=null){let o={...s,username:w(s.username),nonce:y(s)};return b(o),o}}catch(s){console.error("Failed getting account ",s)}}catch(e){console.error("Failed getting address ",e)}return null};async function Ct(){let e=f();if(e==null)throw"Provider not initialized";try{if(!e.init)throw"Current provider does not have init() function";return await e.init()?Ut():void 0}catch(t){console.error("Failed initializing provider ",t)}}var O={},T={},kt=(e,t)=>{u().setState(({toasts:s})=>{let o=s.customToasts.length>0?Math.max(...s.customToasts.map(r=>parseInt(r.toastId.split("-").pop()??"0"))):0,i=t??`custom-toast-${o+1}`,n=s.customToasts.findIndex(r=>r.toastId===i),a={...e,toastId:i};if(n!==-1){s.customToasts[n]=a;return}s.customToasts.push({...a,toastId:i})},!1,"addCustomToast")},F=e=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(s=>s.toastId!==e)},!1,"removeCustomToast")},At=()=>{u().setState(({toasts:e})=>{e.customToasts=[]},!1,"removeAllCustomToasts")},Go=()=>{u().setState(({toasts:e})=>{e.transactionToasts=[]})},xt=({toastId:e,totalDuration:t})=>{let s="";return u().setState(({toasts:o})=>{let i=o.transactionToasts.length>0?Math.max(...o.transactionToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0;s=e??`transaction-toast-${i+1}`,o.transactionToasts.push({startTime:j(),endTime:Et(t),toastId:s})},!1,"addTransactionToast"),s},P=e=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(s=>s.toastId!==e)},!1,"removeTransactionToast"),delete T[e],delete O[e]},N=e=>{let{toasts:t}=u().getState(),s=t.customToasts.length>0?Math.max(...t.customToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0,o=e.toastId||`custom-toast-${s+1}`;return e.onClose&&(T[o]=e.onClose),e.instantiateToastElement?(O[o]=e.instantiateToastElement,u().setState(({toasts:i})=>{let n=i.customToasts.findIndex(r=>r.toastId===o),a={...e,instantiateToastElement:null,toastId:o};n!==-1?i.customToasts[n]=a:i.customToasts.push(a)},!1,"createCustomToast"),o):(kt(e,o),o)};var Nt=1e4,D=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=Nt;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let s=setTimeout(()=>{P(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,s)};this.startWithCustomDuration=(t,s)=>{if(this.stop(t),s<=0)return;let o=setTimeout(()=>{F(t);let i=T[t];i?.()},s);this.timeoutIntervals.set(t,o)};this.stop=t=>{let s=this.timeoutIntervals.get(t);s&&(clearTimeout(s),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||Nt}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};var p=class e{constructor(){this.isCreatingElement=!1;this.toastsElement=null;this.transactionToasts=[];this.customToasts=[];this.storeToastsSubscription=()=>null;this.eventBusUnsubscribeFunctions=[];this.eventBus=null;this.store=u();this.destroy(),this.lifetimeManager=new D,this.notificationsFeedManager=A.getInstance()}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.subscribeToEventBusNotifications(),this.storeToastsSubscription=this.store.subscribe(async({toasts:s,transactions:o},{toasts:i,transactions:n})=>{(!_(i.transactionToasts,s.transactionToasts)||!_(n,o))&&await this.updateTransactionToastsList(),_(i.customToasts,s.customToasts)||await this.updateCustomToastList()})}static getInstance(){return e.instance||(e.instance=new e),e.instance}handleCompletedTransaction(t){let{transactions:s}=this.store.getState(),o=s[t];if(!o)return!1;let{status:i}=o,n=nt(i),a=it(i),c=et(i),r=a||c||n;return r?(this.successfulToastLifetime&&this.lifetimeManager.start(t),r):(this.lifetimeManager.stop(t),r)}async createTransactionToast(t,s){let o=xt({toastId:t,totalDuration:s});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),o}createCustomToast(t){let s=N(t);return this.updateCustomToastList(),s}async updateTransactionToastsList(){let{toasts:t,transactions:s,account:o}=this.store.getState(),{pendingTransactionToasts:i,completedTransactionToasts:n}=await L({toastList:t,transactionsSessions:s,account:o});this.transactionToasts=[...i,...n];for(let a of t.transactionToasts)this.handleCompletedTransaction(a.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let s of t.customToasts){let i="message"in s?{...s}:{...s,instantiateToastElement:O[s.toastId]};this.customToasts.push(i),s.duration&&this.lifetimeManager.startWithCustomDuration(s.toastId,s.duration)}this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",this.customToasts)}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await rt.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}handleTransactionToastClose(t){this.handleCompletedTransaction(t)&&P(t)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.handleCloseToast.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.handleCloseToast.bind(this))}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}async showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}handleCloseToast(t){if(this.customToasts.find(o=>o.toastId===t)){this.lifetimeManager.stop(t);let o=T[t];o?.(),F(t);return}this.handleTransactionToastClose(t)}async publishTransactionToasts(){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts),this.hideToasts();return}if(!this.eventBus){let t=await this.createToastListElement();if(!t)return;this.eventBus=await t.getEventBus()}this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts)}destroy(){this.storeToastsSubscription(),this.lifetimeManager?.destroy(),this.notificationsFeedManager?.destroy(),At(),this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[]}};export{A as a,O as b,T as c,kt as d,F as e,At as f,Go as g,xt as h,P as i,N as j,D as k,p as l,x as m,B as n,Lt as o,k as p,bt as q,M as r,St as s,f as t,Ct as u};
|
|
2
|
+
//# sourceMappingURL=chunk-GUNYJMJE.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as s}from"./chunk-3IKGFPT3.mjs";import{a as e}from"./chunk-DJWI5LZX.mjs";import{a as i}from"./chunk-TI73UXGG.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-GY2WKBFX.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as n}from"./chunk-PJWJZHIS.mjs";import l from"bignumber.js";var P=({amount:c,minimumPositiveDecimals:e})=>{let[i,t]=c.split("."),m=(t?t.split(""):[]).reduce((r,o,s)=>{let a=new l(r).isGreaterThan(n),u=s>e-1;return a&&u&&e>0?r:r.concat(o)},"");return m?`${i}.${m}`:i};export{P as a};
|
|
2
|
+
//# sourceMappingURL=chunk-H33OUO77.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{u as e}from"./chunk-M5T2OACP.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HIKIVTTW.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i}from"./chunk-3AALZJXX.mjs";import{a}from"./chunk-DJWI5LZX.mjs";import{a as u}from"./chunk-CC4DXLNZ.mjs";import{c as n}from"./chunk-K7R2V5KX.mjs";import{a as s}from"./chunk-PWXGNRYT.mjs";var c=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&c(r,s.localStorage);try{return u(),n.forEach(g=>g()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-HLORMFN4.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as u}from"./chunk-TQA3JDNV.mjs";import{u as s}from"./chunk-M5T2OACP.mjs";import{e as a}from"./chunk-UERJ6AKK.mjs";function x(n){let e=s(),o=u(e),c=a(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t||n.nonce,c)}export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-I5OYRIZC.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{f as l}from"./chunk-PJWJZHIS.mjs";import{a as m}from"./chunk-DBIIY2TX.mjs";function g({token:t,noValue:n,showLastNonZeroDecimal:i}){let o=!n&&t.value&&t.type!=="NonFungibleESDT",r=t.decimals!=null,e="";t.type==="NonFungibleESDT"&&(e="NFT"),t.type==="SemiFungibleESDT"&&(e="SFT"),t.type==="MetaESDT"&&(e="Meta-ESDT");let a="";o&&r&&(a=r?l({input:t.value,decimals:t.decimals,digits:2,showLastNonZeroDecimal:i}):Number(t.value).toLocaleString("en"));let T=m.nftDetails(String(t.identifier)),c=t.ticker===t.collection?t.identifier??t.ticker:t.ticker;return{badgeText:e,tokenFormattedAmount:o?a:null,tokenExplorerLink:T,tokenLinkText:c,token:t,noValue:n,showLastNonZeroDecimal:i}}export{g as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IE3A2COQ.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{MvxLedgerConnect as i}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function n(e){try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(e)}catch(t){throw new Error("@multiversx/sdk-dapp-ui not found"+t)}}export{n as a,i as b};
|
|
2
|
+
//# sourceMappingURL=chunk-IFIL5YA5.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/lib/sdkDappUi.ts"],
|
|
4
|
+
"sourcesContent": ["export { MvxLedgerConnect } from '@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect';\nexport type { MvxSignTransactionsPanel } from '@multiversx/sdk-dapp-ui/web-components/mvx-sign-transactions-panel';\nexport type { MvxWalletConnect } from '@multiversx/sdk-dapp-ui/web-components/mvx-wallet-connect';\nexport type { MvxPendingTransactionsPanel } from '@multiversx/sdk-dapp-ui/web-components/mvx-pending-transactions-panel';\nexport type { MvxNotificationsFeed } from '@multiversx/sdk-dapp-ui/web-components/mvx-notifications-feed';\nexport type { MvxToastList } from '@multiversx/sdk-dapp-ui/web-components/mvx-toast-list';\nexport type { MvxUnlockPanel } from '@multiversx/sdk-dapp-ui/web-components/mvx-unlock-panel';\n\nexport type { IEventBus } from '@multiversx/sdk-dapp-ui/types/utils/EventBus';\nexport type {\n ITransactionListItem,\n ITransactionListItemAsset,\n ITransactionListItemAction\n} from '@multiversx/sdk-dapp-ui/types/components/visual/transaction-list-item/transaction-list-item.types';\n\nexport async function defineCustomElements(opts?: any): Promise<void> {\n try {\n const loader = await import('@multiversx/sdk-dapp-ui');\n loader.defineCustomElements(opts);\n } catch (err) {\n throw new Error('@multiversx/sdk-dapp-ui not found' + err);\n }\n}\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,oBAAAA,MAAwB,4DAejC,eAAsBC,EAAqBC,EAA2B,CACpE,GAAI,EACa,KAAM,QAAO,yBAAyB,GAC9C,qBAAqBA,CAAI,CAClC,OAASC,EAAK,CACZ,MAAM,IAAI,MAAM,oCAAsCA,CAAG,CAC3D,CACF",
|
|
6
|
+
"names": ["MvxLedgerConnect", "defineCustomElements", "opts", "err"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as h}from"./chunk-5P5FMYGA.mjs";import{a as S}from"./chunk-F5Q64A5W.mjs";import{a as o}from"./chunk-FMQYLMTU.mjs";import{a as y}from"./chunk-MFUQ5NBC.mjs";import{b as i,c as f}from"./chunk-UKGXMWHE.mjs";import{l}from"./chunk-65L5EBBL.mjs";var u={};async function d({serverTransaction:e,sessionId:t,isSequential:c}){let{hash:a,status:r,results:m,invalidTransaction:n,hasStatusChanged:p}=e;try{if(u[a]>30){i({sessionId:t,status:"timedOut"}),await o({sessionId:t,status:"timedOut"});return}if(n&&!c||r==="sent"){u[a]=u[a]?u[a]+1:1;return}if(c&&!r){let s=f({sessionId:t,transaction:e});await o({sessionId:t,status:s});return}if(p){let s=f({sessionId:t,transaction:e});await o({sessionId:t,status:s})}l(r)&&await S({sessionId:t,hash:a,results:m})}catch(T){console.error(T),i({sessionId:t,status:"timedOut"}),await o({sessionId:t,status:"timedOut"})}}async function R({sessionId:e,transactionBatch:t,isSequential:c}){try{if(t==null)return;let a=y(t),r=await h(a);for(let n of r)await d({serverTransaction:n,sessionId:e,isSequential:c});if(r.every(n=>n.status!=="pending")){if(r.every(s=>s.status==="success"))return i({sessionId:e,status:"success"});if(r.some(s=>s.status==="fail"))return i({sessionId:e,status:"fail"});if(r.every(s=>s.invalidTransaction))return i({sessionId:e,status:"invalid"})}}catch(a){console.error(a)}}export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IINL5CEU.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as c}from"./chunk-M5T2OACP.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-IVSP42IE.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as l}from"./chunk-J6N7KVXV.mjs";import{a as c}from"./chunk-MSQGMOCS.mjs";import{a}from"./chunk-YUFPUG5O.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
|
|
2
|
+
//# sourceMappingURL=chunk-IXGPMW52.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as g}from"./chunk-MSQGMOCS.mjs";import{a as f}from"./chunk-FRDR4A7Z.mjs";import{t as c}from"./chunk-GUNYJMJE.mjs";import{u as n}from"./chunk-M5T2OACP.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-J6N7KVXV.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as p}from"./chunk-Y3BNMQFP.mjs";import{b as o,d as c,e as g}from"./chunk-PJWJZHIS.mjs";import{a as m,c as t,e as d}from"./chunk-NTEMINYA.mjs";import{c as u,d as f,e as l}from"./chunk-LHEH7L4L.mjs";import P from"bignumber.js";var I={from:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa",to:"erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa"};function _({minGasLimit:r=String(5e4),gasLimit:e,gasPrice:i,data:k,gasPerDataByte:v,gasPriceModifier:G,defaultGasPrice:h=String(1e9),chainId:a}){let n=k||"",B=c(e)?e:r,L=p({data:n})?5e4:0,T=new P(B).plus(L).toNumber(),y=g(i)?i:h,x=new m({nonce:BigInt(0),value:BigInt(0),receiver:new t(I.to),sender:new t(I.to),gasPrice:BigInt(y),gasLimit:BigInt(T),data:Buffer.from(n.trim()),chainID:a,version:1});try{return new d().computeTransactionFee(x,{gasPerDataByte:BigInt(v),minGasLimit:BigInt(r),gasPriceModifier:parseFloat(G),chainID:a}).toString(10)}catch(s){return console.error(s),o}}export{_ as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JAIA24ND.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as l}from"./chunk-P4QMB34E.mjs";import{a as p}from"./chunk-RHCAOCW3.mjs";import{u as c}from"./chunk-M5T2OACP.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-TI73UXGG.mjs";import{a}from"./chunk-S2FQWSUO.mjs";var i=class i extends p{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 l.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(r){console.error(r),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await l.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=l.customProviders,r=[...Object.values(a).filter(n=>n!==a.none&&n!==a.webview),...e.map(n=>n.type)],P=e.reduce((n,t)=>(n[t.type]=t.name,n),{}),s={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>r.includes(n)):r).map(n=>{let t=e.find(g=>g.type===n);return t||{name:n in s?s[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var u=i;export{u as a};
|
|
2
|
+
//# sourceMappingURL=chunk-JIAKT3GI.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-YGI3KXMZ.mjs";import{a as e,c as a,f as i}from"./chunk-PJWJZHIS.mjs";var m=({feeLimit:o,egldPriceInUsd:r,hideEqualSign:l})=>{let s=i({input:o,decimals:a,digits:e,showLastNonZeroDecimal:!0}),t=n({amount:s,usd:r,decimals:e});return l?t:`\u2248 ${t}`};export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-K4ITACAF.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-PWXGNRYT.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map;export{r as a,i as b,p as c};
|
|
2
|
+
//# sourceMappingURL=chunk-K7R2V5KX.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as l}from"./chunk-NKUK5GFB.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
|
|
2
|
+
//# sourceMappingURL=chunk-KXK3FLN2.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-3OZWOKL7.mjs";import{b as r}from"./chunk-UVN6CHEM.mjs";import{u as i}from"./chunk-M5T2OACP.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=o(i());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LM2GCQL5.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"./chunk-PHOF3Z5D.mjs";import{c as s}from"./chunk-MGFIOCA4.mjs";import P from"bignumber.js";var d=({shard:i,gasStationMetadata:e,transaction:n,initialGasPrice:r=0})=>{let o=e?e[Number(i)]?.fast:0,p=e?e[Number(i)]?.faster:0,u=a({transaction:n,gasPriceData:{initialGasPrice:r,ppu:o}}),f=a({transaction:n,gasPriceData:{initialGasPrice:r,ppu:p}}),c=new P(u).isGreaterThan(r||0),m=new P(f).isGreaterThan(r||0);if(!(c||m))return[];let t=[{label:"Standard",value:0}];return c&&t.push({label:"Fast",value:o}),m&&t.push({label:"Faster",value:p}),t};export{d as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LN5UXO64.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as s}from"./chunk-RHCAOCW3.mjs";import{c as e}from"./chunk-MGFIOCA4.mjs";var o=class i extends s{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._ppuMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,ppuOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){let t=0;a.filter(n=>n!=null).forEach(n=>{let r=n?Number(n.gasPrice):0;this.updateGasPriceMap({nonce:Number(n.nonce),ppu:t,initialGasPrice:r})}),this.updateCommonData({ppu:t})}updateGasPriceMap({nonce:a,ppu:t,initialGasPrice:n}){this._ppuMap[a]={...this._ppuMap[a],ppu:t},n&&(this._ppuMap[a].initialGasPrice=n)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,t){switch(a){case"NonFungibleESDT":this.data.nftTransaction=t,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=t,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get ppuMap(){return this._ppuMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-LWDK4NX3.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as i}from"./chunk-FKBLKOLI.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as o}from"./chunk-5AGNJNHL.mjs";import{u as n}from"./chunk-M5T2OACP.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var w=async r=>{let{isGuarded:s}=o();if(!i({isGuarded:s,transactions:r}))return r;let a=r[0].getSender().bech32().toString(),{walletAddress:d}=e(n());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-M2ZSNGPS.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as s,f as l}from"./chunk-UERJ6AKK.mjs";import{f as a}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-H7E4BCEJ.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as g,b as c}from"./chunk-WZGG2YKQ.mjs";import{a as f,b as m}from"./chunk-X4XULIVT.mjs";import{a as T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as p}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as h,devtools as O,persist as V}from"zustand/middleware";import{immer as H}from"zustand/middleware/immer";import{createStore as N}from"zustand/vanilla";var A=e=>{e.account=g,e.loginInfo=f,e.transactions=d,e.toasts=S};function R(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=l(e),n=a(e),{address:i,publicKey:M}=s(e);if(i&&M!==new p(i).hex()&&A(e),!t)return;if(n==null){w(R());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var W=(e,t)=>{C(e)};var z=e=>{let t=N(O(V(H((...n)=>({network:x(...n),account:c(...n),loginInfo:m(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:h(e)})));return t.subscribe(W),t},r,D=e=>{r=e},o=()=>(r||D(z(()=>new v)),r),ae=(e=k)=>D(z(e)),pe=()=>o().getState();var fe=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),me=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletLogin=e},!1,"setWalletLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),Te=e=>o().setState(({loginInfo:t})=>{t.logoutRoute=e},!1,"setLogoutRoute"),ye=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{fe as a,me as b,Se as c,ue as d,de as e,Le as f,xe as g,Te as h,ye as i,E as j,b as k,A as l,R as m,w as n,C as o,W as p,z as q,D as r,o as s,ae as t,pe as u};
|
|
2
|
+
//# sourceMappingURL=chunk-M5T2OACP.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as n}from"./chunk-3C5GZ3BL.mjs";import{c as i,g as t,i as a}from"./chunk-NTEMINYA.mjs";async function x(o){try{let{message:d,address:e,signature:g}=JSON.parse(o),s=Buffer.from(d.replace("0x",""),"hex"),r=Buffer.from(g.replace("0x",""),"hex"),f=new i(e),c=n(e),m=new a,p=new t({address:f,data:s,signature:r}),u=m.computeBytesForVerifying(p);return{isVerified:await c.verify(u,r),message:s.toString(),address:e}}catch{return{isVerified:!1,message:"",address:""}}}export{x as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MDVI45IV.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{u as e}from"./chunk-M5T2OACP.mjs";import{b as t}from"./chunk-SAAOQW7P.mjs";import{x as r}from"./chunk-KD2IQ32V.mjs";import i from"axios";var T=async o=>{let{apiAddress:s}=t(e()),{data:a}=await i.get(`${s}/${r}`,{params:{hashes:o.join(","),withScResults:!0}});return a};export{T as a};
|
|
2
|
+
//# sourceMappingURL=chunk-N5DIMOWZ.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as s}from"./chunk-DLWDO7M6.mjs";import{d as p}from"./chunk-P4QMB34E.mjs";import{s as n}from"./chunk-GUNYJMJE.mjs";import{u as m}from"./chunk-M5T2OACP.mjs";import{d as t}from"./chunk-VNLGNNIL.mjs";import{a as e}from"./chunk-S2FQWSUO.mjs";import{a as f}from"./chunk-S5VF4GWN.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-NEHR66XQ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/providers/helpers/restoreProvider.ts"],
|
|
4
|
+
"sourcesContent": ["import { isMobileWebview } from 'lib/sdkWebviewProvider';\nimport { ProviderTypeEnum } from 'providers/types/providerFactory.types';\nimport { providerTypeSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { getIsInIframe } from 'utils/window/getIsInIframe';\nimport { setAccountProvider } from './accountProvider';\nimport { ProviderFactory } from '../ProviderFactory';\n\nexport async function restoreProvider() {\n const isMobile = isMobileWebview();\n const isInIframe = getIsInIframe();\n\n const type =\n isInIframe || isMobile\n ? ProviderTypeEnum.webview\n : providerTypeSelector(getState());\n\n if (!type) {\n return;\n }\n\n const provider = await ProviderFactory.create({\n type\n });\n\n if (!provider) {\n throw new Error('Provider not found');\n }\n\n /*\n Check if the app is running in webview and the provider is already initialized.\n - true: the app is embedded within another dApp (e.g., inside an iframe) and perform login using the provider.\n - false: the parent is not a dApp and proceed with initializing the current app as a standalone iframe.\n */\n if (\n isMobile ||\n (type === ProviderTypeEnum.webview && provider.isInitialized())\n ) {\n await provider.login();\n }\n\n setAccountProvider(provider);\n}\n"],
|
|
5
|
+
"mappings": "+RAQA,eAAsBA,GAAkB,CACtC,IAAMC,EAAWC,EAAgB,EAG3BC,EAFaC,EAAc,GAGjBH,EACVI,EAAiB,QACjBC,EAAqBC,EAAS,CAAC,EAErC,GAAI,CAACJ,EACH,OAGF,IAAMK,EAAW,MAAMC,EAAgB,OAAO,CAC5C,KAAAN,CACF,CAAC,EAED,GAAI,CAACK,EACH,MAAM,IAAI,MAAM,oBAAoB,GASpCP,GACCE,IAASE,EAAiB,SAAWG,EAAS,cAAc,IAE7D,MAAMA,EAAS,MAAM,EAGvBE,EAAmBF,CAAQ,CAC7B",
|
|
6
|
+
"names": ["restoreProvider", "isMobile", "isMobileWebview", "type", "getIsInIframe", "ProviderTypeEnum", "providerTypeSelector", "getState", "provider", "ProviderFactory", "setAccountProvider"]
|
|
7
|
+
}
|