@multiversx/sdk-dapp 5.6.11 → 5.6.13
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-22F6NHUW.mjs +2 -0
- package/out/__chunks__/chunk-365NUVE7.mjs +2 -0
- package/out/__chunks__/{chunk-JO3KLBXS.mjs → chunk-3VPAVTVL.mjs} +2 -2
- package/out/__chunks__/chunk-4FBGOTSX.mjs +2 -0
- package/out/__chunks__/{chunk-QGUQTBVR.mjs → chunk-4IM7MMSB.mjs} +2 -2
- package/out/__chunks__/{chunk-EETA2QXV.mjs → chunk-5NRAQWO4.mjs} +2 -2
- package/out/__chunks__/{chunk-EH3QXINF.mjs → chunk-6ECOAQX4.mjs} +2 -2
- package/out/__chunks__/{chunk-OSGTEMH4.mjs → chunk-6MBRTWME.mjs} +2 -2
- package/out/__chunks__/{chunk-HKZTCRSV.mjs → chunk-6UTLNODT.mjs} +2 -2
- package/out/__chunks__/{chunk-UGY4JSP3.mjs → chunk-AIBBSVXP.mjs} +2 -2
- package/out/__chunks__/{chunk-AAIKQGPN.mjs → chunk-AQIZZ6YU.mjs} +2 -2
- package/out/__chunks__/{chunk-TRICXIPQ.mjs → chunk-AU2YBHNW.mjs} +2 -2
- package/out/__chunks__/{chunk-P6OHY6KU.mjs → chunk-B4WJMVF6.mjs} +2 -2
- package/out/__chunks__/{chunk-RSNSPKZ3.mjs → chunk-BI2PJ5FS.mjs} +2 -2
- package/out/__chunks__/{chunk-DY53O4ED.mjs → chunk-C23VOAOY.mjs} +2 -2
- package/out/__chunks__/{chunk-Q6SV22DH.mjs → chunk-CDU3ZELH.mjs} +2 -2
- package/out/__chunks__/{chunk-AHORDOF4.mjs → chunk-CPGY3DQJ.mjs} +2 -2
- package/out/__chunks__/{chunk-CDHVNNSM.mjs → chunk-CVW52D7K.mjs} +2 -2
- package/out/__chunks__/{chunk-OWYOEUPL.mjs → chunk-CYA7ED2N.mjs} +2 -2
- package/out/__chunks__/{chunk-UWCHOJH4.mjs → chunk-DDRH6O3X.mjs} +2 -2
- package/out/__chunks__/chunk-DDS3DY4B.mjs +2 -0
- package/out/__chunks__/{chunk-ICJ5ZWS4.mjs → chunk-DKBOH236.mjs} +2 -2
- package/out/__chunks__/{chunk-YVOZYFMU.mjs → chunk-EIUQFHRY.mjs} +2 -2
- package/out/__chunks__/{chunk-XZ2BAC7C.mjs → chunk-EJ4TUIIU.mjs} +2 -2
- package/out/__chunks__/{chunk-P4H53TTI.mjs → chunk-F3PJPNGU.mjs} +2 -2
- package/out/__chunks__/{chunk-QMSYQJAU.mjs → chunk-FLFZN2T6.mjs} +2 -2
- package/out/__chunks__/{chunk-3C4QWHTF.mjs → chunk-G2WU3X6R.mjs} +2 -2
- package/out/__chunks__/chunk-GJSAN3GO.mjs +2 -0
- package/out/__chunks__/{chunk-AJBGY6A5.mjs → chunk-GOUIWTTC.mjs} +2 -2
- package/out/__chunks__/{chunk-W4F3YI3F.mjs → chunk-GP6W6RR7.mjs} +2 -2
- package/out/__chunks__/{chunk-I5NDCPU2.mjs → chunk-GPKU7JO2.mjs} +2 -2
- package/out/__chunks__/{chunk-L7AC35OO.mjs → chunk-HPY6UNFO.mjs} +2 -2
- package/out/__chunks__/{chunk-COA54JTE.mjs → chunk-HY5I67W7.mjs} +2 -2
- package/out/__chunks__/{chunk-6BA2NDJT.mjs → chunk-IPGIVRGN.mjs} +2 -2
- package/out/__chunks__/chunk-JAXSTKEJ.mjs +2 -0
- package/out/__chunks__/{chunk-H3TSHWUD.mjs → chunk-JL6BHC7T.mjs} +2 -2
- package/out/__chunks__/{chunk-OKO3GIXC.mjs → chunk-KAY6QD6V.mjs} +2 -2
- package/out/__chunks__/{chunk-2NE75KNA.mjs → chunk-L6SBIHCZ.mjs} +2 -2
- package/out/__chunks__/{chunk-T6I7XQHS.mjs → chunk-L7HC5J53.mjs} +2 -2
- package/out/__chunks__/{chunk-R7Y4IM2T.mjs → chunk-LJ5RLWEK.mjs} +2 -2
- package/out/__chunks__/chunk-LLVSK2AG.mjs +2 -0
- package/out/__chunks__/{chunk-PKNPUHFQ.mjs → chunk-LT4RXTTQ.mjs} +2 -2
- package/out/__chunks__/{chunk-H3MXIVR4.mjs → chunk-LXSGLYGV.mjs} +2 -2
- package/out/__chunks__/{chunk-DDB4KRVV.mjs → chunk-LYUGR2FR.mjs} +2 -2
- package/out/__chunks__/{chunk-QHANP3XT.mjs → chunk-MFGDF3HI.mjs} +2 -2
- package/out/__chunks__/{chunk-LNRVNBRB.mjs → chunk-N6G3CMSC.mjs} +2 -2
- package/out/__chunks__/{chunk-LUVMM57Y.mjs → chunk-NK2JTYOC.mjs} +2 -2
- package/out/__chunks__/{chunk-CNE5LY2X.mjs → chunk-OGL4HN2P.mjs} +2 -2
- package/out/__chunks__/{chunk-CMN37YZP.mjs → chunk-QDUNEKJW.mjs} +2 -2
- package/out/__chunks__/{chunk-JJ6B2ZYX.mjs → chunk-QNXBITGY.mjs} +2 -2
- package/out/__chunks__/{chunk-X7XFHGOE.mjs → chunk-QRPH4JCL.mjs} +2 -2
- package/out/__chunks__/{chunk-RGDZMPES.mjs → chunk-QWBFB3BL.mjs} +2 -2
- package/out/__chunks__/{chunk-IWQH426N.mjs → chunk-QWVZ4NTR.mjs} +2 -2
- package/out/__chunks__/{chunk-VLJXRHVE.mjs → chunk-RC4ZBXFJ.mjs} +2 -2
- package/out/__chunks__/chunk-RFGBMNFA.mjs +2 -0
- package/out/__chunks__/{chunk-CYKK4HPZ.mjs → chunk-RNK62S6X.mjs} +2 -2
- package/out/__chunks__/{chunk-JBPJL3B7.mjs → chunk-RVW6Z4XY.mjs} +2 -2
- package/out/__chunks__/{chunk-3Z7CLSDP.mjs → chunk-S72I2KYP.mjs} +2 -2
- package/out/__chunks__/chunk-SML7WOGP.mjs +2 -0
- package/out/__chunks__/chunk-SVG75M4S.mjs +2 -0
- package/out/__chunks__/{chunk-TU6TE5PG.mjs → chunk-SWIPPQAS.mjs} +2 -2
- package/out/__chunks__/{chunk-3MWPYDLA.mjs → chunk-TIX7PAYC.mjs} +2 -2
- package/out/__chunks__/{chunk-OAFYVJLF.mjs → chunk-TWDQUDRP.mjs} +2 -2
- package/out/__chunks__/{chunk-6VJXXSIS.mjs → chunk-UDWPAR25.mjs} +2 -2
- package/out/__chunks__/chunk-UJA73JSW.mjs +2 -0
- package/out/__chunks__/{chunk-IZVWRQDU.mjs → chunk-UUFVP7SB.mjs} +2 -2
- package/out/__chunks__/chunk-UWBYA2GM.mjs +2 -0
- package/out/__chunks__/{chunk-J7DUP7GC.mjs → chunk-UY2X77BA.mjs} +2 -2
- package/out/__chunks__/{chunk-L5RYEWHO.mjs → chunk-V6HSYMMG.mjs} +2 -2
- package/out/__chunks__/chunk-VA7KLP35.mjs +2 -0
- package/out/__chunks__/{chunk-JMJ7OMSW.mjs → chunk-VCU3YP4J.mjs} +2 -2
- package/out/__chunks__/{chunk-S4GXN3R7.mjs → chunk-VLRP4JQW.mjs} +2 -2
- package/out/__chunks__/{chunk-KTSYT4CA.mjs → chunk-VOCZMUMV.mjs} +2 -2
- package/out/__chunks__/{chunk-DY3P72D3.mjs → chunk-VSOHM56Y.mjs} +2 -2
- package/out/__chunks__/{chunk-6BNZ4EJC.mjs → chunk-WDL6SFHR.mjs} +2 -2
- package/out/__chunks__/{chunk-YEBGEZ5L.mjs → chunk-XEDB2GXW.mjs} +2 -2
- package/out/__chunks__/chunk-XELB2AVG.mjs +2 -0
- package/out/__chunks__/{chunk-PENSR33H.mjs → chunk-YAVOCSOD.mjs} +2 -2
- package/out/__chunks__/{chunk-FRIOQMD3.mjs → chunk-YDH26OGG.mjs} +2 -2
- package/out/__chunks__/chunk-YDR33UBM.mjs +2 -0
- package/out/__chunks__/{chunk-R3IH76PW.mjs.map → chunk-YDR33UBM.mjs.map} +1 -1
- package/out/__chunks__/{chunk-MNN7JOCV.mjs → chunk-YG6SFLZY.mjs} +2 -2
- package/out/__chunks__/{chunk-YJQR63IW.mjs → chunk-YHON33YS.mjs} +2 -2
- package/out/__chunks__/{chunk-RQOU5LG4.mjs → chunk-YKYYWL4B.mjs} +2 -2
- package/out/__chunks__/{chunk-FRREO5DY.mjs → chunk-YTKDRPWM.mjs} +2 -2
- package/out/__chunks__/{chunk-RMMIR3MN.mjs → chunk-YXKQJKZV.mjs} +2 -2
- package/out/__chunks__/{chunk-O65UD2QD.mjs → chunk-Z72NFBTZ.mjs} +2 -2
- package/out/__chunks__/{chunk-CG6BZB2U.mjs → chunk-ZLGDFBX7.mjs} +2 -2
- package/out/__chunks__/{chunk-QACFOFUG.mjs → chunk-ZMZXHLYM.mjs} +2 -2
- package/out/apiCalls/account/getAccountFromApi.cjs +1 -1
- package/out/apiCalls/account/getAccountFromApi.d.ts +9 -0
- package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
- package/out/apiCalls/account/getScamAddressData.cjs +1 -1
- package/out/apiCalls/account/getScamAddressData.d.ts +8 -0
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.cjs +1 -1
- package/out/apiCalls/configuration/getCleanApiAddress.d.ts +1 -0
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.cjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.d.ts +2 -0
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/configuration/getNetworkConfigFromApi.d.ts +2 -0
- package/out/apiCalls/configuration/getServerConfiguration.d.ts +2 -0
- package/out/apiCalls/economics/getEconomics.cjs +1 -1
- package/out/apiCalls/economics/getEconomics.d.ts +13 -0
- package/out/apiCalls/economics/getEconomics.mjs +1 -1
- package/out/apiCalls/endpoints.d.ts +26 -0
- package/out/apiCalls/tokens/getPersistedToken.cjs +1 -1
- package/out/apiCalls/tokens/getPersistedToken.d.ts +1 -0
- package/out/apiCalls/tokens/getPersistedTokenDetails.cjs +1 -1
- package/out/apiCalls/tokens/getPersistedTokenDetails.d.ts +35 -0
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.cjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.d.ts +4 -0
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/tokenDataStorage.d.ts +5 -0
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs +1 -1
- package/out/apiCalls/transactions/getServerTransactionsByHashes.d.ts +4 -0
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.cjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.d.ts +2 -0
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactions.cjs +1 -1
- package/out/apiCalls/transactions/getTransactions.d.ts +21 -0
- package/out/apiCalls/transactions/getTransactionsByHashes.d.ts +2 -0
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/utils/axiosFetcher.cjs +1 -1
- package/out/apiCalls/utils/axiosFetcher.d.ts +1 -0
- package/out/apiCalls/utils/axiosInstance.d.ts +2 -0
- package/out/apiCalls/websocket/getWebsocketUrl.d.ts +1 -0
- package/out/constants/UITags.enum.d.ts +9 -0
- package/out/constants/browser.constants.d.ts +2 -0
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/ledger.constants.d.ts +92 -0
- package/out/constants/mvx.constants.d.ts +15 -0
- package/out/constants/network.constants.cjs +1 -1
- package/out/constants/network.constants.d.ts +11 -0
- package/out/constants/placeholders.constants.d.ts +7 -0
- package/out/constants/providerFactory.constants.cjs +1 -1
- package/out/constants/providerFactory.constants.d.ts +3 -0
- package/out/constants/storage.constants.d.ts +7 -0
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.d.ts +13 -0
- package/out/constants/walletConnect.constants.d.ts +2 -0
- package/out/constants/websocket.constants.d.ts +10 -0
- package/out/constants/window.constants.cjs +1 -1
- package/out/constants/window.constants.cjs.map +1 -1
- package/out/constants/window.constants.d.ts +2 -0
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.cjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.d.ts +6 -0
- package/out/controllers/FormatAmountController/index.d.ts +1 -0
- package/out/controllers/FormatAmountController/types.d.ts +11 -0
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +1 -1
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.d.ts +4 -0
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.d.ts +1 -0
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.d.ts +12 -0
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.d.ts +1 -0
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/transactionsTableController.types.d.ts +38 -0
- package/out/lib/sdkCore.d.ts +7 -0
- package/out/lib/sdkDappUI.components.d.ts +1 -0
- package/out/lib/sdkDappUi.d.ts +9 -0
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/lib/sdkDappUtils.d.ts +6 -0
- package/out/lib/sdkWebWalletCrossWindowProvider.d.ts +3 -0
- package/out/lib/sdkWebWalletIframeProvider.d.ts +1 -0
- package/out/lib/sdkWebviewProvider.d.ts +1 -0
- package/out/managers/LogoutManager/LogoutManager.cjs +1 -1
- package/out/managers/LogoutManager/LogoutManager.d.ts +15 -0
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.d.ts +1 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +1 -1
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.d.ts +31 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.d.ts +2 -0
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/NotificationsFeedManager/types/index.d.ts +1 -0
- package/out/managers/NotificationsFeedManager/types/notifications.types.d.ts +7 -0
- package/out/managers/ToastManager/ToastManager.cjs +1 -1
- package/out/managers/ToastManager/ToastManager.d.ts +36 -0
- package/out/managers/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.cjs +1 -1
- package/out/managers/ToastManager/ToastUICoordinator.d.ts +30 -0
- package/out/managers/ToastManager/ToastUICoordinator.mjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.cjs +1 -1
- package/out/managers/ToastManager/helpers/LifetimeManager.d.ts +14 -0
- package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.cjs +1 -1
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.d.ts +11 -0
- package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/ToastManager/helpers/createTransactionToast.cjs +1 -1
- package/out/managers/ToastManager/helpers/createTransactionToast.d.ts +15 -0
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.cjs +1 -1
- package/out/managers/ToastManager/helpers/getToastDataStateByStatus.d.ts +2 -0
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.cjs +1 -1
- package/out/managers/ToastManager/helpers/getToastTransactionsStatus.d.ts +2 -0
- package/out/managers/ToastManager/helpers/tests/baseTransactionMock.d.ts +2 -0
- package/out/managers/ToastManager/helpers/tests/mocks/cache.d.ts +14 -0
- package/out/managers/ToastManager/helpers/tests/mocks/transactions.d.ts +14 -0
- package/out/managers/ToastManager/index.d.ts +1 -0
- package/out/managers/ToastManager/index.mjs +1 -1
- package/out/managers/ToastManager/tests/helpers/createStoreStub.d.ts +2 -0
- package/out/managers/ToastManager/types/index.d.ts +1 -0
- package/out/managers/ToastManager/types/toast.types.d.ts +50 -0
- package/out/managers/TransactionManager/TransactionManager.cjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.d.ts +55 -0
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.types.d.ts +21 -0
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +1 -1
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.d.ts +2 -0
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.d.ts +2 -0
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.d.ts +3 -0
- package/out/managers/TransactionManager/helpers/isBatchTransaction.d.ts +1 -0
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs +1 -1
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.d.ts +6 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.d.ts +8 -0
- package/out/managers/TransactionManager/index.d.ts +1 -0
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.d.ts +27 -0
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.d.ts +86 -0
- package/out/managers/UnlockPanelManager/helpers/getIsSimpleLoginCallback.d.ts +7 -0
- package/out/managers/UnlockPanelManager/helpers/getProviderList.cjs +1 -1
- package/out/managers/UnlockPanelManager/helpers/getProviderList.d.ts +2 -0
- package/out/managers/UnlockPanelManager/index.d.ts +1 -0
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.d.ts +46 -0
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.d.ts +2 -0
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/types/index.d.ts +1 -0
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.d.ts +8 -0
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +1 -1
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.d.ts +13 -0
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.d.ts +12 -0
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.d.ts +2 -0
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/index.d.ts +1 -0
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.d.ts +4 -0
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.d.ts +18 -0
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.d.ts +1 -0
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.d.ts +29 -0
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.d.ts +1 -0
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/types/index.d.ts +1 -0
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.d.ts +63 -0
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs +1 -1
- package/out/managers/internal/UIBaseManager/UIBaseManager.d.ts +30 -0
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.d.ts +14 -0
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.d.ts +1 -0
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/methods/account/getAccount.cjs +1 -1
- package/out/methods/account/getAccount.d.ts +1 -0
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.cjs +1 -1
- package/out/methods/account/getAccountInfo.d.ts +15 -0
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.cjs +1 -1
- package/out/methods/account/getAddress.d.ts +1 -0
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.cjs +1 -1
- package/out/methods/account/getIsLoggedIn.d.ts +1 -0
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.d.ts +2 -0
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.cjs +1 -1
- package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.d.ts +6 -0
- package/out/methods/initApp/gasStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/helpers/waitForStoreRehydration.cjs +1 -1
- package/out/methods/initApp/helpers/waitForStoreRehydration.d.ts +6 -0
- package/out/methods/initApp/helpers/waitForStoreRehydration.mjs +1 -1
- package/out/methods/initApp/initApp.cjs +1 -1
- package/out/methods/initApp/initApp.d.ts +19 -0
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.types.d.ts +126 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +1 -1
- package/out/methods/initApp/websocket/initializeWebsocketConnection.d.ts +3 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.d.ts +19 -0
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.cjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.d.ts +9 -0
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.cjs +1 -1
- package/out/methods/network/getEgldLabel.d.ts +1 -0
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.cjs +1 -1
- package/out/methods/network/getExplorerAddress.d.ts +1 -0
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.cjs +1 -1
- package/out/methods/network/getNetworkConfig.d.ts +1 -0
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.d.ts +1 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.d.ts +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runSessionCallbacks.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runSessionCallbacks.d.ts +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.d.ts +5 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionFailure.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.d.ts +13 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/runTransactionStatusUpdate.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.d.ts +3 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/helpers/updateTransactionAndSessionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.d.ts +1 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/checkBatch/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/getPendingTransactions.cjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/helpers/getPendingTransactions.d.ts +2 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.d.ts +1 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +1 -1
- package/out/methods/trackTransactions/helpers/getPollingInterval.d.ts +1 -0
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.cjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.d.ts +7 -0
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.cjs +1 -1
- package/out/methods/transactions/getFailedTransactions.d.ts +1 -0
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.cjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.d.ts +1 -0
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.cjs +1 -1
- package/out/methods/transactions/getPendingTransactions.d.ts +1 -0
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.cjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.d.ts +1 -0
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.cjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.d.ts +1 -0
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.d.ts +1 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.cjs +1 -1
- package/out/methods/transactions/getTransactionSessions.d.ts +1 -0
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.cjs +1 -1
- package/out/providers/DappProvider/DappProvider.d.ts +29 -0
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.d.ts +8 -0
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.d.ts +5 -0
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.d.ts +8 -0
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.d.ts +10 -0
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.d.ts +13 -0
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.d.ts +8 -0
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.d.ts +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/getMultisigLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.d.ts +10 -0
- package/out/providers/DappProvider/helpers/login/helpers/loginWithNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.d.ts +4 -0
- package/out/providers/DappProvider/helpers/login/helpers/loginWithoutNativeToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.cjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.d.ts +7 -0
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.cjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.d.ts +12 -0
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.d.ts +1 -0
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.d.ts +7 -0
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.d.ts +10 -0
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.d.ts +6 -0
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +1 -1
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.d.ts +13 -0
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.d.ts +1 -0
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.cjs +1 -1
- package/out/providers/ProviderFactory.d.ts +9 -0
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.d.ts +5 -0
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.d.ts +1 -0
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.cjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.d.ts +4 -0
- package/out/providers/helpers/emptyProvider.cjs +1 -1
- package/out/providers/helpers/emptyProvider.d.ts +35 -0
- package/out/providers/helpers/restoreProvider.cjs +1 -1
- package/out/providers/helpers/restoreProvider.d.ts +1 -0
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.d.ts +51 -0
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.d.ts +25 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.d.ts +1 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.d.ts +19 -0
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.d.ts +1 -0
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +22 -0
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.d.ts +2 -0
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.d.ts +4 -0
- package/out/providers/strategies/IframeProviderStrategy/types/index.d.ts +1 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.d.ts +38 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.d.ts +16 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getAuthTokenText.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getAuthTokenText.d.ts +8 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/getLedgerVersionOptions.d.ts +9 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/secondsToTimeString.d.ts +1 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.d.ts +1 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.d.ts +13 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/updateAccountsList/updateAccountsList.types.d.ts +8 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.d.ts +19 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/helpers/waitForLedgerSelection.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.d.ts +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.d.ts +4 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.d.ts +8 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/getLedgerConfiguration.d.ts +5 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/helpers/initHwProvider.d.ts +12 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.d.ts +1 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.d.ts +10 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.d.ts +5 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/index.d.ts +2 -0
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/index.d.ts +1 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.d.ts +40 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.d.ts +8 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.d.ts +37 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.d.ts +2 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.d.ts +1 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.d.ts +29 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.d.ts +20 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.d.ts +1 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.d.ts +23 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.d.ts +1 -0
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.d.ts +9 -0
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.d.ts +1 -0
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.cjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.d.ts +9 -0
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.d.ts +6 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.d.ts +13 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.d.ts +31 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.d.ts +2 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.d.ts +6 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.d.ts +18 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getGasPriceOptions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getGasPriceOptions.d.ts +13 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.d.ts +2 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.d.ts +10 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.d.ts +2 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.d.ts +2 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.d.ts +6 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/tests/mockGetCommonDataInput.d.ts +73 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.d.ts +9 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.d.ts +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.d.ts +1 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.d.ts +2 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.d.ts +8 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.d.ts +5 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.d.ts +5 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.d.ts +2 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.d.ts +4 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/signTransactions.d.ts +12 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/tests/mocks.d.ts +16 -0
- package/out/providers/types/providerFactory.types.d.ts +51 -0
- package/out/react/account/useGetAccount.d.ts +1 -0
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.d.ts +15 -0
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.d.ts +1 -0
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.d.ts +1 -0
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.d.ts +1 -0
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.d.ts +9 -0
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.d.ts +1 -0
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/createBoundedStore.d.ts +14 -0
- package/out/react/store/getReactStore.d.ts +4 -0
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.d.ts +6 -0
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.d.ts +1 -0
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.d.ts +1 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.d.ts +1 -0
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.d.ts +1 -0
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.d.ts +1 -0
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.d.ts +1 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.d.ts +1 -0
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.cjs +1 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.d.ts +9 -0
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs +1 -1
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.d.ts +8 -0
- package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs +1 -1
- package/out/services/nativeAuth/helpers/getLatestBlockHash.d.ts +12 -0
- package/out/services/nativeAuth/helpers/index.d.ts +3 -0
- package/out/services/nativeAuth/index.d.ts +1 -0
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.d.ts +15 -0
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.d.ts +7 -0
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.cjs +1 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.d.ts +6 -0
- package/out/services/nativeAuth/nativeAuth.d.ts +19 -0
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.types.d.ts +19 -0
- package/out/store/actions/account/accountActions.cjs +1 -1
- package/out/store/actions/account/accountActions.d.ts +9 -0
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.d.ts +1 -0
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.cjs +1 -1
- package/out/store/actions/cache/cacheActions.d.ts +6 -0
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.d.ts +1 -0
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.cjs +1 -1
- package/out/store/actions/config/configActions.d.ts +9 -0
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.d.ts +1 -0
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.cjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.d.ts +12 -0
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.d.ts +1 -0
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.cjs +1 -1
- package/out/store/actions/network/initializeNetwork.d.ts +7 -0
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.d.ts +3 -0
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.d.ts +1 -0
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.cjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.d.ts +7 -0
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.d.ts +1 -0
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.cjs +1 -1
- package/out/store/actions/toasts/toastsActions.d.ts +13 -0
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionStateByStatus.cjs +1 -1
- package/out/store/actions/transactions/transactionStateByStatus.d.ts +23 -0
- package/out/store/actions/transactions/transactionsActions.cjs +1 -1
- package/out/store/actions/transactions/transactionsActions.d.ts +20 -0
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.d.ts +1 -0
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.cjs +1 -1
- package/out/store/actions/ui/uiActions.d.ts +1 -0
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.d.ts +2 -0
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.d.ts +1 -0
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.cjs +1 -1
- package/out/store/middleware/logoutMiddleware.d.ts +6 -0
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.cjs +1 -1
- package/out/store/selectors/accountSelectors.d.ts +25 -0
- package/out/store/selectors/cacheSelector.d.ts +3 -0
- package/out/store/selectors/configSelectors.d.ts +5 -0
- package/out/store/selectors/loginInfoSelectors.d.ts +7 -0
- package/out/store/selectors/networkSelectors.d.ts +9 -0
- package/out/store/selectors/storeSelector.d.ts +2 -0
- package/out/store/selectors/toastsSelectors.d.ts +4 -0
- package/out/store/selectors/transactionsSelector.cjs +1 -1
- package/out/store/selectors/transactionsSelector.d.ts +10 -0
- package/out/store/selectors/uiSelectors.d.ts +3 -0
- package/out/store/slices/account/account.types.d.ts +25 -0
- package/out/store/slices/account/accountSlice.d.ts +5 -0
- package/out/store/slices/account/emptyAccount.cjs +1 -1
- package/out/store/slices/account/emptyAccount.d.ts +2 -0
- package/out/store/slices/account/index.d.ts +1 -0
- package/out/store/slices/cache/cacheSlice.d.ts +5 -0
- package/out/store/slices/cache/cacheSlice.types.d.ts +3 -0
- package/out/store/slices/cache/index.d.ts +1 -0
- package/out/store/slices/config/config.types.d.ts +16 -0
- package/out/store/slices/config/configSlice.cjs +1 -1
- package/out/store/slices/config/configSlice.d.ts +4 -0
- package/out/store/slices/config/index.d.ts +1 -0
- package/out/store/slices/loginInfo/index.d.ts +1 -0
- package/out/store/slices/loginInfo/loginInfo.types.d.ts +19 -0
- package/out/store/slices/loginInfo/loginInfoSlice.d.ts +5 -0
- package/out/store/slices/network/emptyNetwork.d.ts +2 -0
- package/out/store/slices/network/index.d.ts +1 -0
- package/out/store/slices/network/network.types.d.ts +5 -0
- package/out/store/slices/network/networkSlice.d.ts +4 -0
- package/out/store/slices/network/networkSlice.types.d.ts +4 -0
- package/out/store/slices/toast/index.d.ts +1 -0
- package/out/store/slices/toast/toastSlice.d.ts +5 -0
- package/out/store/slices/toast/toastSlice.types.d.ts +50 -0
- package/out/store/slices/transactions/index.d.ts +1 -0
- package/out/store/slices/transactions/transactionsSlice.d.ts +5 -0
- package/out/store/slices/transactions/transactionsSlice.types.d.ts +4 -0
- package/out/store/slices/ui/index.d.ts +1 -0
- package/out/store/slices/ui/ui.types.d.ts +3 -0
- package/out/store/slices/ui/uiSlice.d.ts +4 -0
- package/out/store/storage/inMemoryStorage.d.ts +9 -0
- package/out/store/storage/index.d.ts +2 -0
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.cjs +1 -1
- package/out/store/storage/storageCallback.d.ts +3 -0
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.d.ts +103 -0
- package/out/store/store.mjs +1 -1
- package/out/store/store.types.d.ts +46 -0
- package/out/types/account.types.d.ts +38 -0
- package/out/types/enums.types.d.ts +74 -0
- package/out/types/login.types.d.ts +13 -0
- package/out/types/manager.types.d.ts +5 -0
- package/out/types/network.types.d.ts +51 -0
- package/out/types/provider.types.d.ts +6 -0
- package/out/types/serverTransactions.types.d.ts +316 -0
- package/out/types/subscriptions.type.d.ts +5 -0
- package/out/types/suspiciousLink.types.d.ts +17 -0
- package/out/types/theme.types.d.ts +5 -0
- package/out/types/tokens.types.d.ts +173 -0
- package/out/types/transaction-list-item.types.d.ts +87 -0
- package/out/types/transactions.types.d.ts +108 -0
- package/out/types/websocket.types.d.ts +4 -0
- package/out/utils/ComponentFactory.cjs +1 -1
- package/out/utils/ComponentFactory.d.ts +14 -0
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/fetchAccount.cjs +1 -1
- package/out/utils/account/fetchAccount.d.ts +4 -0
- package/out/utils/account/fetchAccount.mjs +1 -1
- package/out/utils/account/refreshAccount.cjs +1 -1
- package/out/utils/account/refreshAccount.d.ts +27 -0
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.cjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.d.ts +10 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/account/trimUsernameDomain.d.ts +1 -0
- package/out/utils/asyncActions/index.d.ts +1 -0
- package/out/utils/asyncActions/sleep.d.ts +1 -0
- package/out/utils/dateTime/getUnixTimestamp.d.ts +1 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.d.ts +1 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.d.ts +1 -0
- package/out/utils/dateTime/index.d.ts +3 -0
- package/out/utils/decoders/base64Utils.d.ts +22 -0
- package/out/utils/decoders/decodePart.d.ts +1 -0
- package/out/utils/decoders/isAscii.d.ts +1 -0
- package/out/utils/decoders/isUtf8.d.ts +1 -0
- package/out/utils/decoders/stringContainsNumbers.d.ts +1 -0
- package/out/utils/network/index.d.ts +1 -0
- package/out/utils/network/setAxiosInterceptors.d.ts +6 -0
- package/out/utils/operations/capitalize.d.ts +1 -0
- package/out/utils/operations/getUsdValue.d.ts +6 -0
- package/out/utils/operations/pluralize.d.ts +1 -0
- package/out/utils/operations/tests/pluralize.spec.d.ts +1 -0
- package/out/utils/operations/tests/trimAmountDecimals.spec.d.ts +1 -0
- package/out/utils/operations/timeRemaining.d.ts +4 -0
- package/out/utils/operations/trimAmountDecimals.cjs +1 -1
- package/out/utils/operations/trimAmountDecimals.d.ts +6 -0
- package/out/utils/retryMultipleTimes.d.ts +6 -0
- package/out/utils/tests/shadowDomTraversal.d.ts +17 -0
- package/out/utils/transactions/explorerUrlBuilder.cjs +1 -1
- package/out/utils/transactions/explorerUrlBuilder.d.ts +25 -0
- package/out/utils/transactions/getActiveTransactionsStatus.cjs +1 -1
- package/out/utils/transactions/getActiveTransactionsStatus.d.ts +7 -0
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/getDecodedDataField.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/decodeByMethod.d.ts +8 -0
- package/out/utils/transactions/getDecodedDataField/helpers/decodeHighlight.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDecodedParts.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getDisplayValueAndValidationWarnings.d.ts +9 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getHexValidationWarnings.d.ts +1 -0
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.cjs +1 -1
- package/out/utils/transactions/getDecodedDataField/helpers/getSmartDecodedParts.d.ts +7 -0
- package/out/utils/transactions/getDecodedDataField/index.d.ts +1 -0
- package/out/utils/transactions/getExplorerLink.d.ts +4 -0
- package/out/utils/transactions/getHumanReadableTimeFormat.d.ts +10 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.d.ts +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.d.ts +17 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.d.ts +12 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.d.ts +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.d.ts +8 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.d.ts +16 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.d.ts +8 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.d.ts +8 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.d.ts +8 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.d.ts +1 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.d.ts +22 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.d.ts +10 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.d.ts +1 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.d.ts +8 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.d.ts +6 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.d.ts +5 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.d.ts +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.d.ts +8 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/baseTransactionMock.d.ts +27 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/tests/extendedTransactionMock.d.ts +2 -0
- package/out/utils/transactions/getInterpretedTransaction/index.d.ts +1 -0
- package/out/utils/transactions/getScamFlag.d.ts +8 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.d.ts +3 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.d.ts +2 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.d.ts +1 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.d.ts +1 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.d.ts +3 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.d.ts +2 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.d.ts +6 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.d.ts +13 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.d.ts +8 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.d.ts +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.d.ts +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.d.ts +15 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.d.ts +16 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.d.ts +12 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.d.ts +1 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.d.ts +9 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.d.ts +12 -0
- package/out/utils/transactions/getTransactionsHistory/index.d.ts +1 -0
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/isGuardianTx.cjs +1 -1
- package/out/utils/transactions/isGuardianTx.d.ts +4 -0
- package/out/utils/validation/addressIsValid.cjs +1 -1
- package/out/utils/validation/addressIsValid.d.ts +1 -0
- package/out/utils/validation/getIdentifierType.d.ts +5 -0
- package/out/utils/validation/hex.d.ts +2 -0
- package/out/utils/validation/isContract.cjs +1 -1
- package/out/utils/validation/isContract.d.ts +6 -0
- package/out/utils/validation/maxDecimals.d.ts +1 -0
- package/out/utils/visual/switchTheme.cjs +1 -1
- package/out/utils/visual/switchTheme.d.ts +2 -0
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/walletconnect/__sdkWalletconnectProvider.d.ts +8 -0
- package/out/utils/window/buildUrlParams.d.ts +8 -0
- package/out/utils/window/getIsAuthRoute.d.ts +15 -0
- package/out/utils/window/getIsInIframe.d.ts +1 -0
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowLocation.d.ts +9 -0
- package/out/utils/window/getWindowParentOrigin.cjs +1 -1
- package/out/utils/window/getWindowParentOrigin.d.ts +1 -0
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/isWindowAvailable.d.ts +1 -0
- package/out/utils/window/matchPath.d.ts +60 -0
- package/out/utils/window/sanitizeCallbackUrl.d.ts +1 -0
- package/package.json +2 -2
- package/out/__chunks__/chunk-2WUOBFRV.mjs +0 -2
- package/out/__chunks__/chunk-422ZUBTP.mjs +0 -2
- package/out/__chunks__/chunk-6ZU2IBDO.mjs +0 -2
- package/out/__chunks__/chunk-BFVULVAD.mjs +0 -2
- package/out/__chunks__/chunk-BZLQ6QLQ.mjs +0 -2
- package/out/__chunks__/chunk-CKY2HBH6.mjs +0 -2
- package/out/__chunks__/chunk-EOAIKG7U.mjs +0 -2
- package/out/__chunks__/chunk-MJXIB64Q.mjs +0 -2
- package/out/__chunks__/chunk-PI76AQ3J.mjs +0 -2
- package/out/__chunks__/chunk-PZI62JRY.mjs +0 -2
- package/out/__chunks__/chunk-R3IH76PW.mjs +0 -2
- package/out/__chunks__/chunk-V5ZA5MQV.mjs +0 -2
- package/out/__chunks__/chunk-VMUOJEUV.mjs +0 -2
- package/out/__chunks__/chunk-WXTELBRA.mjs +0 -2
- package/out/__chunks__/chunk-WZSA2EE5.mjs +0 -2
- /package/out/__chunks__/{chunk-VMUOJEUV.mjs.map → chunk-22F6NHUW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BZLQ6QLQ.mjs.map → chunk-365NUVE7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JO3KLBXS.mjs.map → chunk-3VPAVTVL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-V5ZA5MQV.mjs.map → chunk-4FBGOTSX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QGUQTBVR.mjs.map → chunk-4IM7MMSB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EETA2QXV.mjs.map → chunk-5NRAQWO4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EH3QXINF.mjs.map → chunk-6ECOAQX4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OSGTEMH4.mjs.map → chunk-6MBRTWME.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-HKZTCRSV.mjs.map → chunk-6UTLNODT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UGY4JSP3.mjs.map → chunk-AIBBSVXP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AAIKQGPN.mjs.map → chunk-AQIZZ6YU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TRICXIPQ.mjs.map → chunk-AU2YBHNW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P6OHY6KU.mjs.map → chunk-B4WJMVF6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RSNSPKZ3.mjs.map → chunk-BI2PJ5FS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DY53O4ED.mjs.map → chunk-C23VOAOY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Q6SV22DH.mjs.map → chunk-CDU3ZELH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AHORDOF4.mjs.map → chunk-CPGY3DQJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CDHVNNSM.mjs.map → chunk-CVW52D7K.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OWYOEUPL.mjs.map → chunk-CYA7ED2N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UWCHOJH4.mjs.map → chunk-DDRH6O3X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CKY2HBH6.mjs.map → chunk-DDS3DY4B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ICJ5ZWS4.mjs.map → chunk-DKBOH236.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YVOZYFMU.mjs.map → chunk-EIUQFHRY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XZ2BAC7C.mjs.map → chunk-EJ4TUIIU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-P4H53TTI.mjs.map → chunk-F3PJPNGU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QMSYQJAU.mjs.map → chunk-FLFZN2T6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3C4QWHTF.mjs.map → chunk-G2WU3X6R.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BFVULVAD.mjs.map → chunk-GJSAN3GO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AJBGY6A5.mjs.map → chunk-GOUIWTTC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-W4F3YI3F.mjs.map → chunk-GP6W6RR7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-I5NDCPU2.mjs.map → chunk-GPKU7JO2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L7AC35OO.mjs.map → chunk-HPY6UNFO.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-COA54JTE.mjs.map → chunk-HY5I67W7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6BA2NDJT.mjs.map → chunk-IPGIVRGN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MJXIB64Q.mjs.map → chunk-JAXSTKEJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H3TSHWUD.mjs.map → chunk-JL6BHC7T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OKO3GIXC.mjs.map → chunk-KAY6QD6V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2NE75KNA.mjs.map → chunk-L6SBIHCZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-T6I7XQHS.mjs.map → chunk-L7HC5J53.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-R7Y4IM2T.mjs.map → chunk-LJ5RLWEK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6ZU2IBDO.mjs.map → chunk-LLVSK2AG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PKNPUHFQ.mjs.map → chunk-LT4RXTTQ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H3MXIVR4.mjs.map → chunk-LXSGLYGV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DDB4KRVV.mjs.map → chunk-LYUGR2FR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QHANP3XT.mjs.map → chunk-MFGDF3HI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LNRVNBRB.mjs.map → chunk-N6G3CMSC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-LUVMM57Y.mjs.map → chunk-NK2JTYOC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CNE5LY2X.mjs.map → chunk-OGL4HN2P.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CMN37YZP.mjs.map → chunk-QDUNEKJW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JJ6B2ZYX.mjs.map → chunk-QNXBITGY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-X7XFHGOE.mjs.map → chunk-QRPH4JCL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RGDZMPES.mjs.map → chunk-QWBFB3BL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IWQH426N.mjs.map → chunk-QWVZ4NTR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-VLJXRHVE.mjs.map → chunk-RC4ZBXFJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WXTELBRA.mjs.map → chunk-RFGBMNFA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CYKK4HPZ.mjs.map → chunk-RNK62S6X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JBPJL3B7.mjs.map → chunk-RVW6Z4XY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3Z7CLSDP.mjs.map → chunk-S72I2KYP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WZSA2EE5.mjs.map → chunk-SML7WOGP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PI76AQ3J.mjs.map → chunk-SVG75M4S.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TU6TE5PG.mjs.map → chunk-SWIPPQAS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3MWPYDLA.mjs.map → chunk-TIX7PAYC.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OAFYVJLF.mjs.map → chunk-TWDQUDRP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6VJXXSIS.mjs.map → chunk-UDWPAR25.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PZI62JRY.mjs.map → chunk-UJA73JSW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IZVWRQDU.mjs.map → chunk-UUFVP7SB.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-EOAIKG7U.mjs.map → chunk-UWBYA2GM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J7DUP7GC.mjs.map → chunk-UY2X77BA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-L5RYEWHO.mjs.map → chunk-V6HSYMMG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-422ZUBTP.mjs.map → chunk-VA7KLP35.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JMJ7OMSW.mjs.map → chunk-VCU3YP4J.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S4GXN3R7.mjs.map → chunk-VLRP4JQW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KTSYT4CA.mjs.map → chunk-VOCZMUMV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DY3P72D3.mjs.map → chunk-VSOHM56Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6BNZ4EJC.mjs.map → chunk-WDL6SFHR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YEBGEZ5L.mjs.map → chunk-XEDB2GXW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2WUOBFRV.mjs.map → chunk-XELB2AVG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PENSR33H.mjs.map → chunk-YAVOCSOD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FRIOQMD3.mjs.map → chunk-YDH26OGG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MNN7JOCV.mjs.map → chunk-YG6SFLZY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YJQR63IW.mjs.map → chunk-YHON33YS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RQOU5LG4.mjs.map → chunk-YKYYWL4B.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FRREO5DY.mjs.map → chunk-YTKDRPWM.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RMMIR3MN.mjs.map → chunk-YXKQJKZV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-O65UD2QD.mjs.map → chunk-Z72NFBTZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CG6BZB2U.mjs.map → chunk-ZLGDFBX7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QACFOFUG.mjs.map → chunk-ZMZXHLYM.mjs.map} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NotificationsFeedManager } from '../../managers/NotificationsFeedManager/NotificationsFeedManager';
|
|
2
|
+
import type { CustomToastType } from '../../store/slices/toast/toastSlice.types';
|
|
3
|
+
import { getStore } from '../../store/store';
|
|
4
|
+
import type { ITransactionToast } from './types';
|
|
5
|
+
type OnCloseToastType = (toastId: string) => boolean;
|
|
6
|
+
type StoreObjectType = ReturnType<typeof getStore>;
|
|
7
|
+
export declare class ToastUICoordinator {
|
|
8
|
+
private toastsElement;
|
|
9
|
+
private eventBus;
|
|
10
|
+
private isCreatingElement;
|
|
11
|
+
private eventBusUnsubscribeFunctions;
|
|
12
|
+
private readonly notificationsFeedManager;
|
|
13
|
+
private readonly store;
|
|
14
|
+
private readonly onCloseToast;
|
|
15
|
+
constructor(props: {
|
|
16
|
+
onCloseToast: OnCloseToastType;
|
|
17
|
+
store?: StoreObjectType;
|
|
18
|
+
notificationsFeedManager?: NotificationsFeedManager;
|
|
19
|
+
});
|
|
20
|
+
init(): Promise<void>;
|
|
21
|
+
showToasts(): void;
|
|
22
|
+
hideToasts(): void;
|
|
23
|
+
publishTransactionToasts(toasts: ITransactionToast[]): Promise<void>;
|
|
24
|
+
publishCustomToasts(customToasts: CustomToastType[]): Promise<void>;
|
|
25
|
+
private handleOpenNotificationsFeed;
|
|
26
|
+
destroy(): void;
|
|
27
|
+
private createToastListElement;
|
|
28
|
+
private subscribeToEventBusNotifications;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a}from"../../__chunks__/chunk-
|
|
1
|
+
import{b as a}from"../../__chunks__/chunk-AQIZZ6YU.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-VA7KLP35.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import"../../__chunks__/chunk-MFGDF3HI.mjs";import"../../__chunks__/chunk-QFXS7HGL.mjs";import"../../__chunks__/chunk-W3S6I34V.mjs";import"../../__chunks__/chunk-DCLI63KS.mjs";import"../../__chunks__/chunk-QWBFB3BL.mjs";import"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-PKD3AEXI.mjs";import"../../__chunks__/chunk-CLUVDWX6.mjs";import"../../__chunks__/chunk-QDUNEKJW.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-RVW6Z4XY.mjs";import"../../__chunks__/chunk-E2GGD7D4.mjs";import"../../__chunks__/chunk-DKBOH236.mjs";import"../../__chunks__/chunk-SML7WOGP.mjs";import"../../__chunks__/chunk-FLFZN2T6.mjs";import"../../__chunks__/chunk-XXV6KGR4.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-M6MN4RXG.mjs";import"../../__chunks__/chunk-BFD5ZJOK.mjs";import"../../__chunks__/chunk-C23VOAOY.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-L7HC5J53.mjs";import"../../__chunks__/chunk-TWDQUDRP.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-22F6NHUW.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-4O27AVB7.mjs";import"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-5OMQOYP7.mjs";import"../../__chunks__/chunk-UCNS6KD5.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import"../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../__chunks__/chunk-BHWSBAMZ.mjs";import"../../__chunks__/chunk-6D53LH5J.mjs";import"../../__chunks__/chunk-H33OUO77.mjs";import"../../__chunks__/chunk-GFR6K4DR.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../__chunks__/chunk-ECDI66QL.mjs";import"../../__chunks__/chunk-6UMOECOW.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../__chunks__/chunk-YJCTRUJT.mjs";import"../../__chunks__/chunk-NGM3AVCY.mjs";import"../../__chunks__/chunk-VSOHM56Y.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LLVSK2AG.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-QNELH2S2.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-OQURAWR4.mjs";import"../../__chunks__/chunk-PWAP64SN.mjs";import"../../__chunks__/chunk-O5PAMBB3.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-5NRAQWO4.mjs";import"../../__chunks__/chunk-YDR33UBM.mjs";export{a as ToastUICoordinator};
|
|
2
2
|
//# sourceMappingURL=ToastUICoordinator.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(s,t)=>{for(var e in t)u(s,e,{get:t[e],enumerable:!0})},T=(s,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of m(t))!c.call(s,i)&&i!==e&&u(s,i,{get:()=>t[i],enumerable:!(o=n(t,i))||o.enumerable});return s};var f=s=>T(u({},"__esModule",{value:!0}),s);var h={};l(h,{LifetimeManager:()=>p});module.exports=f(h);var r=require("store/actions/toasts/toastsActions");const a=1e4;class p{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=a;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;const e=setTimeout(()=>{(0,r.removeTransactionToast)(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;const o=setTimeout(()=>{(0,r.removeCustomToast)(t);const i=r.customToastCloseHandlersDictionary[t];i?.()},e);this.timeoutIntervals.set(t,o)};this.stop=t=>{const e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t??a}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}}0&&(module.exports={LifetimeManager});
|
|
1
|
+
"use strict";var u=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var l=(s,t)=>{for(var e in t)u(s,e,{get:t[e],enumerable:!0})},T=(s,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of m(t))!c.call(s,i)&&i!==e&&u(s,i,{get:()=>t[i],enumerable:!(o=n(t,i))||o.enumerable});return s};var f=s=>T(u({},"__esModule",{value:!0}),s);var h={};l(h,{LifetimeManager:()=>p});module.exports=f(h);var r=require("../../../store/actions/toasts/toastsActions");const a=1e4;class p{constructor(){this.timeoutIntervals=new Map;this.successfulToastLifetime=a;this.start=t=>{if(this.stop(t),this.successfulToastLifetime<=0)return;const e=setTimeout(()=>{(0,r.removeTransactionToast)(t)},this.successfulToastLifetime);this.timeoutIntervals.set(t,e)};this.startWithCustomDuration=(t,e)=>{if(this.stop(t),e<=0)return;const o=setTimeout(()=>{(0,r.removeCustomToast)(t);const i=r.customToastCloseHandlersDictionary[t];i?.()},e);this.timeoutIntervals.set(t,o)};this.stop=t=>{const e=this.timeoutIntervals.get(t);e&&(clearTimeout(e),this.timeoutIntervals.delete(t))}}init({successfulToastLifetime:t}){this.successfulToastLifetime=t??a}destroy(){this.timeoutIntervals.forEach(t=>clearTimeout(t)),this.timeoutIntervals.clear()}}0&&(module.exports={LifetimeManager});
|
|
2
2
|
//# sourceMappingURL=LifetimeManager.cjs.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface IToastProgressManagerParams {
|
|
2
|
+
successfulToastLifetime?: number;
|
|
3
|
+
}
|
|
4
|
+
export declare class LifetimeManager {
|
|
5
|
+
private timeoutIntervals;
|
|
6
|
+
private successfulToastLifetime;
|
|
7
|
+
constructor();
|
|
8
|
+
init({ successfulToastLifetime }: IToastProgressManagerParams): void;
|
|
9
|
+
start: (toastId: string) => void;
|
|
10
|
+
startWithCustomDuration: (toastId: string, duration: number) => void;
|
|
11
|
+
stop: (toastId: string) => void;
|
|
12
|
+
destroy(): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../__chunks__/chunk-QWBFB3BL.mjs";import"../../../__chunks__/chunk-DKBOH236.mjs";import"../../../__chunks__/chunk-RMW3YLGD.mjs";import"../../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../../__chunks__/chunk-NJN53MJV.mjs";import"../../../__chunks__/chunk-YSCND2MX.mjs";import"../../../__chunks__/chunk-VSOHM56Y.mjs";import"../../../__chunks__/chunk-FK6DWWZF.mjs";import"../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../__chunks__/chunk-HDJOER66.mjs";import"../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../__chunks__/chunk-RIPIZH54.mjs";import"../../../__chunks__/chunk-APCGI2A5.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../__chunks__/chunk-M7BM6QPB.mjs";import"../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../__chunks__/chunk-ONT6BGYB.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../__chunks__/chunk-LLVSK2AG.mjs";import"../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../__chunks__/chunk-DA76AK4I.mjs";import"../../../__chunks__/chunk-YDR33UBM.mjs";export{a as LifetimeManager};
|
|
2
2
|
//# sourceMappingURL=LifetimeManager.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var k=(s,t)=>{for(var a in t)c(s,a,{get:t[a],enumerable:!0})},q=(s,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of b(t))!j.call(s,n)&&n!==a&&c(s,n,{get:()=>t[n],enumerable:!(r=D(t,n))||r.enumerable});return s};var z=s=>q(c({},"__esModule",{value:!0}),s);var B={};k(B,{createToastsFromTransactions:()=>A});module.exports=z(B);var o=require("store/actions/transactions/transactionStateByStatus"),d=require("store/selectors/accountSelectors"),f=require("store/selectors/toastsSelectors"),u=require("store/selectors/transactionsSelector"),I=require("store/store"),l=require("utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems"),S=require("./createTransactionToast");async function A(s){const t=s?.store??(0,I.getState)(),a=[],r=[],n=(0,f.toastsSliceSelector)(t),g=(0,u.transactionsSliceSelector)(t),y=(0,d.addressSelector)(t);for(const i of n.transactionToasts){const T=g[i.toastId];if(!T?.status)continue;const{status:e,transactions:F,transactionsDisplayInfo:C}=T,P=await(0,l.mapServerTransactionsToListItems)({transactions:F,store:t}),h=(0,o.getIsTransactionTimedOut)(e),L=(0,o.getIsTransactionFailed)(e),O=(0,o.getIsTransactionSuccessful)(e),m=h||L||O,R=(0,o.getIsTransactionPending)(e),{startTime:v,endTime:w}=i;if(m&&r.some(x=>x.toastId===i.toastId))continue;const p=(0,S.createTransactionToast)({toastId:i.toastId,address:y,status:e,transactions:P,transactionsDisplayInfo:C,startTime:v,endTime:w});m&&r.push(p),R&&a.push(p)}return{pendingTransactionToasts:a,completedTransactionToasts:r}}0&&(module.exports={createToastsFromTransactions});
|
|
1
|
+
"use strict";var c=Object.defineProperty;var D=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var j=Object.prototype.hasOwnProperty;var k=(s,t)=>{for(var a in t)c(s,a,{get:t[a],enumerable:!0})},q=(s,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of b(t))!j.call(s,n)&&n!==a&&c(s,n,{get:()=>t[n],enumerable:!(r=D(t,n))||r.enumerable});return s};var z=s=>q(c({},"__esModule",{value:!0}),s);var B={};k(B,{createToastsFromTransactions:()=>A});module.exports=z(B);var o=require("../../../store/actions/transactions/transactionStateByStatus"),d=require("../../../store/selectors/accountSelectors"),f=require("../../../store/selectors/toastsSelectors"),u=require("../../../store/selectors/transactionsSelector"),I=require("../../../store/store"),l=require("../../../utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems"),S=require("./createTransactionToast");async function A(s){const t=s?.store??(0,I.getState)(),a=[],r=[],n=(0,f.toastsSliceSelector)(t),g=(0,u.transactionsSliceSelector)(t),y=(0,d.addressSelector)(t);for(const i of n.transactionToasts){const T=g[i.toastId];if(!T?.status)continue;const{status:e,transactions:F,transactionsDisplayInfo:C}=T,P=await(0,l.mapServerTransactionsToListItems)({transactions:F,store:t}),h=(0,o.getIsTransactionTimedOut)(e),L=(0,o.getIsTransactionFailed)(e),O=(0,o.getIsTransactionSuccessful)(e),m=h||L||O,R=(0,o.getIsTransactionPending)(e),{startTime:v,endTime:w}=i;if(m&&r.some(x=>x.toastId===i.toastId))continue;const p=(0,S.createTransactionToast)({toastId:i.toastId,address:y,status:e,transactions:P,transactionsDisplayInfo:C,startTime:v,endTime:w});m&&r.push(p),R&&a.push(p)}return{pendingTransactionToasts:a,completedTransactionToasts:r}}0&&(module.exports={createToastsFromTransactions});
|
|
2
2
|
//# sourceMappingURL=createToastsFromTransactions.cjs.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StoreType } from '../../../store/store.types';
|
|
2
|
+
import { ITransactionToast } from '../types/toast.types';
|
|
3
|
+
interface CreateToastsFromTransactionsReturnType {
|
|
4
|
+
pendingTransactionToasts: ITransactionToast[];
|
|
5
|
+
completedTransactionToasts: ITransactionToast[];
|
|
6
|
+
}
|
|
7
|
+
interface CreateToastsFromTransactionsParamsType {
|
|
8
|
+
store?: StoreType;
|
|
9
|
+
}
|
|
10
|
+
export declare function createToastsFromTransactions(props?: CreateToastsFromTransactionsParamsType): Promise<CreateToastsFromTransactionsReturnType>;
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../__chunks__/chunk-MFGDF3HI.mjs";import"../../../__chunks__/chunk-QFXS7HGL.mjs";import"../../../__chunks__/chunk-W3S6I34V.mjs";import"../../../__chunks__/chunk-DCLI63KS.mjs";import"../../../__chunks__/chunk-PKD3AEXI.mjs";import"../../../__chunks__/chunk-CLUVDWX6.mjs";import"../../../__chunks__/chunk-E2GGD7D4.mjs";import"../../../__chunks__/chunk-XXV6KGR4.mjs";import"../../../__chunks__/chunk-L7HC5J53.mjs";import"../../../__chunks__/chunk-TWDQUDRP.mjs";import"../../../__chunks__/chunk-7VHTZYM2.mjs";import"../../../__chunks__/chunk-22F6NHUW.mjs";import"../../../__chunks__/chunk-UTWIKUIK.mjs";import"../../../__chunks__/chunk-4O27AVB7.mjs";import"../../../__chunks__/chunk-VDDXFGB2.mjs";import"../../../__chunks__/chunk-5OMQOYP7.mjs";import"../../../__chunks__/chunk-UCNS6KD5.mjs";import"../../../__chunks__/chunk-35MNP3LA.mjs";import"../../../__chunks__/chunk-TX7PTLVP.mjs";import"../../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../../__chunks__/chunk-BHWSBAMZ.mjs";import"../../../__chunks__/chunk-6D53LH5J.mjs";import"../../../__chunks__/chunk-H33OUO77.mjs";import"../../../__chunks__/chunk-GFR6K4DR.mjs";import"../../../__chunks__/chunk-HQQMSHTW.mjs";import"../../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../../__chunks__/chunk-ECDI66QL.mjs";import"../../../__chunks__/chunk-6UMOECOW.mjs";import"../../../__chunks__/chunk-54B3EIZC.mjs";import"../../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../../__chunks__/chunk-YJCTRUJT.mjs";import"../../../__chunks__/chunk-NGM3AVCY.mjs";import"../../../__chunks__/chunk-VSOHM56Y.mjs";import"../../../__chunks__/chunk-FK6DWWZF.mjs";import"../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../__chunks__/chunk-HDJOER66.mjs";import"../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../__chunks__/chunk-RIPIZH54.mjs";import"../../../__chunks__/chunk-APCGI2A5.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../__chunks__/chunk-M7BM6QPB.mjs";import"../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../__chunks__/chunk-ONT6BGYB.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../__chunks__/chunk-LLVSK2AG.mjs";import"../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../__chunks__/chunk-QNELH2S2.mjs";import"../../../__chunks__/chunk-2JKCBTYK.mjs";import"../../../__chunks__/chunk-OQURAWR4.mjs";import"../../../__chunks__/chunk-PWAP64SN.mjs";import"../../../__chunks__/chunk-O5PAMBB3.mjs";import"../../../__chunks__/chunk-DA76AK4I.mjs";import"../../../__chunks__/chunk-NWJYEKI2.mjs";import"../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../__chunks__/chunk-YDR33UBM.mjs";export{a as createToastsFromTransactions};
|
|
2
2
|
//# sourceMappingURL=createToastsFromTransactions.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var P=(a,t)=>{for(var r in t)o(a,r,{get:t[r],enumerable:!0})},l=(a,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of g(t))!d.call(a,n)&&n!==r&&o(a,n,{get:()=>t[n],enumerable:!(s=I(t,n))||s.enumerable});return a};var D=a=>l(o({},"__esModule",{value:!0}),a);var E={};P(E,{createTransactionToast:()=>v});module.exports=D(E);var e=require("store/actions/transactions/transactionStateByStatus"),i=require("./getToastDataStateByStatus"),T=require("./getToastTransactionsStatus");const v=({toastId:a,address:t,status:r,transactions:s,transactionsDisplayInfo:n,startTime:c,endTime:m})=>{const p=s.some(y=>(0,e.getIsTransactionPending)(y.status)),u=s[0]?.action?.name,S=(0,i.getToastDataStateByStatus)({address:t,sender:s[0]?.interactor??"",toastId:a,status:r,transactionsDisplayInfo:n,txActionName:u}),f=(0,T.getToastTransactionsStatus)(s);return{toastDataState:S,processedTransactionsStatus:f,transactionProgressState:p?{endTime:m,startTime:c}:null,toastId:a,transactions:s}};0&&(module.exports={createTransactionToast});
|
|
1
|
+
"use strict";var o=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var P=(a,t)=>{for(var r in t)o(a,r,{get:t[r],enumerable:!0})},l=(a,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of g(t))!d.call(a,n)&&n!==r&&o(a,n,{get:()=>t[n],enumerable:!(s=I(t,n))||s.enumerable});return a};var D=a=>l(o({},"__esModule",{value:!0}),a);var E={};P(E,{createTransactionToast:()=>v});module.exports=D(E);var e=require("../../../store/actions/transactions/transactionStateByStatus"),i=require("./getToastDataStateByStatus"),T=require("./getToastTransactionsStatus");const v=({toastId:a,address:t,status:r,transactions:s,transactionsDisplayInfo:n,startTime:c,endTime:m})=>{const p=s.some(y=>(0,e.getIsTransactionPending)(y.status)),u=s[0]?.action?.name,S=(0,i.getToastDataStateByStatus)({address:t,sender:s[0]?.interactor??"",toastId:a,status:r,transactionsDisplayInfo:n,txActionName:u}),f=(0,T.getToastTransactionsStatus)(s);return{toastDataState:S,processedTransactionsStatus:f,transactionProgressState:p?{endTime:m,startTime:c}:null,toastId:a,transactions:s}};0&&(module.exports={createTransactionToast});
|
|
2
2
|
//# sourceMappingURL=createTransactionToast.cjs.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ITransactionListItem } from '../../../lib/sdkDappUi';
|
|
2
|
+
import { ServerTransactionType } from '../../../types/serverTransactions.types';
|
|
3
|
+
import { TransactionsDisplayInfoType } from '../../../types/transactions.types';
|
|
4
|
+
import { ITransactionToast } from '../types/toast.types';
|
|
5
|
+
interface CreateTransactionToastParamsType {
|
|
6
|
+
toastId: string;
|
|
7
|
+
address: string;
|
|
8
|
+
status: ServerTransactionType['status'];
|
|
9
|
+
transactions: ITransactionListItem[];
|
|
10
|
+
transactionsDisplayInfo?: TransactionsDisplayInfoType;
|
|
11
|
+
startTime: number;
|
|
12
|
+
endTime: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const createTransactionToast: ({ toastId, address, status, transactions, transactionsDisplayInfo, startTime, endTime }: CreateTransactionToastParamsType) => ITransactionToast;
|
|
15
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var D=Object.prototype.hasOwnProperty;var S=(t,a)=>{for(var i in a)u(t,i,{get:a[i],enumerable:!0})},B=(t,a,i,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let s of h(a))!D.call(t,s)&&s!==i&&u(t,s,{get:()=>a[s],enumerable:!(c=C(a,s))||c.enumerable});return t};var v=t=>B(u({},"__esModule",{value:!0}),t);var p={};S(p,{getToastDataStateByStatus:()=>M});module.exports=v(p);var e=require("types/enums.types"),o=require("../types");const M=({address:t,sender:a,status:i,toastId:c,transactionsDisplayInfo:s,txActionName:n})=>{const r={id:c,icon:e.IconNamesEnum.check,hasCloseButton:!0,title:s?.successMessage??n??o.TransactionsDefaultTitles.success,iconClassName:"success"},l={id:c,icon:e.IconNamesEnum.check,hasCloseButton:!0,title:s?.receivedMessage??s?.successMessage??n??o.TransactionsDefaultTitles.received,iconClassName:"success"},T={id:c,icon:e.IconNamesEnum.hourglass,hasCloseButton:!1,title:s?.processingMessage??n??o.TransactionsDefaultTitles.pending,iconClassName:"warning"},d={id:c,icon:e.IconNamesEnum.close,title:s?.errorMessage??n??o.TransactionsDefaultTitles.failed,hasCloseButton:!0,iconClassName:"danger"},g={id:c,icon:e.IconNamesEnum.ban,title:s?.invalidMessage??n??o.TransactionsDefaultTitles.invalid,hasCloseButton:!0,iconClassName:"warning"},m={id:c,icon:e.IconNamesEnum.close,title:s?.timedOutMessage??n??o.TransactionsDefaultTitles.timedOut,hasCloseButton:!0,iconClassName:"warning"};switch(i){case e.TransactionBatchStatusesEnum.success:return a!==t?l:r;case e.TransactionBatchStatusesEnum.cancelled:case e.TransactionBatchStatusesEnum.fail:return d;case e.TransactionBatchStatusesEnum.timedOut:return m;case e.TransactionBatchStatusesEnum.invalid:return g;case e.TransactionBatchStatusesEnum.signed:case e.TransactionBatchStatusesEnum.sent:default:return T}};0&&(module.exports={getToastDataStateByStatus});
|
|
1
|
+
"use strict";var u=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var D=Object.prototype.hasOwnProperty;var S=(t,a)=>{for(var i in a)u(t,i,{get:a[i],enumerable:!0})},B=(t,a,i,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let s of h(a))!D.call(t,s)&&s!==i&&u(t,s,{get:()=>a[s],enumerable:!(c=C(a,s))||c.enumerable});return t};var v=t=>B(u({},"__esModule",{value:!0}),t);var p={};S(p,{getToastDataStateByStatus:()=>M});module.exports=v(p);var e=require("../../../types/enums.types"),o=require("../types");const M=({address:t,sender:a,status:i,toastId:c,transactionsDisplayInfo:s,txActionName:n})=>{const r={id:c,icon:e.IconNamesEnum.check,hasCloseButton:!0,title:s?.successMessage??n??o.TransactionsDefaultTitles.success,iconClassName:"success"},l={id:c,icon:e.IconNamesEnum.check,hasCloseButton:!0,title:s?.receivedMessage??s?.successMessage??n??o.TransactionsDefaultTitles.received,iconClassName:"success"},T={id:c,icon:e.IconNamesEnum.hourglass,hasCloseButton:!1,title:s?.processingMessage??n??o.TransactionsDefaultTitles.pending,iconClassName:"warning"},d={id:c,icon:e.IconNamesEnum.close,title:s?.errorMessage??n??o.TransactionsDefaultTitles.failed,hasCloseButton:!0,iconClassName:"danger"},g={id:c,icon:e.IconNamesEnum.ban,title:s?.invalidMessage??n??o.TransactionsDefaultTitles.invalid,hasCloseButton:!0,iconClassName:"warning"},m={id:c,icon:e.IconNamesEnum.close,title:s?.timedOutMessage??n??o.TransactionsDefaultTitles.timedOut,hasCloseButton:!0,iconClassName:"warning"};switch(i){case e.TransactionBatchStatusesEnum.success:return a!==t?l:r;case e.TransactionBatchStatusesEnum.cancelled:case e.TransactionBatchStatusesEnum.fail:return d;case e.TransactionBatchStatusesEnum.timedOut:return m;case e.TransactionBatchStatusesEnum.invalid:return g;case e.TransactionBatchStatusesEnum.signed:case e.TransactionBatchStatusesEnum.sent:default:return T}};0&&(module.exports={getToastDataStateByStatus});
|
|
2
2
|
//# sourceMappingURL=getToastDataStateByStatus.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var u=(s,t)=>{for(var r in t)e(s,r,{get:t[r],enumerable:!0})},T=(s,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of c(t))!m.call(s,n)&&n!==r&&e(s,n,{get:()=>t[n],enumerable:!(a=i(t,n))||a.enumerable});return s};var S=s=>T(e({},"__esModule",{value:!0}),s);var f={};u(f,{getToastTransactionsStatus:()=>p});module.exports=S(f);var o=require("store/actions/transactions/transactionStateByStatus");const p=s=>{const t=s.filter(a=>!(0,o.isServerTransactionPending)(a.status)).length,r=s.length;return r===1&&t===1?(0,o.isServerTransactionPending)(s[0].status)?"Processing transaction":"Transaction processed":`${t} / ${r} transactions processed`};0&&(module.exports={getToastTransactionsStatus});
|
|
1
|
+
"use strict";var e=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var u=(s,t)=>{for(var r in t)e(s,r,{get:t[r],enumerable:!0})},T=(s,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of c(t))!m.call(s,n)&&n!==r&&e(s,n,{get:()=>t[n],enumerable:!(a=i(t,n))||a.enumerable});return s};var S=s=>T(e({},"__esModule",{value:!0}),s);var f={};u(f,{getToastTransactionsStatus:()=>p});module.exports=S(f);var o=require("../../../store/actions/transactions/transactionStateByStatus");const p=s=>{const t=s.filter(a=>!(0,o.isServerTransactionPending)(a.status)).length,r=s.length;return r===1&&t===1?(0,o.isServerTransactionPending)(s[0].status)?"Processing transaction":"Transaction processed":`${t} / ${r} transactions processed`};0&&(module.exports={getToastTransactionsStatus});
|
|
2
2
|
//# sourceMappingURL=getToastTransactionsStatus.cjs.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const cache: {
|
|
2
|
+
'transaction-bf1ee4d78ccc57cb81c945decd70678cebc5b8b919f8e3c8411f2b19ebdd6a6x': {
|
|
3
|
+
asset: null;
|
|
4
|
+
interactor: string;
|
|
5
|
+
directionLabel: string;
|
|
6
|
+
action: {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
amount: string;
|
|
10
|
+
hash: string;
|
|
11
|
+
status: string;
|
|
12
|
+
link: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TransactionServerStatusesEnum } from '../../../../../types/enums.types';
|
|
2
|
+
import { SessionTransactionType, SignedTransactionType } from '../../../../../types/transactions.types';
|
|
3
|
+
export declare const mockTransactionSession: {
|
|
4
|
+
transactions: SignedTransactionType[];
|
|
5
|
+
status: TransactionServerStatusesEnum;
|
|
6
|
+
transactionsDisplayInfo: {
|
|
7
|
+
processingMessage: string;
|
|
8
|
+
errorMessage: string;
|
|
9
|
+
successMessage: string;
|
|
10
|
+
};
|
|
11
|
+
interpretedTransactions: {};
|
|
12
|
+
errorMessage: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const mockTransactionSlice: Record<string, SessionTransactionType>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ToastManager';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a}from"../../__chunks__/chunk-
|
|
1
|
+
import{c as a}from"../../__chunks__/chunk-AQIZZ6YU.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-VA7KLP35.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import"../../__chunks__/chunk-MFGDF3HI.mjs";import"../../__chunks__/chunk-QFXS7HGL.mjs";import"../../__chunks__/chunk-W3S6I34V.mjs";import"../../__chunks__/chunk-DCLI63KS.mjs";import"../../__chunks__/chunk-QWBFB3BL.mjs";import"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-PKD3AEXI.mjs";import"../../__chunks__/chunk-CLUVDWX6.mjs";import"../../__chunks__/chunk-QDUNEKJW.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-RVW6Z4XY.mjs";import"../../__chunks__/chunk-E2GGD7D4.mjs";import"../../__chunks__/chunk-DKBOH236.mjs";import"../../__chunks__/chunk-SML7WOGP.mjs";import"../../__chunks__/chunk-FLFZN2T6.mjs";import"../../__chunks__/chunk-XXV6KGR4.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-M6MN4RXG.mjs";import"../../__chunks__/chunk-BFD5ZJOK.mjs";import"../../__chunks__/chunk-C23VOAOY.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-L7HC5J53.mjs";import"../../__chunks__/chunk-TWDQUDRP.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-22F6NHUW.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-4O27AVB7.mjs";import"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-5OMQOYP7.mjs";import"../../__chunks__/chunk-UCNS6KD5.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import"../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../__chunks__/chunk-BHWSBAMZ.mjs";import"../../__chunks__/chunk-6D53LH5J.mjs";import"../../__chunks__/chunk-H33OUO77.mjs";import"../../__chunks__/chunk-GFR6K4DR.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../__chunks__/chunk-ECDI66QL.mjs";import"../../__chunks__/chunk-6UMOECOW.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../__chunks__/chunk-YJCTRUJT.mjs";import"../../__chunks__/chunk-NGM3AVCY.mjs";import"../../__chunks__/chunk-VSOHM56Y.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LLVSK2AG.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-QNELH2S2.mjs";import"../../__chunks__/chunk-2JKCBTYK.mjs";import"../../__chunks__/chunk-OQURAWR4.mjs";import"../../__chunks__/chunk-PWAP64SN.mjs";import"../../__chunks__/chunk-O5PAMBB3.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-5NRAQWO4.mjs";import"../../__chunks__/chunk-YDR33UBM.mjs";export{a as ToastManager};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toast.types';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ITransactionListItem } from '../../../lib/sdkDappUi';
|
|
2
|
+
import { ServerTransactionType } from '../../../types/serverTransactions.types';
|
|
3
|
+
import { TransactionsDisplayInfoType } from '../../../types/transactions.types';
|
|
4
|
+
export declare enum TransactionsDefaultTitles {
|
|
5
|
+
success = "Transaction successful",
|
|
6
|
+
received = "Transaction received",
|
|
7
|
+
failed = "Transaction failed",
|
|
8
|
+
pending = "Processing transaction",
|
|
9
|
+
timedOut = "Transaction timed out",
|
|
10
|
+
invalid = "Transaction invalid"
|
|
11
|
+
}
|
|
12
|
+
export interface GetToastsOptionsDataPropsType {
|
|
13
|
+
address: string;
|
|
14
|
+
sender: string;
|
|
15
|
+
status?: ServerTransactionType['status'];
|
|
16
|
+
toastId: string;
|
|
17
|
+
transactionsDisplayInfo?: TransactionsDisplayInfoType;
|
|
18
|
+
txActionName?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IToastDataState {
|
|
21
|
+
id: string;
|
|
22
|
+
icon: string;
|
|
23
|
+
hasCloseButton: boolean;
|
|
24
|
+
title: string;
|
|
25
|
+
iconClassName: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ITransactionProgressState {
|
|
28
|
+
startTime: number;
|
|
29
|
+
endTime: number;
|
|
30
|
+
}
|
|
31
|
+
export interface ITransaction {
|
|
32
|
+
hash: string;
|
|
33
|
+
status: string;
|
|
34
|
+
link: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ITransactionToast {
|
|
37
|
+
toastId: string;
|
|
38
|
+
processedTransactionsStatus: string;
|
|
39
|
+
transactions: ITransactionListItem[];
|
|
40
|
+
toastDataState: IToastDataState;
|
|
41
|
+
transactionProgressState?: ITransactionProgressState | null;
|
|
42
|
+
}
|
|
43
|
+
export declare enum ToastEventsEnum {
|
|
44
|
+
OPEN_NOTIFICATIONS_FEED = "OPEN_NOTIFICATIONS_FEED",
|
|
45
|
+
CLOSE = "CLOSE_TOAST",
|
|
46
|
+
TRANSACTION_TOAST_DATA_UPDATE = "TRANSACTION_TOAST_DATA_UPDATE",
|
|
47
|
+
CUSTOM_TOAST_DATA_UPDATE = "CUSTOM_TOAST_DATA_UPDATE",
|
|
48
|
+
HIDE = "HIDE_TOAST_LIST",
|
|
49
|
+
SHOW = "SHOW_TOAST_LIST"
|
|
50
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var x=Object.create;var m=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var R=(n,t)=>{for(var a in t)m(n,a,{get:t[a],enumerable:!0})},b=(n,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of C(t))!N.call(n,r)&&r!==a&&m(n,r,{get:()=>t[r],enumerable:!(s=O(t,r))||s.enumerable});return n};var $=(n,t,a)=>(a=n!=null?x(F(n)):{},b(t||!n||!n.__esModule?m(a,"default",{value:n,enumerable:!0}):a,n)),q=n=>b(m({},"__esModule",{value:!0}),n);var j={};R(j,{TransactionManager:()=>S});module.exports=q(j);var g=$(require("axios")),I=require("constants/transactions.constants"),A=require("methods/account/getAccount"),w=require("store/actions/toasts/toastsActions"),v=require("store/actions/transactions/transactionsActions"),f=require("store/selectors/networkSelectors"),y=require("store/store"),c=require("types/enums.types"),B=require("utils/transactions/isGuardianTx"),k=require("./helpers/getToastDuration"),D=require("./helpers/getTransactionsStatus"),E=require("./helpers/isBatchTransaction"),l=require("./helpers/sessionCallbacks");const o=class o{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{(0,l.registerCallbacks)({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!(0,E.isBatchTransaction)(t))return await this.sendSignedTransactions(t);const a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{const s=this.sequentialToFlatArray(t).map(i=>({...i,status:i.status??c.TransactionServerStatusesEnum.pending})),r=(0,D.getTransactionsSessionStatus)(s),e=(0,v.createTransactionsSession)({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:r??c.TransactionBatchStatusesEnum.sent,sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return e;a.onSuccess&&(0,l.registerCallbacks)({onSuccess:a.onSuccess,sessionId:e}),a.onFail&&(0,l.registerCallbacks)({onFail:a.onFail,sessionId:e});const d=(0,k.getToastDuration)(t);return(0,w.addTransactionToast)({toastId:e,totalDuration:d}),e};this.sendSignedTransactions=async t=>{const{apiAddress:a,apiTimeout:s}=(0,f.networkSelector)((0,y.getState)());return await Promise.all(t.map(async e=>{const d=await g.default.post(`${a}/transactions`,e.toPlainObject(),{timeout:Number(s)}),i=d.data.txHash;return{...e.toPlainObject(),...d.data,status:c.TransactionServerStatusesEnum.pending,hash:i}}))};this.sendSignedBatchTransactions=async t=>{const{address:a}=(0,A.getAccount)(),{apiAddress:s,apiTimeout:r}=(0,f.networkSelector)((0,y.getState)());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};const e=this.buildBatchId(a),i={transactions:t.map(u=>u.map(T=>T.toPlainObject())),id:e},{data:h}=await g.default.post(`${s}/batch`,i,{timeout:Number(r)}),P=h.transactions.map(u=>u.map(T=>{const p={...T,status:c.TransactionServerStatusesEnum.pending,hash:T.hash};return(0,B.isGuardianTx)({data:p.data})&&(delete p.senderUsername,delete p.receiverUsername),p}));return{data:{...h,transactions:P}}};this.buildBatchId=t=>`${Date.now().toString()}${I.BATCH_TRANSACTIONS_ID_SEPARATOR}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return o.instance||(o.instance=new o),o.instance}};o.instance=null;let S=o;0&&(module.exports={TransactionManager});
|
|
1
|
+
"use strict";var x=Object.create;var m=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty;var R=(n,t)=>{for(var a in t)m(n,a,{get:t[a],enumerable:!0})},b=(n,t,a,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of C(t))!N.call(n,r)&&r!==a&&m(n,r,{get:()=>t[r],enumerable:!(s=O(t,r))||s.enumerable});return n};var $=(n,t,a)=>(a=n!=null?x(F(n)):{},b(t||!n||!n.__esModule?m(a,"default",{value:n,enumerable:!0}):a,n)),q=n=>b(m({},"__esModule",{value:!0}),n);var j={};R(j,{TransactionManager:()=>S});module.exports=q(j);var g=$(require("axios")),I=require("../../constants/transactions.constants"),A=require("../../methods/account/getAccount"),w=require("../../store/actions/toasts/toastsActions"),v=require("../../store/actions/transactions/transactionsActions"),f=require("../../store/selectors/networkSelectors"),y=require("../../store/store"),c=require("../../types/enums.types"),B=require("../../utils/transactions/isGuardianTx"),k=require("./helpers/getToastDuration"),D=require("./helpers/getTransactionsStatus"),E=require("./helpers/isBatchTransaction"),l=require("./helpers/sessionCallbacks");const o=class o{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{(0,l.registerCallbacks)({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!(0,E.isBatchTransaction)(t))return await this.sendSignedTransactions(t);const a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{const s=this.sequentialToFlatArray(t).map(i=>({...i,status:i.status??c.TransactionServerStatusesEnum.pending})),r=(0,D.getTransactionsSessionStatus)(s),e=(0,v.createTransactionsSession)({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:r??c.TransactionBatchStatusesEnum.sent,sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return e;a.onSuccess&&(0,l.registerCallbacks)({onSuccess:a.onSuccess,sessionId:e}),a.onFail&&(0,l.registerCallbacks)({onFail:a.onFail,sessionId:e});const d=(0,k.getToastDuration)(t);return(0,w.addTransactionToast)({toastId:e,totalDuration:d}),e};this.sendSignedTransactions=async t=>{const{apiAddress:a,apiTimeout:s}=(0,f.networkSelector)((0,y.getState)());return await Promise.all(t.map(async e=>{const d=await g.default.post(`${a}/transactions`,e.toPlainObject(),{timeout:Number(s)}),i=d.data.txHash;return{...e.toPlainObject(),...d.data,status:c.TransactionServerStatusesEnum.pending,hash:i}}))};this.sendSignedBatchTransactions=async t=>{const{address:a}=(0,A.getAccount)(),{apiAddress:s,apiTimeout:r}=(0,f.networkSelector)((0,y.getState)());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};const e=this.buildBatchId(a),i={transactions:t.map(u=>u.map(T=>T.toPlainObject())),id:e},{data:h}=await g.default.post(`${s}/batch`,i,{timeout:Number(r)}),P=h.transactions.map(u=>u.map(T=>{const p={...T,status:c.TransactionServerStatusesEnum.pending,hash:T.hash};return(0,B.isGuardianTx)({data:p.data})&&(delete p.senderUsername,delete p.receiverUsername),p}));return{data:{...h,transactions:P}}};this.buildBatchId=t=>`${Date.now().toString()}${I.BATCH_TRANSACTIONS_ID_SEPARATOR}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return o.instance||(o.instance=new o),o.instance}};o.instance=null;let S=o;0&&(module.exports={TransactionManager});
|
|
2
2
|
//# sourceMappingURL=TransactionManager.cjs.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Transaction } from '../../lib/sdkCore';
|
|
2
|
+
import { TransactionTrackingConfigType } from '../../methods/initApp/initApp.types';
|
|
3
|
+
import { SignedTransactionType } from '../../types/transactions.types';
|
|
4
|
+
import { TransactionManagerTrackOptionsType } from './TransactionManager.types';
|
|
5
|
+
export declare class TransactionManager {
|
|
6
|
+
private static instance;
|
|
7
|
+
static getInstance(): TransactionManager;
|
|
8
|
+
/**
|
|
9
|
+
* Set callbacks to be executed when the transaction session is successful or fails.
|
|
10
|
+
* It is analogous to the `onSuccess` and `onFail` callbacks set in the `initApp` method,
|
|
11
|
+
* as a way to override the global callbacks
|
|
12
|
+
* @param onSuccess - The callback to run when the transaction session is successful.
|
|
13
|
+
* @param onFail - The callback to run when the transaction session fails.
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* TransactionManager.setCallbacks({
|
|
17
|
+
* onSuccess: (sessionId) => {
|
|
18
|
+
* console.log('Transaction session successful', sessionId);
|
|
19
|
+
* },
|
|
20
|
+
* });
|
|
21
|
+
*/
|
|
22
|
+
setCallbacks: ({ onSuccess, onFail }: TransactionTrackingConfigType) => void;
|
|
23
|
+
send: (signedTransactions: Transaction[] | Transaction[][]) => Promise<SignedTransactionType[] | SignedTransactionType[][]>;
|
|
24
|
+
/**
|
|
25
|
+
* Track the status of a transaction session.
|
|
26
|
+
* @param sentTransactions - The transactions to track.
|
|
27
|
+
* @param options - The options for the transaction session.
|
|
28
|
+
* @returns The session id.
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const sessionId = await txManager.track(sentTransactions, {
|
|
32
|
+
* transactionsDisplayInfo: {
|
|
33
|
+
* errorMessage: 'Failed adding stake',
|
|
34
|
+
* successMessage: 'Stake successfully added',
|
|
35
|
+
* processingMessage: 'Staking in progress'
|
|
36
|
+
* },
|
|
37
|
+
* onSuccess: async(sessionId) => {
|
|
38
|
+
* console.log('Session successful', sessionId);
|
|
39
|
+
* },
|
|
40
|
+
* onFail: async(sessionId) => {
|
|
41
|
+
* console.log('Session failed', sessionId);
|
|
42
|
+
* }
|
|
43
|
+
* sessionInformation: {
|
|
44
|
+
* stakeAmount: '1000000000000000000000000'
|
|
45
|
+
* }
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
track: (sentTransactions: SignedTransactionType[] | SignedTransactionType[][], options?: TransactionManagerTrackOptionsType) => Promise<string>;
|
|
50
|
+
private readonly sendSignedTransactions;
|
|
51
|
+
private readonly sendSignedBatchTransactions;
|
|
52
|
+
private readonly buildBatchId;
|
|
53
|
+
private readonly sequentialToFlatArray;
|
|
54
|
+
private readonly getIsSequential;
|
|
55
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-QWVZ4NTR.mjs";import"../../__chunks__/chunk-Z72NFBTZ.mjs";import"../../__chunks__/chunk-CCD7PUHB.mjs";import"../../__chunks__/chunk-OE4JXDVW.mjs";import"../../__chunks__/chunk-EAJBSX6Y.mjs";import"../../__chunks__/chunk-TWYGNEQS.mjs";import"../../__chunks__/chunk-2VG3V3VD.mjs";import"../../__chunks__/chunk-E2GGD7D4.mjs";import"../../__chunks__/chunk-DKBOH236.mjs";import"../../__chunks__/chunk-FLFZN2T6.mjs";import"../../__chunks__/chunk-XELB2AVG.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-M6MN4RXG.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-NI7XCWV5.mjs";import"../../__chunks__/chunk-VSOHM56Y.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LLVSK2AG.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-OQURAWR4.mjs";import"../../__chunks__/chunk-PWAP64SN.mjs";import"../../__chunks__/chunk-O5PAMBB3.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-YDR33UBM.mjs";export{a as TransactionManager};
|
|
2
2
|
//# sourceMappingURL=TransactionManager.mjs.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CreateTransactionsSessionType } from '../../store/actions/transactions/transactionsActions';
|
|
2
|
+
import { SessionCallbacksType } from './helpers/sessionCallbacks';
|
|
3
|
+
export type TransactionManagerTrackOptionsType = {
|
|
4
|
+
disableToasts?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Optional custom information to be displayed in the toast notification.
|
|
7
|
+
*/
|
|
8
|
+
transactionsDisplayInfo?: CreateTransactionsSessionType['transactionsDisplayInfo'];
|
|
9
|
+
/**
|
|
10
|
+
* Optional custom information to be associated with the transaction session.
|
|
11
|
+
*/
|
|
12
|
+
sessionInformation?: CreateTransactionsSessionType['sessionInformation'];
|
|
13
|
+
/**
|
|
14
|
+
* Callback to be executed when the specific session id is successful
|
|
15
|
+
*/
|
|
16
|
+
onSuccess?: SessionCallbacksType['onSuccess'];
|
|
17
|
+
/**
|
|
18
|
+
* Callback to be executed when the specific session id is failed
|
|
19
|
+
*/
|
|
20
|
+
onFail?: SessionCallbacksType['onFail'];
|
|
21
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var g=(e,r)=>{for(var n in r)s(e,n,{get:r[n],enumerable:!0})},l=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of u(r))!T.call(e,o)&&o!==n&&s(e,o,{get:()=>r[o],enumerable:!(t=c(r,o))||t.enumerable});return e};var m=e=>l(s({},"__esModule",{value:!0}),e);var f={};g(f,{getAreTransactionsCrossShards:()=>p});module.exports=m(f);var i=require("utils/validation/isContract"),d=require("./isCrossShardTransaction");const p=(e,r=1)=>e?.length?e.reduce((n,{receiver:t,data:o})=>{const a=(0,i.getAddressFromDataField)({receiver:t,data:o??""});return a==null?n:n&&(0,d.isCrossShardTransaction)({receiverAddress:a,senderShard:r})},!0):!0;0&&(module.exports={getAreTransactionsCrossShards});
|
|
1
|
+
"use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var g=(e,r)=>{for(var n in r)s(e,n,{get:r[n],enumerable:!0})},l=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of u(r))!T.call(e,o)&&o!==n&&s(e,o,{get:()=>r[o],enumerable:!(t=c(r,o))||t.enumerable});return e};var m=e=>l(s({},"__esModule",{value:!0}),e);var f={};g(f,{getAreTransactionsCrossShards:()=>p});module.exports=m(f);var i=require("../../../utils/validation/isContract"),d=require("./isCrossShardTransaction");const p=(e,r=1)=>e?.length?e.reduce((n,{receiver:t,data:o})=>{const a=(0,i.getAddressFromDataField)({receiver:t,data:o??""});return a==null?n:n&&(0,d.isCrossShardTransaction)({receiverAddress:a,senderShard:r})},!0):!0;0&&(module.exports={getAreTransactionsCrossShards});
|
|
2
2
|
//# sourceMappingURL=getAreTransactionsCorssShards.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=(o,r)=>{for(var a in r)n(o,a,{get:r[a],enumerable:!0})},g=(o,r,a,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of d(r))!f.call(o,s)&&s!==a&&n(o,s,{get:()=>r[s],enumerable:!(i=p(r,s))||i.enumerable});return o};var u=o=>g(n({},"__esModule",{value:!0}),o);var C={};h(C,{getToastDuration:()=>A});module.exports=u(C);var t=require("constants/transactions.constants"),S=require("store/selectors/accountSelectors"),c=require("store/store"),e=require("./getAreTransactionsCorssShards"),m=require("./isBatchTransaction");const A=o=>{let r=0;const a=(0,S.accountSelector)((0,c.getState)())?.shard;return(0,m.isBatchTransaction)(o)?(o.forEach(s=>{const T=(0,e.getAreTransactionsCrossShards)(s,a);r+=T?t.CROSS_SHARD_ROUNDS*t.AVERAGE_TX_DURATION_MS:t.AVERAGE_TX_DURATION_MS}),r):(r=(0,e.getAreTransactionsCrossShards)(o,a)?t.CROSS_SHARD_ROUNDS*t.AVERAGE_TX_DURATION_MS:t.AVERAGE_TX_DURATION_MS,r)};0&&(module.exports={getToastDuration});
|
|
1
|
+
"use strict";var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var h=(o,r)=>{for(var a in r)n(o,a,{get:r[a],enumerable:!0})},g=(o,r,a,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of d(r))!f.call(o,s)&&s!==a&&n(o,s,{get:()=>r[s],enumerable:!(i=p(r,s))||i.enumerable});return o};var u=o=>g(n({},"__esModule",{value:!0}),o);var C={};h(C,{getToastDuration:()=>A});module.exports=u(C);var t=require("../../../constants/transactions.constants"),S=require("../../../store/selectors/accountSelectors"),c=require("../../../store/store"),e=require("./getAreTransactionsCorssShards"),m=require("./isBatchTransaction");const A=o=>{let r=0;const a=(0,S.accountSelector)((0,c.getState)())?.shard;return(0,m.isBatchTransaction)(o)?(o.forEach(s=>{const T=(0,e.getAreTransactionsCrossShards)(s,a);r+=T?t.CROSS_SHARD_ROUNDS*t.AVERAGE_TX_DURATION_MS:t.AVERAGE_TX_DURATION_MS}),r):(r=(0,e.getAreTransactionsCrossShards)(o,a)?t.CROSS_SHARD_ROUNDS*t.AVERAGE_TX_DURATION_MS:t.AVERAGE_TX_DURATION_MS,r)};0&&(module.exports={getToastDuration});
|
|
2
2
|
//# sourceMappingURL=getToastDuration.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../__chunks__/chunk-Z72NFBTZ.mjs";import"../../../__chunks__/chunk-CCD7PUHB.mjs";import"../../../__chunks__/chunk-OE4JXDVW.mjs";import"../../../__chunks__/chunk-EAJBSX6Y.mjs";import"../../../__chunks__/chunk-M6MN4RXG.mjs";import"../../../__chunks__/chunk-VSOHM56Y.mjs";import"../../../__chunks__/chunk-FK6DWWZF.mjs";import"../../../__chunks__/chunk-VNLGNNIL.mjs";import"../../../__chunks__/chunk-HDJOER66.mjs";import"../../../__chunks__/chunk-A7FTKX2A.mjs";import"../../../__chunks__/chunk-XKU5QBXG.mjs";import"../../../__chunks__/chunk-RIPIZH54.mjs";import"../../../__chunks__/chunk-APCGI2A5.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../../__chunks__/chunk-2DNGCNYM.mjs";import"../../../__chunks__/chunk-SQVKVA7X.mjs";import"../../../__chunks__/chunk-T2YPFNVM.mjs";import"../../../__chunks__/chunk-M7BM6QPB.mjs";import"../../../__chunks__/chunk-5N4F5T5L.mjs";import"../../../__chunks__/chunk-ONT6BGYB.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-I24YBVHK.mjs";import"../../../__chunks__/chunk-ZODTYAYF.mjs";import"../../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../../__chunks__/chunk-YMPZDHKF.mjs";import"../../../__chunks__/chunk-VKEESSBI.mjs";import"../../../__chunks__/chunk-DKX6JUT6.mjs";import"../../../__chunks__/chunk-LLVSK2AG.mjs";import"../../../__chunks__/chunk-KRWR77QE.mjs";import"../../../__chunks__/chunk-NB7A4C7L.mjs";import"../../../__chunks__/chunk-PJWJZHIS.mjs";import"../../../__chunks__/chunk-OQURAWR4.mjs";import"../../../__chunks__/chunk-PWAP64SN.mjs";import"../../../__chunks__/chunk-O5PAMBB3.mjs";import"../../../__chunks__/chunk-DA76AK4I.mjs";import"../../../__chunks__/chunk-NWJYEKI2.mjs";import"../../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../../__chunks__/chunk-YDR33UBM.mjs";export{a as getToastDuration};
|
|
2
2
|
//# sourceMappingURL=getToastDuration.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var f=(e,n)=>{for(var r in n)i(e,r,{get:n[r],enumerable:!0})},d=(e,n,r,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of c(n))!o.call(e,t)&&t!==r&&i(e,t,{get:()=>n[t],enumerable:!(u=l(n,t))||u.enumerable});return e};var T=e=>d(i({},"__esModule",{value:!0}),e);var S={};f(S,{getTransactionsSessionStatus:()=>m});module.exports=T(S);var s=require("store/actions/transactions/transactionStateByStatus"),a=require("types/enums.types");function m(e){return!e||e.length===0?a.TransactionBatchStatusesEnum.invalid:e.every(t=>(0,s.getIsTransactionSuccessful)(t.status))?a.TransactionBatchStatusesEnum.success:e.some(t=>(0,s.getIsTransactionFailed)(t.status))?a.TransactionBatchStatusesEnum.fail:e.every(t=>(0,s.getIsTransactionNotExecuted)(t.status))?a.TransactionBatchStatusesEnum.invalid:null}0&&(module.exports={getTransactionsSessionStatus});
|
|
1
|
+
"use strict";var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var f=(e,n)=>{for(var r in n)i(e,r,{get:n[r],enumerable:!0})},d=(e,n,r,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of c(n))!o.call(e,t)&&t!==r&&i(e,t,{get:()=>n[t],enumerable:!(u=l(n,t))||u.enumerable});return e};var T=e=>d(i({},"__esModule",{value:!0}),e);var S={};f(S,{getTransactionsSessionStatus:()=>m});module.exports=T(S);var s=require("../../../store/actions/transactions/transactionStateByStatus"),a=require("../../../types/enums.types");function m(e){return!e||e.length===0?a.TransactionBatchStatusesEnum.invalid:e.every(t=>(0,s.getIsTransactionSuccessful)(t.status))?a.TransactionBatchStatusesEnum.success:e.some(t=>(0,s.getIsTransactionFailed)(t.status))?a.TransactionBatchStatusesEnum.fail:e.every(t=>(0,s.getIsTransactionNotExecuted)(t.status))?a.TransactionBatchStatusesEnum.invalid:null}0&&(module.exports={getTransactionsSessionStatus});
|
|
2
2
|
//# sourceMappingURL=getTransactionsStatus.cjs.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TransactionBatchStatusesEnum } from '../../../types/enums.types';
|
|
2
|
+
import { SignedTransactionType } from '../../../types/transactions.types';
|
|
3
|
+
export declare function getTransactionsSessionStatus(transactions: SignedTransactionType[]): TransactionBatchStatusesEnum | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isBatchTransaction: <T>(transactions: T[] | T[][]) => transactions is T[][];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var S=(e,r)=>{for(var n in r)o(e,n,{get:r[n],enumerable:!0})},h=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of p(r))!u.call(e,s)&&s!==n&&o(e,s,{get:()=>r[s],enumerable:!(t=i(r,s))||t.enumerable});return e};var m=e=>h(o({},"__esModule",{value:!0}),e);var l={};S(l,{isCrossShardTransaction:()=>f});module.exports=m(l);var d=require("lib/sdkCore");function f({receiverAddress:e,senderShard:r,senderAddress:n}){const t=new d.AddressComputer;try{const s=new d.Address(e),a=t.getShardOfAddress(s);if(r==null&&n!=null){const c=new d.Address(n);return t.getShardOfAddress(c)!==a}return a!==r}catch{return!1}}0&&(module.exports={isCrossShardTransaction});
|
|
1
|
+
"use strict";var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var S=(e,r)=>{for(var n in r)o(e,n,{get:r[n],enumerable:!0})},h=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of p(r))!u.call(e,s)&&s!==n&&o(e,s,{get:()=>r[s],enumerable:!(t=i(r,s))||t.enumerable});return e};var m=e=>h(o({},"__esModule",{value:!0}),e);var l={};S(l,{isCrossShardTransaction:()=>f});module.exports=m(l);var d=require("../../../lib/sdkCore");function f({receiverAddress:e,senderShard:r,senderAddress:n}){const t=new d.AddressComputer;try{const s=new d.Address(e),a=t.getShardOfAddress(s);if(r==null&&n!=null){const c=new d.Address(n);return t.getShardOfAddress(c)!==a}return a!==r}catch{return!1}}0&&(module.exports={isCrossShardTransaction});
|
|
2
2
|
//# sourceMappingURL=isCrossShardTransaction.cjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface IsCrossShardTransactionPropsType {
|
|
2
|
+
receiverAddress: string;
|
|
3
|
+
senderShard?: number;
|
|
4
|
+
senderAddress?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function isCrossShardTransaction({ receiverAddress, senderShard, senderAddress }: IsCrossShardTransactionPropsType): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type SessionCallbacksType = {
|
|
2
|
+
onSuccess?: (sessionId: string) => Promise<void>;
|
|
3
|
+
onFail?: (sessionId: string) => Promise<void>;
|
|
4
|
+
};
|
|
5
|
+
export declare const getCallbacks: (sessionId?: string) => SessionCallbacksType;
|
|
6
|
+
export declare const registerCallbacks: ({ onSuccess, onFail, sessionId }: SessionCallbacksType & {
|
|
7
|
+
sessionId?: string;
|
|
8
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TransactionManager';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"../../__chunks__/chunk-
|
|
1
|
+
import{a as o}from"../../__chunks__/chunk-QWVZ4NTR.mjs";import"../../__chunks__/chunk-Z72NFBTZ.mjs";import"../../__chunks__/chunk-CCD7PUHB.mjs";import"../../__chunks__/chunk-OE4JXDVW.mjs";import"../../__chunks__/chunk-EAJBSX6Y.mjs";import"../../__chunks__/chunk-TWYGNEQS.mjs";import"../../__chunks__/chunk-2VG3V3VD.mjs";import"../../__chunks__/chunk-E2GGD7D4.mjs";import"../../__chunks__/chunk-DKBOH236.mjs";import"../../__chunks__/chunk-FLFZN2T6.mjs";import"../../__chunks__/chunk-XELB2AVG.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-M6MN4RXG.mjs";import"../../__chunks__/chunk-7VHTZYM2.mjs";import"../../__chunks__/chunk-NI7XCWV5.mjs";import"../../__chunks__/chunk-VSOHM56Y.mjs";import"../../__chunks__/chunk-FK6DWWZF.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-RIPIZH54.mjs";import"../../__chunks__/chunk-APCGI2A5.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-ONT6BGYB.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-LLVSK2AG.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-OQURAWR4.mjs";import"../../__chunks__/chunk-PWAP64SN.mjs";import"../../__chunks__/chunk-O5PAMBB3.mjs";import"../../__chunks__/chunk-DA76AK4I.mjs";import"../../__chunks__/chunk-NWJYEKI2.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-YDR33UBM.mjs";export{o as TransactionManager};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|