@multiversx/sdk-dapp 5.1.2 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/__chunks__/{chunk-ZS4EBCWC.mjs → chunk-2GG67TZD.mjs} +2 -2
- package/out/__chunks__/chunk-2IUBMLF4.mjs +2 -0
- package/out/__chunks__/{chunk-CAA4VJRH.mjs.map → chunk-2IUBMLF4.mjs.map} +3 -3
- package/out/__chunks__/{chunk-YD2O3NV7.mjs → chunk-2KE2BNG7.mjs} +2 -2
- package/out/__chunks__/{chunk-2L25IGHZ.mjs → chunk-2KPILBQ2.mjs} +2 -2
- package/out/__chunks__/chunk-3JHE6RJX.mjs +2 -0
- package/out/__chunks__/{chunk-2DUVXRMU.mjs → chunk-3MJNBS6H.mjs} +2 -2
- package/out/__chunks__/{chunk-7VNNDJ7P.mjs → chunk-463K27BJ.mjs} +2 -2
- package/out/__chunks__/{chunk-7ONKP4ZG.mjs → chunk-4AGZHXFR.mjs} +2 -2
- package/out/__chunks__/{chunk-I6WJ63GD.mjs → chunk-4N34K4EN.mjs} +2 -2
- package/out/__chunks__/{chunk-IZ4B4B35.mjs → chunk-4PILLRHM.mjs} +2 -2
- package/out/__chunks__/{chunk-54XYKDH7.mjs → chunk-555CAG7Y.mjs} +2 -2
- package/out/__chunks__/{chunk-2ONA7QPD.mjs → chunk-5DP2QBUG.mjs} +2 -2
- package/out/__chunks__/{chunk-5KVNYLOM.mjs → chunk-6DWUEZO7.mjs} +2 -2
- package/out/__chunks__/{chunk-IWROXIQ5.mjs → chunk-6V76WUHS.mjs} +2 -2
- package/out/__chunks__/{chunk-VRG2R5C7.mjs → chunk-76A63VDO.mjs} +2 -2
- package/out/__chunks__/{chunk-UXYMY3HG.mjs → chunk-7HNMIUES.mjs} +2 -2
- package/out/__chunks__/{chunk-3CKDOF3O.mjs → chunk-A3CEGIRB.mjs} +2 -2
- package/out/__chunks__/chunk-AIKQPMR3.mjs +2 -0
- package/out/__chunks__/{chunk-LPGMDX6Q.mjs → chunk-AYURCZHZ.mjs} +2 -2
- package/out/__chunks__/chunk-BHAHZQVO.mjs +2 -0
- package/out/__chunks__/chunk-BHAHZQVO.mjs.map +7 -0
- package/out/__chunks__/{chunk-DJ2HTZOV.mjs → chunk-BUHHNIJJ.mjs} +2 -2
- package/out/__chunks__/{chunk-RNSBN5JT.mjs → chunk-C25AGRYE.mjs} +2 -2
- package/out/__chunks__/{chunk-RJOP7SCI.mjs → chunk-CIB3ITZR.mjs} +2 -2
- package/out/__chunks__/chunk-CUS6AHOH.mjs +2 -0
- package/out/__chunks__/chunk-DSVSX4ZT.mjs +2 -0
- package/out/__chunks__/chunk-DSVSX4ZT.mjs.map +7 -0
- package/out/__chunks__/chunk-DZ2BIDRW.mjs +2 -0
- package/out/__chunks__/chunk-DZ2BIDRW.mjs.map +7 -0
- package/out/__chunks__/chunk-EAH7XGM3.mjs +2 -0
- package/out/__chunks__/chunk-EAH7XGM3.mjs.map +7 -0
- package/out/__chunks__/{chunk-6PDGQGIS.mjs → chunk-EEWLVNMR.mjs} +2 -2
- package/out/__chunks__/{chunk-AXCK3KRV.mjs → chunk-END5ZJQH.mjs} +2 -2
- package/out/__chunks__/{chunk-I4HR64FU.mjs → chunk-F4RI663J.mjs} +2 -2
- package/out/__chunks__/{chunk-Y7QM3LPW.mjs → chunk-GVTM4RFC.mjs} +2 -2
- package/out/__chunks__/{chunk-YFXATY46.mjs → chunk-H3DYNUJU.mjs} +2 -2
- package/out/__chunks__/{chunk-BGUYSNNW.mjs → chunk-IBM2AHR2.mjs} +2 -2
- package/out/__chunks__/{chunk-FVFVOSQ4.mjs → chunk-J2SRCAF3.mjs} +2 -2
- package/out/__chunks__/chunk-J5EJIWY3.mjs +2 -0
- package/out/__chunks__/{chunk-WJI5FXSZ.mjs → chunk-JNJ4L4QD.mjs} +2 -2
- package/out/__chunks__/{chunk-KXUILKL2.mjs → chunk-JNUF7URZ.mjs} +2 -2
- package/out/__chunks__/chunk-JQDWP4DW.mjs +2 -0
- package/out/__chunks__/{chunk-S5YFFC7A.mjs → chunk-JW2RVDMU.mjs} +2 -2
- package/out/__chunks__/chunk-KIOUFP5Q.mjs +1 -0
- package/out/__chunks__/{chunk-CAAMS3C5.mjs → chunk-KIQFGAFN.mjs} +2 -2
- package/out/__chunks__/{chunk-5AZZG5KG.mjs → chunk-KJCSIEAC.mjs} +2 -2
- package/out/__chunks__/{chunk-4AUL3FHT.mjs → chunk-LC3EPABR.mjs} +2 -2
- package/out/__chunks__/{chunk-NZWPA245.mjs → chunk-MUMHVEIZ.mjs} +2 -2
- package/out/__chunks__/{chunk-LQ6WESDL.mjs → chunk-MZEDBAQE.mjs} +2 -2
- package/out/__chunks__/chunk-N342XMFH.mjs +6 -0
- package/out/__chunks__/chunk-N342XMFH.mjs.map +7 -0
- package/out/__chunks__/{chunk-PHMJQ5FC.mjs → chunk-NA5CDQ5C.mjs} +2 -2
- package/out/__chunks__/chunk-NJSC7RC2.mjs +2 -0
- package/out/__chunks__/chunk-OE5E647N.mjs +2 -0
- package/out/__chunks__/chunk-OFSHYRXC.mjs +2 -0
- package/out/__chunks__/chunk-OL6LWUIJ.mjs +1 -0
- package/out/__chunks__/chunk-OL6LWUIJ.mjs.map +7 -0
- package/out/__chunks__/chunk-OOVV574D.mjs +2 -0
- package/out/__chunks__/chunk-OOVV574D.mjs.map +7 -0
- package/out/__chunks__/{chunk-2HKAVY3C.mjs → chunk-PBMO4Y47.mjs} +2 -2
- package/out/__chunks__/{chunk-BQP6NPQM.mjs → chunk-PETVWH5Z.mjs} +2 -2
- package/out/__chunks__/{chunk-OCGNA44K.mjs → chunk-PIBYPDMV.mjs} +2 -2
- package/out/__chunks__/chunk-PLMCHSS6.mjs +2 -0
- package/out/__chunks__/chunk-PLMCHSS6.mjs.map +7 -0
- package/out/__chunks__/{chunk-DG77T3NS.mjs → chunk-PWXUYZF5.mjs} +2 -2
- package/out/__chunks__/{chunk-PO3ODHJ7.mjs → chunk-Q62OP5VI.mjs} +2 -2
- package/out/__chunks__/{chunk-Z63LDNZJ.mjs → chunk-QEU6LCSD.mjs} +2 -2
- package/out/__chunks__/{chunk-O24MRZB2.mjs → chunk-QGTHGE7E.mjs} +2 -2
- package/out/__chunks__/{chunk-XNIJIKGB.mjs → chunk-QLEOO5UN.mjs} +2 -2
- package/out/__chunks__/{chunk-BNBD3WVN.mjs → chunk-RBJ3O63I.mjs} +2 -2
- package/out/__chunks__/chunk-RN2VZOXB.mjs +2 -0
- package/out/__chunks__/{chunk-KP4MUQKU.mjs → chunk-S2HQMNW6.mjs} +2 -2
- package/out/__chunks__/{chunk-27OTZWDO.mjs → chunk-SYNNW6IN.mjs} +2 -2
- package/out/__chunks__/{chunk-STVYY4LI.mjs → chunk-SZ3AWPZH.mjs} +2 -2
- package/out/__chunks__/{chunk-XUADWD55.mjs → chunk-T2BVHJVW.mjs} +2 -2
- package/out/__chunks__/chunk-T3JST5WU.mjs +2 -0
- package/out/__chunks__/chunk-T3JST5WU.mjs.map +7 -0
- package/out/__chunks__/chunk-TFZ46GCB.mjs +1 -0
- package/out/__chunks__/chunk-TFZ46GCB.mjs.map +7 -0
- package/out/__chunks__/{chunk-72D44IHE.mjs → chunk-TJYR4CV6.mjs} +2 -2
- package/out/__chunks__/{chunk-GSRRAPL5.mjs → chunk-TSK44JFJ.mjs} +2 -2
- package/out/__chunks__/{chunk-N6QD4PLA.mjs → chunk-TURUYZA7.mjs} +2 -2
- package/out/__chunks__/chunk-U6OAEGT3.mjs +2 -0
- package/out/__chunks__/{chunk-ARAO6B2F.mjs → chunk-UGUQSBY5.mjs} +2 -2
- package/out/__chunks__/{chunk-DNFWIYZH.mjs → chunk-UNBTFF6K.mjs} +2 -2
- package/out/__chunks__/{chunk-TMMUB3IK.mjs → chunk-VQ4GD4WE.mjs} +2 -2
- package/out/__chunks__/{chunk-OP2PPPAN.mjs → chunk-VX6FOSXG.mjs} +2 -2
- package/out/__chunks__/{chunk-KAQ5IXKK.mjs → chunk-W6P2TQ3N.mjs} +2 -2
- package/out/__chunks__/{chunk-E5CUE265.mjs → chunk-WC4UR2ZF.mjs} +2 -2
- package/out/__chunks__/chunk-WJQVMI33.mjs +2 -0
- package/out/__chunks__/chunk-WJQVMI33.mjs.map +7 -0
- package/out/__chunks__/chunk-WJTCBV34.mjs +2 -0
- package/out/__chunks__/{chunk-6BF62TP4.mjs → chunk-WJXCNHT3.mjs} +2 -2
- package/out/__chunks__/chunk-XDYKH6G4.mjs +2 -0
- package/out/__chunks__/{chunk-KX5J6EMC.mjs.map → chunk-XDYKH6G4.mjs.map} +1 -1
- package/out/__chunks__/chunk-XFP6N66W.mjs +2 -0
- package/out/__chunks__/{chunk-CYEMHPEX.mjs → chunk-XHRRQNPV.mjs} +2 -2
- package/out/__chunks__/{chunk-DCX2NQAU.mjs → chunk-XIDZCWKE.mjs} +2 -2
- package/out/__chunks__/chunk-XIQFXEMO.mjs +2 -0
- package/out/__chunks__/{chunk-2SVWHJC4.mjs → chunk-XJQ4VZS2.mjs} +2 -2
- package/out/__chunks__/{chunk-JV7AJLRI.mjs → chunk-XQUUCE53.mjs} +2 -2
- package/out/__chunks__/{chunk-FFHHIKMI.mjs → chunk-Y7BUJTYP.mjs} +2 -2
- package/out/__chunks__/{chunk-H4DISFAI.mjs → chunk-YCSATFGK.mjs} +2 -2
- package/out/__chunks__/chunk-YJFGRD5R.mjs +2 -0
- package/out/__chunks__/chunk-YJIAAC7S.mjs +2 -0
- package/out/__chunks__/{chunk-XHKNB4IP.mjs → chunk-YY724VZR.mjs} +2 -2
- package/out/__chunks__/{chunk-4XIT3N7Y.mjs → chunk-ZDCPV3O4.mjs} +2 -2
- package/out/__chunks__/{chunk-UJUAT5NK.mjs → chunk-ZEQI7SII.mjs} +2 -2
- package/out/__chunks__/{chunk-PAAJPYAE.mjs → chunk-ZKAIQNIL.mjs} +2 -2
- package/out/__chunks__/{chunk-IR743HKQ.mjs → chunk-ZMLJXSO5.mjs} +2 -2
- package/out/__chunks__/{chunk-HOJ7JMTW.mjs → chunk-ZP44CDGG.mjs} +2 -2
- package/out/__chunks__/chunk-ZQOG6A2Z.mjs +2 -0
- package/out/__chunks__/{chunk-S53SAYHR.mjs → chunk-ZQOIMST2.mjs} +2 -2
- package/out/__mocks__/accountConfig.mjs +1 -1
- package/out/__mocks__/data/index.mjs +1 -1
- package/out/__mocks__/index.mjs +1 -1
- package/out/__mocks__/server.mjs +1 -1
- package/out/__mocks__/utils/index.mjs +1 -1
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.mjs +1 -1
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.cjs +3 -0
- package/out/constants/transactions.constants.cjs.map +2 -2
- package/out/constants/transactions.constants.d.ts +1 -0
- package/out/constants/transactions.constants.mjs +1 -1
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/index.mjs +1 -1
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.mjs +1 -1
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/ToastManager/ToastManager.cjs +3 -6
- package/out/managers/internal/ToastManager/ToastManager.cjs.map +2 -2
- package/out/managers/internal/ToastManager/ToastManager.d.ts +1 -1
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.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 +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +2 -221
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs.map +3 -3
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.mjs +1 -1
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/index.mjs +1 -1
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.mjs +1 -1
- package/out/types/index.mjs +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/dateTime/index.mjs +1 -1
- package/out/utils/index.mjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs +111 -0
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +90 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.d.ts +8 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs +48 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs +45 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs +61 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs +39 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.d.ts +1 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs +52 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.d.ts +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.cjs +33 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.d.ts +6 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/helpers/index.mjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/index.cjs +25 -0
- package/out/utils/transactions/getDecodedDataField/index.cjs.map +7 -0
- package/out/utils/transactions/getDecodedDataField/index.d.ts +2 -0
- package/out/utils/transactions/getDecodedDataField/index.mjs +2 -0
- package/out/utils/transactions/getDecodedDataField/index.mjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.cjs +2 -0
- package/out/utils/transactions/index.cjs.map +2 -2
- package/out/utils/transactions/index.d.ts +1 -0
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/validation/index.mjs +1 -1
- package/out/utils/validation/isContract.mjs +1 -1
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.mjs +1 -1
- package/package.json +1 -1
- package/out/__chunks__/chunk-3NQTC6AZ.mjs +0 -2
- package/out/__chunks__/chunk-4EMQSUU6.mjs +0 -2
- package/out/__chunks__/chunk-5JYD7XMI.mjs +0 -2
- package/out/__chunks__/chunk-6CQMLD25.mjs +0 -1
- package/out/__chunks__/chunk-BETSOJFK.mjs +0 -6
- package/out/__chunks__/chunk-BETSOJFK.mjs.map +0 -7
- package/out/__chunks__/chunk-CAA4VJRH.mjs +0 -2
- package/out/__chunks__/chunk-IRBGQJE4.mjs +0 -2
- package/out/__chunks__/chunk-J64N3RXX.mjs +0 -2
- package/out/__chunks__/chunk-JN5CTLWW.mjs +0 -2
- package/out/__chunks__/chunk-KK25BEMY.mjs +0 -2
- package/out/__chunks__/chunk-KX5J6EMC.mjs +0 -2
- package/out/__chunks__/chunk-LTRQRVWX.mjs +0 -2
- package/out/__chunks__/chunk-LY3MRREN.mjs +0 -2
- package/out/__chunks__/chunk-LY3MRREN.mjs.map +0 -7
- package/out/__chunks__/chunk-MGHFXYZ5.mjs +0 -2
- package/out/__chunks__/chunk-MK36TMYT.mjs +0 -2
- package/out/__chunks__/chunk-OF3XH6ZU.mjs +0 -2
- package/out/__chunks__/chunk-QQEQNSRI.mjs +0 -2
- package/out/__chunks__/chunk-SGQJOLH2.mjs +0 -2
- package/out/__chunks__/chunk-TMOMM4JN.mjs +0 -2
- package/out/__chunks__/chunk-XUI3Z5NN.mjs +0 -2
- package/out/__chunks__/chunk-YVLFUMPH.mjs +0 -2
- /package/out/__chunks__/{chunk-ZS4EBCWC.mjs.map → chunk-2GG67TZD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YD2O3NV7.mjs.map → chunk-2KE2BNG7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2L25IGHZ.mjs.map → chunk-2KPILBQ2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IRBGQJE4.mjs.map → chunk-3JHE6RJX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2DUVXRMU.mjs.map → chunk-3MJNBS6H.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7VNNDJ7P.mjs.map → chunk-463K27BJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-7ONKP4ZG.mjs.map → chunk-4AGZHXFR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I6WJ63GD.mjs.map → chunk-4N34K4EN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IZ4B4B35.mjs.map → chunk-4PILLRHM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-54XYKDH7.mjs.map → chunk-555CAG7Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2ONA7QPD.mjs.map → chunk-5DP2QBUG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5KVNYLOM.mjs.map → chunk-6DWUEZO7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IWROXIQ5.mjs.map → chunk-6V76WUHS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VRG2R5C7.mjs.map → chunk-76A63VDO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UXYMY3HG.mjs.map → chunk-7HNMIUES.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3CKDOF3O.mjs.map → chunk-A3CEGIRB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5JYD7XMI.mjs.map → chunk-AIKQPMR3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LPGMDX6Q.mjs.map → chunk-AYURCZHZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DJ2HTZOV.mjs.map → chunk-BUHHNIJJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RNSBN5JT.mjs.map → chunk-C25AGRYE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RJOP7SCI.mjs.map → chunk-CIB3ITZR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LTRQRVWX.mjs.map → chunk-CUS6AHOH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6PDGQGIS.mjs.map → chunk-EEWLVNMR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AXCK3KRV.mjs.map → chunk-END5ZJQH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I4HR64FU.mjs.map → chunk-F4RI663J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y7QM3LPW.mjs.map → chunk-GVTM4RFC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YFXATY46.mjs.map → chunk-H3DYNUJU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BGUYSNNW.mjs.map → chunk-IBM2AHR2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FVFVOSQ4.mjs.map → chunk-J2SRCAF3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J64N3RXX.mjs.map → chunk-J5EJIWY3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WJI5FXSZ.mjs.map → chunk-JNJ4L4QD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KXUILKL2.mjs.map → chunk-JNUF7URZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MK36TMYT.mjs.map → chunk-JQDWP4DW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S5YFFC7A.mjs.map → chunk-JW2RVDMU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6CQMLD25.mjs.map → chunk-KIOUFP5Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CAAMS3C5.mjs.map → chunk-KIQFGAFN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5AZZG5KG.mjs.map → chunk-KJCSIEAC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4AUL3FHT.mjs.map → chunk-LC3EPABR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NZWPA245.mjs.map → chunk-MUMHVEIZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LQ6WESDL.mjs.map → chunk-MZEDBAQE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PHMJQ5FC.mjs.map → chunk-NA5CDQ5C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XUI3Z5NN.mjs.map → chunk-NJSC7RC2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MGHFXYZ5.mjs.map → chunk-OE5E647N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TMOMM4JN.mjs.map → chunk-OFSHYRXC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2HKAVY3C.mjs.map → chunk-PBMO4Y47.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BQP6NPQM.mjs.map → chunk-PETVWH5Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OCGNA44K.mjs.map → chunk-PIBYPDMV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DG77T3NS.mjs.map → chunk-PWXUYZF5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PO3ODHJ7.mjs.map → chunk-Q62OP5VI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z63LDNZJ.mjs.map → chunk-QEU6LCSD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O24MRZB2.mjs.map → chunk-QGTHGE7E.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XNIJIKGB.mjs.map → chunk-QLEOO5UN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BNBD3WVN.mjs.map → chunk-RBJ3O63I.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4EMQSUU6.mjs.map → chunk-RN2VZOXB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KP4MUQKU.mjs.map → chunk-S2HQMNW6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-27OTZWDO.mjs.map → chunk-SYNNW6IN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-STVYY4LI.mjs.map → chunk-SZ3AWPZH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XUADWD55.mjs.map → chunk-T2BVHJVW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-72D44IHE.mjs.map → chunk-TJYR4CV6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-GSRRAPL5.mjs.map → chunk-TSK44JFJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-N6QD4PLA.mjs.map → chunk-TURUYZA7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3NQTC6AZ.mjs.map → chunk-U6OAEGT3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ARAO6B2F.mjs.map → chunk-UGUQSBY5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DNFWIYZH.mjs.map → chunk-UNBTFF6K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TMMUB3IK.mjs.map → chunk-VQ4GD4WE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OP2PPPAN.mjs.map → chunk-VX6FOSXG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KAQ5IXKK.mjs.map → chunk-W6P2TQ3N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E5CUE265.mjs.map → chunk-WC4UR2ZF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-SGQJOLH2.mjs.map → chunk-WJTCBV34.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6BF62TP4.mjs.map → chunk-WJXCNHT3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JN5CTLWW.mjs.map → chunk-XFP6N66W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CYEMHPEX.mjs.map → chunk-XHRRQNPV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DCX2NQAU.mjs.map → chunk-XIDZCWKE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QQEQNSRI.mjs.map → chunk-XIQFXEMO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2SVWHJC4.mjs.map → chunk-XJQ4VZS2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JV7AJLRI.mjs.map → chunk-XQUUCE53.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FFHHIKMI.mjs.map → chunk-Y7BUJTYP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H4DISFAI.mjs.map → chunk-YCSATFGK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KK25BEMY.mjs.map → chunk-YJFGRD5R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OF3XH6ZU.mjs.map → chunk-YJIAAC7S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XHKNB4IP.mjs.map → chunk-YY724VZR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4XIT3N7Y.mjs.map → chunk-ZDCPV3O4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UJUAT5NK.mjs.map → chunk-ZEQI7SII.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PAAJPYAE.mjs.map → chunk-ZKAIQNIL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IR743HKQ.mjs.map → chunk-ZMLJXSO5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HOJ7JMTW.mjs.map → chunk-ZP44CDGG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YVLFUMPH.mjs.map → chunk-ZQOG6A2Z.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S53SAYHR.mjs.map → chunk-ZQOIMST2.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../../../__chunks__/chunk-VCAWVAO5.mjs";import{a as g}from"../../../../__chunks__/chunk-55W25Q35.mjs";import{a as h}from"../../../../__chunks__/chunk-
|
|
1
|
+
import"../../../../__chunks__/chunk-VCAWVAO5.mjs";import{a as g}from"../../../../__chunks__/chunk-55W25Q35.mjs";import{a as h}from"../../../../__chunks__/chunk-XQUUCE53.mjs";import"../../../../__chunks__/chunk-TURUYZA7.mjs";import"../../../../__chunks__/chunk-NA5CDQ5C.mjs";import"../../../../__chunks__/chunk-3JHE6RJX.mjs";import{a as f}from"../../../../__chunks__/chunk-3L7HZ2SO.mjs";import{b}from"../../../../__chunks__/chunk-52PGMMOM.mjs";import"../../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../../__chunks__/chunk-TX7PTLVP.mjs";import{a}from"../../../../__chunks__/chunk-WZ2DNB3R.mjs";import{a as e}from"../../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../../__chunks__/chunk-H33OUO77.mjs";import"../../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../../__chunks__/chunk-UQU2VWPJ.mjs";import{a as d}from"../../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../../__chunks__/chunk-HMHP5DPL.mjs";import"../../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../../__chunks__/chunk-QJ7MRSGB.mjs";import{a as c}from"../../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../../__chunks__/chunk-AYURCZHZ.mjs";import"../../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../../__chunks__/chunk-UERJ6AKK.mjs";import"../../../../__chunks__/chunk-KPK72MOE.mjs";import"../../../../__chunks__/chunk-SAAOQW7P.mjs";import"../../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../../__chunks__/chunk-6JM4DPOH.mjs";import"../../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../../__chunks__/chunk-XFP6N66W.mjs";import"../../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../../__chunks__/chunk-B7YCKWDU.mjs";import"../../../../__chunks__/chunk-HDJOER66.mjs";import"../../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../../../__chunks__/chunk-JMC7CMTU.mjs";import"../../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../../__chunks__/chunk-M7BM6QPB.mjs";import"../../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../../__chunks__/chunk-DBIIY2TX.mjs";import"../../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../../__chunks__/chunk-XDYKH6G4.mjs";export{g as createTransactionsHistoryFromSessions,a as getReceiverData,c as getTransactionAmount,d as getTransactionAsset,h as mapServerTransactionsToListItems,f as mapTransactionToListItem,b as processTransactionAction,e as processTransactionAssets};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../../__chunks__/chunk-XQUUCE53.mjs";import"../../../../__chunks__/chunk-TURUYZA7.mjs";import"../../../../__chunks__/chunk-NA5CDQ5C.mjs";import"../../../../__chunks__/chunk-3JHE6RJX.mjs";import"../../../../__chunks__/chunk-3L7HZ2SO.mjs";import"../../../../__chunks__/chunk-52PGMMOM.mjs";import"../../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../../__chunks__/chunk-H33OUO77.mjs";import"../../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../../__chunks__/chunk-HMHP5DPL.mjs";import"../../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../../__chunks__/chunk-AYURCZHZ.mjs";import"../../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../../__chunks__/chunk-UERJ6AKK.mjs";import"../../../../__chunks__/chunk-KPK72MOE.mjs";import"../../../../__chunks__/chunk-SAAOQW7P.mjs";import"../../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../../__chunks__/chunk-6JM4DPOH.mjs";import"../../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../../__chunks__/chunk-XFP6N66W.mjs";import"../../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../../__chunks__/chunk-B7YCKWDU.mjs";import"../../../../__chunks__/chunk-HDJOER66.mjs";import"../../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../../../__chunks__/chunk-JMC7CMTU.mjs";import"../../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../../__chunks__/chunk-M7BM6QPB.mjs";import"../../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../../__chunks__/chunk-DBIIY2TX.mjs";import"../../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../../__chunks__/chunk-XDYKH6G4.mjs";export{a as mapServerTransactionsToListItems};
|
|
2
2
|
//# sourceMappingURL=mapServerTransactionsToListItems.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../../__chunks__/chunk-3L7HZ2SO.mjs";import"../../../../__chunks__/chunk-52PGMMOM.mjs";import"../../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../../__chunks__/chunk-H33OUO77.mjs";import"../../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../../__chunks__/chunk-HMHP5DPL.mjs";import"../../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../../__chunks__/chunk-DBIIY2TX.mjs";import"../../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../../__chunks__/chunk-3L7HZ2SO.mjs";import"../../../../__chunks__/chunk-52PGMMOM.mjs";import"../../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../../__chunks__/chunk-H33OUO77.mjs";import"../../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../../__chunks__/chunk-HMHP5DPL.mjs";import"../../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../../__chunks__/chunk-DBIIY2TX.mjs";import"../../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../../__chunks__/chunk-GLXG5BES.mjs";export{a as mapTransactionToListItem};
|
|
2
2
|
//# sourceMappingURL=mapTransactionToListItem.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../../__chunks__/chunk-IXBWD6BF.mjs";import{a as i}from"../../../__chunks__/chunk-
|
|
1
|
+
import"../../../__chunks__/chunk-IXBWD6BF.mjs";import{a as i}from"../../../__chunks__/chunk-END5ZJQH.mjs";import"../../../__chunks__/chunk-VCAWVAO5.mjs";import{a as g}from"../../../__chunks__/chunk-55W25Q35.mjs";import{a as h}from"../../../__chunks__/chunk-XQUUCE53.mjs";import"../../../__chunks__/chunk-TURUYZA7.mjs";import"../../../__chunks__/chunk-NA5CDQ5C.mjs";import"../../../__chunks__/chunk-3JHE6RJX.mjs";import{a as f}from"../../../__chunks__/chunk-3L7HZ2SO.mjs";import{b}from"../../../__chunks__/chunk-52PGMMOM.mjs";import"../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../__chunks__/chunk-TX7PTLVP.mjs";import{a}from"../../../__chunks__/chunk-WZ2DNB3R.mjs";import{a as e}from"../../../__chunks__/chunk-DFSBS3PX.mjs";import"../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../__chunks__/chunk-H33OUO77.mjs";import"../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../__chunks__/chunk-UQU2VWPJ.mjs";import{a as d}from"../../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../../__chunks__/chunk-HMHP5DPL.mjs";import"../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../__chunks__/chunk-QJ7MRSGB.mjs";import{a as c}from"../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../__chunks__/chunk-BRJNX4JF.mjs";import"../../../__chunks__/chunk-AYURCZHZ.mjs";import"../../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../__chunks__/chunk-UERJ6AKK.mjs";import"../../../__chunks__/chunk-KPK72MOE.mjs";import"../../../__chunks__/chunk-SAAOQW7P.mjs";import"../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../__chunks__/chunk-6JM4DPOH.mjs";import"../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../__chunks__/chunk-XFP6N66W.mjs";import"../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../__chunks__/chunk-B7YCKWDU.mjs";import"../../../__chunks__/chunk-HDJOER66.mjs";import"../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../../__chunks__/chunk-JMC7CMTU.mjs";import"../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../__chunks__/chunk-M7BM6QPB.mjs";import"../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../__chunks__/chunk-DBIIY2TX.mjs";import"../../../__chunks__/chunk-KD2IQ32V.mjs";import"../../../__chunks__/chunk-7CELSV4S.mjs";import"../../../__chunks__/chunk-YUITECZ5.mjs";import"../../../__chunks__/chunk-TVELGQIH.mjs";import"../../../__chunks__/chunk-2BSPSW6X.mjs";import"../../../__chunks__/chunk-OVXVICF7.mjs";import"../../../__chunks__/chunk-BTJWNUM6.mjs";import"../../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../../__chunks__/chunk-WZI2I6NX.mjs";import"../../../__chunks__/chunk-TI37DKBT.mjs";import"../../../__chunks__/chunk-NTEMINYA.mjs";import"../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-GLXG5BES.mjs";import"../../../__chunks__/chunk-XDYKH6G4.mjs";export{g as createTransactionsHistoryFromSessions,a as getReceiverData,c as getTransactionAmount,d as getTransactionAsset,i as getTransactionsHistory,h as mapServerTransactionsToListItems,f as mapTransactionToListItem,b as processTransactionAction,e as processTransactionAssets};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -17,12 +17,14 @@ var transactions_exports = {};
|
|
|
17
17
|
module.exports = __toCommonJS(transactions_exports);
|
|
18
18
|
__reExport(transactions_exports, require("./explorerUrlBuilder"), module.exports);
|
|
19
19
|
__reExport(transactions_exports, require("./getActiveTransactionsStatus"), module.exports);
|
|
20
|
+
__reExport(transactions_exports, require("./getDecodedDataField"), module.exports);
|
|
20
21
|
__reExport(transactions_exports, require("./getHumanReadableTimeFormat"), module.exports);
|
|
21
22
|
__reExport(transactions_exports, require("./getTransactionsHistory"), module.exports);
|
|
22
23
|
// Annotate the CommonJS export names for ESM import in node:
|
|
23
24
|
0 && (module.exports = {
|
|
24
25
|
...require("./explorerUrlBuilder"),
|
|
25
26
|
...require("./getActiveTransactionsStatus"),
|
|
27
|
+
...require("./getDecodedDataField"),
|
|
26
28
|
...require("./getHumanReadableTimeFormat"),
|
|
27
29
|
...require("./getTransactionsHistory")
|
|
28
30
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/transactions/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './explorerUrlBuilder';\nexport * from './getActiveTransactionsStatus';\nexport * from './getHumanReadableTimeFormat';\nexport * from './getTransactionsHistory';\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAc,iCAAd;AACA,iCAAc,0CADd;AAEA,iCAAc,
|
|
4
|
+
"sourcesContent": ["export * from './explorerUrlBuilder';\nexport * from './getActiveTransactionsStatus';\nexport * from './getDecodedDataField';\nexport * from './getHumanReadableTimeFormat';\nexport * from './getTransactionsHistory';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iCAAc,iCAAd;AACA,iCAAc,0CADd;AAEA,iCAAc,kCAFd;AAGA,iCAAc,yCAHd;AAIA,iCAAc,qCAJd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-TFZ46GCB.mjs";import"../../__chunks__/chunk-OL6LWUIJ.mjs";import{a as i}from"../../__chunks__/chunk-N342XMFH.mjs";import"../../__chunks__/chunk-2IUBMLF4.mjs";import"../../__chunks__/chunk-KIOUFP5Q.mjs";import{a as h}from"../../__chunks__/chunk-DSVSX4ZT.mjs";import{a as g}from"../../__chunks__/chunk-DZ2BIDRW.mjs";import{a as f}from"../../__chunks__/chunk-WJQVMI33.mjs";import{a as e}from"../../__chunks__/chunk-BHAHZQVO.mjs";import{a as d}from"../../__chunks__/chunk-EAH7XGM3.mjs";import{a as c}from"../../__chunks__/chunk-OOVV574D.mjs";import"../../__chunks__/chunk-ZAPRDHIW.mjs";import"../../__chunks__/chunk-GIZSIYH4.mjs";import"../../__chunks__/chunk-WVAP3V3E.mjs";import"../../__chunks__/chunk-XVX7N3JK.mjs";import"../../__chunks__/chunk-HH5SA7BX.mjs";import"../../__chunks__/chunk-OEPTRJEB.mjs";import{a as j}from"../../__chunks__/chunk-B3IKUIRK.mjs";import{a as b}from"../../__chunks__/chunk-H3DYNUJU.mjs";import"../../__chunks__/chunk-TQA3JDNV.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import{a as s}from"../../__chunks__/chunk-END5ZJQH.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import{a as q}from"../../__chunks__/chunk-55W25Q35.mjs";import{a as r}from"../../__chunks__/chunk-XQUUCE53.mjs";import"../../__chunks__/chunk-TURUYZA7.mjs";import"../../__chunks__/chunk-NA5CDQ5C.mjs";import"../../__chunks__/chunk-3JHE6RJX.mjs";import{a as p}from"../../__chunks__/chunk-3L7HZ2SO.mjs";import{b as l}from"../../__chunks__/chunk-52PGMMOM.mjs";import"../../__chunks__/chunk-UCNS6KD5.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import{a as k}from"../../__chunks__/chunk-WZ2DNB3R.mjs";import{a as o}from"../../__chunks__/chunk-DFSBS3PX.mjs";import"../../__chunks__/chunk-GFR6K4DR.mjs";import"../../__chunks__/chunk-6D53LH5J.mjs";import"../../__chunks__/chunk-H33OUO77.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import{a as n}from"../../__chunks__/chunk-NK5Y3RLY.mjs";import"../../__chunks__/chunk-HMHP5DPL.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import{a as m}from"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-BRJNX4JF.mjs";import"../../__chunks__/chunk-AYURCZHZ.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-XFP6N66W.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import{a}from"../../__chunks__/chunk-DBIIY2TX.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-7CELSV4S.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-BTJWNUM6.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-XDYKH6G4.mjs";export{q as createTransactionsHistoryFromSessions,c as decodeByMethod,f as decodeHighlight,a as explorerUrlBuilder,b as getActiveTransactionsStatus,i as getDecodedDataField,e as getDecodedParts,h as getDisplayValueAndValidationWarnings,g as getHexValidationWarnings,j as getHumanReadableTimeFormat,k as getReceiverData,d as getSmartDecodedParts,m as getTransactionAmount,n as getTransactionAsset,s as getTransactionsHistory,r as mapServerTransactionsToListItems,p as mapTransactionToListItem,l as processTransactionAction,o as processTransactionAssets};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-CDTYHGXZ.mjs";import{a as h}from"../../__chunks__/chunk-2RAULLHL.mjs";import{a as e,b as f,c as g}from"../../__chunks__/chunk-7CELSV4S.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-CDTYHGXZ.mjs";import{a as h}from"../../__chunks__/chunk-2RAULLHL.mjs";import{a as e,b as f,c as g}from"../../__chunks__/chunk-7CELSV4S.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-BTJWNUM6.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import{a as c,b as d}from"../../__chunks__/chunk-WRLZ5ICK.mjs";import{a}from"../../__chunks__/chunk-3FXHIV6O.mjs";import{a as b}from"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";export{b as addressIsValid,g as getAddressFromDataField,a as getIdentifierType,e as isContract,c as isHexValidCharacters,d as isHexValidLength,f as isSelfESDTContract,h as maxDecimals};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../__chunks__/chunk-7CELSV4S.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-
|
|
1
|
+
import{a,b,c}from"../../__chunks__/chunk-7CELSV4S.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-BTJWNUM6.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";export{c as getAddressFromDataField,a as isContract,b as isSelfESDTContract};
|
|
2
2
|
//# sourceMappingURL=isContract.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-WHEXX3BD.mjs";import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-WHEXX3BD.mjs";import{a}from"../../__chunks__/chunk-KJCSIEAC.mjs";import"../../__chunks__/chunk-XDYKH6G4.mjs";export{a as switchTheme};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-KJCSIEAC.mjs";import"../../__chunks__/chunk-XDYKH6G4.mjs";export{a as switchTheme};
|
|
2
2
|
//# sourceMappingURL=switchTheme.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-F4RI663J.mjs";import"../../__chunks__/chunk-PWXUYZF5.mjs";import"../../__chunks__/chunk-XDYKH6G4.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";export{a as getIsInIframe};
|
|
2
2
|
//# sourceMappingURL=getIsInIframe.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-PWXUYZF5.mjs";import"../../__chunks__/chunk-XDYKH6G4.mjs";export{a as getWindowParentOrigin};
|
|
2
2
|
//# sourceMappingURL=getWindowParentOrigin.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-
|
|
1
|
+
import"../../__chunks__/chunk-DTQL3IDP.mjs";import{a as b}from"../../__chunks__/chunk-CKTFPRJS.mjs";import{a as f}from"../../__chunks__/chunk-F4RI663J.mjs";import"../../__chunks__/chunk-PWXUYZF5.mjs";import{a as e}from"../../__chunks__/chunk-EHDGJUEU.mjs";import{a as d}from"../../__chunks__/chunk-HOCSCRJF.mjs";import"../../__chunks__/chunk-XDYKH6G4.mjs";import{a as c}from"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import{a}from"../../__chunks__/chunk-B2UIPHJ3.mjs";export{d as buildUrlParams,e as getIsAuthRoute,f as getIsInIframe,b as getWindowLocation,a as isWindowAvailable,c as sanitizeCallbackUrl};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as t}from"./chunk-PAAJPYAE.mjs";import{c as n}from"./chunk-LPGMDX6Q.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
|
|
2
|
-
//# sourceMappingURL=chunk-4EMQSUU6.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-6CQMLD25.mjs.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{h}from"./chunk-OEPTRJEB.mjs";import{a as D}from"./chunk-HH5SA7BX.mjs";import{a as f,b as m}from"./chunk-WRLZ5ICK.mjs";import{a as g}from"./chunk-I3MK6KZJ.mjs";import{Address as V}from"@multiversx/sdk-core";import y from"bignumber.js";var x=e=>{let r=[];return e&&!f(e)&&r.push(`Invalid Hex characters on argument @${e}`),e&&!m(e)&&r.push(`Odd number of Hex characters on argument @${e}`),r},a=(e,r,n)=>{switch(r){case"text":try{return Buffer.from(e,"hex").toString("utf8")}catch{return e}case"decimal":return e!==""?new y(e,16).toString(10):"";case"smart":try{let t=V.newFromHex(e).toString();if(g(t))return t}catch{}try{let t=Buffer.from(e,"hex").toString("utf8");if(D(t))return t;{if(n&&[...n.esdts,...n.nfts].some(s=>t.includes(s)))return t;let i=new y(e,16);return i.isFinite()?i.toString(10):e}}catch{return e}case"raw":default:return e}},P=({parts:e,decodedParts:r,identifier:n})=>{let t=[...r];if(e[0]==="ESDTNFTTransfer"&&e[2]&&(t[2]=a(e[2],"decimal")),n==="ESDTNFTTransfer"&&e[1]){let i=Buffer.from(String(e[1]),"base64");t[1]=a(i.toString("hex"),"decimal")}return t},E=({parts:e,decodeMethod:r,identifier:n,decodedData:t})=>{let i=e.map((s,d)=>{if(e.length>=2&&(d===0&&s.length<64||d===1&&!e[0]))return/[^a-z0-9]/gi.test(s)?a(s,r):s;let c=x(s);return c?.length&&(t.validationWarnings=Array.from(new Set([...t.validationWarnings,...c]))),a(s,r)});return r==="smart"?P({parts:e,decodedParts:i,identifier:n}):i},T=({parts:e,decodeMethod:r,identifier:n,initialDecodedParts:t})=>r==="smart"?P({parts:e,decodedParts:t,identifier:n}):t,p=({data:e,identifier:r,decodeMethod:n,delimiter:t})=>{let i=e.split("@"),o=i.map(d=>a(d,n));return T({parts:i,initialDecodedParts:o,identifier:r,decodeMethod:n}).join(t)},H=({data:e,identifier:r,decodeMethod:n,highlight:t})=>{let i={displayValue:"",validationWarnings:[],highlight:t},o=e.includes("@"),s=e.includes(`
|
|
2
|
-
`);if(!o&&!s)return{...i,displayValue:a(e,n),highlight:t&&a(t,n)};if(o){let d=e.split("@"),c=E({parts:d,decodeMethod:n,identifier:r,decodedData:i}),l=t?p({data:t,identifier:r,decodeMethod:n,delimiter:"@"}):null;return{...i,displayValue:c.join("@"),highlight:l}}if(s){let d=e.split(`
|
|
3
|
-
`),c=d.map(u=>n==="raw"?u:a(Buffer.from(u,"base64").toString("hex"),n)),l=T({parts:d,initialDecodedParts:c,identifier:r,decodeMethod:n}),S=t?p({data:t,identifier:r,decodeMethod:n,delimiter:`
|
|
4
|
-
`}):null;return{...i,displayValue:l.join(`
|
|
5
|
-
`),highlight:S}}return i},k=({data:e,highlight:r,identifier:n})=>{let t={};return Object.values(h).forEach(i=>{let o=H({data:e,identifier:n,decodeMethod:i,highlight:r});t[i]=o}),t};export{k as a};
|
|
6
|
-
//# sourceMappingURL=chunk-BETSOJFK.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.ts"],
|
|
4
|
-
"sourcesContent": ["import { Address } from '@multiversx/sdk-core';\nimport BigNumber from 'bignumber.js';\nimport { TransactionTypesEnum } from 'types/enums.types';\nimport {\n DecodeMethodEnum,\n TransactionTokensType,\n DecodedDisplayType\n} from 'types/serverTransactions.types';\nimport { isUtf8 } from 'utils/decoders';\nimport { addressIsValid } from 'utils/validation/addressIsValid';\nimport { isHexValidCharacters, isHexValidLength } from 'utils/validation/hex';\n\ninterface IGetDecodedParts {\n parts: string[];\n decodeMethod: DecodeMethodEnum;\n identifier?: string;\n decodedData: DecodedDisplayType;\n}\n\ninterface ISmartDecodedParts {\n parts: string[];\n decodedParts: string[];\n identifier?: string;\n}\n\nconst getHexValidationWarnings = (str: string) => {\n const warnings = [];\n\n if (str && !isHexValidCharacters(str)) {\n warnings.push(`Invalid Hex characters on argument @${str}`);\n }\n\n if (str && !isHexValidLength(str)) {\n warnings.push(`Odd number of Hex characters on argument @${str}`);\n }\n\n return warnings;\n};\n\nconst decodeByMethod = (\n part: string,\n decodeMethod: DecodeMethodEnum | string,\n transactionTokens?: TransactionTokensType\n) => {\n switch (decodeMethod) {\n case DecodeMethodEnum.text:\n try {\n return Buffer.from(part, 'hex').toString('utf8');\n } catch {\n return part;\n }\n\n case DecodeMethodEnum.decimal:\n return part !== '' ? new BigNumber(part, 16).toString(10) : '';\n case DecodeMethodEnum.smart:\n try {\n const bech32Encoded = Address.newFromHex(part).toString();\n\n if (addressIsValid(bech32Encoded)) {\n return bech32Encoded;\n }\n } catch {\n // skip\n }\n\n try {\n const decoded = Buffer.from(part, 'hex').toString('utf8');\n\n if (!isUtf8(decoded)) {\n if (transactionTokens) {\n const tokens = [\n ...transactionTokens.esdts,\n ...transactionTokens.nfts\n ];\n\n if (tokens.some((token) => decoded.includes(token))) {\n return decoded;\n }\n }\n\n const bigNumber = new BigNumber(part, 16);\n\n return bigNumber.isFinite() ? bigNumber.toString(10) : part;\n } else {\n return decoded;\n }\n } catch {\n return part;\n }\n\n case DecodeMethodEnum.raw:\n default:\n return part;\n }\n};\n\nconst getSmartDecodedParts = ({\n parts,\n decodedParts,\n identifier\n}: ISmartDecodedParts) => {\n const smartDecodedParts = [...decodedParts];\n\n if (parts[0] === TransactionTypesEnum.ESDTNFTTransfer && parts[2]) {\n smartDecodedParts[2] = decodeByMethod(parts[2], DecodeMethodEnum.decimal);\n }\n\n if (identifier === TransactionTypesEnum.ESDTNFTTransfer && parts[1]) {\n const base64Buffer = Buffer.from(String(parts[1]), 'base64');\n smartDecodedParts[1] = decodeByMethod(\n base64Buffer.toString('hex'),\n DecodeMethodEnum.decimal\n );\n }\n\n return smartDecodedParts;\n};\n\nconst getDisplayValueAndValidationWarnings = ({\n parts,\n decodeMethod,\n identifier,\n decodedData\n}: IGetDecodedParts) => {\n const initialDecodedParts = parts.map((part, index) => {\n if (\n parts.length >= 2 &&\n ((index === 0 && part.length < 64) || (index === 1 && !parts[0]))\n ) {\n const encodedDisplayValue = /[^a-z0-9]/gi.test(part);\n\n if (encodedDisplayValue) {\n return decodeByMethod(part, decodeMethod);\n }\n\n return part;\n }\n\n const hexValidationWarnings = getHexValidationWarnings(part);\n\n if (hexValidationWarnings?.length) {\n decodedData.validationWarnings = Array.from(\n new Set([...decodedData.validationWarnings, ...hexValidationWarnings])\n );\n }\n\n return decodeByMethod(part, decodeMethod);\n });\n\n const decodedParts =\n decodeMethod === DecodeMethodEnum.smart\n ? getSmartDecodedParts({\n parts,\n decodedParts: initialDecodedParts,\n identifier\n })\n : initialDecodedParts;\n\n return decodedParts;\n};\n\nconst getDecodedParts = ({\n parts,\n decodeMethod,\n identifier,\n initialDecodedParts\n}: {\n parts: string[];\n decodeMethod: DecodeMethodEnum;\n identifier?: string;\n initialDecodedParts: string[];\n}) => {\n if (decodeMethod === DecodeMethodEnum.smart) {\n return getSmartDecodedParts({\n parts,\n decodedParts: initialDecodedParts,\n identifier\n });\n }\n\n return initialDecodedParts;\n};\n\nconst decodeHighlight = ({\n data,\n identifier,\n decodeMethod,\n delimiter\n}: {\n data: string;\n identifier?: string;\n decodeMethod: DecodeMethodEnum;\n delimiter: string;\n}) => {\n const parts = data.split('@');\n\n const initialDecodedParts = parts.map((part) => {\n return decodeByMethod(part, decodeMethod);\n });\n\n const decodedHighlight = getDecodedParts({\n parts,\n initialDecodedParts,\n identifier,\n decodeMethod\n });\n\n return decodedHighlight.join(delimiter);\n};\n\nconst decodeDataField = ({\n data,\n identifier,\n decodeMethod,\n highlight\n}: {\n data: string;\n identifier?: string;\n decodeMethod: DecodeMethodEnum;\n highlight: string | null;\n}): DecodedDisplayType => {\n const decodedData: DecodedDisplayType = {\n displayValue: '',\n validationWarnings: [],\n highlight\n };\n\n const hasAt = data.includes('@');\n const hasNewLine = data.includes('\\n');\n\n if (!hasAt && !hasNewLine) {\n return {\n ...decodedData,\n displayValue: decodeByMethod(data, decodeMethod),\n highlight: highlight ? decodeByMethod(highlight, decodeMethod) : highlight\n };\n }\n\n if (hasAt) {\n const parts = data.split('@');\n const decodedParts = getDisplayValueAndValidationWarnings({\n parts,\n decodeMethod,\n identifier,\n decodedData\n });\n\n const decodedHighlight = highlight\n ? decodeHighlight({\n data: highlight,\n identifier,\n decodeMethod,\n delimiter: '@'\n })\n : null;\n\n return {\n ...decodedData,\n displayValue: decodedParts.join('@'),\n highlight: decodedHighlight\n };\n }\n\n if (hasNewLine) {\n const parts = data.split('\\n');\n\n const initialDecodedParts = parts.map((part) => {\n if (decodeMethod === DecodeMethodEnum.raw) {\n return part;\n }\n\n return decodeByMethod(\n Buffer.from(part, 'base64').toString('hex'),\n decodeMethod\n );\n });\n\n const decodedParts = getDecodedParts({\n parts,\n initialDecodedParts,\n identifier,\n decodeMethod\n });\n\n const decodedHighlight = highlight\n ? decodeHighlight({\n data: highlight,\n identifier,\n decodeMethod,\n delimiter: '\\n'\n })\n : null;\n\n return {\n ...decodedData,\n displayValue: decodedParts.join('\\n'),\n highlight: decodedHighlight\n };\n }\n\n return decodedData;\n};\n\nexport const getAllDecodedFormats = ({\n data,\n highlight,\n identifier\n}: {\n data: string;\n highlight: string | null;\n identifier?: string;\n}) => {\n const decodedFormats: Partial<Record<DecodeMethodEnum, DecodedDisplayType>> =\n {};\n\n Object.values(DecodeMethodEnum).forEach((decodeMethod) => {\n const decodedData = decodeDataField({\n data,\n identifier,\n decodeMethod,\n highlight\n });\n\n decodedFormats[decodeMethod] = decodedData;\n });\n\n return decodedFormats;\n};\n"],
|
|
5
|
-
"mappings": "sKAAA,OAAS,WAAAA,MAAe,uBACxB,OAAOC,MAAe,eAwBtB,IAAMC,EAA4BC,GAAgB,CAChD,IAAMC,EAAW,CAAC,EAElB,OAAID,GAAO,CAACE,EAAqBF,CAAG,GAClCC,EAAS,KAAK,uCAAuCD,CAAG,EAAE,EAGxDA,GAAO,CAACG,EAAiBH,CAAG,GAC9BC,EAAS,KAAK,6CAA6CD,CAAG,EAAE,EAG3DC,CACT,EAEMG,EAAiB,CACrBC,EACAC,EACAC,IACG,CACH,OAAQD,EAAc,CACpB,WACE,GAAI,CACF,OAAO,OAAO,KAAKD,EAAM,KAAK,EAAE,SAAS,MAAM,CACjD,MAAQ,CACN,OAAOA,CACT,CAEF,cACE,OAAOA,IAAS,GAAK,IAAIG,EAAUH,EAAM,EAAE,EAAE,SAAS,EAAE,EAAI,GAC9D,YACE,GAAI,CACF,IAAMI,EAAgBC,EAAQ,WAAWL,CAAI,EAAE,SAAS,EAExD,GAAIM,EAAeF,CAAa,EAC9B,OAAOA,CAEX,MAAQ,CAER,CAEA,GAAI,CACF,IAAMG,EAAU,OAAO,KAAKP,EAAM,KAA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KAAK,GAAG,EACnC,UAAWiB,CACb,CACF,CAEA,GAAID,EAAY,CACd,IAAMjB,EAAQY,EAAK,MAAM;AAAA,CAAI,EAEvBL,EAAsBP,EAAM,IAAKZ,GACjCC,UACKD,EAGFD,EACL,OAAO,KAAKC,EAAM,QAAQ,EAAE,SAAS,KAAK,EAC1CC,CACF,CACD,EAEKY,EAAeS,EAAgB,CACnC,MAAAV,EACA,oBAAAO,EACA,WAAAL,EACA,aAAAb,CACF,CAAC,EAEK6B,EAAmBH,EACrBJ,EAAgB,CACd,KAAMI,EACN,WAAAb,EACA,aAAAb,EACA,UAAW;AAAA,CACb,CAAC,EACD,KAEJ,MAAO,CACL,GAAGiB,EACH,aAAcL,EAAa,KAAK;AAAA,CAAI,EACpC,UAAWiB,CACb,CACF,CAEA,OAAOZ,CACT,EAEaa,EAAuB,CAAC,CACnC,KAAAP,EACA,UAAAG,EACA,WAAAb,CACF,IAIM,CACJ,IAAMkB,EACJ,CAAC,EAEH,cAAO,OAAOC,CAAgB,EAAE,QAAShC,GAAiB,CACxD,IAAMiB,EAAcQ,EAAgB,CAClC,KAAAF,EACA,WAAAV,EACA,aAAAb,EACA,UAAA0B,CACF,CAAC,EAEDK,EAAe/B,CAAY,EAAIiB,CACjC,CAAC,EAEMc,CACT",
|
|
6
|
-
"names": ["Address", "BigNumber", "getHexValidationWarnings", "str", "warnings", "isHexValidCharacters", "isHexValidLength", "decodeByMethod", "part", "decodeMethod", "transactionTokens", "BigNumber", "bech32Encoded", "Address", "addressIsValid", "decoded", "isUtf8", "token", "bigNumber", "getSmartDecodedParts", "parts", "decodedParts", "identifier", "smartDecodedParts", "base64Buffer", "getDisplayValueAndValidationWarnings", "decodedData", "initialDecodedParts", "index", "hexValidationWarnings", "getDecodedParts", "decodeHighlight", "data", "delimiter", "decodeDataField", "highlight", "hasAt", "hasNewLine", "decodedHighlight", "getAllDecodedFormats", "decodedFormats", "DecodeMethodEnum"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-S53SAYHR.mjs";import{b as s}from"./chunk-TQA3JDNV.mjs";import{s as n}from"./chunk-LPGMDX6Q.mjs";async function f(){let t=s(n());if(Object.keys(t).length>0)for(let[e,{transactions:c}]of Object.entries(t))await o({sessionId:e,transactionBatch:c})}export{f as a};
|
|
2
|
-
//# sourceMappingURL=chunk-J64N3RXX.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as et}from"./chunk-MGHFXYZ5.mjs";import{a as mt}from"./chunk-6UZHM5LW.mjs";import{a as C}from"./chunk-UJUAT5NK.mjs";import{a as pt}from"./chunk-CAAMS3C5.mjs";import{a as w}from"./chunk-2DUVXRMU.mjs";import{a as Z,b as tt,g as ot,l as st}from"./chunk-CAA4VJRH.mjs";import{a as gt}from"./chunk-27OTZWDO.mjs";import{b}from"./chunk-PO3ODHJ7.mjs";import{a as dt}from"./chunk-4EMQSUU6.mjs";import{a as It}from"./chunk-4ODPAHHA.mjs";import{a as ht}from"./chunk-MDVI45IV.mjs";import{a as ft}from"./chunk-KAQ5IXKK.mjs";import{a as f}from"./chunk-LTRQRVWX.mjs";import{a as X}from"./chunk-OF3XH6ZU.mjs";import{a as ut}from"./chunk-XUADWD55.mjs";import{a as L}from"./chunk-XNIJIKGB.mjs";import{a as S,f as lt}from"./chunk-NZWPA245.mjs";import{b as Tt}from"./chunk-2HKAVY3C.mjs";import{d as rt}from"./chunk-RNSBN5JT.mjs";import{k as it,l as nt,n as at}from"./chunk-65L5EBBL.mjs";import{a as A}from"./chunk-HORSXVIV.mjs";import{a as vt}from"./chunk-5JYD7XMI.mjs";import{a as Q}from"./chunk-ARAO6B2F.mjs";import{a as E}from"./chunk-QTKK6OSJ.mjs";import{a as J}from"./chunk-6ACLOUQ3.mjs";import{a as y}from"./chunk-NZYB675D.mjs";import{a as yt}from"./chunk-NJN53MJV.mjs";import{a as j}from"./chunk-YSCND2MX.mjs";import{a as V,b as q,q as u,s as Y}from"./chunk-LPGMDX6Q.mjs";import{c as H,f as $}from"./chunk-UERJ6AKK.mjs";import{b as g}from"./chunk-VNLGNNIL.mjs";import{b as v}from"./chunk-6JM4DPOH.mjs";import{b as G,c as K,f as z}from"./chunk-NTEMINYA.mjs";import{b as Et}from"./chunk-76URRONH.mjs";import{a as ct}from"./chunk-6PDGQGIS.mjs";import{a as I}from"./chunk-PLUWBWJ2.mjs";import W from"lodash.isequal";import Lt from"lodash.isequal";var Ft="NOTIFICATIONS_FEED_STORE_SUBSCRIBE",x=class e extends ut{constructor(){super({uiDataUpdateEvent:"OPEN_NOTIFICATIONS_FEED",uiTag:"mvx-notifications-feed"});this.store=u();this.initialData={pendingTransactions:[],historicTransactions:[]};this.data={...this.initialData}}static getInstance(){return e.instance||(e.instance=new e),e.instance}isNotificationsFeedOpen(){return this.isOpen}async openNotificationsFeed(){p.getInstance().hideToasts(),await this.openUI(),await this.updateDataAndNotifications();let s=this.store.subscribe(async({toasts:i,transactions:n},{toasts:a,transactions:c})=>{(!Lt(a.transactionToasts,i.transactionToasts)||!Lt(c,n))&&await this.updateDataAndNotifications()});this.unsubscribeFunctions.set(Ft,[s]),this.eventBus?.publish("OPEN_NOTIFICATIONS_FEED"),await this.updateDataAndNotifications()}async handleCloseUI(){let o=p.getInstance();this.closeUI(),await o.showToasts()}async setupEventListeners(){this.eventBus&&(this.subscribeToEventBus("CLOSE_NOTIFICATIONS_FEED",this.handleCloseUI.bind(this)),this.subscribeToEventBus("CLEAR_NOTIFICATIONS_FEED_HISTORY",this.handleClearNotificationsFeedHistory.bind(this)))}async updateDataAndNotifications(){let{transactions:o,account:s,toasts:i,network:n}=this.store.getState(),{pendingTransactionToasts:a}=await C({toastList:i,transactionsSessions:o,account:s});this.data.pendingTransactions=a,this.data.historicTransactions=await et.getTransactionsHistory({transactionsSessions:o,address:s.address,explorerAddress:n.network.explorerAddress,egldLabel:n.network.egldLabel}),await this.updateNotificationsFeed()}handleClearNotificationsFeedHistory(){rt(),this.resetData(),this.updateNotificationsFeed()}async updateNotificationsFeed(){this.eventBus&&(this.eventBus.publish("PENDING_TRANSACTIONS_UPDATE",this.data.pendingTransactions),this.eventBus.publish("TRANSACTIONS_HISTORY_UPDATE",this.data.historicTransactions))}};import R from"bignumber.js";var N=class e{constructor(){this.store=u();this.warningLogoutTimeoutRef=null;this.actualLogoutTimeoutRef=null;this.plannedLogoutTimeoutRef=null;this.plannedLogoutKey=null;this.init=async()=>{if(!this.shouldStart())return;let t=this.store.getState(),o=g(t),{isExpired:s}=E(o?.nativeAuthToken);s?h().logout():this.addPlannedLogout()};this.stop=()=>{clearTimeout(this.warningLogoutTimeoutRef??0),clearTimeout(this.plannedLogoutTimeoutRef??0),clearTimeout(this.actualLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=null,this.plannedLogoutTimeoutRef=null,this.actualLogoutTimeoutRef=null,this.plannedLogoutKey=null};this.shouldStart=()=>{let t=this.store.getState(),o=g(t),s=$(t);return!!(o?.nativeAuthToken&&s)};this.addPlannedLogout=()=>{let t=h(),o=H(this.store.getState()),s=t.getType()===I.webview;if(!o||s)return;this.addLogoutWarning();let i=g(this.store.getState()),{secondsUntilExpires:n,expiresAt:a}=E(i?.nativeAuthToken),c=new R(String(n)),r=`${o}_${a}`,m=this.plannedLogoutKey===r;if(!(n&&c.isGreaterThan(0))||m)return;this.plannedLogoutKey=r,clearTimeout(this.plannedLogoutTimeoutRef??0);let d=c.times(1e3);this.actualLogoutTimeoutRef=setTimeout(()=>{p.getInstance().createCustomToast({toastId:"native-auth-logout",iconClassName:"warning",title:"Logging out",icon:"times",message:"Your session has expired!"}),this.actualLogoutTimeoutRef=null},d.toNumber()-3e3),this.plannedLogoutTimeoutRef=setTimeout(()=>{t.logout(),this.plannedLogoutTimeoutRef=null,this.plannedLogoutKey=null},d.toNumber())};this.addLogoutWarning=()=>{if(this.warningLogoutTimeoutRef)return;let t=v(this.store.getState()),o=g(this.store.getState()),{secondsUntilExpires:s}=E(o?.nativeAuthToken),i=new R(String(s)),n=i.times(1e3);if(!s||i.isLessThanOrEqualTo(0)||!t?.tokenExpirationToastWarningSeconds)return;let c=new R(t?.tokenExpirationToastWarningSeconds??0).times(1e3),r=i.times(1e3).minus(c),m=mt(n.toNumber()),l=r.isLessThanOrEqualTo(0)?0:r.toNumber();clearTimeout(this.warningLogoutTimeoutRef??0),this.warningLogoutTimeoutRef=setTimeout(()=>{p.getInstance().createCustomToast({toastId:"native-auth-expired",iconClassName:"warning",title:"Session Expiration Warning",icon:"hourglass",message:`Your session will expire in ${m}!`}),this.warningLogoutTimeoutRef=null},l)}}static getInstance(){return e.instance||(e.instance=new e),e.instance}};async function B({address:e,provider:t,apiAddress:o}){let s=await y({address:e,baseURL:o});if(!s)throw new Error("Account not found");Tt({address:e,providerType:t.getType()});let i={...s,username:A(s.username),nonce:L(s)};S(i),await b(e),w(),s.shard!=null&&await pt({shard:Number(s.shard),apiAddress:o})}async function kt(e){let{network:{apiAddress:t}}=f();await e.login();let o=await e.getAddress();if(!o)throw new Error("Address not found");return await B({address:o,provider:e,apiAddress:t}),{address:o}}async function Dt({provider:e,nativeAuthConfig:t,token:o}){let{network:{apiAddress:s}}=f(),i=Q(t),n=o;n||(n=await i.initialize({noCache:!0}));let{address:a,signature:c,...r}=await e.login({token:n});if(!a)return console.warn("Login cancelled."),null;if(!c)return console.error("Failed to sign login token"),null;let l=J(r?.accessToken)?r.accessToken:i.getToken({address:a,token:n,signature:c});q({loginToken:n,signature:c,nativeAuthToken:l});let d=await dt({loginToken:n,extraInfoData:{multisig:r?.multisig,impersonate:r?.impersonate},address:a});return await B({address:d,provider:e,apiAddress:s}),{address:d,signature:c}}async function Ct(e,t){let o=v(Y());if(o)return await Dt({provider:e,nativeAuthConfig:o,token:t?.token});let{address:s}=await kt(e);return await b(s),w(),{address:s}}var U={error:{title:"Error when signing".toString(),iconClassName:"danger",toastId:`${tt}-${Date.now()}`},warning:{title:"Signing canceled".toString(),iconClassName:"warning",toastId:`${Z}-${Date.now()}`}},Rt={extensionResponse:"Unable to sign transactions","Transaction canceled":"Transaction canceled","cancelled by user":"Transaction signing cancelled by user","denied by the user":"Transaction signing denied by the user"},Bt=e=>{for(let[t,o]of Object.entries(Rt))if(e.includes(t))return o;return"Error when signing"};function _(e,t="error"){let o=e?.message,s=Bt(o),n=s!=="Error when signing"?"warning":t,a=Object.keys(U).includes(n)?U[n]:U.error,{toastId:c,iconClassName:r,title:m}=a;return M({toastId:c,duration:1e4,icon:"times",iconClassName:r,message:s,title:m}),s}async function St({provider:e,transactions:t,options:o={}}){await bt();let{isGuarded:s,activeGuardianAddress:i,nonce:n}=vt(),a=e.getType()===I.ledger,c=It({latestNonce:n,transactions:t}),r=i&&s&&!o.skipGuardian?c?.map(l=>(l.version=G.withTxOptions().valueOf(),l.options=z.withOptions({guarded:!0,...a?{hashSign:!0}:{}}).valueOf(),l.guardian=K.newFromBech32(i),l)):c,m=await e.signTransactions(r)??[];return lt(n+m.length),m}var O=class{constructor(t){this._isLoggingOut=!1;this.provider=t}init(){return this.provider.init()}async login(t){let o=await Ct(this.provider,t);return V(this.provider.getType()),wt(this),N.getInstance().init(),o}isInitialized(){return this.provider.isInitialized()}async logout(t={shouldBroadcastLogoutAcrossTabs:!0}){if(this._isLoggingOut)return console.warn("Logout already in progress"),!1;this._isLoggingOut=!0;let o=await gt({provider:this.provider,options:t});return this._isLoggingOut=!1,o}getType(){return this.provider.getType()}getProvider(){return this.provider}async signTransactions(t,o){try{return await St({provider:this.provider,transactions:t,options:o})}catch(s){let i=_(s);throw new Error(i)}}async signMessage(t,o){try{return await ft({provider:this.provider,message:t,options:o})}catch(s){let i=_(s,"warning");throw new Error(i)}}async verifyMessage(t){return await ht(t)}cancelLogin(){this.provider.cancelLogin?.()}};var At=null;function wt(e){At=e}function h(){return At||new O(Et)}var Ut=async()=>{try{let e=X(),{network:t}=f();try{let o=await y({address:e,baseURL:t.apiAddress});if(o!=null){let s={...o,username:A(o.username),nonce:L(o)};return S(s),s}}catch(o){console.error("Failed getting account ",o)}}catch(e){console.error("Failed getting address ",e)}return null};async function bt(){let e=h();if(e==null)throw"Provider not initialized";try{if(!e.init)throw"Current provider does not have init() function";return await e.init()?Ut():void 0}catch(t){console.error("Failed initializing provider ",t)}}var F={},T={},_t=(e,t)=>{u().setState(({toasts:o})=>{let s=o.customToasts.length>0?Math.max(...o.customToasts.map(r=>parseInt(r.toastId.split("-").pop()??"0"))):0,i=t??`custom-toast-${s+1}`,n=o.customToasts.findIndex(r=>r.toastId===i),a={...e,toastId:i};if(n!==-1){o.customToasts[n]=a;return}o.customToasts.push({...a,toastId:i})},!1,"addCustomToast")},P=e=>{u().setState(({toasts:t})=>{t.customToasts=t.customToasts.filter(o=>o.toastId!==e)},!1,"removeCustomToast")},xt=()=>{u().setState(({toasts:e})=>{e.customToasts=[]},!1,"removeAllCustomToasts")},zs=()=>{u().setState(({toasts:e})=>{e.transactionToasts=[]})},Nt=({toastId:e,totalDuration:t})=>{let o="";return u().setState(({toasts:s})=>{let i=s.transactionToasts.length>0?Math.max(...s.transactionToasts.map(n=>parseInt(n.toastId.split("-").pop()??"0"))):0;o=e??`transaction-toast-${i+1}`,s.transactionToasts.push({startTime:j(),endTime:yt(t),toastId:o})},!1,"addTransactionToast"),o},k=e=>{u().setState(({toasts:t})=>{t.transactionToasts=t.transactionToasts.filter(o=>o.toastId!==e)},!1,"removeTransactionToast"),delete T[e],delete F[e]},M=e=>{let{toasts:t}=u().getState(),o=t.customToasts.length>0?Math.max(...t.customToasts.map(i=>parseInt(i.toastId.split("-").pop()??"0"))):0,s=e.toastId||`custom-toast-${o+1}`;return e.onClose&&(T[s]=e.onClose),e.instantiateToastElement?(F[s]=e.instantiateToastElement,u().setState(({toasts:i})=>{let n=i.customToasts.findIndex(r=>r.toastId===s),a={...e,instantiateToastElement:null,toastId:s};n!==-1?i.customToasts[n]=a:i.customToasts.push(a)},!1,"createCustomToast"),s):(_t(e,s),s)};var Mt=1e4,D=class{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=Mt;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;let o=setTimeout(()=>{k(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,o)};this.startWithCustomDuration=(t,o)=>{if(this.stop(t),o<=0)return;let s=setTimeout(()=>{P(t);let i=T[t];i?.()},o);this.timeoutIntervals.set(t,s)};this.stop=t=>{let o=this.timeoutIntervals.get(t);o&&(clearTimeout(o),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t||Mt}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}};var p=class e{constructor(){this.isCreatingElement=!1;this.toastsElement=null;this.transactionToasts=[];this.customToasts=[];this.storeToastsSubscription=()=>null;this.eventBusUnsubscribeFunctions=[];this.eventBus=null;this.store=u();this.destroy(),this.lifetimeManager=new D,this.notificationsFeedManager=x.getInstance()}async init({successfulToastLifetime:t=5e3}={}){this.successfulToastLifetime=t,this.lifetimeManager.init({successfulToastLifetime:t}),await this.updateTransactionToastsList(),await this.updateCustomToastList(),await this.subscribeToEventBusNotifications(),this.storeToastsSubscription=this.store.subscribe(async({toasts:o,transactions:s},{toasts:i,transactions:n})=>{(!W(i.transactionToasts,o.transactionToasts)||!W(n,s))&&await this.updateTransactionToastsList(),W(i.customToasts,o.customToasts)||await this.updateCustomToastList()})}static getInstance(){return e.instance||(e.instance=new e),e.instance}handleCompletedTransaction(t){let{transactions:o}=this.store.getState(),s=o[t];if(!s)return!1;let{status:i}=s,n=at(i),a=nt(i),c=it(i),r=a||c||n;return r?(this.successfulToastLifetime&&this.lifetimeManager.start(t),r):(this.lifetimeManager.stop(t),r)}async createTransactionToast(t,o){let s=Nt({toastId:t,totalDuration:o});return this.handleCompletedTransaction(t),await this.updateTransactionToastsList(),s}createCustomToast(t){let o=M(t);return this.updateCustomToastList(),o}async updateTransactionToastsList(){let{toasts:t,transactions:o,account:s}=this.store.getState(),{pendingTransactionToasts:i,completedTransactionToasts:n}=await C({toastList:t,transactionsSessions:o,account:s});this.transactionToasts=[...i,...n];for(let a of t.transactionToasts)this.handleCompletedTransaction(a.toastId);await this.publishTransactionToasts()}async updateCustomToastList(){let{toasts:t}=this.store.getState();this.customToasts=[];for(let o of t.customToasts){let i="message"in o?{...o}:{...o,instantiateToastElement:F[o.toastId]};this.customToasts.push(i),o.duration&&this.lifetimeManager.startWithCustomDuration(o.toastId,o.duration)}this.eventBus?.publish("CUSTOM_TOAST_DATA_UPDATE",this.customToasts)}async createToastListElement(){return this.toastsElement?this.toastsElement:(this.isCreatingElement||(this.isCreatingElement=!0,this.toastsElement=await ct.create({name:"mvx-toast-list"}),this.isCreatingElement=!1),this.toastsElement)}handleTransactionToastClose(t){this.handleCompletedTransaction(t)&&k(t)}async subscribeToEventBusNotifications(){let t=await this.createToastListElement();if(t){if(this.eventBus=await t.getEventBus(),!this.eventBus)throw new Error("eventBus is not initialized");this.eventBus.subscribe("CLOSE_TOAST",this.handleCloseToast.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("CLOSE_TOAST",this.handleCloseToast.bind(this))}),this.eventBus.subscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this)),this.eventBusUnsubscribeFunctions.push(()=>{this.eventBus?.unsubscribe("OPEN_NOTIFICATIONS_FEED",this.handleOpenNotificationsFeed.bind(this))})}}async showToasts(){this.eventBus?.publish("SHOW_TOAST_LIST",null),await this.updateCustomToastList(),await this.updateTransactionToastsList()}hideToasts(){this.eventBus?.publish("HIDE_TOAST_LIST",null)}async handleOpenNotificationsFeed(){this.notificationsFeedManager.openNotificationsFeed()}handleCloseToast(t){if(this.customToasts.find(s=>s.toastId===t)){this.lifetimeManager.stop(t);let s=T[t];s?.(),P(t);return}this.handleTransactionToastClose(t)}async publishTransactionToasts(){if(this.notificationsFeedManager.isNotificationsFeedOpen()&&this.eventBus){this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts),this.hideToasts();return}if(!this.eventBus){let t=await this.createToastListElement();if(!t)return;this.eventBus=await t.getEventBus()}this.eventBus.publish("TRANSACTION_TOAST_DATA_UPDATE",this.transactionToasts)}destroy(){this.storeToastsSubscription(),this.lifetimeManager?.destroy(),this.notificationsFeedManager?.destroy(),xt(),this.eventBusUnsubscribeFunctions.forEach(t=>t()),this.eventBusUnsubscribeFunctions=[]}};export{x as a,F as b,T as c,_t as d,P as e,xt as f,zs as g,Nt as h,k as i,M as j,D as k,p as l,N as m,B as n,Ct as o,_ as p,St as q,O as r,wt as s,h as t,bt as u};
|
|
2
|
-
//# sourceMappingURL=chunk-LY3MRREN.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/managers/internal/ToastManager/ToastManager.ts", "../../src/managers/NotificationsFeedManager/NotificationsFeedManager.ts", "../../src/managers/LogoutManager/LogoutManager.ts", "../../src/providers/DappProvider/helpers/login/helpers/accountLogin.ts", "../../src/providers/DappProvider/helpers/login/login.ts", "../../src/providers/DappProvider/helpers/signErrors/handleSignError.ts", "../../src/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.ts", "../../src/providers/DappProvider/DappProvider.ts", "../../src/providers/helpers/accountProvider.ts", "../../src/utils/account/refreshAccount.ts", "../../src/store/actions/toasts/toastsActions.ts", "../../src/managers/internal/ToastManager/helpers/LifetimeManager.ts"],
|
|
4
|
-
"sourcesContent": ["import isEqual from 'lodash.isequal';\nimport { DEFAULT_TOAST_LIEFTIME } from 'constants/transactions.constants';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { MvxToastList } from 'lib/sdkDappUi';\nimport { NotificationsFeedManager } from 'managers/NotificationsFeedManager/NotificationsFeedManager';\nimport {\n customToastCloseHandlersDictionary,\n customToastComponentDictionary,\n removeAllCustomToasts,\n removeCustomToast,\n removeTransactionToast,\n addTransactionToast,\n createCustomToast\n} from 'store/actions/toasts/toastsActions';\nimport {\n getIsTransactionFailed,\n getIsTransactionSuccessful,\n getIsTransactionTimedOut\n} from 'store/actions/transactions/transactionStateByStatus';\n\nimport { CustomToastType } from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { IEventBus } from 'types/manager.types';\nimport { ProviderErrorsEnum } from 'types/provider.types';\nimport { ComponentFactory } from 'utils/ComponentFactory';\nimport { createToastsFromTransactions } from './helpers/createToastsFromTransactions';\nimport { LifetimeManager } from './helpers/LifetimeManager';\nimport { ITransactionToast, ToastEventsEnum } from './types';\n\ninterface IToastManager {\n successfulToastLifetime?: number;\n}\n\nexport class ToastManager {\n private readonly lifetimeManager: LifetimeManager;\n private isCreatingElement = false;\n private static instance: ToastManager;\n private toastsElement: MvxToastList | null = null;\n private transactionToasts: ITransactionToast[] = [];\n private customToasts: CustomToastType[] = [];\n private successfulToastLifetime?: number;\n private storeToastsSubscription: () => void = () => null;\n private readonly notificationsFeedManager: NotificationsFeedManager;\n private eventBusUnsubscribeFunctions: (() => void)[] = [];\n private eventBus: IEventBus<\n ITransactionToast[] | CustomToastType[] | null\n > | null = null;\n\n store = getStore();\n\n constructor() {\n this.destroy();\n this.lifetimeManager = new LifetimeManager();\n\n this.notificationsFeedManager = NotificationsFeedManager.getInstance();\n }\n\n public async init({\n successfulToastLifetime = DEFAULT_TOAST_LIEFTIME\n }: IToastManager = {}) {\n this.successfulToastLifetime = successfulToastLifetime;\n\n this.lifetimeManager.init({ successfulToastLifetime });\n\n await this.updateTransactionToastsList();\n await this.updateCustomToastList();\n\n await this.subscribeToEventBusNotifications();\n\n this.storeToastsSubscription = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n if (\n !isEqual(prevToasts.transactionToasts, toasts.transactionToasts) ||\n !isEqual(prevTransactions, transactions)\n ) {\n await this.updateTransactionToastsList();\n }\n\n if (!isEqual(prevToasts.customToasts, toasts.customToasts)) {\n await this.updateCustomToastList();\n }\n }\n );\n }\n\n public static getInstance(): ToastManager {\n if (!ToastManager.instance) {\n ToastManager.instance = new ToastManager();\n }\n return ToastManager.instance;\n }\n\n private handleCompletedTransaction(toastId: string): boolean {\n const { transactions } = this.store.getState();\n const transaction = transactions[toastId];\n\n if (!transaction) {\n return false;\n }\n\n const { status } = transaction;\n const isTimedOut = getIsTransactionTimedOut(status);\n const isFailed = getIsTransactionFailed(status);\n const isSuccessful = getIsTransactionSuccessful(status);\n const isCompleted = isFailed || isSuccessful || isTimedOut;\n\n if (isCompleted) {\n if (this.successfulToastLifetime) {\n this.lifetimeManager.start(toastId);\n }\n return isCompleted;\n }\n\n this.lifetimeManager.stop(toastId);\n return isCompleted;\n }\n\n public async createTransactionToast(\n toastId: string,\n totalDuration: number\n ): Promise<string> {\n const newToastId = addTransactionToast({\n toastId,\n totalDuration\n });\n\n this.handleCompletedTransaction(toastId);\n await this.updateTransactionToastsList();\n return newToastId;\n }\n\n public createCustomToast(toast: CustomToastType): string {\n const toastId = createCustomToast(toast);\n this.updateCustomToastList();\n return toastId;\n }\n\n private async updateTransactionToastsList() {\n const {\n toasts: toastList,\n transactions: transactionsSessions,\n account\n } = this.store.getState();\n\n const { pendingTransactionToasts, completedTransactionToasts } =\n await createToastsFromTransactions({\n toastList,\n transactionsSessions,\n account\n });\n\n this.transactionToasts = [\n ...pendingTransactionToasts,\n ...completedTransactionToasts\n ];\n\n for (const toast of toastList.transactionToasts) {\n this.handleCompletedTransaction(toast.toastId);\n }\n\n await this.publishTransactionToasts();\n }\n\n private async updateCustomToastList() {\n const { toasts: toastList } = this.store.getState();\n this.customToasts = [];\n\n for (const toast of toastList.customToasts) {\n const isSimpleToast = 'message' in toast;\n\n const newToast: CustomToastType = isSimpleToast\n ? { ...toast }\n : {\n ...toast,\n instantiateToastElement:\n customToastComponentDictionary[toast.toastId]\n };\n this.customToasts.push(newToast);\n\n if (toast.duration) {\n this.lifetimeManager.startWithCustomDuration(\n toast.toastId,\n toast.duration\n );\n }\n }\n this.eventBus?.publish(\n ToastEventsEnum.CUSTOM_TOAST_DATA_UPDATE,\n this.customToasts\n );\n }\n\n private async createToastListElement(): Promise<MvxToastList | null> {\n if (this.toastsElement) {\n return this.toastsElement;\n }\n\n if (!this.isCreatingElement) {\n this.isCreatingElement = true;\n\n this.toastsElement = await ComponentFactory.create<MvxToastList>({\n name: UITagsEnum.TOAST_LIST\n });\n\n this.isCreatingElement = false;\n }\n\n return this.toastsElement;\n }\n\n private handleTransactionToastClose(toastId: string) {\n const isCompleted = this.handleCompletedTransaction(toastId);\n\n if (isCompleted) {\n removeTransactionToast(toastId);\n }\n }\n\n private async subscribeToEventBusNotifications() {\n const toastsElement = await this.createToastListElement();\n\n if (!toastsElement) {\n return;\n }\n\n this.eventBus = await toastsElement.getEventBus();\n if (!this.eventBus) {\n throw new Error(ProviderErrorsEnum.eventBusError);\n }\n\n this.eventBus.subscribe(\n ToastEventsEnum.CLOSE,\n this.handleCloseToast.bind(this)\n );\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(\n ToastEventsEnum.CLOSE,\n this.handleCloseToast.bind(this)\n );\n });\n\n this.eventBus.subscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n\n this.eventBusUnsubscribeFunctions.push(() => {\n this.eventBus?.unsubscribe(\n ToastEventsEnum.OPEN_NOTIFICATIONS_FEED,\n this.handleOpenNotificationsFeed.bind(this)\n );\n });\n }\n\n public async showToasts() {\n this.eventBus?.publish(ToastEventsEnum.SHOW, null);\n\n await this.updateCustomToastList();\n await this.updateTransactionToastsList();\n }\n\n public hideToasts() {\n this.eventBus?.publish(ToastEventsEnum.HIDE, null);\n }\n\n private async handleOpenNotificationsFeed() {\n this.notificationsFeedManager.openNotificationsFeed();\n }\n\n private handleCloseToast(toastId: string) {\n const customToast = this.customToasts.find(\n (toast) => toast.toastId === toastId\n );\n\n if (customToast) {\n this.lifetimeManager.stop(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n removeCustomToast(toastId);\n return;\n }\n\n this.handleTransactionToastClose(toastId);\n }\n\n private async publishTransactionToasts() {\n if (\n this.notificationsFeedManager.isNotificationsFeedOpen() &&\n this.eventBus\n ) {\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n this.transactionToasts\n );\n\n this.hideToasts();\n return;\n }\n\n if (!this.eventBus) {\n const toastsElement = await this.createToastListElement();\n\n if (!toastsElement) {\n return;\n }\n\n this.eventBus = await toastsElement.getEventBus();\n }\n\n this.eventBus.publish(\n ToastEventsEnum.TRANSACTION_TOAST_DATA_UPDATE,\n this.transactionToasts\n );\n }\n\n public destroy() {\n this.storeToastsSubscription();\n this.lifetimeManager?.destroy();\n this.notificationsFeedManager?.destroy();\n removeAllCustomToasts();\n this.eventBusUnsubscribeFunctions.forEach((unsubscribe) => unsubscribe());\n this.eventBusUnsubscribeFunctions = [];\n }\n}\n", "import isEqual from 'lodash.isequal';\nimport { UITagsEnum } from 'constants/UITags.enum';\nimport { TransactionsHistoryController } from 'controllers/TransactionsHistoryController';\nimport { ITransactionListItem, MvxNotificationsFeed } from 'lib/sdkDappUi';\nimport { clearCompletedTransactions } from 'store/actions/transactions/transactionsActions';\nimport { getStore } from 'store/store';\nimport { NotificationsFeedEventsEnum } from './types';\nimport { ToastManager } from '../internal';\nimport { SidePanelBaseManager } from '../internal/SidePanelBaseManager/SidePanelBaseManager';\nimport { createToastsFromTransactions } from '../internal/ToastManager/helpers/createToastsFromTransactions';\nimport { ITransactionToast } from '../internal/ToastManager/types';\n\ninterface INotificationsFeedManagerData {\n pendingTransactions: ITransactionToast[];\n historicTransactions: ITransactionListItem[];\n}\n\nconst NOTIFICATIONS_FEED_STORE_SUBSCRIBE = 'NOTIFICATIONS_FEED_STORE_SUBSCRIBE';\n\nexport class NotificationsFeedManager extends SidePanelBaseManager<\n MvxNotificationsFeed,\n INotificationsFeedManagerData,\n NotificationsFeedEventsEnum | typeof NOTIFICATIONS_FEED_STORE_SUBSCRIBE\n> {\n private static instance: NotificationsFeedManager;\n private readonly store = getStore();\n\n protected initialData: INotificationsFeedManagerData = {\n pendingTransactions: [],\n historicTransactions: []\n };\n\n public static getInstance(): NotificationsFeedManager {\n if (!NotificationsFeedManager.instance) {\n NotificationsFeedManager.instance = new NotificationsFeedManager();\n }\n return NotificationsFeedManager.instance;\n }\n\n constructor() {\n super({\n uiDataUpdateEvent: NotificationsFeedEventsEnum.OPEN,\n uiTag: UITagsEnum.NOTIFICATIONS_FEED\n });\n this.data = { ...this.initialData };\n }\n\n public isNotificationsFeedOpen(): boolean {\n return this.isOpen;\n }\n\n /**\n * Open the notifications feed and toggle off the toast manager.\n */\n public async openNotificationsFeed(): Promise<void> {\n const toastManager = ToastManager.getInstance();\n toastManager.hideToasts();\n await this.openUI();\n await this.updateDataAndNotifications();\n\n const storeToastsUnsubscribe = this.store.subscribe(\n async (\n { toasts, transactions },\n { toasts: prevToasts, transactions: prevTransactions }\n ) => {\n if (\n !isEqual(prevToasts.transactionToasts, toasts.transactionToasts) ||\n !isEqual(prevTransactions, transactions)\n ) {\n await this.updateDataAndNotifications();\n }\n }\n );\n this.unsubscribeFunctions.set(NOTIFICATIONS_FEED_STORE_SUBSCRIBE, [\n storeToastsUnsubscribe\n ]);\n\n this.eventBus?.publish(NotificationsFeedEventsEnum.OPEN);\n await this.updateDataAndNotifications();\n }\n\n /**\n * Close the notifications feed and toggle on the toast manager.\n */\n protected async handleCloseUI() {\n const toastManager = ToastManager.getInstance();\n this.closeUI();\n await toastManager.showToasts();\n }\n\n protected async setupEventListeners() {\n if (!this.eventBus) {\n return;\n }\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLOSE,\n this.handleCloseUI.bind(this)\n );\n\n this.subscribeToEventBus(\n NotificationsFeedEventsEnum.CLEAR,\n this.handleClearNotificationsFeedHistory.bind(this)\n );\n }\n\n protected async updateDataAndNotifications() {\n const { transactions, account, toasts, network } = this.store.getState();\n\n const { pendingTransactionToasts } = await createToastsFromTransactions({\n toastList: toasts,\n transactionsSessions: transactions,\n account\n });\n\n this.data.pendingTransactions = pendingTransactionToasts;\n\n this.data.historicTransactions =\n await TransactionsHistoryController.getTransactionsHistory({\n transactionsSessions: transactions,\n address: account.address,\n explorerAddress: network.network.explorerAddress,\n egldLabel: network.network.egldLabel\n });\n\n await this.updateNotificationsFeed();\n }\n\n private handleClearNotificationsFeedHistory() {\n clearCompletedTransactions();\n this.resetData();\n this.updateNotificationsFeed();\n }\n\n private async updateNotificationsFeed() {\n if (!this.eventBus) {\n return;\n }\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.PENDING_TRANSACTIONS_UPDATE,\n this.data.pendingTransactions\n );\n\n this.eventBus.publish(\n NotificationsFeedEventsEnum.TRANSACTIONS_HISTORY_UPDATE,\n this.data.historicTransactions\n );\n }\n}\n", "import BigNumber from 'bignumber.js';\nimport { ToastIconsEnum } from 'managers/internal/ToastManager/helpers/getToastDataStateByStatus';\nimport { ToastManager } from 'managers/internal/ToastManager/ToastManager';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { ProviderTypeEnum } from 'providers/types/providerFactory.types';\nimport { getTokenExpiration } from 'services/nativeAuth/methods/getTokenExpiration';\nimport {\n addressSelector,\n isLoggedInSelector\n} from 'store/selectors/accountSelectors';\nimport { nativeAuthConfigSelector } from 'store/selectors/configSelectors';\nimport { tokenLoginSelector } from 'store/selectors/loginInfoSelectors';\nimport { getStore } from 'store/store';\nimport { getHumanReadableTokenExpirationTime } from './helpers/getHumanReadableTokenExpirationTime';\n\nexport class LogoutManager {\n private static instance: LogoutManager;\n private store = getStore();\n private warningLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private actualLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private plannedLogoutTimeoutRef: ReturnType<typeof setInterval> | null = null;\n private plannedLogoutKey: string | null = null;\n\n public static getInstance(): LogoutManager {\n if (!LogoutManager.instance) {\n LogoutManager.instance = new LogoutManager();\n }\n return LogoutManager.instance;\n }\n\n private constructor() {}\n\n public init = async () => {\n if (!this.shouldStart()) {\n return;\n }\n\n const state = this.store.getState();\n const tokenLogin = tokenLoginSelector(state);\n\n const { isExpired: isNativeAuthTokenExpired } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n if (isNativeAuthTokenExpired) {\n const provider = getAccountProvider();\n provider.logout();\n } else {\n this.addPlannedLogout();\n }\n };\n\n public stop = () => {\n clearTimeout(this.warningLogoutTimeoutRef ?? 0);\n clearTimeout(this.plannedLogoutTimeoutRef ?? 0);\n clearTimeout(this.actualLogoutTimeoutRef ?? 0);\n\n this.warningLogoutTimeoutRef = null;\n this.plannedLogoutTimeoutRef = null;\n this.actualLogoutTimeoutRef = null;\n this.plannedLogoutKey = null;\n };\n\n private readonly shouldStart = (): boolean => {\n const state = this.store.getState();\n const tokenLogin = tokenLoginSelector(state);\n const isLoggedIn = isLoggedInSelector(state);\n return Boolean(tokenLogin?.nativeAuthToken && isLoggedIn);\n };\n\n private addPlannedLogout = () => {\n const provider = getAccountProvider();\n const address = addressSelector(this.store.getState());\n const isWebviewLogin = provider.getType() === ProviderTypeEnum.webview;\n\n // prevent unexpected logout if webview login\n if (!address || isWebviewLogin) {\n return;\n }\n\n this.addLogoutWarning();\n\n const tokenLogin = tokenLoginSelector(this.store.getState());\n\n const { secondsUntilExpires, expiresAt } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n // Handle the actual logout functionality.\n const secondsUntilExpiresBN = new BigNumber(String(secondsUntilExpires));\n const plannedLogoutKey = `${address}_${expiresAt}`;\n const plannedLogoutSet = this.plannedLogoutKey === plannedLogoutKey;\n\n const isValidInterval =\n secondsUntilExpires && secondsUntilExpiresBN.isGreaterThan(0);\n\n if (!isValidInterval || plannedLogoutSet) {\n return;\n }\n\n this.plannedLogoutKey = plannedLogoutKey;\n\n clearTimeout(this.plannedLogoutTimeoutRef ?? 0);\n const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);\n\n this.actualLogoutTimeoutRef = setTimeout(() => {\n ToastManager.getInstance().createCustomToast({\n toastId: 'native-auth-logout',\n iconClassName: 'warning',\n title: 'Logging out',\n icon: ToastIconsEnum.times,\n message: 'Your session has expired!'\n });\n this.actualLogoutTimeoutRef = null;\n }, millisecondsUntilLogout.toNumber() - 3000);\n\n this.plannedLogoutTimeoutRef = setTimeout(() => {\n provider.logout();\n this.plannedLogoutTimeoutRef = null;\n this.plannedLogoutKey = null;\n }, millisecondsUntilLogout.toNumber());\n };\n\n private readonly addLogoutWarning = () => {\n if (this.warningLogoutTimeoutRef) {\n return;\n }\n\n const nativeAuthConfig = nativeAuthConfigSelector(this.store.getState());\n const tokenLogin = tokenLoginSelector(this.store.getState());\n\n const { secondsUntilExpires } = getTokenExpiration(\n tokenLogin?.nativeAuthToken\n );\n\n const secondsUntilExpiresBN = new BigNumber(String(secondsUntilExpires));\n const millisecondsUntilLogout = secondsUntilExpiresBN.times(1000);\n\n if (\n !secondsUntilExpires ||\n secondsUntilExpiresBN.isLessThanOrEqualTo(0) ||\n !nativeAuthConfig?.tokenExpirationToastWarningSeconds\n ) {\n return;\n }\n\n const logoutWarningOffsetSeconds = new BigNumber(\n nativeAuthConfig?.tokenExpirationToastWarningSeconds ?? 0\n );\n\n const logoutWarningOffsetMilliseconds =\n logoutWarningOffsetSeconds.times(1000);\n\n const millisecondsUntilLogoutWarning = secondsUntilExpiresBN\n .times(1000)\n .minus(logoutWarningOffsetMilliseconds);\n\n const readableMinutesUntilLogout = getHumanReadableTokenExpirationTime(\n millisecondsUntilLogout.toNumber()\n );\n\n const timeoutUntilLogoutWarning =\n millisecondsUntilLogoutWarning.isLessThanOrEqualTo(0)\n ? 0\n : millisecondsUntilLogoutWarning.toNumber();\n\n clearTimeout(this.warningLogoutTimeoutRef ?? 0);\n\n this.warningLogoutTimeoutRef = setTimeout(() => {\n ToastManager.getInstance().createCustomToast({\n toastId: 'native-auth-expired',\n iconClassName: 'warning',\n title: 'Session Expiration Warning',\n icon: ToastIconsEnum.hourglass,\n message: `Your session will expire in ${readableMinutesUntilLogout}!`\n });\n this.warningLogoutTimeoutRef = null;\n }, timeoutUntilLogoutWarning);\n };\n}\n", "import { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { setGasStationMetadata } from 'methods/initApp/gastStationMetadata/setGasStationMetadata';\nimport { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { loginAction } from 'store/actions';\nimport { setAccount } from 'store/actions/account';\nimport { AccountType } from 'types/account.types';\nimport { fetchAccount } from 'utils/account/fetchAccount';\nimport { trimUsernameDomain } from 'utils/account/trimUsernameDomain';\n\ninterface IAccountLoginProps {\n address: string;\n provider: IProvider;\n apiAddress: string;\n}\n\nexport async function accountLogin({\n address,\n provider,\n apiAddress\n}: IAccountLoginProps) {\n const account = await fetchAccount({\n address,\n baseURL: apiAddress\n });\n\n if (!account) {\n throw new Error('Account not found');\n }\n\n loginAction({\n address,\n providerType: provider.getType()\n });\n\n const newAccount: AccountType = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(newAccount);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n if (account.shard != null) {\n await setGasStationMetadata({\n shard: Number(account.shard),\n apiAddress\n });\n }\n}\n", "import { registerWebsocketListener } from 'methods/initApp/websocket/registerWebsocket';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { trackTransactions } from 'methods/trackTransactions/trackTransactions';\nimport { IProvider } from 'providers/types/providerFactory.types';\nimport { nativeAuth } from 'services/nativeAuth';\nimport { decodeNativeAuthToken } from 'services/nativeAuth/helpers/decodeNativeAuthToken';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { setTokenLogin } from 'store/actions/loginInfo/loginInfoActions';\nimport { nativeAuthConfigSelector } from 'store/selectors';\nimport { getState } from 'store/store';\nimport { accountLogin } from './helpers/accountLogin';\nimport { extractAddressFromToken } from './helpers/extractAddressFromToken';\n\nasync function loginWithoutNativeToken(provider: IProvider) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n await provider.login();\n\n const address = await provider.getAddress();\n\n if (!address) {\n throw new Error('Address not found');\n }\n\n await accountLogin({ address, provider, apiAddress });\n\n return {\n address\n };\n}\n\nasync function loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token\n}: {\n provider: IProvider;\n nativeAuthConfig: NativeAuthConfigType;\n token?: string;\n}) {\n const {\n network: { apiAddress }\n } = getNetworkConfig();\n\n const nativeAuthClient = nativeAuth(nativeAuthConfig);\n let loginToken = token;\n\n if (!loginToken) {\n loginToken = await nativeAuthClient.initialize({\n noCache: true\n });\n }\n\n const { address, signature, ...loginResult } = await provider.login({\n token: loginToken\n });\n\n if (!address) {\n console.warn('Login cancelled.');\n return null;\n }\n\n if (!signature) {\n console.error('Failed to sign login token');\n return null;\n }\n\n // nativeAuthToken received from hub login\n const decodedToken = decodeNativeAuthToken(loginResult?.accessToken);\n\n const nativeAuthToken = decodedToken\n ? loginResult.accessToken\n : nativeAuthClient.getToken({\n address,\n token: loginToken,\n signature\n });\n\n setTokenLogin({\n loginToken,\n signature,\n nativeAuthToken\n });\n\n const extractedAddress = await extractAddressFromToken({\n loginToken,\n extraInfoData: {\n multisig: loginResult?.multisig,\n impersonate: loginResult?.impersonate\n },\n address\n });\n\n await accountLogin({\n address: extractedAddress,\n provider,\n apiAddress\n });\n\n return {\n address: extractedAddress,\n signature\n };\n}\n\nexport async function login(provider: IProvider, options?: { token?: string }) {\n const nativeAuthConfig = nativeAuthConfigSelector(getState());\n\n if (nativeAuthConfig) {\n const data = await loginWithNativeToken({\n provider,\n nativeAuthConfig,\n token: options?.token\n });\n return data;\n }\n\n const { address } = await loginWithoutNativeToken(provider);\n\n await registerWebsocketListener(address);\n trackTransactions();\n\n return { address };\n}\n", "import {\n CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n CANCEL_TRANSACTION_TOAST_ID,\n ERROR_SIGNING_TOAST_ID\n} from 'constants/transactions.constants';\nimport { ToastIconsEnum } from 'managers/internal/ToastManager/helpers/getToastDataStateByStatus';\nimport { createCustomToast } from 'store/actions';\nimport { SigningErrorsEnum, SigningWarningsEnum } from 'types/enums.types';\n\nconst states = {\n error: {\n title: SigningErrorsEnum.errorSigning.toString(),\n iconClassName: 'danger',\n toastId: `${ERROR_SIGNING_TOAST_ID}-${Date.now()}`\n },\n warning: {\n title: SigningWarningsEnum.cancelled.toString(),\n iconClassName: 'warning',\n toastId: `${CANCEL_TRANSACTION_TOAST_ID}-${Date.now()}`\n }\n};\n\nconst errorsMap = {\n extensionResponse: 'Unable to sign transactions', // extension\n 'Transaction canceled': 'Transaction canceled', // web wallet\n 'cancelled by user': 'Transaction signing cancelled by user', // custom\n 'denied by the user': 'Transaction signing denied by the user' // ledger\n};\n\nconst getUserError = (error: string) => {\n for (const [key, value] of Object.entries(errorsMap)) {\n if (error.includes(key)) {\n return value;\n }\n }\n return SigningErrorsEnum.errorSigning;\n};\n\nexport function handleSignError(\n error: unknown,\n type: 'error' | 'warning' = 'error'\n) {\n const originalError = (error as Error)?.message;\n const errorMessage = getUserError(originalError);\n\n const isKnownError = errorMessage !== SigningErrorsEnum.errorSigning;\n\n const errorType = isKnownError ? 'warning' : type;\n\n const state = Object.keys(states).includes(errorType)\n ? states[errorType]\n : states.error;\n\n const { toastId, iconClassName, title } = state;\n\n createCustomToast({\n toastId,\n duration: CANCEL_TRANSACTION_TOAST_DEFAULT_DURATION,\n icon: ToastIconsEnum.times,\n iconClassName,\n message: errorMessage,\n title\n });\n\n return errorMessage;\n}\n", "import {\n Address,\n Transaction,\n TransactionOptions,\n TransactionVersion\n} from 'lib/sdkCore';\nimport { getAccount } from 'methods/account/getAccount';\nimport {\n IProvider,\n ProviderTypeEnum\n} from 'providers/types/providerFactory.types';\nimport { setAccountNonce } from 'store/actions';\nimport { refreshAccount } from 'utils';\nimport { computeNonces } from '../computeNonces/computeNonces';\n\nexport type SignTransactionsOptionsType = {\n skipGuardian?: boolean;\n};\n\ntype SignTransactionsType = {\n provider: IProvider;\n transactions: Transaction[];\n options?: SignTransactionsOptionsType;\n};\n\nexport async function signTransactionsWithProvider({\n provider,\n transactions,\n options = {}\n}: SignTransactionsType): Promise<Transaction[]> {\n await refreshAccount();\n const { isGuarded, activeGuardianAddress, nonce } = getAccount();\n const isLedger = provider.getType() === ProviderTypeEnum.ledger;\n\n const transactionsWithComputedNonce = computeNonces({\n latestNonce: nonce,\n transactions\n });\n\n const transactionsToSign =\n activeGuardianAddress && isGuarded && !options.skipGuardian\n ? transactionsWithComputedNonce?.map((transaction) => {\n transaction.version = TransactionVersion.withTxOptions().valueOf();\n transaction.options = TransactionOptions.withOptions({\n guarded: true,\n ...(isLedger ? { hashSign: true } : {})\n }).valueOf();\n\n transaction.guardian = Address.newFromBech32(activeGuardianAddress);\n\n return transaction;\n })\n : transactionsWithComputedNonce;\n\n const signedTransactions: Transaction[] =\n (await provider.signTransactions(transactionsToSign)) ?? [];\n\n setAccountNonce(nonce + signedTransactions.length);\n\n return signedTransactions;\n}\n", "import { Message, Transaction } from 'lib/sdkCore';\nimport { LogoutManager } from 'managers/LogoutManager/LogoutManager';\nimport { setAccountProvider } from 'providers/helpers/accountProvider';\nimport { setProviderType } from 'store/actions/loginInfo/loginInfoActions';\nimport { IProvider } from '../types/providerFactory.types';\nimport { login } from './helpers/login/login';\nimport { logout } from './helpers/logout/logout';\nimport { handleSignError } from './helpers/signErrors/handleSignError';\nimport { signMessageWithProvider } from './helpers/signMessage/signMessageWithProvider';\nimport {\n verifyMessage,\n VerifyMessageReturnType\n} from './helpers/signMessage/verifyMessage';\nimport {\n signTransactionsWithProvider,\n SignTransactionsOptionsType\n} from './helpers/signTransactions/signTransactionsWithProvider';\n\nexport class DappProvider {\n private provider: IProvider;\n private _isLoggingOut = false;\n\n constructor(provider: IProvider) {\n this.provider = provider;\n }\n\n init(): Promise<boolean> {\n return this.provider.init();\n }\n\n async login(options?: { token?: string }) {\n const data = await login(this.provider, options);\n setProviderType(this.provider.getType());\n setAccountProvider(this);\n LogoutManager.getInstance().init();\n return data;\n }\n\n isInitialized(): boolean {\n return this.provider.isInitialized();\n }\n\n async logout(\n options = {\n shouldBroadcastLogoutAcrossTabs: true\n }\n ): Promise<boolean> {\n if (this._isLoggingOut) {\n console.warn('Logout already in progress');\n return false;\n }\n\n this._isLoggingOut = true;\n\n const isLoggedOut = await logout({ provider: this.provider, options });\n\n this._isLoggingOut = false;\n\n return isLoggedOut;\n }\n\n getType() {\n return this.provider.getType();\n }\n\n /**\n * @returns The original provider instance.\n */\n getProvider() {\n return this.provider;\n }\n\n async signTransactions(\n transactions: Transaction[],\n options?: SignTransactionsOptionsType\n ): Promise<Transaction[]> {\n try {\n const signedTransactions = await signTransactionsWithProvider({\n provider: this.provider,\n transactions,\n options\n });\n return signedTransactions;\n } catch (error) {\n const errorMessage = handleSignError(error);\n throw new Error(errorMessage);\n }\n }\n\n async signMessage(\n message: Message,\n options?: {\n hasConsentPopup?: boolean;\n }\n ): Promise<Message | null> {\n try {\n const signedMessage = await signMessageWithProvider({\n provider: this.provider,\n message,\n options\n });\n return signedMessage;\n } catch (error) {\n const errorMessage = handleSignError(error, 'warning');\n throw new Error(errorMessage);\n }\n }\n\n /**\n * @param signedMessage - The signed message to verify in form of a JSON string with `address`, `message` and `signature` properties.\n * @returns The verification result with `isVerified`, `message` and `address` properties.\n */\n async verifyMessage(signedMessage: string): Promise<VerifyMessageReturnType> {\n return await verifyMessage(signedMessage);\n }\n\n cancelLogin(): void {\n this.provider.cancelLogin?.();\n }\n}\n", "import { IProvider } from 'providers/types/providerFactory.types';\nimport { DappProvider } from '../DappProvider';\nimport { emptyProvider } from './emptyProvider';\n\nexport type ProvidersType = IProvider;\n\nlet accountProvider: DappProvider | null = null;\n\nexport function setAccountProvider<TProvider extends DappProvider | null>(\n provider: TProvider\n) {\n accountProvider = provider;\n}\n\nexport function getAccountProvider(): DappProvider {\n return accountProvider || new DappProvider(emptyProvider);\n}\n", "import { getAddress } from 'methods/account/getAddress';\nimport { getLatestNonce } from 'methods/account/getLatestNonce';\nimport { getNetworkConfig } from 'methods/network/getNetworkConfig';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { setAccount } from 'store/actions';\nimport { fetchAccount } from './fetchAccount';\nimport { trimUsernameDomain } from './trimUsernameDomain';\n\nconst setNewAccount = async () => {\n try {\n const address = getAddress();\n const { network } = getNetworkConfig();\n\n try {\n const account = await fetchAccount({\n address,\n baseURL: network.apiAddress\n });\n\n if (account != null) {\n const accountData = {\n ...account,\n username: trimUsernameDomain(account.username),\n nonce: getLatestNonce(account)\n };\n\n setAccount(accountData);\n\n return accountData;\n }\n } catch (e) {\n console.error('Failed getting account ', e);\n }\n } catch (e) {\n console.error('Failed getting address ', e);\n }\n\n return null;\n};\n\nexport async function refreshAccount() {\n const provider = getAccountProvider();\n\n if (provider == null) {\n throw 'Provider not initialized';\n }\n\n try {\n if (!provider.init) {\n throw 'Current provider does not have init() function';\n }\n\n const initialized = await provider.init();\n\n if (!initialized) {\n return;\n }\n\n return setNewAccount();\n } catch (e) {\n console.error('Failed initializing provider ', e);\n }\n\n return undefined;\n}\n", "import {\n CustomToastType,\n IComponentToast\n} from 'store/slices/toast/toastSlice.types';\nimport { getStore } from 'store/store';\nimport { getUnixTimestamp, getUnixTimestampWithAddedMilliseconds } from 'utils';\n\nexport const customToastComponentDictionary: Record<\n string,\n IComponentToast['instantiateToastElement']\n> = {};\nexport const customToastCloseHandlersDictionary: Record<string, () => void> =\n {};\n\nexport const addCustomToast = (\n customToast: CustomToastType,\n currentToastId?: string\n) => {\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.customToasts.length > 0\n ? Math.max(\n ...state.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n const toastId = currentToastId ?? `custom-toast-${lastToastIndex + 1}`;\n\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const newToast: CustomToastType = {\n ...customToast,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = newToast;\n return;\n }\n\n state.customToasts.push({\n ...newToast,\n toastId\n });\n },\n false,\n 'addCustomToast'\n );\n};\n\nexport const removeCustomToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = state.customToasts.filter(\n (toast) => toast.toastId !== toastId\n );\n },\n false,\n 'removeCustomToast'\n );\n};\n\nexport const removeAllCustomToasts = () => {\n getStore().setState(\n ({ toasts: state }) => {\n state.customToasts = [];\n },\n false,\n 'removeAllCustomToasts'\n );\n};\n\nexport const removeAllTransactionToasts = () => {\n getStore().setState(({ toasts: state }) => {\n state.transactionToasts = [];\n });\n};\n\nexport const addTransactionToast = ({\n toastId,\n totalDuration\n}: {\n toastId: string;\n totalDuration: number;\n}): string => {\n let newToastId: string = '';\n getStore().setState(\n ({ toasts: state }) => {\n const lastToastIndex =\n state.transactionToasts.length > 0\n ? Math.max(\n ...state.transactionToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n newToastId = toastId ?? `transaction-toast-${lastToastIndex + 1}`;\n\n state.transactionToasts.push({\n startTime: getUnixTimestamp(),\n endTime: getUnixTimestampWithAddedMilliseconds(totalDuration),\n toastId: newToastId\n });\n },\n false,\n 'addTransactionToast'\n );\n\n return newToastId;\n};\n\nexport const removeTransactionToast = (toastId: string) => {\n getStore().setState(\n ({ toasts: state }) => {\n state.transactionToasts = state.transactionToasts.filter((toast) => {\n return toast.toastId !== toastId;\n });\n },\n false,\n 'removeTransactionToast'\n );\n\n delete customToastCloseHandlersDictionary[toastId];\n delete customToastComponentDictionary[toastId];\n};\n\nexport const createCustomToast = (props: CustomToastType) => {\n const { toasts } = getStore().getState();\n\n const lastToastIndex =\n toasts.customToasts.length > 0\n ? Math.max(\n ...toasts.customToasts.map((toast) =>\n parseInt(toast.toastId.split('-').pop() ?? '0')\n )\n )\n : 0;\n\n const toastId = props.toastId || `custom-toast-${lastToastIndex + 1}`;\n\n if (props.onClose) {\n customToastCloseHandlersDictionary[toastId] = props.onClose;\n }\n\n if (props.instantiateToastElement) {\n customToastComponentDictionary[toastId] = props.instantiateToastElement;\n\n getStore().setState(\n ({ toasts: state }) => {\n const existingToastIndex = state.customToasts.findIndex(\n (toast) => toast.toastId === toastId\n );\n\n const toast: CustomToastType = {\n ...props,\n instantiateToastElement: null,\n toastId\n };\n\n const isToastFound = existingToastIndex !== -1;\n\n if (isToastFound) {\n state.customToasts[existingToastIndex] = toast;\n } else {\n state.customToasts.push(toast);\n }\n },\n false,\n 'createCustomToast'\n );\n\n return toastId;\n }\n\n addCustomToast(props, toastId);\n return toastId;\n};\n", "import {\n customToastCloseHandlersDictionary,\n removeCustomToast,\n removeTransactionToast\n} from 'store/actions/toasts/toastsActions';\n\ninterface IToastProgressManagerParams {\n successfulToastLifetime?: number;\n}\n\nconst DEFAULT_SUCCESSFUL_TOAST_LIFETIME = 10_000;\n\nexport class LifetimeManager {\n private timeoutIntervals: Map<string, ReturnType<typeof setTimeout>> =\n new Map();\n private successfulToastLifetime: number = DEFAULT_SUCCESSFUL_TOAST_LIFETIME;\n\n constructor() {}\n\n public init({ successfulToastLifetime }: IToastProgressManagerParams) {\n this.successfulToastLifetime =\n successfulToastLifetime || DEFAULT_SUCCESSFUL_TOAST_LIFETIME;\n }\n\n public start = (toastId: string) => {\n this.stop(toastId);\n\n if (this.successfulToastLifetime <= 0) {\n return;\n }\n\n const timeout = setTimeout(() => {\n removeTransactionToast(toastId);\n }, this.successfulToastLifetime);\n\n this.timeoutIntervals.set(toastId, timeout);\n };\n\n public startWithCustomDuration = (toastId: string, duration: number) => {\n this.stop(toastId);\n\n if (duration <= 0) {\n return;\n }\n\n const timeout = setTimeout(() => {\n removeCustomToast(toastId);\n const handleClose = customToastCloseHandlersDictionary[toastId];\n handleClose?.();\n }, duration);\n\n this.timeoutIntervals.set(toastId, timeout);\n };\n\n public stop = (toastId: string) => {\n const timeout = this.timeoutIntervals.get(toastId);\n if (timeout) {\n clearTimeout(timeout);\n this.timeoutIntervals.delete(toastId);\n }\n };\n\n public destroy() {\n this.timeoutIntervals.forEach((interval) => clearTimeout(interval));\n this.timeoutIntervals.clear();\n }\n}\n"],
|
|
5
|
-
"mappings": "yiDAAA,OAAOA,MAAa,iBCApB,OAAOC,OAAa,iBAiBpB,IAAMC,GAAqC,qCAE9BC,EAAN,MAAMC,UAAiCC,EAI5C,CAgBA,aAAc,CACZ,MAAM,CACJ,4CACA,8BACF,CAAC,EAlBH,KAAiB,MAAQC,EAAS,EAElC,KAAU,YAA6C,CACrD,oBAAqB,CAAC,EACtB,qBAAsB,CAAC,CACzB,EAcE,KAAK,KAAO,CAAE,GAAG,KAAK,WAAY,CACpC,CAbA,OAAc,aAAwC,CACpD,OAAKF,EAAyB,WAC5BA,EAAyB,SAAW,IAAIA,GAEnCA,EAAyB,QAClC,CAUO,yBAAmC,CACxC,OAAO,KAAK,MACd,CAKA,MAAa,uBAAuC,CAC7BG,EAAa,YAAY,EACjC,WAAW,EACxB,MAAM,KAAK,OAAO,EAClB,MAAM,KAAK,2BAA2B,EAEtC,IAAMC,EAAyB,KAAK,MAAM,UACxC,MACE,CAAE,OAAAC,EAAQ,aAAAC,CAAa,EACvB,CAAE,OAAQC,EAAY,aAAcC,CAAiB,IAClD,EAED,CAACC,GAAQF,EAAW,kBAAmBF,EAAO,iBAAiB,GAC/D,CAACI,GAAQD,EAAkBF,CAAY,IAEvC,MAAM,KAAK,2BAA2B,CAE1C,CACF,EACA,KAAK,qBAAqB,IAAIR,GAAoC,CAChEM,CACF,CAAC,EAED,KAAK,UAAU,iCAAwC,EACvD,MAAM,KAAK,2BAA2B,CACxC,CAKA,MAAgB,eAAgB,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EAEiB,CACf,KAAK,gBAAgB,KAAKA,CAAO,EACjC,IAAM0B,EAAcC,EAAmC3B,CAAO,EAC9D0B,IAAc,EACdE,EAAkB5B,CAAO,EACzB,MACF,CAEA,KAAK,4BAA4BA,CAAO,CAC1C,CAEA,MAAc,0BAA2B,CACvC,GACE,KAAK,yBAAyB,wBAAwB,GACtD,KAAK,SACL,CACA,KAAK,SAAS,wCAEZ,KAAK,iBACP,EAEA,KAAK,WAAW,EAChB,MACF,CAEA,GAAI,CAAC,KAAK,SAAU,CAClB,IAAMyB,EAAgB,MAAM,KAAK,uBAAuB,EAExD,GAAI,CAACA,EACH,OAGF,KAAK,SAAW,MAAMA,EAAc,YAAY,CAClD,CAEA,KAAK,SAAS,wCAEZ,KAAK,iBACP,CACF,CAEO,SAAU,CACf,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,QAAQ,EAC9B,KAAK,0BAA0B,QAAQ,EACvCI,GAAsB,EACtB,KAAK,6BAA6B,QAASC,GAAgBA,EAAY,CAAC,EACxE,KAAK,6BAA+B,CAAC,CACvC,CACF",
|
|
6
|
-
"names": ["isEqual", "isEqual", "NOTIFICATIONS_FEED_STORE_SUBSCRIBE", "NotificationsFeedManager", "_NotificationsFeedManager", "SidePanelBaseManager", "getStore", "ToastManager", "storeToastsUnsubscribe", "toasts", "transactions", "prevToasts", "prevTransactions", "isEqual", "toastManager", "account", "network", "pendingTransactionToasts", "createToastsFromTransactions", "TransactionsHistoryController", "clearCompletedTransactions", "BigNumber", "LogoutManager", "_LogoutManager", "getStore", "state", "tokenLogin", "tokenLoginSelector", "isNativeAuthTokenExpired", "getTokenExpiration", "getAccountProvider", "isLoggedIn", "isLoggedInSelector", "provider", "address", "addressSelector", "isWebviewLogin", "ProviderTypeEnum", "secondsUntilExpires", "expiresAt", "secondsUntilExpiresBN", "BigNumber", "plannedLogoutKey", "plannedLogoutSet", "millisecondsUntilLogout", "ToastManager", "nativeAuthConfig", "nativeAuthConfigSelector", "logoutWarningOffsetMilliseconds", "millisecondsUntilLogoutWarning", "readableMinutesUntilLogout", "getHumanReadableTokenExpirationTime", "timeoutUntilLogoutWarning", "accountLogin", "address", "provider", "apiAddress", "account", "fetchAccount", "loginAction", "newAccount", "trimUsernameDomain", "getLatestNonce", "setAccount", "registerWebsocketListener", "trackTransactions", "setGasStationMetadata", "loginWithoutNativeToken", "provider", "apiAddress", "getNetworkConfig", "address", "accountLogin", "loginWithNativeToken", "nativeAuthConfig", "token", "nativeAuthClient", "nativeAuth", "loginToken", "signature", "loginResult", "nativeAuthToken", "decodeNativeAuthToken", "setTokenLogin", "extractedAddress", "extractAddressFromToken", "login", "options", "nativeAuthConfigSelector", "getState", "registerWebsocketListener", "trackTransactions", "states", "ERROR_SIGNING_TOAST_ID", "CANCEL_TRANSACTION_TOAST_ID", "errorsMap", "getUserError", "error", "key", "value", "handleSignError", "type", "originalError", "errorMessage", "errorType", "state", "toastId", "iconClassName", "title", "createCustomToast", "signTransactionsWithProvider", "provider", "transactions", "options", "refreshAccount", "isGuarded", "activeGuardianAddress", "nonce", "getAccount", "isLedger", "ProviderTypeEnum", "transactionsWithComputedNonce", "computeNonces", "transactionsToSign", "transaction", "TransactionVersion", "TransactionOptions", "Address", "signedTransactions", "setAccountNonce", "DappProvider", "provider", "options", "data", "login", "setProviderType", "setAccountProvider", "LogoutManager", "isLoggedOut", "logout", "transactions", "signTransactionsWithProvider", "error", "errorMessage", "handleSignError", "message", "signMessageWithProvider", "signedMessage", "verifyMessage", "accountProvider", "setAccountProvider", "provider", "getAccountProvider", "DappProvider", "emptyProvider", "setNewAccount", "address", "getAddress", "network", "getNetworkConfig", "account", "fetchAccount", "accountData", "trimUsernameDomain", "getLatestNonce", "setAccount", "e", "refreshAccount", "provider", "getAccountProvider", "customToastComponentDictionary", "customToastCloseHandlersDictionary", "addCustomToast", "customToast", "currentToastId", "getStore", "state", "lastToastIndex", "toast", "toastId", "existingToastIndex", "newToast", "removeCustomToast", "removeAllCustomToasts", "removeAllTransactionToasts", "addTransactionToast", "totalDuration", "newToastId", "getUnixTimestamp", "getUnixTimestampWithAddedMilliseconds", "removeTransactionToast", "createCustomToast", "props", "toasts", "DEFAULT_SUCCESSFUL_TOAST_LIFETIME", "LifetimeManager", "toastId", "timeout", "removeTransactionToast", "duration", "removeCustomToast", "handleClose", "customToastCloseHandlersDictionary", "successfulToastLifetime", "interval", "ToastManager", "_ToastManager", "getStore", "LifetimeManager", "NotificationsFeedManager", "successfulToastLifetime", "toasts", "transactions", "prevToasts", "prevTransactions", "isEqual", "toastId", "transaction", "status", "isTimedOut", "getIsTransactionTimedOut", "isFailed", "getIsTransactionFailed", "isSuccessful", "getIsTransactionSuccessful", "isCompleted", "totalDuration", "newToastId", "addTransactionToast", "toast", "createCustomToast", "toastList", "transactionsSessions", "account", "pendingTransactionToasts", "completedTransactionToasts", "createToastsFromTransactions", "newToast", "customToastComponentDictionary", "ComponentFactory", "removeTransactionToast", "toastsElement", "handleClose", "customToastCloseHandlersDictionary", "removeCustomToast", "removeAllCustomToasts", "unsubscribe"]
|
|
7
|
-
}
|