@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,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.calculateFeeLimit = void 0;
|
|
7
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
8
|
-
const index_1 = require("../../../../../constants/index");
|
|
9
|
-
const sdkCore_1 = require("../../../../../lib/sdkCore");
|
|
10
|
-
const sdkDappUtils_1 = require("../../../../../lib/sdkDappUtils");
|
|
11
|
-
const isGuardianTx_1 = require("../../../../../utils/transactions/isGuardianTx");
|
|
12
|
-
const placeholderData = {
|
|
13
|
-
from: 'erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa',
|
|
14
|
-
to: 'erd12dnfhej64s6c56ka369gkyj3hwv5ms0y5rxgsk2k7hkd2vuk7rvqxkalsa'
|
|
15
|
-
};
|
|
16
|
-
function calculateFeeLimit({ minGasLimit = String(index_1.GAS_LIMIT), gasLimit, gasPrice, data: inputData, gasPerDataByte, gasPriceModifier, defaultGasPrice = String(index_1.GAS_PRICE), chainId }) {
|
|
17
|
-
const data = inputData || '';
|
|
18
|
-
const validGasLimit = (0, sdkDappUtils_1.stringIsInteger)(gasLimit) ? gasLimit : minGasLimit;
|
|
19
|
-
// We need to add extra gas fee for guardian transactions
|
|
20
|
-
const extraGasLimit = (0, isGuardianTx_1.isGuardianTx)({ data }) ? index_1.EXTRA_GAS_LIMIT_GUARDED_TX : 0;
|
|
21
|
-
const usedGasLimit = new bignumber_js_1.default(validGasLimit)
|
|
22
|
-
.plus(extraGasLimit)
|
|
23
|
-
.toNumber();
|
|
24
|
-
const validGasPrice = (0, sdkDappUtils_1.stringIsFloat)(gasPrice) ? gasPrice : defaultGasPrice;
|
|
25
|
-
const transaction = new sdkCore_1.Transaction({
|
|
26
|
-
nonce: BigInt(0),
|
|
27
|
-
value: BigInt(0),
|
|
28
|
-
receiver: new sdkCore_1.Address(placeholderData.to),
|
|
29
|
-
sender: new sdkCore_1.Address(placeholderData.to),
|
|
30
|
-
gasPrice: BigInt(validGasPrice),
|
|
31
|
-
gasLimit: BigInt(usedGasLimit),
|
|
32
|
-
data: Buffer.from(data.trim()),
|
|
33
|
-
chainID: chainId,
|
|
34
|
-
version: 1
|
|
35
|
-
});
|
|
36
|
-
try {
|
|
37
|
-
const transactionComputer = new sdkCore_1.TransactionComputer();
|
|
38
|
-
const bNfee = transactionComputer.computeTransactionFee(transaction, {
|
|
39
|
-
gasPerDataByte: BigInt(gasPerDataByte),
|
|
40
|
-
minGasLimit: BigInt(minGasLimit),
|
|
41
|
-
gasPriceModifier: parseFloat(gasPriceModifier),
|
|
42
|
-
chainID: chainId
|
|
43
|
-
});
|
|
44
|
-
return bNfee.toString(10);
|
|
45
|
-
}
|
|
46
|
-
catch (err) {
|
|
47
|
-
console.error(err);
|
|
48
|
-
return sdkDappUtils_1.ZERO;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.calculateFeeLimit = calculateFeeLimit;
|
|
52
|
-
//# sourceMappingURL=calculateFeeLimit.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calculateFeeLimit.js","sourceRoot":"","sources":["../../../../../../src/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,2CAIyB;AACzB,yCAAwE;AACxE,mDAAwE;AACxE,kEAA+D;AAY/D,MAAM,eAAe,GAAG;IACtB,IAAI,EAAE,gEAAgE;IACtE,EAAE,EAAE,gEAAgE;CACrE,CAAC;AACF,SAAgB,iBAAiB,CAAC,EAChC,WAAW,GAAG,MAAM,CAAC,iBAAS,CAAC,EAC/B,QAAQ,EACR,QAAQ,EACR,IAAI,EAAE,SAAS,EACf,cAAc,EACd,gBAAgB,EAChB,eAAe,GAAG,MAAM,CAAC,iBAAS,CAAC,EACnC,OAAO,EACe;IACtB,MAAM,IAAI,GAAG,SAAS,IAAI,EAAE,CAAC;IAC7B,MAAM,aAAa,GAAG,IAAA,8BAAe,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC;IAEzE,yDAAyD;IACzD,MAAM,aAAa,GAAG,IAAA,2BAAY,EAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,kCAA0B,CAAC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A7CD,8CA6CC"}
|
package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCommonData = void 0;
|
|
4
|
-
const bignumber_js_1 = require("bignumber.js");
|
|
5
|
-
const apiCalls_1 = require("../../../../../../apiCalls");
|
|
6
|
-
const getPersistedTokenDetails_1 = require("../../../../../../apiCalls/tokens/getPersistedTokenDetails");
|
|
7
|
-
const mvx_constants_1 = require("../../../../../../constants/mvx.constants");
|
|
8
|
-
const window_constants_1 = require("../../../../../../constants/window.constants");
|
|
9
|
-
const sdkDappUtils_1 = require("../../../../../../lib/sdkDappUtils");
|
|
10
|
-
const getExplorerAddress_1 = require("../../../../../../methods/network/getExplorerAddress");
|
|
11
|
-
const accountProvider_1 = require("../../../../../../providers/helpers/accountProvider");
|
|
12
|
-
const tokens_types_1 = require("../../../../../../types/tokens.types");
|
|
13
|
-
const base64Utils_1 = require("../../../../../../utils/decoders/base64Utils");
|
|
14
|
-
const capitalize_1 = require("../../../../../../utils/operations/capitalize");
|
|
15
|
-
const getUsdValue_1 = require("../../../../../../utils/operations/getUsdValue");
|
|
16
|
-
const getExplorerLink_1 = require("../../../../../../utils/transactions/getExplorerLink");
|
|
17
|
-
const getFeeData_1 = require("../getFeeData");
|
|
18
|
-
const decodeDataField_1 = require("./helpers/decodeDataField");
|
|
19
|
-
const getExtractTransactionsInfo_1 = require("./helpers/getExtractTransactionsInfo");
|
|
20
|
-
const getHighlight_1 = require("./helpers/getHighlight");
|
|
21
|
-
const getPpuOptions_1 = require("./helpers/getPpuOptions");
|
|
22
|
-
const getRecommendedGasPrice_1 = require("./helpers/getRecommendedGasPrice");
|
|
23
|
-
const getScCall_1 = require("./helpers/getScCall");
|
|
24
|
-
const getTokenType_1 = require("./helpers/getTokenType");
|
|
25
|
-
async function getCommonData({ allTransactions, currentScreenIndex, egldLabel, network, gasPriceData, price, address, username, shard, signedIndexes, parsedTransactionsByDataField }) {
|
|
26
|
-
const currentTransaction = allTransactions[currentScreenIndex];
|
|
27
|
-
const sender = currentTransaction?.transaction?.sender.toString();
|
|
28
|
-
const transaction = currentTransaction?.transaction;
|
|
29
|
-
let tokenTransaction = null;
|
|
30
|
-
let fungibleTransaction = null;
|
|
31
|
-
const extractTransactionsInfo = (0, getExtractTransactionsInfo_1.getExtractTransactionsInfo)({
|
|
32
|
-
egldLabel,
|
|
33
|
-
sender,
|
|
34
|
-
apiAddress: network.apiAddress,
|
|
35
|
-
address,
|
|
36
|
-
parsedTransactionsByDataField
|
|
37
|
-
});
|
|
38
|
-
const plainTransaction = currentTransaction.transaction.toPlainObject();
|
|
39
|
-
const txInfo = await extractTransactionsInfo(currentTransaction);
|
|
40
|
-
const isEgld = !txInfo?.transactionTokenInfo?.tokenId;
|
|
41
|
-
const { tokenId, nonce, amount = '' } = txInfo?.transactionTokenInfo ?? {};
|
|
42
|
-
const isNftOrSft = tokenId && nonce && nonce.length > 0;
|
|
43
|
-
const tokenIdForTokenDetails = isNftOrSft ? `${tokenId}-${nonce}` : tokenId;
|
|
44
|
-
const tokenDetails = await (0, getPersistedTokenDetails_1.getPersistedTokenDetails)({
|
|
45
|
-
tokenId: tokenIdForTokenDetails
|
|
46
|
-
});
|
|
47
|
-
const { esdtPrice, tokenDecimals, type, identifier, tokenImageUrl } = tokenDetails;
|
|
48
|
-
const isNft = type === tokens_types_1.NftEnumType.SemiFungibleESDT ||
|
|
49
|
-
type === tokens_types_1.NftEnumType.NonFungibleESDT;
|
|
50
|
-
if (isNft) {
|
|
51
|
-
fungibleTransaction = {
|
|
52
|
-
type,
|
|
53
|
-
identifier,
|
|
54
|
-
amount,
|
|
55
|
-
imageURL: tokenImageUrl
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
const getFormattedAmount = ({ addCommas }) => (0, sdkDappUtils_1.formatAmount)({
|
|
60
|
-
input: isEgld
|
|
61
|
-
? currentTransaction.transaction.value.toString()
|
|
62
|
-
: amount,
|
|
63
|
-
decimals: isEgld ? Number(network.decimals) : tokenDecimals,
|
|
64
|
-
digits: Number(network.digits),
|
|
65
|
-
showLastNonZeroDecimal: false,
|
|
66
|
-
addCommas
|
|
67
|
-
});
|
|
68
|
-
const formattedAmount = getFormattedAmount({ addCommas: true });
|
|
69
|
-
const rawAmount = getFormattedAmount({ addCommas: false });
|
|
70
|
-
const tokenPrice = Number(isEgld ? price : esdtPrice);
|
|
71
|
-
const usdValue = (0, getUsdValue_1.getUsdValue)({
|
|
72
|
-
amount: rawAmount,
|
|
73
|
-
usd: tokenPrice,
|
|
74
|
-
addEqualSign: true
|
|
75
|
-
});
|
|
76
|
-
const esdtIdentifier = identifier === mvx_constants_1.MULTI_TRANSFER_EGLD_TOKEN ? egldLabel : identifier;
|
|
77
|
-
tokenTransaction = {
|
|
78
|
-
identifier: esdtIdentifier ?? egldLabel,
|
|
79
|
-
amount: formattedAmount,
|
|
80
|
-
usdValue
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
const { feeLimitFormatted, feeInFiatLimit } = (0, getFeeData_1.getFeeData)({
|
|
84
|
-
transaction,
|
|
85
|
-
price
|
|
86
|
-
});
|
|
87
|
-
const ppuOptions = (0, getPpuOptions_1.getPpuOptions)({
|
|
88
|
-
shard,
|
|
89
|
-
initialGasPrice: gasPriceData.initialGasPrice,
|
|
90
|
-
transaction: plainTransaction,
|
|
91
|
-
gasStationMetadata: network.gasStationMetadata
|
|
92
|
-
});
|
|
93
|
-
const gasPrice = (0, getRecommendedGasPrice_1.getRecommendedGasPrice)({
|
|
94
|
-
transaction: plainTransaction,
|
|
95
|
-
gasPriceData
|
|
96
|
-
});
|
|
97
|
-
const provider = (0, accountProvider_1.getAccountProvider)();
|
|
98
|
-
const providerType = provider.getType();
|
|
99
|
-
const providerName = (0, capitalize_1.capitalize)(providerType);
|
|
100
|
-
const transactionsCount = allTransactions.length;
|
|
101
|
-
const currentIndexToSign = signedIndexes.length > 0 ? signedIndexes[signedIndexes.length - 1] + 1 : 0;
|
|
102
|
-
const data = (0, base64Utils_1.decodeBase64)(currentTransaction.transaction.data.toString() ?? '');
|
|
103
|
-
const highlight = (0, getHighlight_1.getHighlight)(txInfo?.transactionTokenInfo);
|
|
104
|
-
const decodedData = (0, decodeDataField_1.getAllDecodedFormats)({ data, identifier, highlight });
|
|
105
|
-
const explorerAddress = (0, getExplorerAddress_1.getExplorerAddress)();
|
|
106
|
-
const explorerLink = (0, getExplorerLink_1.getExplorerLink)({
|
|
107
|
-
to: `/${apiCalls_1.ACCOUNTS_ENDPOINT}/${address}`,
|
|
108
|
-
explorerAddress
|
|
109
|
-
});
|
|
110
|
-
const needsSigning = transactionsCount === 1 ||
|
|
111
|
-
(txInfo?.needsSigning && !signedIndexes.includes(currentScreenIndex));
|
|
112
|
-
const formattedGasPrice = (0, sdkDappUtils_1.formatAmount)({
|
|
113
|
-
input: gasPrice.toString(),
|
|
114
|
-
decimals: sdkDappUtils_1.DECIMALS,
|
|
115
|
-
addCommas: true,
|
|
116
|
-
digits: sdkDappUtils_1.DIGITS
|
|
117
|
-
});
|
|
118
|
-
const formattedGasLimit = new bignumber_js_1.BigNumber(plainTransaction.gasLimit).toFormat({
|
|
119
|
-
decimalSeparator: ',',
|
|
120
|
-
groupSeparator: '.',
|
|
121
|
-
groupSize: 3
|
|
122
|
-
});
|
|
123
|
-
const commonData = {
|
|
124
|
-
receiver: plainTransaction.receiver.toString(),
|
|
125
|
-
data: (0, base64Utils_1.decodeBase64)(currentTransaction.transaction.data.toString() ?? ''),
|
|
126
|
-
decodedData,
|
|
127
|
-
gasPrice: formattedGasPrice,
|
|
128
|
-
gasLimit: formattedGasLimit,
|
|
129
|
-
explorerLink,
|
|
130
|
-
ppu: gasPriceData.ppu,
|
|
131
|
-
ppuOptions,
|
|
132
|
-
egldLabel,
|
|
133
|
-
tokenType: (0, getTokenType_1.getTokenType)(type),
|
|
134
|
-
feeLimit: feeLimitFormatted,
|
|
135
|
-
feeInFiatLimit,
|
|
136
|
-
transactionsCount,
|
|
137
|
-
currentIndex: currentScreenIndex,
|
|
138
|
-
currentIndexToSign,
|
|
139
|
-
highlight,
|
|
140
|
-
scCall: (0, getScCall_1.getScCall)(txInfo?.transactionTokenInfo),
|
|
141
|
-
needsSigning,
|
|
142
|
-
isEditable: txInfo?.needsSigning,
|
|
143
|
-
providerName,
|
|
144
|
-
address,
|
|
145
|
-
username,
|
|
146
|
-
origin: window_constants_1.safeWindow.location?.origin
|
|
147
|
-
};
|
|
148
|
-
return { commonData, tokenTransaction, fungibleTransaction };
|
|
149
|
-
}
|
|
150
|
-
exports.getCommonData = getCommonData;
|
|
151
|
-
//# sourceMappingURL=getCommonData.js.map
|
package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCommonData.js","sourceRoot":"","sources":["../../../../../../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AACzC,uCAA6C;AAC7C,uFAAoF;AACpF,2DAAoE;AACpE,iEAAwD;AACxD,mDAAkE;AAKlE,2EAAwE;AACxE,uEAAuE;AAEvE,qDAAiD;AAKjD,4DAA0D;AAC1D,4DAAyD;AACzD,8DAA2D;AAC3D,wEAAqE;AACrE,8CAA2C;AAC3C,+DAAiE;AACjE,qFAAkF;AAClF,yDAAsD;AACtD,2DAAwD;AACxD,6EAA0E;AAC1E,mDAAgD;AAChD,yDAAsD;AAmB/C,KAAK,UAAU,aAAa,CAAC,EAClC,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,YAAY,EACZ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,KAAK,EACL,aAAa,EACb,6BAA6B,EACN;IACvB,MAAM,kBAAkB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;IAC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
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkIsValidSender = void 0;
|
|
4
|
-
// Don't allow signing if the logged in account's address
|
|
5
|
-
// is neither the sender or the sender account's active guardian
|
|
6
|
-
const checkIsValidSender = (senderAccount, address) => {
|
|
7
|
-
if (!senderAccount) {
|
|
8
|
-
return true;
|
|
9
|
-
}
|
|
10
|
-
if (Array.isArray(address)) {
|
|
11
|
-
return address.some((addr) => senderAccount.address === addr ||
|
|
12
|
-
senderAccount.activeGuardianAddress === addr);
|
|
13
|
-
}
|
|
14
|
-
return (senderAccount.address === address ||
|
|
15
|
-
senderAccount.activeGuardianAddress === address);
|
|
16
|
-
};
|
|
17
|
-
exports.checkIsValidSender = checkIsValidSender;
|
|
18
|
-
//# sourceMappingURL=checkIsValidSender.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkIsValidSender.js","sourceRoot":"","sources":["../../../../../../../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.ts"],"names":[],"mappings":";;;AAEA,yDAAyD;AACzD,gEAAgE;AACzD,MAAM,kBAAkB,GAAG,CAChC,aAA0C,EAC1C,OAA0B,EAC1B,EAAE;IACF,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,OAAO,OAAO,CAAC,IAAI,CACjB,CAAC,IAAI,EAAE,EAAE,CACP,aAAa,CAAC,OAAO,KAAK,IAAI;YAC9B,aAAa,CAAC,qBAAqB,KAAK,IAAI,CAC/C,CAAC;IACJ,CAAC;IAED,OAAO,CACL,aAAa,CAAC,OAAO,KAAK,OAAO;QACjC,aAAa,CAAC,qBAAqB,KAAK,OAAO,CAChD,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,kBAAkB,sBAoB7B"}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getAllDecodedFormats = void 0;
|
|
7
|
-
const sdk_core_1 = require("@multiversx/sdk-core");
|
|
8
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
9
|
-
const enums_types_1 = require("../../../../../../../types/enums.types");
|
|
10
|
-
const serverTransactions_types_1 = require("../../../../../../../types/serverTransactions.types");
|
|
11
|
-
const decoders_1 = require("../../../../../../../utils/decoders");
|
|
12
|
-
const addressIsValid_1 = require("../../../../../../../utils/validation/addressIsValid");
|
|
13
|
-
const hex_1 = require("../../../../../../../utils/validation/hex");
|
|
14
|
-
const getHexValidationWarnings = (str) => {
|
|
15
|
-
const warnings = [];
|
|
16
|
-
if (str && !(0, hex_1.isHexValidCharacters)(str)) {
|
|
17
|
-
warnings.push(`Invalid Hex characters on argument @${str}`);
|
|
18
|
-
}
|
|
19
|
-
if (str && !(0, hex_1.isHexValidLength)(str)) {
|
|
20
|
-
warnings.push(`Odd number of Hex characters on argument @${str}`);
|
|
21
|
-
}
|
|
22
|
-
return warnings;
|
|
23
|
-
};
|
|
24
|
-
const decodeByMethod = (part, decodeMethod, transactionTokens) => {
|
|
25
|
-
switch (decodeMethod) {
|
|
26
|
-
case serverTransactions_types_1.DecodeMethodEnum.text:
|
|
27
|
-
try {
|
|
28
|
-
return Buffer.from(part, 'hex').toString('utf8');
|
|
29
|
-
}
|
|
30
|
-
catch {
|
|
31
|
-
return part;
|
|
32
|
-
}
|
|
33
|
-
case serverTransactions_types_1.DecodeMethodEnum.decimal:
|
|
34
|
-
return part !== '' ? new bignumber_js_1.default(part, 16).toString(10) : '';
|
|
35
|
-
case serverTransactions_types_1.DecodeMethodEnum.smart:
|
|
36
|
-
try {
|
|
37
|
-
const bech32Encoded = sdk_core_1.Address.newFromHex(part).toString();
|
|
38
|
-
if ((0, addressIsValid_1.addressIsValid)(bech32Encoded)) {
|
|
39
|
-
return bech32Encoded;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch {
|
|
43
|
-
// skip
|
|
44
|
-
}
|
|
45
|
-
try {
|
|
46
|
-
const decoded = Buffer.from(part, 'hex').toString('utf8');
|
|
47
|
-
if (!(0, decoders_1.isUtf8)(decoded)) {
|
|
48
|
-
if (transactionTokens) {
|
|
49
|
-
const tokens = [
|
|
50
|
-
...transactionTokens.esdts,
|
|
51
|
-
...transactionTokens.nfts
|
|
52
|
-
];
|
|
53
|
-
if (tokens.some((token) => decoded.includes(token))) {
|
|
54
|
-
return decoded;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
const bigNumber = new bignumber_js_1.default(part, 16);
|
|
58
|
-
return bigNumber.isFinite() ? bigNumber.toString(10) : part;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return decoded;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch {
|
|
65
|
-
return part;
|
|
66
|
-
}
|
|
67
|
-
case serverTransactions_types_1.DecodeMethodEnum.raw:
|
|
68
|
-
default:
|
|
69
|
-
return part;
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const getSmartDecodedParts = ({ parts, decodedParts, identifier }) => {
|
|
73
|
-
const smartDecodedParts = [...decodedParts];
|
|
74
|
-
if (parts[0] === enums_types_1.TransactionTypesEnum.ESDTNFTTransfer && parts[2]) {
|
|
75
|
-
smartDecodedParts[2] = decodeByMethod(parts[2], serverTransactions_types_1.DecodeMethodEnum.decimal);
|
|
76
|
-
}
|
|
77
|
-
if (identifier === enums_types_1.TransactionTypesEnum.ESDTNFTTransfer && parts[1]) {
|
|
78
|
-
const base64Buffer = Buffer.from(String(parts[1]), 'base64');
|
|
79
|
-
smartDecodedParts[1] = decodeByMethod(base64Buffer.toString('hex'), serverTransactions_types_1.DecodeMethodEnum.decimal);
|
|
80
|
-
}
|
|
81
|
-
return smartDecodedParts;
|
|
82
|
-
};
|
|
83
|
-
const getDisplayValueAndValidationWarnings = ({ parts, decodeMethod, identifier, decodedData }) => {
|
|
84
|
-
const initialDecodedParts = parts.map((part, index) => {
|
|
85
|
-
if (parts.length >= 2 &&
|
|
86
|
-
((index === 0 && part.length < 64) || (index === 1 && !parts[0]))) {
|
|
87
|
-
const encodedDisplayValue = /[^a-z0-9]/gi.test(part);
|
|
88
|
-
if (encodedDisplayValue) {
|
|
89
|
-
return decodeByMethod(part, decodeMethod);
|
|
90
|
-
}
|
|
91
|
-
return part;
|
|
92
|
-
}
|
|
93
|
-
const hexValidationWarnings = getHexValidationWarnings(part);
|
|
94
|
-
if (hexValidationWarnings?.length) {
|
|
95
|
-
decodedData.validationWarnings = Array.from(new Set([...decodedData.validationWarnings, ...hexValidationWarnings]));
|
|
96
|
-
}
|
|
97
|
-
return decodeByMethod(part, decodeMethod);
|
|
98
|
-
});
|
|
99
|
-
const decodedParts = decodeMethod === serverTransactions_types_1.DecodeMethodEnum.smart
|
|
100
|
-
? getSmartDecodedParts({
|
|
101
|
-
parts,
|
|
102
|
-
decodedParts: initialDecodedParts,
|
|
103
|
-
identifier
|
|
104
|
-
})
|
|
105
|
-
: initialDecodedParts;
|
|
106
|
-
return decodedParts;
|
|
107
|
-
};
|
|
108
|
-
const getDecodedParts = ({ parts, decodeMethod, identifier, initialDecodedParts }) => {
|
|
109
|
-
if (decodeMethod === serverTransactions_types_1.DecodeMethodEnum.smart) {
|
|
110
|
-
return getSmartDecodedParts({
|
|
111
|
-
parts,
|
|
112
|
-
decodedParts: initialDecodedParts,
|
|
113
|
-
identifier
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return initialDecodedParts;
|
|
117
|
-
};
|
|
118
|
-
const decodeHighlight = ({ data, identifier, decodeMethod, delimiter }) => {
|
|
119
|
-
const parts = data.split('@');
|
|
120
|
-
const initialDecodedParts = parts.map((part) => {
|
|
121
|
-
return decodeByMethod(part, decodeMethod);
|
|
122
|
-
});
|
|
123
|
-
const decodedHighlight = getDecodedParts({
|
|
124
|
-
parts,
|
|
125
|
-
initialDecodedParts,
|
|
126
|
-
identifier,
|
|
127
|
-
decodeMethod
|
|
128
|
-
});
|
|
129
|
-
return decodedHighlight.join(delimiter);
|
|
130
|
-
};
|
|
131
|
-
const decodeDataField = ({ data, identifier, decodeMethod, highlight }) => {
|
|
132
|
-
const decodedData = {
|
|
133
|
-
displayValue: '',
|
|
134
|
-
validationWarnings: [],
|
|
135
|
-
highlight
|
|
136
|
-
};
|
|
137
|
-
const hasAt = data.includes('@');
|
|
138
|
-
const hasNewLine = data.includes('\n');
|
|
139
|
-
if (!hasAt && !hasNewLine) {
|
|
140
|
-
return {
|
|
141
|
-
...decodedData,
|
|
142
|
-
displayValue: decodeByMethod(data, decodeMethod),
|
|
143
|
-
highlight: highlight ? decodeByMethod(highlight, decodeMethod) : highlight
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
if (hasAt) {
|
|
147
|
-
const parts = data.split('@');
|
|
148
|
-
const decodedParts = getDisplayValueAndValidationWarnings({
|
|
149
|
-
parts,
|
|
150
|
-
decodeMethod,
|
|
151
|
-
identifier,
|
|
152
|
-
decodedData
|
|
153
|
-
});
|
|
154
|
-
const decodedHighlight = highlight
|
|
155
|
-
? decodeHighlight({
|
|
156
|
-
data: highlight,
|
|
157
|
-
identifier,
|
|
158
|
-
decodeMethod,
|
|
159
|
-
delimiter: '@'
|
|
160
|
-
})
|
|
161
|
-
: null;
|
|
162
|
-
return {
|
|
163
|
-
...decodedData,
|
|
164
|
-
displayValue: decodedParts.join('@'),
|
|
165
|
-
highlight: decodedHighlight
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
if (hasNewLine) {
|
|
169
|
-
const parts = data.split('\n');
|
|
170
|
-
const initialDecodedParts = parts.map((part) => {
|
|
171
|
-
if (decodeMethod === serverTransactions_types_1.DecodeMethodEnum.raw) {
|
|
172
|
-
return part;
|
|
173
|
-
}
|
|
174
|
-
return decodeByMethod(Buffer.from(part, 'base64').toString('hex'), decodeMethod);
|
|
175
|
-
});
|
|
176
|
-
const decodedParts = getDecodedParts({
|
|
177
|
-
parts,
|
|
178
|
-
initialDecodedParts,
|
|
179
|
-
identifier,
|
|
180
|
-
decodeMethod
|
|
181
|
-
});
|
|
182
|
-
const decodedHighlight = highlight
|
|
183
|
-
? decodeHighlight({
|
|
184
|
-
data: highlight,
|
|
185
|
-
identifier,
|
|
186
|
-
decodeMethod,
|
|
187
|
-
delimiter: '\n'
|
|
188
|
-
})
|
|
189
|
-
: null;
|
|
190
|
-
return {
|
|
191
|
-
...decodedData,
|
|
192
|
-
displayValue: decodedParts.join('\n'),
|
|
193
|
-
highlight: decodedHighlight
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
return decodedData;
|
|
197
|
-
};
|
|
198
|
-
const getAllDecodedFormats = ({ data, highlight, identifier }) => {
|
|
199
|
-
const decodedFormats = {};
|
|
200
|
-
Object.values(serverTransactions_types_1.DecodeMethodEnum).forEach((decodeMethod) => {
|
|
201
|
-
const decodedData = decodeDataField({
|
|
202
|
-
data,
|
|
203
|
-
identifier,
|
|
204
|
-
decodeMethod,
|
|
205
|
-
highlight
|
|
206
|
-
});
|
|
207
|
-
decodedFormats[decodeMethod] = decodedData;
|
|
208
|
-
});
|
|
209
|
-
return decodedFormats;
|
|
210
|
-
};
|
|
211
|
-
exports.getAllDecodedFormats = getAllDecodedFormats;
|
|
212
|
-
//# sourceMappingURL=decodeDataField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decodeDataField.js","sourceRoot":"","sources":["../../../../../../../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.ts"],"names":[],"mappings":";;;;;;AAAA,mDAA+C;AAC/C,gEAAqC;AACrC,mDAAyD;AACzD,6EAIwC;AACxC,6CAAwC;AACx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ineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getExtractTransactionsInfo = void 0;
|
|
4
|
-
const account_1 = require("../../../../../../../apiCalls/account");
|
|
5
|
-
const getScamAddressData_1 = require("../../../../../../../apiCalls/account/getScamAddressData");
|
|
6
|
-
const enums_types_1 = require("../../../../../../../types/enums.types");
|
|
7
|
-
const base64Utils_1 = require("../../../../../../../utils/decoders/base64Utils");
|
|
8
|
-
const checkIsValidSender_1 = require("./checkIsValidSender");
|
|
9
|
-
const getTxInfoByDataField_1 = require("./getTxInfoByDataField");
|
|
10
|
-
const isTokenTransfer_1 = require("../../isTokenTransfer");
|
|
11
|
-
let verifiedAddresses = {};
|
|
12
|
-
function getExtractTransactionsInfo({ egldLabel, apiAddress, sender, address, parsedTransactionsByDataField }) {
|
|
13
|
-
const extractTransactionsInfo = async (currentTx) => {
|
|
14
|
-
if (currentTx == null) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const senderAccount = !sender || sender === address
|
|
18
|
-
? null
|
|
19
|
-
: await (0, account_1.getAccountFromApi)({
|
|
20
|
-
address: sender,
|
|
21
|
-
baseURL: apiAddress
|
|
22
|
-
});
|
|
23
|
-
const { transaction, multiTxData, transactionIndex } = currentTx;
|
|
24
|
-
const dataField = (0, base64Utils_1.decodeBase64)(transaction.data.toString() ?? '');
|
|
25
|
-
const transactionTokenInfo = (0, getTxInfoByDataField_1.getTxInfoByDataField)({
|
|
26
|
-
data: dataField,
|
|
27
|
-
multiTransactionData: multiTxData,
|
|
28
|
-
parsedTransactionsByDataField
|
|
29
|
-
});
|
|
30
|
-
const { tokenId } = transactionTokenInfo;
|
|
31
|
-
const receiver = transaction.receiver.toBech32();
|
|
32
|
-
if (sender && sender !== address) {
|
|
33
|
-
const isValidSender = (0, checkIsValidSender_1.checkIsValidSender)(senderAccount, address);
|
|
34
|
-
if (!isValidSender) {
|
|
35
|
-
console.error(enums_types_1.SigningErrorsEnum.senderDifferentThanLoggedInAddress);
|
|
36
|
-
throw enums_types_1.SigningErrorsEnum.senderDifferentThanLoggedInAddress;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const notSender = address !== receiver;
|
|
40
|
-
const verified = receiver in verifiedAddresses;
|
|
41
|
-
if (receiver && notSender && !verified) {
|
|
42
|
-
const data = await (0, getScamAddressData_1.getScamAddressData)({
|
|
43
|
-
addressToVerify: receiver,
|
|
44
|
-
baseURL: apiAddress
|
|
45
|
-
});
|
|
46
|
-
verifiedAddresses = {
|
|
47
|
-
...verifiedAddresses,
|
|
48
|
-
...(data?.scamInfo ? { [receiver]: data.scamInfo } : {})
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
const isTokenTransaction = Boolean(tokenId && (0, isTokenTransfer_1.isTokenTransfer)({ tokenId, egldLabel }));
|
|
52
|
-
return {
|
|
53
|
-
transaction,
|
|
54
|
-
receiverScamInfo: verifiedAddresses[receiver]?.info || null,
|
|
55
|
-
transactionTokenInfo,
|
|
56
|
-
isTokenTransaction,
|
|
57
|
-
dataField,
|
|
58
|
-
transactionIndex,
|
|
59
|
-
needsSigning: currentTx.needsSigning
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
return extractTransactionsInfo;
|
|
63
|
-
}
|
|
64
|
-
exports.getExtractTransactionsInfo = getExtractTransactionsInfo;
|
|
65
|
-
//# sourceMappingURL=getExtractTransactionsInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getExtractTransactionsInfo.js","sourceRoot":"","sources":["../../../../../../../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.ts"],"names":[],"mappings":";;;AAAA,8CAAqD;AACrD,4EAAyE;AACzE,mDAAsD;AAMtD,4DAA0D;AAC1D,6DAA0D;AAC1D,iEAA8D;AAC9D,2DAAwD;AAKxD,IAAI,iBAAiB,GAA0B,EAAE,CAAC;AAUlD,SAAgB,0BAA0B,CAAC,EACzC,SAAS,EACT,UAAU,EACV,MAA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AE,CAAC;YACvC,MAAM,IAAI,GAAG,MAAM,IAAA,uCAAkB,EAAC;gBACpC,eAAe,EAAE,QAAQ;gBACzB,OAAO,EAAE,UAAU;aACpB,CAAC,CAAC;YACH,iBAAiB,GAAG;gBAClB,GAAG,iBAAiB;gBACpB,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACzD,CAAC;QACJ,CAAC;QAED,MAAM,kBAAkB,GAAG,OAAO,CAChC,OAAO,IAAI,IAAA,iCAAe,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CACnD,CAAC;QAEF,OAAO;YACL,WAAW;YACX,gBAAgB,EAAE,iBAAiB,CAAC,QAAQ,CAAC,EAAE,IAAI,IAAI,IAAI;YAC3D,oBAAoB;YACpB,kBAAkB;YAClB,SAAS;YACT,gBAAgB;YAChB,YAAY,EAAE,SAAS,CAAC,YAAY;SACrC,CAAC;IACJ,CAAC,CAAC;IACF,OAAO,uBAAuB,CAAC;AACjC,CAAC;AAvED,gEAuEC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getHighlight = void 0;
|
|
4
|
-
const getHighlight = (txInfoToken) => {
|
|
5
|
-
if (!txInfoToken?.multiTxData) {
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
8
|
-
return txInfoToken.multiTxData;
|
|
9
|
-
};
|
|
10
|
-
exports.getHighlight = getHighlight;
|
|
11
|
-
//# sourceMappingURL=getHighlight.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getHighlight.js","sourceRoot":"","sources":["../../../../../../../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,CAAC,WAAsC,EAAE,EAAE;IACrE,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,WAAW,CAAC,WAAW,CAAC;AACjC,CAAC,CAAC;AANW,QAAA,YAAY,gBAMvB"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getPpuOptions = void 0;
|
|
7
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
8
|
-
const placeholders_constants_1 = require("../../../../../../../constants/placeholders.constants");
|
|
9
|
-
const getRecommendedGasPrice_1 = require("./getRecommendedGasPrice");
|
|
10
|
-
const getPpuOptions = ({ shard, gasStationMetadata, transaction, initialGasPrice = 0 }) => {
|
|
11
|
-
const fastPpu = gasStationMetadata
|
|
12
|
-
? gasStationMetadata[Number(shard)]?.fast
|
|
13
|
-
: placeholders_constants_1.EMPTY_PPU;
|
|
14
|
-
const fasterPpu = gasStationMetadata
|
|
15
|
-
? gasStationMetadata[Number(shard)]?.faster
|
|
16
|
-
: placeholders_constants_1.EMPTY_PPU;
|
|
17
|
-
const fastGasPrice = (0, getRecommendedGasPrice_1.getRecommendedGasPrice)({
|
|
18
|
-
transaction,
|
|
19
|
-
gasPriceData: {
|
|
20
|
-
initialGasPrice,
|
|
21
|
-
ppu: fastPpu
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const fasterGasPrice = (0, getRecommendedGasPrice_1.getRecommendedGasPrice)({
|
|
25
|
-
transaction,
|
|
26
|
-
gasPriceData: {
|
|
27
|
-
initialGasPrice,
|
|
28
|
-
ppu: fasterPpu
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const isFastGasPrice = new bignumber_js_1.default(fastGasPrice).isGreaterThan(initialGasPrice || 0);
|
|
32
|
-
const isFasterGasPrice = new bignumber_js_1.default(fasterGasPrice).isGreaterThan(initialGasPrice || 0);
|
|
33
|
-
const isEditingGasPriceEnabled = isFastGasPrice || isFasterGasPrice;
|
|
34
|
-
if (!isEditingGasPriceEnabled) {
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
const ppuOptions = [
|
|
38
|
-
{
|
|
39
|
-
label: 'Standard',
|
|
40
|
-
value: placeholders_constants_1.EMPTY_PPU
|
|
41
|
-
}
|
|
42
|
-
];
|
|
43
|
-
if (isFastGasPrice) {
|
|
44
|
-
ppuOptions.push({
|
|
45
|
-
label: 'Fast',
|
|
46
|
-
value: fastPpu
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
if (isFasterGasPrice) {
|
|
50
|
-
ppuOptions.push({
|
|
51
|
-
label: 'Faster',
|
|
52
|
-
value: fasterPpu
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
return ppuOptions;
|
|
56
|
-
};
|
|
57
|
-
exports.getPpuOptions = getPpuOptions;
|
|
58
|
-
//# sourceMappingURL=getPpuOptions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPpuOptions.js","sourceRoot":"","sources":["../../../../../../../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,6EAA6D;AAG7D,qEAAkE;AAS3D,MAAM,aAAa,GAAG,CAAC,EAC5B,KAAK,EACL,kBAAkB,EAClB,WAAW,EACX,eAAe,GAAG,CAAC,EACU,EAAE,EAAE;IACjC,MAAM,OAAO,GAAG,kBAAkB;QAChC,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI;QACzC,CAAC,CAAC,kCAAS,CAAC;IAEd,MAAM,SAAS,GAAG,kBAAkB;QAClC,CAAC,CAAC,kBAAkB,C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= void 0;
|
|
4
|
-
const sdkDappUtils_1 = require("../../../../../../../lib/sdkDappUtils");
|
|
5
|
-
function getRecommendedGasPrice({ transaction, gasPriceData }) {
|
|
6
|
-
if (!gasPriceData) {
|
|
7
|
-
throw new Error('Gas price not found for nonce: ' + transaction.nonce);
|
|
8
|
-
}
|
|
9
|
-
const { initialGasPrice, ppu } = gasPriceData;
|
|
10
|
-
const newGasPrice = ppu
|
|
11
|
-
? (0, sdkDappUtils_1.recommendGasPrice)({
|
|
12
|
-
transactionDataLength: String(transaction?.data || '').length,
|
|
13
|
-
transactionGasLimit: transaction.gasLimit,
|
|
14
|
-
ppu
|
|
15
|
-
})
|
|
16
|
-
: initialGasPrice;
|
|
17
|
-
return newGasPrice;
|
|
18
|
-
}
|
|
19
|
-
exports.getRecommendedGasPrice = getRecommendedGasPrice;
|
|
20
|
-
//# sourceMappingURL=getRecommendedGasPrice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRecommendedGasPrice.js","sourceRoot":"","sources":["../../../../../../../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.ts"],"names":[],"mappings":";;;AACA,mDAAqD;AAWrD,SAAgB,sBAAsB,CAAC,EACrC,WAAW,EACX,YAAY,EACoB;IAChC,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,iCAAiC,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IACzE,CAAC;IAED,MAAM,EAAE,eAAe,EAAE,GAAG,EAAE,GAAG,YAAY,CAAC;IAE9C,MAAM,WAAW,GAAG,GAAG;QACrB,CAAC,CAAC,IAAA,gCAAiB,EAAC;YAChB,qBAAqB,EAAE,MAAM,CAAC,WAAW,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM;YAC7D,mBAAmB,EAAE,WAAW,CAAC,QAAQ;YACzC,GAAG;SACJ,CAAC;QACJ,CAAC,CAAC,eAAe,CAAC;IAEpB,OAAO,WAAW,CAAC;AACrB,CAAC;AAnBD,wDAmBC"}
|