@multiversx/sdk-dapp 5.0.2 → 5.0.4
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-24YYMWQL.mjs +2 -0
- package/out/__chunks__/chunk-2DFE24NA.mjs +2 -0
- package/out/__chunks__/chunk-2GOJSBHM.mjs +2 -0
- package/out/__chunks__/chunk-2ONA7QPD.mjs +2 -0
- package/out/__chunks__/chunk-2XGXXRSH.mjs +2 -0
- package/out/__chunks__/chunk-3C5GZ3BL.mjs +2 -0
- package/out/__chunks__/chunk-3KJKVWZX.mjs +2 -0
- package/out/__chunks__/chunk-3MEAYEOP.mjs +2 -0
- package/out/__chunks__/chunk-4WOBJUND.mjs +2 -0
- package/out/__chunks__/chunk-52PGMMOM.mjs +2 -0
- package/out/__chunks__/chunk-57JT3YYO.mjs +2 -0
- package/out/__chunks__/chunk-5CBADUK2.mjs +2 -0
- package/out/__chunks__/chunk-5E32AO3E.mjs +2 -0
- package/out/__chunks__/chunk-5EIUN6H3.mjs +2 -0
- package/out/__chunks__/chunk-5PFAZNIO.mjs +2 -0
- package/out/__chunks__/chunk-62NTXA3Q.mjs +2 -0
- package/out/__chunks__/chunk-64YGT5EQ.mjs +2 -0
- package/out/__chunks__/chunk-6D53LH5J.mjs +2 -0
- package/out/__chunks__/chunk-6K5K2OJF.mjs +2 -0
- package/out/__chunks__/chunk-6QSDEIFP.mjs +2 -0
- package/out/__chunks__/chunk-7FEQBPHA.mjs +2 -0
- package/out/__chunks__/chunk-A3CN5JWD.mjs +2 -0
- package/out/__chunks__/chunk-AFO4MJ3Y.mjs +2 -0
- package/out/__chunks__/chunk-AGUGUYQS.mjs +2 -0
- package/out/__chunks__/chunk-AL3SMFKF.mjs +2 -0
- package/out/__chunks__/chunk-AL3SMFKF.mjs.map +7 -0
- package/out/__chunks__/chunk-ANRHXERH.mjs +2 -0
- package/out/__chunks__/chunk-AZOEX4RJ.mjs +2 -0
- package/out/__chunks__/chunk-B3E34X2P.mjs +2 -0
- package/out/__chunks__/chunk-B5DFRWKW.mjs +2 -0
- package/out/__chunks__/chunk-B5OM6BTD.mjs +2 -0
- package/out/__chunks__/chunk-BDAB6XQS.mjs +2 -0
- package/out/__chunks__/chunk-BHRUDWJV.mjs +2 -0
- package/out/__chunks__/chunk-BPYUCILD.mjs +2 -0
- package/out/__chunks__/chunk-BTJWNUM6.mjs +2 -0
- package/out/__chunks__/chunk-BTJWNUM6.mjs.map +7 -0
- package/out/__chunks__/chunk-BZCIDXIT.mjs +2 -0
- package/out/__chunks__/chunk-CA5CTMET.mjs +2 -0
- package/out/__chunks__/chunk-CKPRCP4B.mjs +2 -0
- package/out/__chunks__/chunk-CUSPTSTX.mjs +2 -0
- package/out/__chunks__/chunk-CV6QXSKF.mjs +2 -0
- package/out/__chunks__/chunk-CXEW3QBW.mjs +2 -0
- package/out/__chunks__/chunk-D2ULWBRR.mjs +2 -0
- package/out/__chunks__/chunk-D5DPZ3O3.mjs +2 -0
- package/out/__chunks__/chunk-DCD7Z6NA.mjs +2 -0
- package/out/__chunks__/chunk-DFSBS3PX.mjs +2 -0
- package/out/__chunks__/chunk-DLWDO7M6.mjs +2 -0
- package/out/__chunks__/chunk-DLWDO7M6.mjs.map +7 -0
- package/out/__chunks__/chunk-E26YTVSR.mjs +2 -0
- package/out/__chunks__/chunk-EDKNWPTP.mjs +2 -0
- package/out/__chunks__/chunk-EDKNWPTP.mjs.map +7 -0
- package/out/__chunks__/chunk-F3VTVR46.mjs +2 -0
- package/out/__chunks__/chunk-F7QRSVP4.mjs +2 -0
- package/out/__chunks__/chunk-FCIBGJDC.mjs +2 -0
- package/out/__chunks__/chunk-FINVDQGG.mjs +2 -0
- package/out/__chunks__/chunk-FK73FOXL.mjs +2 -0
- package/out/__chunks__/chunk-FKGDHZZJ.mjs +2 -0
- package/out/__chunks__/chunk-FNYBJAH3.mjs +2 -0
- package/out/__chunks__/chunk-FYJSQ5IQ.mjs +2 -0
- package/out/__chunks__/chunk-GFR6K4DR.mjs +2 -0
- package/out/__chunks__/chunk-H33OUO77.mjs +2 -0
- package/out/__chunks__/chunk-H3YYJVD2.mjs +2 -0
- package/out/__chunks__/chunk-IE3A2COQ.mjs +2 -0
- package/out/__chunks__/chunk-IEGMED5L.mjs +2 -0
- package/out/__chunks__/chunk-IFIL5YA5.mjs +2 -0
- package/out/__chunks__/chunk-IFIL5YA5.mjs.map +7 -0
- package/out/__chunks__/chunk-ITL2BSZK.mjs +2 -0
- package/out/__chunks__/chunk-J7WSX6RF.mjs +2 -0
- package/out/__chunks__/chunk-JAIA24ND.mjs +2 -0
- package/out/__chunks__/chunk-JGHTVPC7.mjs +2 -0
- package/out/__chunks__/chunk-JKR3KSKZ.mjs +2 -0
- package/out/__chunks__/chunk-JMC7CMTU.mjs +2 -0
- package/out/__chunks__/chunk-K4ITACAF.mjs +2 -0
- package/out/__chunks__/chunk-KELD3JME.mjs +2 -0
- package/out/__chunks__/chunk-KRHBIYXH.mjs +2 -0
- package/out/__chunks__/chunk-LN5UXO64.mjs +2 -0
- package/out/__chunks__/chunk-MDVI45IV.mjs +2 -0
- package/out/__chunks__/chunk-MEGLLCCR.mjs +2 -0
- package/out/__chunks__/chunk-MPCAGTJW.mjs +2 -0
- package/out/__chunks__/chunk-NQSC7H2H.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-OLOCTHIE.mjs +2 -0
- package/out/__chunks__/chunk-OO76QA6O.mjs +2 -0
- package/out/__chunks__/chunk-PHBORH3K.mjs +2 -0
- package/out/__chunks__/chunk-PHOF3Z5D.mjs +2 -0
- package/out/__chunks__/chunk-PHT4H7NQ.mjs +2 -0
- package/out/__chunks__/chunk-PJWJZHIS.mjs +2 -0
- package/out/__chunks__/chunk-PJWJZHIS.mjs.map +7 -0
- package/out/__chunks__/chunk-PL64ZI4J.mjs +2 -0
- package/out/__chunks__/chunk-PL64ZI4J.mjs.map +7 -0
- package/out/__chunks__/chunk-PO5CKWAW.mjs +2 -0
- package/out/__chunks__/chunk-Q3WLMRWP.mjs +2 -0
- package/out/__chunks__/chunk-Q5Z34JFU.mjs +3 -0
- package/out/__chunks__/chunk-Q6O5CYQO.mjs +2 -0
- package/out/__chunks__/chunk-QC2L7ZLQ.mjs +2 -0
- package/out/__chunks__/chunk-QQAW7UC2.mjs +2 -0
- package/out/__chunks__/chunk-QW3IVSVZ.mjs +2 -0
- package/out/__chunks__/chunk-RJSOXNSA.mjs +2 -0
- package/out/__chunks__/chunk-RNLXKFRP.mjs +2 -0
- package/out/__chunks__/chunk-RZURE24V.mjs +2 -0
- package/out/__chunks__/chunk-S4QEQGMS.mjs +2 -0
- package/out/__chunks__/chunk-S7K3MC3O.mjs +2 -0
- package/out/__chunks__/chunk-T7DLVQ6J.mjs +2 -0
- package/out/__chunks__/chunk-THNK25ZD.mjs +2 -0
- package/out/__chunks__/chunk-TNL55CRB.mjs +2 -0
- package/out/__chunks__/chunk-U3UMCTU6.mjs +2 -0
- package/out/__chunks__/chunk-U4ZCGUVE.mjs +2 -0
- package/out/__chunks__/chunk-UBLZ4XV2.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-WS2TTYTH.mjs +2 -0
- package/out/__chunks__/chunk-WTNCKB4A.mjs +2 -0
- package/out/__chunks__/chunk-WZGG2YKQ.mjs +2 -0
- package/out/__chunks__/chunk-XAYCFZAU.mjs +2 -0
- package/out/__chunks__/chunk-XCVEFI4B.mjs +2 -0
- package/out/__chunks__/chunk-XIXT6MEM.mjs +2 -0
- package/out/__chunks__/chunk-Y3FWIS2E.mjs +2 -0
- package/out/__chunks__/chunk-Y7YFB6KR.mjs +2 -0
- package/out/__chunks__/chunk-YFM4XPJB.mjs +2 -0
- package/out/__chunks__/chunk-YNXPGS77.mjs +2 -0
- package/out/__chunks__/chunk-YRMDKZSS.mjs +2 -0
- package/out/__chunks__/chunk-YRRGPWNG.mjs +2 -0
- package/out/__chunks__/chunk-Z36DGV3K.mjs +2 -0
- package/out/__chunks__/chunk-ZECWUL7N.mjs +2 -0
- package/out/__chunks__/chunk-ZECWUL7N.mjs.map +7 -0
- package/out/__chunks__/chunk-ZT7AZLRE.mjs +2 -0
- package/out/__chunks__/chunk-ZW3NEESY.mjs +2 -0
- package/out/__mocks__/accountConfig.mjs +1 -1
- package/out/__mocks__/data/index.mjs +1 -1
- package/out/__mocks__/index.mjs +1 -1
- package/out/__mocks__/server.mjs +1 -1
- package/out/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/getTransactionsStatus.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/ToastManager/helpers/createTransactionToast.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.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.d.ts +1 -0
- 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/types/index.mjs +1 -1
- package/out/types/theme.types.d.ts +2 -1
- package/out/types/theme.types.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-JR23TXKP.mjs +0 -2
- package/out/__chunks__/chunk-JR23TXKP.mjs.map +0 -7
- 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-MOOY3SNQ.mjs.map → chunk-24YYMWQL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YTFYVPZO.mjs.map → chunk-2DFE24NA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KGXIPD5I.mjs.map → chunk-2GOJSBHM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LJ5JGAYL.mjs.map → chunk-2ONA7QPD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FIVH6RKU.mjs.map → chunk-2XGXXRSH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NO7YH2FT.mjs.map → chunk-3C5GZ3BL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6TJVNG7O.mjs.map → chunk-3KJKVWZX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-54I7T2PP.mjs.map → chunk-3MEAYEOP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A4RNPJJW.mjs.map → chunk-4WOBJUND.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LIPGE2RA.mjs.map → chunk-52PGMMOM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YNEVRTJM.mjs.map → chunk-57JT3YYO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4X3GF5DF.mjs.map → chunk-5CBADUK2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2SOS3KAT.mjs.map → chunk-5E32AO3E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RVEEVVOA.mjs.map → chunk-5EIUN6H3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ICZ6YALG.mjs.map → chunk-5PFAZNIO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-COZTBWPH.mjs.map → chunk-62NTXA3Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6RJQVLIY.mjs.map → chunk-64YGT5EQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YB7AHPBR.mjs.map → chunk-6D53LH5J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XVAA5JSP.mjs.map → chunk-6K5K2OJF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JESUVU73.mjs.map → chunk-6QSDEIFP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DHPD6E7P.mjs.map → chunk-7FEQBPHA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-T2BUXSZ5.mjs.map → chunk-A3CN5JWD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SRX2EMTG.mjs.map → chunk-AFO4MJ3Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ISPRIGOE.mjs.map → chunk-AGUGUYQS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U22MXHMS.mjs.map → chunk-ANRHXERH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6RAMYSEC.mjs.map → chunk-AZOEX4RJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R5SGFTE7.mjs.map → chunk-B3E34X2P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VTJUZ3TY.mjs.map → chunk-B5DFRWKW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YUIJMELA.mjs.map → chunk-B5OM6BTD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EVTERXBU.mjs.map → chunk-BDAB6XQS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OZCEAS6L.mjs.map → chunk-BHRUDWJV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PO27JYMA.mjs.map → chunk-BPYUCILD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MELQLFCR.mjs.map → chunk-BZCIDXIT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YMNKYTXZ.mjs.map → chunk-CA5CTMET.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LTHGO7JM.mjs.map → chunk-CKPRCP4B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RU7LAHKK.mjs.map → chunk-CUSPTSTX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BVKUZJNB.mjs.map → chunk-CV6QXSKF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XLVZQDL3.mjs.map → chunk-CXEW3QBW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UAW7SD6P.mjs.map → chunk-D2ULWBRR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6JEPIISC.mjs.map → chunk-D5DPZ3O3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-V4Z4FQJO.mjs.map → chunk-DCD7Z6NA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3MWXXTQQ.mjs.map → chunk-DFSBS3PX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DIV6ZH5K.mjs.map → chunk-E26YTVSR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A6IG4DO6.mjs.map → chunk-F3VTVR46.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-T4BJTXVW.mjs.map → chunk-F7QRSVP4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-266T724O.mjs.map → chunk-FCIBGJDC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-62EX26PE.mjs.map → chunk-FINVDQGG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-36VCBI2F.mjs.map → chunk-FK73FOXL.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-JQ47IJOB.mjs.map → chunk-FYJSQ5IQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KSKOSHYV.mjs.map → chunk-GFR6K4DR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DNHKXKYY.mjs.map → chunk-H33OUO77.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VWYDJFJH.mjs.map → chunk-H3YYJVD2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JIJSBQEU.mjs.map → chunk-IE3A2COQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IHKF4UNO.mjs.map → chunk-IEGMED5L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JQTCROGW.mjs.map → chunk-ITL2BSZK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MD7CSIXL.mjs.map → chunk-J7WSX6RF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KN7QMGWV.mjs.map → chunk-JAIA24ND.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5ECETGF7.mjs.map → chunk-JGHTVPC7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PQY2A63Y.mjs.map → chunk-JKR3KSKZ.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-RT44V62F.mjs.map → chunk-KELD3JME.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XALHL7VA.mjs.map → chunk-KRHBIYXH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O3V4TGXK.mjs.map → chunk-LN5UXO64.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z5CDCI3Y.mjs.map → chunk-MDVI45IV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRCMHPYS.mjs.map → chunk-MEGLLCCR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KZC44J42.mjs.map → chunk-MPCAGTJW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-673M5M6E.mjs.map → chunk-NQSC7H2H.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ABHYXD3U.mjs.map → chunk-OLOCTHIE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6EBIYJLF.mjs.map → chunk-OO76QA6O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MYSCFOXV.mjs.map → chunk-PHBORH3K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AV4HSXYZ.mjs.map → chunk-PHOF3Z5D.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D5IP4ZG2.mjs.map → chunk-PHT4H7NQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KDCMWWIT.mjs.map → chunk-PO5CKWAW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KU74A6T3.mjs.map → chunk-Q3WLMRWP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZXIBFH6X.mjs.map → chunk-Q5Z34JFU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AZMKY66I.mjs.map → chunk-Q6O5CYQO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DPUWJW5E.mjs.map → chunk-QC2L7ZLQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LUDF7ZUR.mjs.map → chunk-QQAW7UC2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-C5X7N2AN.mjs.map → chunk-QW3IVSVZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KIQBMB2Y.mjs.map → chunk-RJSOXNSA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SXECAH2A.mjs.map → chunk-RNLXKFRP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-M7EUMCPG.mjs.map → chunk-RZURE24V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-U7R4JK6U.mjs.map → chunk-S4QEQGMS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IP3MMHXY.mjs.map → chunk-S7K3MC3O.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MFK6BEXF.mjs.map → chunk-T7DLVQ6J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XVFVG64Y.mjs.map → chunk-THNK25ZD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FZS7JL2U.mjs.map → chunk-TNL55CRB.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-O4DQ3TWG.mjs.map → chunk-UBLZ4XV2.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-C6NGX4MC.mjs.map → chunk-WS2TTYTH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6IACSXVX.mjs.map → chunk-WTNCKB4A.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7BP53CXF.mjs.map → chunk-WZGG2YKQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I6BAZCYU.mjs.map → chunk-XAYCFZAU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P3BXXGQA.mjs.map → chunk-XCVEFI4B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CQ5GZXM5.mjs.map → chunk-XIXT6MEM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QZGJ5DCM.mjs.map → chunk-Y3FWIS2E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HCAXI2LY.mjs.map → chunk-Y7YFB6KR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6W67LK22.mjs.map → chunk-YFM4XPJB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DT6YLEPL.mjs.map → chunk-YNXPGS77.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KO5KDKZ7.mjs.map → chunk-YRMDKZSS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZU7V2CMU.mjs.map → chunk-YRRGPWNG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XTJQ2D6K.mjs.map → chunk-Z36DGV3K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I7NIOE4D.mjs.map → chunk-ZT7AZLRE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ROYSFSCI.mjs.map → chunk-ZW3NEESY.mjs.map} +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const accountSelectors_1 = require("../../../store/selectors/accountSelectors");
|
|
4
|
-
const transactionsSelector_1 = require("../../../store/selectors/transactionsSelector");
|
|
5
|
-
const store_1 = require("../../../store/store");
|
|
6
|
-
const getLatestNonce_1 = require("../getLatestNonce");
|
|
7
|
-
jest.mock('store/store');
|
|
8
|
-
jest.mock('store/selectors/accountSelectors');
|
|
9
|
-
jest.mock('store/selectors/transactionsSelector');
|
|
10
|
-
describe('getLatestNonce', () => {
|
|
11
|
-
beforeEach(() => {
|
|
12
|
-
jest.resetAllMocks();
|
|
13
|
-
});
|
|
14
|
-
it('should return the current account nonce if apiAccount is null', () => {
|
|
15
|
-
const state = {};
|
|
16
|
-
const currentAccountNonce = 5;
|
|
17
|
-
const transactionsSessions = {};
|
|
18
|
-
store_1.getState.mockReturnValue(state);
|
|
19
|
-
accountSelectors_1.accountNonceSelector.mockReturnValue(currentAccountNonce);
|
|
20
|
-
transactionsSelector_1.transactionsSliceSelector.mockReturnValue(transactionsSessions);
|
|
21
|
-
const result = (0, getLatestNonce_1.getLatestNonce)(null);
|
|
22
|
-
expect(result).toBe(currentAccountNonce);
|
|
23
|
-
});
|
|
24
|
-
it('should return the max nonce from transactions if apiAccount is null', () => {
|
|
25
|
-
const state = {};
|
|
26
|
-
const currentAccountNonce = 5;
|
|
27
|
-
const transactionsSessions = {
|
|
28
|
-
1234567890: {
|
|
29
|
-
transactions: [{ nonce: 10 }, { nonce: 15 }]
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
store_1.getState.mockReturnValue(state);
|
|
33
|
-
accountSelectors_1.accountNonceSelector.mockReturnValue(currentAccountNonce);
|
|
34
|
-
transactionsSelector_1.transactionsSliceSelector.mockReturnValue(transactionsSessions);
|
|
35
|
-
const result = (0, getLatestNonce_1.getLatestNonce)(null);
|
|
36
|
-
expect(result).toBe(16); // 15 + 1
|
|
37
|
-
});
|
|
38
|
-
it('should return the max nonce between apiAccount and currentAccountNonce', () => {
|
|
39
|
-
const state = {};
|
|
40
|
-
const currentAccountNonce = 5;
|
|
41
|
-
const transactionsSessions = {};
|
|
42
|
-
const apiAccount = {
|
|
43
|
-
nonce: 10,
|
|
44
|
-
address: '',
|
|
45
|
-
balance: '',
|
|
46
|
-
txCount: 0,
|
|
47
|
-
scrCount: 0,
|
|
48
|
-
claimableRewards: '',
|
|
49
|
-
isGuarded: false
|
|
50
|
-
};
|
|
51
|
-
store_1.getState.mockReturnValue(state);
|
|
52
|
-
accountSelectors_1.accountNonceSelector.mockReturnValue(currentAccountNonce);
|
|
53
|
-
transactionsSelector_1.transactionsSliceSelector.mockReturnValue(transactionsSessions);
|
|
54
|
-
const result = (0, getLatestNonce_1.getLatestNonce)(apiAccount);
|
|
55
|
-
expect(result).toBe(apiAccount.nonce);
|
|
56
|
-
});
|
|
57
|
-
it('should return the max nonce between transactions, apiAccount, and currentAccountNonce', () => {
|
|
58
|
-
const state = {};
|
|
59
|
-
const currentAccountNonce = 5;
|
|
60
|
-
const transactionsSessions = {
|
|
61
|
-
1234567890: {
|
|
62
|
-
transactions: [{ nonce: 10 }, { nonce: 15 }]
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const apiAccount = {
|
|
66
|
-
nonce: 12,
|
|
67
|
-
address: '',
|
|
68
|
-
balance: '',
|
|
69
|
-
txCount: 0,
|
|
70
|
-
scrCount: 0,
|
|
71
|
-
claimableRewards: '',
|
|
72
|
-
isGuarded: false
|
|
73
|
-
};
|
|
74
|
-
store_1.getState.mockReturnValue(state);
|
|
75
|
-
accountSelectors_1.accountNonceSelector.mockReturnValue(currentAccountNonce);
|
|
76
|
-
transactionsSelector_1.transactionsSliceSelector.mockReturnValue(transactionsSessions);
|
|
77
|
-
const result = (0, getLatestNonce_1.getLatestNonce)(apiAccount);
|
|
78
|
-
expect(result).toBe(16);
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
//# sourceMappingURL=getLatestNonce.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLatestNonce.test.js","sourceRoot":"","sources":["../../../../src/methods/account/tests/getLatestNonce.test.ts"],"names":[],"mappings":";;AAAA,uEAAwE;AACxE,+EAAiF;AACjF,uCAAuC;AAEvC,sDAAmD;AAEnD,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACzB,IAAI,CAAC,IAAI,CAAC,kCAAkC,CAAC,CAAC;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AAK,CAAC,CAAC;QAC9C,uCAAkC,CAAC,eAAe,CAAC,mBAAmB,CAAC,CAAC;QACxE,gDAAuC,CAAC,eAAe,CACtD,oBAAoB,CACrB,CAAC;QAEF,MAAM,MAAM,GAAG,IAAA,+BAAc,EAAC,UAAU,CAAC,CAAC;QAC1C,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setGasStationMetadata = void 0;
|
|
4
|
-
const getGasStationMetadata_1 = require("../../../apiCalls/configuration/getGasStationMetadata");
|
|
5
|
-
const networkActions_1 = require("../../../store/actions/network/networkActions");
|
|
6
|
-
const networkSelectors_1 = require("../../../store/selectors/networkSelectors");
|
|
7
|
-
const store_1 = require("../../../store/store");
|
|
8
|
-
async function setGasStationMetadata({ shard, apiAddress }) {
|
|
9
|
-
if (shard == null) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
try {
|
|
13
|
-
const fetchedGasMetadata = await (0, getGasStationMetadata_1.getGasStationMetadataFromApi)(shard, apiAddress);
|
|
14
|
-
if (!fetchedGasMetadata?.[shard]?.lastBlock) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const network = (0, networkSelectors_1.networkSelector)((0, store_1.getState)());
|
|
18
|
-
const hasDifferentGasStationMetadata = !network.gasStationMetadata ||
|
|
19
|
-
!network.gasStationMetadata[shard] ||
|
|
20
|
-
network.gasStationMetadata[shard].lastBlock !==
|
|
21
|
-
fetchedGasMetadata[shard].lastBlock;
|
|
22
|
-
if (hasDifferentGasStationMetadata) {
|
|
23
|
-
(0, networkActions_1.initializeNetworkConfig)({
|
|
24
|
-
...network,
|
|
25
|
-
gasStationMetadata: {
|
|
26
|
-
...network.gasStationMetadata,
|
|
27
|
-
...fetchedGasMetadata
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
catch (err) {
|
|
33
|
-
console.error('Error fetching gas station metadata:', err);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.setGasStationMetadata = setGasStationMetadata;
|
|
37
|
-
//# sourceMappingURL=setGasStationMetadata.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setGasStationMetadata.js","sourceRoot":"","sources":["../../../../src/methods/initApp/gastStationMetadata/setGasStationMetadata.ts"],"names":[],"mappings":";;;AAAA,wFAA4F;AAC5F,yEAA+E;AAC/E,uEAAmE;AACnE,uCAAuC;AAOhC,KAAK,UAAU,qBAAqB,CAAC,EAC1C,KAAK,EACL,UAAU,EACmB;IAC7B,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO;IACT,CAAC;IAED,IAAI,CAAC;QACH,MAAM,kBAAkB,GAAG,MAAM,IAAA,oDAA4B,EAC3D,KAAK,EACL,UAAU,CACX,CAAC;QAEF,IAAI,CAAC,kBAAkB,EAAE,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;YAC5C,OAAO;QACT,CAAC;QAED,MAAM,OAAO,GAAG,IAAA,kCAAe,EAAC,IAAA,gBAAQ,GAAE,CAAC,CAAC;QAE5C,MAAM,8BAA8B,GAClC,CAAC,OAAO,CAAC,kBAAkB;YAC3B,CAAC,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC;YAClC,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,SAAS;gBACzC,kBAAkB,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC;QAExC,IAAI,8BAA8B,EAAE,CAAC;YACnC,IAAA,wCAAuB,EAAC;gBACtB,GAAG,OAAO;gBACV,kBAAkB,EAAE;oBAClB,GAAG,OAAO,CAAC,kBAAkB;oBAC7B,GAAG,kBAAkB;iBACtB;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,sCAAsC,EAAE,GAAG,CAAC,CAAC;IAC7D,CAAC;AACH,CAAC;AAtCD,sDAsCC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initApp = void 0;
|
|
4
|
-
const window_constants_1 = require("../../constants/window.constants");
|
|
5
|
-
const ToastManager_1 = require("../../managers/internal/ToastManager/ToastManager");
|
|
6
|
-
const LogoutManager_1 = require("../../managers/LogoutManager/LogoutManager");
|
|
7
|
-
const sessionCallbacks_1 = require("../../managers/TransactionManager/helpers/sessionCallbacks");
|
|
8
|
-
const restoreProvider_1 = require("../../providers/helpers/restoreProvider");
|
|
9
|
-
const ProviderFactory_1 = require("../../providers/ProviderFactory");
|
|
10
|
-
const getDefaultNativeAuthConfig_1 = require("../../services/nativeAuth/methods/getDefaultNativeAuthConfig");
|
|
11
|
-
const actions_1 = require("../../store/actions");
|
|
12
|
-
const configActions_1 = require("../../store/actions/config/configActions");
|
|
13
|
-
const storage_1 = require("../../store/storage");
|
|
14
|
-
const store_1 = require("../../store/store");
|
|
15
|
-
const types_1 = require("../../types");
|
|
16
|
-
const switchTheme_1 = require("../../utils/visual/switchTheme");
|
|
17
|
-
const getIsLoggedIn_1 = require("../account/getIsLoggedIn");
|
|
18
|
-
const registerWebsocket_1 = require("./websocket/registerWebsocket");
|
|
19
|
-
const trackTransactions_1 = require("../trackTransactions/trackTransactions");
|
|
20
|
-
const setGasStationMetadata_1 = require("./gastStationMetadata/setGasStationMetadata");
|
|
21
|
-
const getAccount_1 = require("../account/getAccount");
|
|
22
|
-
const defaultInitAppProps = {
|
|
23
|
-
storage: {
|
|
24
|
-
getStorageCallback: storage_1.defaultStorageCallback
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Flag indicating whether the app has already been initialized.
|
|
29
|
-
*
|
|
30
|
-
* Prevents repeated initialization steps such as provider restoration,
|
|
31
|
-
* websocket listener registration, and transaction tracking setup.
|
|
32
|
-
* This ensures that multiple calls to `initApp` do not cause duplicated
|
|
33
|
-
* subscriptions or side effects.
|
|
34
|
-
*
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
let isAppInitialized = false;
|
|
38
|
-
/**
|
|
39
|
-
* Initializes the dApp with the given configuration.
|
|
40
|
-
* @param props - The configuration for the dApp initialization.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
initApp({
|
|
45
|
-
nativeAuth: true,
|
|
46
|
-
environment: EnvironmentsEnum.devnet
|
|
47
|
-
});
|
|
48
|
-
* ```
|
|
49
|
-
* */
|
|
50
|
-
async function initApp({ storage = defaultInitAppProps.storage, dAppConfig, customProviders }) {
|
|
51
|
-
const defaultTheme = dAppConfig?.theme ?? types_1.ThemesEnum.dark;
|
|
52
|
-
(0, switchTheme_1.switchTheme)(defaultTheme);
|
|
53
|
-
(0, store_1.initStore)(storage.getStorageCallback);
|
|
54
|
-
const { apiAddress } = await (0, actions_1.initializeNetwork)({
|
|
55
|
-
customNetworkConfig: dAppConfig.network,
|
|
56
|
-
environment: dAppConfig.environment
|
|
57
|
-
});
|
|
58
|
-
if (dAppConfig?.nativeAuth) {
|
|
59
|
-
const nativeAuthConfig = typeof dAppConfig.nativeAuth === 'boolean' &&
|
|
60
|
-
dAppConfig.nativeAuth === true
|
|
61
|
-
? (0, getDefaultNativeAuthConfig_1.getDefaultNativeAuthConfig)({ apiAddress })
|
|
62
|
-
: (0, getDefaultNativeAuthConfig_1.getDefaultNativeAuthConfig)(dAppConfig.nativeAuth);
|
|
63
|
-
(0, configActions_1.setNativeAuthConfig)(nativeAuthConfig);
|
|
64
|
-
}
|
|
65
|
-
if (dAppConfig?.providers?.walletConnect) {
|
|
66
|
-
(0, configActions_1.setWalletConnectConfig)(dAppConfig.providers.walletConnect);
|
|
67
|
-
}
|
|
68
|
-
const isLoggedIn = (0, getIsLoggedIn_1.getIsLoggedIn)();
|
|
69
|
-
const account = (0, getAccount_1.getAccount)();
|
|
70
|
-
const toastManager = ToastManager_1.ToastManager.getInstance();
|
|
71
|
-
await toastManager.init({
|
|
72
|
-
successfulToastLifetime: dAppConfig.transactionTracking?.successfulToastLifetime
|
|
73
|
-
});
|
|
74
|
-
const usedProviders = [
|
|
75
|
-
...(window_constants_1.safeWindow?.multiversx?.providers ?? []),
|
|
76
|
-
...(customProviders || [])
|
|
77
|
-
];
|
|
78
|
-
const uniqueProviders = usedProviders.filter((provider, index, arr) => index === arr.findIndex((item) => item.type === provider.type));
|
|
79
|
-
ProviderFactory_1.ProviderFactory.customProviders = uniqueProviders || [];
|
|
80
|
-
if (!isAppInitialized) {
|
|
81
|
-
await (0, restoreProvider_1.restoreProvider)();
|
|
82
|
-
if (isLoggedIn) {
|
|
83
|
-
await (0, registerWebsocket_1.registerWebsocketListener)(account.address);
|
|
84
|
-
(0, trackTransactions_1.trackTransactions)();
|
|
85
|
-
LogoutManager_1.LogoutManager.getInstance().init();
|
|
86
|
-
(0, sessionCallbacks_1.registerSessionCallbacks)({
|
|
87
|
-
onSuccess: dAppConfig.transactionTracking?.onSuccess,
|
|
88
|
-
onFail: dAppConfig.transactionTracking?.onFail
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
if (account.shard != null) {
|
|
93
|
-
await (0, setGasStationMetadata_1.setGasStationMetadata)({
|
|
94
|
-
shard: Number(account.shard),
|
|
95
|
-
apiAddress
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
isAppInitialized = true;
|
|
99
|
-
}
|
|
100
|
-
exports.initApp = initApp;
|
|
101
|
-
//# sourceMappingURL=initApp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initApp.js","sourceRoot":"","sources":["../../../src/methods/initApp/initApp.ts"],"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;QACL,CAAC;IACH,CAAC;IAED,IAAI,OAAO,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;QAC1B,MAAM,IAAA,6CAAqB,EAAC;YAC1B,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;YAC5B,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC;AAxED,0BAwEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initApp.types.js","sourceRoot":"","sources":["../../../src/methods/initApp/initApp.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initializeWebsocketConnection = void 0;
|
|
4
|
-
const socket_io_client_1 = require("socket.io-client");
|
|
5
|
-
const websocket_1 = require("../../../apiCalls/websocket");
|
|
6
|
-
const websocket_constants_1 = require("../../../constants/websocket.constants");
|
|
7
|
-
const accountActions_1 = require("../../../store/actions/account/accountActions");
|
|
8
|
-
const configActions_1 = require("../../../store/actions/config/configActions");
|
|
9
|
-
const selectors_1 = require("../../../store/selectors");
|
|
10
|
-
const store_1 = require("../../../store/store");
|
|
11
|
-
const retryMultipleTimes_1 = require("../../../utils/retryMultipleTimes");
|
|
12
|
-
const TIMEOUT = 3000;
|
|
13
|
-
const RECONNECTION_ATTEMPTS = 3;
|
|
14
|
-
const RETRY_INTERVAL = 500;
|
|
15
|
-
const MESSAGE_DELAY = 1000;
|
|
16
|
-
const SOCKET_CONNECTION_DELAY = 1000;
|
|
17
|
-
const BATCH_UPDATED_EVENT = 'batchUpdated';
|
|
18
|
-
const CONNECT = 'connect';
|
|
19
|
-
const CONNECT_ERROR = 'connect_error';
|
|
20
|
-
const DISCONNECT = 'disconnect';
|
|
21
|
-
async function initializeWebsocketConnection(address) {
|
|
22
|
-
const { apiAddress, websocketUrl: customWebsocketUrl } = (0, selectors_1.networkSelector)((0, store_1.getStore)().getState());
|
|
23
|
-
if (!address) {
|
|
24
|
-
throw new Error('Websocket could not be initialized: address missing');
|
|
25
|
-
}
|
|
26
|
-
let messageTimeout = null;
|
|
27
|
-
let batchTimeout = null;
|
|
28
|
-
// Update socket status in store for status subscription
|
|
29
|
-
const updateSocketStatus = (status) => {
|
|
30
|
-
websocket_constants_1.websocketConnection.status = status;
|
|
31
|
-
(0, configActions_1.setWebsocketStatus)(status);
|
|
32
|
-
};
|
|
33
|
-
const handleMessageReceived = (message) => {
|
|
34
|
-
if (messageTimeout) {
|
|
35
|
-
clearTimeout(messageTimeout);
|
|
36
|
-
}
|
|
37
|
-
messageTimeout = setTimeout(() => {
|
|
38
|
-
(0, accountActions_1.setWebsocketEvent)(message);
|
|
39
|
-
}, MESSAGE_DELAY);
|
|
40
|
-
};
|
|
41
|
-
const handleBatchUpdate = (data) => {
|
|
42
|
-
if (batchTimeout) {
|
|
43
|
-
clearTimeout(batchTimeout);
|
|
44
|
-
}
|
|
45
|
-
batchTimeout = setTimeout(() => {
|
|
46
|
-
(0, accountActions_1.setWebsocketBatchEvent)(data);
|
|
47
|
-
}, MESSAGE_DELAY);
|
|
48
|
-
};
|
|
49
|
-
const closeConnection = () => {
|
|
50
|
-
const instance = websocket_constants_1.websocketConnection.instance;
|
|
51
|
-
if (instance) {
|
|
52
|
-
instance.off(CONNECT_ERROR);
|
|
53
|
-
instance.off(CONNECT);
|
|
54
|
-
instance.off(BATCH_UPDATED_EVENT);
|
|
55
|
-
instance.off(DISCONNECT);
|
|
56
|
-
instance.close();
|
|
57
|
-
console.log('Websocket disconnected.');
|
|
58
|
-
}
|
|
59
|
-
updateSocketStatus(websocket_constants_1.WebsocketConnectionStatusEnum.NOT_INITIALIZED);
|
|
60
|
-
websocket_constants_1.websocketConnection.instance = null;
|
|
61
|
-
if (messageTimeout) {
|
|
62
|
-
clearTimeout(messageTimeout);
|
|
63
|
-
}
|
|
64
|
-
if (batchTimeout) {
|
|
65
|
-
clearTimeout(batchTimeout);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
const initializeConnection = (0, retryMultipleTimes_1.retryMultipleTimes)(async () => {
|
|
69
|
-
const retryWebsocketConnect = async (retries = RECONNECTION_ATTEMPTS, delay = RETRY_INTERVAL) => {
|
|
70
|
-
let attempt = 0;
|
|
71
|
-
let connectionCheckTimeout = null;
|
|
72
|
-
let retryTimeout = null;
|
|
73
|
-
const tryReconnect = async () => {
|
|
74
|
-
if (attempt >= retries) {
|
|
75
|
-
console.warn('WebSocket reconnection failed after max attempts.');
|
|
76
|
-
updateSocketStatus(websocket_constants_1.WebsocketConnectionStatusEnum.NOT_INITIALIZED);
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
attempt++;
|
|
80
|
-
// Clean up previous socket
|
|
81
|
-
websocket_constants_1.websocketConnection.instance?.off();
|
|
82
|
-
websocket_constants_1.websocketConnection.instance?.close();
|
|
83
|
-
websocket_constants_1.websocketConnection.instance = null;
|
|
84
|
-
try {
|
|
85
|
-
// Attempt to reconnect
|
|
86
|
-
await initializeConnection(); // attempt to reconnect
|
|
87
|
-
// Wait briefly and check if socket is actually connected
|
|
88
|
-
connectionCheckTimeout = setTimeout(() => {
|
|
89
|
-
const isConnected = websocket_constants_1.websocketConnection.instance?.connected;
|
|
90
|
-
if (!isConnected) {
|
|
91
|
-
// If not connected, retry the connection
|
|
92
|
-
retryTimeout = setTimeout(tryReconnect, delay);
|
|
93
|
-
}
|
|
94
|
-
}, SOCKET_CONNECTION_DELAY);
|
|
95
|
-
}
|
|
96
|
-
catch {
|
|
97
|
-
// If reconnect fails, retry after delay
|
|
98
|
-
retryTimeout = setTimeout(tryReconnect, delay);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
// Start the reconnection process
|
|
102
|
-
tryReconnect();
|
|
103
|
-
// Clear any timeouts
|
|
104
|
-
const clearTimeouts = () => {
|
|
105
|
-
if (connectionCheckTimeout) {
|
|
106
|
-
clearTimeout(connectionCheckTimeout);
|
|
107
|
-
connectionCheckTimeout = null;
|
|
108
|
-
}
|
|
109
|
-
if (retryTimeout) {
|
|
110
|
-
clearTimeout(retryTimeout);
|
|
111
|
-
retryTimeout = null;
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
return clearTimeouts;
|
|
115
|
-
};
|
|
116
|
-
updateSocketStatus(websocket_constants_1.WebsocketConnectionStatusEnum.PENDING);
|
|
117
|
-
const websocketUrl = customWebsocketUrl ?? (await (0, websocket_1.getWebsocketUrl)(apiAddress));
|
|
118
|
-
if (!websocketUrl) {
|
|
119
|
-
updateSocketStatus(websocket_constants_1.WebsocketConnectionStatusEnum.NOT_INITIALIZED);
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
websocket_constants_1.websocketConnection.instance = (0, socket_io_client_1.io)(websocketUrl, {
|
|
123
|
-
forceNew: true,
|
|
124
|
-
reconnection: true,
|
|
125
|
-
reconnectionAttempts: RECONNECTION_ATTEMPTS,
|
|
126
|
-
timeout: TIMEOUT,
|
|
127
|
-
query: { address }
|
|
128
|
-
});
|
|
129
|
-
websocket_constants_1.websocketConnection.instance.onAny(handleMessageReceived);
|
|
130
|
-
websocket_constants_1.websocketConnection.instance.on(BATCH_UPDATED_EVENT, handleBatchUpdate);
|
|
131
|
-
websocket_constants_1.websocketConnection.instance.on(CONNECT, () => {
|
|
132
|
-
console.log('Websocket connected.');
|
|
133
|
-
updateSocketStatus(websocket_constants_1.WebsocketConnectionStatusEnum.COMPLETED);
|
|
134
|
-
});
|
|
135
|
-
websocket_constants_1.websocketConnection.instance.on(CONNECT_ERROR, async (error) => {
|
|
136
|
-
console.warn('Websocket connect error: ', error.message);
|
|
137
|
-
const clearTimeouts = await retryWebsocketConnect();
|
|
138
|
-
clearTimeouts();
|
|
139
|
-
});
|
|
140
|
-
websocket_constants_1.websocketConnection.instance.on(DISCONNECT, async () => {
|
|
141
|
-
console.warn('Websocket disconnected. Trying to reconnect...');
|
|
142
|
-
const clearTimeouts = await retryWebsocketConnect();
|
|
143
|
-
clearTimeouts();
|
|
144
|
-
});
|
|
145
|
-
}, { retries: 2, delay: RETRY_INTERVAL });
|
|
146
|
-
if (websocket_constants_1.websocketConnection.status ===
|
|
147
|
-
websocket_constants_1.WebsocketConnectionStatusEnum.NOT_INITIALIZED &&
|
|
148
|
-
!websocket_constants_1.websocketConnection.instance?.active) {
|
|
149
|
-
await initializeConnection();
|
|
150
|
-
}
|
|
151
|
-
return {
|
|
152
|
-
closeConnection
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
exports.initializeWebsocketConnection = initializeWebsocketConnection;
|
|
156
|
-
//# sourceMappingURL=initializeWebsocketConnection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initializeWebsocketConnection.js","sourceRoot":"","sources":["../../../../src/methods/initApp/websocket/initializeWebsocketConnection.ts"],"names":[],"mappings":";;;AAAA,uDAAsC;AACtC,kDAAqD;AACrD,uEAGuC;AACvC,yEAG8C;AAC9C,sEAAwE;AACxE,+CAAkD;AAClD,uCAAuC;AAEvC,iEAA8D;AAE9D,MAAM,OAAO,GAAG,IAAI,CAAC;AACrB,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAChC,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,uBAAuB,GAAG,IAAI,CAAC;AACrC,MAAM,mBAAmB,GAAG,cAAc,CAAC;AAC3C,MAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,MAAM,aAAa,GAAG,eAAe,CAAC;AACtC,MAAM,UAAU,GAAG,YAAY,CAAC;AAIzB,KAAK,UAAU,6BAA6B,CAAC,OAAe;IACjE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,GAAG,IAAA,2BAAe,EACtE,IAAA,gBAAQ,GAAE,CAAC,QAAQ,EAAE,CACtB,CAAC;IAEF,IAAI,CAAC,OAAO,EA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1D,yCAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,CAAC;QAExE,yCAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;YAC5C,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;YACpC,kBAAkB,CAAC,mDAA6B,CAAC,SAAS,CAAC,CAAC;QAC9D,CAAC,CAAC,CAAC;QAEH,yCAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;YAC7D,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YACzD,MAAM,aAAa,GAAG,MAAM,qBAAqB,EAAE,CAAC;YACpD,aAAa,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,yCAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,IAAI,EAAE;YACrD,OAAO,CAAC,IAAI,CAAC,gDAAgD,CAAC,CAAC;YAC/D,MAAM,aAAa,GAAG,MAAM,qBAAqB,EAAE,CAAC;YACpD,aAAa,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC,EACD,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CACtC,CAAC;IAEF,IACE,yCAAmB,CAAC,MAAM;QACxB,mDAA6B,CAAC,eAAe;QAC/C,CAAC,yCAAmB,CAAC,QAAQ,EAAE,MAAM,EACrC,CAAC;QACD,MAAM,oBAAoB,EAAE,CAAC;IAC/B,CAAC;IAED,OAAO;QACL,eAAe;KAChB,CAAC;AACJ,CAAC;AA9KD,sEA8KC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.registerWebsocketListener = exports.websocketManager = void 0;
|
|
4
|
-
const initializeWebsocketConnection_1 = require("./initializeWebsocketConnection");
|
|
5
|
-
/**
|
|
6
|
-
* Manages the WebSocket connection lifecycle.
|
|
7
|
-
*
|
|
8
|
-
* Holds a reference to the current WebSocket connection's `closeConnection` method,
|
|
9
|
-
* allowing other parts of the application to close the connection on demand (e.g., on logout).
|
|
10
|
-
*
|
|
11
|
-
* This pattern avoids exporting mutable bindings directly by encapsulating
|
|
12
|
-
* the reference within a stable object.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* await registerWebsocketListener(address);
|
|
17
|
-
* websocketManager.closeConnectionRef?.();
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
exports.websocketManager = {
|
|
21
|
-
closeConnectionRef: undefined
|
|
22
|
-
};
|
|
23
|
-
async function registerWebsocketListener(address) {
|
|
24
|
-
const { closeConnection } = await (0, initializeWebsocketConnection_1.initializeWebsocketConnection)(address);
|
|
25
|
-
exports.websocketManager.closeConnectionRef = closeConnection;
|
|
26
|
-
}
|
|
27
|
-
exports.registerWebsocketListener = registerWebsocketListener;
|
|
28
|
-
//# sourceMappingURL=registerWebsocket.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registerWebsocket.js","sourceRoot":"","sources":["../../../../src/methods/initApp/websocket/registerWebsocket.ts"],"names":[],"mappings":";;;AAAA,mFAAgF;AAEhF;;;;;;;;;;;;;;GAcG;AACU,QAAA,gBAAgB,GAAG;IAC9B,kBAAkB,EAAE,SAAqC;CAC1D,CAAC;AAEK,KAAK,UAAU,yBAAyB,CAAC,OAAe;IAC7D,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,IAAA,6DAA6B,EAAC,OAAO,CAAC,CAAC;IAEzE,wBAAgB,CAAC,kBAAkB,GAAG,eAAe,CAAC;AACxD,CAAC;AAJD,8DAIC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLoginInfo = void 0;
|
|
4
|
-
const store_1 = require("../../store/store");
|
|
5
|
-
const accountSelectors_1 = require("../../store/selectors/accountSelectors");
|
|
6
|
-
const loginInfoSelectors_1 = require("../../store/selectors/loginInfoSelectors");
|
|
7
|
-
const getLoginInfo = (state = (0, store_1.getState)()) => {
|
|
8
|
-
return {
|
|
9
|
-
...(0, loginInfoSelectors_1.loginInfoSelector)(state),
|
|
10
|
-
isLoggedIn: (0, accountSelectors_1.isLoggedInSelector)(state)
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
exports.getLoginInfo = getLoginInfo;
|
|
14
|
-
//# sourceMappingURL=getLoginInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getLoginInfo.js","sourceRoot":"","sources":["../../../src/methods/loginInfo/getLoginInfo.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,6EAA4E;AAC5E,iFAA6E;AAEtE,MAAM,YAAY,GAAG,CAAC,KAAK,GAAG,IAAA,gBAAQ,GAAE,EAAE,EAAE;IACjD,OAAO;QACL,GAAG,IAAA,sCAAiB,EAAC,KAAK,CAAC;QAC3B,UAAU,EAAE,IAAA,qCAAkB,EAAC,KAAK,CAAC;KACtC,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,YAAY,gBAKvB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEgldLabel = void 0;
|
|
4
|
-
const networkSelectors_1 = require("../../store/selectors/networkSelectors");
|
|
5
|
-
const store_1 = require("../../store/store");
|
|
6
|
-
function getEgldLabel(state = (0, store_1.getState)()) {
|
|
7
|
-
return (0, networkSelectors_1.networkSelector)(state).egldLabel;
|
|
8
|
-
}
|
|
9
|
-
exports.getEgldLabel = getEgldLabel;
|
|
10
|
-
//# sourceMappingURL=getEgldLabel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getEgldLabel.js","sourceRoot":"","sources":["../../../src/methods/network/getEgldLabel.ts"],"names":[],"mappings":";;;AAAA,uEAAmE;AACnE,uCAAuC;AAEvC,SAAgB,YAAY,CAAC,KAAK,GAAG,IAAA,gBAAQ,GAAE;IAC7C,OAAO,IAAA,kCAAe,EAAC,KAAK,CAAC,CAAC,SAAS,CAAC;AAC1C,CAAC;AAFD,oCAEC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExplorerAddress = void 0;
|
|
4
|
-
const networkSelectors_1 = require("../../store/selectors/networkSelectors");
|
|
5
|
-
const store_1 = require("../../store/store");
|
|
6
|
-
function getExplorerAddress(state = (0, store_1.getState)()) {
|
|
7
|
-
return (0, networkSelectors_1.networkSelector)(state).explorerAddress;
|
|
8
|
-
}
|
|
9
|
-
exports.getExplorerAddress = getExplorerAddress;
|
|
10
|
-
//# sourceMappingURL=getExplorerAddress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getExplorerAddress.js","sourceRoot":"","sources":["../../../src/methods/network/getExplorerAddress.ts"],"names":[],"mappings":";;;AAAA,uEAAmE;AACnE,uCAAuC;AAEvC,SAAgB,kBAAkB,CAAC,KAAK,GAAG,IAAA,gBAAQ,GAAE;IACnD,OAAO,IAAA,kCAAe,EAAC,KAAK,CAAC,CAAC,eAAe,CAAC;AAChD,CAAC;AAFD,gDAEC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNetworkConfig = void 0;
|
|
4
|
-
const networkSelectors_1 = require("../../store/selectors/networkSelectors");
|
|
5
|
-
const store_1 = require("../../store/store");
|
|
6
|
-
function getNetworkConfig(state = (0, store_1.getState)()) {
|
|
7
|
-
return (0, networkSelectors_1.networkConfigSelector)(state);
|
|
8
|
-
}
|
|
9
|
-
exports.getNetworkConfig = getNetworkConfig;
|
|
10
|
-
//# sourceMappingURL=getNetworkConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNetworkConfig.js","sourceRoot":"","sources":["../../../src/methods/network/getNetworkConfig.ts"],"names":[],"mappings":";;;AAAA,uEAAyE;AACzE,uCAAuC;AAEvC,SAAgB,gBAAgB,CAAC,KAAK,GAAG,IAAA,gBAAQ,GAAE;IACjD,OAAO,IAAA,wCAAqB,EAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAFD,4CAEC"}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkBatch = void 0;
|
|
4
|
-
const getTransactionsByHashes_1 = require("../../../../apiCalls/transactions/getTransactionsByHashes");
|
|
5
|
-
const transactionsActions_1 = require("../../../../store/actions/transactions/transactionsActions");
|
|
6
|
-
const transactionStateByStatus_1 = require("../../../../store/actions/transactions/transactionStateByStatus");
|
|
7
|
-
const enums_types_1 = require("../../../../types/enums.types");
|
|
8
|
-
const getPendingTransactions_1 = require("./getPendingTransactions");
|
|
9
|
-
const manageFailedTransactions_1 = require("./manageFailedTransactions");
|
|
10
|
-
const runSessionCallbacks_1 = require("./runSessionCallbacks");
|
|
11
|
-
const retries = {};
|
|
12
|
-
async function manageTransaction({ serverTransaction: transaction, sessionId, isSequential }) {
|
|
13
|
-
const { hash, status, results, invalidTransaction, hasStatusChanged } = transaction;
|
|
14
|
-
try {
|
|
15
|
-
const retriesForThisHash = retries[hash];
|
|
16
|
-
if (retriesForThisHash > 30) {
|
|
17
|
-
// consider transaction as stuck after 1 minute
|
|
18
|
-
(0, transactionsActions_1.updateSessionStatus)({
|
|
19
|
-
sessionId,
|
|
20
|
-
status: enums_types_1.TransactionBatchStatusesEnum.timedOut
|
|
21
|
-
});
|
|
22
|
-
await (0, runSessionCallbacks_1.runSessionCallbacks)({
|
|
23
|
-
sessionId,
|
|
24
|
-
status: enums_types_1.TransactionBatchStatusesEnum.timedOut
|
|
25
|
-
});
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if ((invalidTransaction && !isSequential) ||
|
|
29
|
-
status === enums_types_1.TransactionBatchStatusesEnum.sent) {
|
|
30
|
-
retries[hash] = retries[hash] ? retries[hash] + 1 : 1;
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
// The tx is from a sequential batch.
|
|
34
|
-
// If the transactions before this are not successful then it means that no other tx will be processed
|
|
35
|
-
if (isSequential && !status) {
|
|
36
|
-
const newStatus = (0, transactionsActions_1.updateTransactionStatus)({
|
|
37
|
-
sessionId,
|
|
38
|
-
transaction
|
|
39
|
-
});
|
|
40
|
-
await (0, runSessionCallbacks_1.runSessionCallbacks)({
|
|
41
|
-
sessionId,
|
|
42
|
-
status: newStatus
|
|
43
|
-
});
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
if (hasStatusChanged) {
|
|
47
|
-
const newStatus = (0, transactionsActions_1.updateTransactionStatus)({
|
|
48
|
-
sessionId,
|
|
49
|
-
transaction
|
|
50
|
-
});
|
|
51
|
-
await (0, runSessionCallbacks_1.runSessionCallbacks)({
|
|
52
|
-
sessionId,
|
|
53
|
-
status: newStatus
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
if ((0, transactionStateByStatus_1.getIsTransactionFailed)(status)) {
|
|
57
|
-
await (0, manageFailedTransactions_1.manageFailedTransactions)({ sessionId, hash, results });
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
catch (error) {
|
|
61
|
-
console.error(error);
|
|
62
|
-
(0, transactionsActions_1.updateSessionStatus)({
|
|
63
|
-
sessionId,
|
|
64
|
-
status: enums_types_1.TransactionBatchStatusesEnum.timedOut
|
|
65
|
-
});
|
|
66
|
-
await (0, runSessionCallbacks_1.runSessionCallbacks)({
|
|
67
|
-
sessionId,
|
|
68
|
-
status: enums_types_1.TransactionBatchStatusesEnum.timedOut
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
async function checkBatch({ sessionId, transactionBatch: transactions, isSequential }) {
|
|
73
|
-
try {
|
|
74
|
-
if (transactions == null) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const pendingTransactions = (0, getPendingTransactions_1.getPendingTransactions)(transactions);
|
|
78
|
-
const serverTransactions = await (0, getTransactionsByHashes_1.getTransactionsByHashes)(pendingTransactions);
|
|
79
|
-
for (const serverTransaction of serverTransactions) {
|
|
80
|
-
await manageTransaction({
|
|
81
|
-
serverTransaction,
|
|
82
|
-
sessionId,
|
|
83
|
-
isSequential
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
const hasCompleted = serverTransactions.every((tx) => tx.status !== enums_types_1.TransactionServerStatusesEnum.pending);
|
|
87
|
-
// Call the onSuccess or onFail callback only if the transactions are sent normally (not using batch transactions mechanism).
|
|
88
|
-
// The batch transactions mechanism will call the callbacks separately.
|
|
89
|
-
if (hasCompleted) {
|
|
90
|
-
const isSuccessful = serverTransactions.every((tx) => tx.status === enums_types_1.TransactionServerStatusesEnum.success);
|
|
91
|
-
if (isSuccessful) {
|
|
92
|
-
return (0, transactionsActions_1.updateSessionStatus)({
|
|
93
|
-
sessionId,
|
|
94
|
-
status: enums_types_1.TransactionBatchStatusesEnum.success
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
const isFailed = serverTransactions.some((tx) => tx.status === enums_types_1.TransactionServerStatusesEnum.fail);
|
|
98
|
-
if (isFailed) {
|
|
99
|
-
return (0, transactionsActions_1.updateSessionStatus)({
|
|
100
|
-
sessionId,
|
|
101
|
-
status: enums_types_1.TransactionBatchStatusesEnum.fail
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
const isInvalid = serverTransactions.every((tx) => tx.invalidTransaction);
|
|
105
|
-
if (isInvalid) {
|
|
106
|
-
return (0, transactionsActions_1.updateSessionStatus)({
|
|
107
|
-
sessionId,
|
|
108
|
-
status: enums_types_1.TransactionBatchStatusesEnum.invalid
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
catch (error) {
|
|
114
|
-
console.error(error);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.checkBatch = checkBatch;
|
|
118
|
-
//# sourceMappingURL=checkBatch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkBatch.js","sourceRoot":"","sources":["../../../../../src/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.ts"],"names":[],"mappings":";;;AAAA,2FAAwF;AACxF,wFAGwD;AACxD,kGAA6F;AAC7F,mDAG2B;AAM3B,qEAAkE;AAClE,yEAAsE;AACtE,+DAA4D;AAY5D,MAAM,OAAO,GAAgB,EAAE,CAAC;AAQhC,KAAK,UAAU,iBAAiB,CAAC,EAC/B,iBAAiB,EAAE,WAAW,EAC9B,SAAS,EACT,YAAY,EACU;IACtB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,GACnE,WAAW,CAAC;IACd,IAAI,CAAC;QACH,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,kBAAkB,GAAG,EAAE,EAAE,CAAC;YAC5B,+CAA+C;YAC/C,IAAA,yCAAmB,EAAC;gBAClB,SAAS;gBACT,MAAM,EAAE,0CAA4B,CAAC,QAAQ;aAC9C,CAAC,CAAC;YAEH,MAAM,IAAA,yCAAmB,EAAC;gBACxB,SAAS;gBACT,MAAM,EAAE,0CAA4B,CAAC,QAAQ;aAC9C,CAAC,CAAC;YAEH,OAAO;QACT,CAAC;QAED,IACE,CAAC,kBAAkB,IAAI,CAAC,YAAY,CAAC;YACrC,MAAM,KAAK,0CAA4B,CAAC,IAAI,EAC5C,CAAC;YACD,OAAO,CAAC,IAAI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