@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,113 @@
|
|
|
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 initApp_exports = {};
|
|
20
|
+
__export(initApp_exports, {
|
|
21
|
+
initApp: () => initApp
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(initApp_exports);
|
|
24
|
+
var import_window = require("../../constants/window.constants");
|
|
25
|
+
var import_sdkDappUi = require("../../lib/sdkDappUi");
|
|
26
|
+
var import_ToastManager = require("../../managers/internal/ToastManager/ToastManager");
|
|
27
|
+
var import_LogoutManager = require("../../managers/LogoutManager/LogoutManager");
|
|
28
|
+
var import_sessionCallbacks = require("../../managers/TransactionManager/helpers/sessionCallbacks");
|
|
29
|
+
var import_restoreProvider = require("../../providers/helpers/restoreProvider");
|
|
30
|
+
var import_ProviderFactory = require("../../providers/ProviderFactory");
|
|
31
|
+
var import_getDefaultNativeAuthConfig = require("../../services/nativeAuth/methods/getDefaultNativeAuthConfig");
|
|
32
|
+
var import_actions = require("../../store/actions");
|
|
33
|
+
var import_configActions = require("../../store/actions/config/configActions");
|
|
34
|
+
var import_storage = require("../../store/storage");
|
|
35
|
+
var import_store = require("../../store/store");
|
|
36
|
+
var import_types = require("../../types");
|
|
37
|
+
var import_switchTheme = require("../../utils/visual/switchTheme");
|
|
38
|
+
var import_getIsLoggedIn = require("../account/getIsLoggedIn");
|
|
39
|
+
var import_registerWebsocket = require("./websocket/registerWebsocket");
|
|
40
|
+
var import_trackTransactions = require("../trackTransactions/trackTransactions");
|
|
41
|
+
var import_setGasStationMetadata = require("./gastStationMetadata/setGasStationMetadata");
|
|
42
|
+
var import_getAccount = require("../account/getAccount");
|
|
43
|
+
const defaultInitAppProps = {
|
|
44
|
+
storage: {
|
|
45
|
+
getStorageCallback: import_storage.defaultStorageCallback
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
let isAppInitialized = false;
|
|
49
|
+
let isInitializing = false;
|
|
50
|
+
async function initApp({
|
|
51
|
+
storage = defaultInitAppProps.storage,
|
|
52
|
+
dAppConfig,
|
|
53
|
+
customProviders
|
|
54
|
+
}) {
|
|
55
|
+
if (isInitializing) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
isInitializing = true;
|
|
59
|
+
const defaultTheme = dAppConfig?.theme ?? import_types.ThemesEnum.dark;
|
|
60
|
+
await (0, import_sdkDappUi.defineCustomElements)();
|
|
61
|
+
(0, import_switchTheme.switchTheme)(defaultTheme);
|
|
62
|
+
(0, import_store.initStore)(storage.getStorageCallback);
|
|
63
|
+
const { apiAddress } = await (0, import_actions.initializeNetwork)({
|
|
64
|
+
customNetworkConfig: dAppConfig.network,
|
|
65
|
+
environment: dAppConfig.environment
|
|
66
|
+
});
|
|
67
|
+
if (dAppConfig?.nativeAuth) {
|
|
68
|
+
const nativeAuthConfig = typeof dAppConfig.nativeAuth === "boolean" && dAppConfig.nativeAuth === true ? (0, import_getDefaultNativeAuthConfig.getDefaultNativeAuthConfig)({ apiAddress }) : (0, import_getDefaultNativeAuthConfig.getDefaultNativeAuthConfig)(dAppConfig.nativeAuth);
|
|
69
|
+
(0, import_configActions.setNativeAuthConfig)(nativeAuthConfig);
|
|
70
|
+
}
|
|
71
|
+
if (dAppConfig?.providers?.walletConnect) {
|
|
72
|
+
(0, import_configActions.setWalletConnectConfig)(dAppConfig.providers.walletConnect);
|
|
73
|
+
}
|
|
74
|
+
const isLoggedIn = (0, import_getIsLoggedIn.getIsLoggedIn)();
|
|
75
|
+
const account = (0, import_getAccount.getAccount)();
|
|
76
|
+
const toastManager = import_ToastManager.ToastManager.getInstance();
|
|
77
|
+
await toastManager.init({
|
|
78
|
+
successfulToastLifetime: dAppConfig.transactionTracking?.successfulToastLifetime
|
|
79
|
+
});
|
|
80
|
+
const usedProviders = [
|
|
81
|
+
...import_window.safeWindow?.multiversx?.providers ?? [],
|
|
82
|
+
...customProviders || []
|
|
83
|
+
];
|
|
84
|
+
const uniqueProviders = usedProviders.filter(
|
|
85
|
+
(provider, index, arr) => index === arr.findIndex((item) => item.type === provider.type)
|
|
86
|
+
);
|
|
87
|
+
import_ProviderFactory.ProviderFactory.customProviders = uniqueProviders || [];
|
|
88
|
+
if (!isAppInitialized) {
|
|
89
|
+
await (0, import_restoreProvider.restoreProvider)();
|
|
90
|
+
if (isLoggedIn) {
|
|
91
|
+
await (0, import_registerWebsocket.registerWebsocketListener)(account.address);
|
|
92
|
+
(0, import_trackTransactions.trackTransactions)();
|
|
93
|
+
import_LogoutManager.LogoutManager.getInstance().init();
|
|
94
|
+
(0, import_sessionCallbacks.registerSessionCallbacks)({
|
|
95
|
+
onSuccess: dAppConfig.transactionTracking?.onSuccess,
|
|
96
|
+
onFail: dAppConfig.transactionTracking?.onFail
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (account.shard != null) {
|
|
101
|
+
await (0, import_setGasStationMetadata.setGasStationMetadata)({
|
|
102
|
+
shard: Number(account.shard),
|
|
103
|
+
apiAddress
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
isAppInitialized = true;
|
|
107
|
+
isInitializing = false;
|
|
108
|
+
}
|
|
109
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
110
|
+
0 && (module.exports = {
|
|
111
|
+
initApp
|
|
112
|
+
});
|
|
113
|
+
//# sourceMappingURL=initApp.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/methods/initApp/initApp.ts"],
|
|
4
|
+
"sourcesContent": ["import { safeWindow } from 'constants/window.constants';\nimport { defineCustomElements } from 'lib/sdkDappUi';\nimport { ToastManager } from 'managers/internal/ToastManager/ToastManager';\nimport { LogoutManager } from 'managers/LogoutManager/LogoutManager';\nimport { registerSessionCallbacks } from 'managers/TransactionManager/helpers/sessionCallbacks';\nimport { restoreProvider } from 'providers/helpers/restoreProvider';\nimport { ProviderFactory } from 'providers/ProviderFactory';\nimport { ICustomProvider } from 'providers/types/providerFactory.types';\nimport { getDefaultNativeAuthConfig } from 'services/nativeAuth/methods/getDefaultNativeAuthConfig';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { initializeNetwork } from 'store/actions';\nimport {\n setNativeAuthConfig,\n setWalletConnectConfig\n} from 'store/actions/config/configActions';\nimport { defaultStorageCallback } from 'store/storage';\nimport { initStore } from 'store/store';\nimport { ThemesEnum } from 'types';\nimport { switchTheme } from 'utils/visual/switchTheme';\nimport { InitAppType } from './initApp.types';\nimport { getIsLoggedIn } from '../account/getIsLoggedIn';\nimport { registerWebsocketListener } from './websocket/registerWebsocket';\nimport { trackTransactions } from '../trackTransactions/trackTransactions';\nimport { setGasStationMetadata } from './gastStationMetadata/setGasStationMetadata';\nimport { getAccount } from '../account/getAccount';\n\nconst defaultInitAppProps = {\n storage: {\n getStorageCallback: defaultStorageCallback\n }\n};\n\n/**\n * Flag indicating whether the app has already been initialized.\n *\n * Prevents repeated initialization steps such as provider restoration,\n * websocket listener registration, and transaction tracking setup.\n * This ensures that multiple calls to `initApp` do not cause duplicated\n * subscriptions or side effects.\n *\n * @internal\n */\nlet isAppInitialized = false;\nlet isInitializing = false;\n\n/**\n * Initializes the dApp with the given configuration.\n * @param props - The configuration for the dApp initialization.\n *\n * @example\n * ```ts\n initApp({\n nativeAuth: true,\n environment: EnvironmentsEnum.devnet\n });\n * ```\n * */\nexport async function initApp({\n storage = defaultInitAppProps.storage,\n dAppConfig,\n customProviders\n}: InitAppType) {\n if (isInitializing) {\n return;\n }\n\n isInitializing = true;\n\n const defaultTheme = dAppConfig?.theme ?? ThemesEnum.dark;\n await defineCustomElements();\n\n switchTheme(defaultTheme);\n\n initStore(storage.getStorageCallback);\n\n const { apiAddress } = await initializeNetwork({\n customNetworkConfig: dAppConfig.network,\n environment: dAppConfig.environment\n });\n\n if (dAppConfig?.nativeAuth) {\n const nativeAuthConfig: NativeAuthConfigType =\n typeof dAppConfig.nativeAuth === 'boolean' &&\n dAppConfig.nativeAuth === true\n ? getDefaultNativeAuthConfig({ apiAddress })\n : getDefaultNativeAuthConfig(dAppConfig.nativeAuth);\n\n setNativeAuthConfig(nativeAuthConfig);\n }\n\n if (dAppConfig?.providers?.walletConnect) {\n setWalletConnectConfig(dAppConfig.providers.walletConnect);\n }\n\n const isLoggedIn = getIsLoggedIn();\n const account = getAccount();\n const toastManager = ToastManager.getInstance();\n await toastManager.init({\n successfulToastLifetime:\n dAppConfig.transactionTracking?.successfulToastLifetime\n });\n\n const usedProviders: ICustomProvider[] = [\n ...((safeWindow as any)?.multiversx?.providers ?? []),\n ...(customProviders || [])\n ];\n\n const uniqueProviders = usedProviders.filter(\n (provider, index, arr) =>\n index === arr.findIndex((item) => item.type === provider.type)\n );\n\n ProviderFactory.customProviders = uniqueProviders || [];\n\n if (!isAppInitialized) {\n await restoreProvider();\n\n if (isLoggedIn) {\n await registerWebsocketListener(account.address);\n trackTransactions();\n LogoutManager.getInstance().init();\n registerSessionCallbacks({\n onSuccess: dAppConfig.transactionTracking?.onSuccess,\n onFail: dAppConfig.transactionTracking?.onFail\n });\n }\n }\n\n if (account.shard != null) {\n await setGasStationMetadata({\n shard: Number(account.shard),\n apiAddress\n });\n }\n\n isAppInitialized = true;\n isInitializing = false;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAC3B,uBAAqC;AACrC,0BAA6B;AAC7B,2BAA8B;AAC9B,8BAAyC;AACzC,6BAAgC;AAChC,6BAAgC;AAEhC,wCAA2C;AAE3C,qBAAkC;AAClC,2BAGO;AACP,qBAAuC;AACvC,mBAA0B;AAC1B,mBAA2B;AAC3B,yBAA4B;AAE5B,2BAA8B;AAC9B,+BAA0C;AAC1C,+BAAkC;AAClC,mCAAsC;AACtC,wBAA2B;AAE3B,MAAM,sBAAsB;AAAA,EAC1B,SAAS;AAAA,IACP,oBAAoB;AAAA,EACtB;AACF;AAYA,IAAI,mBAAmB;AACvB,IAAI,iBAAiB;AAcrB,eAAsB,QAAQ;AAAA,EAC5B,UAAU,oBAAoB;AAAA,EAC9B;AAAA,EACA;AACF,GAAgB;AACd,MAAI,gBAAgB;AAClB;AAAA,EACF;AAEA,mBAAiB;AAEjB,QAAM,eAAe,YAAY,SAAS,wBAAW;AACrD,YAAM,uCAAqB;AAE3B,sCAAY,YAAY;AAExB,8BAAU,QAAQ,kBAAkB;AAEpC,QAAM,EAAE,WAAW,IAAI,UAAM,kCAAkB;AAAA,IAC7C,qBAAqB,WAAW;AAAA,IAChC,aAAa,WAAW;AAAA,EAC1B,CAAC;AAED,MAAI,YAAY,YAAY;AAC1B,UAAM,mBACJ,OAAO,WAAW,eAAe,aACjC,WAAW,eAAe,WACtB,8DAA2B,EAAE,WAAW,CAAC,QACzC,8DAA2B,WAAW,UAAU;AAEtD,kDAAoB,gBAAgB;AAAA,EACtC;AAEA,MAAI,YAAY,WAAW,eAAe;AACxC,qDAAuB,WAAW,UAAU,aAAa;AAAA,EAC3D;AAEA,QAAM,iBAAa,oCAAc;AACjC,QAAM,cAAU,8BAAW;AAC3B,QAAM,eAAe,iCAAa,YAAY;AAC9C,QAAM,aAAa,KAAK;AAAA,IACtB,yBACE,WAAW,qBAAqB;AAAA,EACpC,CAAC;AAED,QAAM,gBAAmC;AAAA,IACvC,GAAK,0BAAoB,YAAY,aAAa,CAAC;AAAA,IACnD,GAAI,mBAAmB,CAAC;AAAA,EAC1B;AAEA,QAAM,kBAAkB,cAAc;AAAA,IACpC,CAAC,UAAU,OAAO,QAChB,UAAU,IAAI,UAAU,CAAC,SAAS,KAAK,SAAS,SAAS,IAAI;AAAA,EACjE;AAEA,yCAAgB,kBAAkB,mBAAmB,CAAC;AAEtD,MAAI,CAAC,kBAAkB;AACrB,cAAM,wCAAgB;AAEtB,QAAI,YAAY;AACd,gBAAM,oDAA0B,QAAQ,OAAO;AAC/C,sDAAkB;AAClB,yCAAc,YAAY,EAAE,KAAK;AACjC,4DAAyB;AAAA,QACvB,WAAW,WAAW,qBAAqB;AAAA,QAC3C,QAAQ,WAAW,qBAAqB;AAAA,MAC1C,CAAC;AAAA,IACH;AAAA,EACF;AAEA,MAAI,QAAQ,SAAS,MAAM;AACzB,cAAM,oDAAsB;AAAA,MAC1B,OAAO,OAAO,QAAQ,KAAK;AAAA,MAC3B;AAAA,IACF,CAAC;AAAA,EACH;AAEA,qBAAmB;AACnB,mBAAiB;AACnB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as P}from"../../__chunks__/chunk-IFIL5YA5.mjs";import{a as y}from"../../__chunks__/chunk-AL3SMFKF.mjs";import"../../__chunks__/chunk-DLWDO7M6.mjs";import{d as I}from"../../__chunks__/chunk-PL64ZI4J.mjs";import"../../__chunks__/chunk-OZ4ZZI3H.mjs";import"../../__chunks__/chunk-M3YL36ZL.mjs";import"../../__chunks__/chunk-NQSC7H2H.mjs";import"../../__chunks__/chunk-BZCIDXIT.mjs";import"../../__chunks__/chunk-CSC5XOOG.mjs";import"../../__chunks__/chunk-UNUOQRSW.mjs";import"../../__chunks__/chunk-JKR5DRPM.mjs";import"../../__chunks__/chunk-OO76QA6O.mjs";import"../../__chunks__/chunk-AVP5EPAT.mjs";import"../../__chunks__/chunk-3TYEAOQF.mjs";import"../../__chunks__/chunk-YRMDKZSS.mjs";import"../../__chunks__/chunk-YFPMAZOS.mjs";import"../../__chunks__/chunk-CKPRCP4B.mjs";import{a as w}from"../../__chunks__/chunk-BPYUCILD.mjs";import"../../__chunks__/chunk-YUFPUG5O.mjs";import"../../__chunks__/chunk-FRDR4A7Z.mjs";import"../../__chunks__/chunk-B2RDSGON.mjs";import"../../__chunks__/chunk-OA5BWGGO.mjs";import"../../__chunks__/chunk-6UIF2KFV.mjs";import"../../__chunks__/chunk-IUXHZJDK.mjs";import"../../__chunks__/chunk-PBEUEYGB.mjs";import"../../__chunks__/chunk-SSNUOOVP.mjs";import"../../__chunks__/chunk-FB5NMLRH.mjs";import"../../__chunks__/chunk-ANRHXERH.mjs";import"../../__chunks__/chunk-BHRUDWJV.mjs";import"../../__chunks__/chunk-WFAPPSOI.mjs";import"../../__chunks__/chunk-OVOW4GUD.mjs";import"../../__chunks__/chunk-S2RZTVIL.mjs";import"../../__chunks__/chunk-Q3WLMRWP.mjs";import"../../__chunks__/chunk-KRHBIYXH.mjs";import"../../__chunks__/chunk-UN6IHTU6.mjs";import"../../__chunks__/chunk-TNL55CRB.mjs";import"../../__chunks__/chunk-62NTXA3Q.mjs";import"../../__chunks__/chunk-QXC4D3AC.mjs";import"../../__chunks__/chunk-OD4ANAAQ.mjs";import"../../__chunks__/chunk-HIUWEH2W.mjs";import"../../__chunks__/chunk-7CA6UKPK.mjs";import"../../__chunks__/chunk-RM4VHHXR.mjs";import"../../__chunks__/chunk-COKCHJ2B.mjs";import"../../__chunks__/chunk-F7QRSVP4.mjs";import"../../__chunks__/chunk-7Z7IX367.mjs";import"../../__chunks__/chunk-VCQBYNNS.mjs";import"../../__chunks__/chunk-LN5UXO64.mjs";import"../../__chunks__/chunk-PHOF3Z5D.mjs";import"../../__chunks__/chunk-RBZC4PEU.mjs";import"../../__chunks__/chunk-ROZAXUMC.mjs";import"../../__chunks__/chunk-AXUYY4T7.mjs";import"../../__chunks__/chunk-3KUTPB2M.mjs";import"../../__chunks__/chunk-OMT62YRR.mjs";import"../../__chunks__/chunk-BETSOJFK.mjs";import"../../__chunks__/chunk-S5XV2COC.mjs";import"../../__chunks__/chunk-2DFE24NA.mjs";import"../../__chunks__/chunk-JAIA24ND.mjs";import"../../__chunks__/chunk-K4ITACAF.mjs";import"../../__chunks__/chunk-B5DFRWKW.mjs";import"../../__chunks__/chunk-FKBLKOLI.mjs";import"../../__chunks__/chunk-U64LDJTG.mjs";import"../../__chunks__/chunk-QJGFIK7H.mjs";import"../../__chunks__/chunk-4Z3DZ2A3.mjs";import"../../__chunks__/chunk-YGI3KXMZ.mjs";import"../../__chunks__/chunk-FYJSQ5IQ.mjs";import"../../__chunks__/chunk-HBQQS6GA.mjs";import"../../__chunks__/chunk-C4TBDJVT.mjs";import"../../__chunks__/chunk-RYIJWGFA.mjs";import"../../__chunks__/chunk-OEPTRJEB.mjs";import"../../__chunks__/chunk-Y3BNMQFP.mjs";import"../../__chunks__/chunk-NRXYSTRW.mjs";import"../../__chunks__/chunk-YV7ZJBAY.mjs";import"../../__chunks__/chunk-DXRSXWLQ.mjs";import"../../__chunks__/chunk-K5MJ4FMD.mjs";import"../../__chunks__/chunk-Q6O5CYQO.mjs";import"../../__chunks__/chunk-INRKVOET.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-LSKZWWBZ.mjs";import{l as c,m as f}from"../../__chunks__/chunk-PHBORH3K.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-YRRGPWNG.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-6UZHM5LW.mjs";import"../../__chunks__/chunk-A3CN5JWD.mjs";import"../../__chunks__/chunk-PJDJEPY2.mjs";import"../../__chunks__/chunk-H3YYJVD2.mjs";import"../../__chunks__/chunk-FD3HLEX7.mjs";import"../../__chunks__/chunk-XAYCFZAU.mjs";import"../../__chunks__/chunk-RVO7H26H.mjs";import"../../__chunks__/chunk-VDMJZZU4.mjs";import"../../__chunks__/chunk-4HEE3XZP.mjs";import"../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../__chunks__/chunk-IMPOALRX.mjs";import{a as h}from"../../__chunks__/chunk-JGHTVPC7.mjs";import"../../__chunks__/chunk-AFO4MJ3Y.mjs";import"../../__chunks__/chunk-DCD7Z6NA.mjs";import"../../__chunks__/chunk-D5DPZ3O3.mjs";import"../../__chunks__/chunk-CXEW3QBW.mjs";import{a as v}from"../../__chunks__/chunk-64YGT5EQ.mjs";import"../../__chunks__/chunk-Z36DGV3K.mjs";import"../../__chunks__/chunk-CAA4VJRH.mjs";import"../../__chunks__/chunk-UP7CK2EN.mjs";import"../../__chunks__/chunk-FINVDQGG.mjs";import"../../__chunks__/chunk-6QSDEIFP.mjs";import"../../__chunks__/chunk-AZOEX4RJ.mjs";import"../../__chunks__/chunk-3MEAYEOP.mjs";import"../../__chunks__/chunk-FMQYLMTU.mjs";import{b as p}from"../../__chunks__/chunk-3ZEUVYQF.mjs";import"../../__chunks__/chunk-MFUQ5NBC.mjs";import"../../__chunks__/chunk-CV6QXSKF.mjs";import{b as g}from"../../__chunks__/chunk-WTNCKB4A.mjs";import"../../__chunks__/chunk-F3VTVR46.mjs";import"../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../__chunks__/chunk-WS2TTYTH.mjs";import"../../__chunks__/chunk-BDAB6XQS.mjs";import"../../__chunks__/chunk-FK73FOXL.mjs";import"../../__chunks__/chunk-4ODPAHHA.mjs";import"../../__chunks__/chunk-ECEWPZGA.mjs";import"../../__chunks__/chunk-MDVI45IV.mjs";import"../../__chunks__/chunk-Y7YFB6KR.mjs";import"../../__chunks__/chunk-3C5GZ3BL.mjs";import"../../__chunks__/chunk-5CBADUK2.mjs";import"../../__chunks__/chunk-TSUMQ3HX.mjs";import"../../__chunks__/chunk-QW3IVSVZ.mjs";import"../../__chunks__/chunk-J7WSX6RF.mjs";import"../../__chunks__/chunk-HK7HCSM3.mjs";import"../../__chunks__/chunk-S7K3MC3O.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-THNK25ZD.mjs";import"../../__chunks__/chunk-XIXT6MEM.mjs";import"../../__chunks__/chunk-4US7HVCR.mjs";import{a as u,c as l}from"../../__chunks__/chunk-QC2L7ZLQ.mjs";import"../../__chunks__/chunk-4TBVQD27.mjs";import"../../__chunks__/chunk-M3GFSV3G.mjs";import"../../__chunks__/chunk-WV5X6BXA.mjs";import"../../__chunks__/chunk-4WOBJUND.mjs";import"../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../__chunks__/chunk-T7DLVQ6J.mjs";import"../../__chunks__/chunk-J32T6OAP.mjs";import{a as d}from"../../__chunks__/chunk-B5OM6BTD.mjs";import"../../__chunks__/chunk-YK7T6MBD.mjs";import"../../__chunks__/chunk-KMJMQEXI.mjs";import"../../__chunks__/chunk-G5DKGX73.mjs";import"../../__chunks__/chunk-PHT4H7NQ.mjs";import"../../__chunks__/chunk-ITL2BSZK.mjs";import"../../__chunks__/chunk-L3MWDI6J.mjs";import"../../__chunks__/chunk-65L5EBBL.mjs";import"../../__chunks__/chunk-HORSXVIV.mjs";import"../../__chunks__/chunk-6K5K2OJF.mjs";import{a as T}from"../../__chunks__/chunk-JKR3KSKZ.mjs";import"../../__chunks__/chunk-NWEUIK3A.mjs";import"../../__chunks__/chunk-2GOJSBHM.mjs";import"../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../__chunks__/chunk-ZW3NEESY.mjs";import{a as o}from"../../__chunks__/chunk-RJSOXNSA.mjs";import"../../__chunks__/chunk-3S57OP4Z.mjs";import"../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../__chunks__/chunk-WE7YOBO7.mjs";import"../../__chunks__/chunk-6FXEHNGW.mjs";import"../../__chunks__/chunk-ZLE5VUWG.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-YJK5FPW4.mjs";import"../../__chunks__/chunk-36XFDUXN.mjs";import"../../__chunks__/chunk-X6MN67NW.mjs";import"../../__chunks__/chunk-ZAPRDHIW.mjs";import"../../__chunks__/chunk-GIZSIYH4.mjs";import"../../__chunks__/chunk-WVAP3V3E.mjs";import"../../__chunks__/chunk-XVX7N3JK.mjs";import"../../__chunks__/chunk-HH5SA7BX.mjs";import"../../__chunks__/chunk-6CQMLD25.mjs";import"../../__chunks__/chunk-B3IKUIRK.mjs";import"../../__chunks__/chunk-YFM4XPJB.mjs";import"../../__chunks__/chunk-TQA3JDNV.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-RZURE24V.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-UBLZ4XV2.mjs";import"../../__chunks__/chunk-KELD3JME.mjs";import"../../__chunks__/chunk-3KJKVWZX.mjs";import"../../__chunks__/chunk-57JT3YYO.mjs";import"../../__chunks__/chunk-QQAW7UC2.mjs";import"../../__chunks__/chunk-52PGMMOM.mjs";import"../../__chunks__/chunk-UCNS6KD5.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import"../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../__chunks__/chunk-DFSBS3PX.mjs";import"../../__chunks__/chunk-GFR6K4DR.mjs";import"../../__chunks__/chunk-6D53LH5J.mjs";import"../../__chunks__/chunk-H33OUO77.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../__chunks__/chunk-AGUGUYQS.mjs";import"../../__chunks__/chunk-HMHP5DPL.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-BRJNX4JF.mjs";import{t as m}from"../../__chunks__/chunk-RNLXKFRP.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{a as n}from"../../__chunks__/chunk-CA5CTMET.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-DBIIY2TX.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-WHEXX3BD.mjs";import"../../__chunks__/chunk-CDTYHGXZ.mjs";import"../../__chunks__/chunk-2RAULLHL.mjs";import"../../__chunks__/chunk-UK5MEKBE.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-BTJWNUM6.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-QWV25ZSJ.mjs";import{a as k}from"../../__chunks__/chunk-ZT7AZLRE.mjs";import"../../__chunks__/chunk-MGQ373AO.mjs";import"../../__chunks__/chunk-RPTH42EF.mjs";import"../../__chunks__/chunk-3UNGCOKO.mjs";import"../../__chunks__/chunk-EDKNWPTP.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-TI73UXGG.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-IEGMED5L.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-E26YTVSR.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-S2FQWSUO.mjs";import"../../__chunks__/chunk-DTQL3IDP.mjs";import"../../__chunks__/chunk-CKTFPRJS.mjs";import"../../__chunks__/chunk-B3E34X2P.mjs";import"../../__chunks__/chunk-Y3FWIS2E.mjs";import"../../__chunks__/chunk-EHDGJUEU.mjs";import"../../__chunks__/chunk-HOCSCRJF.mjs";import{a as s}from"../../__chunks__/chunk-ZECWUL7N.mjs";import"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";var F={storage:{getStorageCallback:n}},S=!1,i=!1;async function rt({storage:b=F.storage,dAppConfig:t,customProviders:N}){if(i)return;i=!0;let C=t?.theme??"mvx:dark-theme";await P(),k(C),m(b.getStorageCallback);let{apiAddress:a}=await d({customNetworkConfig:t.network,environment:t.environment});if(t?.nativeAuth){let r=typeof t.nativeAuth=="boolean"&&t.nativeAuth===!0?o({apiAddress:a}):o(t.nativeAuth);u(r)}t?.providers?.walletConnect&&l(t.providers.walletConnect);let L=w(),e=T();await c.getInstance().init({successfulToastLifetime:t.transactionTracking?.successfulToastLifetime});let A=[...s?.multiversx?.providers??[],...N||[]].filter((r,M,x)=>M===x.findIndex(z=>z.type===r.type));I.customProviders=A||[],S||(await y(),L&&(await g(e.address),v(),f.getInstance().init(),p({onSuccess:t.transactionTracking?.onSuccess,onFail:t.transactionTracking?.onFail}))),e.shard!=null&&await h({shard:Number(e.shard),apiAddress:a}),S=!0,i=!1}export{rt as initApp};
|
|
1
|
+
import{a as P}from"../../__chunks__/chunk-HVV5PW3F.mjs";import{a as y}from"../../__chunks__/chunk-DNRFH2DR.mjs";import"../../__chunks__/chunk-DLWDO7M6.mjs";import{d as I}from"../../__chunks__/chunk-AZNMWFIR.mjs";import"../../__chunks__/chunk-G4Z3ZQR6.mjs";import"../../__chunks__/chunk-M3YL36ZL.mjs";import"../../__chunks__/chunk-2UCZ5FCD.mjs";import"../../__chunks__/chunk-GNF74ZRR.mjs";import"../../__chunks__/chunk-CSC5XOOG.mjs";import"../../__chunks__/chunk-UNUOQRSW.mjs";import"../../__chunks__/chunk-JKR5DRPM.mjs";import"../../__chunks__/chunk-35BOKOST.mjs";import"../../__chunks__/chunk-AVP5EPAT.mjs";import"../../__chunks__/chunk-3TYEAOQF.mjs";import"../../__chunks__/chunk-FSHVZP64.mjs";import"../../__chunks__/chunk-YFPMAZOS.mjs";import"../../__chunks__/chunk-X3BMMYMU.mjs";import{a as w}from"../../__chunks__/chunk-2IXNUCCN.mjs";import"../../__chunks__/chunk-YUFPUG5O.mjs";import"../../__chunks__/chunk-FRDR4A7Z.mjs";import"../../__chunks__/chunk-B2RDSGON.mjs";import"../../__chunks__/chunk-OA5BWGGO.mjs";import"../../__chunks__/chunk-6UIF2KFV.mjs";import"../../__chunks__/chunk-IUXHZJDK.mjs";import"../../__chunks__/chunk-PBEUEYGB.mjs";import"../../__chunks__/chunk-SSNUOOVP.mjs";import"../../__chunks__/chunk-FB5NMLRH.mjs";import"../../__chunks__/chunk-WWNT4K25.mjs";import"../../__chunks__/chunk-XXILUGAY.mjs";import"../../__chunks__/chunk-WFAPPSOI.mjs";import"../../__chunks__/chunk-OVOW4GUD.mjs";import"../../__chunks__/chunk-S2RZTVIL.mjs";import"../../__chunks__/chunk-CAN6BBUW.mjs";import"../../__chunks__/chunk-OYYE3JKS.mjs";import"../../__chunks__/chunk-UN6IHTU6.mjs";import"../../__chunks__/chunk-JOVG7EB7.mjs";import"../../__chunks__/chunk-N6IZYQLD.mjs";import"../../__chunks__/chunk-QXC4D3AC.mjs";import"../../__chunks__/chunk-OD4ANAAQ.mjs";import"../../__chunks__/chunk-HIUWEH2W.mjs";import"../../__chunks__/chunk-7CA6UKPK.mjs";import"../../__chunks__/chunk-RM4VHHXR.mjs";import"../../__chunks__/chunk-COKCHJ2B.mjs";import"../../__chunks__/chunk-TJW7RKOI.mjs";import"../../__chunks__/chunk-7Z7IX367.mjs";import"../../__chunks__/chunk-VCQBYNNS.mjs";import"../../__chunks__/chunk-LN5UXO64.mjs";import"../../__chunks__/chunk-PHOF3Z5D.mjs";import"../../__chunks__/chunk-RBZC4PEU.mjs";import"../../__chunks__/chunk-ROZAXUMC.mjs";import"../../__chunks__/chunk-AXUYY4T7.mjs";import"../../__chunks__/chunk-3KUTPB2M.mjs";import"../../__chunks__/chunk-OMT62YRR.mjs";import"../../__chunks__/chunk-BETSOJFK.mjs";import"../../__chunks__/chunk-S5XV2COC.mjs";import"../../__chunks__/chunk-2DFE24NA.mjs";import"../../__chunks__/chunk-JAIA24ND.mjs";import"../../__chunks__/chunk-K4ITACAF.mjs";import"../../__chunks__/chunk-ZP2E2Y6Y.mjs";import"../../__chunks__/chunk-FKBLKOLI.mjs";import"../../__chunks__/chunk-U64LDJTG.mjs";import"../../__chunks__/chunk-QJGFIK7H.mjs";import"../../__chunks__/chunk-4Z3DZ2A3.mjs";import"../../__chunks__/chunk-YGI3KXMZ.mjs";import"../../__chunks__/chunk-QJBNDKHF.mjs";import"../../__chunks__/chunk-HBQQS6GA.mjs";import"../../__chunks__/chunk-C4TBDJVT.mjs";import"../../__chunks__/chunk-RYIJWGFA.mjs";import"../../__chunks__/chunk-OEPTRJEB.mjs";import"../../__chunks__/chunk-Y3BNMQFP.mjs";import"../../__chunks__/chunk-NRXYSTRW.mjs";import"../../__chunks__/chunk-YV7ZJBAY.mjs";import"../../__chunks__/chunk-DXRSXWLQ.mjs";import"../../__chunks__/chunk-K5MJ4FMD.mjs";import"../../__chunks__/chunk-6QSLQLCT.mjs";import"../../__chunks__/chunk-INRKVOET.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-LSKZWWBZ.mjs";import{l as c,m as f}from"../../__chunks__/chunk-JLSMK3B2.mjs";import"../../__chunks__/chunk-RUBOJOJP.mjs";import"../../__chunks__/chunk-QNJDXBR6.mjs";import"../../__chunks__/chunk-T7DVMF2K.mjs";import"../../__chunks__/chunk-JZZ3MOUU.mjs";import"../../__chunks__/chunk-6UZHM5LW.mjs";import"../../__chunks__/chunk-P7KN75HA.mjs";import"../../__chunks__/chunk-PJDJEPY2.mjs";import"../../__chunks__/chunk-SNJZSRF3.mjs";import"../../__chunks__/chunk-FD3HLEX7.mjs";import"../../__chunks__/chunk-6IA3KJH5.mjs";import"../../__chunks__/chunk-RVO7H26H.mjs";import"../../__chunks__/chunk-VDMJZZU4.mjs";import"../../__chunks__/chunk-4HEE3XZP.mjs";import"../../__chunks__/chunk-SCSHU7XJ.mjs";import"../../__chunks__/chunk-IMPOALRX.mjs";import{a as h}from"../../__chunks__/chunk-AHSGP7ST.mjs";import"../../__chunks__/chunk-QVOHFS6Q.mjs";import"../../__chunks__/chunk-FKIAOXUE.mjs";import"../../__chunks__/chunk-OA7DW77N.mjs";import"../../__chunks__/chunk-FKCGBCKV.mjs";import{a as v}from"../../__chunks__/chunk-3JMCXLWZ.mjs";import"../../__chunks__/chunk-6IUQY6KG.mjs";import"../../__chunks__/chunk-CAA4VJRH.mjs";import"../../__chunks__/chunk-UP7CK2EN.mjs";import"../../__chunks__/chunk-HZUUV4N4.mjs";import"../../__chunks__/chunk-PPRG5EYX.mjs";import"../../__chunks__/chunk-7MSBLQYN.mjs";import"../../__chunks__/chunk-EK3WITBG.mjs";import"../../__chunks__/chunk-FMQYLMTU.mjs";import{b as p}from"../../__chunks__/chunk-3ZEUVYQF.mjs";import"../../__chunks__/chunk-MFUQ5NBC.mjs";import"../../__chunks__/chunk-T6PE5QT2.mjs";import{b as g}from"../../__chunks__/chunk-UXJIZKTT.mjs";import"../../__chunks__/chunk-Q5RVUCNS.mjs";import"../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../__chunks__/chunk-V53EFJQZ.mjs";import"../../__chunks__/chunk-OLXHHD4T.mjs";import"../../__chunks__/chunk-MKIQ2XH4.mjs";import"../../__chunks__/chunk-4ODPAHHA.mjs";import"../../__chunks__/chunk-ECEWPZGA.mjs";import"../../__chunks__/chunk-MDVI45IV.mjs";import"../../__chunks__/chunk-ER7VDELK.mjs";import"../../__chunks__/chunk-3C5GZ3BL.mjs";import"../../__chunks__/chunk-N7FAJ2VG.mjs";import"../../__chunks__/chunk-TSUMQ3HX.mjs";import"../../__chunks__/chunk-7AMGKXK6.mjs";import"../../__chunks__/chunk-6EW6GJ7V.mjs";import"../../__chunks__/chunk-HK7HCSM3.mjs";import"../../__chunks__/chunk-43AE4SYE.mjs";import"../../__chunks__/chunk-55SACSMS.mjs";import"../../__chunks__/chunk-W5LWBGZ4.mjs";import"../../__chunks__/chunk-Z3SM2MSZ.mjs";import"../../__chunks__/chunk-4US7HVCR.mjs";import{a as u,c as l}from"../../__chunks__/chunk-IHPROMZ4.mjs";import"../../__chunks__/chunk-4TBVQD27.mjs";import"../../__chunks__/chunk-M3GFSV3G.mjs";import"../../__chunks__/chunk-WV5X6BXA.mjs";import"../../__chunks__/chunk-7PW3YJZS.mjs";import"../../__chunks__/chunk-L3YPAYXZ.mjs";import"../../__chunks__/chunk-WNKKBV76.mjs";import"../../__chunks__/chunk-J32T6OAP.mjs";import{a as d}from"../../__chunks__/chunk-DDNM2ZMJ.mjs";import"../../__chunks__/chunk-YK7T6MBD.mjs";import"../../__chunks__/chunk-KMJMQEXI.mjs";import"../../__chunks__/chunk-G5DKGX73.mjs";import"../../__chunks__/chunk-AJVTGCVH.mjs";import"../../__chunks__/chunk-JXNX2DMF.mjs";import"../../__chunks__/chunk-L3MWDI6J.mjs";import"../../__chunks__/chunk-65L5EBBL.mjs";import"../../__chunks__/chunk-HORSXVIV.mjs";import"../../__chunks__/chunk-ULT7BJCN.mjs";import{a as T}from"../../__chunks__/chunk-7TVD3ZGR.mjs";import"../../__chunks__/chunk-NWEUIK3A.mjs";import"../../__chunks__/chunk-LD6GIQXR.mjs";import"../../__chunks__/chunk-OJX2TSAZ.mjs";import"../../__chunks__/chunk-QTKK6OSJ.mjs";import"../../__chunks__/chunk-EWXBNG6L.mjs";import{a as o}from"../../__chunks__/chunk-SGN6MYFW.mjs";import"../../__chunks__/chunk-3S57OP4Z.mjs";import"../../__chunks__/chunk-6ACLOUQ3.mjs";import"../../__chunks__/chunk-WE7YOBO7.mjs";import"../../__chunks__/chunk-6FXEHNGW.mjs";import"../../__chunks__/chunk-ZLE5VUWG.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-RMW3YLGD.mjs";import"../../__chunks__/chunk-FPJ2PIFX.mjs";import"../../__chunks__/chunk-NJN53MJV.mjs";import"../../__chunks__/chunk-YSCND2MX.mjs";import"../../__chunks__/chunk-YJK5FPW4.mjs";import"../../__chunks__/chunk-36XFDUXN.mjs";import"../../__chunks__/chunk-X6MN67NW.mjs";import"../../__chunks__/chunk-ZAPRDHIW.mjs";import"../../__chunks__/chunk-GIZSIYH4.mjs";import"../../__chunks__/chunk-WVAP3V3E.mjs";import"../../__chunks__/chunk-XVX7N3JK.mjs";import"../../__chunks__/chunk-HH5SA7BX.mjs";import"../../__chunks__/chunk-6CQMLD25.mjs";import"../../__chunks__/chunk-B3IKUIRK.mjs";import"../../__chunks__/chunk-IS62JDWR.mjs";import"../../__chunks__/chunk-TQA3JDNV.mjs";import"../../__chunks__/chunk-IXBWD6BF.mjs";import"../../__chunks__/chunk-H3IUSXHL.mjs";import"../../__chunks__/chunk-VCAWVAO5.mjs";import"../../__chunks__/chunk-55W25Q35.mjs";import"../../__chunks__/chunk-LJKBU76G.mjs";import"../../__chunks__/chunk-7O5OCSV5.mjs";import"../../__chunks__/chunk-5MK24VWA.mjs";import"../../__chunks__/chunk-6WQJAFR3.mjs";import"../../__chunks__/chunk-QQAW7UC2.mjs";import"../../__chunks__/chunk-52PGMMOM.mjs";import"../../__chunks__/chunk-UCNS6KD5.mjs";import"../../__chunks__/chunk-35MNP3LA.mjs";import"../../__chunks__/chunk-TX7PTLVP.mjs";import"../../__chunks__/chunk-WZ2DNB3R.mjs";import"../../__chunks__/chunk-DFSBS3PX.mjs";import"../../__chunks__/chunk-GFR6K4DR.mjs";import"../../__chunks__/chunk-6D53LH5J.mjs";import"../../__chunks__/chunk-H33OUO77.mjs";import"../../__chunks__/chunk-HQQMSHTW.mjs";import"../../__chunks__/chunk-UQU2VWPJ.mjs";import"../../__chunks__/chunk-AGUGUYQS.mjs";import"../../__chunks__/chunk-HMHP5DPL.mjs";import"../../__chunks__/chunk-54B3EIZC.mjs";import"../../__chunks__/chunk-QJ7MRSGB.mjs";import"../../__chunks__/chunk-VDDXFGB2.mjs";import"../../__chunks__/chunk-BRJNX4JF.mjs";import{t as m}from"../../__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{a as n}from"../../__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-DBIIY2TX.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-WHEXX3BD.mjs";import"../../__chunks__/chunk-CDTYHGXZ.mjs";import"../../__chunks__/chunk-2RAULLHL.mjs";import"../../__chunks__/chunk-UK5MEKBE.mjs";import"../../__chunks__/chunk-YUITECZ5.mjs";import"../../__chunks__/chunk-2BSPSW6X.mjs";import"../../__chunks__/chunk-BTJWNUM6.mjs";import"../../__chunks__/chunk-TRMQFQOQ.mjs";import"../../__chunks__/chunk-WZI2I6NX.mjs";import"../../__chunks__/chunk-TVELGQIH.mjs";import"../../__chunks__/chunk-OVXVICF7.mjs";import"../../__chunks__/chunk-TI37DKBT.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-WRLZ5ICK.mjs";import"../../__chunks__/chunk-3FXHIV6O.mjs";import"../../__chunks__/chunk-I3MK6KZJ.mjs";import"../../__chunks__/chunk-76URRONH.mjs";import{a as k}from"../../__chunks__/chunk-4JRZISC2.mjs";import"../../__chunks__/chunk-MGQ373AO.mjs";import"../../__chunks__/chunk-RPTH42EF.mjs";import"../../__chunks__/chunk-3UNGCOKO.mjs";import"../../__chunks__/chunk-SUOUG7EQ.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-CDQ2BNUD.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-A2X4YMKK.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-JHG4SR7C.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-PLUWBWJ2.mjs";import"../../__chunks__/chunk-DTQL3IDP.mjs";import"../../__chunks__/chunk-CKTFPRJS.mjs";import"../../__chunks__/chunk-QFW3NRHJ.mjs";import"../../__chunks__/chunk-JD2VRDU7.mjs";import"../../__chunks__/chunk-EHDGJUEU.mjs";import"../../__chunks__/chunk-HOCSCRJF.mjs";import{a as s}from"../../__chunks__/chunk-5ICRLXOJ.mjs";import"../../__chunks__/chunk-UE3IBKCO.mjs";import"../../__chunks__/chunk-H6IZMTJK.mjs";import"../../__chunks__/chunk-B2UIPHJ3.mjs";var F={storage:{getStorageCallback:n}},S=!1,i=!1;async function rt({storage:b=F.storage,dAppConfig:t,customProviders:N}){if(i)return;i=!0;let C=t?.theme??"mvx:dark-theme";await P(),k(C),m(b.getStorageCallback);let{apiAddress:a}=await d({customNetworkConfig:t.network,environment:t.environment});if(t?.nativeAuth){let r=typeof t.nativeAuth=="boolean"&&t.nativeAuth===!0?o({apiAddress:a}):o(t.nativeAuth);u(r)}t?.providers?.walletConnect&&l(t.providers.walletConnect);let L=w(),e=T();await c.getInstance().init({successfulToastLifetime:t.transactionTracking?.successfulToastLifetime});let A=[...s?.multiversx?.providers??[],...N||[]].filter((r,M,x)=>M===x.findIndex(z=>z.type===r.type));I.customProviders=A||[],S||(await y(),L&&(await g(e.address),v(),f.getInstance().init(),p({onSuccess:t.transactionTracking?.onSuccess,onFail:t.transactionTracking?.onFail}))),e.shard!=null&&await h({shard:Number(e.shard),apiAddress:a}),S=!0,i=!1}export{rt as initApp};
|
|
2
2
|
//# sourceMappingURL=initApp.mjs.map
|
|
@@ -0,0 +1,17 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var initApp_types_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(initApp_types_exports);
|
|
17
|
+
//# sourceMappingURL=initApp.types.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/methods/initApp/initApp.types.ts"],
|
|
4
|
+
"sourcesContent": ["import { WalletConnectConfig } from 'providers/strategies/WalletConnectProviderStrategy/types/walletConnect.types';\nimport { ICustomProvider } from 'providers/types/providerFactory.types';\nimport { NativeAuthConfigType } from 'services/nativeAuth/nativeAuth.types';\nimport { StorageCallback } from 'store/storage';\nimport { EnvironmentsEnum } from 'types/enums.types';\nimport { CustomNetworkType } from 'types/network.types';\nimport { ThemesEnum } from 'types/theme.types';\n\ntype BaseDappConfigType = {\n /**\n * The native auth configuration for the dApp.\n * If set to `true`, will fallback on default configuration.\n * If set to `false`, will disable native auth.\n * If set to `NativeAuthConfigType`, will set the native auth configuration.\n */\n nativeAuth?: boolean | NativeAuthConfigType;\n /**\n * Customize exising providers\n */\n providers?: {\n walletConnect?: WalletConnectConfig;\n };\n /**\n * Customize the dApp theme.\n * @example\n * ```ts\n * import { ThemesEnum } from '@multiversx/sdk-dapp/out/types/theme.types';\n *\n * theme: ThemesEnum.dark\n * ```\n */\n theme?: `${ThemesEnum}`;\n};\n\nexport type TransactionTrackingConfigType = {\n successfulToastLifetime?: number;\n /**\n * The callback to run when the transaction session is successful.\n */\n onSuccess?: (sessionId: string) => Promise<void>;\n /**\n * The callback to run when the transaction session fails.\n */\n onFail?: (sessionId: string) => Promise<void>;\n};\n\nexport type EnvironmentDappConfigType = BaseDappConfigType & {\n /**\n * If passed in, will automatically initialize the network with the given environment and skip fetching `/dapp/config` data from server.\n */\n environment: EnvironmentsEnum;\n network?: CustomNetworkType;\n transactionTracking?: TransactionTrackingConfigType;\n};\n\nexport type CustomNetworkDappConfigType = BaseDappConfigType & {\n /**\n * Can override the network configuration, e.g. for sovereign shards.\n * Must include `apiAddress` if provided.\n */\n network: CustomNetworkType & { apiAddress: string };\n environment?: never;\n transactionTracking?: TransactionTrackingConfigType;\n};\n\nexport type DappConfigType =\n | EnvironmentDappConfigType\n | CustomNetworkDappConfigType;\n\nexport type InitAppType = {\n /**\n * The storage configuration for the dApp.\n * @example\n * ```ts\n * {\n * getStorageCallback: () => window.localStorage\n * }\n * ```\n */\n storage?: {\n /**\n * The callback to get the storage (custom storage).\n */\n getStorageCallback: StorageCallback;\n };\n /**\n * The dApp configuration.\n * @example\n * ```ts\n * {\n nativeAuth: true,\n environment: EnvironmentsEnum.devnet,\n theme: ThemesEnum.light,\n network: {\n walletAddress: 'https://wallet.multiversx.com'\n // ...other network properties to override\n },\n providers: {\n walletConnect: {\n walletConnectV2ProjectId\n }\n },\n transactionTracking: {\n successfulToastLifetime: DEFAULT_TOAST_LIEFTIME,\n onSuccess: async (sessionId) => {\n console.log('Transactions execution successful', sessionId);\n },\n onFail: async (sessionId) => {\n console.log('Transactions execution failed', sessionId);\n }\n }\n }\n * ```\n */\n dAppConfig: DappConfigType;\n /**\n * If you want to extend the default providers, you can pass in a list of custom providers.\n * @example\n * ```ts\n * [{\n name: 'Custom Provider',\n type: 'custom',\n iconUrl: `${window.location.origin}/multiversx-white.svg`,\n constructor: async (options) => new CustomProvider(options)\n * }]\n * ```\n */\n customProviders?: ICustomProvider[];\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
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 initializeWebsocketConnection_exports = {};
|
|
20
|
+
__export(initializeWebsocketConnection_exports, {
|
|
21
|
+
initializeWebsocketConnection: () => initializeWebsocketConnection
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(initializeWebsocketConnection_exports);
|
|
24
|
+
var import_socket = require("socket.io-client");
|
|
25
|
+
var import_websocket = require("../../../apiCalls/websocket");
|
|
26
|
+
var import_websocket2 = require("../../../constants/websocket.constants");
|
|
27
|
+
var import_accountActions = require("../../../store/actions/account/accountActions");
|
|
28
|
+
var import_configActions = require("../../../store/actions/config/configActions");
|
|
29
|
+
var import_selectors = require("../../../store/selectors");
|
|
30
|
+
var import_store = require("../../../store/store");
|
|
31
|
+
var import_retryMultipleTimes = require("../../../utils/retryMultipleTimes");
|
|
32
|
+
const TIMEOUT = 3e3;
|
|
33
|
+
const RECONNECTION_ATTEMPTS = 3;
|
|
34
|
+
const RETRY_INTERVAL = 500;
|
|
35
|
+
const MESSAGE_DELAY = 1e3;
|
|
36
|
+
const SOCKET_CONNECTION_DELAY = 1e3;
|
|
37
|
+
const BATCH_UPDATED_EVENT = "batchUpdated";
|
|
38
|
+
const CONNECT = "connect";
|
|
39
|
+
const CONNECT_ERROR = "connect_error";
|
|
40
|
+
const DISCONNECT = "disconnect";
|
|
41
|
+
async function initializeWebsocketConnection(address) {
|
|
42
|
+
const { apiAddress, websocketUrl: customWebsocketUrl } = (0, import_selectors.networkSelector)(
|
|
43
|
+
(0, import_store.getStore)().getState()
|
|
44
|
+
);
|
|
45
|
+
if (!address) {
|
|
46
|
+
throw new Error("Websocket could not be initialized: address missing");
|
|
47
|
+
}
|
|
48
|
+
let messageTimeout = null;
|
|
49
|
+
let batchTimeout = null;
|
|
50
|
+
const updateSocketStatus = (status) => {
|
|
51
|
+
import_websocket2.websocketConnection.status = status;
|
|
52
|
+
(0, import_configActions.setWebsocketStatus)(status);
|
|
53
|
+
};
|
|
54
|
+
const handleMessageReceived = (message) => {
|
|
55
|
+
if (messageTimeout) {
|
|
56
|
+
clearTimeout(messageTimeout);
|
|
57
|
+
}
|
|
58
|
+
messageTimeout = setTimeout(() => {
|
|
59
|
+
(0, import_accountActions.setWebsocketEvent)(message);
|
|
60
|
+
}, MESSAGE_DELAY);
|
|
61
|
+
};
|
|
62
|
+
const handleBatchUpdate = (data) => {
|
|
63
|
+
if (batchTimeout) {
|
|
64
|
+
clearTimeout(batchTimeout);
|
|
65
|
+
}
|
|
66
|
+
batchTimeout = setTimeout(() => {
|
|
67
|
+
(0, import_accountActions.setWebsocketBatchEvent)(data);
|
|
68
|
+
}, MESSAGE_DELAY);
|
|
69
|
+
};
|
|
70
|
+
const closeConnection = () => {
|
|
71
|
+
const instance = import_websocket2.websocketConnection.instance;
|
|
72
|
+
if (instance) {
|
|
73
|
+
instance.off(CONNECT_ERROR);
|
|
74
|
+
instance.off(CONNECT);
|
|
75
|
+
instance.off(BATCH_UPDATED_EVENT);
|
|
76
|
+
instance.off(DISCONNECT);
|
|
77
|
+
instance.close();
|
|
78
|
+
console.log("Websocket disconnected.");
|
|
79
|
+
}
|
|
80
|
+
updateSocketStatus(import_websocket2.WebsocketConnectionStatusEnum.NOT_INITIALIZED);
|
|
81
|
+
import_websocket2.websocketConnection.instance = null;
|
|
82
|
+
if (messageTimeout) {
|
|
83
|
+
clearTimeout(messageTimeout);
|
|
84
|
+
}
|
|
85
|
+
if (batchTimeout) {
|
|
86
|
+
clearTimeout(batchTimeout);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const initializeConnection = (0, import_retryMultipleTimes.retryMultipleTimes)(
|
|
90
|
+
async () => {
|
|
91
|
+
const retryWebsocketConnect = async (retries = RECONNECTION_ATTEMPTS, delay = RETRY_INTERVAL) => {
|
|
92
|
+
let attempt = 0;
|
|
93
|
+
let connectionCheckTimeout = null;
|
|
94
|
+
let retryTimeout = null;
|
|
95
|
+
const tryReconnect = async () => {
|
|
96
|
+
if (attempt >= retries) {
|
|
97
|
+
console.warn("WebSocket reconnection failed after max attempts.");
|
|
98
|
+
updateSocketStatus(import_websocket2.WebsocketConnectionStatusEnum.NOT_INITIALIZED);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
attempt++;
|
|
102
|
+
import_websocket2.websocketConnection.instance?.off();
|
|
103
|
+
import_websocket2.websocketConnection.instance?.close();
|
|
104
|
+
import_websocket2.websocketConnection.instance = null;
|
|
105
|
+
try {
|
|
106
|
+
await initializeConnection();
|
|
107
|
+
connectionCheckTimeout = setTimeout(() => {
|
|
108
|
+
const isConnected = import_websocket2.websocketConnection.instance?.connected;
|
|
109
|
+
if (!isConnected) {
|
|
110
|
+
retryTimeout = setTimeout(tryReconnect, delay);
|
|
111
|
+
}
|
|
112
|
+
}, SOCKET_CONNECTION_DELAY);
|
|
113
|
+
} catch {
|
|
114
|
+
retryTimeout = setTimeout(tryReconnect, delay);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
tryReconnect();
|
|
118
|
+
const clearTimeouts = () => {
|
|
119
|
+
if (connectionCheckTimeout) {
|
|
120
|
+
clearTimeout(connectionCheckTimeout);
|
|
121
|
+
connectionCheckTimeout = null;
|
|
122
|
+
}
|
|
123
|
+
if (retryTimeout) {
|
|
124
|
+
clearTimeout(retryTimeout);
|
|
125
|
+
retryTimeout = null;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
return clearTimeouts;
|
|
129
|
+
};
|
|
130
|
+
updateSocketStatus(import_websocket2.WebsocketConnectionStatusEnum.PENDING);
|
|
131
|
+
const websocketUrl = customWebsocketUrl ?? await (0, import_websocket.getWebsocketUrl)(apiAddress);
|
|
132
|
+
if (!websocketUrl) {
|
|
133
|
+
updateSocketStatus(import_websocket2.WebsocketConnectionStatusEnum.NOT_INITIALIZED);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
import_websocket2.websocketConnection.instance = (0, import_socket.io)(websocketUrl, {
|
|
137
|
+
forceNew: true,
|
|
138
|
+
reconnection: true,
|
|
139
|
+
reconnectionAttempts: RECONNECTION_ATTEMPTS,
|
|
140
|
+
timeout: TIMEOUT,
|
|
141
|
+
query: { address }
|
|
142
|
+
});
|
|
143
|
+
import_websocket2.websocketConnection.instance.onAny(handleMessageReceived);
|
|
144
|
+
import_websocket2.websocketConnection.instance.on(BATCH_UPDATED_EVENT, handleBatchUpdate);
|
|
145
|
+
import_websocket2.websocketConnection.instance.on(CONNECT, () => {
|
|
146
|
+
console.log("Websocket connected.");
|
|
147
|
+
updateSocketStatus(import_websocket2.WebsocketConnectionStatusEnum.COMPLETED);
|
|
148
|
+
});
|
|
149
|
+
import_websocket2.websocketConnection.instance.on(CONNECT_ERROR, async (error) => {
|
|
150
|
+
console.warn("Websocket connect error: ", error.message);
|
|
151
|
+
const clearTimeouts = await retryWebsocketConnect();
|
|
152
|
+
clearTimeouts();
|
|
153
|
+
});
|
|
154
|
+
import_websocket2.websocketConnection.instance.on(DISCONNECT, async () => {
|
|
155
|
+
console.warn("Websocket disconnected. Trying to reconnect...");
|
|
156
|
+
const clearTimeouts = await retryWebsocketConnect();
|
|
157
|
+
clearTimeouts();
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
{ retries: 2, delay: RETRY_INTERVAL }
|
|
161
|
+
);
|
|
162
|
+
if (import_websocket2.websocketConnection.status === import_websocket2.WebsocketConnectionStatusEnum.NOT_INITIALIZED && !import_websocket2.websocketConnection.instance?.active) {
|
|
163
|
+
await initializeConnection();
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
closeConnection
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
170
|
+
0 && (module.exports = {
|
|
171
|
+
initializeWebsocketConnection
|
|
172
|
+
});
|
|
173
|
+
//# sourceMappingURL=initializeWebsocketConnection.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/methods/initApp/websocket/initializeWebsocketConnection.ts"],
|
|
4
|
+
"sourcesContent": ["import { io } from 'socket.io-client';\nimport { getWebsocketUrl } from 'apiCalls/websocket';\nimport {\n WebsocketConnectionStatusEnum,\n websocketConnection\n} from 'constants/websocket.constants';\nimport {\n setWebsocketBatchEvent,\n setWebsocketEvent\n} from 'store/actions/account/accountActions';\nimport { setWebsocketStatus } from 'store/actions/config/configActions';\nimport { networkSelector } from 'store/selectors';\nimport { getStore } from 'store/store';\nimport { BatchTransactionsWSResponseType } from 'types/websocket.types';\nimport { retryMultipleTimes } from 'utils/retryMultipleTimes';\n\nconst TIMEOUT = 3000;\nconst RECONNECTION_ATTEMPTS = 3;\nconst RETRY_INTERVAL = 500;\nconst MESSAGE_DELAY = 1000;\nconst SOCKET_CONNECTION_DELAY = 1000;\nconst BATCH_UPDATED_EVENT = 'batchUpdated';\nconst CONNECT = 'connect';\nconst CONNECT_ERROR = 'connect_error';\nconst DISCONNECT = 'disconnect';\n\ntype TimeoutType = ReturnType<typeof setTimeout> | null;\n\nexport async function initializeWebsocketConnection(address: string) {\n const { apiAddress, websocketUrl: customWebsocketUrl } = networkSelector(\n getStore().getState()\n );\n\n if (!address) {\n throw new Error('Websocket could not be initialized: address missing');\n }\n\n let messageTimeout: TimeoutType = null;\n let batchTimeout: TimeoutType = null;\n\n // Update socket status in store for status subscription\n const updateSocketStatus = (status: WebsocketConnectionStatusEnum) => {\n websocketConnection.status = status;\n setWebsocketStatus(status);\n };\n\n const handleMessageReceived = (message: string) => {\n if (messageTimeout) {\n clearTimeout(messageTimeout);\n }\n messageTimeout = setTimeout(() => {\n setWebsocketEvent(message);\n }, MESSAGE_DELAY);\n };\n\n const handleBatchUpdate = (data: BatchTransactionsWSResponseType) => {\n if (batchTimeout) {\n clearTimeout(batchTimeout);\n }\n batchTimeout = setTimeout(() => {\n setWebsocketBatchEvent(data);\n }, MESSAGE_DELAY);\n };\n\n const closeConnection = () => {\n const instance = websocketConnection.instance;\n if (instance) {\n instance.off(CONNECT_ERROR);\n instance.off(CONNECT);\n instance.off(BATCH_UPDATED_EVENT);\n instance.off(DISCONNECT);\n instance.close();\n console.log('Websocket disconnected.');\n }\n\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n websocketConnection.instance = null;\n\n if (messageTimeout) {\n clearTimeout(messageTimeout);\n }\n\n if (batchTimeout) {\n clearTimeout(batchTimeout);\n }\n };\n\n const initializeConnection = retryMultipleTimes(\n async () => {\n const retryWebsocketConnect = async (\n retries = RECONNECTION_ATTEMPTS,\n delay = RETRY_INTERVAL\n ) => {\n let attempt = 0;\n let connectionCheckTimeout: TimeoutType = null;\n let retryTimeout: TimeoutType = null;\n\n const tryReconnect = async () => {\n if (attempt >= retries) {\n console.warn('WebSocket reconnection failed after max attempts.');\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n return;\n }\n\n attempt++;\n\n // Clean up previous socket\n websocketConnection.instance?.off();\n websocketConnection.instance?.close();\n websocketConnection.instance = null;\n\n try {\n // Attempt to reconnect\n await initializeConnection(); // attempt to reconnect\n\n // Wait briefly and check if socket is actually connected\n connectionCheckTimeout = setTimeout(() => {\n const isConnected = websocketConnection.instance?.connected;\n\n if (!isConnected) {\n // If not connected, retry the connection\n retryTimeout = setTimeout(tryReconnect, delay);\n }\n }, SOCKET_CONNECTION_DELAY);\n } catch {\n // If reconnect fails, retry after delay\n retryTimeout = setTimeout(tryReconnect, delay);\n }\n };\n\n // Start the reconnection process\n tryReconnect();\n\n // Clear any timeouts\n const clearTimeouts = () => {\n if (connectionCheckTimeout) {\n clearTimeout(connectionCheckTimeout);\n connectionCheckTimeout = null;\n }\n\n if (retryTimeout) {\n clearTimeout(retryTimeout);\n retryTimeout = null;\n }\n };\n\n return clearTimeouts;\n };\n\n updateSocketStatus(WebsocketConnectionStatusEnum.PENDING);\n\n const websocketUrl =\n customWebsocketUrl ?? (await getWebsocketUrl(apiAddress));\n\n if (!websocketUrl) {\n updateSocketStatus(WebsocketConnectionStatusEnum.NOT_INITIALIZED);\n return;\n }\n\n websocketConnection.instance = io(websocketUrl, {\n forceNew: true,\n reconnection: true,\n reconnectionAttempts: RECONNECTION_ATTEMPTS,\n timeout: TIMEOUT,\n query: { address }\n });\n\n websocketConnection.instance.onAny(handleMessageReceived);\n\n websocketConnection.instance.on(BATCH_UPDATED_EVENT, handleBatchUpdate);\n\n websocketConnection.instance.on(CONNECT, () => {\n console.log('Websocket connected.');\n updateSocketStatus(WebsocketConnectionStatusEnum.COMPLETED);\n });\n\n websocketConnection.instance.on(CONNECT_ERROR, async (error) => {\n console.warn('Websocket connect error: ', error.message);\n const clearTimeouts = await retryWebsocketConnect();\n clearTimeouts();\n });\n\n websocketConnection.instance.on(DISCONNECT, async () => {\n console.warn('Websocket disconnected. Trying to reconnect...');\n const clearTimeouts = await retryWebsocketConnect();\n clearTimeouts();\n });\n },\n { retries: 2, delay: RETRY_INTERVAL }\n );\n\n if (\n websocketConnection.status ===\n WebsocketConnectionStatusEnum.NOT_INITIALIZED &&\n !websocketConnection.instance?.active\n ) {\n await initializeConnection();\n }\n\n return {\n closeConnection\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AACnB,uBAAgC;AAChC,IAAAA,oBAGO;AACP,4BAGO;AACP,2BAAmC;AACnC,uBAAgC;AAChC,mBAAyB;AAEzB,gCAAmC;AAEnC,MAAM,UAAU;AAChB,MAAM,wBAAwB;AAC9B,MAAM,iBAAiB;AACvB,MAAM,gBAAgB;AACtB,MAAM,0BAA0B;AAChC,MAAM,sBAAsB;AAC5B,MAAM,UAAU;AAChB,MAAM,gBAAgB;AACtB,MAAM,aAAa;AAInB,eAAsB,8BAA8B,SAAiB;AACnE,QAAM,EAAE,YAAY,cAAc,mBAAmB,QAAI;AAAA,QACvD,uBAAS,EAAE,SAAS;AAAA,EACtB;AAEA,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,qDAAqD;AAAA,EACvE;AAEA,MAAI,iBAA8B;AAClC,MAAI,eAA4B;AAGhC,QAAM,qBAAqB,CAAC,WAA0C;AACpE,0CAAoB,SAAS;AAC7B,iDAAmB,MAAM;AAAA,EAC3B;AAEA,QAAM,wBAAwB,CAAC,YAAoB;AACjD,QAAI,gBAAgB;AAClB,mBAAa,cAAc;AAAA,IAC7B;AACA,qBAAiB,WAAW,MAAM;AAChC,mDAAkB,OAAO;AAAA,IAC3B,GAAG,aAAa;AAAA,EAClB;AAEA,QAAM,oBAAoB,CAAC,SAA0C;AACnE,QAAI,cAAc;AAChB,mBAAa,YAAY;AAAA,IAC3B;AACA,mBAAe,WAAW,MAAM;AAC9B,wDAAuB,IAAI;AAAA,IAC7B,GAAG,aAAa;AAAA,EAClB;AAEA,QAAM,kBAAkB,MAAM;AAC5B,UAAM,WAAW,sCAAoB;AACrC,QAAI,UAAU;AACZ,eAAS,IAAI,aAAa;AAC1B,eAAS,IAAI,OAAO;AACpB,eAAS,IAAI,mBAAmB;AAChC,eAAS,IAAI,UAAU;AACvB,eAAS,MAAM;AACf,cAAQ,IAAI,yBAAyB;AAAA,IACvC;AAEA,uBAAmB,gDAA8B,eAAe;AAChE,0CAAoB,WAAW;AAE/B,QAAI,gBAAgB;AAClB,mBAAa,cAAc;AAAA,IAC7B;AAEA,QAAI,cAAc;AAChB,mBAAa,YAAY;AAAA,IAC3B;AAAA,EACF;AAEA,QAAM,2BAAuB;AAAA,IAC3B,YAAY;AACV,YAAM,wBAAwB,OAC5B,UAAU,uBACV,QAAQ,mBACL;AACH,YAAI,UAAU;AACd,YAAI,yBAAsC;AAC1C,YAAI,eAA4B;AAEhC,cAAM,eAAe,YAAY;AAC/B,cAAI,WAAW,SAAS;AACtB,oBAAQ,KAAK,mDAAmD;AAChE,+BAAmB,gDAA8B,eAAe;AAChE;AAAA,UACF;AAEA;AAGA,gDAAoB,UAAU,IAAI;AAClC,gDAAoB,UAAU,MAAM;AACpC,gDAAoB,WAAW;AAE/B,cAAI;AAEF,kBAAM,qBAAqB;AAG3B,qCAAyB,WAAW,MAAM;AACxC,oBAAM,cAAc,sCAAoB,UAAU;AAElD,kBAAI,CAAC,aAAa;AAEhB,+BAAe,WAAW,cAAc,KAAK;AAAA,cAC/C;AAAA,YACF,GAAG,uBAAuB;AAAA,UAC5B,QAAQ;AAEN,2BAAe,WAAW,cAAc,KAAK;AAAA,UAC/C;AAAA,QACF;AAGA,qBAAa;AAGb,cAAM,gBAAgB,MAAM;AAC1B,cAAI,wBAAwB;AAC1B,yBAAa,sBAAsB;AACnC,qCAAyB;AAAA,UAC3B;AAEA,cAAI,cAAc;AAChB,yBAAa,YAAY;AACzB,2BAAe;AAAA,UACjB;AAAA,QACF;AAEA,eAAO;AAAA,MACT;AAEA,yBAAmB,gDAA8B,OAAO;AAExD,YAAM,eACJ,sBAAuB,UAAM,kCAAgB,UAAU;AAEzD,UAAI,CAAC,cAAc;AACjB,2BAAmB,gDAA8B,eAAe;AAChE;AAAA,MACF;AAEA,4CAAoB,eAAW,kBAAG,cAAc;AAAA,QAC9C,UAAU;AAAA,QACV,cAAc;AAAA,QACd,sBAAsB;AAAA,QACtB,SAAS;AAAA,QACT,OAAO,EAAE,QAAQ;AAAA,MACnB,CAAC;AAED,4CAAoB,SAAS,MAAM,qBAAqB;AAExD,4CAAoB,SAAS,GAAG,qBAAqB,iBAAiB;AAEtE,4CAAoB,SAAS,GAAG,SAAS,MAAM;AAC7C,gBAAQ,IAAI,sBAAsB;AAClC,2BAAmB,gDAA8B,SAAS;AAAA,MAC5D,CAAC;AAED,4CAAoB,SAAS,GAAG,eAAe,OAAO,UAAU;AAC9D,gBAAQ,KAAK,6BAA6B,MAAM,OAAO;AACvD,cAAM,gBAAgB,MAAM,sBAAsB;AAClD,sBAAc;AAAA,MAChB,CAAC;AAED,4CAAoB,SAAS,GAAG,YAAY,YAAY;AACtD,gBAAQ,KAAK,gDAAgD;AAC7D,cAAM,gBAAgB,MAAM,sBAAsB;AAClD,sBAAc;AAAA,MAChB,CAAC;AAAA,IACH;AAAA,IACA,EAAE,SAAS,GAAG,OAAO,eAAe;AAAA,EACtC;AAEA,MACE,sCAAoB,WAClB,gDAA8B,mBAChC,CAAC,sCAAoB,UAAU,QAC/B;AACA,UAAM,qBAAqB;AAAA,EAC7B;AAEA,SAAO;AAAA,IACL;AAAA,EACF;AACF;",
|
|
6
|
+
"names": ["import_websocket"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../../__chunks__/chunk-
|
|
1
|
+
import{a}from"../../../__chunks__/chunk-Q5RVUCNS.mjs";import"../../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../../__chunks__/chunk-IHPROMZ4.mjs";import"../../../__chunks__/chunk-4TBVQD27.mjs";import"../../../__chunks__/chunk-7PW3YJZS.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-MGQ373AO.mjs";import"../../../__chunks__/chunk-RPTH42EF.mjs";import"../../../__chunks__/chunk-3UNGCOKO.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-5ICRLXOJ.mjs";export{a as initializeWebsocketConnection};
|
|
2
2
|
//# sourceMappingURL=initializeWebsocketConnection.mjs.map
|
|
@@ -0,0 +1,38 @@
|
|
|
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 registerWebsocket_exports = {};
|
|
20
|
+
__export(registerWebsocket_exports, {
|
|
21
|
+
registerWebsocketListener: () => registerWebsocketListener,
|
|
22
|
+
websocketManager: () => websocketManager
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(registerWebsocket_exports);
|
|
25
|
+
var import_initializeWebsocketConnection = require("./initializeWebsocketConnection");
|
|
26
|
+
const websocketManager = {
|
|
27
|
+
closeConnectionRef: void 0
|
|
28
|
+
};
|
|
29
|
+
async function registerWebsocketListener(address) {
|
|
30
|
+
const { closeConnection } = await (0, import_initializeWebsocketConnection.initializeWebsocketConnection)(address);
|
|
31
|
+
websocketManager.closeConnectionRef = closeConnection;
|
|
32
|
+
}
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
registerWebsocketListener,
|
|
36
|
+
websocketManager
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=registerWebsocket.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/methods/initApp/websocket/registerWebsocket.ts"],
|
|
4
|
+
"sourcesContent": ["import { initializeWebsocketConnection } from './initializeWebsocketConnection';\n\n/**\n * Manages the WebSocket connection lifecycle.\n *\n * Holds a reference to the current WebSocket connection's `closeConnection` method,\n * allowing other parts of the application to close the connection on demand (e.g., on logout).\n *\n * This pattern avoids exporting mutable bindings directly by encapsulating\n * the reference within a stable object.\n *\n * @example\n * ```ts\n * await registerWebsocketListener(address);\n * websocketManager.closeConnectionRef?.();\n * ```\n */\nexport const websocketManager = {\n closeConnectionRef: undefined as (() => void) | undefined\n};\n\nexport async function registerWebsocketListener(address: string) {\n const { closeConnection } = await initializeWebsocketConnection(address);\n\n websocketManager.closeConnectionRef = closeConnection;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CAA8C;AAiBvC,MAAM,mBAAmB;AAAA,EAC9B,oBAAoB;AACtB;AAEA,eAAsB,0BAA0B,SAAiB;AAC/D,QAAM,EAAE,gBAAgB,IAAI,UAAM,oEAA8B,OAAO;AAEvE,mBAAiB,qBAAqB;AACxC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../../__chunks__/chunk-
|
|
1
|
+
import{a,b}from"../../../__chunks__/chunk-UXJIZKTT.mjs";import"../../../__chunks__/chunk-Q5RVUCNS.mjs";import"../../../__chunks__/chunk-ZFXAT6MD.mjs";import"../../../__chunks__/chunk-Q2Q4XN4M.mjs";import"../../../__chunks__/chunk-IHPROMZ4.mjs";import"../../../__chunks__/chunk-4TBVQD27.mjs";import"../../../__chunks__/chunk-7PW3YJZS.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-MGQ373AO.mjs";import"../../../__chunks__/chunk-RPTH42EF.mjs";import"../../../__chunks__/chunk-3UNGCOKO.mjs";import"../../../__chunks__/chunk-MGFIOCA4.mjs";import"../../../__chunks__/chunk-GGBMHKR4.mjs";import"../../../__chunks__/chunk-5ICRLXOJ.mjs";export{b as registerWebsocketListener,a as websocketManager};
|
|
2
2
|
//# sourceMappingURL=registerWebsocket.mjs.map
|
|
@@ -0,0 +1,37 @@
|
|
|
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 getLoginInfo_exports = {};
|
|
20
|
+
__export(getLoginInfo_exports, {
|
|
21
|
+
getLoginInfo: () => getLoginInfo
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(getLoginInfo_exports);
|
|
24
|
+
var import_store = require("../../store/store");
|
|
25
|
+
var import_accountSelectors = require("../../store/selectors/accountSelectors");
|
|
26
|
+
var import_loginInfoSelectors = require("../../store/selectors/loginInfoSelectors");
|
|
27
|
+
const getLoginInfo = (state = (0, import_store.getState)()) => {
|
|
28
|
+
return {
|
|
29
|
+
...(0, import_loginInfoSelectors.loginInfoSelector)(state),
|
|
30
|
+
isLoggedIn: (0, import_accountSelectors.isLoggedInSelector)(state)
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
getLoginInfo
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=getLoginInfo.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/methods/loginInfo/getLoginInfo.ts"],
|
|
4
|
+
"sourcesContent": ["import { getState } from 'store/store';\nimport { isLoggedInSelector } from '../../store/selectors/accountSelectors';\nimport { loginInfoSelector } from '../../store/selectors/loginInfoSelectors';\n\nexport const getLoginInfo = (state = getState()) => {\n return {\n ...loginInfoSelector(state),\n isLoggedIn: isLoggedInSelector(state)\n };\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAyB;AACzB,8BAAmC;AACnC,gCAAkC;AAE3B,MAAM,eAAe,CAAC,YAAQ,uBAAS,MAAM;AAClD,SAAO;AAAA,IACL,OAAG,6CAAkB,KAAK;AAAA,IAC1B,gBAAY,4CAAmB,KAAK;AAAA,EACtC;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as t}from"../../__chunks__/chunk-
|
|
1
|
+
import{u as t}from"../../__chunks__/chunk-GUPYIQ3X.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import{f as r}from"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import{a as e}from"../../__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-5ICRLXOJ.mjs";var m=(o=t())=>({...e(o),isLoggedIn:r(o)});export{m as getLoginInfo};
|
|
2
2
|
//# sourceMappingURL=getLoginInfo.mjs.map
|