@multiversx/sdk-dapp 5.0.4 → 5.0.6
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-2IXNUCCN.mjs +2 -0
- package/out/__chunks__/chunk-2UCZ5FCD.mjs +2 -0
- package/out/__chunks__/chunk-35BOKOST.mjs +2 -0
- package/out/__chunks__/chunk-3JMCXLWZ.mjs +2 -0
- package/out/__chunks__/chunk-43AE4SYE.mjs +2 -0
- package/out/__chunks__/chunk-4JRZISC2.mjs +2 -0
- package/out/__chunks__/chunk-5ICRLXOJ.mjs +2 -0
- package/out/__chunks__/chunk-5ICRLXOJ.mjs.map +7 -0
- package/out/__chunks__/chunk-5MK24VWA.mjs +2 -0
- package/out/__chunks__/chunk-6EW6GJ7V.mjs +2 -0
- package/out/__chunks__/chunk-6IA3KJH5.mjs +2 -0
- package/out/__chunks__/chunk-6IUQY6KG.mjs +2 -0
- package/out/__chunks__/chunk-6QSLQLCT.mjs +2 -0
- package/out/__chunks__/chunk-6WQJAFR3.mjs +2 -0
- package/out/__chunks__/chunk-76URRONH.mjs +2 -0
- package/out/__chunks__/chunk-7AMGKXK6.mjs +2 -0
- package/out/__chunks__/chunk-7MSBLQYN.mjs +2 -0
- package/out/__chunks__/chunk-7O5OCSV5.mjs +2 -0
- package/out/__chunks__/chunk-7PW3YJZS.mjs +2 -0
- package/out/__chunks__/chunk-7TVD3ZGR.mjs +2 -0
- package/out/__chunks__/chunk-A2X4YMKK.mjs +2 -0
- package/out/__chunks__/chunk-AHSGP7ST.mjs +2 -0
- package/out/__chunks__/chunk-AJVTGCVH.mjs +2 -0
- package/out/__chunks__/chunk-AZNMWFIR.mjs +2 -0
- package/out/__chunks__/chunk-CAN6BBUW.mjs +2 -0
- package/out/__chunks__/chunk-CDQ2BNUD.mjs +2 -0
- package/out/__chunks__/chunk-DDNM2ZMJ.mjs +2 -0
- package/out/__chunks__/chunk-DNRFH2DR.mjs +2 -0
- package/out/__chunks__/chunk-EK3WITBG.mjs +2 -0
- package/out/__chunks__/chunk-ER7VDELK.mjs +2 -0
- package/out/__chunks__/chunk-EWXBNG6L.mjs +2 -0
- package/out/__chunks__/chunk-FKCGBCKV.mjs +2 -0
- package/out/__chunks__/chunk-FKIAOXUE.mjs +2 -0
- package/out/__chunks__/chunk-FSHVZP64.mjs +2 -0
- package/out/__chunks__/chunk-G4Z3ZQR6.mjs +2 -0
- package/out/__chunks__/chunk-GNF74ZRR.mjs +2 -0
- package/out/__chunks__/chunk-GUPYIQ3X.mjs +2 -0
- package/out/__chunks__/chunk-H3IUSXHL.mjs +2 -0
- package/out/__chunks__/chunk-HVV5PW3F.mjs +2 -0
- package/out/__chunks__/chunk-HVV5PW3F.mjs.map +7 -0
- package/out/__chunks__/chunk-HZUUV4N4.mjs +2 -0
- package/out/__chunks__/chunk-IHPROMZ4.mjs +2 -0
- package/out/__chunks__/chunk-IS62JDWR.mjs +2 -0
- package/out/__chunks__/chunk-J7GHXLMR.mjs +2 -0
- package/out/__chunks__/chunk-JD2VRDU7.mjs +2 -0
- package/out/__chunks__/chunk-JHG4SR7C.mjs +2 -0
- package/out/__chunks__/chunk-JLSMK3B2.mjs +2 -0
- package/out/__chunks__/chunk-JLSMK3B2.mjs.map +7 -0
- package/out/__chunks__/chunk-JOVG7EB7.mjs +2 -0
- package/out/__chunks__/chunk-JXNX2DMF.mjs +2 -0
- package/out/__chunks__/chunk-L34S5ELK.mjs +2 -0
- package/out/__chunks__/chunk-LD6GIQXR.mjs +2 -0
- package/out/__chunks__/chunk-LJKBU76G.mjs +2 -0
- package/out/__chunks__/chunk-MKIQ2XH4.mjs +2 -0
- package/out/__chunks__/chunk-N6IZYQLD.mjs +2 -0
- package/out/__chunks__/chunk-N7FAJ2VG.mjs +2 -0
- package/out/__chunks__/chunk-NR34QIVY.mjs +2 -0
- package/out/__chunks__/chunk-OA7DW77N.mjs +2 -0
- package/out/__chunks__/chunk-OAEQGL6W.mjs +2 -0
- package/out/__chunks__/chunk-OLXHHD4T.mjs +2 -0
- package/out/__chunks__/chunk-OYYE3JKS.mjs +2 -0
- package/out/__chunks__/chunk-P7KN75HA.mjs +2 -0
- package/out/__chunks__/chunk-PLUWBWJ2.mjs +2 -0
- package/out/__chunks__/chunk-PLUWBWJ2.mjs.map +7 -0
- package/out/__chunks__/chunk-PPRG5EYX.mjs +2 -0
- package/out/__chunks__/chunk-Q5RVUCNS.mjs +2 -0
- package/out/__chunks__/chunk-QFW3NRHJ.mjs +2 -0
- package/out/__chunks__/chunk-QJBNDKHF.mjs +2 -0
- package/out/__chunks__/chunk-QNJDXBR6.mjs +2 -0
- package/out/__chunks__/chunk-QVOHFS6Q.mjs +2 -0
- package/out/__chunks__/chunk-RO37MX5Y.mjs +2 -0
- package/out/__chunks__/chunk-SGN6MYFW.mjs +2 -0
- package/out/__chunks__/chunk-SNJZSRF3.mjs +2 -0
- package/out/__chunks__/chunk-SUOUG7EQ.mjs +2 -0
- package/out/__chunks__/chunk-SUOUG7EQ.mjs.map +7 -0
- package/out/__chunks__/chunk-T6PE5QT2.mjs +2 -0
- package/out/__chunks__/chunk-TJW7RKOI.mjs +2 -0
- package/out/__chunks__/chunk-ULT7BJCN.mjs +2 -0
- package/out/__chunks__/chunk-UV4LRORN.mjs +2 -0
- package/out/__chunks__/chunk-UV4LRORN.mjs.map +7 -0
- package/out/__chunks__/chunk-UXJIZKTT.mjs +2 -0
- package/out/__chunks__/chunk-V53EFJQZ.mjs +2 -0
- package/out/__chunks__/chunk-W5LWBGZ4.mjs +2 -0
- package/out/__chunks__/chunk-WCRS5CLZ.mjs +2 -0
- package/out/__chunks__/chunk-WNKKBV76.mjs +2 -0
- package/out/__chunks__/chunk-WWNT4K25.mjs +2 -0
- package/out/__chunks__/chunk-X3BMMYMU.mjs +2 -0
- package/out/__chunks__/chunk-XXILUGAY.mjs +2 -0
- package/out/__chunks__/chunk-YBLDHLHP.mjs +2 -0
- package/out/__chunks__/chunk-Z3SM2MSZ.mjs +2 -0
- package/out/__chunks__/chunk-ZFM5CMB7.mjs +2 -0
- package/out/__chunks__/chunk-ZP2E2Y6Y.mjs +2 -0
- package/out/__mocks__/accountConfig.cjs +37 -0
- package/out/__mocks__/accountConfig.cjs.map +7 -0
- package/out/__mocks__/data/account.cjs +38 -0
- package/out/__mocks__/data/account.cjs.map +7 -0
- package/out/__mocks__/data/blocks.cjs +34 -0
- package/out/__mocks__/data/blocks.cjs.map +7 -0
- package/out/__mocks__/data/dappConfig.cjs +43 -0
- package/out/__mocks__/data/dappConfig.cjs.map +7 -0
- package/out/__mocks__/data/index.cjs +35 -0
- package/out/__mocks__/data/index.cjs.map +7 -0
- package/out/__mocks__/data/networkConfig.cjs +56 -0
- package/out/__mocks__/data/networkConfig.cjs.map +7 -0
- package/out/__mocks__/data/socketResponse.cjs +35 -0
- package/out/__mocks__/data/socketResponse.cjs.map +7 -0
- package/out/__mocks__/data/websocketConfig.cjs +29 -0
- package/out/__mocks__/data/websocketConfig.cjs.map +7 -0
- package/out/__mocks__/data/wrapEgldContract.cjs +54 -0
- package/out/__mocks__/data/wrapEgldContract.cjs.map +7 -0
- package/out/__mocks__/index.cjs +27 -0
- package/out/__mocks__/index.cjs.map +7 -0
- package/out/__mocks__/server.cjs +65 -0
- package/out/__mocks__/server.cjs.map +7 -0
- package/out/__mocks__/utils/index.cjs +25 -0
- package/out/__mocks__/utils/index.cjs.map +7 -0
- package/out/__mocks__/utils/mockWindowHistory.cjs +45 -0
- package/out/__mocks__/utils/mockWindowHistory.cjs.map +7 -0
- package/out/__mocks__/utils/mockWindowLocation.cjs +45 -0
- package/out/__mocks__/utils/mockWindowLocation.cjs.map +7 -0
- package/out/apiCalls/account/getAccountFromApi.cjs +60 -0
- package/out/apiCalls/account/getAccountFromApi.cjs.map +7 -0
- package/out/apiCalls/account/getScamAddressData.cjs +52 -0
- package/out/apiCalls/account/getScamAddressData.cjs.map +7 -0
- package/out/apiCalls/account/getScamAddressData.mjs +1 -1
- package/out/apiCalls/account/index.cjs +23 -0
- package/out/apiCalls/account/index.cjs.map +7 -0
- package/out/apiCalls/configuration/getCleanApiAddress.cjs +35 -0
- package/out/apiCalls/configuration/getCleanApiAddress.cjs.map +7 -0
- package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
- package/out/apiCalls/configuration/getGasStationMetadata.cjs +65 -0
- package/out/apiCalls/configuration/getGasStationMetadata.cjs.map +7 -0
- package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
- package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs +62 -0
- package/out/apiCalls/configuration/getNetworkConfigFromApi.cjs.map +7 -0
- package/out/apiCalls/configuration/getServerConfiguration.cjs +66 -0
- package/out/apiCalls/configuration/getServerConfiguration.cjs.map +7 -0
- package/out/apiCalls/configuration/index.cjs +25 -0
- package/out/apiCalls/configuration/index.cjs.map +7 -0
- package/out/apiCalls/economics/getEconomics.cjs +55 -0
- package/out/apiCalls/economics/getEconomics.cjs.map +7 -0
- package/out/apiCalls/endpoints.cjs +101 -0
- package/out/apiCalls/endpoints.cjs.map +7 -0
- package/out/apiCalls/index.cjs +33 -0
- package/out/apiCalls/index.cjs.map +7 -0
- package/out/apiCalls/index.mjs +1 -1
- package/out/apiCalls/tokens/getPersistedToken.cjs +43 -0
- package/out/apiCalls/tokens/getPersistedToken.cjs.map +7 -0
- package/out/apiCalls/tokens/getPersistedTokenDetails.cjs +73 -0
- package/out/apiCalls/tokens/getPersistedTokenDetails.cjs.map +7 -0
- package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/getTokenDetails.cjs +75 -0
- package/out/apiCalls/tokens/getTokenDetails.cjs.map +7 -0
- package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
- package/out/apiCalls/tokens/index.cjs +23 -0
- package/out/apiCalls/tokens/index.cjs.map +7 -0
- package/out/apiCalls/tokens/index.mjs +1 -1
- package/out/apiCalls/tokens/tokenDataStorage.cjs +59 -0
- package/out/apiCalls/tokens/tokenDataStorage.cjs.map +7 -0
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs +55 -0
- package/out/apiCalls/transactions/getServerTransactionsByHashes.cjs.map +7 -0
- package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/transactions/getTransactionByHash.cjs +52 -0
- package/out/apiCalls/transactions/getTransactionByHash.cjs.map +7 -0
- package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
- package/out/apiCalls/transactions/getTransactions.cjs +77 -0
- package/out/apiCalls/transactions/getTransactions.cjs.map +7 -0
- package/out/apiCalls/transactions/getTransactionsByHashes.cjs +48 -0
- package/out/apiCalls/transactions/getTransactionsByHashes.cjs.map +7 -0
- package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
- package/out/apiCalls/utils/axiosFetcher.cjs +30 -0
- package/out/apiCalls/utils/axiosFetcher.cjs.map +7 -0
- package/out/apiCalls/utils/axiosInstance.cjs +106 -0
- package/out/apiCalls/utils/axiosInstance.cjs.map +7 -0
- package/out/apiCalls/utils/getCleanApiAddress.cjs +31 -0
- package/out/apiCalls/utils/getCleanApiAddress.cjs.map +7 -0
- package/out/apiCalls/utils/index.cjs +27 -0
- package/out/apiCalls/utils/index.cjs.map +7 -0
- package/out/apiCalls/websocket/getWebsocketUrl.cjs +50 -0
- package/out/apiCalls/websocket/getWebsocketUrl.cjs.map +7 -0
- package/out/apiCalls/websocket/index.cjs +23 -0
- package/out/apiCalls/websocket/index.cjs.map +7 -0
- package/out/constants/UITags.enum.cjs +38 -0
- package/out/constants/UITags.enum.cjs.map +7 -0
- package/out/constants/browser.constants.cjs +35 -0
- package/out/constants/browser.constants.cjs.map +7 -0
- package/out/constants/browser.constants.mjs +1 -1
- package/out/constants/index.cjs +41 -0
- package/out/constants/index.cjs.map +7 -0
- package/out/constants/index.mjs +1 -1
- package/out/constants/ledger.constants.cjs +132 -0
- package/out/constants/ledger.constants.cjs.map +7 -0
- package/out/constants/mvx.constants.cjs +59 -0
- package/out/constants/mvx.constants.cjs.map +7 -0
- package/out/constants/network.constants.cjs +114 -0
- package/out/constants/network.constants.cjs.map +7 -0
- package/out/constants/placeholders.constants.cjs +35 -0
- package/out/constants/placeholders.constants.cjs.map +7 -0
- package/out/constants/providerFactory.constants.cjs +39 -0
- package/out/constants/providerFactory.constants.cjs.map +7 -0
- package/out/constants/providerFactory.constants.mjs +1 -1
- package/out/constants/storage.constants.cjs +41 -0
- package/out/constants/storage.constants.cjs.map +7 -0
- package/out/constants/storage.constants.mjs +1 -1
- package/out/constants/transactions.constants.cjs +62 -0
- package/out/constants/transactions.constants.cjs.map +7 -0
- package/out/constants/walletConnect.constants.cjs +33 -0
- package/out/constants/walletConnect.constants.cjs.map +7 -0
- package/out/constants/webWalletProvider.constants.cjs +47 -0
- package/out/constants/webWalletProvider.constants.cjs.map +7 -0
- package/out/constants/websocket.constants.cjs +40 -0
- package/out/constants/websocket.constants.cjs.map +7 -0
- package/out/constants/window.constants.cjs +32 -0
- package/out/constants/window.constants.cjs.map +7 -0
- package/out/constants/window.constants.mjs +1 -1
- package/out/controllers/FormatAmountController/FormatAmountController.cjs +58 -0
- package/out/controllers/FormatAmountController/FormatAmountController.cjs.map +7 -0
- package/out/controllers/FormatAmountController/index.cjs +23 -0
- package/out/controllers/FormatAmountController/index.cjs.map +7 -0
- package/out/controllers/FormatAmountController/types.cjs +17 -0
- package/out/controllers/FormatAmountController/types.cjs.map +7 -0
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs +35 -0
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.cjs.map +7 -0
- package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
- package/out/controllers/TransactionsHistoryController/index.cjs +23 -0
- package/out/controllers/TransactionsHistoryController/index.cjs.map +7 -0
- package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +131 -0
- package/out/controllers/TransactionsTableController/TransactionsTableController.cjs.map +7 -0
- package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
- package/out/controllers/TransactionsTableController/index.cjs +23 -0
- package/out/controllers/TransactionsTableController/index.cjs.map +7 -0
- package/out/controllers/TransactionsTableController/index.mjs +1 -1
- package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs +17 -0
- package/out/controllers/TransactionsTableController/transactionsTableController.types.cjs.map +7 -0
- package/out/controllers/index.cjs +23 -0
- package/out/controllers/index.cjs.map +7 -0
- package/out/index.cjs +33 -0
- package/out/index.cjs.map +7 -0
- package/out/index.mjs +1 -1
- package/out/lib/sdkCore.cjs +47 -0
- package/out/lib/sdkCore.cjs.map +7 -0
- package/out/lib/sdkDappUi.cjs +54 -0
- package/out/lib/sdkDappUi.cjs.map +7 -0
- package/out/lib/sdkDappUi.mjs +1 -1
- package/out/lib/sdkDappUtils.cjs +45 -0
- package/out/lib/sdkDappUtils.cjs.map +7 -0
- package/out/lib/sdkWebWalletCrossWindowProvider.cjs +34 -0
- package/out/lib/sdkWebWalletCrossWindowProvider.cjs.map +7 -0
- package/out/lib/sdkWebWalletIframeProvider.cjs +29 -0
- package/out/lib/sdkWebWalletIframeProvider.cjs.map +7 -0
- package/out/lib/sdkWebviewProvider.cjs +29 -0
- package/out/lib/sdkWebviewProvider.cjs.map +7 -0
- package/out/managers/LogoutManager/LogoutManager.cjs +168 -0
- package/out/managers/LogoutManager/LogoutManager.cjs.map +7 -0
- package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs +57 -0
- package/out/managers/LogoutManager/helpers/getHumanReadableTokenExpirationTime.cjs.map +7 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs +158 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.cjs.map +7 -0
- package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
- package/out/managers/NotificationsFeedManager/index.cjs +25 -0
- package/out/managers/NotificationsFeedManager/index.cjs.map +7 -0
- package/out/managers/NotificationsFeedManager/index.mjs +1 -1
- package/out/managers/NotificationsFeedManager/types/index.cjs +23 -0
- package/out/managers/NotificationsFeedManager/types/index.cjs.map +7 -0
- package/out/managers/NotificationsFeedManager/types/notifications.types.cjs +36 -0
- package/out/managers/NotificationsFeedManager/types/notifications.types.cjs.map +7 -0
- package/out/managers/TransactionManager/TransactionManager.cjs +198 -0
- package/out/managers/TransactionManager/TransactionManager.cjs.map +7 -0
- package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
- package/out/managers/TransactionManager/TransactionManager.types.cjs +17 -0
- package/out/managers/TransactionManager/TransactionManager.types.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs +51 -0
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs +53 -0
- package/out/managers/TransactionManager/helpers/getToastDuration.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs +54 -0
- package/out/managers/TransactionManager/helpers/getTransactionsStatus.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs +31 -0
- package/out/managers/TransactionManager/helpers/isBatchTransaction.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs +48 -0
- package/out/managers/TransactionManager/helpers/isCrossShardTransaction.cjs.map +7 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs +42 -0
- package/out/managers/TransactionManager/helpers/sessionCallbacks.cjs.map +7 -0
- package/out/managers/TransactionManager/index.cjs +23 -0
- package/out/managers/TransactionManager/index.cjs.map +7 -0
- package/out/managers/TransactionManager/index.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs +168 -0
- package/out/managers/UnlockPanelManager/UnlockPanelManager.cjs.map +7 -0
- package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs +37 -0
- package/out/managers/UnlockPanelManager/UnlockPanelManager.types.cjs.map +7 -0
- package/out/managers/UnlockPanelManager/index.cjs +23 -0
- package/out/managers/UnlockPanelManager/index.cjs.map +7 -0
- package/out/managers/UnlockPanelManager/index.mjs +1 -1
- package/out/managers/index.cjs +25 -0
- package/out/managers/index.cjs.map +7 -0
- package/out/managers/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs +215 -0
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.cjs.map +7 -0
- package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/index.cjs +25 -0
- package/out/managers/internal/LedgerConnectStateManager/index.cjs.map +7 -0
- package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/LedgerConnectStateManager/types/index.cjs +23 -0
- package/out/managers/internal/LedgerConnectStateManager/types/index.cjs.map +7 -0
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs +37 -0
- package/out/managers/internal/LedgerConnectStateManager/types/ledgerConnectEvents.enum.cjs.map +7 -0
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs +125 -0
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.cjs.map +7 -0
- package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs +59 -0
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.cjs.map +7 -0
- package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/index.cjs +25 -0
- package/out/managers/internal/PendingTransactionsStateManager/index.cjs.map +7 -0
- package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs +23 -0
- package/out/managers/internal/PendingTransactionsStateManager/types/index.cjs.map +7 -0
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs +33 -0
- package/out/managers/internal/PendingTransactionsStateManager/types/pendingTransactions.types.cjs.map +7 -0
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs +63 -0
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.cjs.map +7 -0
- package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
- package/out/managers/internal/SidePanelBaseManager/index.cjs +23 -0
- package/out/managers/internal/SidePanelBaseManager/index.cjs.map +7 -0
- package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs +139 -0
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.cjs.map +7 -0
- package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/index.cjs +23 -0
- package/out/managers/internal/SignTransactionsStateManager/index.cjs.map +7 -0
- package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
- package/out/managers/internal/SignTransactionsStateManager/types/index.cjs +23 -0
- package/out/managers/internal/SignTransactionsStateManager/types/index.cjs.map +7 -0
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs +37 -0
- package/out/managers/internal/SignTransactionsStateManager/types/signTransactionsPanel.types.cjs.map +7 -0
- package/out/managers/internal/ToastManager/ToastManager.cjs +268 -0
- package/out/managers/internal/ToastManager/ToastManager.cjs.map +7 -0
- package/out/managers/internal/ToastManager/ToastManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.cjs +72 -0
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.cjs.map +7 -0
- package/out/managers/internal/ToastManager/helpers/LifetimeManager.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.cjs +88 -0
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.cjs.map +7 -0
- package/out/managers/internal/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs +61 -0
- package/out/managers/internal/ToastManager/helpers/createTransactionToast.cjs.map +7 -0
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.cjs +104 -0
- package/out/managers/internal/ToastManager/helpers/getToastDataStateByStatus.cjs.map +7 -0
- package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.cjs +41 -0
- package/out/managers/internal/ToastManager/helpers/getToastTransactionsStatus.cjs.map +7 -0
- package/out/managers/internal/ToastManager/types/index.cjs +23 -0
- package/out/managers/internal/ToastManager/types/index.cjs.map +7 -0
- package/out/managers/internal/ToastManager/types/toast.types.cjs +48 -0
- package/out/managers/internal/ToastManager/types/toast.types.cjs.map +7 -0
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs +103 -0
- package/out/managers/internal/UIBaseManager/UIBaseManager.cjs.map +7 -0
- package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs +79 -0
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.cjs.map +7 -0
- package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
- package/out/managers/internal/WalletConnectStateManager/index.cjs +23 -0
- package/out/managers/internal/WalletConnectStateManager/index.cjs.map +7 -0
- package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
- package/out/managers/internal/index.cjs +38 -0
- package/out/managers/internal/index.cjs.map +7 -0
- package/out/managers/internal/index.mjs +1 -1
- package/out/methods/account/getAccount.cjs +33 -0
- package/out/methods/account/getAccount.cjs.map +7 -0
- package/out/methods/account/getAccount.mjs +1 -1
- package/out/methods/account/getAccountInfo.cjs +33 -0
- package/out/methods/account/getAccountInfo.cjs.map +7 -0
- package/out/methods/account/getAccountInfo.mjs +1 -1
- package/out/methods/account/getAddress.cjs +33 -0
- package/out/methods/account/getAddress.cjs.map +7 -0
- package/out/methods/account/getAddress.mjs +1 -1
- package/out/methods/account/getIsLoggedIn.cjs +33 -0
- package/out/methods/account/getIsLoggedIn.cjs.map +7 -0
- package/out/methods/account/getIsLoggedIn.mjs +1 -1
- package/out/methods/account/getLatestNonce.cjs +55 -0
- package/out/methods/account/getLatestNonce.cjs.map +7 -0
- package/out/methods/account/getLatestNonce.mjs +1 -1
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs +62 -0
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.cjs.map +7 -0
- package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
- package/out/methods/initApp/initApp.cjs +113 -0
- package/out/methods/initApp/initApp.cjs.map +7 -0
- package/out/methods/initApp/initApp.mjs +1 -1
- package/out/methods/initApp/initApp.types.cjs +17 -0
- package/out/methods/initApp/initApp.types.cjs.map +7 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs +173 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.cjs.map +7 -0
- package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
- package/out/methods/initApp/websocket/registerWebsocket.cjs +38 -0
- package/out/methods/initApp/websocket/registerWebsocket.cjs.map +7 -0
- package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
- package/out/methods/loginInfo/getLoginInfo.cjs +37 -0
- package/out/methods/loginInfo/getLoginInfo.cjs.map +7 -0
- package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
- package/out/methods/network/getEgldLabel.cjs +33 -0
- package/out/methods/network/getEgldLabel.cjs.map +7 -0
- package/out/methods/network/getEgldLabel.mjs +1 -1
- package/out/methods/network/getExplorerAddress.cjs +33 -0
- package/out/methods/network/getExplorerAddress.cjs.map +7 -0
- package/out/methods/network/getExplorerAddress.mjs +1 -1
- package/out/methods/network/getNetworkConfig.cjs +33 -0
- package/out/methods/network/getNetworkConfig.cjs.map +7 -0
- package/out/methods/network/getNetworkConfig.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs +147 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs +44 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs +41 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/getPendingTransactions.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs +23 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs +58 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs +50 -0
- package/out/methods/trackTransactions/helpers/checkTransactionStatus/runSessionCallbacks.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs +38 -0
- package/out/methods/trackTransactions/helpers/getPollingInterval.cjs.map +7 -0
- package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
- package/out/methods/trackTransactions/trackTransactions.cjs +118 -0
- package/out/methods/trackTransactions/trackTransactions.cjs.map +7 -0
- package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactions.cjs +33 -0
- package/out/methods/transactions/getFailedTransactions.cjs.map +7 -0
- package/out/methods/transactions/getFailedTransactions.mjs +1 -1
- package/out/methods/transactions/getFailedTransactionsSessions.cjs +33 -0
- package/out/methods/transactions/getFailedTransactionsSessions.cjs.map +7 -0
- package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactions.cjs +33 -0
- package/out/methods/transactions/getPendingTransactions.cjs.map +7 -0
- package/out/methods/transactions/getPendingTransactions.mjs +1 -1
- package/out/methods/transactions/getPendingTransactionsSessions.cjs +33 -0
- package/out/methods/transactions/getPendingTransactionsSessions.cjs.map +7 -0
- package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactions.cjs +33 -0
- package/out/methods/transactions/getSuccessfulTransactions.cjs.map +7 -0
- package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
- package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs +33 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.cjs.map +7 -0
- package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
- package/out/methods/transactions/getTransactionSessions.cjs +33 -0
- package/out/methods/transactions/getTransactionSessions.cjs.map +7 -0
- package/out/methods/transactions/getTransactionSessions.mjs +1 -1
- package/out/providers/DappProvider/DappProvider.cjs +113 -0
- package/out/providers/DappProvider/DappProvider.cjs.map +7 -0
- package/out/providers/DappProvider/DappProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs +37 -0
- package/out/providers/DappProvider/helpers/computeNonces/computeNonce.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs +47 -0
- package/out/providers/DappProvider/helpers/computeNonces/computeNonces.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs +67 -0
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs +45 -0
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs +45 -0
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs +56 -0
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
- package/out/providers/DappProvider/helpers/login/login.cjs +122 -0
- package/out/providers/DappProvider/helpers/login/login.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
- package/out/providers/DappProvider/helpers/logout/logout.cjs +64 -0
- package/out/providers/DappProvider/helpers/logout/logout.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs +79 -0
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs +33 -0
- package/out/providers/DappProvider/helpers/signMessage/getVerifier.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs +43 -0
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs +61 -0
- package/out/providers/DappProvider/helpers/signMessage/verifyMessage.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs +59 -0
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.cjs.map +7 -0
- package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
- package/out/providers/DappProvider/index.cjs +23 -0
- package/out/providers/DappProvider/index.cjs.map +7 -0
- package/out/providers/DappProvider/index.mjs +1 -1
- package/out/providers/ProviderFactory.cjs +131 -0
- package/out/providers/ProviderFactory.cjs.map +7 -0
- package/out/providers/ProviderFactory.mjs +1 -1
- package/out/providers/helpers/accountProvider.cjs +39 -0
- package/out/providers/helpers/accountProvider.cjs.map +7 -0
- package/out/providers/helpers/accountProvider.mjs +1 -1
- package/out/providers/helpers/cancelCrossWindowAction.cjs +38 -0
- package/out/providers/helpers/cancelCrossWindowAction.cjs.map +7 -0
- package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
- package/out/providers/helpers/clearInitiatedLogins.cjs +58 -0
- package/out/providers/helpers/clearInitiatedLogins.cjs.map +7 -0
- package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
- package/out/providers/helpers/emptyProvider.cjs +107 -0
- package/out/providers/helpers/emptyProvider.cjs.map +7 -0
- package/out/providers/helpers/emptyProvider.mjs +1 -1
- package/out/providers/helpers/restoreProvider.cjs +53 -0
- package/out/providers/helpers/restoreProvider.cjs.map +7 -0
- package/out/providers/helpers/restoreProvider.mjs +1 -1
- package/out/providers/index.cjs +32 -0
- package/out/providers/index.cjs.map +7 -0
- package/out/providers/index.mjs +1 -1
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs +130 -0
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs +107 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
- package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs +23 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs +97 -0
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
- package/out/providers/strategies/ExtensionProviderStrategy/index.cjs +23 -0
- package/out/providers/strategies/ExtensionProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +121 -0
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/index.cjs +25 -0
- package/out/providers/strategies/IframeProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs +17 -0
- package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs.map +7 -0
- package/out/providers/strategies/IframeProviderStrategy/types/index.cjs +23 -0
- package/out/providers/strategies/IframeProviderStrategy/types/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs +182 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs +125 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs +69 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs +38 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs +48 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerErrorCodes.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs +81 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs +83 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs +33 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs +66 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs +62 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/secondsToTimeString.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs +47 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs +23 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs +122 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs +17 -0
- package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.types.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/index.cjs +25 -0
- package/out/providers/strategies/LedgerProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs +23 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/index.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs +38 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledger.types.cjs.map +7 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs +17 -0
- package/out/providers/strategies/LedgerProviderStrategy/types/ledgerProvider.types.cjs.map +7 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs +281 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs +25 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs +23 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/index.cjs.map +7 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs +49 -0
- package/out/providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs +186 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs +23 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs +98 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
- package/out/providers/strategies/WebviewProviderStrategy/index.cjs +23 -0
- package/out/providers/strategies/WebviewProviderStrategy/index.cjs.map +7 -0
- package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs +42 -0
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.cjs.map +7 -0
- package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
- package/out/providers/strategies/helpers/index.cjs +29 -0
- package/out/providers/strategies/helpers/index.cjs.map +7 -0
- package/out/providers/strategies/helpers/index.mjs +1 -1
- package/out/providers/strategies/helpers/signMessage/signMessage.cjs +84 -0
- package/out/providers/strategies/helpers/signMessage/signMessage.cjs.map +7 -0
- package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs +51 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeInFiat.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs +87 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +183 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs +39 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/checkIsValidSender.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs +266 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/decodeDataField.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs +94 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs +34 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getHighlight.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs +93 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getPpuOptions.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs +44 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getRecommendedGasPrice.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs +40 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getScCall.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs +39 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTokenType.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs +51 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getTxInfoByDataField.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs +55 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs +36 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/getMultiEsdtTransferData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs +37 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getAllStringOccurrences.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs +127 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/getTokenFromData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs +119 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferData.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs +87 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/getMultiEsdtTransferData/helpers/parseMultiEsdtTransferDataForMultipleTransactions.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs +47 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getCrossWindowProvider.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs +40 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/getTransactionsNeedGuardianSigning.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs +51 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs +34 -0
- package/out/providers/strategies/helpers/signTransactions/helpers/isTokenTransfer.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs +232 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.cjs.map +7 -0
- package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
- package/out/providers/strategies/index.cjs +31 -0
- package/out/providers/strategies/index.cjs.map +7 -0
- package/out/providers/strategies/index.mjs +1 -1
- package/out/providers/types/providerFactory.types.cjs +38 -0
- package/out/providers/types/providerFactory.types.cjs.map +7 -0
- package/out/providers/types/providerFactory.types.d.ts +1 -0
- package/out/providers/types/providerFactory.types.mjs +1 -1
- package/out/react/account/useGetAccount.cjs +33 -0
- package/out/react/account/useGetAccount.cjs.map +7 -0
- package/out/react/account/useGetAccount.mjs +1 -1
- package/out/react/account/useGetAccountInfo.cjs +33 -0
- package/out/react/account/useGetAccountInfo.cjs.map +7 -0
- package/out/react/account/useGetAccountInfo.mjs +1 -1
- package/out/react/account/useGetIsLoggedIn.cjs +34 -0
- package/out/react/account/useGetIsLoggedIn.cjs.map +7 -0
- package/out/react/account/useGetIsLoggedIn.mjs +1 -1
- package/out/react/account/useGetLatestNonce.cjs +35 -0
- package/out/react/account/useGetLatestNonce.cjs.map +7 -0
- package/out/react/account/useGetLatestNonce.mjs +1 -1
- package/out/react/index.cjs +23 -0
- package/out/react/index.cjs.map +7 -0
- package/out/react/index.mjs +1 -1
- package/out/react/loginInfo/useGetLoginInfo.cjs +36 -0
- package/out/react/loginInfo/useGetLoginInfo.cjs.map +7 -0
- package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
- package/out/react/network/useGetNetworkConfig.cjs +33 -0
- package/out/react/network/useGetNetworkConfig.cjs.map +7 -0
- package/out/react/network/useGetNetworkConfig.mjs +1 -1
- package/out/react/store/createBoundedStore.cjs +30 -0
- package/out/react/store/createBoundedStore.cjs.map +7 -0
- package/out/react/store/getReactStore.cjs +31 -0
- package/out/react/store/getReactStore.cjs.map +7 -0
- package/out/react/store/getReactStore.mjs +1 -1
- package/out/react/store/useSelector.cjs +33 -0
- package/out/react/store/useSelector.cjs.map +7 -0
- package/out/react/store/useSelector.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactions.cjs +34 -0
- package/out/react/transactions/useGetFailedTransactions.cjs.map +7 -0
- package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
- package/out/react/transactions/useGetFailedTransactionsSessions.cjs +34 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.cjs.map +7 -0
- package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactions.cjs +34 -0
- package/out/react/transactions/useGetPendingTransactions.cjs.map +7 -0
- package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
- package/out/react/transactions/useGetPendingTransactionsSessions.cjs +34 -0
- package/out/react/transactions/useGetPendingTransactionsSessions.cjs.map +7 -0
- package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactions.cjs +34 -0
- package/out/react/transactions/useGetSuccessfulTransactions.cjs.map +7 -0
- package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs +36 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.cjs.map +7 -0
- package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
- package/out/react/transactions/useGetTransactionSessions.cjs +34 -0
- package/out/react/transactions/useGetTransactionSessions.cjs.map +7 -0
- package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
- package/out/services/index.cjs +23 -0
- package/out/services/index.cjs.map +7 -0
- package/out/services/index.mjs +1 -1
- package/out/services/nativeAuth/helpers/decodeLoginToken.cjs +63 -0
- package/out/services/nativeAuth/helpers/decodeLoginToken.cjs.map +7 -0
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs +73 -0
- package/out/services/nativeAuth/helpers/decodeNativeAuthToken.cjs.map +7 -0
- package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs +101 -0
- package/out/services/nativeAuth/helpers/getLatestBlockHash.cjs.map +7 -0
- package/out/services/nativeAuth/helpers/index.cjs +27 -0
- package/out/services/nativeAuth/helpers/index.cjs.map +7 -0
- package/out/services/nativeAuth/index.cjs +23 -0
- package/out/services/nativeAuth/index.cjs.map +7 -0
- package/out/services/nativeAuth/index.mjs +1 -1
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs +42 -0
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.cjs.map +7 -0
- package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs +43 -0
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.cjs.map +7 -0
- package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
- package/out/services/nativeAuth/methods/getTokenExpiration.cjs +52 -0
- package/out/services/nativeAuth/methods/getTokenExpiration.cjs.map +7 -0
- package/out/services/nativeAuth/methods/index.cjs +25 -0
- package/out/services/nativeAuth/methods/index.cjs.map +7 -0
- package/out/services/nativeAuth/methods/index.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.cjs +82 -0
- package/out/services/nativeAuth/nativeAuth.cjs.map +7 -0
- package/out/services/nativeAuth/nativeAuth.mjs +1 -1
- package/out/services/nativeAuth/nativeAuth.types.cjs +17 -0
- package/out/services/nativeAuth/nativeAuth.types.cjs.map +7 -0
- package/out/store/actions/account/accountActions.cjs +95 -0
- package/out/store/actions/account/accountActions.cjs.map +7 -0
- package/out/store/actions/account/accountActions.mjs +1 -1
- package/out/store/actions/account/index.cjs +23 -0
- package/out/store/actions/account/index.cjs.map +7 -0
- package/out/store/actions/account/index.mjs +1 -1
- package/out/store/actions/cache/cacheActions.cjs +62 -0
- package/out/store/actions/cache/cacheActions.cjs.map +7 -0
- package/out/store/actions/cache/cacheActions.mjs +1 -1
- package/out/store/actions/cache/index.cjs +23 -0
- package/out/store/actions/cache/index.cjs.map +7 -0
- package/out/store/actions/cache/index.mjs +1 -1
- package/out/store/actions/config/configActions.cjs +61 -0
- package/out/store/actions/config/configActions.cjs.map +7 -0
- package/out/store/actions/config/configActions.mjs +1 -1
- package/out/store/actions/config/index.cjs +23 -0
- package/out/store/actions/config/index.cjs.map +7 -0
- package/out/store/actions/config/index.mjs +1 -1
- package/out/store/actions/index.cjs +35 -0
- package/out/store/actions/index.cjs.map +7 -0
- package/out/store/actions/index.mjs +1 -1
- package/out/store/actions/loginInfo/loginInfoActions.cjs +134 -0
- package/out/store/actions/loginInfo/loginInfoActions.cjs.map +7 -0
- package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
- package/out/store/actions/network/index.cjs +23 -0
- package/out/store/actions/network/index.cjs.map +7 -0
- package/out/store/actions/network/index.mjs +1 -1
- package/out/store/actions/network/initializeNetwork.cjs +71 -0
- package/out/store/actions/network/initializeNetwork.cjs.map +7 -0
- package/out/store/actions/network/initializeNetwork.mjs +1 -1
- package/out/store/actions/network/networkActions.cjs +42 -0
- package/out/store/actions/network/networkActions.cjs.map +7 -0
- package/out/store/actions/network/networkActions.mjs +1 -1
- package/out/store/actions/sharedActions/index.cjs +23 -0
- package/out/store/actions/sharedActions/index.cjs.map +7 -0
- package/out/store/actions/sharedActions/index.mjs +1 -1
- package/out/store/actions/sharedActions/sharedActions.cjs +50 -0
- package/out/store/actions/sharedActions/sharedActions.cjs.map +7 -0
- package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
- package/out/store/actions/toasts/index.cjs +23 -0
- package/out/store/actions/toasts/index.cjs.map +7 -0
- package/out/store/actions/toasts/index.mjs +1 -1
- package/out/store/actions/toasts/toastsActions.cjs +178 -0
- package/out/store/actions/toasts/toastsActions.cjs.map +7 -0
- package/out/store/actions/toasts/toastsActions.mjs +1 -1
- package/out/store/actions/transactions/transactionStateByStatus.cjs +145 -0
- package/out/store/actions/transactions/transactionStateByStatus.cjs.map +7 -0
- package/out/store/actions/transactions/transactionsActions.cjs +134 -0
- package/out/store/actions/transactions/transactionsActions.cjs.map +7 -0
- package/out/store/actions/transactions/transactionsActions.mjs +1 -1
- package/out/store/actions/ui/index.cjs +23 -0
- package/out/store/actions/ui/index.cjs.map +7 -0
- package/out/store/actions/ui/index.mjs +1 -1
- package/out/store/actions/ui/uiActions.cjs +36 -0
- package/out/store/actions/ui/uiActions.cjs.map +7 -0
- package/out/store/actions/ui/uiActions.mjs +1 -1
- package/out/store/middleware/applyMiddlewares.cjs +32 -0
- package/out/store/middleware/applyMiddlewares.cjs.map +7 -0
- package/out/store/middleware/applyMiddlewares.mjs +1 -1
- package/out/store/middleware/index.cjs +23 -0
- package/out/store/middleware/index.cjs.map +7 -0
- package/out/store/middleware/index.mjs +1 -1
- package/out/store/middleware/logoutMiddleware.cjs +79 -0
- package/out/store/middleware/logoutMiddleware.cjs.map +7 -0
- package/out/store/middleware/logoutMiddleware.mjs +1 -1
- package/out/store/selectors/accountSelectors.cjs +61 -0
- package/out/store/selectors/accountSelectors.cjs.map +7 -0
- package/out/store/selectors/cacheSelector.cjs +32 -0
- package/out/store/selectors/cacheSelector.cjs.map +7 -0
- package/out/store/selectors/configSelectors.cjs +37 -0
- package/out/store/selectors/configSelectors.cjs.map +7 -0
- package/out/store/selectors/index.cjs +33 -0
- package/out/store/selectors/index.cjs.map +7 -0
- package/out/store/selectors/loginInfoSelectors.cjs +44 -0
- package/out/store/selectors/loginInfoSelectors.cjs.map +7 -0
- package/out/store/selectors/networkSelectors.cjs +43 -0
- package/out/store/selectors/networkSelectors.cjs.map +7 -0
- package/out/store/selectors/storeSelector.cjs +29 -0
- package/out/store/selectors/storeSelector.cjs.map +7 -0
- package/out/store/selectors/toastsSelectors.cjs +35 -0
- package/out/store/selectors/toastsSelectors.cjs.map +7 -0
- package/out/store/selectors/transactionsSelector.cjs +151 -0
- package/out/store/selectors/transactionsSelector.cjs.map +7 -0
- package/out/store/selectors/uiSelectors.cjs +32 -0
- package/out/store/selectors/uiSelectors.cjs.map +7 -0
- package/out/store/slices/account/account.types.cjs +17 -0
- package/out/store/slices/account/account.types.cjs.map +7 -0
- package/out/store/slices/account/accountSlice.cjs +44 -0
- package/out/store/slices/account/accountSlice.cjs.map +7 -0
- package/out/store/slices/account/emptyAccount.cjs +39 -0
- package/out/store/slices/account/emptyAccount.cjs.map +7 -0
- package/out/store/slices/account/index.cjs +29 -0
- package/out/store/slices/account/index.cjs.map +7 -0
- package/out/store/slices/cache/cacheSlice.cjs +35 -0
- package/out/store/slices/cache/cacheSlice.cjs.map +7 -0
- package/out/store/slices/cache/cacheSlice.types.cjs +17 -0
- package/out/store/slices/cache/cacheSlice.types.cjs.map +7 -0
- package/out/store/slices/cache/index.cjs +29 -0
- package/out/store/slices/cache/index.cjs.map +7 -0
- package/out/store/slices/config/config.types.cjs +17 -0
- package/out/store/slices/config/config.types.cjs.map +7 -0
- package/out/store/slices/config/configSlice.cjs +38 -0
- package/out/store/slices/config/configSlice.cjs.map +7 -0
- package/out/store/slices/config/index.cjs +29 -0
- package/out/store/slices/config/index.cjs.map +7 -0
- package/out/store/slices/index.cjs +35 -0
- package/out/store/slices/index.cjs.map +7 -0
- package/out/store/slices/loginInfo/index.cjs +29 -0
- package/out/store/slices/loginInfo/index.cjs.map +7 -0
- package/out/store/slices/loginInfo/loginInfo.types.cjs +17 -0
- package/out/store/slices/loginInfo/loginInfo.types.cjs.map +7 -0
- package/out/store/slices/loginInfo/loginInfoSlice.cjs +45 -0
- package/out/store/slices/loginInfo/loginInfoSlice.cjs.map +7 -0
- package/out/store/slices/network/emptyNetwork.cjs +42 -0
- package/out/store/slices/network/emptyNetwork.cjs.map +7 -0
- package/out/store/slices/network/index.cjs +29 -0
- package/out/store/slices/network/index.cjs.map +7 -0
- package/out/store/slices/network/network.types.cjs +17 -0
- package/out/store/slices/network/network.types.cjs.map +7 -0
- package/out/store/slices/network/networkSlice.cjs +36 -0
- package/out/store/slices/network/networkSlice.cjs.map +7 -0
- package/out/store/slices/network/networkSlice.types.cjs +17 -0
- package/out/store/slices/network/networkSlice.types.cjs.map +7 -0
- package/out/store/slices/toast/index.cjs +29 -0
- package/out/store/slices/toast/index.cjs.map +7 -0
- package/out/store/slices/toast/toastSlice.cjs +38 -0
- package/out/store/slices/toast/toastSlice.cjs.map +7 -0
- package/out/store/slices/toast/toastSlice.types.cjs +17 -0
- package/out/store/slices/toast/toastSlice.types.cjs.map +7 -0
- package/out/store/slices/transactions/index.cjs +29 -0
- package/out/store/slices/transactions/index.cjs.map +7 -0
- package/out/store/slices/transactions/transactionsSlice.cjs +35 -0
- package/out/store/slices/transactions/transactionsSlice.cjs.map +7 -0
- package/out/store/slices/transactions/transactionsSlice.types.cjs +17 -0
- package/out/store/slices/transactions/transactionsSlice.types.cjs.map +7 -0
- package/out/store/slices/ui/index.cjs +29 -0
- package/out/store/slices/ui/index.cjs.map +7 -0
- package/out/store/slices/ui/ui.types.cjs +17 -0
- package/out/store/slices/ui/ui.types.cjs.map +7 -0
- package/out/store/slices/ui/uiSlice.cjs +35 -0
- package/out/store/slices/ui/uiSlice.cjs.map +7 -0
- package/out/store/storage/inMemoryStorage.cjs +52 -0
- package/out/store/storage/inMemoryStorage.cjs.map +7 -0
- package/out/store/storage/index.cjs +25 -0
- package/out/store/storage/index.cjs.map +7 -0
- package/out/store/storage/index.mjs +1 -1
- package/out/store/storage/storageCallback.cjs +30 -0
- package/out/store/storage/storageCallback.cjs.map +7 -0
- package/out/store/storage/storageCallback.mjs +1 -1
- package/out/store/store.cjs +81 -0
- package/out/store/store.cjs.map +7 -0
- package/out/store/store.mjs +1 -1
- package/out/store/store.types.cjs +17 -0
- package/out/store/store.types.cjs.map +7 -0
- package/out/types/account.types.cjs +17 -0
- package/out/types/account.types.cjs.map +7 -0
- package/out/types/enums.types.cjs +120 -0
- package/out/types/enums.types.cjs.map +7 -0
- package/out/types/index.cjs +35 -0
- package/out/types/index.cjs.map +7 -0
- package/out/types/login.types.cjs +17 -0
- package/out/types/login.types.cjs.map +7 -0
- package/out/types/manager.types.cjs +17 -0
- package/out/types/manager.types.cjs.map +7 -0
- package/out/types/network.types.cjs +17 -0
- package/out/types/network.types.cjs.map +7 -0
- package/out/types/provider.types.cjs +35 -0
- package/out/types/provider.types.cjs.map +7 -0
- package/out/types/serverTransactions.types.cjs +155 -0
- package/out/types/serverTransactions.types.cjs.map +7 -0
- package/out/types/subscriptions.type.cjs +34 -0
- package/out/types/subscriptions.type.cjs.map +7 -0
- package/out/types/suspiciousLink.types.cjs +17 -0
- package/out/types/suspiciousLink.types.cjs.map +7 -0
- package/out/types/theme.types.cjs +34 -0
- package/out/types/theme.types.cjs.map +7 -0
- package/out/types/tokens.types.cjs +40 -0
- package/out/types/tokens.types.cjs.map +7 -0
- package/out/types/transaction-list-item.types.cjs +115 -0
- package/out/types/transaction-list-item.types.cjs.map +7 -0
- package/out/types/transactions.types.cjs +35 -0
- package/out/types/transactions.types.cjs.map +7 -0
- package/out/types/transactions.types.d.ts +1 -1
- package/out/types/transactions.types.mjs.map +1 -1
- package/out/types/websocket.types.cjs +17 -0
- package/out/types/websocket.types.cjs.map +7 -0
- package/out/utils/ComponentFactory.cjs +51 -0
- package/out/utils/ComponentFactory.cjs.map +7 -0
- package/out/utils/ComponentFactory.d.ts +1 -1
- package/out/utils/ComponentFactory.mjs +1 -1
- package/out/utils/account/fetchAccount.cjs +30 -0
- package/out/utils/account/fetchAccount.cjs.map +7 -0
- package/out/utils/account/index.cjs +29 -0
- package/out/utils/account/index.cjs.map +7 -0
- package/out/utils/account/index.mjs +1 -1
- package/out/utils/account/refreshAccount.cjs +80 -0
- package/out/utils/account/refreshAccount.cjs.map +7 -0
- package/out/utils/account/refreshAccount.mjs +1 -1
- package/out/utils/account/refreshNativeAuthTokenLogin.cjs +66 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.cjs.map +7 -0
- package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
- package/out/utils/account/trimUsernameDomain.cjs +36 -0
- package/out/utils/account/trimUsernameDomain.cjs.map +7 -0
- package/out/utils/asyncActions/index.cjs +23 -0
- package/out/utils/asyncActions/index.cjs.map +7 -0
- package/out/utils/asyncActions/sleep.cjs +36 -0
- package/out/utils/asyncActions/sleep.cjs.map +7 -0
- package/out/utils/dateTime/getUnixTimestamp.cjs +31 -0
- package/out/utils/dateTime/getUnixTimestamp.cjs.map +7 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs +33 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedMilliseconds.cjs.map +7 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs +31 -0
- package/out/utils/dateTime/getUnixTimestampWithAddedSeconds.cjs.map +7 -0
- package/out/utils/dateTime/index.cjs +27 -0
- package/out/utils/dateTime/index.cjs.map +7 -0
- package/out/utils/decoders/base64Utils.cjs +58 -0
- package/out/utils/decoders/base64Utils.cjs.map +7 -0
- package/out/utils/decoders/decodePart.cjs +40 -0
- package/out/utils/decoders/decodePart.cjs.map +7 -0
- package/out/utils/decoders/index.cjs +31 -0
- package/out/utils/decoders/index.cjs.map +7 -0
- package/out/utils/decoders/isAscii.cjs +29 -0
- package/out/utils/decoders/isAscii.cjs.map +7 -0
- package/out/utils/decoders/isUtf8.cjs +36 -0
- package/out/utils/decoders/isUtf8.cjs.map +7 -0
- package/out/utils/decoders/stringContainsNumbers.cjs +29 -0
- package/out/utils/decoders/stringContainsNumbers.cjs.map +7 -0
- package/out/utils/index.cjs +41 -0
- package/out/utils/index.cjs.map +7 -0
- package/out/utils/index.mjs +1 -1
- package/out/utils/network/index.cjs +23 -0
- package/out/utils/network/index.cjs.map +7 -0
- package/out/utils/network/setAxiosInterceptors.cjs +67 -0
- package/out/utils/network/setAxiosInterceptors.cjs.map +7 -0
- package/out/utils/operations/capitalize.cjs +29 -0
- package/out/utils/operations/capitalize.cjs.map +7 -0
- package/out/utils/operations/getUsdValue.cjs +46 -0
- package/out/utils/operations/getUsdValue.cjs.map +7 -0
- package/out/utils/operations/pluralize.cjs +29 -0
- package/out/utils/operations/pluralize.cjs.map +7 -0
- package/out/utils/operations/timeRemaining.cjs +110 -0
- package/out/utils/operations/timeRemaining.cjs.map +7 -0
- package/out/utils/operations/trimAmountDecimals.cjs +60 -0
- package/out/utils/operations/trimAmountDecimals.cjs.map +7 -0
- package/out/utils/retryMultipleTimes.cjs +45 -0
- package/out/utils/retryMultipleTimes.cjs.map +7 -0
- package/out/utils/transactions/explorerUrlBuilder.cjs +54 -0
- package/out/utils/transactions/explorerUrlBuilder.cjs.map +7 -0
- package/out/utils/transactions/getActiveTransactionsStatus.cjs +47 -0
- package/out/utils/transactions/getActiveTransactionsStatus.cjs.map +7 -0
- package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
- package/out/utils/transactions/getExplorerLink.cjs +50 -0
- package/out/utils/transactions/getExplorerLink.cjs.map +7 -0
- package/out/utils/transactions/getHumanReadableTimeFormat.cjs +47 -0
- package/out/utils/transactions/getHumanReadableTimeFormat.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs +110 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs +50 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/constants.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs +107 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs +36 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getEgldValueData.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs +55 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTitleText.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs +71 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionActionNftText.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs +41 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getTransactionTokens.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs +54 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromActions.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs +60 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromDataField.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs +53 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getValueFromOperations.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs +37 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/getVisibleOperations.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs +33 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/helpers/index.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs +23 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/index.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs +17 -0
- package/out/utils/transactions/getInterpretedTransaction/getTransactionValue/types.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs +83 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs +31 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getOperationsMessages.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs +66 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs +31 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getScResultsMessages.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs +44 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs +122 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTokenFromData.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs +47 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs +40 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs +44 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMethod.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs +35 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiver.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs +33 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionReceiverAssets.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs +42 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionStatus.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs +41 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTokens.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs +50 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionTransferType.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs +47 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
- package/out/utils/transactions/getInterpretedTransaction/index.cjs +25 -0
- package/out/utils/transactions/getInterpretedTransaction/index.cjs.map +7 -0
- package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
- package/out/utils/transactions/getScamFlag.cjs +88 -0
- package/out/utils/transactions/getScamFlag.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs +57 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs +40 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/createTransactionsHistoryFromSessions.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs +64 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetAmount.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs +53 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getAssetPrice.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs +36 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs +39 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getIsTransactionInvalidOrFailed.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs +37 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getReceiverData.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs +113 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAction.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs +59 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionDirectionLabel.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs +75 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionActionTransferLabel.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs +63 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAmount.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs +91 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAsset.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs +66 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAssets.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs +38 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/getTransactionAvatar.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs +50 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/index.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs +38 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/isTransferNftOrSft.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs +95 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs +81 -0
- package/out/utils/transactions/getTransactionsHistory/helpers/mapTransactionToListItem.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/index.cjs +25 -0
- package/out/utils/transactions/getTransactionsHistory/index.cjs.map +7 -0
- package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
- package/out/utils/transactions/index.cjs +29 -0
- package/out/utils/transactions/index.cjs.map +7 -0
- package/out/utils/transactions/index.mjs +1 -1
- package/out/utils/transactions/isGuardianTx.cjs +43 -0
- package/out/utils/transactions/isGuardianTx.cjs.map +7 -0
- package/out/utils/validation/addressIsValid.cjs +40 -0
- package/out/utils/validation/addressIsValid.cjs.map +7 -0
- package/out/utils/validation/getIdentifierType.cjs +54 -0
- package/out/utils/validation/getIdentifierType.cjs.map +7 -0
- package/out/utils/validation/hex.cjs +36 -0
- package/out/utils/validation/hex.cjs.map +7 -0
- package/out/utils/validation/index.cjs +31 -0
- package/out/utils/validation/index.cjs.map +7 -0
- package/out/utils/validation/isContract.cjs +96 -0
- package/out/utils/validation/isContract.cjs.map +7 -0
- package/out/utils/validation/maxDecimals.cjs +34 -0
- package/out/utils/validation/maxDecimals.cjs.map +7 -0
- package/out/utils/visual/index.cjs +23 -0
- package/out/utils/visual/index.cjs.map +7 -0
- package/out/utils/visual/index.mjs +1 -1
- package/out/utils/visual/switchTheme.cjs +38 -0
- package/out/utils/visual/switchTheme.cjs.map +7 -0
- package/out/utils/visual/switchTheme.mjs +1 -1
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.cjs +36 -0
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.cjs.map +7 -0
- package/out/utils/walletconnect/__mocks__/sdkWalletconnectProvider.mjs +1 -1
- package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs +34 -0
- package/out/utils/walletconnect/__sdkWalletconnectProvider.cjs.map +7 -0
- package/out/utils/window/buildUrlParams.cjs +37 -0
- package/out/utils/window/buildUrlParams.cjs.map +7 -0
- package/out/utils/window/getIsAuthRoute.cjs +38 -0
- package/out/utils/window/getIsAuthRoute.cjs.map +7 -0
- package/out/utils/window/getIsInIframe.cjs +44 -0
- package/out/utils/window/getIsInIframe.cjs.map +7 -0
- package/out/utils/window/getIsInIframe.mjs +1 -1
- package/out/utils/window/getWindowLocation.cjs +56 -0
- package/out/utils/window/getWindowLocation.cjs.map +7 -0
- package/out/utils/window/getWindowParentOrigin.cjs +47 -0
- package/out/utils/window/getWindowParentOrigin.cjs.map +7 -0
- package/out/utils/window/getWindowParentOrigin.mjs +1 -1
- package/out/utils/window/index.cjs +33 -0
- package/out/utils/window/index.cjs.map +7 -0
- package/out/utils/window/index.mjs +1 -1
- package/out/utils/window/isWindowAvailable.cjs +29 -0
- package/out/utils/window/isWindowAvailable.cjs.map +7 -0
- package/out/utils/window/matchPath.cjs +114 -0
- package/out/utils/window/matchPath.cjs.map +7 -0
- package/out/utils/window/sanitizeCallbackUrl.cjs +39 -0
- package/out/utils/window/sanitizeCallbackUrl.cjs.map +7 -0
- package/package.json +4 -4
- package/out/__chunks__/chunk-24YYMWQL.mjs +0 -2
- package/out/__chunks__/chunk-2GOJSBHM.mjs +0 -2
- package/out/__chunks__/chunk-3KJKVWZX.mjs +0 -2
- package/out/__chunks__/chunk-3MEAYEOP.mjs +0 -2
- package/out/__chunks__/chunk-4WOBJUND.mjs +0 -2
- package/out/__chunks__/chunk-57JT3YYO.mjs +0 -2
- package/out/__chunks__/chunk-5CBADUK2.mjs +0 -2
- package/out/__chunks__/chunk-5EIUN6H3.mjs +0 -2
- package/out/__chunks__/chunk-5PFAZNIO.mjs +0 -2
- package/out/__chunks__/chunk-5PFAZNIO.mjs.map +0 -7
- package/out/__chunks__/chunk-62NTXA3Q.mjs +0 -2
- package/out/__chunks__/chunk-64YGT5EQ.mjs +0 -2
- package/out/__chunks__/chunk-6K5K2OJF.mjs +0 -2
- package/out/__chunks__/chunk-6QSDEIFP.mjs +0 -2
- package/out/__chunks__/chunk-A3CN5JWD.mjs +0 -2
- package/out/__chunks__/chunk-AFO4MJ3Y.mjs +0 -2
- package/out/__chunks__/chunk-AL3SMFKF.mjs +0 -2
- package/out/__chunks__/chunk-ANRHXERH.mjs +0 -2
- package/out/__chunks__/chunk-AZOEX4RJ.mjs +0 -2
- package/out/__chunks__/chunk-B3E34X2P.mjs +0 -2
- package/out/__chunks__/chunk-B5DFRWKW.mjs +0 -2
- package/out/__chunks__/chunk-B5OM6BTD.mjs +0 -2
- package/out/__chunks__/chunk-BDAB6XQS.mjs +0 -2
- package/out/__chunks__/chunk-BHRUDWJV.mjs +0 -2
- package/out/__chunks__/chunk-BPYUCILD.mjs +0 -2
- package/out/__chunks__/chunk-BZCIDXIT.mjs +0 -2
- package/out/__chunks__/chunk-CA5CTMET.mjs +0 -2
- package/out/__chunks__/chunk-CKPRCP4B.mjs +0 -2
- package/out/__chunks__/chunk-CUSPTSTX.mjs +0 -2
- package/out/__chunks__/chunk-CV6QXSKF.mjs +0 -2
- package/out/__chunks__/chunk-CXEW3QBW.mjs +0 -2
- package/out/__chunks__/chunk-D5DPZ3O3.mjs +0 -2
- package/out/__chunks__/chunk-DCD7Z6NA.mjs +0 -2
- package/out/__chunks__/chunk-E26YTVSR.mjs +0 -2
- package/out/__chunks__/chunk-EDKNWPTP.mjs +0 -2
- package/out/__chunks__/chunk-EDKNWPTP.mjs.map +0 -7
- package/out/__chunks__/chunk-F3VTVR46.mjs +0 -2
- package/out/__chunks__/chunk-F7QRSVP4.mjs +0 -2
- package/out/__chunks__/chunk-FINVDQGG.mjs +0 -2
- package/out/__chunks__/chunk-FK73FOXL.mjs +0 -2
- package/out/__chunks__/chunk-FYJSQ5IQ.mjs +0 -2
- package/out/__chunks__/chunk-H3YYJVD2.mjs +0 -2
- package/out/__chunks__/chunk-IEGMED5L.mjs +0 -2
- package/out/__chunks__/chunk-IFIL5YA5.mjs +0 -2
- package/out/__chunks__/chunk-IFIL5YA5.mjs.map +0 -7
- package/out/__chunks__/chunk-ITL2BSZK.mjs +0 -2
- package/out/__chunks__/chunk-J7WSX6RF.mjs +0 -2
- package/out/__chunks__/chunk-JGHTVPC7.mjs +0 -2
- package/out/__chunks__/chunk-JKR3KSKZ.mjs +0 -2
- package/out/__chunks__/chunk-KELD3JME.mjs +0 -2
- package/out/__chunks__/chunk-KRHBIYXH.mjs +0 -2
- package/out/__chunks__/chunk-MEGLLCCR.mjs +0 -2
- package/out/__chunks__/chunk-MPCAGTJW.mjs +0 -2
- package/out/__chunks__/chunk-NQSC7H2H.mjs +0 -2
- package/out/__chunks__/chunk-OO76QA6O.mjs +0 -2
- package/out/__chunks__/chunk-OZ4ZZI3H.mjs +0 -2
- package/out/__chunks__/chunk-PHBORH3K.mjs +0 -2
- package/out/__chunks__/chunk-PHBORH3K.mjs.map +0 -7
- package/out/__chunks__/chunk-PHT4H7NQ.mjs +0 -2
- package/out/__chunks__/chunk-PL64ZI4J.mjs +0 -2
- package/out/__chunks__/chunk-PO5CKWAW.mjs +0 -2
- package/out/__chunks__/chunk-Q3WLMRWP.mjs +0 -2
- package/out/__chunks__/chunk-Q6O5CYQO.mjs +0 -2
- package/out/__chunks__/chunk-QC2L7ZLQ.mjs +0 -2
- package/out/__chunks__/chunk-QW3IVSVZ.mjs +0 -2
- package/out/__chunks__/chunk-QWV25ZSJ.mjs +0 -2
- package/out/__chunks__/chunk-RJSOXNSA.mjs +0 -2
- package/out/__chunks__/chunk-RNLXKFRP.mjs +0 -2
- package/out/__chunks__/chunk-RZURE24V.mjs +0 -2
- package/out/__chunks__/chunk-S2FQWSUO.mjs +0 -2
- package/out/__chunks__/chunk-S2FQWSUO.mjs.map +0 -7
- package/out/__chunks__/chunk-S4QEQGMS.mjs +0 -2
- package/out/__chunks__/chunk-S7K3MC3O.mjs +0 -2
- package/out/__chunks__/chunk-T7DLVQ6J.mjs +0 -2
- package/out/__chunks__/chunk-THNK25ZD.mjs +0 -2
- package/out/__chunks__/chunk-TI73UXGG.mjs +0 -2
- package/out/__chunks__/chunk-TNL55CRB.mjs +0 -2
- package/out/__chunks__/chunk-UBLZ4XV2.mjs +0 -2
- package/out/__chunks__/chunk-WS2TTYTH.mjs +0 -2
- package/out/__chunks__/chunk-WTNCKB4A.mjs +0 -2
- package/out/__chunks__/chunk-XAYCFZAU.mjs +0 -2
- package/out/__chunks__/chunk-XIXT6MEM.mjs +0 -2
- package/out/__chunks__/chunk-Y3FWIS2E.mjs +0 -2
- package/out/__chunks__/chunk-Y7YFB6KR.mjs +0 -2
- package/out/__chunks__/chunk-YFM4XPJB.mjs +0 -2
- package/out/__chunks__/chunk-YRMDKZSS.mjs +0 -2
- package/out/__chunks__/chunk-YRRGPWNG.mjs +0 -2
- package/out/__chunks__/chunk-Z36DGV3K.mjs +0 -2
- package/out/__chunks__/chunk-ZECWUL7N.mjs +0 -2
- package/out/__chunks__/chunk-ZECWUL7N.mjs.map +0 -7
- package/out/__chunks__/chunk-ZT7AZLRE.mjs +0 -2
- package/out/__chunks__/chunk-ZW3NEESY.mjs +0 -2
- /package/out/__chunks__/{chunk-BPYUCILD.mjs.map → chunk-2IXNUCCN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-NQSC7H2H.mjs.map → chunk-2UCZ5FCD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OO76QA6O.mjs.map → chunk-35BOKOST.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-64YGT5EQ.mjs.map → chunk-3JMCXLWZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S7K3MC3O.mjs.map → chunk-43AE4SYE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZT7AZLRE.mjs.map → chunk-4JRZISC2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3KJKVWZX.mjs.map → chunk-5MK24VWA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-J7WSX6RF.mjs.map → chunk-6EW6GJ7V.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XAYCFZAU.mjs.map → chunk-6IA3KJH5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Z36DGV3K.mjs.map → chunk-6IUQY6KG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Q6O5CYQO.mjs.map → chunk-6QSLQLCT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-57JT3YYO.mjs.map → chunk-6WQJAFR3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QWV25ZSJ.mjs.map → chunk-76URRONH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QW3IVSVZ.mjs.map → chunk-7AMGKXK6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AZOEX4RJ.mjs.map → chunk-7MSBLQYN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KELD3JME.mjs.map → chunk-7O5OCSV5.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-4WOBJUND.mjs.map → chunk-7PW3YJZS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JKR3KSKZ.mjs.map → chunk-7TVD3ZGR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-IEGMED5L.mjs.map → chunk-A2X4YMKK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-JGHTVPC7.mjs.map → chunk-AHSGP7ST.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PHT4H7NQ.mjs.map → chunk-AJVTGCVH.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PL64ZI4J.mjs.map → chunk-AZNMWFIR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Q3WLMRWP.mjs.map → chunk-CAN6BBUW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TI73UXGG.mjs.map → chunk-CDQ2BNUD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B5OM6BTD.mjs.map → chunk-DDNM2ZMJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AL3SMFKF.mjs.map → chunk-DNRFH2DR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-3MEAYEOP.mjs.map → chunk-EK3WITBG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y7YFB6KR.mjs.map → chunk-ER7VDELK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ZW3NEESY.mjs.map → chunk-EWXBNG6L.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CXEW3QBW.mjs.map → chunk-FKCGBCKV.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-DCD7Z6NA.mjs.map → chunk-FKIAOXUE.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRMDKZSS.mjs.map → chunk-FSHVZP64.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-OZ4ZZI3H.mjs.map → chunk-G4Z3ZQR6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BZCIDXIT.mjs.map → chunk-GNF74ZRR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RNLXKFRP.mjs.map → chunk-GUPYIQ3X.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RZURE24V.mjs.map → chunk-H3IUSXHL.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FINVDQGG.mjs.map → chunk-HZUUV4N4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-QC2L7ZLQ.mjs.map → chunk-IHPROMZ4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YFM4XPJB.mjs.map → chunk-IS62JDWR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CA5CTMET.mjs.map → chunk-J7GHXLMR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-Y3FWIS2E.mjs.map → chunk-JD2VRDU7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-E26YTVSR.mjs.map → chunk-JHG4SR7C.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-TNL55CRB.mjs.map → chunk-JOVG7EB7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ITL2BSZK.mjs.map → chunk-JXNX2DMF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-24YYMWQL.mjs.map → chunk-L34S5ELK.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-2GOJSBHM.mjs.map → chunk-LD6GIQXR.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-UBLZ4XV2.mjs.map → chunk-LJKBU76G.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FK73FOXL.mjs.map → chunk-MKIQ2XH4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-62NTXA3Q.mjs.map → chunk-N6IZYQLD.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5CBADUK2.mjs.map → chunk-N7FAJ2VG.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CUSPTSTX.mjs.map → chunk-NR34QIVY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-D5DPZ3O3.mjs.map → chunk-OA7DW77N.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MPCAGTJW.mjs.map → chunk-OAEQGL6W.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BDAB6XQS.mjs.map → chunk-OLXHHD4T.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-KRHBIYXH.mjs.map → chunk-OYYE3JKS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-A3CN5JWD.mjs.map → chunk-P7KN75HA.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6QSDEIFP.mjs.map → chunk-PPRG5EYX.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F3VTVR46.mjs.map → chunk-Q5RVUCNS.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B3E34X2P.mjs.map → chunk-QFW3NRHJ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-FYJSQ5IQ.mjs.map → chunk-QJBNDKHF.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-YRRGPWNG.mjs.map → chunk-QNJDXBR6.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-AFO4MJ3Y.mjs.map → chunk-QVOHFS6Q.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-MEGLLCCR.mjs.map → chunk-RO37MX5Y.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-RJSOXNSA.mjs.map → chunk-SGN6MYFW.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-H3YYJVD2.mjs.map → chunk-SNJZSRF3.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CV6QXSKF.mjs.map → chunk-T6PE5QT2.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-F7QRSVP4.mjs.map → chunk-TJW7RKOI.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-6K5K2OJF.mjs.map → chunk-ULT7BJCN.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WTNCKB4A.mjs.map → chunk-UXJIZKTT.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-WS2TTYTH.mjs.map → chunk-V53EFJQZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-THNK25ZD.mjs.map → chunk-W5LWBGZ4.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-5EIUN6H3.mjs.map → chunk-WCRS5CLZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-T7DLVQ6J.mjs.map → chunk-WNKKBV76.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-ANRHXERH.mjs.map → chunk-WWNT4K25.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-CKPRCP4B.mjs.map → chunk-X3BMMYMU.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-BHRUDWJV.mjs.map → chunk-XXILUGAY.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-PO5CKWAW.mjs.map → chunk-YBLDHLHP.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-XIXT6MEM.mjs.map → chunk-Z3SM2MSZ.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-S4QEQGMS.mjs.map → chunk-ZFM5CMB7.mjs.map} +0 -0
- /package/out/__chunks__/{chunk-B5DFRWKW.mjs.map → chunk-ZP2E2Y6Y.mjs.map} +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var timeRemaining_exports = {};
|
|
20
|
+
__export(timeRemaining_exports, {
|
|
21
|
+
getDifferenceInMs: () => getDifferenceInMs,
|
|
22
|
+
getRemainingTime: () => getRemainingTime,
|
|
23
|
+
timeAgo: () => timeAgo,
|
|
24
|
+
timeRemaining: () => timeRemaining
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(timeRemaining_exports);
|
|
27
|
+
function getRemainingTime(ms) {
|
|
28
|
+
const days = Math.floor(ms / (24 * 60 * 60 * 1e3));
|
|
29
|
+
const daysms = ms % (24 * 60 * 60 * 1e3);
|
|
30
|
+
const hrs = Math.floor(daysms / (60 * 60 * 1e3));
|
|
31
|
+
const hrsms = daysms % (60 * 60 * 1e3);
|
|
32
|
+
const mins = Math.floor(hrsms / (60 * 1e3));
|
|
33
|
+
const minsms = hrsms % (60 * 1e3);
|
|
34
|
+
const secs = Math.floor(minsms / 1e3);
|
|
35
|
+
let secsString = secs + " sec";
|
|
36
|
+
let minsString = mins + " min";
|
|
37
|
+
let hrsString = hrs + " hr";
|
|
38
|
+
let daysString = days + " day";
|
|
39
|
+
if (secs > 1) {
|
|
40
|
+
secsString = secs + " sec";
|
|
41
|
+
}
|
|
42
|
+
if (mins > 1) {
|
|
43
|
+
minsString = mins + " min";
|
|
44
|
+
}
|
|
45
|
+
if (hrs > 1) {
|
|
46
|
+
hrsString = hrs + " hrs";
|
|
47
|
+
}
|
|
48
|
+
if (days > 1) {
|
|
49
|
+
daysString = days + " days";
|
|
50
|
+
}
|
|
51
|
+
if (days >= 1) {
|
|
52
|
+
return daysString + " " + hrsString;
|
|
53
|
+
}
|
|
54
|
+
if (hrs >= 1) {
|
|
55
|
+
const minutesString = mins === 0 ? "" : " " + minsString;
|
|
56
|
+
return hrsString + minutesString;
|
|
57
|
+
}
|
|
58
|
+
if (mins >= 1) {
|
|
59
|
+
const secString = secs === 0 ? "" : " " + secsString;
|
|
60
|
+
return minsString + secString;
|
|
61
|
+
}
|
|
62
|
+
return secsString;
|
|
63
|
+
}
|
|
64
|
+
function getShortDateTimeFormat(datetime) {
|
|
65
|
+
const parts = datetime.split(" ");
|
|
66
|
+
if (parts.length > 1) {
|
|
67
|
+
return `${parts[0]} ${parts[1]}`;
|
|
68
|
+
}
|
|
69
|
+
return datetime;
|
|
70
|
+
}
|
|
71
|
+
const getUTCDateNow = (date = /* @__PURE__ */ new Date(), extendedSeconds = 0) => Date.UTC(
|
|
72
|
+
date.getUTCFullYear(),
|
|
73
|
+
date.getUTCMonth(),
|
|
74
|
+
date.getUTCDate(),
|
|
75
|
+
date.getUTCHours(),
|
|
76
|
+
date.getUTCMinutes(),
|
|
77
|
+
date.getUTCSeconds() + extendedSeconds,
|
|
78
|
+
date.getUTCMilliseconds()
|
|
79
|
+
);
|
|
80
|
+
function getUTCdiffInMs(duration) {
|
|
81
|
+
const date = /* @__PURE__ */ new Date();
|
|
82
|
+
const startDate = getUTCDateNow(date);
|
|
83
|
+
const endDate = getUTCDateNow(date, duration);
|
|
84
|
+
const diffInMs = Math.max(endDate - startDate, 0);
|
|
85
|
+
return diffInMs;
|
|
86
|
+
}
|
|
87
|
+
function timeRemaining(duration, short = true) {
|
|
88
|
+
const diffInMs = getUTCdiffInMs(duration);
|
|
89
|
+
const remaining = getRemainingTime(diffInMs);
|
|
90
|
+
return short ? getShortDateTimeFormat(remaining) : remaining;
|
|
91
|
+
}
|
|
92
|
+
function getDifferenceInMs(timestamp) {
|
|
93
|
+
const dateNow = (/* @__PURE__ */ new Date()).getTime();
|
|
94
|
+
const difference = dateNow - timestamp;
|
|
95
|
+
const diffInMs = Math.max(difference, 0);
|
|
96
|
+
return diffInMs;
|
|
97
|
+
}
|
|
98
|
+
function timeAgo(timestamp, short = true) {
|
|
99
|
+
const diffInMs = getDifferenceInMs(timestamp);
|
|
100
|
+
const remaining = getRemainingTime(diffInMs);
|
|
101
|
+
return short ? getShortDateTimeFormat(remaining) : remaining;
|
|
102
|
+
}
|
|
103
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
104
|
+
0 && (module.exports = {
|
|
105
|
+
getDifferenceInMs,
|
|
106
|
+
getRemainingTime,
|
|
107
|
+
timeAgo,
|
|
108
|
+
timeRemaining
|
|
109
|
+
});
|
|
110
|
+
//# sourceMappingURL=timeRemaining.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/operations/timeRemaining.ts"],
|
|
4
|
+
"sourcesContent": ["export function getRemainingTime(ms: number) {\n const days = Math.floor(ms / (24 * 60 * 60 * 1000));\n const daysms = ms % (24 * 60 * 60 * 1000);\n const hrs = Math.floor(daysms / (60 * 60 * 1000));\n const hrsms = daysms % (60 * 60 * 1000);\n const mins = Math.floor(hrsms / (60 * 1000));\n const minsms = hrsms % (60 * 1000);\n const secs = Math.floor(minsms / 1000);\n\n let secsString = secs + ' sec';\n let minsString = mins + ' min';\n let hrsString = hrs + ' hr';\n let daysString = days + ' day';\n\n if (secs > 1) {\n secsString = secs + ' sec';\n }\n if (mins > 1) {\n minsString = mins + ' min';\n }\n if (hrs > 1) {\n hrsString = hrs + ' hrs';\n }\n if (days > 1) {\n daysString = days + ' days';\n }\n\n if (days >= 1) {\n return daysString + ' ' + hrsString;\n }\n if (hrs >= 1) {\n const minutesString = mins === 0 ? '' : ' ' + minsString;\n return hrsString + minutesString;\n }\n if (mins >= 1) {\n const secString = secs === 0 ? '' : ' ' + secsString;\n return minsString + secString;\n }\n\n return secsString;\n}\n\nfunction getShortDateTimeFormat(datetime: string) {\n const parts = datetime.split(' ');\n if (parts.length > 1) {\n return `${parts[0]} ${parts[1]}`;\n }\n return datetime;\n}\n\nconst getUTCDateNow = (date = new Date(), extendedSeconds = 0) =>\n Date.UTC(\n date.getUTCFullYear(),\n date.getUTCMonth(),\n date.getUTCDate(),\n date.getUTCHours(),\n date.getUTCMinutes(),\n date.getUTCSeconds() + extendedSeconds,\n date.getUTCMilliseconds()\n );\n\nfunction getUTCdiffInMs(duration: number) {\n const date = new Date();\n const startDate = getUTCDateNow(date);\n const endDate = getUTCDateNow(date, duration);\n const diffInMs = Math.max(endDate - startDate, 0);\n return diffInMs;\n}\n\nexport function timeRemaining(duration: number, short = true) {\n const diffInMs = getUTCdiffInMs(duration);\n const remaining = getRemainingTime(diffInMs);\n return short ? getShortDateTimeFormat(remaining) : remaining;\n}\n\nexport function getDifferenceInMs(timestamp: number) {\n const dateNow = new Date().getTime();\n const difference = dateNow - timestamp;\n const diffInMs = Math.max(difference, 0);\n\n return diffInMs;\n}\n\nexport function timeAgo(timestamp: number, short = true) {\n const diffInMs = getDifferenceInMs(timestamp);\n const remaining = getRemainingTime(diffInMs);\n\n return short ? getShortDateTimeFormat(remaining) : remaining;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,iBAAiB,IAAY;AAC3C,QAAM,OAAO,KAAK,MAAM,MAAM,KAAK,KAAK,KAAK,IAAK;AAClD,QAAM,SAAS,MAAM,KAAK,KAAK,KAAK;AACpC,QAAM,MAAM,KAAK,MAAM,UAAU,KAAK,KAAK,IAAK;AAChD,QAAM,QAAQ,UAAU,KAAK,KAAK;AAClC,QAAM,OAAO,KAAK,MAAM,SAAS,KAAK,IAAK;AAC3C,QAAM,SAAS,SAAS,KAAK;AAC7B,QAAM,OAAO,KAAK,MAAM,SAAS,GAAI;AAErC,MAAI,aAAa,OAAO;AACxB,MAAI,aAAa,OAAO;AACxB,MAAI,YAAY,MAAM;AACtB,MAAI,aAAa,OAAO;AAExB,MAAI,OAAO,GAAG;AACZ,iBAAa,OAAO;AAAA,EACtB;AACA,MAAI,OAAO,GAAG;AACZ,iBAAa,OAAO;AAAA,EACtB;AACA,MAAI,MAAM,GAAG;AACX,gBAAY,MAAM;AAAA,EACpB;AACA,MAAI,OAAO,GAAG;AACZ,iBAAa,OAAO;AAAA,EACtB;AAEA,MAAI,QAAQ,GAAG;AACb,WAAO,aAAa,MAAM;AAAA,EAC5B;AACA,MAAI,OAAO,GAAG;AACZ,UAAM,gBAAgB,SAAS,IAAI,KAAK,MAAM;AAC9C,WAAO,YAAY;AAAA,EACrB;AACA,MAAI,QAAQ,GAAG;AACb,UAAM,YAAY,SAAS,IAAI,KAAK,MAAM;AAC1C,WAAO,aAAa;AAAA,EACtB;AAEA,SAAO;AACT;AAEA,SAAS,uBAAuB,UAAkB;AAChD,QAAM,QAAQ,SAAS,MAAM,GAAG;AAChC,MAAI,MAAM,SAAS,GAAG;AACpB,WAAO,GAAG,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;AAAA,EAChC;AACA,SAAO;AACT;AAEA,MAAM,gBAAgB,CAAC,OAAO,oBAAI,KAAK,GAAG,kBAAkB,MAC1D,KAAK;AAAA,EACH,KAAK,eAAe;AAAA,EACpB,KAAK,YAAY;AAAA,EACjB,KAAK,WAAW;AAAA,EAChB,KAAK,YAAY;AAAA,EACjB,KAAK,cAAc;AAAA,EACnB,KAAK,cAAc,IAAI;AAAA,EACvB,KAAK,mBAAmB;AAC1B;AAEF,SAAS,eAAe,UAAkB;AACxC,QAAM,OAAO,oBAAI,KAAK;AACtB,QAAM,YAAY,cAAc,IAAI;AACpC,QAAM,UAAU,cAAc,MAAM,QAAQ;AAC5C,QAAM,WAAW,KAAK,IAAI,UAAU,WAAW,CAAC;AAChD,SAAO;AACT;AAEO,SAAS,cAAc,UAAkB,QAAQ,MAAM;AAC5D,QAAM,WAAW,eAAe,QAAQ;AACxC,QAAM,YAAY,iBAAiB,QAAQ;AAC3C,SAAO,QAAQ,uBAAuB,SAAS,IAAI;AACrD;AAEO,SAAS,kBAAkB,WAAmB;AACnD,QAAM,WAAU,oBAAI,KAAK,GAAE,QAAQ;AACnC,QAAM,aAAa,UAAU;AAC7B,QAAM,WAAW,KAAK,IAAI,YAAY,CAAC;AAEvC,SAAO;AACT;AAEO,SAAS,QAAQ,WAAmB,QAAQ,MAAM;AACvD,QAAM,WAAW,kBAAkB,SAAS;AAC5C,QAAM,YAAY,iBAAiB,QAAQ;AAE3C,SAAO,QAAQ,uBAAuB,SAAS,IAAI;AACrD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var trimAmountDecimals_exports = {};
|
|
30
|
+
__export(trimAmountDecimals_exports, {
|
|
31
|
+
trimAmountDecimals: () => trimAmountDecimals
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(trimAmountDecimals_exports);
|
|
34
|
+
var import_bignumber = __toESM(require("bignumber.js"));
|
|
35
|
+
var import_sdkDappUtils = require("../../lib/sdkDappUtils");
|
|
36
|
+
const trimAmountDecimals = ({
|
|
37
|
+
amount,
|
|
38
|
+
minimumPositiveDecimals
|
|
39
|
+
}) => {
|
|
40
|
+
const [mainPrice, decimalPrice] = amount.split(".");
|
|
41
|
+
const decimalPriceArray = decimalPrice ? decimalPrice.split("") : [];
|
|
42
|
+
const trimmedDecimals = decimalPriceArray.reduce((total, decimal, index) => {
|
|
43
|
+
const decimalAboveZero = new import_bignumber.default(total).isGreaterThan(import_sdkDappUtils.ZERO);
|
|
44
|
+
const minimumDecimalsReached = index > minimumPositiveDecimals - 1;
|
|
45
|
+
const shouldReturnTotal = decimalAboveZero && minimumDecimalsReached && minimumPositiveDecimals > 0;
|
|
46
|
+
if (shouldReturnTotal) {
|
|
47
|
+
return total;
|
|
48
|
+
}
|
|
49
|
+
return total.concat(decimal);
|
|
50
|
+
}, "");
|
|
51
|
+
if (!trimmedDecimals) {
|
|
52
|
+
return mainPrice;
|
|
53
|
+
}
|
|
54
|
+
return `${mainPrice}.${trimmedDecimals}`;
|
|
55
|
+
};
|
|
56
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
57
|
+
0 && (module.exports = {
|
|
58
|
+
trimAmountDecimals
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=trimAmountDecimals.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/operations/trimAmountDecimals.ts"],
|
|
4
|
+
"sourcesContent": ["import BigNumber from 'bignumber.js';\n\nimport { ZERO } from 'lib/sdkDappUtils';\n\ninterface TrimPriceAmountType {\n amount: string;\n minimumPositiveDecimals: number;\n}\n\nexport const trimAmountDecimals = ({\n amount,\n minimumPositiveDecimals\n}: TrimPriceAmountType): string => {\n const [mainPrice, decimalPrice] = amount.split('.');\n\n const decimalPriceArray = decimalPrice ? decimalPrice.split('') : [];\n const trimmedDecimals = decimalPriceArray.reduce((total, decimal, index) => {\n const decimalAboveZero = new BigNumber(total).isGreaterThan(ZERO);\n const minimumDecimalsReached = index > minimumPositiveDecimals - 1;\n\n const shouldReturnTotal =\n decimalAboveZero && minimumDecimalsReached && minimumPositiveDecimals > 0;\n\n if (shouldReturnTotal) {\n return total;\n }\n\n return total.concat(decimal);\n }, '');\n\n if (!trimmedDecimals) {\n return mainPrice;\n }\n\n return `${mainPrice}.${trimmedDecimals}`;\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAsB;AAEtB,0BAAqB;AAOd,MAAM,qBAAqB,CAAC;AAAA,EACjC;AAAA,EACA;AACF,MAAmC;AACjC,QAAM,CAAC,WAAW,YAAY,IAAI,OAAO,MAAM,GAAG;AAElD,QAAM,oBAAoB,eAAe,aAAa,MAAM,EAAE,IAAI,CAAC;AACnE,QAAM,kBAAkB,kBAAkB,OAAO,CAAC,OAAO,SAAS,UAAU;AAC1E,UAAM,mBAAmB,IAAI,iBAAAA,QAAU,KAAK,EAAE,cAAc,wBAAI;AAChE,UAAM,yBAAyB,QAAQ,0BAA0B;AAEjE,UAAM,oBACJ,oBAAoB,0BAA0B,0BAA0B;AAE1E,QAAI,mBAAmB;AACrB,aAAO;AAAA,IACT;AAEA,WAAO,MAAM,OAAO,OAAO;AAAA,EAC7B,GAAG,EAAE;AAEL,MAAI,CAAC,iBAAiB;AACpB,WAAO;AAAA,EACT;AAEA,SAAO,GAAG,SAAS,IAAI,eAAe;AACxC;",
|
|
6
|
+
"names": ["BigNumber"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var retryMultipleTimes_exports = {};
|
|
20
|
+
__export(retryMultipleTimes_exports, {
|
|
21
|
+
retryMultipleTimes: () => retryMultipleTimes
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(retryMultipleTimes_exports);
|
|
24
|
+
var import_asyncActions = require("./asyncActions");
|
|
25
|
+
const executeAsyncCall = async (cb, options, args, retries = 0) => {
|
|
26
|
+
try {
|
|
27
|
+
return await cb(...args);
|
|
28
|
+
} catch (error) {
|
|
29
|
+
if (retries < options.retries) {
|
|
30
|
+
if (options?.delay != null) {
|
|
31
|
+
await (0, import_asyncActions.sleep)(options.delay);
|
|
32
|
+
}
|
|
33
|
+
return await executeAsyncCall(cb, options, args, retries + 1);
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const retryMultipleTimes = (cb, options = { retries: 5, delay: 500 }) => async (...args) => {
|
|
39
|
+
return await executeAsyncCall(cb, options, args);
|
|
40
|
+
};
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {
|
|
43
|
+
retryMultipleTimes
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=retryMultipleTimes.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils/retryMultipleTimes.ts"],
|
|
4
|
+
"sourcesContent": ["import { sleep } from './asyncActions';\n\ninterface Options {\n retries: number;\n delay?: number;\n}\n\nconst executeAsyncCall = async (\n cb: (..._args: any[]) => any,\n options: Options,\n args: any[],\n retries = 0\n): Promise<any | null> => {\n try {\n return await cb(...args);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n } catch (error) {\n if (retries < options.retries) {\n if (options?.delay != null) {\n await sleep(options.delay);\n }\n\n return await executeAsyncCall(cb, options, args, retries + 1);\n }\n\n return null;\n }\n};\n\nexport const retryMultipleTimes =\n (\n cb: (..._args: any[]) => any,\n options: Options = { retries: 5, delay: 500 }\n ) =>\n async (...args: any[]) => {\n return await executeAsyncCall(cb, options, args);\n };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAsB;AAOtB,MAAM,mBAAmB,OACvB,IACA,SACA,MACA,UAAU,MACc;AACxB,MAAI;AACF,WAAO,MAAM,GAAG,GAAG,IAAI;AAAA,EAEzB,SAAS,OAAO;AACd,QAAI,UAAU,QAAQ,SAAS;AAC7B,UAAI,SAAS,SAAS,MAAM;AAC1B,kBAAM,2BAAM,QAAQ,KAAK;AAAA,MAC3B;AAEA,aAAO,MAAM,iBAAiB,IAAI,SAAS,MAAM,UAAU,CAAC;AAAA,IAC9D;AAEA,WAAO;AAAA,EACT;AACF;AAEO,MAAM,qBACX,CACE,IACA,UAAmB,EAAE,SAAS,GAAG,OAAO,IAAI,MAE9C,UAAU,SAAgB;AACxB,SAAO,MAAM,iBAAiB,IAAI,SAAS,IAAI;AACjD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var explorerUrlBuilder_exports = {};
|
|
20
|
+
__export(explorerUrlBuilder_exports, {
|
|
21
|
+
explorerUrlBuilder: () => explorerUrlBuilder
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(explorerUrlBuilder_exports);
|
|
24
|
+
var import_endpoints = require("../../apiCalls/endpoints");
|
|
25
|
+
const explorerUrlBuilder = {
|
|
26
|
+
shard: (shard) => `/${import_endpoints.BLOCKS_ENDPOINT}?shard=${shard}`,
|
|
27
|
+
receiverShard: (shard) => `/${import_endpoints.TRANSACTIONS_ENDPOINT}?receivershard=${shard}`,
|
|
28
|
+
senderShard: (shard) => `/${import_endpoints.TRANSACTIONS_ENDPOINT}?sendershard=${shard}`,
|
|
29
|
+
transactionDetails: (hash) => `/${import_endpoints.TRANSACTIONS_ENDPOINT}/${hash}`,
|
|
30
|
+
transactionDetailsScResults: (hash) => `/${import_endpoints.TRANSACTIONS_ENDPOINT}/${hash}/${import_endpoints.SC_RESULTS_ENDPOINT}`,
|
|
31
|
+
transactionDetailsLogs: (hash) => `/${import_endpoints.TRANSACTIONS_ENDPOINT}/${hash}/${import_endpoints.LOGS_ENDPOINT}`,
|
|
32
|
+
nodeDetails: (publicKey) => `/${import_endpoints.NODES_ENDPOINT}/${publicKey}`,
|
|
33
|
+
accountDetails: (address) => `/${import_endpoints.ACCOUNTS_ENDPOINT}/${address}`,
|
|
34
|
+
accountDetailsContractCode: (address) => `/${import_endpoints.ACCOUNTS_ENDPOINT}/${address}/${import_endpoints.CODE_ENDPOINT}`,
|
|
35
|
+
accountDetailsTokens: (address) => `/${import_endpoints.ACCOUNTS_ENDPOINT}/${address}/${import_endpoints.TOKENS_ENDPOINT}`,
|
|
36
|
+
accountDetailsNfts: (address) => `/${import_endpoints.ACCOUNTS_ENDPOINT}/${address}/${import_endpoints.NFTS_ENDPOINT}`,
|
|
37
|
+
accountDetailsScResults: (address) => `/${import_endpoints.ACCOUNTS_ENDPOINT}/${address}/${import_endpoints.SC_RESULTS_ENDPOINT}`,
|
|
38
|
+
accountDetailsContracts: (address) => `/${import_endpoints.ACCOUNTS_ENDPOINT}/${address}/${import_endpoints.CONTRACTS_ENDPOINT}`,
|
|
39
|
+
identityDetails: (id) => `/${import_endpoints.IDENTITIES_ENDPOINT}/${id}`,
|
|
40
|
+
tokenDetails: (tokenId) => `/${import_endpoints.TOKENS_ENDPOINT}/${tokenId}`,
|
|
41
|
+
tokenDetailsAccounts: (tokenId) => `/${import_endpoints.TOKENS_ENDPOINT}/${tokenId}/${import_endpoints.ACCOUNTS_ENDPOINT}`,
|
|
42
|
+
tokenDetailsLockedAccounts: (tokenId) => `/${import_endpoints.TOKENS_ENDPOINT}/${tokenId}/${import_endpoints.LOCKED_ACCOUNTS_ENDPOINT}`,
|
|
43
|
+
tokenDetailsRoles: (tokenId) => `/${import_endpoints.TOKENS_ENDPOINT}/${tokenId}/${import_endpoints.ROLES_ENDPOINT}`,
|
|
44
|
+
collectionDetails: (identifier) => `/${import_endpoints.COLLECTIONS_ENDPOINT}/${identifier}`,
|
|
45
|
+
nftDetails: (identifier) => `/${import_endpoints.NFTS_ENDPOINT}/${identifier}`,
|
|
46
|
+
providerDetails: (address) => `/${import_endpoints.PROVIDERS_ENDPOINT}/${address}`,
|
|
47
|
+
providerDetailsTransactions: (address) => `/${import_endpoints.PROVIDERS_ENDPOINT}/${address}/${import_endpoints.TRANSACTIONS_ENDPOINT}`,
|
|
48
|
+
miniblockDetails: (hash) => `/${import_endpoints.MINIBLOCKS_ENDPOINT}/${hash}`
|
|
49
|
+
};
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
explorerUrlBuilder
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=explorerUrlBuilder.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/transactions/explorerUrlBuilder.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n ACCOUNTS_ENDPOINT,\n BLOCKS_ENDPOINT,\n CODE_ENDPOINT,\n COLLECTIONS_ENDPOINT,\n CONTRACTS_ENDPOINT,\n IDENTITIES_ENDPOINT,\n LOCKED_ACCOUNTS_ENDPOINT,\n LOGS_ENDPOINT,\n MINIBLOCKS_ENDPOINT,\n NFTS_ENDPOINT,\n NODES_ENDPOINT,\n PROVIDERS_ENDPOINT,\n ROLES_ENDPOINT,\n SC_RESULTS_ENDPOINT,\n TOKENS_ENDPOINT,\n TRANSACTIONS_ENDPOINT\n} from 'apiCalls/endpoints';\n\nexport const explorerUrlBuilder = {\n shard: (shard: number | string) => `/${BLOCKS_ENDPOINT}?shard=${shard}`,\n receiverShard: (shard: number | string) =>\n `/${TRANSACTIONS_ENDPOINT}?receivershard=${shard}`,\n senderShard: (shard: number | string) =>\n `/${TRANSACTIONS_ENDPOINT}?sendershard=${shard}`,\n transactionDetails: (hash: number | string) =>\n `/${TRANSACTIONS_ENDPOINT}/${hash}`,\n transactionDetailsScResults: (hash: string) =>\n `/${TRANSACTIONS_ENDPOINT}/${hash}/${SC_RESULTS_ENDPOINT}`,\n transactionDetailsLogs: (hash: string) =>\n `/${TRANSACTIONS_ENDPOINT}/${hash}/${LOGS_ENDPOINT}`,\n nodeDetails: (publicKey: string) => `/${NODES_ENDPOINT}/${publicKey}`,\n accountDetails: (address: string) => `/${ACCOUNTS_ENDPOINT}/${address}`,\n accountDetailsContractCode: (address: string) =>\n `/${ACCOUNTS_ENDPOINT}/${address}/${CODE_ENDPOINT}`,\n accountDetailsTokens: (address: string) =>\n `/${ACCOUNTS_ENDPOINT}/${address}/${TOKENS_ENDPOINT}`,\n accountDetailsNfts: (address: string) =>\n `/${ACCOUNTS_ENDPOINT}/${address}/${NFTS_ENDPOINT}`,\n accountDetailsScResults: (address: string) =>\n `/${ACCOUNTS_ENDPOINT}/${address}/${SC_RESULTS_ENDPOINT}`,\n accountDetailsContracts: (address: string) =>\n `/${ACCOUNTS_ENDPOINT}/${address}/${CONTRACTS_ENDPOINT}`,\n identityDetails: (id: string) => `/${IDENTITIES_ENDPOINT}/${id}`,\n tokenDetails: (tokenId: string) => `/${TOKENS_ENDPOINT}/${tokenId}`,\n tokenDetailsAccounts: (tokenId: string) =>\n `/${TOKENS_ENDPOINT}/${tokenId}/${ACCOUNTS_ENDPOINT}`,\n tokenDetailsLockedAccounts: (tokenId: string) =>\n `/${TOKENS_ENDPOINT}/${tokenId}/${LOCKED_ACCOUNTS_ENDPOINT}`,\n tokenDetailsRoles: (tokenId: string) =>\n `/${TOKENS_ENDPOINT}/${tokenId}/${ROLES_ENDPOINT}`,\n collectionDetails: (identifier: string) =>\n `/${COLLECTIONS_ENDPOINT}/${identifier}`,\n nftDetails: (identifier: string) => `/${NFTS_ENDPOINT}/${identifier}`,\n providerDetails: (address: string) => `/${PROVIDERS_ENDPOINT}/${address}`,\n providerDetailsTransactions: (address: string) =>\n `/${PROVIDERS_ENDPOINT}/${address}/${TRANSACTIONS_ENDPOINT}`,\n miniblockDetails: (hash: string) => `/${MINIBLOCKS_ENDPOINT}/${hash}`\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAiBO;AAEA,MAAM,qBAAqB;AAAA,EAChC,OAAO,CAAC,UAA2B,IAAI,gCAAe,UAAU,KAAK;AAAA,EACrE,eAAe,CAAC,UACd,IAAI,sCAAqB,kBAAkB,KAAK;AAAA,EAClD,aAAa,CAAC,UACZ,IAAI,sCAAqB,gBAAgB,KAAK;AAAA,EAChD,oBAAoB,CAAC,SACnB,IAAI,sCAAqB,IAAI,IAAI;AAAA,EACnC,6BAA6B,CAAC,SAC5B,IAAI,sCAAqB,IAAI,IAAI,IAAI,oCAAmB;AAAA,EAC1D,wBAAwB,CAAC,SACvB,IAAI,sCAAqB,IAAI,IAAI,IAAI,8BAAa;AAAA,EACpD,aAAa,CAAC,cAAsB,IAAI,+BAAc,IAAI,SAAS;AAAA,EACnE,gBAAgB,CAAC,YAAoB,IAAI,kCAAiB,IAAI,OAAO;AAAA,EACrE,4BAA4B,CAAC,YAC3B,IAAI,kCAAiB,IAAI,OAAO,IAAI,8BAAa;AAAA,EACnD,sBAAsB,CAAC,YACrB,IAAI,kCAAiB,IAAI,OAAO,IAAI,gCAAe;AAAA,EACrD,oBAAoB,CAAC,YACnB,IAAI,kCAAiB,IAAI,OAAO,IAAI,8BAAa;AAAA,EACnD,yBAAyB,CAAC,YACxB,IAAI,kCAAiB,IAAI,OAAO,IAAI,oCAAmB;AAAA,EACzD,yBAAyB,CAAC,YACxB,IAAI,kCAAiB,IAAI,OAAO,IAAI,mCAAkB;AAAA,EACxD,iBAAiB,CAAC,OAAe,IAAI,oCAAmB,IAAI,EAAE;AAAA,EAC9D,cAAc,CAAC,YAAoB,IAAI,gCAAe,IAAI,OAAO;AAAA,EACjE,sBAAsB,CAAC,YACrB,IAAI,gCAAe,IAAI,OAAO,IAAI,kCAAiB;AAAA,EACrD,4BAA4B,CAAC,YAC3B,IAAI,gCAAe,IAAI,OAAO,IAAI,yCAAwB;AAAA,EAC5D,mBAAmB,CAAC,YAClB,IAAI,gCAAe,IAAI,OAAO,IAAI,+BAAc;AAAA,EAClD,mBAAmB,CAAC,eAClB,IAAI,qCAAoB,IAAI,UAAU;AAAA,EACxC,YAAY,CAAC,eAAuB,IAAI,8BAAa,IAAI,UAAU;AAAA,EACnE,iBAAiB,CAAC,YAAoB,IAAI,mCAAkB,IAAI,OAAO;AAAA,EACvE,6BAA6B,CAAC,YAC5B,IAAI,mCAAkB,IAAI,OAAO,IAAI,sCAAqB;AAAA,EAC5D,kBAAkB,CAAC,SAAiB,IAAI,oCAAmB,IAAI,IAAI;AACrE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getActiveTransactionsStatus_exports = {};
|
|
20
|
+
__export(getActiveTransactionsStatus_exports, {
|
|
21
|
+
getActiveTransactionsStatus: () => getActiveTransactionsStatus
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getActiveTransactionsStatus_exports);
|
|
24
|
+
var import_transactionsSelector = require("../../store/selectors/transactionsSelector");
|
|
25
|
+
var import_store = require("../../store/store");
|
|
26
|
+
function getActiveTransactionsStatus() {
|
|
27
|
+
const state = (0, import_store.getState)();
|
|
28
|
+
const timedOutTransactions = (0, import_transactionsSelector.timedOutTransactionsSelector)(state);
|
|
29
|
+
const failedTransactions = (0, import_transactionsSelector.failedTransactionsSelector)(state);
|
|
30
|
+
const successfulTransactions = (0, import_transactionsSelector.successfulTransactionsSelector)(state);
|
|
31
|
+
const pendingTransactions = (0, import_transactionsSelector.pendingTransactionsSelector)(state);
|
|
32
|
+
const pending = Object.keys(pendingTransactions)?.length > 0;
|
|
33
|
+
const timedOut = !pending && Object.keys(timedOutTransactions)?.length > 0;
|
|
34
|
+
const fail = !pending && !timedOut && Object.keys(failedTransactions)?.length > 0;
|
|
35
|
+
const success = !pending && !timedOut && !fail && Object.keys(successfulTransactions).length > 0;
|
|
36
|
+
return {
|
|
37
|
+
pending,
|
|
38
|
+
timedOut,
|
|
39
|
+
fail,
|
|
40
|
+
success
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
getActiveTransactionsStatus
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=getActiveTransactionsStatus.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/transactions/getActiveTransactionsStatus.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n failedTransactionsSelector,\n pendingTransactionsSelector,\n successfulTransactionsSelector,\n timedOutTransactionsSelector\n} from 'store/selectors/transactionsSelector';\nimport { getState } from 'store/store';\n\nexport interface GetActiveTransactionsStatusReturnType {\n timedOut: boolean;\n fail: boolean;\n success: boolean;\n pending: boolean;\n}\n\nexport function getActiveTransactionsStatus(): GetActiveTransactionsStatusReturnType {\n const state = getState();\n const timedOutTransactions = timedOutTransactionsSelector(state);\n const failedTransactions = failedTransactionsSelector(state);\n const successfulTransactions = successfulTransactionsSelector(state);\n const pendingTransactions = pendingTransactionsSelector(state);\n const pending = Object.keys(pendingTransactions)?.length > 0;\n const timedOut = !pending && Object.keys(timedOutTransactions)?.length > 0;\n\n const fail =\n !pending && !timedOut && Object.keys(failedTransactions)?.length > 0;\n\n const success =\n !pending &&\n !timedOut &&\n !fail &&\n Object.keys(successfulTransactions).length > 0;\n\n return {\n pending,\n timedOut,\n fail,\n success\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAKO;AACP,mBAAyB;AASlB,SAAS,8BAAqE;AACnF,QAAM,YAAQ,uBAAS;AACvB,QAAM,2BAAuB,0DAA6B,KAAK;AAC/D,QAAM,yBAAqB,wDAA2B,KAAK;AAC3D,QAAM,6BAAyB,4DAA+B,KAAK;AACnE,QAAM,0BAAsB,yDAA4B,KAAK;AAC7D,QAAM,UAAU,OAAO,KAAK,mBAAmB,GAAG,SAAS;AAC3D,QAAM,WAAW,CAAC,WAAW,OAAO,KAAK,oBAAoB,GAAG,SAAS;AAEzE,QAAM,OACJ,CAAC,WAAW,CAAC,YAAY,OAAO,KAAK,kBAAkB,GAAG,SAAS;AAErE,QAAM,UACJ,CAAC,WACD,CAAC,YACD,CAAC,QACD,OAAO,KAAK,sBAAsB,EAAE,SAAS;AAE/C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../__chunks__/chunk-IS62JDWR.mjs";import"../../__chunks__/chunk-TQA3JDNV.mjs";import"../../__chunks__/chunk-GUPYIQ3X.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-J7GHXLMR.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-X4XULIVT.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-5ICRLXOJ.mjs";export{a as getActiveTransactionsStatus};
|
|
2
2
|
//# sourceMappingURL=getActiveTransactionsStatus.mjs.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getExplorerLink_exports = {};
|
|
20
|
+
__export(getExplorerLink_exports, {
|
|
21
|
+
getExplorerLink: () => getExplorerLink
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getExplorerLink_exports);
|
|
24
|
+
let errorMessageDisplayed = false;
|
|
25
|
+
function logError(error) {
|
|
26
|
+
if (!errorMessageDisplayed) {
|
|
27
|
+
console.error(error);
|
|
28
|
+
errorMessageDisplayed = true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function getExplorerLink({
|
|
32
|
+
explorerAddress,
|
|
33
|
+
to
|
|
34
|
+
}) {
|
|
35
|
+
try {
|
|
36
|
+
const url = new URL(to);
|
|
37
|
+
return url.href;
|
|
38
|
+
} catch {
|
|
39
|
+
if (!to.startsWith("/")) {
|
|
40
|
+
logError(`Link not prepended by / : ${to}`);
|
|
41
|
+
to = `/${to}`;
|
|
42
|
+
}
|
|
43
|
+
return explorerAddress ? `${explorerAddress}${to}` : to;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
47
|
+
0 && (module.exports = {
|
|
48
|
+
getExplorerLink
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=getExplorerLink.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/transactions/getExplorerLink.ts"],
|
|
4
|
+
"sourcesContent": ["let errorMessageDisplayed = false;\n\nfunction logError(error: string) {\n if (!errorMessageDisplayed) {\n console.error(error);\n errorMessageDisplayed = true;\n }\n}\n\nexport function getExplorerLink({\n explorerAddress,\n to\n}: {\n explorerAddress: string;\n to: string;\n}) {\n try {\n // if a valid url is sent, return the original url\n const url = new URL(to);\n return url.href;\n } catch {\n if (!to.startsWith('/')) {\n logError(`Link not prepended by / : ${to}`);\n to = `/${to}`;\n }\n return explorerAddress ? `${explorerAddress}${to}` : to;\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAI,wBAAwB;AAE5B,SAAS,SAAS,OAAe;AAC/B,MAAI,CAAC,uBAAuB;AAC1B,YAAQ,MAAM,KAAK;AACnB,4BAAwB;AAAA,EAC1B;AACF;AAEO,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AACF,GAGG;AACD,MAAI;AAEF,UAAM,MAAM,IAAI,IAAI,EAAE;AACtB,WAAO,IAAI;AAAA,EACb,QAAQ;AACN,QAAI,CAAC,GAAG,WAAW,GAAG,GAAG;AACvB,eAAS,6BAA6B,EAAE,EAAE;AAC1C,WAAK,IAAI,EAAE;AAAA,IACb;AACA,WAAO,kBAAkB,GAAG,eAAe,GAAG,EAAE,KAAK;AAAA,EACvD;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getHumanReadableTimeFormat_exports = {};
|
|
20
|
+
__export(getHumanReadableTimeFormat_exports, {
|
|
21
|
+
getHumanReadableTimeFormat: () => getHumanReadableTimeFormat
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getHumanReadableTimeFormat_exports);
|
|
24
|
+
function getHumanReadableTimeFormat({
|
|
25
|
+
value,
|
|
26
|
+
noSeconds,
|
|
27
|
+
utc,
|
|
28
|
+
meridiem = true
|
|
29
|
+
}) {
|
|
30
|
+
const utcDate = new Date(value * 1e3);
|
|
31
|
+
const [, AmPm] = utcDate.toLocaleString("en-US", { hour: "numeric", hour12: meridiem }).split(" ");
|
|
32
|
+
const formatted = utcDate.toUTCString();
|
|
33
|
+
const [, date] = formatted.split(",");
|
|
34
|
+
const [day, month, year, time] = date.trim().split(" ");
|
|
35
|
+
const [hours, minutes, sec] = time.split(":");
|
|
36
|
+
const seconds = `:${sec}`;
|
|
37
|
+
const timeFormatted = `${hours}:${minutes}${noSeconds ? "" : seconds}`;
|
|
38
|
+
const utcSuffix = utc ? "UTC" : "";
|
|
39
|
+
const meridiemSuffix = meridiem ? AmPm : "";
|
|
40
|
+
const suffix = `${meridiemSuffix} ${utcSuffix}`.trim();
|
|
41
|
+
return `${month} ${day}, ${year} ${timeFormatted} ${suffix}`.trim();
|
|
42
|
+
}
|
|
43
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
+
0 && (module.exports = {
|
|
45
|
+
getHumanReadableTimeFormat
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=getHumanReadableTimeFormat.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/utils/transactions/getHumanReadableTimeFormat.ts"],
|
|
4
|
+
"sourcesContent": ["export interface GetHumanReadableTimeFormatType {\n value: number;\n noSeconds?: boolean;\n utc?: boolean;\n meridiem?: boolean;\n}\n\n/**\n * @param value - UNIX timestamp\n * */\nexport function getHumanReadableTimeFormat({\n value,\n noSeconds,\n utc,\n meridiem = true\n}: GetHumanReadableTimeFormatType) {\n const utcDate = new Date(value * 1000);\n const [, AmPm] = utcDate\n .toLocaleString('en-US', { hour: 'numeric', hour12: meridiem })\n .split(' ');\n const formatted = utcDate.toUTCString();\n const [, date] = formatted.split(',');\n const [day, month, year, time] = date.trim().split(' ');\n const [hours, minutes, sec] = time.split(':');\n const seconds = `:${sec}`;\n const timeFormatted = `${hours}:${minutes}${noSeconds ? '' : seconds}`;\n const utcSuffix = utc ? 'UTC' : '';\n const meridiemSuffix = meridiem ? AmPm : '';\n const suffix = `${meridiemSuffix} ${utcSuffix}`.trim();\n\n return `${month} ${day}, ${year} ${timeFormatted} ${suffix}`.trim();\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,SAAS,2BAA2B;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AACb,GAAmC;AACjC,QAAM,UAAU,IAAI,KAAK,QAAQ,GAAI;AACrC,QAAM,CAAC,EAAE,IAAI,IAAI,QACd,eAAe,SAAS,EAAE,MAAM,WAAW,QAAQ,SAAS,CAAC,EAC7D,MAAM,GAAG;AACZ,QAAM,YAAY,QAAQ,YAAY;AACtC,QAAM,CAAC,EAAE,IAAI,IAAI,UAAU,MAAM,GAAG;AACpC,QAAM,CAAC,KAAK,OAAO,MAAM,IAAI,IAAI,KAAK,KAAK,EAAE,MAAM,GAAG;AACtD,QAAM,CAAC,OAAO,SAAS,GAAG,IAAI,KAAK,MAAM,GAAG;AAC5C,QAAM,UAAU,IAAI,GAAG;AACvB,QAAM,gBAAgB,GAAG,KAAK,IAAI,OAAO,GAAG,YAAY,KAAK,OAAO;AACpE,QAAM,YAAY,MAAM,QAAQ;AAChC,QAAM,iBAAiB,WAAW,OAAO;AACzC,QAAM,SAAS,GAAG,cAAc,IAAI,SAAS,GAAG,KAAK;AAErD,SAAO,GAAG,KAAK,IAAI,GAAG,KAAK,IAAI,IAAI,aAAa,IAAI,MAAM,GAAG,KAAK;AACpE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var getInterpretedTransaction_exports = {};
|
|
20
|
+
__export(getInterpretedTransaction_exports, {
|
|
21
|
+
getInterpretedTransaction: () => getInterpretedTransaction
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getInterpretedTransaction_exports);
|
|
24
|
+
var import_timeRemaining = require("../../../utils/operations/timeRemaining");
|
|
25
|
+
var import_validation = require("../../../utils/validation");
|
|
26
|
+
var import_explorerUrlBuilder = require("../explorerUrlBuilder");
|
|
27
|
+
var import_getExplorerLink = require("../getExplorerLink");
|
|
28
|
+
var import_getHumanReadableTimeFormat = require("../getHumanReadableTimeFormat");
|
|
29
|
+
var import_getTokenFromData = require("./helpers/getTokenFromData");
|
|
30
|
+
var import_getTransactionIconInfo = require("./helpers/getTransactionIconInfo");
|
|
31
|
+
var import_getTransactionMethod = require("./helpers/getTransactionMethod");
|
|
32
|
+
var import_getTransactionReceiver = require("./helpers/getTransactionReceiver");
|
|
33
|
+
var import_getTransactionReceiverAssets = require("./helpers/getTransactionReceiverAssets");
|
|
34
|
+
var import_getTransactionTokens = require("./helpers/getTransactionTokens");
|
|
35
|
+
var import_getTransactionTransferType = require("./helpers/getTransactionTransferType");
|
|
36
|
+
function getInterpretedTransaction({
|
|
37
|
+
transaction,
|
|
38
|
+
address,
|
|
39
|
+
explorerAddress
|
|
40
|
+
}) {
|
|
41
|
+
const tokenIdentifier = transaction.tokenIdentifier ?? (0, import_getTokenFromData.getTokenFromData)(transaction.data).tokenId;
|
|
42
|
+
const receiver = (0, import_getTransactionReceiver.getTransactionReceiver)(transaction);
|
|
43
|
+
const receiverAssets = (0, import_getTransactionReceiverAssets.getTransactionReceiverAssets)(transaction);
|
|
44
|
+
const age = {
|
|
45
|
+
timeAgo: (0, import_timeRemaining.timeAgo)(transaction.timestamp * 1e3, true),
|
|
46
|
+
tooltip: (0, import_getHumanReadableTimeFormat.getHumanReadableTimeFormat)({
|
|
47
|
+
value: transaction.timestamp,
|
|
48
|
+
noSeconds: false,
|
|
49
|
+
utc: true
|
|
50
|
+
})
|
|
51
|
+
};
|
|
52
|
+
const direction = (0, import_getTransactionTransferType.getTransactionTransferType)({
|
|
53
|
+
address,
|
|
54
|
+
transaction,
|
|
55
|
+
receiver
|
|
56
|
+
});
|
|
57
|
+
const method = {
|
|
58
|
+
actionDescription: transaction.action?.description,
|
|
59
|
+
name: (0, import_getTransactionMethod.getTransactionMethod)(transaction)
|
|
60
|
+
};
|
|
61
|
+
const transactionTokens = (0, import_getTransactionTokens.getTransactionTokens)(transaction);
|
|
62
|
+
const senderLink = (0, import_getExplorerLink.getExplorerLink)({
|
|
63
|
+
explorerAddress,
|
|
64
|
+
to: import_explorerUrlBuilder.explorerUrlBuilder.accountDetails(transaction.sender)
|
|
65
|
+
});
|
|
66
|
+
const receiverLink = (0, import_getExplorerLink.getExplorerLink)({
|
|
67
|
+
explorerAddress,
|
|
68
|
+
to: import_explorerUrlBuilder.explorerUrlBuilder.accountDetails(receiver)
|
|
69
|
+
});
|
|
70
|
+
const senderShardLink = (0, import_getExplorerLink.getExplorerLink)({
|
|
71
|
+
explorerAddress,
|
|
72
|
+
to: import_explorerUrlBuilder.explorerUrlBuilder.senderShard(transaction.senderShard)
|
|
73
|
+
});
|
|
74
|
+
const receiverShardLink = (0, import_getExplorerLink.getExplorerLink)({
|
|
75
|
+
explorerAddress,
|
|
76
|
+
to: import_explorerUrlBuilder.explorerUrlBuilder.receiverShard(transaction.receiverShard)
|
|
77
|
+
});
|
|
78
|
+
const transactionHash = transaction.originalTxHash || transaction.txHash;
|
|
79
|
+
const transactionLink = (0, import_getExplorerLink.getExplorerLink)({
|
|
80
|
+
explorerAddress,
|
|
81
|
+
to: import_explorerUrlBuilder.explorerUrlBuilder.transactionDetails(transactionHash)
|
|
82
|
+
});
|
|
83
|
+
return {
|
|
84
|
+
...transaction,
|
|
85
|
+
txHash: transactionHash,
|
|
86
|
+
tokenIdentifier,
|
|
87
|
+
receiver,
|
|
88
|
+
receiverAssets,
|
|
89
|
+
transactionDetails: {
|
|
90
|
+
age,
|
|
91
|
+
direction,
|
|
92
|
+
method,
|
|
93
|
+
iconInfo: (0, import_getTransactionIconInfo.getTransactionIconInfo)(transaction),
|
|
94
|
+
transactionTokens,
|
|
95
|
+
isContract: (0, import_validation.isContract)(transaction.sender)
|
|
96
|
+
},
|
|
97
|
+
links: {
|
|
98
|
+
senderLink,
|
|
99
|
+
receiverLink,
|
|
100
|
+
senderShardLink,
|
|
101
|
+
receiverShardLink,
|
|
102
|
+
transactionLink
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
107
|
+
0 && (module.exports = {
|
|
108
|
+
getInterpretedTransaction
|
|
109
|
+
});
|
|
110
|
+
//# sourceMappingURL=getInterpretedTransaction.cjs.map
|